:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5f6873;
  --line: #d9e0e7;
  --paper: #fbfcfe;
  --panel: #ffffff;
  --green: #2d9c7c;
  --blue: #276fbf;
  --yellow: #f2b84b;
  --red: #df5f54;
  --navy: #20324a;
  --shadow: 0 18px 50px rgba(26, 42, 68, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar,
.hero-band,
.mission-layout,
.puzzle-band,
.report-band {
  margin-bottom: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
}

h2 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  gap: 8px;
}

.status-item {
  min-height: 70px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.status-item span {
  display: block;
  font-size: 1.45rem;
  font-weight: 850;
}

.status-item small,
.report-grid span {
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  align-items: center;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(24px, 4vw, 48px);
}

.hero-copy h2 {
  max-width: 520px;
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.hero-copy p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-actions,
.answer-row,
.play-controls,
.section-heading,
.panel-heading,
.round-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-actions {
  margin-top: 24px;
}

.primary-action,
.secondary-action,
.icon-action {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  padding: 0 18px;
  background: var(--green);
  color: #fff;
}

.secondary-action {
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.icon-action {
  width: 42px;
  background: var(--navy);
  color: #fff;
  font-size: 1.25rem;
}

.island-scene {
  height: 100%;
  padding: 18px;
}

.island-scene svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.mission-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
}

.panel,
.puzzle-band,
.report-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(26, 42, 68, 0.07);
}

.panel {
  padding: 20px;
}

.panel-heading,
.round-header,
.section-heading {
  justify-content: space-between;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf6f4;
  color: #1d735c;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.progress-track {
  position: relative;   /* needed for break-marker positioning */
  height: 12px;
  margin: 18px 0;
  border-radius: 999px;
  background: #e9eef3;
  overflow: visible;    /* allow markers to protrude slightly */
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  transition: width 250ms ease;
}

/* Break-point tick marks on the progress bar */
.break-marker {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1.5px var(--muted);
  transform: translateX(-50%);
  transition: box-shadow 0.3s, background 0.3s;
  pointer-events: none;
}

.break-marker.done {
  background: var(--green);
  box-shadow: 0 0 0 1.5px var(--green);
}

/* ── Session timer ──────────────────────────────────────────────────────────── */

.timer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f8ff;
}

.timer-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.timer-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.3s;
}

.timer-dot.active {
  background: var(--green);
  animation: timer-pulse 1.4s ease-in-out infinite;
}

.timer-dot.break {
  background: var(--yellow);
  animation: none;
}

.timer-dot.done {
  background: var(--green);
  animation: none;
}

@keyframes timer-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.75); }
}

.timer-of {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.timer-next-break {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

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

.mission-step {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mission-step.complete {
  border-color: rgba(45, 156, 124, 0.55);
  background: #f1faf7;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eef4fb;
  color: var(--blue);
  font-weight: 900;
}

.mission-step.complete .step-icon {
  background: var(--green);
  color: #fff;
}

.step-title {
  display: block;
  font-weight: 850;
}

.step-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.play-area {
  min-height: 440px;
}

.question-card {
  display: grid;
  align-content: center;
  min-height: 170px;
  margin: 18px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.question-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
}

.question-text {
  font-size: clamp(1.45rem, 2.8vw, 2.45rem);
  font-weight: 850;
  line-height: 1.16;
}

.question-placeholder {
  color: var(--muted);
  font-size: 1.1rem;
}

.answer-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.answer-row input {
  width: min(360px, 100%);
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.feedback {
  min-height: 54px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 750;
}

.feedback.good {
  color: #1d735c;
}

.feedback.bad {
  color: #ad342b;
}

/* Wrong answer: show worked solution in amber so it reads as a teaching moment */
.feedback.explained {
  color: #8a5a00;
  background: #fff8e6;
  border-left: 3px solid var(--yellow);
  padding: 8px 12px;
  border-radius: 4px;
}

/* Hint button removed — post-answer explanation replaces it */
#hintButton {
  display: none;
}

.play-controls {
  justify-content: flex-end;
  margin-top: 10px;
}

.puzzle-band,
.report-band {
  padding: 20px;
}

.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.puzzle-card {
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.puzzle-card.locked {
  opacity: 0.58;
}

.puzzle-visual {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 14px 0;
}

.tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 6px;
  border: 0;
  background: #eef4fb;
  color: var(--navy);
  font-weight: 850;
}

.tile.hot {
  background: #ffe8a6;
}

.tile.done {
  background: #dff3ec;
  color: #1d735c;
}

.puzzle-tile {
  min-width: 0;
  transition: transform 140ms ease, background 140ms ease;
}

.puzzle-tile:hover {
  transform: translateY(-2px);
}

.active-puzzle {
  max-width: 420px;
}

.puzzle-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.puzzle-status span {
  min-height: 38px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

button:disabled {
  cursor: not-allowed;
}

.puzzle-card p {
  color: var(--muted);
  line-height: 1.45;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.report-grid div {
  min-height: 90px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.report-grid strong {
  display: block;
  font-size: 2rem;
}

@media (max-width: 900px) {
  .topbar,
  .hero-band,
  .mission-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
  }

  .hero-band {
    display: block;
  }

  .island-scene {
    min-height: 280px;
  }

  .puzzle-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .status-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .status-item {
    padding: 8px;
  }

  .answer-row,
  .hero-actions {
    align-items: stretch;
  }

  .answer-row {
    flex-direction: column;
  }

  .hero-copy {
    padding: 22px;
  }
}

/* ── Loading overlay ─────────────────────────────────────────────────────── */

.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 200;
  color: var(--muted);
  font-weight: 600;
}

.loading-overlay.hidden {
  display: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Auth modal ──────────────────────────────────────────────────────────── */

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(23, 32, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.auth-modal.hidden {
  display: none;
}

.auth-card {
  position: relative;
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 32px 36px 36px;
  width: min(420px, 100%);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  min-height: unset;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.auth-close:hover {
  background: var(--line);
  color: var(--ink);
}

.auth-context {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--line);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}

.auth-tab.active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form.hidden {
  display: none;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.auth-label input {
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s;
}

.auth-label input:focus {
  outline: none;
  border-color: var(--blue);
}

.auth-submit {
  margin-top: 4px;
  width: 100%;
  padding: 12px;
}

.auth-error {
  margin: 0;
  padding: 8px 12px;
  background: #fff0ef;
  border-left: 3px solid var(--red);
  border-radius: 4px;
  color: #ad342b;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-error.hidden {
  display: none;
}

/* ── User bar in header ───────────────────────────────────────────────────── */

.user-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

@media (max-width: 560px) {
  .auth-card {
    padding: 24px 20px 28px;
  }
}

/* ── User bar button (Progress link) ────────────────────────────────────── */

.user-bar-btn {
  font-size: 0.82rem;
  padding: 6px 12px;
  text-decoration: none;
}

/* ── Dashboard layout ────────────────────────────────────────────────────── */

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--panel);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dash-section {
  margin-bottom: 20px;
  padding: 24px;
}

.dash-empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 12px 0 0;
}

/* ── Activity calendar ───────────────────────────────────────────────────── */

.calendar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.cal-dot {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--line);
  display: inline-block;
  cursor: default;
  transition: transform 0.1s;
}

.cal-dot:hover { transform: scale(1.25); }
.cal-dot.done-high { background: var(--green); }
.cal-dot.done-mid  { background: var(--yellow); }
.cal-dot.done-low  { background: var(--red); opacity: 0.7; }

/* ── Standards progress bars ─────────────────────────────────────────────── */

.standards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.standard-row {
  display: grid;
  grid-template-columns: 1fr 180px 42px;
  align-items: center;
  gap: 14px;
}

.standard-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.standard-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.standard-meta {
  font-size: 0.76rem;
  color: var(--muted);
}

.standard-bar {
  height: 10px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}

.bar-fill.high { background: var(--green); }
.bar-fill.mid  { background: var(--yellow); }
.bar-fill.low  { background: var(--red); }

.standard-pct {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
}

/* ── Wrong answer review cards ───────────────────────────────────────────── */

.wrong-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.wrong-card {
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--paper);
}

.wrong-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.wrong-topic {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
}

.wrong-date {
  font-size: 0.76rem;
  color: var(--muted);
}

.wrong-question {
  font-weight: 600;
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.wrong-answers {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.wrong-yours {
  color: #ad342b;
}

.wrong-correct {
  color: #1d735c;
}

.wrong-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

/* ── Dashboard responsive ────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .standard-row {
    grid-template-columns: 1fr 120px 38px;
  }
}

@media (max-width: 560px) {
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .standard-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .standard-bar {
    width: 100%;
  }
  .wrong-answers {
    flex-direction: column;
    gap: 4px;
  }
}

/* ── Subject & Grade selectors ───────────────────────────────────────────────── */
.subject-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.subject-btn {
  padding: 7px 22px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.subject-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.subject-btn.active[data-subject="math"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.subject-btn.active[data-subject="science"] {
  background: #2d9c7c;   /* green — science brand colour */
  border-color: #2d9c7c;
  color: #fff;
}

.grade-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.grade-btn {
  padding: 6px 18px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.grade-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.grade-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ── Multiple-choice answer buttons (science questions) ─────────────────────── */
.mc-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.mc-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.mc-choice:hover:not(:disabled) {
  border-color: var(--green);
  background: #f1faf7;
}
.mc-label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef4fb;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}
.mc-choice.mc-correct {
  border-color: var(--green);
  background: #f1faf7;
}
.mc-choice.mc-correct .mc-label {
  background: var(--green);
  color: #fff;
}
.mc-choice.mc-wrong {
  border-color: var(--red);
  background: #fdf2f1;
}
.mc-choice.mc-wrong .mc-label {
  background: var(--red);
  color: #fff;
}
.mc-choice:disabled {
  cursor: default;
}

/* ── Auth-state visibility helpers ──────────────────────────────────────────── */
/* auth-only / auth-guest-only are selector hooks for JS only — no CSS needed.
   Initial visibility is controlled via the .hidden class on those elements in HTML. */

/* ── About band ──────────────────────────────────────────────────────────── */

.about-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(26, 42, 68, 0.07);
  padding: 28px;
  margin-bottom: 20px;
}

.about-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 740px;
  margin-top: 14px;
  margin-bottom: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.about-feature {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.about-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.about-feature strong {
  display: block;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.about-feature p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.about-cta {
  margin-top: 22px;
  padding: 16px 20px;
  background: #edf6f4;
  border-radius: 8px;
  border-left: 4px solid var(--green);
}

.about-cta p {
  color: #1d5c45;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .about-band {
    padding: 20px;
  }
}

/* ── Trivia / Riddle puzzle styles ───────────────────────────────────────────── */
.puzzle-question {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 10px 0 14px;
  color: var(--ink);
}

/* 2×2 grid for trivia / riddle answer choices */
.choice-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 480px;
}

.choice-tile {
  /* reset square-tile defaults */
  aspect-ratio: unset;
  height: auto;
  min-height: 56px;
  /* look */
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
  text-align: left;
  cursor: pointer;
  transition: background 140ms, border-color 140ms;
}

.choice-tile:hover:not(:disabled) {
  border-color: var(--blue);
  background: #f0f5ff;
}

/* correct answer highlight */
.choice-tile.choice-correct {
  background: #dff3ec;
  border-color: var(--green);
  color: #1d5c45;
  font-weight: 700;
}

/* wrong answer highlight */
.choice-tile.choice-wrong {
  background: #fdecea;
  border-color: var(--red);
  color: #8b2519;
  text-decoration: line-through;
}

/* lock all tiles once answered */
.choice-tile:disabled {
  cursor: default;
  opacity: 0.7;
}
