/* QPang Online: shared site chrome (header, footer, type, sticker look).
   Used by index.html, brand.html and character-pictures/index.html.
   Load after theme.css. Page-specific CSS goes below the "HOME" marker or in the page's own file. */

@font-face { font-family:"Lilita One"; src:url("assets/fonts/lilita-one-latin.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Nunito"; src:url("assets/fonts/nunito-latin-wght.woff2") format("woff2");
  font-weight:200 1000; font-style:normal; font-display:swap; }

:root {
  --qp-font-display:"Lilita One","Arial Black",Impact,system-ui,sans-serif;
  --qp-font-body:"Nunito",ui-rounded,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --qp-outline:#101D32;
  --qp-stroke:3px solid var(--qp-outline);
  --qp-sticker:0 5px 0 var(--qp-outline);
  --qp-sticker-sm:0 3px 0 var(--qp-outline);
  --qp-shell:1240px;
  --qp-gutter:clamp(16px,3.4vw,40px);
  --qp-header-h:72px;
}

/* ---------- base ---------- */
*,*::before,*::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:calc(var(--qp-header-h) + 3px); }
body { margin:0; background:var(--qp-page); color:var(--qp-ink); font-family:var(--qp-font-body);
  font-size:17px; line-height:1.55; font-weight:500; overflow-wrap:break-word; }
img { max-width:100%; height:auto; }
a { color:var(--qp-sky-strong); }
:focus-visible { outline:3px solid var(--qp-sky-strong); outline-offset:3px; border-radius:6px; }
.site-shell { width:100%; max-width:var(--qp-shell); margin-inline:auto; padding-inline:var(--qp-gutter); }

.skip-link { position:absolute; left:12px; top:-80px; z-index:100; background:var(--qp-yellow); color:var(--qp-ink);
  font-weight:900; padding:10px 16px; border:var(--qp-stroke); border-radius:10px; }
.skip-link:focus { top:10px; }

/* ---------- buttons: theme.css primitives made chunky ---------- */
.qp-btn { font-family:var(--qp-font-display); font-weight:400; font-size:18px; line-height:1.1; letter-spacing:.02em;
  text-decoration:none; border:var(--qp-stroke); border-radius:14px; box-shadow:var(--qp-sticker); }
.qp-btn:hover { transform:translateY(-2px); box-shadow:0 7px 0 var(--qp-outline); }
.qp-btn:active { transform:translateY(4px); box-shadow:0 1px 0 var(--qp-outline); }
.qp-btn:focus-visible { outline-color:var(--qp-sky-strong); outline-offset:4px; }
.qp-btn--primary { background:var(--qp-orange); color:var(--qp-ink); box-shadow:var(--qp-sticker); }
.qp-btn--primary:hover { background:#FFA63D; }
.qp-btn--primary:active { background:var(--qp-orange-active); }
.qp-btn--secondary { color:#fff; }
.qp-btn--ghost { background:#fff; color:var(--qp-ink); border-color:var(--qp-outline); }
.qp-btn:disabled, .qp-btn[aria-disabled="true"] { background:var(--qp-disabled-bg); color:#4C5B70; box-shadow:none;
  border-color:#8496A8; transform:none; cursor:default; }

/* ---------- header ---------- */
.site-header { position:sticky; top:0; z-index:50; background:var(--qp-paper); border-bottom:var(--qp-stroke); }
.site-header .site-shell { display:flex; align-items:center; gap:clamp(12px,2.4vw,32px); min-height:var(--qp-header-h); }
.site-logo { display:block; flex:none; line-height:0; border-radius:8px; }
.site-logo img { display:block; height:54px; width:auto; }
.site-nav { display:flex; align-items:center; gap:4px; flex:1; min-width:0; }
.site-nav a { display:inline-flex; align-items:center; gap:.4em; min-height:44px; padding:6px 14px; border-radius:10px;
  color:var(--qp-ink); font-weight:800; font-size:16px; text-decoration:none; white-space:nowrap; }
.site-nav a:hover { background:var(--qp-surface); }
.site-nav a[aria-current], .site-nav a.is-current { background:var(--qp-yellow); }
.site-cta { flex:none; min-height:46px; padding:8px 18px; font-size:17px; white-space:nowrap; }

/* Menu toggle is created by site.js, so without JS the nav stays a plain scrollable row. */
.site-nav-toggle { display:none; flex:none; width:46px; height:46px; padding:0; margin-left:auto; cursor:pointer;
  background:#fff; color:var(--qp-ink); border:var(--qp-stroke); border-radius:12px; box-shadow:var(--qp-sticker-sm); }
.site-nav-toggle svg { display:block; margin:auto; }
.site-nav-toggle .icon-close { display:none; }
.site-nav-toggle[aria-expanded="true"] .icon-open { display:none; }
.site-nav-toggle[aria-expanded="true"] .icon-close { display:block; }

@media (max-width:960px) {
  :root { --qp-header-h:64px; }
  .site-logo img { height:52px; }
  .site-header .site-shell { flex-wrap:wrap; column-gap:10px; }
  .site-cta { margin-left:auto; min-height:44px; padding:8px 14px; font-size:16px; box-shadow:var(--qp-sticker-sm); }
  /* no JS: the nav is a full-width row under the logo */
  .site-nav { order:5; flex:0 0 100%; flex-wrap:wrap; padding-bottom:8px; }
  /* JS: the nav collapses behind the toggle */
  .js .site-nav-toggle { display:block; margin-left:0; order:3; }
  .js .site-nav { display:none; position:absolute; left:0; right:0; top:100%; flex-direction:column; align-items:stretch;
    gap:2px; padding:10px var(--qp-gutter) 16px; background:var(--qp-paper); border-bottom:var(--qp-stroke);
    box-shadow:0 18px 30px rgba(16,29,50,.25); overflow:visible; }
  .js .site-nav.is-open { display:flex; }
  .js .site-nav a { min-height:48px; font-size:18px; padding-inline:12px; }
}
/* Eight links only just fit above the collapse point, so tighten them there. */
@media (min-width:961px) and (max-width:1060px) {
  .site-nav { gap:2px; }
  .site-nav a { padding-inline:9px; }
}
@media (max-width:360px) {
  .site-logo img { height:44px; }
  .site-cta { padding:8px 10px; font-size:15px; }
}

/* ---------- footer ---------- */
.site-footer { background:var(--qp-night); color:#DCE8F2; font-size:16px; border-top:var(--qp-stroke); }
.site-footer a { color:#fff; font-weight:800; text-decoration:none; }
.site-footer a:hover { color:var(--qp-yellow); text-decoration:underline; }
.site-footer :focus-visible { outline-color:var(--qp-yellow); }
.site-footer p { margin:0; }
.site-footer .site-shell { display:block; }
.site-footer-main { display:grid; grid-template-columns:minmax(270px,1.7fr) repeat(2,minmax(0,1fr)); gap:32px clamp(24px,3.4vw,52px); padding-block:48px 34px; }
.site-footer-brand img { display:block; height:92px; width:auto; margin-bottom:14px; }
.site-footer-brand a { display:inline-block; }
.site-footer-line { max-width:27ch; font-weight:800; font-size:18px; line-height:1.35; color:#fff; }
.site-footer-stack { display:flex; flex-direction:column; gap:22px; }
.site-footer-col h2 { margin:0 0 10px; padding-bottom:8px; font-family:var(--qp-font-display); font-weight:400; font-size:21px; line-height:1.15; letter-spacing:.01em; color:var(--qp-yellow); border-bottom:3px solid rgba(255,255,255,.16); }
.site-footer-col ul { list-style:none; margin:0; padding:0; }
.site-footer-col a { display:inline-flex; align-items:center; gap:.55em; min-height:40px; }
.site-footer-col .qp-icon { width:1.15em; height:1.15em; color:var(--qp-orange); }
.site-footer-col a:hover .qp-icon { color:inherit; }
.site-footer-col a[aria-current="page"] { color:var(--qp-yellow); }
.site-footer-bottom { display:flex; flex-wrap:wrap; align-items:center; gap:2px 22px; min-height:60px; padding-block:8px; border-top:3px solid rgba(255,255,255,.16); font-size:15px; font-weight:700; }
.site-footer-name { font-family:var(--qp-font-display); font-weight:400; font-size:17px; color:#fff; }
.site-footer-top { display:inline-flex; align-items:center; gap:.4em; min-height:40px; margin-left:auto; }
@media (max-width:980px) {
  .site-footer-main { grid-template-columns:repeat(2,minmax(0,1fr)); padding-block:36px 26px; }
  .site-footer-brand { grid-column:1/-1; display:flex; align-items:center; gap:18px; }
  .site-footer-brand img { height:76px; margin:0; }
}
@media (max-width:560px) {
  .site-footer-main { grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); gap:22px 16px; }
  .site-footer-brand img { height:64px; }
  .site-footer-line { font-size:16px; }
  .site-footer-col { font-size:15px; }
}

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

/* ======================================================================
   HOME (index.html). Everything below is only used by the landing page.
   ====================================================================== */
.sticker-text { font-family:var(--qp-font-display); font-weight:400; color:#fff;
  -webkit-text-stroke:.16em var(--qp-outline); paint-order:stroke fill; text-shadow:0 .08em 0 var(--qp-outline); }
.qp-icon { display:inline-block; width:1.1em; height:1.1em; flex:none; vertical-align:-.17em; }
html:not(.js) .qp-icon { display:none; }
.qp-btn .qp-icon { width:1em; height:1em; }
.site-nav-toggle .qp-icon { font-size:24px; width:1em; height:1em; }
@media (max-width:370px) { .play-actions .qp-btn.qp-btn--huge { font-size:17px; padding-inline:8px; gap:.35em; white-space:nowrap; } }
.qp-btn--big { min-height:56px; padding:12px 26px; font-size:21px; }
.qp-btn--huge { min-height:68px; padding:14px 36px; font-size:clamp(21px,2.4vw,30px); text-align:center; }
[hidden] { display:none !important; }

/* ---------- hero: text panel with a slanted edge, the whole key art beside it ---------- */
.hero { --art-ratio:1.4825; --pad:max(var(--qp-gutter),(100vw - var(--qp-shell)) / 2 + var(--qp-gutter)); --panel:calc(var(--pad) + 372px);
  --h:max(470px,min(100svh - var(--qp-header-h) - 80px,(100vw - var(--panel) + 44px) / var(--art-ratio),900px));
  position:relative; display:flex; min-height:var(--h); overflow:hidden; isolation:isolate; background:#0279D1; }
.hero picture { display:contents; }
.hero-art { position:absolute; top:0; right:0; height:100%; width:auto; max-width:none; aspect-ratio:1527/1030; z-index:-1; }
.hero-panel { flex:none; width:max(var(--panel),calc(100% - var(--h) * var(--art-ratio) + 44px)); filter:drop-shadow(5px 0 0 var(--qp-outline)); }
.hero-copy { height:100%; display:flex; flex-direction:column; justify-content:center; align-items:flex-start;
  padding:24px 62px 28px var(--pad); background:linear-gradient(#0279D1,#0E67B4);
  clip-path:polygon(0 0,100% 0,calc(100% - 44px) 100%,0 100%); }
.hero-flag { display:inline-flex; align-items:center; gap:.4em; margin:0 0 12px; padding:5px 14px; background:var(--qp-outline); color:#fff; font-weight:900; font-size:15px; border-radius:999px; }
.hero-title { margin:0; font-size:clamp(44px,3.5vw,66px); line-height:1.07; letter-spacing:.005em; }
.hero-title span { display:block; }
.hero-title .hero-hl { color:var(--qp-yellow); }
.hero-caption { margin:16px 0 20px; color:#fff; font-weight:700; font-size:17px; line-height:1.45; max-width:440px; }
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
.hero-play { min-width:min(100%,280px); }
.hero-discord { min-height:44px; padding:6px 16px; font-size:16px; }
.hero :focus-visible { outline-color:#fff; box-shadow:0 0 0 3px var(--qp-outline); }
.discord-msg { position:fixed; z-index:200; left:50%; bottom:18px; transform:translateX(-50%); width:max-content; max-width:calc(100vw - 32px); padding:10px 16px; background:var(--qp-outline); color:#fff; border:3px solid #fff; border-radius:12px; box-shadow:0 8px 22px rgba(16,29,50,.35); font-family:var(--qp-font-body); font-weight:800; font-size:15px; line-height:1.3; text-align:center; }
.discord-msg:empty { opacity:0; pointer-events:none; padding:0; border:0; box-shadow:none; }
.play-hint { display:none; margin:0; font-weight:800; font-size:15px; }
.hero .play-hint { color:#fff; margin-top:10px; }
@media (max-width:1023px) { .play-hint { display:block; flex-basis:100%; } }

@media (max-width:1100px) {
  .hero { display:block; min-height:0; background:#0E67B4; }
  .hero-panel { width:auto; filter:none; }
  .hero-copy { align-items:center; text-align:center; padding:20px var(--qp-gutter) 18px; clip-path:none; height:auto; background:linear-gradient(#0E67B4,#0279D1); }
  .hero-title { font-size:clamp(36px,10.5vw,72px); }
  .hero-caption { font-size:16px; max-width:560px; margin:12px 0 16px; }
  .hero-actions { justify-content:center; }
  .hero-art { position:static; display:block; width:100%; height:auto; aspect-ratio:auto; }
}
@media (max-width:420px) {
  .qp-btn--big { font-size:18px; padding:10px 16px; min-height:50px; }
  .hero-actions { gap:10px; }
  .hero-copy { padding-block:12px 12px; }
  .hero-flag { margin-bottom:6px; }
  .hero-title { font-size:clamp(34px,9.6vw,40px); }
  .hero-caption { margin:8px 0 12px; line-height:1.35; }
}

/* ---------- at-a-glance strip ---------- */
.facts { list-style:none; margin:0; padding:12px var(--qp-gutter); display:flex; justify-content:center; gap:4px clamp(14px,3.6vw,52px);
  background:var(--qp-outline); color:#E9F2F9; font-weight:800; font-size:18px; }
.facts li { display:flex; align-items:center; justify-content:center; gap:9px; white-space:nowrap; }
.facts .qp-icon { font-size:26px; width:1em; height:1em; color:var(--qp-orange); }
.facts span { display:flex; align-items:baseline; gap:8px; }
.facts b { font-family:var(--qp-font-display); font-weight:400; font-size:38px; line-height:1.1; color:var(--qp-yellow); }
@media (max-width:980px) { .facts { font-size:15px; gap:4px 16px; } .facts b { font-size:27px; } .facts .qp-icon { font-size:20px; } .facts li { gap:6px; } .facts span { gap:6px; } }
@media (max-width:720px) { .facts { display:grid; grid-template-columns:repeat(6,1fr); gap:6px 4px; font-size:14px; padding-block:8px; }
  .facts span { flex-direction:column; align-items:flex-start; gap:0; line-height:1.15; } .facts b { font-size:24px; line-height:1; }
  .facts li { grid-column:span 2; } .facts li:nth-child(n+4) { grid-column:span 3; } }
@media (max-width:370px) { .facts { grid-template-columns:1fr 1fr; } .facts li, .facts li:nth-child(n+4) { grid-column:auto; } .facts li:last-child { grid-column:1/-1; } }

/* ---------- bands and section heads ---------- */
.band { padding:clamp(46px,6.4vw,88px) 0; position:relative; border-top:var(--qp-stroke); }
.section-head { max-width:760px; margin-bottom:clamp(24px,3vw,40px); }
.section-head--tight { margin-bottom:clamp(14px,1.6vw,22px); }
.section-head h2 { margin:0; font-family:var(--qp-font-display); font-weight:400; line-height:1.05;
  font-size:clamp(34px,4.4vw,60px); letter-spacing:.005em; text-wrap:balance; }
.section-head p { margin:10px 0 0; font-size:clamp(17px,1.5vw,20px); font-weight:600; }
.band--yellow { background-color:var(--qp-yellow); }
.band--night { background:var(--qp-night); color:#E9F2F9; }
.band--night h2 { color:#fff; }
.band--paper { background:var(--qp-paper); }
.band--sky { background:var(--qp-sky-strong); color:#fff; }
.band--sky h2 { color:#fff; }
.band--orange { background:var(--qp-orange); color:var(--qp-ink); }
.band--orange .qp-btn--primary { background:var(--qp-yellow); }
.band--orange .qp-btn--primary:hover { background:#FFE27A; }
.band--yellow :focus-visible, .band--orange :focus-visible, .band--paper :focus-visible { outline-color:var(--qp-outline); }
.band--night :focus-visible, .band--sky :focus-visible { outline-color:var(--qp-yellow); }

/* ---------- modes ---------- */
.modes { display:grid; grid-template-columns:1fr 1fr; gap:clamp(20px,3vw,36px); }
.mode { background:#fff; border:4px solid var(--qp-outline); border-radius:18px; overflow:hidden; box-shadow:8px 8px 0 var(--qp-outline); display:flex; flex-direction:column; }
.mode-art { display:flex; align-items:center; justify-content:center; padding:18px 14px; border-bottom:4px solid var(--qp-outline); min-height:118px; }
.mode-art img { display:block; width:clamp(44px,5.2vw,74px); height:auto; aspect-ratio:1; border:3px solid var(--qp-outline); border-radius:50%; background:var(--qp-orange); }
.mode-art--solo { background:var(--qp-night-surface); gap:clamp(4px,.8vw,12px); }
.mode-art--team { padding-block:18px; background:linear-gradient(100deg,var(--qp-orange) 50%,var(--qp-sky-strong) 50%); gap:clamp(6px,1.2vw,16px); }
.mode-art--team div { display:flex; }
.mode-art--team div img + img { margin-left:-12px; }
.mode-art--team b { font-family:var(--qp-font-display); font-weight:400; font-size:clamp(24px,2.6vw,34px); padding:2px 10px; background:var(--qp-yellow); border:3px solid var(--qp-outline); border-radius:10px; transform:rotate(-5deg); }
.mode-body { padding:18px 24px 24px; }
.mode h3 .qp-icon, .move h3 .qp-icon, .board-col h3 .qp-icon { width:.95em; height:.95em; }
.mode h3, .move h3, .board-col h3 { display:flex; align-items:center; gap:.4em; }
.mode h3, .move h3 { align-items:flex-start; } .mode h3 .qp-icon, .move h3 .qp-icon { margin-top:.1em; }
.mode h3 { margin:0 0 6px; font-family:var(--qp-font-display); font-weight:400; font-size:clamp(29px,3vw,38px); line-height:1.1; }
.mode p { margin:0; }
@media (max-width:760px) {
  .modes { grid-template-columns:1fr; gap:24px; }
  .mode { box-shadow:6px 6px 0 var(--qp-outline); }
  .mode-art { min-height:88px; padding:14px 8px; }
  .mode-art img { width:clamp(38px,12.4vw,54px); border-width:2px; }
  .mode-art--solo { gap:2px; }
  .mode-art--team div img + img { margin-left:-10px; }
  .mode-body { padding:14px 18px 18px; }
}

/* ---------- gameplay ---------- */
.gameplay { display:grid; grid-template-columns:minmax(0,4.4fr) minmax(0,7.6fr); gap:clamp(28px,5vw,72px); align-items:center; }
.gameplay-intro h2 { margin:0; font-family:var(--qp-font-display); font-weight:400; line-height:1.05; font-size:clamp(34px,3.6vw,52px); text-wrap:balance; }
.gameplay-num { display:block; font-size:clamp(90px,10vw,150px); line-height:1; color:var(--qp-yellow); margin-bottom:6px; }
.gameplay-intro p { font-size:clamp(17px,1.5vw,19px); margin:14px 0 0; }
.moves { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:clamp(14px,1.8vw,22px); }
.move { padding:18px 20px 20px; color:var(--qp-ink); border:4px solid #fff; border-radius:14px; }
.move h3 { margin:0 0 6px; font-family:var(--qp-font-display); font-weight:400; font-size:clamp(22px,1.72vw,25px); line-height:1.1; }
.move p { margin:0; font-weight:600; font-size:16px; line-height:1.45; }
.move--a { background:var(--qp-orange); } .move--b { background:var(--qp-yellow); } .move--c { background:#CFEFFF; } .move--d { background:#D9CBFA; }
@media (max-width:900px) { .gameplay { grid-template-columns:1fr; } }
@media (max-width:520px) { .moves { grid-template-columns:1fr; } .gameplay-num { font-size:84px; } }

/* ---------- roster ---------- */
.js .roster-picker { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:clamp(8px,1.2vw,14px); margin-bottom:clamp(14px,1.6vw,20px); }
.roster-picker button { display:flex; flex-direction:column; padding:0; cursor:pointer; overflow:hidden; background:#fff; color:var(--qp-ink);
  border:var(--qp-stroke); border-radius:14px; box-shadow:var(--qp-sticker-sm);
  font:inherit; font-family:var(--qp-font-display); font-size:19px; line-height:1.1; transition:transform .14s, box-shadow .14s; }
.roster-picker img { display:block; width:100%; height:auto; aspect-ratio:1/1.3; object-fit:cover; object-position:50% 0; background:var(--qp-orange); border-bottom:3px solid var(--qp-outline); }
.roster-picker span { display:block; padding:7px 4px 8px; white-space:nowrap; }
.roster-picker button:hover { transform:translateY(-2px); box-shadow:0 5px 0 var(--qp-outline); }
.roster-picker button[aria-selected="true"] { background:var(--qp-yellow); transform:translateY(-3px); box-shadow:0 6px 0 var(--qp-outline); }
.char { padding:clamp(16px,2vw,26px) clamp(18px,2.4vw,32px); background:var(--qp-surface); border:var(--qp-stroke); border-radius:14px; margin-bottom:16px; }
.char h3 { margin:0 0 4px; font-family:var(--qp-font-display); font-weight:400; font-size:clamp(28px,2.8vw,38px); line-height:1.1; }
.char-bio { margin:0 0 12px; font-size:clamp(16px,1.4vw,18px); font-weight:600; max-width:78ch; }
.char-stats { display:flex; flex-wrap:wrap; gap:6px clamp(20px,3vw,44px); margin:0; }
.char-stats dt { font-weight:900; display:inline; }
.char-stats dt .qp-icon { margin-right:.3em; color:var(--qp-sky-strong); } .char-stats dt::after { content:": "; }
.char-stats dd { display:inline; margin:0; font-weight:600; }
.roster-cta { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; margin-top:16px; padding:14px clamp(18px,2.4vw,32px) 16px; background:#0279D1; border:var(--qp-stroke); border-radius:14px; box-shadow:var(--qp-sticker-sm); }
.roster-cta-text { margin:0; color:#fff; font-family:var(--qp-font-display); font-size:clamp(22px,2.4vw,28px); line-height:1.15; }
.roster-cta-text b { font-weight:400; color:var(--qp-yellow); }
.roster-cta .qp-btn:focus-visible { outline-color:#fff; }
/* Panels share one grid cell, so the tallest bio reserves the height and switching never moves the page. */
.js .char-stage { display:grid; }
.js .char-stage .char { grid-area:1/1; margin:0; visibility:hidden; }
.js .char-stage .char.is-active { visibility:visible; }
@media (max-width:760px) {
  .js .roster-picker { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .roster-picker img { aspect-ratio:1/.88; object-position:50% 4%; }
  .roster-picker span { padding:4px 2px 5px; font-size:17px; }
  .char-stats { display:block; }
  .char-stats div + div { margin-top:4px; }
}

/* ---------- screens ---------- */
.screens { display:grid; grid-template-columns:1fr 1fr; gap:clamp(16px,2vw,24px); margin-bottom:clamp(20px,2.4vw,28px); }
.screen { margin:0; background:#fff; color:var(--qp-ink); border:4px solid var(--qp-outline); border-radius:14px; overflow:hidden; box-shadow:6px 6px 0 var(--qp-outline); }
.screen img { display:block; width:100%; height:auto; }
.screen figcaption { padding:8px 14px 10px; font-size:15px; font-weight:800; border-top:3px solid var(--qp-outline); }
.screens-more { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; padding:16px 22px; background:var(--qp-yellow); color:var(--qp-ink);
  border:4px solid var(--qp-outline); border-radius:14px; box-shadow:6px 6px 0 var(--qp-outline); }
.screens-more p { margin:0; flex:1 1 220px; font-weight:800; font-size:17px; line-height:1.35; }
.screens-more b { font-family:var(--qp-font-display); font-weight:400; font-size:24px; margin-right:6px; }
@media (max-width:760px) { .screens { grid-template-columns:1fr; gap:20px; } }

/* ---------- play ---------- */
.play-head { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:20px; }
.play-head .section-head { margin-bottom:0; }
.play-head p { font-weight:700; }
.play-chick { flex:none; width:clamp(92px,12vw,150px); height:auto; border-radius:50%; border:4px solid var(--qp-outline); background:#fff; box-shadow:0 6px 0 var(--qp-outline); }
@media (max-width:560px) { .play-chick { display:none; } }
.play-actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px 16px; margin-bottom:clamp(28px,3.4vw,44px); }
.board { display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(16px,2vw,24px); align-items:stretch; }
.board-col { background:#fff; color:var(--qp-ink); border-radius:14px; overflow:hidden; border:4px solid var(--qp-outline); box-shadow:6px 6px 0 var(--qp-outline); }
.board-col h3 { margin:0; padding:12px 18px; font-family:var(--qp-font-display); font-weight:400; font-size:24px; line-height:1.2; border-bottom:3px solid var(--qp-outline); }
.board-col--live h3 { background:#A6E8C8; }
.board-col--later h3 { background:#D9CBFA; }
.board-col ul { list-style:none; margin:0; padding:12px 18px 16px; display:grid; gap:8px; font-weight:700; font-size:16px; line-height:1.35; }
.board-col li { position:relative; padding-left:26px; }
.board-col li .qp-icon { position:absolute; left:0; top:.14em; width:1em; height:1em; color:var(--qp-ink-soft); }
.board-col--live li .qp-icon { color:#087B70; }
@media (max-width:760px) { .board { grid-template-columns:1fr; } .qp-btn--huge { width:100%; } body { font-size:16px; } }

/* ---------- long-form pages (terms, privacy) ---------- */
.legal-head { background:#0279D1; color:#fff; padding-block:clamp(22px,3.2vw,36px); border-bottom:var(--qp-stroke); }
.legal-head h1 { margin:0; font-family:var(--qp-font-display); font-weight:400; font-size:clamp(38px,4.6vw,58px); line-height:1.05; }
.legal-head p { margin:8px 0 0; font-weight:800; font-size:17px; }
.legal-wrap { display:grid; grid-template-columns:270px minmax(0,72ch); justify-content:center; gap:clamp(32px,4vw,56px); align-items:start; padding-block:clamp(24px,3.4vw,44px) clamp(44px,6vw,80px); }
.legal-toc { position:sticky; top:calc(var(--qp-header-h,72px) + 16px); max-height:calc(100vh - var(--qp-header-h,72px) - 32px); overflow:auto; padding:14px 12px; background:#fff; border:3px solid var(--qp-outline); border-radius:14px; }
.legal-toc summary { padding:0 8px 6px; font-family:var(--qp-font-display); font-size:20px; list-style:none; pointer-events:none; }
.legal-toc summary::-webkit-details-marker { display:none; }
.legal-toc ol { margin:0; padding:0; list-style:none; }
.legal-toc a { display:flex; align-items:center; min-height:38px; padding:5px 8px; border-radius:8px; font-size:15px; font-weight:700; line-height:1.25; color:var(--qp-ink); text-decoration:none; }
.legal-toc a:hover { background:var(--qp-surface); color:var(--qp-ink); }
.legal-toc a[aria-current] { background:var(--qp-yellow); }
.legal-body { font-size:17px; line-height:1.65; font-weight:500; color:var(--qp-ink); }
.legal-body h2 { margin:34px 0 10px; padding-top:30px; border-top:3px solid #D5E2EC; font-family:var(--qp-font-display); font-weight:400; font-size:clamp(25px,2.6vw,31px); line-height:1.15; scroll-margin-top:16px; }
.legal-body h3 { margin:24px 0 4px; font-size:18px; font-weight:900; color:#075C8D; }
.legal-body p { margin:0 0 14px; }
.legal-body ul { margin:0 0 14px; padding-left:1.3em; }
.legal-body li { margin-bottom:6px; }
.legal-body a { color:#075C8D; font-weight:700; overflow-wrap:anywhere; }
.legal-body code { font-size:.92em; font-weight:700; overflow-wrap:anywhere; }
.legal-summary + h2 { padding-top:0; border-top:0; }
.legal-lead { font-size:19px; font-weight:700; line-height:1.5; }
.legal-summary { margin:0 0 6px; padding:18px 22px; background:#FFF2C4; border:3px solid var(--qp-outline); border-radius:14px; box-shadow:var(--qp-sticker-sm); }
.legal-body .legal-summary-title { margin:0 0 8px; font-family:var(--qp-font-display); font-size:24px; line-height:1.15; }
.legal-summary ul { margin:0 0 10px; }
.legal-summary li:last-child { margin-bottom:0; }
.legal-body .legal-summary-note { margin:0; font-size:15px; font-weight:700; color:var(--qp-ink-soft); }
.legal-note { margin:0 0 18px; padding:14px 16px; background:#FFF2C4; border:3px solid var(--qp-outline); border-radius:14px; }
.legal-note p:last-child { margin-bottom:0; }
.legal-table { width:100%; margin:0 0 18px; border-collapse:collapse; font-size:16px; line-height:1.5; }
.legal-table th, .legal-table td { padding:9px 10px; border:2px solid #C9D7E3; text-align:left; vertical-align:top; }
.legal-table thead th { background:var(--qp-outline); color:#fff; border-color:var(--qp-outline); font-weight:800; }
.legal-table tbody th { width:32%; font-weight:800; background:#fff; }
.legal-table td { background:#fff; }
@media (max-width:980px) {
  /* Block, not grid: a grid row would end the sticky contents bar right after its own height. */
  .legal-wrap { display:block; max-width:calc(72ch + var(--qp-gutter) * 2); }
  .legal-toc { position:static; max-height:none; margin-bottom:22px; padding:0; }
  .js .legal-toc { position:sticky; top:calc(var(--qp-header-h,64px) + 8px); z-index:5; box-shadow:var(--qp-sticker-sm); overflow:visible; }
  .legal-toc summary { display:flex; align-items:center; justify-content:space-between; min-height:48px; padding:6px 14px; font-size:19px; pointer-events:auto; cursor:pointer; }
  .legal-toc summary::after { content:""; width:10px; height:10px; margin-right:4px; border-right:3px solid var(--qp-ink); border-bottom:3px solid var(--qp-ink); transform:rotate(45deg) translate(-2px,-2px); transition:transform .14s; }
  .legal-toc details[open] summary::after { transform:rotate(225deg) translate(-2px,-2px); }
  .legal-toc ol { max-height:min(60vh,430px); overflow:auto; padding:0 6px 8px; border-top:2px solid #D5E2EC; }
  .legal-toc a { min-height:44px; }
  .legal-body h2 { scroll-margin-top:62px; }
}
@media (max-width:640px) {
  /* Tables become stacked cards: narrow columns were breaking keys like tinbolt.name mid-word. */
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display:block; width:auto; }
  .legal-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .legal-table tr { margin-bottom:10px; border:2px solid #C9D7E3; border-radius:10px; overflow:hidden; background:#fff; }
  .legal-table tbody th { width:auto; padding:9px 12px 0; border:0; }
  .legal-table td { padding:2px 12px 10px; border:0; }
}
@media (max-width:520px) { .legal-body { font-size:16px; } .legal-lead { font-size:17px; } .legal-table { font-size:15px; } .legal-summary { padding:14px 16px; } }

@media (max-width:640px) { .roster-cta { flex-direction:column; align-items:stretch; text-align:center; } .hero-play { width:100%; } }

/* ======================================================================
   SHOP (shop.html). Everything below is only used by the Cash shop.
   ====================================================================== */
.shop-head .site-shell { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.shop-head-text { min-width:0; }
.shop-crew { display:flex; flex:none; }
.shop-crew img { width:clamp(58px,6.6vw,88px); height:auto; margin-left:-14px; background:#fff; border:var(--qp-stroke); border-radius:50%; box-shadow:0 4px 0 var(--qp-outline); }
.shop-crew img:nth-child(2) { position:relative; z-index:1; transform:translateY(-4px) scale(1.08); }
.shop-wrap { display:grid; gap:clamp(24px,3vw,36px); max-width:calc(920px + var(--qp-gutter) * 2); padding-block:clamp(22px,3vw,36px) clamp(44px,6vw,72px); }
.shop-wrap > * { min-width:0; }
.shop-note { margin:0; font-size:17px; line-height:1.45; }
.shop-form { display:grid; gap:24px; padding:clamp(18px,2.6vw,28px); background:#fff; border:4px solid var(--qp-outline); border-radius:18px; box-shadow:8px 8px 0 var(--qp-outline); }
.shop-form[hidden], .shop-info[hidden], .shop-paid[hidden] { display:none; }
.shop-form :focus-visible { outline-color:var(--qp-sky-strong); }
.shop-fieldset { min-width:0; margin:0; padding:0; border:0; }
.shop-fieldset legend, .shop-field label { display:flex; align-items:center; gap:10px; padding:0; font-family:var(--qp-font-display); font-weight:400; font-size:clamp(22px,2.4vw,26px); line-height:1.15; }
.shop-fieldset legend { margin-bottom:18px; }
.shop-step { display:inline-grid; place-items:center; flex:none; width:32px; height:32px; background:var(--qp-sky-strong); color:#fff; border-radius:50%; font-size:18px; }

/* Bundles: the radio stays real and visible; the whole card is its label. */
.shop-bundles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(12px,2vw,20px); }
.shop-bundle { position:relative; display:block; min-width:0; color:var(--qp-ink); cursor:pointer; }
.shop-bundle input { position:absolute; top:12px; left:12px; z-index:1; width:24px; height:24px; margin:0; cursor:pointer; accent-color:var(--qp-outline); }
.shop-card { position:relative; display:flex; flex-direction:column; align-items:center; gap:6px; height:100%; padding:16px 12px 16px; text-align:center; background:var(--qp-surface);
  border:var(--qp-stroke); border-radius:14px; box-shadow:var(--qp-sticker-sm); transition:transform .14s, box-shadow .14s, background .14s; }
.shop-bundle:hover .shop-card { transform:translateY(-2px); box-shadow:0 5px 0 var(--qp-outline); }
.shop-bundle input:checked + .shop-card { background:var(--qp-yellow); }
.shop-bundle input:focus-visible { outline-offset:2px; }
.shop-bundle input:focus-visible + .shop-card { outline:3px solid var(--qp-sky-strong); outline-offset:3px; }
.shop-coins { display:flex; justify-content:center; height:44px; margin-bottom:2px; }
.shop-coins i { display:grid; place-items:center; width:40px; height:40px; margin-inline:-7px; background:#FFB224; border:3px solid var(--qp-outline); border-radius:50%; box-shadow:inset 0 0 0 3px #FFE08A, 0 3px 0 var(--qp-outline); font-family:var(--qp-font-display); font-style:normal; font-size:19px; line-height:1; }
.shop-coins i::before { content:"C"; }
.shop-amount { font-weight:800; font-size:17px; line-height:1.1; }
.shop-amount b { display:block; font-family:var(--qp-font-display); font-weight:400; font-size:clamp(34px,4vw,42px); line-height:1.05; }
.shop-price { font-family:var(--qp-font-display); font-size:25px; line-height:1.1; }
.shop-badge { position:absolute; top:-12px; right:10px; padding:3px 10px; background:var(--qp-orange); border:3px solid var(--qp-outline); border-radius:10px; font-weight:900; font-size:14px; line-height:1.2; white-space:nowrap; transform:rotate(3deg); }
.shop-badge--value { background:#A6E8C8; }

.shop-field label { margin-bottom:12px; }
.shop-field .qp-input { display:block; width:100%; min-height:52px; font:inherit; font-size:18px; font-weight:700; border:var(--qp-stroke); }
.shop-field .qp-input:focus-visible { outline:3px solid var(--qp-sky-strong); outline-offset:2px; border-color:var(--qp-outline); }
.shop-field .qp-input[aria-invalid="true"] { border-color:var(--qp-danger); }
.shop-hint { margin:8px 0 0; font-size:15px; font-weight:700; line-height:1.4; color:var(--qp-ink-soft); }

/* Stays in the page while empty so screen readers keep watching it. */
.shop-status { margin:0; font-weight:800; font-size:16px; line-height:1.4; }
.shop-status:empty { position:absolute; }
.shop-status--error { padding:12px 14px; color:var(--qp-ink); background:#FFE3E7; border:3px solid var(--qp-danger); border-radius:12px; }
.shop-status--quiet { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

.shop-pay { display:flex; align-items:center; justify-content:space-between; gap:16px 24px; padding-top:20px; border-top:3px solid #D5E2EC; }
.shop-summary { display:grid; gap:1px; margin:0; font-weight:700; font-size:15px; line-height:1.35; color:var(--qp-ink-soft); }
.shop-summary strong { font-family:var(--qp-font-display); font-weight:400; font-size:clamp(22px,2.4vw,26px); line-height:1.2; color:var(--qp-ink); }
.shop-submit { flex:none; min-width:300px; }

.shop-info h2 { margin:0 0 14px; font-family:var(--qp-font-display); font-weight:400; font-size:clamp(24px,2.6vw,30px); line-height:1.15; }
.shop-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.shop-fact { padding:16px; background:#fff; border:3px solid #C9D7E3; border-radius:14px; }
.shop-fact h3 { display:flex; align-items:center; gap:8px; margin:0 0 6px; font-weight:900; font-size:17px; line-height:1.25; }
.shop-fact h3 .qp-icon { color:var(--qp-sky-strong); }
.shop-fact p { margin:0; font-size:16px; font-weight:500; line-height:1.5; }
.shop-fact a, .shop-paid-help a { color:#075C8D; font-weight:700; overflow-wrap:anywhere; }
/* Taller tap area without changing the line height. */
.shop-fact a, .shop-paid-help a { padding-block:.5em; }

.shop-paid { justify-items:center; display:grid; gap:12px; padding:clamp(24px,4vw,44px) clamp(18px,4vw,44px); text-align:center; background:#fff; border:4px solid var(--qp-outline); border-radius:18px; box-shadow:8px 8px 0 var(--qp-outline); }
.shop-paid:focus { outline:none; }
.shop-paid-icon { display:grid; place-items:center; width:64px; height:64px; background:#A6E8C8; border:var(--qp-stroke); border-radius:50%; font-size:32px; }
.shop-paid h2 { margin:0; font-family:var(--qp-font-display); font-weight:400; font-size:clamp(28px,3.4vw,38px); line-height:1.1; }
.shop-paid p { max-width:56ch; margin:0; font-size:18px; font-weight:600; line-height:1.5; }
.shop-paid-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:14px; margin-block:10px 6px; }
.shop-paid .shop-paid-help { font-size:16px; font-weight:500; color:var(--qp-ink-soft); }

@media (max-width:900px) { .shop-facts { grid-template-columns:minmax(0,1fr); gap:12px; } }
@media (max-width:760px) {
  .shop-pay { flex-direction:column; align-items:stretch; }
  .shop-submit { width:100%; min-width:0; }
}
@media (max-width:640px) {
  /* Title and crew share the first row so the lead isn't squeezed beside the art. */
  .shop-head .site-shell { display:grid; grid-template-columns:1fr auto; gap:8px 8px; align-items:center; }
  .shop-head-text { display:contents; }
  .shop-head h1 { grid-area:1 / 1; font-size:34px; }
  .shop-head p { grid-area:2 / 1 / 2 / 3; margin:0; font-size:16px; }
  .shop-crew { grid-area:1 / 2; padding-left:12px; }
  .shop-crew img { width:50px; }
  .shop-form, .shop-paid { box-shadow:6px 6px 0 var(--qp-outline); margin-right:6px; }
  .shop-bundles { grid-template-columns:minmax(0,1fr); gap:18px; }
  .shop-card { display:grid; grid-template-columns:50px minmax(0,1fr) auto; align-items:center; column-gap:8px; padding:20px 12px 12px 44px; text-align:left; }
  .shop-bundle input { top:50%; left:12px; margin-top:-8px; }
  .shop-coins { justify-content:flex-start; height:auto; margin:0; }
  .shop-coins i { flex:none; width:30px; height:30px; margin:0 -20px 0 0; box-shadow:inset 0 0 0 2px #FFE08A, 0 2px 0 var(--qp-outline); font-size:14px; }
  .shop-amount { display:flex; align-items:baseline; gap:4px; font-size:15px; white-space:nowrap; }
  .shop-amount b { font-size:28px; }
  .shop-price { font-size:21px; }
  .shop-badge { top:-13px; font-size:13px; }
  .shop-paid-actions { width:100%; }
  .shop-paid-actions .qp-btn { flex:1 1 100%; }
}
@media (max-width:370px) {
  .shop-card { grid-template-columns:minmax(0,1fr) auto; }
  .shop-coins { display:none; }
}
