/* The guide pages (daily-frame-game.html and the edition pages): the night show of the app, readable without JavaScript. */
@font-face { font-family: Anek; font-weight: 100 800; font-stretch: 75% 125%; src: url(/fonts/AnekLatin.ttf); font-display: swap; }

:root {
  --bg: #080A1F;
  --surface: #14183F;
  --raised: #1F2458;
  --lip: #0D1033;
  --ink: #F7F0E3;
  --ink-2: #BDB6AA;
  --ink-3: #9A96AE;
  --turmeric: #F2B705;
  --on-turmeric: #0A0B0D;
}

html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Projector light from the top of the hall. */
  background: radial-gradient(120% 60% at 50% 0%, #15183A 0%, var(--bg) 70%) no-repeat;
}

.page { width: min(720px, 100% - 32px); margin: 0 auto; padding: 24px 0 56px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sign {
  display: inline-block; padding: 6px 12px; border-radius: 8px; background: var(--surface);
  border-bottom: 3px solid var(--lip);
  font: 700 22px/1.2 Anek, sans-serif; font-stretch: 85%; letter-spacing: 3px; color: var(--turmeric); text-decoration: none;
}
.top a.play { padding: 10px 18px; font-size: 16px; }

h1 {
  font: 700 clamp(32px, 7vw, 48px)/1.1 Anek, sans-serif; font-stretch: 80%;
  margin: 40px 0 16px; text-wrap: balance;
}
h2 { font: 700 28px/1.2 Anek, sans-serif; font-stretch: 85%; margin: 48px 0 12px; }
h3 { font: 700 20px/1.3 Anek, sans-serif; margin: 24px 0 4px; }
p, li { color: var(--ink-2); }
p { margin: 0 0 16px; }
strong { color: var(--ink); font-weight: 600; }
.lede { font-size: 19px; color: var(--ink); }

a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 3px; border-radius: 4px; }
a.play {
  display: inline-block; padding: 14px 28px; border-radius: 12px; background: var(--turmeric); color: var(--on-turmeric);
  border-bottom: 3px solid #A87F00; font-weight: 700; text-decoration: none;
}
a.play:active { transform: translateY(2px); border-bottom-width: 1px; }

/* Each game on a solid panel: depth is tonal, never shadowed. */
.games { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.games li { background: var(--surface); border-radius: 12px; padding: 16px 18px; border-bottom: 3px solid var(--lip); }
.games h3 { margin: 0 0 4px; color: var(--ink); }
.games p { margin: 0; }

.points { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 16px; padding: 0; list-style: none; }
.points li { background: var(--raised); border-radius: 8px; padding: 6px 12px; color: var(--ink); font-variant-numeric: tabular-nums; }

.faq h3 { color: var(--ink); }

.more { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; list-style: none; }

footer { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--raised); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--ink-2); }
footer .disclaimer { color: var(--ink-3); font-size: 12px; line-height: 1.5; margin-top: 16px; }

/* The second action beside Play: a solid raised panel, so turmeric stays the one primary. */
a.store {
  display: inline-block; padding: 14px 24px; border-radius: 12px; background: var(--raised); color: var(--ink);
  border-bottom: 3px solid var(--lip); font-weight: 700; text-decoration: none;
}
a.store:active { transform: translateY(2px); border-bottom-width: 1px; }
.top .actions { display: flex; gap: 8px; align-items: center; }
.top a.store { padding: 10px 16px; font-size: 16px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.updated { font-size: 14px; color: var(--ink-3); }

/* Comparison tables scroll sideways on a phone instead of squeezing. */
.table { overflow-x: auto; margin: 16px 0; border-radius: 12px; background: var(--surface); }
.table:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 3px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--raised); }
thead th { color: var(--ink); background: var(--raised); }
tbody th { color: var(--ink); font-weight: 600; }
td { color: var(--ink-2); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

@media (prefers-reduced-motion: reduce) { a.play:active, a.store:active { transform: none; } }

/* The Hall of Fame (functions/_hall_of_fame_page.ts): a card per week, its podium in gold, silver and bronze discs. */
h2 .lang { font: 400 16px/1 system-ui, sans-serif; color: var(--ink-3); margin-left: 8px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.jump a { padding: 8px 14px; border-radius: 999px; background: var(--raised); text-decoration: none; font-weight: 600; }
.weeks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.week { background: var(--surface); border-radius: 12px; padding: 14px 16px; border-bottom: 3px solid var(--lip); }
.week h3 { margin: 0 0 8px; font-size: 16px; color: var(--ink-2); }
.podium { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.podium li { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.podium .medal {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 700 15px/1 Anek, sans-serif; color: var(--on-turmeric); border-bottom: 2px solid rgba(0, 0, 0, .35);
}
.podium .p1 .medal { background: var(--turmeric); }
.podium .p2 .medal { background: #C9CCE3; }
.podium .p3 .medal { background: #D9874A; }
.podium .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.podium .p1 .who { color: var(--turmeric); }
.podium .pts { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
