:root {
  color-scheme: dark;
  --ink: #10141b;
  --panel: #191f29;
  --raised: color-mix(in srgb, var(--line) 28%, var(--panel));
  --line: #46515f;
  --paper: #f6f2e8;
  --body: #d2d6dd;
  --muted: #a8b2bf;
  --acid: #e3fb4b;
  --ice: #8de7f0;
  --sans: system-ui, sans-serif;
  --display: "Barlow Condensed", system-ui, sans-serif;
  --mono: ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--ink); color: var(--body); font: 16px/1.58 var(--sans); }
body::before {
  content: ""; position: absolute; z-index: -1; inset: 65px 0 auto; height: 540px; pointer-events: none;
  background: radial-gradient(ellipse at 79% 12%, color-mix(in srgb, var(--line) 36%, transparent), transparent 61%), linear-gradient(145deg,var(--panel),transparent 52%);
}
img, svg { max-width: 100%; }
figure { margin: 0; }
button, input { font: inherit; }
a { color: var(--ice); text-underline-offset: .18em; }
a:hover { color: var(--acid); }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 4px; }
::selection { background: var(--acid); color: var(--ink); }
.wrap { width: min(1180px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: absolute; z-index: 10; left: 1rem; top: -8rem; padding: 10px 16px; background: var(--paper); color: var(--ink); }
.skip:focus { top: 8px; }
.mast { background: var(--ink); border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; gap: clamp(14px,2.5vw,38px); min-height: 69px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); font: 800 24px/1 var(--display); text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.mark { display: inline-grid; place-items: center; width: 36px; height: 36px; padding-right: 2px; background: var(--acid); color: var(--ink); clip-path: polygon(14% 0,100% 0,91% 76%,70% 100%,0 100%); font: 900 26px/1 var(--display); }
.brandtext { display: inline-block; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; margin-inline-start: auto; }
.nav a { padding-block: 10px; color: var(--body); text-decoration: none; font-size: 14px; font-weight: 650; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--acid); }
.playtop { flex: none; color: var(--paper); border: 1px solid var(--line); padding: 8px 13px; border-radius: 3px; font-size: 13px; font-weight: 750; text-decoration: none; }
.playtop:hover { color: var(--acid); border-color: var(--acid); }
.hero { display: grid; grid-template-columns: minmax(0,.93fr) minmax(0,1.07fr); align-items: center; gap: clamp(28px,5vw,74px); padding-block: clamp(35px,4.5vw,70px) clamp(33px,4.1vw,58px); }
.hero-copy { min-width: 0; }
.eyebrow, .kicker { display: block; margin: 0 0 10px; color: var(--ice); font: 750 12px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.hero .eyebrow::before, .sectionhead .kicker::before { display: inline-block; content: ""; width: 24px; height: 3px; background: var(--ice); margin: 0 9px .22em 0; }
h1, h2, h3 { margin: 0; color: var(--paper); }
h1, h2 { font-family: var(--display); font-weight: 900; }
.hero h1 { margin-block: 14px 18px; font-size: clamp(54px,6.2vw,86px); letter-spacing: -.025em; line-height: .98; text-transform: uppercase; }
.hero h1 .accent { display: block; color: var(--acid); }
.lede { margin: 0; max-width: 54ch; font-size: clamp(15px,1.26vw,18px); line-height: 1.55; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 23px; }
.btn, .copy { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; padding: 9px 16px; border: 1px solid transparent; border-radius: 3px; font: 750 14px/1.25 var(--sans); text-align: center; text-decoration: none; cursor: pointer; }
.primary { background: var(--acid); color: var(--ink); }
.primary:hover { background: color-mix(in srgb, var(--acid) 75%, var(--paper)); color: var(--ink); }
.secondary, .copy { background: var(--raised); color: var(--paper); border-color: var(--line); }
.secondary:hover, .copy:hover { background: var(--raised); border-color: var(--ice); color: var(--ice); }
.btn svg, .copy svg, .playtop svg, .card-link svg { width: 16px; height: 16px; vertical-align: -.14em; }
.hero-art { position: relative; min-width: 0; padding: 5px; border: 1px solid var(--line); border-radius: 4px 4px 2px 2px; background: var(--panel); box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 65%, transparent); }
.hero-art::before, .hero-art::after { content: ""; position: absolute; z-index: 1; width: 48px; height: 15px; pointer-events: none; }
.hero-art::before { top: -2px; left: -2px; border-top: 3px solid var(--ice); border-left: 3px solid var(--ice); }
.hero-art::after { right: -2px; bottom: -2px; border-bottom: 3px solid var(--acid); border-right: 3px solid var(--acid); }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--raised); border-radius: 1px; }
figcaption, .meta, .strip-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.hero-art figcaption { padding: 6px 6px 2px; }
.code-strip { display: grid; grid-template-columns: minmax(120px,.8fr) minmax(0,1.2fr) auto; gap: 5px 20px; align-items: center; padding: 16px 22px; background: var(--panel); border: 1px solid var(--line); border-inline-start: 4px solid var(--acid); border-radius: 3px; }
.strip-title .kicker { margin-bottom: 4px; color: var(--acid); }
.strip-title h2 { font-size: clamp(22px,2vw,29px); line-height: 1.05; letter-spacing: -.01em; }
.strip-code { min-width: 0; padding-inline-start: 22px; border-inline-start: 1px solid var(--line); }
.strip-code code, .code-panel code { color: var(--paper); font: 800 clamp(20px,2.05vw,30px)/1.1 var(--mono); letter-spacing: .035em; overflow-wrap: anywhere; }
.strip-code .reward { display: block; color: var(--body); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.strip-action { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.strip-action a, .card-link { font-size: 13px; font-weight: 750; }
.strip-note { grid-column: 1 / -1; margin: 3px 0 0; }
.copy-status { color: var(--ice); font-size: 13px; }
.copy-status:empty { display: none; }
.section { margin-block: clamp(40px,5.7vw,78px); }
.sectionhead { margin-bottom: 22px; }
.sectionhead h2, .guide-body > h2 { font-size: clamp(32px,3.8vw,52px); line-height: 1.06; letter-spacing: -.02em; }
.sectionhead p { margin: 8px 0 0; max-width: 70ch; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.card { display: flex; flex-direction: column; align-items: flex-start; position: relative; min-width: 0; min-height: 196px; padding: 22px; border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(145deg,var(--raised),var(--panel) 75%); color: var(--body); text-decoration: none; }
.card:hover, .card:focus-visible { background: var(--raised); border-color: var(--muted); color: var(--body); }
.card-icon { width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--ink); color: var(--acid); margin-bottom: 14px; border-radius: 3px; }
.card:nth-child(3n + 2) .card-icon { color: var(--ice); background: var(--ink); border-color: var(--line); }
.card-icon svg { width: 23px; height: 23px; }
.card h3 { font-size: clamp(19px,1.75vw,24px); line-height: 1.2; letter-spacing: -.035em; }
.card p { margin: 7px 0 14px; font-size: 14px; }
.card-link { margin-top: auto; color: var(--ice); }
.crumb { display: flex; gap: 7px; flex-wrap: wrap; margin-block: 24px 0; color: var(--muted); font-size: 13px; }
.pagehead { max-width: 850px; padding-block: clamp(30px,4vw,52px) 30px; }
.pagehead h1 { font-size: clamp(40px,5.3vw,74px); line-height: 1.02; letter-spacing: -.025em; }
.pagehead p { max-width: 68ch; margin: 13px 0 0; font-size: clamp(16px,1.4vw,19px); }
.code-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-inline-start: 4px solid var(--acid); border-radius: 3px; }
.code-panel h2, .code-panel h3 { margin: 0; }
.code-panel p { margin: 0; }
.code-panel .reward { color: var(--paper); }
.code-panel .date, .code-panel time { color: var(--muted); font: 12px/1.5 var(--mono); }
.badge, .state { display: inline-block; padding: 3px 8px; background: var(--raised); border: 1px solid var(--line); color: var(--ice); border-radius: 2px; font: 700 12px/1.5 var(--mono); letter-spacing: .045em; }
.guide-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(185px,25%); gap: clamp(22px,4.5vw,76px); align-items: start; margin-block: 30px 64px; }
.article, .guide-body { min-width: 0; overflow-wrap: break-word; }
.article h2, .guide-body h2 { font-size: clamp(27px,3vw,40px); line-height: 1.15; letter-spacing: -.012em; margin: 1.2em 0 .45em; }
.article h3, .guide-body h3 { font-size: 21px; line-height: 1.28; margin: 1.15em 0 .35em; }
.article > :first-child, .guide-body > :first-child { margin-top: 0; }
.article p, .guide-body p { margin: .65em 0 1em; }
.article ul, .article ol, .guide-body ul, .guide-body ol { padding-inline-start: 1.5rem; }
.article li, .guide-body li, .sources li { margin: .4em 0; }
.article li::marker, .guide-body li::marker { color: var(--ice); font-weight: 700; }
.article img, .guide-body img { max-width: 100%; height: auto; border-radius: 3px; }
.article code, .guide-body code { color: var(--acid); font-family: var(--mono); }
.toc { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--ice); border-radius: 3px; padding: 18px; }
.toc h2, .toc h3 { margin: 0 0 10px; font: 750 17px/1.25 var(--sans); }
.toc ul, .toc ol { margin: 0; padding-left: 1.15em; }
.toc li { margin: .45em 0; }
.toc a { display: inline-block; font-size: 14px; }
.side-art { margin-top: 20px; }
.side-art img { display: block; width: 100%; height: auto; border-radius: 2px; }
.side-art figcaption { margin-top: 5px; }
.side-art figcaption a { font-size: 12px; }
.feedback { display: grid; justify-items: start; gap: 9px; margin-block: 15px 25px; max-width: 680px; }
.feedback label { color: var(--paper); font-weight: 700; }
.feedback textarea { width: 100%; padding: 12px; resize: vertical; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); color: var(--paper); font: inherit; }
.tablewrap { max-width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin-block: 14px 20px; font-size: 14px; overflow-wrap: anywhere; }
th, td { padding: 11px 13px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--raised); color: var(--paper); }
details { border-top: 1px solid var(--line); background: var(--panel); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 15px 40px 15px 16px; cursor: pointer; list-style: none; color: var(--paper); font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 16px; top: 13px; color: var(--ice); font: 22px/1 var(--mono); }
details[open] > summary::after { content: "−"; }
details > :not(summary) { margin-inline: 16px; }
details > :last-child:not(summary) { padding-bottom: 12px; }
.sources { margin-block: 30px; padding-top: 18px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.sources h2, .sources h3 { margin: 0 0 10px; }
.sources ul, .sources ol { padding-left: 1.2rem; }
.footer { margin-top: clamp(38px,5vw,70px); padding-block: 28px; border-top: 1px solid var(--line); background: var(--ink); color: var(--muted); font-size: 13px; }
.footerinner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; }
.footer p { margin: 3px 0; max-width: 60ch; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer a { color: var(--body); }
@media (max-width: 960px) {
  .wrap { width: calc(100% - 54px); }
  .topbar { gap: 14px; }
  .nav { gap: 3px 13px; }
  .brand { font-size: 21px; }
  .hero { gap: 26px; }
  .code-strip { gap: 8px 13px; padding: 15px; }
  .strip-code { padding-inline-start: 14px; }
}
@media (max-width: 760px) {
  body::before { height: 380px; }
  .wrap { width: calc(100% - 36px); }
  .topbar { min-height: 0; flex-wrap: wrap; gap: 4px 14px; padding-block: 9px 7px; }
  .mark { width: 29px; height: 29px; font-size: 22px; }
  .brand { gap: 7px; }
  .playtop { margin-left: auto; padding: 5px 8px; font-size: 12px; }
  .nav { order: 3; flex-basis: 100%; margin: 0; column-gap: 15px; }
  .nav a { padding-block: 4px; font-size: 13px; }
  .hero { padding-block: 24px 21px; gap: 16px; grid-template-columns: 1fr; }
  .hero h1 { margin-block: 8px 10px; font-size: clamp(43px,9.2vw,65px); }
  .hero-copy .eyebrow { margin-bottom: 4px; }
  .lede { font-size: 15px; line-height: 1.46; }
  .actions { margin-top: 13px; gap: 8px; }
  .btn { min-height: 38px; font-size: 13px; padding: 8px 12px; }
  .hero-art { width: 100%; box-shadow: 4px 4px 0 color-mix(in srgb, var(--ink) 65%, transparent); }
  .hero-art figcaption { font-size: 12px; line-height: 1.35; padding: 4px 2px 0; }
  .code-strip { grid-template-columns: minmax(0,1fr) auto; gap: 7px 12px; padding: 12px 14px; }
  .strip-title { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
  .strip-title .kicker { margin: 0; font-size: 12px; }
  .strip-title h2 { font-size: 21px; }
  .strip-code { padding: 0; border: 0; }
  .strip-code code { font-size: 21px; }
  .strip-action { align-items: flex-end; flex-direction: column; gap: 3px; }
  .strip-action .copy { min-height: 35px; padding: 6px 12px; }
  .strip-action a { font-size: 12px; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card { min-height: 170px; padding: 17px; }
  .guide-grid { grid-template-columns: 1fr; gap: 23px; }
  .sectionhead { margin-bottom: 16px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 28px); }
  .topbar { column-gap: 6px; padding-block: 7px 5px; }
  .brand { font-size: 19px; gap: 6px; }
  .mark { width: 25px; height: 25px; font-size: 20px; }
  .playtop { font-size: 12px; padding: 4px 7px; }
  .nav { gap: 1px 12px; }
  .hero { padding-block: 16px 14px; gap: 12px; }
  .hero h1 { margin-block: 6px 8px; }
  .strip-note { font-size: 12px; line-height: 1.35; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .card { min-height: unset; }
  .article h2, .guide-body h2 { font-size: 29px; }
  th, td { padding: 8px; }
}
@media (min-width: 600px) and (max-width: 760px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 22px; }
  .hero h1 { font-size: clamp(41px,6.6vw,51px); }
  .hero h1 .accent { display: block; }
}
@media (max-width: 359px) {
  .nav { column-gap: 9px; }
  .nav a { font-size: 12px; }
  .code-strip { column-gap: 8px; padding-inline: 11px; }
  .strip-action .copy { padding-inline: 8px; }
  .strip-action a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}


/* design pass 2026-11-23: mobile header, hero type scale, code strip */
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; row-gap: 10px; }
  .nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
  .nav a { padding: 9px 12px; font-size: 0.82rem; line-height: 1; border: 1px solid var(--line); border-radius: 999px; }
  .hero h1 { font-size: clamp(2.1rem, 8.6vw, 3.2rem); line-height: 1.05; }
  .hero .actions { flex-wrap: wrap; gap: 12px; }
  .hero .actions .btn { flex: 1 1 100%; justify-content: center; }
  .code-strip .strip-code { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
  .quick-facts dl { grid-template-columns: 1fr; }
  .quick-facts dt { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
}


/* design pass 2: nav scroll on mobile, hero scale, stacked code strip, secondary text contrast */
.strip-note, figcaption, .card p, .fact-note { color: #a8b0bd; font-size: max(12px, 0.78rem); }
@media (min-width: 761px) {
  .nav { gap: 22px; }
  .playtop { font-size: 0.82rem; padding: 8px 14px; }
  .article h2, .guide h2 { border-left: 3px solid var(--accent, #d4ff2a); padding-left: 12px; }
}
@media (max-width: 760px) {
  .topbar { row-gap: 12px; }
  .nav { order: 3; width: 100%; display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; white-space: nowrap; padding: 8px 12px; font-size: 0.8rem; line-height: 1; border: 1px solid var(--line); border-radius: 999px; }
  .hero h1 { font-size: clamp(28px, 8vw, 36px); line-height: 1.06; letter-spacing: 0.005em; }
  .hero .actions { gap: 12px; }
  .code-strip { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
  .code-strip .strip-title, .code-strip .strip-code, .code-strip .strip-action { width: 100%; }
  .code-strip .strip-code { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .code-strip .strip-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .code-strip .strip-action .btn, .code-strip .strip-action button { width: auto; }
  .hero-art figcaption { margin-top: 8px; }
}


/* design pass 3: single-line header across breakpoints, full-width copy button on mobile */
@media (min-width: 1024px) {
  .topbar { gap: 16px; }
  .nav { flex-wrap: nowrap; gap: 18px; }
  .nav a { white-space: nowrap; font-size: 0.82rem; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .nav { flex-wrap: nowrap; gap: 10px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; white-space: nowrap; font-size: 0.8rem; }
}
@media (max-width: 760px) {
  .code-strip .strip-action { width: 100%; }
  .code-strip .strip-action .btn, .code-strip .strip-action button { width: 100%; justify-content: center; }
}
