:root {
  --bg: #0b0e1a;
  --tile: #131a2e;
  --tile-edge: #232d4a;
  --gold: #e3b341;
  --hit: #3fa796;
  --miss: #c44536;
  --ink: #f4f1ea;
  --muted: #8a93ad;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at 50% -10%, #19223d 0%, var(--bg) 55%);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

.stage {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.masthead {
  text-align: center;
  margin-bottom: 32px;
}

.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

h1, h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
}

#game-title {
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.1;
}

.board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 36px;
}

@media (max-width: 480px) {
  .board { grid-template-columns: 1fr; }
}

.tile {
  background: var(--tile);
  border: 1px solid var(--tile-edge);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  perspective: 800px;
}

.tile .num {
  font-family: 'Anton', sans-serif;
  color: var(--gold);
  font-size: 20px;
  width: 24px;
  flex-shrink: 0;
}

.tile .text {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 15px;
}

.tile .points {
  margin-left: auto;
  font-family: 'Anton', sans-serif;
  color: var(--muted);
  font-size: 16px;
}

.tile.blank .text {
  color: var(--muted);
  letter-spacing: 0.3em;
}

.tile.hit { border-color: var(--hit); background: linear-gradient(180deg, #16332f, var(--tile)); }
.tile.hit .points { color: var(--hit); }
.tile.miss { opacity: 0.55; }

.entry {
  background: var(--tile);
  border: 1px solid var(--tile-edge);
  border-radius: 10px;
  padding: 24px;
}

.entry.hidden { display: none; }

.field {
  display: block;
  margin-bottom: 18px;
}

.field span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--tile-edge);
  background: #0e1426;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
}

input[type="text"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.guess-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.guess-grid label span { font-size: 12px; color: var(--muted); }

.cta {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--gold);
  color: #1a1407;
  font-family: 'Anton', sans-serif;
  font-size: 17px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.cta:hover { transform: translateY(-1px); }
.cta:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.message {
  text-align: center;
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--miss);
}

.message.success { color: var(--hit); }

.score-line {
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  color: var(--gold);
  margin: 4px 0 20px;
}

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.result-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  background: #0e1426;
  border: 1px solid var(--tile-edge);
}

.result-list li.hit { border-color: var(--hit); }
.result-list li.miss { color: var(--muted); }

.result-list .pts { color: var(--gold); font-family: 'Anton', sans-serif; }

.muted-note { color: var(--muted); font-size: 14px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-top: 12px;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--tile-edge);
}

th { color: var(--gold); font-weight: 600; }

tr.first-place td { color: var(--gold); font-weight: 700; }
