:root {
  --ink: #171122;
  --ink-soft: #2a2035;
  --paper: #f5efdf;
  --paper-deep: #e8dfca;
  --acid: #d9ff49;
  --orange: #ff6b35;
  --pink: #ff4f87;
  --blue: #55d9ef;
  --yellow: #ffd64a;
  --red: #e84b44;
  --muted: #786f7f;
  --line: rgba(23, 17, 34, 0.17);
  --shadow: 0 28px 80px rgba(11, 7, 16, 0.18);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.dialog-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
.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;
}
.skip-link {
  position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 12px 16px;
  background: var(--acid); color: var(--ink); transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px); color: white;
  border-bottom: 1px solid rgba(255,255,255,.13); transition: background .25s, height .25s;
}
.topbar.scrolled { height: 64px; background: rgba(23,17,34,.94); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); letter-spacing: .05em; font-size: 26px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; color: var(--ink); background: var(--acid); border-radius: 50%; font-family: serif; }
.brand small { margin-left: 2px; font-family: var(--body); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: rgba(255,255,255,.55); }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-size: 13px; font-weight: 750; }
.main-nav a { text-decoration: none; color: rgba(255,255,255,.75); transition: color .2s; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--acid); }
.pocket-trigger { border: 1px solid rgba(255,255,255,.28); background: transparent; color: white; padding: 10px 14px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 800; }
.pocket-trigger:hover { background: white; color: var(--ink); }
.menu-button { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 8px; }
.menu-button span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: white; }

.hero {
  position: relative; min-height: 780px; height: min(920px, 100svh); color: white; background: var(--ink);
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr); align-items: center;
  padding: 116px clamp(24px, 6vw, 96px) 72px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 77% 44%, rgba(255,79,135,.18), transparent 32%),
              radial-gradient(circle at 15% 80%, rgba(217,255,73,.1), transparent 28%);
}
.hero-noise { position: absolute; inset: 0; opacity: .09; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: rgba(255,255,255,.68); font-size: 11px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { width: 26px; height: 2px; background: var(--acid); }
.eyebrow.dark { color: var(--muted); }
.eyebrow.dark span { background: var(--orange); }
.hero h1, .section-heading h2, .variant-intro h2, .final-cta h2 {
  margin: 0; font-family: var(--display); text-transform: uppercase; letter-spacing: -.025em; line-height: .9;
}
.hero h1 { font-size: clamp(68px, 7.8vw, 130px); max-width: 900px; }
.hero h1 em, .section-heading h2 em, .variant-intro h2 em, .final-cta h2 em { color: var(--acid); font-style: normal; }
.hero-lead { max-width: 610px; margin: 30px 0; color: rgba(255,255,255,.72); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.65; }
.hero-lead strong { color: white; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 22px; border-radius: 3px; border: 1px solid transparent; font-size: 13px; font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--acid); color: var(--ink); box-shadow: 7px 7px 0 var(--pink); }
.button-primary:hover { box-shadow: 10px 10px 0 var(--pink); }
.button-ghost { background: transparent; color: white; border-color: rgba(255,255,255,.28); }
.button-ghost:hover { background: rgba(255,255,255,.08); }
.game-facts { display: flex; padding: 0; margin: 45px 0 0; list-style: none; }
.game-facts li { min-width: 130px; padding-right: 28px; margin-right: 28px; border-right: 1px solid rgba(255,255,255,.14); }
.game-facts li:last-child { border: 0; }
.game-facts strong { display: block; font-family: var(--display); font-size: 32px; line-height: 1; color: var(--acid); }
.game-facts span { display: block; margin-top: 7px; font-size: 11px; color: rgba(255,255,255,.55); }

.hero-art { position: relative; z-index: 1; width: min(620px, 48vw); aspect-ratio: .95; justify-self: center; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: 65%; height: 65%; border-radius: 50%; background: var(--pink); filter: blur(1px); box-shadow: 0 0 90px rgba(255,79,135,.25); }
.orbit { position: absolute; border: 1px dashed rgba(255,255,255,.22); border-radius: 50%; }
.orbit-one { width: 92%; height: 68%; transform: rotate(-18deg); }
.orbit-two { width: 72%; height: 88%; transform: rotate(24deg); }
.doll { position: relative; z-index: 2; width: 73%; max-height: 94%; overflow: visible; transform: rotate(3deg); animation: float 5s ease-in-out infinite; }
.doll-limb { fill: none; stroke: #b69872; stroke-width: 54; stroke-linecap: round; stroke-linejoin: round; }
.doll-body, .doll-head { fill: #d6b184; stroke: #201829; stroke-width: 6; }
.stitch, .mouth, .patch-stitch { fill: none; stroke: #3a2b3b; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 10 9; }
.mouth { stroke-dasharray: none; }
.button-eye circle { fill: var(--acid); stroke: #201829; stroke-width: 5; }
.button-eye path { stroke: #201829; stroke-width: 5; }
.pin { stroke: #d5d5d5; stroke-width: 5; }
.pin-head { fill: var(--acid); stroke: #201829; stroke-width: 4; }
.pin-head.alt { fill: var(--blue); }
.patch { fill: #8f5f85; stroke: #201829; stroke-width: 5; }
.patch-stitch { stroke: #f0d5c0; stroke-width: 3; }
.ingredient-die { position: absolute; z-index: 3; width: 74px; height: 74px; display: grid; place-items: center; background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 14px; box-shadow: 8px 9px 0 rgba(0,0,0,.28); font-size: 34px; }
.die-a { left: 2%; top: 26%; transform: rotate(-18deg); }
.die-b { right: 1%; top: 19%; transform: rotate(16deg); background: var(--acid); }
.die-c { right: 8%; bottom: 8%; transform: rotate(-9deg); background: var(--blue); }
.magic-word { position: absolute; z-index: 4; font-family: var(--display); color: var(--acid); font-size: 34px; transform: rotate(-12deg); text-shadow: 3px 3px 0 var(--ink); }
.word-one { top: 8%; left: 8%; }
.word-two { bottom: 11%; left: 11%; color: white; transform: rotate(10deg); }
.scroll-cue { position: absolute; right: clamp(24px, 4vw, 64px); bottom: 25px; color: rgba(255,255,255,.45); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.scroll-cue span { color: var(--acid); font-size: 18px; margin-left: 8px; }

.section { padding: 120px clamp(24px, 6vw, 96px); }
.section-heading { max-width: 820px; margin-bottom: 64px; }
.section-heading h2, .variant-intro h2 { font-size: clamp(54px, 6.8vw, 105px); }
.section-heading h2 em, .variant-intro h2 em { color: var(--orange); }
.section-heading > p:last-child { max-width: 620px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.section-heading.light { color: white; }
.section-heading.light > p:last-child { color: rgba(255,255,255,.6); }
.section-heading.light h2 em { color: var(--acid); }

.quick-start { background: var(--paper); }
.cycle { display: grid; grid-template-columns: 1fr 54px 1fr 54px 1fr 54px 1fr; align-items: center; max-width: 1380px; }
.cycle-card { min-height: 290px; padding: 28px; border: 1px solid var(--line); background: rgba(255,255,255,.3); position: relative; }
.cycle-card:nth-of-type(2) { transform: rotate(1.2deg); background: #fbf4de; }
.cycle-card:nth-of-type(3) { transform: rotate(-1deg); }
.cycle-card:nth-of-type(4) { transform: rotate(.8deg); background: var(--acid); }
.cycle-number { position: absolute; top: 18px; right: 18px; color: var(--muted); font-size: 11px; font-weight: 850; }
.cycle-icon { height: 94px; display: flex; align-items: center; font-size: 65px; font-family: serif; }
.dice-cluster { position: relative; }
.dice-cluster i { width: 48px; height: 48px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 8px; background: var(--yellow); font-style: normal; font-size: 21px; }
.dice-cluster i:nth-child(2) { transform: rotate(9deg) translate(-8px, 20px); background: var(--pink); }
.dice-cluster i:nth-child(3) { transform: rotate(-7deg) translate(-15px, -6px); background: var(--blue); }
.cycle-card h3 { margin: 28px 0 9px; font-family: var(--display); font-size: 34px; text-transform: uppercase; }
.cycle-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.cycle-card:last-of-type p { color: rgba(23,17,34,.72); }
.cycle-arrow { text-align: center; color: var(--orange); font-size: 30px; }
.win-banner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; margin-top: 74px; padding: 34px clamp(28px, 5vw, 70px); background: var(--ink); color: white; box-shadow: var(--shadow); overflow: hidden; }
.win-banner::after { content: ""; position: absolute; right: -20px; bottom: -70px; width: 200px; height: 200px; background: var(--pink); border-radius: 50%; opacity: .22; }
.score-orb { width: 94px; height: 94px; display: grid; place-items: center; background: var(--acid); color: var(--ink); border-radius: 50%; font-family: var(--display); font-size: 45px; box-shadow: 7px 7px 0 var(--pink); }
.mini-label { margin: 0 0 5px; font-size: 10px; text-transform: uppercase; letter-spacing: .15em; font-weight: 850; color: var(--orange); }
.win-banner h3 { margin: 0 0 6px; font-family: var(--display); font-size: clamp(28px, 3vw, 46px); text-transform: uppercase; }
.win-banner p:last-child { margin: 0; color: rgba(255,255,255,.6); }
.win-spark { position: relative; z-index: 1; color: var(--acid); font-size: 70px; }

.setup-section { background: var(--ink-soft); color: white; }
.setup-board { position: relative; min-height: 430px; padding: 50px; display: grid; grid-template-columns: repeat(3, 180px) 1fr; gap: 24px; align-items: start; background: #493c54; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 35px 80px rgba(0,0,0,.22); overflow: hidden; }
.setup-board::before { content: ""; position: absolute; inset: 0; opacity: .11; background-image: radial-gradient(rgba(255,255,255,.7) .7px, transparent .7px); background-size: 9px 9px; }
.deck { position: relative; z-index: 1; min-height: 230px; padding: 23px; border: 4px solid var(--ink); color: var(--ink); box-shadow: 7px 8px 0 rgba(0,0,0,.27); transform: rotate(-2deg); display: flex; flex-direction: column; justify-content: flex-end; }
.deck::before { content: "✦"; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 65px; }
.deck:nth-child(2) { transform: rotate(2deg) translateY(8px); }
.deck:nth-child(3) { transform: rotate(-1deg); }
.deck-yellow { background: var(--yellow); }
.deck-red { background: var(--red); color: white; }
.deck-blue { background: var(--blue); }
.deck-count { position: absolute; right: 13px; top: 12px; font-family: var(--display); font-size: 21px; }
.deck strong { font-family: var(--display); font-size: 23px; text-transform: uppercase; }
.deck small { margin-top: 3px; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; opacity: .7; }
.board-track { position: relative; z-index: 1; align-self: center; height: 140px; min-width: 300px; margin-left: 18px; }
.track-line { position: absolute; left: 4%; right: 4%; top: 55%; height: 5px; background: rgba(255,255,255,.26); }
.board-track > span { position: absolute; left: calc(4% + var(--n) * 8.25%); top: 55%; width: 30px; height: 30px; transform: translate(-50%, -45%); display: grid; place-items: center; border: 3px solid #766b7f; border-radius: 50%; background: var(--ink-soft); color: rgba(255,255,255,.65); font-size: 9px; font-weight: 800; }
.board-track .big-skull { width: 45px; height: 45px; background: var(--pink); color: var(--ink); border-color: white; font-size: 21px; }
.board-track .finish { width: 54px; height: 54px; background: var(--acid); color: var(--ink); border-color: var(--ink); font-family: var(--display); font-size: 21px; }
.setup-pieces { position: absolute; z-index: 3; right: 5%; bottom: 30px; display: flex; align-items: end; gap: 22px; }
.target-card { width: 90px; height: 120px; padding-top: 18px; background: var(--paper); color: var(--ink); border: 4px solid var(--ink); text-align: center; font-family: var(--display); transform: rotate(7deg); box-shadow: 5px 6px 0 rgba(0,0,0,.25); }
.target-card span { font-size: 48px; color: var(--orange); }
.mini-doll { font-size: 90px; color: #caab82; text-shadow: 4px 5px 0 var(--ink); }
.five-dice { display: grid; grid-template-columns: repeat(3, 38px); gap: 5px; transform: rotate(-4deg); }
.five-dice i { height: 38px; display: grid; place-items: center; background: white; color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; font-style: normal; }
.setup-list { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.15); }
.setup-list li { padding: 28px 24px 0 0; }
.setup-list li > span { width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--acid); font-family: var(--display); }
.setup-list p { margin: 0; color: rgba(255,255,255,.58); line-height: 1.55; font-size: 13px; }
.setup-list strong { color: white; }

.turn-section { background: var(--paper); }
.turn-lab { padding: 34px; background: #ddd2ba; border: 1px solid var(--line); }
.lab-topline { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lab-kicker { color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .14em; }
.lab-topline h3 { margin: 4px 0 0; font-family: var(--display); font-size: 34px; text-transform: uppercase; }
.roll-button { display: flex; align-items: center; gap: 10px; border: 0; padding: 14px 18px; background: var(--ink); color: white; cursor: pointer; font-size: 12px; font-weight: 800; box-shadow: 5px 5px 0 var(--orange); }
.roll-button:hover .roll-icon { transform: rotate(180deg); }
.roll-icon { display: inline-block; font-size: 19px; color: var(--acid); transition: transform .35s; }
.dice-tray { margin-top: 30px; display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 16px; }
.lab-die { min-height: 158px; border: 3px solid var(--ink); border-radius: 13px; background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 6px 7px 0 rgba(23,17,34,.16); transition: transform .2s, background .2s, opacity .2s; }
.lab-die:hover { transform: translateY(-4px) rotate(-1deg); }
.lab-die:nth-child(even):hover { transform: translateY(-4px) rotate(1deg); }
.lab-die.selected { background: var(--acid); transform: translateY(-8px); box-shadow: 6px 12px 0 rgba(23,17,34,.2); }
.lab-die.rolling { animation: diceRoll .45s ease; }
.lab-die span { display: block; font-size: 52px; font-family: serif; }
.lab-die small { display: block; margin-top: 12px; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.dice-hint { margin: 20px 0 0; color: var(--muted); font-size: 11px; }
.actions-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.action-card { position: relative; padding: 28px; border: 1px solid var(--line); background: rgba(255,255,255,.34); overflow: hidden; }
.action-card::before { content: ""; position: absolute; right: -35px; top: -35px; width: 100px; height: 100px; border-radius: 50%; background: var(--card-accent); opacity: .2; }
.curse-action { --card-accent: var(--pink); }
.reroll-action { --card-accent: var(--acid); }
.draw-action { --card-accent: var(--yellow); }
.artifact-action { --card-accent: var(--blue); }
.action-letter { width: 32px; height: 32px; display: grid; place-items: center; background: var(--ink); color: white; font-family: var(--display); }
.action-symbol { margin: 36px 0 20px; font-size: 47px; color: var(--card-accent); text-shadow: 2px 2px 0 var(--ink); }
.cards-symbol { font-family: serif; }
.action-card h3 { margin: 0 0 10px; font-family: var(--display); text-transform: uppercase; font-size: 27px; }
.action-card > p { min-height: 65px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.details-toggle { width: 100%; margin-top: 12px; padding: 13px 0; border: 0; border-top: 1px solid var(--line); background: transparent; display: flex; justify-content: space-between; cursor: pointer; color: var(--ink); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.details-toggle span { font-size: 18px; color: var(--orange); transition: transform .2s; }
.details-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.action-details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.action-details > * { overflow: hidden; }
.action-card.open .action-details { grid-template-rows: 1fr; }
.action-details p, .action-details ol { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.action-details ol { padding-left: 18px; }
.action-details li + li { margin-top: 6px; }
.action-details .rule-chip { display: inline-block; padding: 8px 10px; background: var(--acid); color: var(--ink); font-weight: 800; }
.pass-turn { margin-top: 32px; padding: 28px 36px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--orange); color: var(--ink); }
.pass-doll { font-size: 62px; }
.pass-turn span { font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.pass-turn h3 { margin: 3px 0; font-family: var(--display); font-size: 31px; text-transform: uppercase; }
.pass-turn p { margin: 0; font-size: 12px; opacity: .72; }
.pass-arrow { font-size: 44px; }

.curse-section { background: var(--ink); color: white; }
.curse-anatomy { max-width: 1050px; margin: 0 auto 90px; display: grid; grid-template-columns: 370px 1fr; align-items: center; gap: 95px; }
.mock-card { position: relative; width: 330px; min-height: 540px; padding: 20px; background: var(--yellow); color: var(--ink); border: 7px solid #0e0a14; box-shadow: 16px 18px 0 var(--pink); transform: rotate(-2deg); }
.mock-card-top, .mock-card-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.mock-card-top b, .mock-card-bottom b { font-family: var(--display); font-size: 22px; }
.mock-illustration { position: relative; height: 230px; margin: 15px 0 20px; display: grid; place-items: center; background: var(--ink-soft); color: var(--acid); overflow: hidden; }
.mock-illustration i { font-size: 120px; font-style: normal; }
.mock-illustration span { position: absolute; z-index: 1; top: 20px; left: 18px; font-family: var(--display); transform: rotate(-10deg); }
.mock-card h3 { margin: 0; font-family: var(--display); font-size: 39px; text-transform: uppercase; }
.mock-card > p { min-height: 58px; margin: 8px 0; font-size: 14px; line-height: 1.45; font-weight: 650; }
.mock-ingredients { display: flex; gap: 8px; margin: 15px 0 19px; }
.mock-ingredients i { width: 38px; height: 38px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 7px; background: var(--paper); font-style: normal; }
.mock-card-bottom { padding-top: 14px; border-top: 2px solid rgba(23,17,34,.25); }
.anatomy-notes { display: grid; gap: 25px; }
.anatomy-note { display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; position: relative; }
.anatomy-note::before { content: ""; position: absolute; left: -120px; top: 22px; width: 100px; border-top: 1px dashed rgba(255,255,255,.35); }
.anatomy-note > span { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: var(--acid); font-family: var(--display); font-size: 20px; }
.anatomy-note p { margin: 2px 0; color: rgba(255,255,255,.55); line-height: 1.5; font-size: 13px; }
.anatomy-note strong { color: white; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }
.curse-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rule-panel { padding: 32px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.035); }
.rule-icon { display: block; color: var(--acid); font-size: 44px; }
.rule-panel h3 { margin: 28px 0 10px; font-family: var(--display); text-transform: uppercase; font-size: 29px; }
.rule-panel p { margin: 0; color: rgba(255,255,255,.56); font-size: 13px; line-height: 1.65; }
.timing-box { margin-top: 60px; padding: 40px; display: grid; grid-template-columns: 1fr 2.2fr; gap: 50px; align-items: center; background: var(--acid); color: var(--ink); }
.timing-head { display: flex; gap: 20px; align-items: center; }
.timing-head > span { font-size: 53px; }
.timing-head small { font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; }
.timing-head h3 { margin: 3px 0 0; font-family: var(--display); font-size: 30px; text-transform: uppercase; }
.timing-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.timing-options div { padding-left: 20px; border-left: 1px solid rgba(23,17,34,.24); }
.timing-options strong { font-size: 12px; text-transform: uppercase; }
.timing-options p { margin: 7px 0 0; font-size: 11px; line-height: 1.55; opacity: .7; }
.conflict-note { margin-top: 22px; padding: 24px 30px; border: 1px dashed rgba(255,255,255,.3); display: flex; gap: 25px; align-items: baseline; }
.conflict-note strong { color: var(--orange); font-size: 12px; text-transform: uppercase; white-space: nowrap; }
.conflict-note p { margin: 0; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.6; }

.special-section { background: var(--paper); }
.special-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.special-card { min-height: 420px; display: grid; grid-template-columns: 42% 58%; border: 1px solid var(--line); overflow: hidden; }
.special-card-art { position: relative; display: grid; place-items: center; background: var(--blue); color: var(--ink); font-size: 130px; }
.permanent-card .special-card-art { background: var(--red); color: white; }
.special-card-art i { position: absolute; right: 20px; bottom: 14px; font-family: var(--display); font-size: 45px; font-style: normal; }
.special-card-copy { padding: 42px 36px; }
.special-card-copy h3 { margin: 7px 0 16px; font-family: var(--display); font-size: 36px; text-transform: uppercase; }
.special-card-copy > p { color: var(--muted); line-height: 1.65; font-size: 13px; }
.special-card-copy ul { margin: 22px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); }
.special-card-copy li { position: relative; padding-left: 19px; margin: 8px 0; color: var(--muted); font-size: 12px; }
.special-card-copy li::before { content: "✦"; position: absolute; left: 0; color: var(--orange); }

.variants-section { background: var(--orange); }
.variant-intro { max-width: 850px; color: var(--ink); }
.variant-intro h2 em { color: white; }
.variant-tabs { margin-top: 55px; background: var(--paper); box-shadow: var(--shadow); }
.tab-list { display: flex; border-bottom: 1px solid var(--line); }
.tab-list button { flex: 1; padding: 20px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.tab-list button[aria-selected="true"] { background: var(--ink); color: var(--acid); }
.tab-panel { min-height: 380px; padding: clamp(34px, 5vw, 70px); display: grid; grid-template-columns: 210px 1fr; gap: 60px; }
.tab-panel[hidden] { display: none; }
.variant-number { font-family: var(--display); font-size: 145px; line-height: .85; color: var(--pink); text-shadow: 6px 6px 0 var(--ink); }
.tab-panel h3 { margin: 0 0 25px; font-family: var(--display); text-transform: uppercase; font-size: 42px; }
.tab-panel ol { margin: 0; padding: 0; list-style: none; counter-reset: variant; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 34px; }
.tab-panel li { position: relative; padding: 0 0 15px 42px; border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.55; font-size: 13px; counter-increment: variant; }
.tab-panel li::before { content: counter(variant, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--display); color: var(--orange); font-size: 18px; }

.faq-section { background: var(--paper); }
.faq-list { max-width: 1050px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 24px 4px; cursor: pointer; font-family: var(--display); font-size: clamp(20px, 2.4vw, 31px); text-transform: uppercase; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--orange); font-family: var(--body); font-weight: 300; transition: transform .2s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 720px; margin: 0; padding: 0 0 28px; color: var(--muted); line-height: 1.7; }

.final-cta { position: relative; padding: 130px 24px; background: var(--ink-soft); color: white; text-align: center; overflow: hidden; }
.final-cta > div:not(.final-doodles) { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; }
.final-cta .eyebrow { justify-content: center; }
.final-cta h2 { font-size: clamp(65px, 8.5vw, 130px); }
.final-cta p:not(.eyebrow) { margin: 28px auto; color: rgba(255,255,255,.58); font-size: 17px; }
.final-doodles { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.035); font-size: 21vw; white-space: nowrap; transform: rotate(-8deg); }

footer { padding: 28px clamp(24px, 6vw, 96px); background: #0e0a14; color: rgba(255,255,255,.48); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; font-size: 10px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand span { color: var(--acid); }
.footer-brand strong { color: white; font-family: var(--display); font-size: 21px; }
.footer-brand small { text-transform: uppercase; letter-spacing: .08em; }
footer p { text-align: center; }
footer a { color: var(--acid); text-decoration: none; font-weight: 800; }

.pocket-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; background: transparent; overflow: visible; }
.pocket-dialog::backdrop { background: rgba(12,8,18,.78); backdrop-filter: blur(7px); }
.pocket-card { position: relative; padding: 38px; background: var(--paper); color: var(--ink); border: 5px solid var(--ink); box-shadow: 13px 14px 0 var(--pink); overflow-y: auto; max-height: calc(100svh - 54px); }
.dialog-close { position: absolute; top: 13px; right: 13px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--ink); color: white; cursor: pointer; font-size: 24px; line-height: 1; }
.pocket-card h2 { margin: 0 0 24px; font-family: var(--display); font-size: 50px; text-transform: uppercase; }
.pocket-card ol { margin: 0; padding: 0; list-style: none; }
.pocket-card li { display: grid; grid-template-columns: 34px 1fr; gap: 13px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pocket-card li > span { width: 30px; height: 30px; display: grid; place-items: center; background: var(--orange); color: white; border-radius: 50%; font-family: var(--display); }
.pocket-card li p { margin: 0; font-size: 13px; }
.pocket-costs { margin: 26px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pocket-costs > div { padding: 12px 8px; background: #e8dfca; text-align: center; }
.pocket-costs b { display: block; margin-bottom: 6px; font-size: 24px; color: var(--orange); }
.pocket-costs span, .pocket-costs strong { display: block; font-size: 9px; }
.pocket-warning { margin: 0; padding: 14px; background: var(--acid); font-size: 11px; line-height: 1.5; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes float { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-13px); } }
@keyframes diceRoll { 0% { transform: rotate(0) scale(1); } 40% { transform: rotate(15deg) scale(.86); } 75% { transform: rotate(-8deg) scale(1.05); } 100% { transform: rotate(0) scale(1); } }

@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr .85fr; }
  .hero-art { width: 50vw; }
  .cycle { grid-template-columns: 1fr 30px 1fr; gap: 16px 0; }
  .cycle-card:nth-of-type(3) { grid-column: 1; }
  .cycle-arrow:nth-of-type(4) { display: none; }
  .cycle-card { min-height: 245px; }
  .setup-board { grid-template-columns: repeat(3, 150px) 1fr; padding: 35px; }
  .deck { min-height: 205px; }
  .actions-grid { grid-template-columns: 1fr 1fr; }
  .special-card { grid-template-columns: 1fr; }
  .special-card-art { min-height: 220px; }
}

@media (max-width: 860px) {
  .topbar { height: 64px; }
  .brand small { display: none; }
  .menu-button { display: block; }
  .main-nav { position: fixed; inset: 64px 0 auto; padding: 22px 24px 28px; background: var(--ink); display: none; flex-direction: column; align-items: stretch; border-top: 1px solid rgba(255,255,255,.12); }
  .main-nav.open { display: flex; }
  .main-nav a, .pocket-trigger { padding: 12px 0; }
  .pocket-trigger { border: 0; text-align: left; color: var(--acid); }
  .hero { height: auto; min-height: 100svh; grid-template-columns: 1fr; padding-top: 110px; }
  .hero-copy { max-width: none; }
  .hero-art { width: min(610px, 88vw); margin-top: 60px; }
  .scroll-cue { display: none; }
  .section { padding-block: 90px; }
  .cycle { grid-template-columns: 1fr 22px 1fr; }
  .setup-board { min-height: 700px; grid-template-columns: repeat(3, 1fr); }
  .board-track { grid-column: 1 / -1; width: 90%; margin: 60px auto 0; }
  .setup-pieces { right: 8%; bottom: 30px; }
  .setup-list { grid-template-columns: 1fr 1fr; gap: 20px; }
  .dice-tray { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .lab-die { min-height: 120px; }
  .lab-die span { font-size: 38px; }
  .curse-anatomy { grid-template-columns: 310px 1fr; gap: 55px; }
  .mock-card { width: 285px; min-height: 490px; }
  .mock-illustration { height: 190px; }
  .anatomy-note::before { left: -70px; width: 55px; }
  .timing-box { grid-template-columns: 1fr; }
  .special-grid { grid-template-columns: 1fr; }
  .tab-panel { grid-template-columns: 150px 1fr; gap: 35px; }
  .variant-number { font-size: 110px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
}

@media (max-width: 620px) {
  .topbar { height: 60px; padding-inline: 18px; }
  .topbar.scrolled { height: 60px; }
  .brand { font-size: 23px; }
  .brand-mark { width: 27px; height: 27px; }
  .menu-button { width: 46px; height: 46px; margin-right: -8px; }
  .main-nav { inset: 60px 0 auto; max-height: calc(100svh - 60px); overflow-y: auto; padding: 14px 20px 24px; }
  .main-nav a, .main-nav .pocket-trigger { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero { padding: 96px 20px 54px; }
  .hero h1 { font-size: clamp(55px, 17vw, 76px); line-height: .91; }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .button { min-height: 54px; }
  .game-facts { justify-content: space-between; }
  .game-facts li { min-width: 0; flex: 1; margin-right: 12px; padding-right: 12px; }
  .game-facts strong { font-size: 28px; }
  .game-facts span { font-size: 9px; line-height: 1.3; }
  .hero-art { width: min(390px, 84vw); margin-top: 34px; }
  .ingredient-die { width: 52px; height: 52px; border-width: 3px; font-size: 23px; }
  .section { padding: 75px 20px; }
  .section-heading { margin-bottom: 42px; }
  .section-heading h2, .variant-intro h2 { font-size: clamp(46px, 13.5vw, 61px); line-height: .92; }
  .section-heading > p:last-child { font-size: 15px; }
  .cycle { grid-template-columns: 1fr; gap: 10px; }
  .cycle-arrow { transform: rotate(90deg); }
  .cycle-card:nth-of-type(3) { grid-column: auto; }
  .cycle-arrow:nth-of-type(4) { display: block; }
  .cycle-card { min-height: 220px; }
  .win-banner { grid-template-columns: 1fr; text-align: center; }
  .score-orb { margin: 0 auto; }
  .win-spark { display: none; }
  .setup-board { min-height: 675px; display: block; padding: 20px; overflow: hidden; }
  .deck { position: absolute; left: 24px; width: calc(100% - 48px); min-width: 0; min-height: 142px; padding: 18px 20px; transform: none; }
  .deck::before { top: 18px; font-size: 48px; }
  .deck strong { font-size: 22px; }
  .deck-yellow { top: 24px; transform: rotate(-1.5deg); }
  .deck:nth-child(2) { top: 184px; transform: rotate(1deg); }
  .deck:nth-child(3) { top: 344px; width: calc(100% - 48px); transform: rotate(-.7deg); }
  .board-track { position: absolute; left: 24px; right: 24px; bottom: 24px; width: auto; min-width: 0; height: 118px; margin: 0; }
  .board-track > span { width: 24px; height: 24px; }
  .board-track .big-skull { width: 36px; height: 36px; }
  .board-track .finish { width: 45px; height: 45px; }
  .setup-pieces { display: none; }
  .setup-list { grid-template-columns: 1fr; }
  .setup-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; padding: 18px 0 0; }
  .setup-list li > span { margin: 0; }
  .setup-list p { font-size: 14px; }
  .lab-topline { align-items: flex-start; flex-direction: column; }
  .roll-button { width: 100%; justify-content: center; }
  .turn-lab { padding: 22px; }
  .dice-tray { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; overflow: visible; padding-bottom: 0; }
  .lab-die { min-width: 0; min-height: 102px; padding: 8px 4px; }
  .lab-die span { font-size: 32px; }
  .lab-die small { font-size: 8px; letter-spacing: .04em; }
  .actions-grid { grid-template-columns: 1fr; }
  .action-card { padding: 24px; }
  .action-card > p { min-height: 0; }
  .details-toggle { min-height: 48px; align-items: center; }
  .pass-turn { grid-template-columns: auto 1fr; padding: 24px; }
  .pass-arrow { display: none; }
  .curse-anatomy { grid-template-columns: 1fr; gap: 58px; }
  .mock-card { width: min(310px, 90%); margin: 0 auto; }
  .anatomy-note::before { display: none; }
  .curse-rules { grid-template-columns: 1fr; }
  .timing-box { padding: 28px 22px; gap: 30px; }
  .timing-options { grid-template-columns: 1fr; }
  .conflict-note { align-items: flex-start; flex-direction: column; }
  .conflict-note strong { white-space: normal; }
  .special-card-copy { padding: 32px 26px; }
  .tab-list button { min-height: 54px; padding: 14px 8px; }
  .tab-panel { grid-template-columns: 1fr; padding: 30px 22px; gap: 28px; }
  .variant-number { font-size: 85px; }
  .tab-panel ol { grid-template-columns: 1fr; }
  .faq-list summary { min-height: 68px; font-size: 21px; }
  .final-cta { padding: 100px 20px; }
  .pocket-card { padding: 34px 22px 24px; }
  .pocket-costs { grid-template-columns: 1fr; }
}

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