* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: #0b1220;
  color: #f4f7fb;
  font-family: Arial, sans-serif;
  font-size: 20px;
}
body {
  min-height: 100vh;
}
header {
  height: 112px;
  padding: 28px 5vw;
  background: #111e35;
  border-bottom: 2px solid #263d5e;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
h1 {
  font-size: 34px;
  margin: 0;
}
h2 {
  font-size: 28px;
}
h3 {
  font-size: 22px;
  color: #31d6c4;
}
.tag {
  color: #9cb5d6;
}
.shell {
  max-width: 1500px;
  margin: auto;
  padding: 34px 5vw;
}
.grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}
.card {
  background: #14243c;
  border: 1px solid #2e486b;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 20px #0003;
}
.row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
button,
select,
input {
  font: inherit;
  color: #fff;
  background: #1a3150;
  border: 2px solid #52739e;
  border-radius: 10px;
  padding: 13px 18px;
  min-height: 52px;
}
button {
  cursor: pointer;
}
button.primary {
  background: #1eb7aa;
  color: #06131f;
  border-color: #6af5e8;
  font-weight: bold;
}
button.danger {
  border-color: #e77b7b;
  color: #ffd4d4;
}
.focusable:focus,
button:focus,
select:focus,
input:focus {
  outline: 4px solid #ffd166;
  outline-offset: 3px;
}
.metric {
  font-size: 54px;
  font-weight: bold;
  color: #ffd166;
}
.muted {
  color: #a8bad2;
}
.list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.list li {
  padding: 12px;
  background: #1a3150;
  border-radius: 8px;
}
.bar {
  height: 14px;
  background: #243b5e;
  border-radius: 9px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: #31d6c4;
  width: 0;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tile {
  height: 115px;
  font-size: 42px;
  background: #203a5e;
}
.tile.revealed {
  background: #31d6c4;
  color: #081725;
}
.tile.matched {
  background: #ffd166;
  color: #081725;
}
.planet {
  display: flex;
  gap: 14px;
  align-items: center;
}
.planet b {
  font-size: 27px;
}
.notice {
  border-left: 5px solid #ffd166;
  padding: 12px 18px;
  background: #182c48;
}
.footer {
  color: #8ca5c5;
  font-size: 16px;
  margin-top: 25px;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}
