/* STRATEGRA static pages (games, draws, help and legal pages built by tools/build-site.mjs).
   Same tokens as css/app.css (deep navy, gold for value, Outfit), set quieter: hairlines, one gold accent, no glow.
   No JavaScript, no inline styles: works under the app's strict CSP. Mobile first; no horizontal scrolling. */
@font-face { font-family: 'Outfit'; src: url('/fonts/Outfit-Variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #050816; --bg-2: #081027; --panel: #0b1330; --panel-2: #101a3a;
  --line: rgba(166, 178, 214, .14); --line-2: rgba(166, 178, 214, .26);
  --text: #eef2ff; --body: #c8d0ec; --muted: #a6b2d6; --faint: #8591bb;
  --gold: #f5c04a; --gold-2: #ffdc80; --gold-line: rgba(245, 192, 74, .34); --gold-wash: rgba(245, 192, 74, .06);
  --r: 18px; --r-sm: 14px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1140px; --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 760px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background-color: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
  background-image: radial-gradient(1100px 480px at 85% -140px, rgba(124, 58, 237, .10), transparent 70%),
    radial-gradient(900px 440px at -10% -60px, rgba(37, 99, 235, .08), transparent 70%);
  background-repeat: no-repeat;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-2); text-decoration: underline; text-decoration-color: rgba(255, 220, 128, .38); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
strong { color: var(--text); font-weight: 600; }
.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; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #1b1305; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: filter .15s, border-color .15s, background-color .15s;
}
.btn-gold { background: linear-gradient(180deg, #f9d983, #e3ac3c); color: #1b1305; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 24px -14px rgba(245, 192, 74, .7); }
.btn-gold:hover { filter: brightness(1.06); color: #1b1305; }
.btn-line { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-line:hover { border-color: var(--gold-line); background: var(--gold-wash); }
.btn-head { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* ---------- header ---------- */
.mast { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(5, 8, 22, .82); }
.mast-in { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .2em; }
.brand img { width: 28px; height: 28px; flex: none; }
.brand:hover { color: var(--text); }
@media (max-width: 359px) { .mast .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.topnav { display: none; margin-left: auto; }
.topnav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.topnav a { display: block; padding: 10px 12px; color: var(--muted); text-decoration: none; font-size: 14.5px; border-radius: 10px; }
.topnav a:hover { color: var(--text); }
.topnav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--gold); border-radius: 0; }
.menu { margin-left: auto; }
.menu summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; cursor: pointer; list-style: none;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); font-size: 14px; font-weight: 500;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.menu[open] summary { border-color: var(--gold-line); }
.menu[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 6px var(--gutter) 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.menu-panel ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.menu-panel a { display: block; padding: 13px 2px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-panel a[aria-current="page"] { color: var(--gold-2); }
@media (min-width: 980px) { .topnav { display: block; } .menu { display: none; } .mast-in { gap: 18px; } }

/* ---------- hero ---------- */
.hero { padding: 26px 0 6px; }
.hero-in { display: grid; gap: 26px; align-items: center; }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--faint); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
h1 { font-size: clamp(2.15rem, 8vw, 3.6rem); font-weight: 500; line-height: 1.06; letter-spacing: -.02em; margin: 0 0 16px; }
.lede { font-size: 1.125rem; line-height: 1.6; color: var(--muted); max-width: 34em; margin: 0 0 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-media { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--gold-line); background: var(--panel); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .95); aspect-ratio: 16 / 9; }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; }
@media (min-width: 900px) {
  .hero { padding: 54px 0 18px; }
  .with-media .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 52px; }
}

/* ---------- content ---------- */
.content { padding: 18px 0 0; }
.sec { padding: 30px 0 18px; border-top: 1px solid var(--line); }
.article > .sec:first-child { border-top: 0; }
.sec h2, .related h2, .cta h2 { font-size: clamp(1.35rem, 4.6vw, 1.75rem); font-weight: 500; letter-spacing: -.01em; margin: 0 0 16px; }
.sec h2 { display: flex; align-items: center; gap: 14px; }
.sec h2::before { content: ''; flex: none; width: 24px; height: 1px; background: var(--gold); }
.sec > p, .sec > ul:not([class]), .qa p { color: var(--body); max-width: 44em; }
.sec > p { margin: 0 0 16px; }
.sec > ul:not([class]) { margin: 0 0 16px; padding-left: 1.2em; }
.sec > ul:not([class]) li { margin: 7px 0; padding-left: 4px; }
.sec > ul:not([class]) li::marker { color: var(--gold); }
.note { padding: 12px 18px; border-left: 2px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--gold-wash); color: var(--text) !important; }
.updated { margin: 22px 0 0; font-size: 13px; color: var(--faint); }

/* steps */
.steps { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: step; display: grid; gap: 12px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.steps li { counter-increment: step; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .2em; color: var(--gold); }
.steps h3 { font-size: 1.04rem; font-weight: 600; margin: 0 0 6px; }
.steps p { color: var(--body); font-size: .97rem; }

/* cards */
.cards { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); scroll-margin-top: 16px; }
.card:target { border-color: var(--gold-line); background: var(--panel-2); }
.card h3 { font-size: 1.12rem; font-weight: 600; }
.card p { color: var(--body); font-size: .96rem; }
.card > p:first-of-type { flex: 1; }
.card-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.card-links a { display: inline-flex; align-items: center; min-height: 40px; font-size: 14.5px; font-weight: 500; }

/* prizes */
.prizes { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.prize { margin: 0; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.prize img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prize figcaption { padding: 12px 14px 14px; }
.prize b { display: block; font-weight: 600; }
.prize span { color: var(--muted); font-size: .92rem; }
/* A prize card that links to its prize page: the name's link covers the whole card. */
.prize-link { position: relative; transition: border-color .15s; }
.prize-link:hover, .prize-link:focus-within { border-color: var(--gold-line); }
.prize-link b a { color: var(--text); text-decoration: none; }
.prize-link b a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }

/* call to play, inside the copy */
.play { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 4px 0 18px; }
.play p { color: var(--muted); font-size: .95rem; max-width: 36em; }
.steps li { scroll-margin-top: 16px; }

/* glossary */
.terms { margin: 0 0 16px; max-width: 46em; }
.terms > div { padding: 14px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.terms > div:first-child { border-top: 0; padding-top: 0; }
.terms > div:target { padding-left: 12px; border-left: 2px solid var(--gold); background: var(--gold-wash); }
.terms dt { margin: 0 0 4px; font-weight: 600; color: var(--text); }
.terms dd { margin: 0; color: var(--body); }

/* figure */
.figure { margin: 6px 0 16px; max-width: 720px; }
.figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.figure figcaption { margin-top: 8px; font-size: 13.5px; color: var(--faint); }

/* tables */
.table-wrap { max-width: 900px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { border-top: 0; background: rgba(255, 255, 255, .02); color: var(--gold); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
tbody th { color: var(--text); font-weight: 600; }
td { color: var(--body); }
@media (max-width: 640px) {
  .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  table, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody tr { margin: 0 0 10px; padding: 4px 0 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
  tbody th { border-top: 0; padding: 12px 14px 6px; }
  td { border-top: 0; padding: 4px 14px 8px; }
  td::before { content: attr(data-label); display: block; margin-bottom: 1px; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
}

/* questions */
.qa h3 { font-size: 1.06rem; font-weight: 600; margin: 22px 0 6px; }
.qa h3:first-child { margin-top: 0; }

/* keep exploring, share, call to action */
.related { padding: 34px 0 6px; border-top: 1px solid var(--line); margin-top: 26px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.related a { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); color: var(--text); text-decoration: none; }
.related a:hover { border-color: var(--gold-line); }
.related b { display: block; font-weight: 600; margin-bottom: 4px; }
.related span { color: var(--muted); font-size: .93rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 30px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share h2 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.share ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.share a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; }
.share a:hover { border-color: var(--gold-line); background: var(--gold-wash); }
.cta { margin: 34px 0 0; padding: 34px 22px; border: 1px solid var(--gold-line); border-radius: 22px; text-align: center;
  background: radial-gradient(600px 200px at 50% 0, rgba(245, 192, 74, .09), transparent 70%), var(--panel); }
.cta p { color: var(--muted); margin: 0 0 20px; }
.cta .actions { justify-content: center; }

/* ---------- footer ---------- */
.foot { margin-top: 56px; padding: 40px 0 28px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { margin-top: 12px; max-width: 26em; color: var(--muted); font-size: 14.5px; }
.foot h2 { margin: 0 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 14.5px; }
.foot li a:hover { color: var(--text); }
.fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: auto; }
}

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