:root {
  color-scheme: dark;
  --base: #111018;
  --panel: #1a1924;
  --panel-raised: #22212e;
  --ink: #f8f5fb;
  --muted: #bdb9ca;
  --line: #373444;
  --gold: #ffd05a;
  --cyan: #8bdcff;
  --orchid: #e6afff;
  --display: "Arial Black", "Avenir Next", system-ui, sans-serif;
  --body: "Avenir Next", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.2rem; }
body { margin: 0; background: var(--base); color: var(--ink); font: 500 1rem/1.58 var(--body); }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { font-family: var(--display); font-weight: 900; }
h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; }
em { font-style: normal; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; inset: .75rem auto auto .75rem; transform: translateY(-200%); background: var(--gold); color: #171014; padding: .65rem; z-index: 3; }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.site-header { border-bottom: 1px solid var(--line); }
.bar { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.8rem; }
.wordmark { display: flex; align-items: center; gap: .7rem; width: fit-content; text-decoration: none; font: 900 .83rem/.98 var(--display); letter-spacing: .01em; }
.wordmark img { width: 38px; flex: none; }
.top-nav { align-self: stretch; display: flex; gap: 1.55rem; align-items: stretch; }
.top-nav a { position: relative; display: grid; place-items: center; text-decoration: none; font-weight: 700; font-size: .89rem; color: var(--muted); white-space: nowrap; }
.top-nav a:hover, .top-nav a[aria-current] { color: var(--ink); }
.top-nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; background: var(--gold); border-radius: 4px 4px 0 0; }
.header-play { justify-self: end; padding: .5rem .75rem; border: 1px solid #5e4e32; border-radius: 8px; font-size: .86rem; font-weight: 750; color: var(--gold); text-decoration: none; white-space: nowrap; }
.header-play:hover { background: #2f261a; }
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 3rem; padding-block: clamp(3rem, 6vw, 6.2rem) 4.2rem; }
.eyebrow, .path-index, .art-label { color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .155em; }
.spark { display: inline-block; width: .55rem; aspect-ratio: 1; margin-right: .55rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px #ffd05a7a; vertical-align: .03em; }
.hero h1 { font-size: clamp(3.1rem, 6vw, 6rem); line-height: .98; letter-spacing: -.075em; margin: 1rem 0 1.2rem; }
.hero h1 em { color: var(--gold); }
.intro-copy { max-width: 36rem; font-size: clamp(1.05rem, 1.75vw, 1.25rem); color: var(--muted); }
.hero .intro-copy { max-width: 27rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.65rem 0 .9rem; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .68rem .9rem; border-radius: 8px; font-weight: 800; text-decoration: none; font-size: .92rem; }
.primary { background: var(--gold); color: #211519; border: 1px solid var(--gold); }
.primary:hover { background: #ffdf88; }
.secondary { border: 1px solid var(--line); background: var(--panel); }
.secondary:hover { background: var(--panel-raised); }
.identity { color: var(--muted); font-size: .79rem; }
.identity span { padding-inline: .28rem; }
.hero-art { position: relative; padding: .55rem; border: 1px solid #685335; border-radius: 19px; background: #1e1820; box-shadow: 0 12px 50px #0004; }
.media { border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.hero-art .media { border: 0; background: transparent; }
.media img { object-fit: cover; }
.media figcaption { padding: .55rem .8rem; color: var(--muted); font-size: .74rem; }
.hero-art figcaption { padding-inline: .22rem; }
.art-label { position: absolute; inset: auto .55rem 2.55rem; padding: .7rem .95rem; display: flex; justify-content: space-between; gap: .5rem; background: linear-gradient(transparent,#130f17d9); pointer-events: none; color: white; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.1rem; }
.section-heading h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.section-heading .eyebrow { color: var(--muted); white-space: nowrap; }
.path-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .85rem; }
.path-card { position: relative; padding: 1.18rem 2.6rem 1.3rem 1.22rem; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 11px; text-decoration: none; }
.path-card:hover { background: var(--panel-raised); border-color: var(--accent); }
.color-0 { --accent: var(--orchid); } .color-1 { --accent: var(--cyan); } .color-2 { --accent: var(--gold); }
.path-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: .5rem; border-radius: 7px; background: var(--panel-raised); color: var(--accent); }
.path-index, .path-arrow { color: var(--accent); }
.path-card h3 { margin: .8rem 0 .36rem; }
.path-card p { color: var(--muted); font-size: .9rem; }
.path-arrow { position: absolute; right: 1rem; bottom: 1.1rem; }
.chapter { border-top: 1px solid var(--line); padding-block: 2.55rem; margin-top: 3rem; }
.chapter h2 { margin: .35rem 0 1.2rem; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.65rem; align-items: start; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1rem 2.65rem; color: var(--muted); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; inset: .1rem auto auto 0; color: var(--gold); font: 800 .82rem/1.85 var(--body); width: 1.9rem; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.steps strong { color: var(--ink); }
.text-link { color: var(--gold); font-weight: 750; text-underline-offset: .23em; }
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; color: var(--muted); padding-block: 1.7rem; font-size: .86rem; }
.footer-grid { display: flex; align-items: end; justify-content: space-between; gap: .9rem; }
.footer-grid a { text-underline-offset: .2em; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 1.75rem; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .bar { grid-template-columns: 1fr auto; min-height: auto; gap: 0 .8rem; padding-top: .75rem; }
  .header-play { grid-column: 2; grid-row: 1; }
  .top-nav { grid-row: 2; grid-column: 1 / -1; gap: clamp(.5rem, 4vw, 1.7rem); min-height: 47px; }
  .top-nav a { font-size: .84rem; }
  .hero, .feature-grid { grid-template-columns: minmax(0,1fr); gap: 1.3rem; }
  .hero { padding-block: 2.5rem 2.45rem; }
  .hero h1 { font-size: clamp(2.8rem, 10vw, 4.7rem); }
  .path-grid { grid-template-columns: minmax(0,1fr); }
  .path-card { padding-block: .9rem; }
  .section-heading .eyebrow { display: none; }
  .chapter { margin-top: 2rem; padding-block: 1.65rem; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 28px); }
  .wordmark { gap: .5rem; font-size: .74rem; }
  .wordmark img { width: 32px; }
  .header-play { font-size: .74rem; padding-inline: .52rem; }
  .top-nav { gap: .7rem; }
  .top-nav a { font-size: .76rem; }
  .hero h1 { font-size: 2.55rem; }
  .button { font-size: .83rem; }
}

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page-intro { position: relative; padding-block: clamp(2.5rem, 5.8vw, 5rem) 1.35rem; }
.page-intro h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); max-width: 64rem; letter-spacing: -.065em; margin: .55rem 0 .95rem; }
.page-intro .intro-copy { max-width: 43rem; }
.jump-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.jump-links a { min-height: 42px; display: inline-flex; align-items: center; padding: .4rem .72rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .87rem; font-weight: 750; }
.jump-links a:hover { border-color: var(--gold); color: var(--gold); }
.first-chapter { margin-top: 1.05rem; }
.prose p, .body-copy { color: var(--muted); max-width: 75ch; }
.prose p + p { margin-top: .8rem; }
.prose + .text-link, .feature-grid + .text-link { display: inline-block; margin-top: .75rem; }
.data-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; margin-block: 1.2rem; }
.filter-bar { display: flex; align-items: end; flex-wrap: wrap; gap: .8rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.filter-bar label { display: grid; gap: .28rem; flex: 1 1 165px; color: var(--muted); font-size: .86rem; }
.filter-bar label:first-child { flex-grow: 2; }
.filter-bar input, .filter-bar select { border: 1px solid #565267; border-radius: 7px; min-height: 46px; background: var(--base); color: var(--ink); padding: .5rem .7rem; font: inherit; width: 100%; }
button { cursor: pointer; color: inherit; font: inherit; }
.filter-result { padding: .55rem 1rem; color: var(--muted); font-size: .86rem; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.data-table thead { background: var(--panel-raised); color: var(--muted); }
.data-table th, .data-table td { padding: .62rem 1rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.data-table th { font-weight: 750; }
.cards-table th:first-child { width: 62%; }
.cards-table td { font-variant-numeric: tabular-nums; }
.data-table small { font-size: .82rem; color: var(--muted); font-weight: 500; }
.cash { color: var(--gold); font-weight: 760; }
.pill, .date-tag { display: inline-block; color: var(--orchid); font-weight: 750; border: 1px solid var(--line); background: var(--base); padding: .14rem .45rem; border-radius: 999px; font-size: .7rem; }
.card-name .pill { margin-left: .22rem; }
.empty { padding: 1.2rem 1rem; color: var(--muted); }
.callout { max-width: 80ch; margin: 1rem 0 0; padding: .8rem 1rem; color: var(--muted); background: var(--panel); border-left: 3px solid var(--gold); border-radius: 0 7px 7px 0; }
.callout strong { color: var(--ink); }
.choice-table th:first-child { width: 33%; }
.choice-table td { color: var(--muted); }
.date-tag { color: var(--gold); white-space: nowrap; }
#redeem .section-heading { margin-bottom: .6rem; align-items: center; flex-wrap: wrap; }
#redeem .section-heading h2 { margin: 0; }
.code-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; margin-top: 1.25rem; }
.code-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 1rem; min-width: 0; }
.code-card .pill { color: var(--gold); margin-bottom: .5rem; }
.code-card h3 { margin: .1rem 0 .44rem; overflow-wrap: anywhere; }
.code-card code { font: 800 1.2rem/1.1 ui-monospace, monospace; color: var(--ink); user-select: text; }
.code-card p { margin: .25rem 0 .7rem; color: var(--muted); font-size: .9rem; }
.copy-button { min-height: 44px; min-width: 70px; padding: .37rem .66rem; background: var(--panel-raised); border: 1px solid #5f5644; border-radius: 7px; color: var(--gold); font-weight: 800; font-size: .85rem; }
.copy-button:hover { background: #332b24; border-color: var(--gold); }
.inset-section { padding-top: 2.55rem; }
.inset-section .media { max-width: 420px; }
@media (max-width: 760px) {
  .page-intro { padding-top: 2.15rem; }
  .first-chapter { margin-top: .65rem; }
  .code-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
  .data-table th, .data-table td { padding: .55rem .52rem; font-size: .88rem; }
  .cards-table th:first-child { width: 59%; }
  .cards-table th:last-child { width: 17%; }
  .cards-table small { display: block; font-size: .73rem; line-height: 1.35; }
  .choice-table th:first-child { width: 34%; }
}
@media (max-width: 420px) {
  .code-grid { grid-template-columns: minmax(0,1fr); }
  .code-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .15rem .7rem; }
  .code-card .pill { justify-self: start; grid-column: 1; margin-bottom: 0; }
  .code-card h3 { grid-column: 1; }
  .code-card p { grid-column: 1; margin: 0; }
  .code-card .copy-button { grid-column: 2; grid-row: 1 / 4; }
  .card-name .pill { margin-left: 0; }
}
