:root {
  color-scheme: dark;
  --ink: #07100b;
  --ink-soft: #101a13;
  --moss: #243a26;
  --acid: #b9e34b;
  --acid-hot: #d7f879;
  --gold: #c4a866;
  --paper: #eee9dc;
  --paper-deep: #d9d0bc;
  --white: #f7f4e9;
  --muted: #9ca99b;
  --line: rgba(247, 244, 233, .16);
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
  --radius: 20px;
  --shell: min(1220px, calc(100vw - 48px));
  --companion-preview-background: rgba(7, 16, 11, .98);
  --companion-preview-color: var(--white);
  --companion-preview-border: rgba(185, 227, 75, .32);
  --companion-preview-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--white); background: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.eyebrow { margin: 0 0 14px; color: var(--acid); font: 700 .72rem/1.2 ui-monospace, "Cascadia Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow--dark { color: #527032; }
.section-title { max-width: 800px; margin-bottom: 44px; }
.section-title h2, .split-heading h2, .lab-copy h2, .combo-menu h2, .catalog-head h2, .deck-intro h2 { margin: 0; font: 400 clamp(2.2rem, 5vw, 4.5rem)/.95 Georgia, serif; letter-spacing: -.05em; }
.section-title--light h2 { color: var(--white); }

.hero { position: relative; min-height: 920px; isolation: isolate; overflow: hidden; background: #050a07 url("hero.png") center/cover no-repeat; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(3, 8, 5, .92) 0%, rgba(3, 8, 5, .7) 34%, rgba(3, 8, 5, .08) 69%), linear-gradient(0deg, rgba(3, 8, 5, .72), transparent 34%); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 280px; background: linear-gradient(transparent, var(--ink)); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.wordmark { display: flex; align-items: center; gap: 12px; font: 600 .84rem/1 ui-monospace, "Cascadia Mono", monospace; text-decoration: none; letter-spacing: .02em; }
.wordmark span { display: grid; width: 38px; aspect-ratio: 1; place-items: center; color: var(--ink); background: var(--acid); border-radius: 50%; font-weight: 900; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a { color: rgba(255,255,255,.7); font-size: .78rem; text-decoration: none; }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--acid); }
.hero__copy { padding-top: 190px; }
.hero__copy h1 { max-width: 720px; margin: 0; font: 400 clamp(4rem, 8.3vw, 8rem)/.78 Georgia, serif; letter-spacing: -.075em; text-wrap: balance; }
.hero__copy h1 em { color: var(--acid); font-weight: 400; }
.hero__copy > p:not(.eyebrow) { max-width: 600px; margin: 34px 0 0; color: rgba(255,255,255,.75); font-size: clamp(1rem, 1.8vw, 1.28rem); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 750; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: transform .18s, background .18s, color .18s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button--acid { color: var(--ink); background: var(--acid); }
.button--acid:hover, .button--acid:focus-visible { background: var(--acid-hot); }
.button--glass { color: var(--white); border-color: rgba(255,255,255,.28); background: rgba(5,12,8,.42); backdrop-filter: blur(12px); }
.button--ink { color: var(--white); background: var(--ink); }
.marquee { position: absolute; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.14); background: rgba(5,12,8,.62); backdrop-filter: blur(15px); }
.marquee div { padding: 23px clamp(12px, 3vw, 48px); border-right: 1px solid rgba(255,255,255,.12); }
.marquee strong, .marquee span { display: block; }
.marquee strong { color: var(--acid); font: 400 2rem/1 Georgia, serif; }
.marquee span { margin-top: 6px; color: rgba(255,255,255,.58); font: 650 .64rem/1.2 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }

.paper { padding: 120px 0; color: #162017; background: var(--paper); }
.beat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid rgba(22,32,23,.25); }
.beat-grid article { min-height: 280px; padding: 30px; border-right: 1px solid rgba(22,32,23,.18); }
.beat-grid article:last-child { border-right: 0; }
.beat-grid span { color: #6a7f47; font: 700 .75rem ui-monospace, monospace; }
.beat-grid h3 { margin: 70px 0 15px; font: 400 1.55rem Georgia, serif; }
.beat-grid p, .split-heading > p { color: #556056; line-height: 1.65; }
.hand-panel { margin-top: 50px; padding: clamp(24px, 4vw, 42px); color: #152017; border: 1px solid rgba(21,32,23,.2); border-radius: var(--radius); background: rgba(255,255,255,.38); }
.hand-panel__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.hand-panel__head h3 { margin: 0; font: 400 2rem Georgia, serif; }
.mini-cards { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 28px; }
.mini-cards button { position: relative; min-height: 180px; overflow: hidden; border: 0; border-radius: 13px; background: #142016 center/cover; box-shadow: 0 14px 30px rgba(22,32,23,.2); cursor: pointer; }
.mini-cards button::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.9)); }
.mini-cards span { position: absolute; z-index: 1; inset: auto 10px 11px; color: white; font-size: .72rem; font-weight: 750; text-align: left; }
#hand-verdict { margin: 22px 0 0; line-height: 1.6; }

.lab-section { padding: 120px 0; background: radial-gradient(circle at 10% 30%, rgba(91,132,51,.2), transparent 35%), #0c160f; }
.lab-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 9vw, 120px); align-items: center; }
.lab-copy h2 { max-width: 600px; color: var(--white); }
.lab-copy > p:not(.eyebrow) { max-width: 590px; color: var(--muted); line-height: 1.7; }
.formula { margin: 34px 0; padding: 22px 0; border-block: 1px solid var(--line); }
.formula span, .formula strong { display: block; }
.formula span { color: var(--acid); font: 700 .68rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .14em; }
.formula strong { margin-top: 9px; font: 400 1.3rem Georgia, serif; }
.fine-print { font-size: .85rem; }
.trigger-console { display: grid; gap: 14px; padding: clamp(24px, 4vw, 46px); border: 1px solid rgba(185,227,75,.23); border-radius: 28px; background: linear-gradient(145deg, rgba(185,227,75,.08), rgba(255,255,255,.025)); box-shadow: var(--shadow); }
.trigger-console label:not(.check-row) { display: grid; grid-template-columns: 1fr 92px; align-items: center; gap: 20px; padding-bottom: 14px; color: #c3ccbf; border-bottom: 1px solid var(--line); font-size: .9rem; }
.trigger-console input[type="number"] { width: 100%; padding: 11px; color: var(--white); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; outline: 0; background: rgba(0,0,0,.22); text-align: center; }
.trigger-console input:focus-visible { border-color: var(--acid); }
.check-row { display: flex; align-items: center; gap: 11px; padding-block: 8px; color: var(--acid-hot); font-weight: 650; }
.check-row input { width: 20px; height: 20px; accent-color: var(--acid); }
.trigger-result { margin-top: 8px; padding: 24px; color: var(--ink); border-radius: 18px; background: var(--acid); }
.trigger-result strong, .trigger-result span { display: block; }
.trigger-result strong { font: 400 4.4rem/.85 Georgia, serif; }
.trigger-result span { margin-top: 10px; font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
#trigger-explanation { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }

.ink-section { padding: 120px 0; background: #050b07; }
.copy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-card { min-height: 360px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, #162017, #0a110c); display: flex; flex-direction: column; }
.feature-card > span { color: var(--acid); font: 700 .66rem ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
.feature-card h3 { margin: auto 0 15px; font: 400 1.7rem Georgia, serif; }
.feature-card p { min-height: 110px; color: var(--muted); line-height: 1.6; }
.feature-card button, .route-card button, .combo-cards button { width: fit-content; padding: 0 0 5px; color: var(--white); border: 0; border-bottom: 1px solid var(--acid); background: none; cursor: pointer; font-weight: 750; }
.feature-card--gold { background: linear-gradient(150deg, #3b321d, #131008); }
.feature-card--gold > span { color: #efd991; }

.cheat-section { background: linear-gradient(135deg, #eee9dc, #dcd4c3); }
.split-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; margin-bottom: 52px; }
.split-heading > p { max-width: 520px; margin: 0; }
.route-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.route-card { min-height: 285px; overflow: hidden; border: 1px solid rgba(22,32,23,.18); border-radius: 20px; background: rgba(255,255,255,.38); display: grid; grid-template-columns: 35% 65%; }
.route-card__art { min-height: 100%; background: #172319 center/cover; }
.route-card__copy { padding: 28px; }
.route-card__copy > span { color: #60763e; font: 750 .65rem ui-monospace, monospace; letter-spacing: .11em; text-transform: uppercase; }
.route-card h3 { margin: 40px 0 12px; font: 400 1.3rem/1.2 Georgia, serif; }
.route-card h3 i { color: #789249; font-style: normal; }
.route-card p { color: #59635a; font-size: .9rem; line-height: 1.55; }
.route-card__copy div { display: flex; gap: 16px; margin-top: 18px; }
.route-card button { color: #1b261c; }

.combo-section { padding: 120px 0; background: #18301f; }
.combo-layout { display: grid; grid-template-columns: 340px 1fr; gap: 60px; }
.combo-menu h2 { margin-bottom: 35px; }
#combo-buttons { display: grid; gap: 9px; }
#combo-buttons > button { padding: 16px 18px; color: #bdc9bc; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(0,0,0,.12); cursor: pointer; text-align: left; }
#combo-buttons > button strong, #combo-buttons > button span { display: block; }
#combo-buttons > button span { margin-top: 5px; color: #809080; font-size: .68rem; }
#combo-buttons > button.is-active { color: var(--ink); border-color: var(--acid); background: var(--acid); }
#combo-buttons > button.is-active span { color: #3b4d25; }
.combo-detail { min-height: 560px; padding: clamp(30px, 5vw, 60px); color: #152017; border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.combo-detail h3 { margin: 0 0 22px; font: 400 clamp(2.1rem, 4vw, 3.8rem)/1 Georgia, serif; letter-spacing: -.04em; }
.combo-cards { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 35px; }
.combo-cards button { color: #223023; }
.combo-detail ol { margin: 0; padding-left: 24px; }
.combo-detail li { margin: 0 0 18px; padding-left: 10px; color: #526053; line-height: 1.6; }
.combo-output { margin-top: 35px; padding: 22px; border-left: 4px solid #739542; background: rgba(115,149,66,.11); }
.combo-output span { color: #557331; font: 750 .65rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .13em; }
.combo-output p { margin: 8px 0 0; line-height: 1.6; }

.rules-section { padding: 110px 0; color: #152017; background: #d7d0c1; }
.rules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(21,32,23,.22); border: 1px solid rgba(21,32,23,.22); }
.rules-grid article { min-height: 220px; padding: 27px; background: #e8e2d5; }
.rules-grid b { color: #4c6a2c; font: 400 1.35rem Georgia, serif; }
.rules-grid p { margin: 55px 0 0; color: #5b655c; line-height: 1.55; }

.catalog-section { padding: 120px 0; background: #07100b; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.catalog-controls { display: flex; gap: 12px; }
.catalog-controls label { display: grid; gap: 7px; color: var(--muted); font: 700 .62rem ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.catalog-controls input, .catalog-controls select { min-width: 200px; padding: 12px 14px; color: var(--white); border: 1px solid rgba(255,255,255,.17); border-radius: 10px; outline: 0; background: #101a13; }
.catalog-controls input:focus, .catalog-controls select:focus { border-color: var(--acid); }
.catalog-summary { color: var(--muted); margin: 26px 0 22px; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.deck-card { min-height: 290px; padding: 0; overflow: hidden; color: var(--white); border: 1px solid var(--line); border-radius: 16px; background: #111a13; cursor: pointer; text-align: left; transition: transform .18s, border-color .18s; }
.deck-card:hover, .deck-card:focus-visible { transform: translateY(-4px); border-color: rgba(185,227,75,.7); }
.deck-card__art { display: block; height: 142px; background: #172119 center/cover; }
.deck-card__body { display: block; padding: 17px; }
.deck-card__body small, .deck-card__body strong, .deck-card__body > span, .deck-card__body i { display: block; }
.deck-card__body small { color: var(--acid); font: 700 .58rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.deck-card__body strong { margin: 10px 0 7px; font-family: Georgia, serif; font-size: 1.05rem; }
.deck-card__body > span { color: var(--muted); font-size: .74rem; }
.deck-card__body i { margin-top: 14px; font-style: normal; }
.deck-card__body b { display: inline-block; margin: 0 5px 5px 0; padding: 4px 7px; color: #b5c1b3; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; font-size: .55rem; font-weight: 600; }

.deck-section { padding: 120px 0; color: #152017; background: var(--paper); }
.deck-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px 80px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid rgba(21,32,23,.23); }
.deck-intro p:not(.eyebrow) { max-width: 610px; color: #5a655b; line-height: 1.6; }
.deck-intro__details { display: grid; gap: 7px; color: #596359; font: .7rem ui-monospace, monospace; }
.deck-intro__details b { color: #1d2a1f; }
.deck-actions { display: flex; gap: 9px; grid-column: 2; }
.deck-columns { columns: 4; column-gap: 38px; margin-top: 45px; }
.deck-group { break-inside: avoid; margin: 0 0 35px; }
.deck-group h3 { margin: 0 0 10px; padding-bottom: 8px; color: #42552d; border-bottom: 1px solid rgba(21,32,23,.2); font: 400 1.08rem Georgia, serif; }
.deck-group h3 span { float: right; font: .7rem ui-monospace, monospace; }
.deck-group button { display: grid; grid-template-columns: 20px 1fr auto; width: 100%; padding: 5px 0; color: #29352a; border: 0; background: none; cursor: pointer; font-size: .78rem; text-align: left; }
.deck-group button:hover, .deck-group button:focus-visible { color: #5d812f; text-decoration: underline; }
.deck-group button span { color: #778177; font-family: ui-monospace, monospace; }
.deck-group button i { color: #66853c; font: 700 .55rem ui-monospace, monospace; }

footer { padding: 34px 0; border-top: 1px solid var(--line); background: #050a07; }
footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
footer p, footer a { margin: 0; color: var(--muted); font-size: .75rem; text-decoration: none; }
footer strong { color: var(--white); }

dialog { width: min(900px, calc(100vw - 32px)); padding: 0; color: var(--white); border: 1px solid rgba(185,227,75,.3); border-radius: 22px; background: #0b140e; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(7px); }
.dialog-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 40px; aspect-ratio: 1; color: var(--white); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(0,0,0,.65); cursor: pointer; font-size: 1.5rem; }
.dialog-card { display: grid; grid-template-columns: minmax(230px, 38%) 1fr; }
.dialog-card > img { width: 100%; min-height: 100%; object-fit: contain; background: #020503; }
.dialog-copy { padding: 50px 42px; }
.dialog-copy .tag { color: var(--acid); font: 700 .66rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.dialog-copy h2 { margin: 16px 0; font: 400 2.3rem/1 Georgia, serif; }
.dialog-copy p { color: var(--muted); line-height: 1.6; }
.dialog-copy .oracle { white-space: pre-line; }
.dialog-copy a { display: inline-block; margin-top: 16px; color: var(--acid); }

@media (max-width: 980px) {
  .nav__links { display: none; }
  .hero { min-height: 830px; background-position: 60% center; }
  .marquee { grid-template-columns: repeat(3, 1fr); }
  .marquee div:nth-child(n+4) { display: none; }
  .beat-grid, .copy-grid, .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .lab-layout, .combo-layout { grid-template-columns: 1fr; }
  .combo-menu { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; }
  .route-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .mini-cards { grid-template-columns: repeat(4, 1fr); }
  .deck-columns { columns: 3; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 28px, 680px); }
  .hero { min-height: 760px; background-position: 64% center; }
  .hero::before { background: linear-gradient(90deg, rgba(3,8,5,.9), rgba(3,8,5,.38)), linear-gradient(0deg, rgba(3,8,5,.82), transparent 60%); }
  .hero__copy { padding-top: 120px; }
  .hero__copy h1 { font-size: clamp(3.4rem, 18vw, 5.3rem); }
  .hero__copy > p:not(.eyebrow) { max-width: 90%; font-size: .98rem; }
  .marquee { grid-template-columns: repeat(3, 1fr); }
  .marquee div { padding: 18px 12px; }
  .marquee strong { font-size: 1.55rem; }
  .paper, .lab-section, .ink-section, .combo-section, .catalog-section, .deck-section { padding: 82px 0; }
  .beat-grid, .copy-grid, .rules-grid, .split-heading, .catalog-head, .deck-intro { grid-template-columns: 1fr; }
  .beat-grid article { min-height: 220px; border-right: 0; border-bottom: 1px solid rgba(22,32,23,.18); }
  .beat-grid h3 { margin-top: 45px; }
  .feature-card { min-height: 300px; }
  .feature-card p { min-height: auto; }
  .mini-cards { grid-template-columns: repeat(2, 1fr); }
  .hand-panel__head, .catalog-head { align-items: start; flex-direction: column; }
  .combo-menu { display: block; }
  #combo-buttons { margin-bottom: 20px; }
  .route-card { grid-template-columns: 1fr; }
  .route-card__art { min-height: 170px; }
  .catalog-controls { width: 100%; flex-direction: column; }
  .catalog-controls input, .catalog-controls select { width: 100%; min-width: 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .deck-intro__details, .deck-actions { grid-column: auto; }
  .deck-columns { columns: 2; }
  .dialog-card { grid-template-columns: 1fr; }
  .dialog-card > img { max-height: 52vh; }
  .dialog-copy { padding: 30px 24px; }
}

@media (max-width: 460px) {
  .wordmark { font-size: .7rem; }
  .hero { min-height: 720px; }
  .marquee span { font-size: .5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .deck-columns { columns: 1; }
  .trigger-console label:not(.check-row) { grid-template-columns: 1fr 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
