/* Page layout for the playable pages (/q/<id>, /d). Components are in quiz.css. */
:root {
  --bg: #0b1a2e;
  --bg-deep: #07111f;
  --surface: #122640;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4efe3;
  --muted: #a9b4c4;
  --gold: #f3c35b;
  --gold-deep: #d9a23a;
  --ok: #3ddc84;
  --ok-fill: #26432a;
  --bad: #ff5a4f;
  --bad-fill: #482929;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(70% 45% at 50% 18%, rgba(243, 195, 91, 0.12), transparent 70%),
    radial-gradient(90% 60% at 15% 0%, #15325a 0%, transparent 70%),
    var(--bg-deep);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.45;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.top { padding: 18px 0 6px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { height: 16px; width: auto; }
.top .pill {
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); background: rgba(243, 195, 91, 0.1); border: 1px solid rgba(243, 195, 91, 0.25);
  padding: 4px 10px; border-radius: 999px; text-decoration: none;
}

.wrap { width: min(440px, 100% - 32px); margin-inline: auto; }
main { flex: 1; padding-bottom: 32px; }




/* Store CTA */
.cta {
  margin-top: 28px; padding: 24px 20px 26px;
  text-align: center;
  background: radial-gradient(80% 90% at 50% 100%, rgba(243, 195, 91, 0.13), transparent 70%), var(--surface);
  border: 1px solid var(--line); border-radius: 22px;
}
.cta .icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line);
}
.cta h2 { margin: 0 0 6px; font-size: 21px; line-height: 1.25; font-weight: 900; text-wrap: balance; }
.cta p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.reveal-up { animation: up 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }

.after { text-align: center; margin-top: 16px; }

/* Footer */
footer { padding: 18px 0 28px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

@media (min-width: 720px) {
  .top { padding-top: 28px; }
  .logo { height: 18px; }
  .face { width: 300px; margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
