:root {
  --navy: #0b1f3a;
  --navy2: #132c50;
  --teal: #00a896;
  --gold: #ffc857;
  --ice: #cadcfc;
  --green: #3ddc97;
  --red: #e05c5c;
  --muted: #1b3a63;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Calibri, Arial, sans-serif;
  background: var(--navy);
  color: #fff;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: Cambria, Georgia, serif;
  margin: 0 0 0.4em 0;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.center-wrap {
  max-width: 420px;
  margin: 10vh auto;
  padding: 0 20px;
  text-align: center;
}

.gold { color: var(--gold); }
.teal { color: var(--teal); }
.ice { color: var(--ice); }
.muted-text { color: var(--ice); opacity: 0.8; font-size: 0.9em; }

.card {
  background: var(--navy2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

input[type="text"], input[type="password"], input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  margin: 10px 0;
  background: #fff;
  color: var(--navy);
}

button {
  cursor: pointer;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 15px;
  background: var(--gold);
  color: var(--navy);
  transition: transform 0.1s ease, opacity 0.15s ease;
}
button:hover { opacity: 0.9; }
button:active { transform: scale(0.97); }
button.secondary { background: var(--muted); color: var(--ice); }
button.teal-btn { background: var(--teal); color: var(--navy); }
button:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* Board grid */
.board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.board-col-head {
  background: var(--teal);
  color: var(--navy);
  font-weight: bold;
  font-size: 12px;
  text-align: center;
  border-radius: 8px;
  padding: 10px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 55px;
}
.board-cell {
  background: var(--navy2);
  border: 1px solid var(--muted);
  border-radius: 8px;
  text-align: center;
  padding: 18px 4px;
  font-family: Cambria, Georgia, serif;
  font-size: 24px;
  font-weight: bold;
  color: var(--gold);
  cursor: pointer;
}
.board-cell:hover { background: var(--muted); }
.board-cell.used { color: #3a4a63; background: #0e1f38; cursor: default; }
.board-cell.active {
  border-color: var(--gold);
  background: var(--muted);
}

@media (max-width: 700px) {
  .board { grid-template-columns: repeat(3, 1fr); }
}

/* Options grid */
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 600px) {
  .options { grid-template-columns: 1fr; }
}
.option {
  background: var(--muted);
  border-radius: 10px;
  padding: 16px;
  text-align: left;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.option .letter {
  background: var(--navy);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--gold);
}
.option.selected { border-color: var(--gold); }
.option.correct { background: var(--green); color: var(--navy); font-weight: bold; }
.option.correct .letter { background: var(--navy); color: var(--green); }
.option.wrong-pick { border-color: var(--red); }
.option[disabled], .option.disabled { cursor: default; opacity: 0.85; }

/* Scoreboard */
.scoreboard { display: flex; gap: 12px; flex-wrap: wrap; }
.score-card {
  background: var(--navy2);
  border-radius: 10px;
  padding: 14px 18px;
  min-width: 140px;
  text-align: center;
  border-top: 3px solid var(--teal);
}
.score-card .name { font-size: 13px; color: var(--ice); }
.score-card .val { font-family: Cambria, Georgia, serif; font-size: 28px; font-weight: bold; color: var(--gold); }

.pill {
  display: inline-block;
  background: var(--teal);
  color: var(--navy);
  font-weight: bold;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.value-tag {
  font-family: Cambria, Georgia, serif;
  font-size: 32px;
  color: var(--gold);
  font-weight: bold;
}

.top-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--muted); font-size: 14px; }
th { color: var(--ice); font-size: 12px; text-transform: uppercase; }

.error-msg { color: var(--red); font-weight: bold; margin: 8px 0; }
.big-msg { font-size: 20px; text-align: center; padding: 40px 10px; color: var(--ice); }
