:root {
  --forest: #0c4938;
  --forest-deep: #073226;
  --forest-light: #dbe8d7;
  --burgundy: #7b1822;
  --burgundy-deep: #4c0d14;
  --cream: #f7efd9;
  --paper: #fffaf0;
  --ink: #17332b;
  --muted: #5c6c64;
  --gold: #e1b74c;
  --line: rgba(23, 51, 43, .18);
  --radius: 1.5rem;
  --shadow: 0 24px 70px rgba(23, 51, 43, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Trebuchet MS", Avenir, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: 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: 100; left: 1rem; top: -5rem; padding: .8rem 1rem; color: white; background: var(--forest); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: .65rem .75rem .65rem 1rem;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 1rem;
  background: rgba(255,250,240,.82);
  box-shadow: 0 12px 35px rgba(23,51,43,.08);
  backdrop-filter: blur(16px);
  transition: box-shadow .25s, background .25s;
}
.site-header.is-scrolled { background: rgba(255,250,240,.96); box-shadow: 0 12px 35px rgba(23,51,43,.15); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: .76rem; line-height: 1.05; letter-spacing: .04em; text-transform: uppercase; }
.brand strong { color: var(--forest); font-size: 1rem; }
.brand-shield { display: grid; place-items: center; width: 2.25rem; height: 2.5rem; color: var(--gold); background: var(--forest); font-weight: 900; font-size: 1.2rem; clip-path: polygon(50% 0, 95% 16%, 91% 69%, 50% 100%, 9% 69%, 5% 16%); }
.site-nav { display: flex; align-items: center; gap: 1.55rem; }
.site-nav a { position: relative; font-size: .9rem; font-weight: 700; text-decoration: none; }
.site-nav a:not(.nav-cta)::after { position: absolute; content: ""; inset: auto 0 -.28rem; height: 2px; background: var(--burgundy); transform: scaleX(0); transition: transform .2s; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.nav-cta { padding: .6rem 1rem; color: white; background: var(--forest); border-radius: .7rem; }
.nav-toggle { display: none; width: 2.7rem; height: 2.7rem; border: 0; border-radius: .7rem; background: var(--forest); }
.nav-toggle span:not(.sr-only) { display: block; width: 1.2rem; height: 2px; margin: 4px auto; background: white; }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 9.5rem max(5vw, calc((100vw - 1180px)/2)) 5rem;
  background:
    radial-gradient(circle at 8% 22%, rgba(225,183,76,.22) 0 2px, transparent 3px),
    linear-gradient(125deg, #fffaf0 0 54%, #dbe8d7 54% 100%);
  background-size: 32px 32px, auto;
}
.hero::before { position: absolute; content: ""; left: 0; bottom: 0; width: 48%; height: 1px; background: var(--line); }
.eyebrow { margin: 0 0 1rem; color: var(--burgundy); font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: #f4d77b; }
h1, h2, h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.02; }
h1 { max-width: 760px; margin-bottom: 1.5rem; font-size: clamp(3.25rem, 7vw, 6.8rem); letter-spacing: -.055em; }
h1 em { color: var(--forest); font-weight: 400; }
.hero-lead { max-width: 590px; margin-bottom: 2rem; color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.3rem); }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 3.3rem; padding: .85rem 1.25rem; border: 0; border-radius: .8rem; cursor: pointer; font-weight: 900; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: white; background: var(--burgundy); box-shadow: 0 12px 25px rgba(123,24,34,.2); }
.button-primary:hover { background: var(--burgundy-deep); }
.text-link { font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: .35rem; }
.game-facts { display: flex; gap: 2rem; margin: 3.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.game-facts li { display: grid; }
.game-facts strong { font-family: Georgia, serif; font-size: 1.6rem; line-height: 1; }
.game-facts span { color: var(--muted); font-size: .77rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 580px; }
.halo { position: absolute; width: min(480px, 90%); aspect-ratio: 1; border: 1px solid rgba(12,73,56,.25); border-radius: 50%; }
.halo::before, .halo::after { position: absolute; content: ""; border: 1px solid rgba(12,73,56,.15); border-radius: 50%; }
.halo::before { inset: 10%; }
.halo::after { inset: -10%; }
.hero-box { position: relative; z-index: 2; width: min(390px, 73vw); filter: drop-shadow(0 35px 35px rgba(7,50,38,.25)); transform: rotate(3deg); animation: float 5.5s ease-in-out infinite; }
.coin { position: absolute; z-index: 3; display: grid; place-items: center; width: 3.8rem; aspect-ratio: 1; border: .3rem double #8b681d; border-radius: 50%; color: #704e0d; background: var(--gold); box-shadow: 0 12px 20px rgba(79,54,8,.2); font-family: Georgia, serif; font-size: 1.4rem; font-weight: 900; }
.coin-one { top: 14%; left: 6%; transform: rotate(-12deg); }
.coin-two { right: 3%; bottom: 20%; transform: rotate(14deg); }
.hero-note { position: absolute; z-index: 4; right: -1.5rem; top: 20%; padding: .9rem 1rem; color: white; background: var(--burgundy); box-shadow: 10px 10px 0 var(--gold); font-size: .8rem; line-height: 1.3; letter-spacing: .07em; text-transform: uppercase; transform: rotate(4deg); }
@keyframes float { 50% { transform: translateY(-12px) rotate(1deg); } }

.manifesto { padding: 7rem max(5vw, calc((100vw - 1180px)/2)); color: white; background: var(--forest); }
.manifesto-heading, .manifesto-copy { display: inline-block; vertical-align: top; }
.manifesto-heading { width: 57%; padding-right: 5%; }
.manifesto-copy { width: 42%; padding-top: 2rem; color: rgba(255,255,255,.78); font-size: 1.06rem; }
.manifesto h2, .section-intro h2, .characters h2, .rules h2, .mission h2, .final-cta h2 { margin-bottom: 1.5rem; font-size: clamp(2.55rem, 5vw, 5.2rem); letter-spacing: -.045em; }
.manifesto-copy strong { color: white; }
.path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 5rem; border-top: 1px solid rgba(255,255,255,.25); }
.path-step { position: relative; padding: 2.5rem 2.8rem 0 0; }
.path-step:not(:last-child)::after { position: absolute; content: ""; top: 0; right: 2rem; width: 1px; height: 100%; background: rgba(255,255,255,.16); }
.path-step span { display: block; margin-bottom: 3rem; color: var(--gold); font-weight: 900; }
.path-step h3 { margin-bottom: .5rem; font-size: 2rem; }
.path-step p { max-width: 300px; margin-bottom: 0; color: rgba(255,255,255,.68); }

.card-lab { padding: 7rem max(5vw, calc((100vw - 1180px)/2)); background: #f4e8cd; }
.section-intro { max-width: 780px; margin-bottom: 4rem; }
.section-intro h2 { color: var(--burgundy); }
.section-intro > p:last-child { max-width: 650px; color: var(--muted); font-size: 1.08rem; }
.lab-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.deck-stage { position: relative; display: grid; place-items: center; min-height: 570px; }
.card-button { position: relative; z-index: 3; width: min(360px, 72vw); padding: 0; border: 0; border-radius: 1.5rem; background: transparent; cursor: pointer; filter: drop-shadow(0 28px 24px rgba(70,39,23,.22)); transition: transform .25s; }
.card-button:hover { transform: rotate(-1deg) translateY(-5px); }
.card-button img { width: 100%; border-radius: 1.5rem; }
.card-button.is-changing { animation: deal .42s ease; }
.deck-shadow { position: absolute; width: min(360px, 72vw); aspect-ratio: 246.6/331.6; border-radius: 1.5rem; background: var(--forest); }
.deck-shadow-one { transform: rotate(7deg) translate(20px, 4px); }
.deck-shadow-two { transform: rotate(-5deg) translate(-18px, 8px); background: var(--burgundy); }
@keyframes deal { 45% { transform: translate(70px,-18px) rotate(7deg); opacity: .3; } }
.card-detail { padding: clamp(2rem, 5vw, 4rem); border: 1px solid rgba(123,24,34,.16); border-radius: 2rem; background: rgba(255,250,240,.82); box-shadow: var(--shadow); }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.card-kind { padding: .35rem .75rem; color: white; background: var(--forest); border-radius: 99px; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.card-kind.is-costly { background: var(--burgundy); }
.card-score { color: var(--forest); font-family: Georgia, serif; font-size: 3rem; }
.card-score.is-negative { color: var(--burgundy); }
.card-detail h3 { max-width: 520px; margin-bottom: 2rem; font-size: clamp(2.1rem, 4vw, 3.6rem); }
.detail-block { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.detail-block span { color: var(--muted); font-size: .73rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.detail-block p { margin: .25rem 0 0; font-size: 1.06rem; font-weight: 700; }
.question-block p { color: var(--burgundy); font-family: Georgia, serif; font-size: 1.35rem; }
.button-dark { width: 100%; margin-top: 1.5rem; color: white; background: var(--forest); }
.button-dark:hover { background: var(--forest-deep); }
.draw-count { margin: .8rem 0 0; color: var(--muted); text-align: center; font-size: .8rem; }

.characters { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; padding: 7rem max(5vw, calc((100vw - 1180px)/2)); }
.character-copy { position: sticky; top: 8rem; align-self: start; }
.character-copy h2 { color: var(--forest); }
.character-copy > p:last-child { color: var(--muted); }
.character-cards { display: grid; gap: 1.5rem; }
.character-card { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; align-items: center; padding: 1.6rem; border-radius: var(--radius); color: white; background: var(--burgundy); box-shadow: var(--shadow); }
.character-card.hunter { background: var(--forest); }
.character-card img { width: 180px; border-radius: 1rem; box-shadow: 0 16px 26px rgba(0,0,0,.18); transform: rotate(-2deg); }
.character-card.hunter img { transform: rotate(2deg); }
.character-card span { color: var(--gold); font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.character-card h3 { margin: .35rem 0 .6rem; font-size: 2rem; }
.character-card p { margin: 0; color: rgba(255,255,255,.76); }

.rules { display: grid; grid-template-columns: .8fr 1.2fr; gap: 6rem; padding: 7rem max(5vw, calc((100vw - 1180px)/2)); color: white; background: var(--forest-deep); }
.rules-title { align-self: center; }
.rules-title > p:last-child { max-width: 440px; color: rgba(255,255,255,.7); }
.rules-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rules-panel { position: relative; overflow: hidden; padding: 2rem; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); background: var(--forest); }
.rules-panel-red { background: var(--burgundy-deep); }
.rules-number { position: absolute; right: 1rem; top: -.8rem; color: rgba(255,255,255,.08); font-family: Georgia, serif; font-size: 7rem; font-weight: 900; line-height: 1; }
.mode { margin: 0 0 .2rem; color: var(--gold); font-size: .7rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.rules-panel h3 { position: relative; margin-bottom: 1.2rem; font-size: 2.25rem; }
.rules-panel > p:not(.mode) { position: relative; color: rgba(255,255,255,.75); }
.rules-panel ol { padding-left: 1.3rem; }
.rules-panel li { padding: .35rem 0 .35rem .35rem; border-bottom: 1px solid rgba(255,255,255,.1); }

.mission { position: relative; display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; padding: 8rem max(5vw, calc((100vw - 1180px)/2)); background: var(--paper); }
.mission::before { position: absolute; content: ""; width: 30vw; height: 30vw; left: -12vw; top: 15%; border: 1px solid rgba(12,73,56,.12); border-radius: 50%; }
.mission-card { position: relative; width: min(340px, 75vw); margin: auto; border-radius: 1.8rem; filter: drop-shadow(0 25px 30px rgba(23,51,43,.18)); transform: rotate(-4deg); }
.mission-copy h2 { max-width: 720px; color: var(--forest); }
.mission-copy > p { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
blockquote { max-width: 680px; margin: 2rem 0; padding: 1.5rem 0 1.5rem 1.5rem; border-left: 4px solid var(--gold); color: var(--burgundy); font-family: Georgia, serif; font-size: 1.45rem; font-style: italic; }
.mission-copy .byline { color: var(--ink); font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; }

.final-cta { padding: 1rem; background: var(--paper); }
.final-cta-inner { padding: 7rem max(2rem, 8vw); border-radius: 2rem; color: white; text-align: center; background:
  radial-gradient(circle at 18% 30%, rgba(225,183,76,.16) 0 3px, transparent 4px),
  var(--burgundy);
  background-size: 38px 38px;
}
.final-cta h2 { max-width: 980px; margin-left: auto; margin-right: auto; }
.button-light { color: var(--forest); background: var(--cream); }

footer { display: grid; grid-template-columns: 1fr auto; gap: 1rem 3rem; align-items: center; padding: 3rem max(5vw, calc((100vw - 1180px)/2)); background: var(--paper); font-size: .84rem; }
.footer-brand { grid-row: span 2; }
footer p { margin: 0; color: var(--muted); text-align: right; }
.disclaimer { max-width: 650px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

@media (max-width: 900px) {
  .site-header { margin-top: .6rem; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: calc(100% + .5rem); display: none; align-items: stretch; flex-direction: column; gap: .2rem; padding: .8rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .75rem; }
  .hero { grid-template-columns: 1fr; padding-top: 8.5rem; background: linear-gradient(165deg, #fffaf0 0 62%, #dbe8d7 62% 100%); }
  .hero-art { min-height: 520px; }
  .manifesto-heading, .manifesto-copy { width: 100%; }
  .manifesto-copy { padding-top: 0; }
  .lab-grid, .characters, .rules, .mission { grid-template-columns: 1fr; }
  .character-copy { position: static; }
  .rules { gap: 2.5rem; }
}

@media (max-width: 620px) {
  .site-header { width: calc(100% - 1rem); }
  .hero, .manifesto, .card-lab, .characters, .rules, .mission { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero { min-height: auto; padding-bottom: 3rem; }
  h1 { font-size: clamp(3rem, 14vw, 4.7rem); }
  .hero-lead { font-size: 1rem; }
  .game-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .hero-art { min-height: 450px; }
  .hero-note { right: .2rem; }
  .coin-one { left: 0; }
  .path { grid-template-columns: 1fr; }
  .path-step { padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .path-step:not(:last-child)::after { display: none; }
  .path-step span { margin-bottom: .75rem; }
  .deck-stage { min-height: 460px; }
  .card-detail { padding: 1.5rem; }
  .character-card { grid-template-columns: 105px 1fr; gap: 1.1rem; padding: 1rem; }
  .character-card img { width: 105px; border-radius: .7rem; }
  .character-card h3 { font-size: 1.45rem; }
  .character-card p { font-size: .86rem; }
  .rules-panels { grid-template-columns: 1fr; }
  .mission { overflow: hidden; }
  .final-cta-inner { padding: 5rem 1.25rem; }
  footer { grid-template-columns: 1fr; }
  .footer-brand { grid-row: auto; }
  footer p { text-align: left; }
}

@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; }
}
