/* GenX Quiz Show site stylesheet.
   One file, no remote fonts, no remote images. Palette is lifted from the app (src/theme.js).
   Contrast (WCAG): cream on night 16.4:1, dim on night 8.4:1, cyan on night 11.4:1,
   yellow on night 12.4:1, pink on night 5.5:1, pink on card 4.7:1.
   Motion: nothing moves unless the visitor has NOT asked for reduced motion (see the
   prefers-reduced-motion: no-preference block at the end). The static page is the default. */

:root {
  color-scheme: dark;
  --night: #1b1035;
  --night-deep: #120a26;
  --card: #2a1b52;
  --line: #4b3590;
  --text: #fff4e0;
  --dim: #b9a9e0;
  --pink: #ff3ea5;
  --cyan: #2ee6d6;
  --yellow: #ffd23f;
  --good: #37d67a;
  --radius: 14px;
  --display: "Arial Black", "Helvetica Neue", Impact, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }
strong { color: var(--text); }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 20;
  background: var(--yellow); color: var(--night); font-weight: 800;
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }

/* ---------- header ---------- */
.site-header { background: var(--night-deep); border-bottom: 2px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 16px; padding-top: 6px; padding-bottom: 6px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--display); font-style: italic; text-transform: uppercase;
  font-size: 1.05rem; letter-spacing: .03em; color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--text); }
/* The real mark. favicon.svg is the simplified cut, which is the correct one below the
   64px crossover in marketing/brand/BRAND-GUIDE-2026-11-06.md, so the tab icon and this
   30px header mark are deliberately one file rather than two copies that can drift. */
.brand-mark {
  width: 30px; height: 30px; flex: none;
  background: url("/img/favicon.svg") center / contain no-repeat;
}
.brand b { color: var(--pink); }
.nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--dim); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav a:hover { color: var(--yellow); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--pink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 24px; border-radius: 12px; font-weight: 800; font-size: 1.05rem;
  text-decoration: none; border: 2px solid var(--pink);
  background: var(--pink); color: var(--night);
}
.btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--night); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); background: transparent; }

/* The download call to action is a placeholder until a store link exists. It is deliberately
   not a link: dashed outline, a visible PLACEHOLDER tag, and no href. */
.cta-placeholder {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  padding: 12px 18px; border: 2px dashed var(--yellow); border-radius: 12px;
  background: rgba(255, 210, 63, .08); color: var(--text); margin: 0;
}
.cta-placeholder .tag {
  background: var(--yellow); color: var(--night); font-weight: 900; font-size: .75rem;
  letter-spacing: .12em; padding: 3px 8px; border-radius: 6px;
}
.cta-note { color: var(--dim); font-size: .9rem; margin: 10px 0 0; }

/* ---------- hero ---------- */
.hero { padding: 36px 0 44px; background: linear-gradient(var(--night-deep), var(--night)); }
.hero .wrap { display: grid; gap: 32px; }
.eyebrow {
  color: var(--cyan); font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  font-size: .8rem; margin: 0 0 10px;
}
h1.display, .display {
  font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase;
  line-height: 1.02; letter-spacing: .01em; margin: 0 0 .35em;
}
h1.display {
  font-size: clamp(2.3rem, 9.5vw, 4.4rem); color: var(--text);
  text-shadow: 3px 3px 0 var(--pink), 6px 6px 0 var(--night-deep);
}
.tagline {
  font-family: var(--display); font-style: italic; font-size: clamp(1.15rem, 4.6vw, 1.7rem);
  color: var(--yellow); margin: 0 0 18px;
}
.lede { font-size: 1.15rem; color: var(--text); max-width: 34em; }

.scene {
  position: relative; overflow: hidden; border-radius: 18px; border: 2px solid var(--line);
  min-height: 280px; background: linear-gradient(#0d061f 0%, #2a0f4d 48%, #7a1d68 62%, #ff3ea5 62.2%);
}
.scene .stars {
  position: absolute; inset: 0 0 45% 0;
  background-image:
    radial-gradient(circle at 12% 22%, #fff 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 34% 12%, #fff 0 1px, transparent 1.6px),
    radial-gradient(circle at 58% 28%, #fff 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 78% 10%, #fff 0 1px, transparent 1.6px),
    radial-gradient(circle at 90% 30%, #fff 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 22% 40%, #fff 0 1px, transparent 1.6px);
}
.scene .sun {
  position: absolute; left: 50%; bottom: 36%; width: min(60%, 210px); aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(var(--yellow) 0%, #ff8a3d 48%, var(--pink) 100%);
  -webkit-mask:
    linear-gradient(#000, #000) top / 100% 54% no-repeat,
    repeating-linear-gradient(to bottom, #000 0 9px, transparent 9px 15px) bottom / 100% 46% no-repeat;
          mask:
    linear-gradient(#000, #000) top / 100% 54% no-repeat,
    repeating-linear-gradient(to bottom, #000 0 9px, transparent 9px 15px) bottom / 100% 46% no-repeat;
}
.scene .peak { position: absolute; bottom: 36%; background: linear-gradient(#2b1259, #15092e); }
.scene .peak.a { left: -4%; width: 46%; height: 26%; clip-path: polygon(0 100%, 42% 0, 100% 100%); }
.scene .peak.b { right: -6%; width: 52%; height: 20%; clip-path: polygon(0 100%, 58% 0, 100% 100%); }
.scene .floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 37%; overflow: hidden;
  background: linear-gradient(#12082a, #1b1035); perspective: 260px; perspective-origin: 50% 0;
  border-top: 2px solid var(--cyan); box-shadow: 0 -6px 24px rgba(46, 230, 214, .35);
}
.scene .grid {
  position: absolute; left: -40%; right: -40%; top: 0; height: 240%;
  transform-origin: 50% 0; transform: rotateX(62deg);
  background-image:
    linear-gradient(to right, rgba(46, 230, 214, .8) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(46, 230, 214, .8) 2px, transparent 2px);
  background-size: 56px 56px;
}

/* ---------- sections ---------- */
section.block { padding: 48px 0; }
section.block.alt { background: var(--night-deep); border-block: 2px solid var(--line); }
h2.section-title {
  font-family: var(--display); font-style: italic; text-transform: uppercase;
  font-size: clamp(1.5rem, 6vw, 2.2rem); line-height: 1.1; margin: 0 0 .5em;
}
h2.section-title::after {
  content: ""; display: block; width: 96px; height: 6px; margin-top: 12px; border-radius: 3px;
  background: linear-gradient(90deg, var(--pink) 0 33%, var(--yellow) 33% 66%, var(--cyan) 66%);
}
.section-intro { color: var(--dim); max-width: 40em; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; position: relative;
}
.card h3 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 .5em; color: var(--text); }
.card p:last-child { margin-bottom: 0; }
.card .num {
  display: inline-block; font-family: var(--display); font-style: italic; font-size: 1.9rem;
  line-height: 1; margin-bottom: 8px; color: var(--pink);
}
.card.c2 .num { color: var(--yellow); }
.card.c3 .num { color: var(--cyan); }
.card .note { color: var(--dim); font-size: .95rem; }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; background: var(--card); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 16px 16px 16px 64px; position: relative; margin: 0;
}
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 14px; width: 36px; height: 36px;
  border-radius: 50%; background: var(--yellow); color: var(--night); font-weight: 900;
  display: grid; place-items: center;
}
.steps strong { display: block; }

/* Category tiles. Two columns on a phone, four once there is room. The art is
   decorative, so the name underneath is the thing a screen reader announces. */
.cats {
  list-style: none; padding: 0; margin: 0 0 1.2em;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.cats li {
  margin: 0; background: var(--card); border: 2px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.cats img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.cats span {
  display: block; padding: 10px 12px; font-weight: 700; font-size: .95rem;
  text-align: center;
}
.cats li.mixed { border-color: var(--pink); }
.cats li.mixed span { color: var(--pink); }

.two-col { display: grid; gap: 24px; }
.answer-card {
  background: var(--card); border: 2px dashed var(--cyan); border-radius: var(--radius);
  padding: 20px; margin: 0;
}
.answer-card .label {
  color: var(--dim); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 12px; font-weight: 700;
}
.answer-card .verdict { color: var(--good); font-weight: 900; font-size: 1.3rem; margin: 0 0 4px; }
.answer-card .src { color: var(--dim); font-size: .95rem; margin: 0; }

/* ---------- legal and support pages ---------- */
.page-head { background: linear-gradient(var(--night-deep), var(--night)); padding: 36px 0 24px; border-bottom: 2px solid var(--line); }
.page-head h1 {
  font-family: var(--display); font-style: italic; text-transform: uppercase;
  font-size: clamp(1.9rem, 8vw, 3rem); line-height: 1.05; margin: 0 0 8px;
  text-shadow: 3px 3px 0 var(--pink);
}
.page-head .meta { color: var(--dim); margin: 0; }
.prose { padding: 32px 0 56px; }
.prose h2 { font-size: 1.35rem; line-height: 1.25; margin: 2em 0 .5em; color: var(--yellow); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; color: var(--cyan); }
.prose address { font-style: normal; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 1em; }
.callout {
  background: var(--card); border-left: 6px solid var(--cyan); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px; margin: 0 0 1.4em;
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout h2, .callout h3 { margin-top: 0; }
.toc { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 18px 6px; margin: 0 0 1.6em; }
.toc ol { margin-bottom: .6em; }

/* The switchable section: its own clearly bordered box so it can be found, reviewed and replaced. */
.switchable {
  border: 2px dashed var(--pink); border-radius: var(--radius); padding: 20px 18px;
  margin: 2em 0; background: rgba(255, 62, 165, .06);
}
.switchable h2 { margin-top: 0; }
.switchable .status { background: var(--card); border-radius: 10px; padding: 10px 14px; }

.faq details { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; min-height: 48px; }
.faq details > :not(summary) { padding: 0 18px; }
.faq details > p:last-child { padding-bottom: 6px; }
.template {
  background: var(--night-deep); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin: 0 0 1em; white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace;
  font-size: .95rem; color: var(--text); overflow-wrap: anywhere;
}

/* ---------- footer ---------- */
.site-footer { background: var(--night-deep); border-top: 2px solid var(--line); padding: 32px 0 40px; color: var(--dim); font-size: .95rem; }
.site-footer .cols { display: grid; gap: 22px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin: 0 0 8px; }
.site-footer a { color: var(--cyan); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.site-footer address { font-style: normal; }
.fine { margin: 24px 0 0; font-size: .85rem; line-height: 1.55; }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.lost .big {
  font-family: var(--display); font-style: italic; font-size: clamp(4rem, 22vw, 9rem); line-height: 1;
  margin: 0; color: var(--text); text-shadow: 4px 4px 0 var(--pink), 8px 8px 0 var(--cyan);
}

/* ---------- breakpoints ---------- */
@media (min-width: 720px) {
  .hero { padding: 64px 0 72px; }
  .hero .wrap { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
  .scene { min-height: 380px; }
  .two-col { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 64px 16px 16px; }
  .steps li::before { left: 16px; top: 16px; }
}

/* ---------- print: legal pages should print as plain black on white ---------- */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer .cols, .skip { display: none; }
  .page-head { background: none; border: 0; }
  .page-head h1 { text-shadow: none; color: #000; }
  a { color: #000; }
  .prose h2, .prose h3, strong { color: #000; }
  .switchable, .callout, .toc, .prose address { background: none; border-color: #000; color: #000; }
}

/* ---------- motion: opt-in only ----------
   Everything above is the static design. Motion is added only for visitors who have NOT asked
   for reduced motion, so a browser that reports reduced-motion (including the owner's laptop)
   gets the finished static page and never a half-animated one. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes grid-drift { from { background-position: 0 0; } to { background-position: 0 56px; } }
  .scene .grid { animation: grid-drift 2.8s linear infinite; }
  .btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
