/* Beast Out! landing page. Follows the client's mockups and the rulebook:
   cream paper, black ink plates, dark trailer stage, card-colored panels. */
:root {
  --cream: #f2e8d4;
  --paper: #f8f2e4;
  --ink: #1a1714;
  --ink-soft: #4b4239;
  --stage: #2d2b27;
  --ks: #05cd77;
  --join-a: #3f72dc;
  --join-b: #5e3fc6;
  --head: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --body: 'Roboto', system-ui, sans-serif;
  --wrap: min(1180px, 100% - 32px);
  --nav-h: 64px;
  --dots: radial-gradient(rgb(0 0 0 / .16) 1.1px, transparent 1.6px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1rem/1.5 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
strong { font-weight: 700; color: var(--ink); }
.nw { white-space: nowrap; }
.loot strong, .hero strong, .final strong, .modal strong, .special strong { color: inherit; }
.section__intro, .zone p, .rules p, .walk__caption p, .faq details p { text-wrap: pretty; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid #ffb02e; outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  border: 0; border-radius: 999px; padding: .95em 1.8em; cursor: pointer;
  font: 900 1.05rem/1.1 var(--body); text-transform: uppercase; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn--join { background: linear-gradient(135deg, var(--join-a), var(--join-b)); color: #fff; box-shadow: 0 4px 14px rgb(63 60 200 / .35); }
.btn--ks { background: var(--ks); color: var(--ink); }
.btn--small { padding: .7em 1.2em; font-size: .85rem; border-radius: 4px; box-shadow: none; }

/* ---------- Sticky bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 0 max(16px, (100% - 1180px) / 2);
  background: rgb(26 23 20 / .96); backdrop-filter: blur(8px);
  border-bottom: 3px solid #000;
}
.nav .btn--ks { justify-self: start; }
.nav .btn--join { justify-self: end; }
.nav__logo { transition: opacity .3s ease, translate .3s ease; }
.nav__logo img { height: 52px; width: auto; }
.js .nav:not(.is-scrolled) .nav__logo { opacity: 0; translate: 0 -10px; pointer-events: none; }

/* ---------- Hero: trailer front and center ---------- */
.hero {
  --logo-h: clamp(84px, 13vh, 150px);
  /* trailer height budget: the first screen minus bar, logo, tagline, form and gaps */
  --video-h: calc(100svh - var(--nav-h) - var(--logo-h) - 250px);
  position: relative; isolation: isolate; overflow-x: clip;
  display: grid; justify-items: center; gap: clamp(14px, 2.2vh, 22px);
  padding: clamp(16px, 3vh, 32px) 16px clamp(28px, 5vh, 48px);
  background: var(--dots) 0 0 / 10px 10px, radial-gradient(ellipse at 50% 40%, #3a3732, var(--stage) 70%);
  color: var(--cream); text-align: center;
}
.hero__title {
  display: grid; justify-items: center; gap: 10px;
  font: 900 clamp(1.15rem, 2.4vw, 1.8rem)/1.1 var(--head); text-transform: uppercase; letter-spacing: .01em;
}
.hero__title span { max-width: 22em; }
.hero__logo { height: var(--logo-h); width: auto; filter: drop-shadow(0 8px 0 rgb(0 0 0 / .35)); animation: logo-in .7s cubic-bezier(.3, 1.5, .5, 1) backwards; }
@keyframes logo-in { from { opacity: 0; scale: .7; rotate: -6deg; } }
.trailer {
  /* as big as possible while the signup form still fits on the first screen */
  --w: min(1040px, 100%, var(--video-h) * 16 / 9);
  position: relative; width: var(--w); min-width: min(100%, 520px);
  aspect-ratio: 16 / 9;
  border: 4px solid #000; border-radius: 20px; background: #000;
  box-shadow: 0 24px 60px rgb(0 0 0 / .45);
}
.trailer video { width: 100%; height: 100%; display: block; border-radius: 16px; object-fit: cover; background: #000; }
.trailer__sound {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: .6em 1.1em .6em .85em; border: 2px solid #fff; border-radius: 999px;
  background: rgb(0 0 0 / .65); color: #fff; cursor: pointer;
  font: 700 .95rem/1 var(--body); text-transform: uppercase; letter-spacing: .03em;
  animation: nudge 2.4s ease-in-out 1.5s 3;
}
.trailer__sound svg { width: 22px; height: 22px; fill: currentColor; }
.trailer__sound:hover { background: #000; }
@keyframes nudge { 0%, 100% { transform: none; } 10% { transform: scale(1.08); } 20% { transform: none; } }
.trailer__play {
  position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; border-radius: 50%;
  border: 4px solid #000; background: linear-gradient(135deg, var(--join-a), var(--join-b)); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 6px 0 #000;
}
.trailer__play svg { width: 44px; fill: #fff; margin-left: 6px; }
.trailer.is-sound .trailer__sound, .trailer__play[hidden] { display: none; }
.trailer__badge {
  position: absolute; z-index: 2; top: -34px; right: -38px; width: clamp(84px, 11vw, 140px);
  transform: rotate(10deg); transition: transform .2s ease;
  filter: drop-shadow(0 6px 10px rgb(0 0 0 / .35));
}
.trailer__badge:hover { transform: rotate(0) scale(1.06); }

/* Monsters around the logo and the trailer */
.hero__m { position: absolute; z-index: -1; display: none; pointer-events: none; filter: drop-shadow(0 8px 14px rgb(0 0 0 / .35)); }
.hero__m--harper, .hero__m--maddy { display: block; top: 6px; }
.hero__m--harper { width: clamp(78px, 17vw, 170px); left: max(2%, 50% - 330px); rotate: -6deg; }
.hero__m--maddy { width: clamp(84px, 18vw, 180px); right: max(2%, 50% - 330px); }
@media (min-width: 1240px) {
  .hero { --half: min(520px, var(--video-h) * 8 / 9); }
  .hero__m { display: block; }
  .hero__m--harper { width: 210px; left: calc(50% - var(--half) - 180px); top: 3%; }
  .hero__m--anne { width: 190px; left: calc(50% - var(--half) - 150px); bottom: 4%; }
  .hero__m--maddy { width: 230px; right: calc(50% - var(--half) - 200px); top: 3%; }
  .hero__m--vlad { width: 180px; right: calc(50% - var(--half) - 130px); bottom: 0; }
}

/* ---------- Signup form ---------- */
.signup { width: min(100%, 600px); display: grid; gap: 10px; justify-items: center; }
.signup__row {
  width: 100%; display: flex; gap: 6px; padding: 6px;
  background: #fff; border: 3px solid #000; border-radius: 999px;
}
.signup input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px;
  font: 500 1.05rem var(--body); color: var(--ink);
}
.signup input:focus { outline: none; }
.signup__row:focus-within { outline: 3px solid #ffb02e; outline-offset: 3px; }
.signup .btn { box-shadow: none; padding: .9em 1.4em; }
.signup__note { font-size: .92rem; opacity: .85; }
.signup.is-done .signup__row { display: none; }
.signup.is-done .signup__note {
  opacity: 1; font-weight: 700; font-size: 1.05rem; color: var(--ink);
  background: var(--ks); border: 3px solid #000; border-radius: 12px; padding: 12px 18px;
}
.signup.is-error .signup__note { color: #ff6b5a; font-weight: 700; opacity: 1; }
.signup--big .signup__row { padding: 8px; }
.signup--big .btn { font-size: 1.15rem; padding: 1em 1.8em; }
@media (max-width: 560px) {
  .signup__row { flex-direction: column; border-radius: 18px; }
  .signup input { padding: 12px; text-align: center; }
  .signup .btn { border-radius: 12px; white-space: normal; }
}

/* ---------- Kickstarter band ---------- */
.ks-band { background: var(--ks); border-block: 4px solid #000; display: flex; justify-content: center; overflow: hidden; }
.ks-band a { display: block; width: min(1100px, 100%); }
.ks-band img { width: 100%; }

/* ---------- Section basics ---------- */
.section { position: relative; width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 96px) 0; }
.plate { display: flex; justify-content: center; }
.plate span {
  background: var(--ink); color: var(--cream); padding: .3em .9em .25em;
  font: 900 clamp(1.6rem, 3.6vw, 2.4rem)/1.1 var(--head); text-transform: uppercase; letter-spacing: .02em;
  box-shadow: 6px 6px 0 rgb(0 0 0 / .18);
}
.section__intro { text-align: center; font-size: 1.12rem; color: var(--ink-soft); max-width: 36em; margin: 18px auto 0; }
h3 { font: 900 1.4rem/1.1 var(--head); text-transform: uppercase; }

/* card arrangements */
.tag {
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px;
  padding: .3em .85em; font: 900 .78rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.row { display: flex; gap: 8px; justify-content: center; align-items: flex-end; }
.zone__art img, .rules__art img { width: 64px; border-radius: 6px; box-shadow: 0 4px 10px rgb(0 0 0 / .22); }

/* ---------- Glossary ---------- */
.zones {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 48px 28px; margin-top: 48px; text-align: center;
}
.zone { grid-column: span 2; grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 10px; justify-items: center; }
.zone:nth-child(4) { grid-column: 2 / span 2; }
.zone p { max-width: 20em; color: var(--ink-soft); }
.zone__art { height: 128px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 6px; }
.row--guards { gap: 10px; }
.slot { display: grid; }
.slot img { grid-area: 1 / 1; }
.slot .up { transform: translateY(-34px); }
.fan { display: flex; padding-bottom: 6px; }
.fan img:nth-child(1) { transform: rotate(-14deg) translate(18px, 8px); }
.fan img:nth-child(2) { transform: translateY(-4px); position: relative; }
.fan img:nth-child(3) { transform: rotate(14deg) translate(-18px, 8px); position: relative; }
.pile { display: grid; }
.pile img { grid-area: 1 / 1; }
.pile img:nth-child(1) { transform: rotate(-16deg) translateX(-6px); }
.pile img:nth-child(2) { transform: rotate(11deg) translateX(6px); }
.pile img:nth-child(3) { transform: rotate(-3deg); }
.deck { display: grid; }
.deck img { grid-area: 1 / 1; }
.deck img:nth-child(2) { transform: translate(2px, -2px); }
.deck img:nth-child(3) { transform: translate(4px, -4px); }
.deck img:nth-child(4) { transform: translate(6px, -6px); }
.deck img:nth-child(5) { transform: translate(8px, -8px); }
.peek { position: absolute; z-index: -1; pointer-events: none; display: none; }
@media (min-width: 1100px) {
  .peek { display: block; }
  .peek--brendan { width: 210px; left: -150px; bottom: 30px; transform: scaleX(-1); }
  .peek--goblinda { width: 200px; right: -140px; bottom: 30px; }
  .peek--wolf { width: 180px; left: -170px; bottom: 40px; }
  .peek--scott { width: 160px; right: -150px; top: 60px; transform: scaleX(-1); }
  .peek--skelly { width: 220px; left: -190px; top: 120px; }
  .peek--abdbull { width: 180px; right: -160px; bottom: 20px; }
}
@media (max-width: 860px) {
  .zones { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .zone, .zone:nth-child(4) { grid-column: auto; }
  .zone:last-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .zone__art img { width: 50px; } }
@media (max-width: 560px) { .zone h3 { font-size: 1.05rem; } }

/* ---------- How to play: step-by-step walkthrough ---------- */
.how { padding-top: 0; }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.stats div { display: flex; align-items: baseline; gap: 6px; border: 3px solid var(--ink); border-radius: 999px; padding: .35em 1.1em; background: var(--paper); }
.stats dt { font: 900 1.5rem/1 var(--head); }
.stats dd { margin: 0; font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; }
.goal { max-width: 34em; margin: 22px auto 0; text-align: center; font-size: 1.12rem; font-weight: 500; }

.walk { --panel-h: clamp(250px, 30vw, 300px); position: relative; max-width: 820px; margin: 40px auto 0; }
.walk__slides { display: grid; gap: 48px; overflow-x: clip; overflow-clip-margin: 12px; }
.walk__slide { display: grid; justify-items: center; }
/* With JS, slides stack in one cell (so the box keeps the height of the tallest) and swap like cards */
.js .walk__slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  translate: calc(var(--side, 1) * 80px) 0; rotate: calc(var(--side, 1) * 2deg); scale: .96;
  transition: opacity .4s ease, translate .55s cubic-bezier(.2, .8, .2, 1), rotate .55s ease, scale .55s ease, visibility 0s .55s;
}
.js .walk__slide.is-before { --side: -1; }
.js .walk__slide.is-active { opacity: 1; visibility: visible; translate: 0 0; rotate: 0deg; scale: 1; transition-delay: 0s; }
.walk__panel {
  position: relative; width: 100%; height: var(--panel-h); overflow: hidden;
  display: grid; place-items: center; padding: 20px 24px 52px;
  background: var(--dots) 0 0 / 11px 11px, linear-gradient(var(--g1), var(--g2));
  border: 7px solid var(--ink); border-radius: 26px;
}
.walk__art { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 34px); }
.walk__art img { width: clamp(46px, 7vw, 74px); border-radius: 6px; box-shadow: 0 4px 10px rgb(0 0 0 / .25); }
/* cards are dealt in each time a step opens; main.js numbers them with --i */
.js .walk__slide.is-active .walk__art img { animation: deal .5s cubic-bezier(.2, .9, .3, 1.25) backwards; animation-delay: calc(var(--i, 0) * 55ms + .12s); }
@keyframes deal { from { opacity: 0; translate: 0 -46px; rotate: -14deg; } }
.walk__caption {
  position: relative; margin-top: -36px; width: min(540px, 92%);
  display: grid; justify-items: center; gap: 6px; text-align: center;
  background: var(--paper); border: 6px solid var(--ink); border-radius: 18px; padding: 12px 22px 16px;
}
.walk__num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-top: -36px; border-radius: 50%;
  background: var(--ink); color: var(--cream); border: 4px solid var(--paper); font: 900 1.4rem/1 var(--head);
}
.walk__caption h3 { font-size: 1.5rem; }
.walk__caption p:last-child { color: var(--ink-soft); max-width: 30em; }

.walk__nav, .juke__nav { display: none; }
.js .walk__nav, .js .juke__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.walk__arrow {
  flex: none; width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--ink); color: var(--cream);
  box-shadow: 0 4px 0 rgb(0 0 0 / .25); transition: transform .15s ease, opacity .2s ease;
}
.walk__arrow svg { width: 24px; height: 24px; }
.walk__arrow:hover { transform: scale(1.08); }
.walk__arrow:active { transform: scale(.95); }
.walk__arrow:disabled { opacity: .25; cursor: default; transform: none; }
.walk__dots { display: flex; gap: 8px; }
.walk__dots button { width: 12px; height: 12px; padding: 0; border: 2px solid var(--ink); border-radius: 999px; background: transparent; cursor: pointer; transition: width .3s ease, background-color .3s ease; }
.walk__dots button[aria-current] { width: 30px; background: var(--ink); }
@media (min-width: 1000px) {
  /* arrows sit on either side of the box, centered on it */
  .walk__arrow--prev, .walk__arrow--next { position: absolute; top: calc(var(--panel-h) / 2 - 30px); width: 60px; height: 60px; }
  .walk__arrow--prev { left: -84px; }
  .walk__arrow--next { right: -84px; }
}

/* step illustrations */
.w-group { display: grid; justify-items: center; gap: 12px; }
.w-arrow { flex: none; width: 52px; color: var(--ink); }
.w-deal { display: flex; }
.w-deal img { margin-left: -38px; }
.w-deal img:first-child { margin-left: 0; }
.w-deal img:nth-child(even) { translate: 0 -8px; }
.w-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--cream); font: 900 1.6rem/1 var(--head); }
.w-first .pick { translate: 0 -18px; box-shadow: 0 0 0 4px #fff, 0 0 26px 8px rgb(255 255 255 / .85); }
.fan .new { box-shadow: 0 0 0 4px #fff, 0 0 26px 8px rgb(255 255 255 / .85); }
.walk__art .flipped { translate: 0 -14px; rotate: 6deg; box-shadow: 0 0 0 4px #fff, 0 0 26px 8px rgb(255 255 255 / .85); }
.rule__math { display: grid; gap: 10px; }
.eq { display: flex; align-items: center; gap: 12px; }
.eq b, .rule__or { font: 900 2.2rem/1 var(--head); text-transform: uppercase; }
.rule__wilds { display: flex; }
.rule__wilds img { margin-left: -20px; }
.rule__wilds img:nth-child(1) { margin-left: 0; transform: rotate(-16deg) translateY(10px); }
.rule__wilds img:nth-child(2) { transform: rotate(-5deg); }
.rule__wilds img:nth-child(3) { transform: rotate(5deg); }
.rule__wilds img:nth-child(4) { transform: rotate(16deg) translateY(10px); }
.w-win { position: relative; display: flex; align-items: flex-end; }
.walk__art .w-vlad { width: clamp(110px, 14vw, 150px); border-radius: 0; box-shadow: none; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .3)); }
.walk__art .w-last { rotate: -14deg; translate: 24px 0; position: relative; z-index: 1; }
.w-stamp {
  position: absolute; z-index: 2; top: 28%; left: 50%; translate: -50% 0; rotate: -12deg;
  border: 4px solid #c62f2f; border-radius: 6px; color: #c62f2f; background: rgb(255 255 255 / .9);
  font: 900 1.8rem/1 var(--head); text-transform: uppercase; padding: .12em .4em;
}
.js .walk__slide.is-active .w-stamp { animation: stamp .35s cubic-bezier(.3, 1.6, .5, 1) .75s backwards; }
@keyframes stamp { from { opacity: 0; scale: 2.6; } }
@media (max-width: 560px) {
  .walk { --panel-h: 236px; }
  .walk__panel { padding: 14px 12px 44px; border-width: 5px; border-radius: 20px; }
  .walk__art { gap: 10px; }
  .walk__art img { width: clamp(40px, 11vw, 56px); }
  .w--palace .walk__art img, .w--take .walk__art img, .w--hand .walk__art img { width: clamp(32px, 8.4vw, 46px); }
  .w-arrow { width: 30px; }
  .w-deal img { margin-left: -28px; }
  .w-badge { width: 48px; height: 48px; font-size: 1.2rem; }
  .walk__art .w-vlad { width: 96px; }
  .w-stamp { font-size: 1.3rem; }
  .eq b, .rule__or { font-size: 1.5rem; }
  .rule__wilds img { margin-left: -16px; }
  .walk__caption { border-width: 4px; padding: 10px 14px 14px; }
  .walk__caption h3 { font-size: 1.25rem; }
  .tag { font-size: .68rem; }
}

/* ---------- Special cards ---------- */
.special { position: relative; padding-top: 34px; background: var(--ink); }
.special .plate { position: absolute; top: 0; left: 0; right: 0; transform: translateY(-50%); z-index: 1; }
.special .plate span { border: 4px solid var(--ink); }
.special__intro { color: var(--cream); text-align: center; padding: 6px 16px 22px; font-size: 1.05rem; }
.special__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-top: 6px solid var(--ink); }
.special__card {
  grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 8px; justify-items: center; text-align: center;
  padding: 44px 20px 40px; color: var(--ink);
}
.special__card img { width: min(170px, 70%); border-radius: 8px; box-shadow: 0 10px 22px rgb(0 0 0 / .3); margin-bottom: 14px; transition: transform .25s ease; }
.special__card:hover img { transform: translateY(-8px) rotate(-3deg); }
.special__card h3 { font-size: 1.6rem; }
.special__card p { max-width: 16em; font-weight: 500; }
.special__card small { align-self: start; margin-top: 4px; font: 700 .8rem/1 var(--body); text-transform: uppercase; letter-spacing: .06em; background: rgb(0 0 0 / .78); color: #fff; padding: .45em .8em; border-radius: 999px; }
.special__card--mirror { background: linear-gradient(#4a7ee0, #6343c8); }
.special__card--rebirth { background: linear-gradient(#6bcf55, #4c9fa6); }
.special__card--downfall { background: linear-gradient(#4aa6a0, #4a83d8); }
.special__card--burndown { background: linear-gradient(#ffad3b, #f86529); }
@media (max-width: 860px) { .special__list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Free loot ---------- */
.loot {
  position: relative; overflow-x: clip;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(64px, 8vw, 110px) max(16px, (100% - 1180px) / 2);
  background: var(--dots) 0 0 / 11px 11px, linear-gradient(120deg, #ffb53b, #f2623c 45%, #c2408f 75%, #6c48b9);
  border-block: 4px solid var(--ink);
}
.loot__art { position: relative; aspect-ratio: 1 / 1; max-width: 500px; width: 100%; justify-self: center; }
.loot__poster { position: absolute; width: 56%; border: 4px solid #000; box-shadow: 0 16px 36px rgb(0 0 0 / .45); }
.loot__poster--a { left: 2%; top: 4%; transform: rotate(-7deg); }
.loot__poster--b { right: 4%; top: 8%; transform: rotate(6deg); }
.loot__pnp { position: absolute; left: 20%; bottom: 0; display: flex; }
.loot__pnp img { width: 96px; border-radius: 6px; outline: 2px dashed rgb(255 255 255 / .9); outline-offset: 4px; box-shadow: 0 8px 18px rgb(0 0 0 / .45); }
.loot__pnp img:nth-child(1) { transform: rotate(-10deg); }
.loot__pnp img:nth-child(2) { transform: translateY(-12px); margin-inline: -8px; }
.loot__pnp img:nth-child(3) { transform: rotate(10deg); }
.loot__sticker {
  position: absolute; z-index: 2; top: -4%; left: -4%; width: clamp(96px, 12vw, 132px); aspect-ratio: 1;
  display: grid; place-items: center; rotate: -14deg;
  background: #ffe14d; color: var(--ink); font: 900 clamp(1.5rem, 2.6vw, 2.1rem)/1 var(--head); text-transform: uppercase;
  clip-path: polygon(50% 0, 61% 14%, 79% 8%, 80% 26%, 98% 31%, 88% 47%, 98% 63%, 80% 70%, 79% 90%, 61% 85%, 50% 100%, 39% 85%, 21% 90%, 20% 70%, 2% 63%, 12% 47%, 2% 31%, 20% 26%, 21% 8%, 39% 14%);
  animation: throb 2.4s ease-in-out infinite;
}
@keyframes throb { 50% { scale: 1.08; rotate: -8deg; } }
.loot__ticket {
  position: relative; display: grid; gap: 18px; justify-items: center; text-align: center;
  padding: clamp(26px, 3.4vw, 40px); background: var(--paper); color: var(--ink);
  border: 5px solid var(--ink); border-radius: 24px; box-shadow: 12px 12px 0 var(--ink);
  outline: 3px dashed rgb(26 23 20 / .35); outline-offset: -16px;
}
.loot h2 { font: 900 clamp(2rem, 4vw, 3rem)/1 var(--head); text-transform: uppercase; }
.loot__lead { font-size: 1.15rem; max-width: 30em; }
/* What subscribers get: real art on colored tiles */
.perks { width: 100%; display: grid; gap: 16px 22px; }
.perk { display: grid; grid-template-columns: 68px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; text-align: left; }
.perk__art {
  grid-row: span 2; position: relative; width: 68px; height: 68px; overflow: hidden;
  border: 3px solid var(--ink); border-radius: 16px; rotate: -4deg;
  background: var(--dots) 0 0 / 7px 7px, var(--pc); box-shadow: 3px 3px 0 var(--ink);
  transition: rotate .25s cubic-bezier(.3, 1.6, .5, 1), scale .25s ease;
}
.perk:nth-child(even) .perk__art { rotate: 4deg; }
.perk:hover .perk__art { rotate: 0deg; scale: 1.08; }
.perk__art img { position: absolute; }
.perk__poster { width: 64%; left: 18%; top: 12%; border: 2px solid var(--ink); rotate: -6deg; }
.perk__cards img { width: 46%; top: 14%; border-radius: 3px; }
.perk__cards img:first-child { left: 10%; rotate: -12deg; }
.perk__cards img:last-child { right: 10%; rotate: 10deg; }
.perk__monster { width: 76%; left: 12%; bottom: -14%; }
.perk__badge { width: 90%; left: 5%; top: 5%; }
.perk__title { align-self: end; font: 900 1.12rem/1.1 var(--head); text-transform: uppercase; text-wrap: balance; }
.perk__body { align-self: start; font-size: .92rem; color: var(--ink-soft); }
.perks--full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* In the loot box each item is centered: art on top, then title and text */
.loot .perks { gap: 26px 28px; margin: 4px 0 6px; }
.loot .perk { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 6px; }
.loot .perk__art { grid-row: auto; width: 76px; height: 76px; margin-bottom: 6px; }
.loot .perk__body { max-width: 20em; }
@media (max-width: 560px) { .perks--full { grid-template-columns: 1fr; } }
.perks--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 760px; gap: 22px 16px; }
.perks--compact .perk { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 12px; }
.perks--compact .perk__art { grid-row: auto; width: 88px; height: 88px; border-color: #000; box-shadow: 4px 4px 0 #000; }
.perks--compact .perk__title { font-size: 1rem; color: var(--cream); }
@media (max-width: 960px) { .perks--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; } }
@media (max-width: 560px) { .perks--compact { gap: 20px 10px; } .perks--compact .perk__title { font-size: .86rem; } }
.loot .signup { justify-items: center; }
.loot .signup__note { opacity: 1; color: var(--ink-soft); }
@media (max-width: 900px) {
  .loot { grid-template-columns: 1fr; }
  .loot__art { max-width: 380px; }
  .loot__ticket, .loot .signup { justify-items: center; text-align: center; }
}

/* ---------- Optional rules ---------- */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; margin-top: 48px; text-align: center; }
.rules li { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 10px; justify-items: center; }
.rules p { color: var(--ink-soft); max-width: 18em; }
.rules__art { height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.spread { display: flex; }
.spread img { margin-left: -46px; }
.spread img:first-child { margin-left: 0; }
.spread img:nth-child(2) { transform: translateY(-6px); }
.spread img:nth-child(3) { transform: translateY(-12px); }
.spread img:nth-child(4) { transform: translateY(-18px); }
.spread--gap img:nth-child(4) { margin-left: 18px; transform: rotate(12deg) translateY(6px); }
.echo { display: flex; gap: 14px; }
.echo img:first-child { transform: rotate(-10deg); }
.echo img:last-child { transform: rotate(8deg) translateY(-12px); }
@media (max-width: 960px) { .rules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .rules { grid-template-columns: 1fr; } }

/* ---------- Meet the beasts: card jukebox ---------- */
.beasts { padding-top: clamp(40px, 6vw, 72px); }
.beasts__dragon { width: min(760px, 100%); margin: 0 auto -18px; animation: hover 5s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-10px); } }
.juke { --w: clamp(230px, 22vw, 280px); margin-top: 36px; overflow-x: clip; }
/* Without JS: a plain swipeable row of cards */
.juke__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 0; }
.juke__item { flex: none; width: var(--w); aspect-ratio: 420 / 588; scroll-snap-align: center; perspective: 1100px; }
.js .juke__track { display: block; position: relative; overflow: visible; perspective: 1200px; height: calc(var(--w) * 1.4 + 44px); padding: 0; touch-action: pan-y; }
.js .juke__item {
  position: absolute; left: 50%; top: 22px; margin-left: calc(var(--w) / -2);
  transform: translateX(calc(var(--o, 0) * var(--w) * .74)) translateZ(calc(var(--a, 0) * -150px)) rotateY(calc(var(--o, 0) * 28deg));
  opacity: calc(1 - var(--a, 0) * .32); z-index: calc(20 - var(--a, 0));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .45s ease, filter .45s ease;
}
.js .juke__item:not(.is-active) { filter: saturate(.75) brightness(.85); }
.js .juke__item.is-far { opacity: 0; pointer-events: none; }
.juke__card {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none;
  cursor: pointer; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.25, .5, 1);
}
.juke__item.is-flipped .juke__card { transform: rotateY(180deg); }
.juke__face { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.juke__front img { width: 100%; height: 100%; border-radius: 14px; box-shadow: 0 18px 40px rgb(0 0 0 / .3); }
.juke__flipicon {
  position: absolute; right: -12px; bottom: 12%; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 3px solid var(--ink);
  background: linear-gradient(135deg, var(--join-a), var(--join-b)); color: #fff; font: 900 1.4rem/1 var(--body);
  opacity: 0; scale: .5; transition: opacity .3s ease, scale .3s ease;
}
.js .juke__item.is-active .juke__flipicon { opacity: 1; scale: 1; animation: wiggle 2.8s ease-in-out 1s infinite; }
@keyframes wiggle { 0%, 80%, 100% { rotate: 0deg; } 85% { rotate: -25deg; } 90% { rotate: 20deg; } 95% { rotate: -10deg; } }
.juke__back {
  transform: rotateY(180deg); display: grid; grid-template-rows: 52% 1fr; overflow: hidden; text-align: left;
  background: var(--paper); color: var(--ink); border: 5px solid var(--ink); box-shadow: 0 18px 40px rgb(0 0 0 / .3);
}
.juke__art { position: relative; overflow: hidden; background: var(--dots) 0 0 / 9px 9px, var(--c); border-bottom: 4px solid var(--ink); }
.juke__art img {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: auto; height: auto; max-width: 92%; max-height: 94%;
  filter: drop-shadow(0 6px 8px rgb(0 0 0 / .25));
}
.juke__item--oozy .juke__art img { bottom: 10px; }
.juke__item--bahamat-flying .juke__art img { bottom: auto; top: 50%; translate: -50% -50%; width: 128%; max-width: none; max-height: none; }
.juke__item--howard .juke__art img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: 50% 20%; filter: none; }
.juke__copy { display: grid; align-content: center; justify-items: center; gap: 4px; padding: 12px 16px; text-align: center; }
.juke__no { font: 900 .72rem/1 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.juke__name { font: 900 1.55rem/1 var(--head); text-transform: uppercase; }
.juke__fact { font: 400 .9rem/1.35 var(--body); color: var(--ink-soft); text-wrap: balance; }
.juke__status { min-width: 11em; display: grid; justify-items: center; gap: 2px; text-align: center; }
.juke__status b { font: 900 1.5rem/1 var(--head); text-transform: uppercase; }
.juke__status span { font-size: .85rem; color: var(--ink-soft); }
.juke__hint { text-align: center; font-size: .92rem; color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 560px) {
  .juke__name { font-size: 1.3rem; }
  .juke__fact { font-size: .82rem; }
  .juke__copy { padding: 10px 12px; }
  .juke__flipicon { right: -6px; }
}

/* ---------- Creators ---------- */
.creators { padding-top: 24px; }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); justify-content: center; gap: 40px; margin-top: 40px; text-align: center; }
.people li { grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 6px; justify-items: center; }
.people__photo {
  justify-self: center;
  width: 160px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 8px;
  border: 4px solid var(--ink); background: #d9cdb4; box-shadow: 6px 6px 0 var(--ink);
}
.people__photo svg { width: 100%; height: 100%; fill: #a8987a; }
.people__role { font: 900 .85rem/1 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.people p:last-child { color: var(--ink-soft); }
@media (max-width: 900px) { .people { grid-template-columns: minmax(0, 420px); } }

/* ---------- FAQ ---------- */
.faq { padding-top: 24px; }
.faq__list { max-width: 760px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
  font: 900 1.15rem/1.2 var(--head); text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font: 900 1.6rem/1 var(--body); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-soft); }

/* ---------- Final call ---------- */
.final {
  position: relative; display: grid; justify-items: center; gap: 16px; text-align: center;
  padding: clamp(64px, 9vw, 110px) 16px clamp(56px, 8vw, 88px);
  background: var(--dots) 0 0 / 10px 10px, var(--stage); color: var(--cream);
}
.final__badge { width: clamp(110px, 14vw, 160px); transform: rotate(-8deg); margin-bottom: 4px; transition: transform .2s ease; }
.final__badge:hover { transform: rotate(0) scale(1.05); }
.final h2 { font: 900 clamp(2.2rem, 5.4vw, 4rem)/1 var(--head); text-transform: uppercase; }
.final > p { font-size: 1.15rem; max-width: 30em; }
.final > p { margin-bottom: 4px; }
.final .perks { margin: 10px 0 14px; }

.ks-band--end { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer {
  position: relative; background: var(--stage); color: var(--cream); text-align: center;
  padding: 0 16px 40px; display: grid; justify-items: center; gap: 10px;
}
.footer__vlad { width: 150px; margin: -2px 0 10px; }
.footer__logo { width: 140px; }
.footer__ks a { font: 900 1.2rem/1.2 var(--head); text-transform: uppercase; color: var(--ks); letter-spacing: .04em; text-decoration: none; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__links svg { width: 20px; height: 20px; fill: currentColor; }
.footer__credits { opacity: .65; font-size: .9rem; }

/* ---------- Signup popup ---------- */
.modal {
  width: min(560px, 100% - 24px); max-width: none; max-height: calc(100svh - 24px); overflow-y: auto;
  padding: 26px clamp(18px, 4vw, 32px) 28px; border: 4px solid #000; border-radius: 22px;
  background: var(--dots) 0 0 / 10px 10px, var(--stage); color: var(--cream); text-align: center;
}
.modal[open] { display: grid; justify-items: center; gap: 14px; animation: pop .25s cubic-bezier(.3, 1.4, .5, 1); }
.modal::backdrop { background: rgb(0 0 0 / .7); backdrop-filter: blur(3px); }
@keyframes pop { from { scale: .9; opacity: 0; } }
.modal__badge { width: 92px; rotate: 8deg; }
.modal h2 { font: 900 clamp(1.6rem, 6vw, 2.1rem)/1 var(--head); text-transform: uppercase; }
.modal__lead { max-width: 30em; }
.modal .perks { grid-template-columns: 1fr; gap: 12px; text-align: left; padding: 16px; border-radius: 16px; background: var(--paper); color: var(--ink); }
.modal .perk { grid-template-columns: 52px 1fr; column-gap: 12px; }
.modal .perk__art { width: 52px; height: 52px; border-radius: 12px; }
.modal .perk__title { font-size: .95rem; }
.modal .perk__body { font-size: .82rem; }
.modal .signup { width: 100%; }
.modal .signup__row { flex-direction: column; border-radius: 18px; }
.modal .signup input { padding: 12px; text-align: center; }
.modal .signup .btn { border-radius: 12px; white-space: normal; }
.modal__close {
  position: absolute; top: 10px; left: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--cream); font: 400 2rem/1 var(--body); cursor: pointer;
}
.modal__close:hover { background: rgb(255 255 255 / .1); }

/* ---------- Freebie page ---------- */
.freebie-page { background: var(--dots) 0 0 / 10px 10px, var(--stage); color: var(--cream); }
.freebie { width: var(--wrap); margin: 0 auto; padding: 40px 0 64px; display: grid; justify-items: center; gap: 18px; text-align: center; }
.freebie__logo img { width: 160px; }
.freebie h1 { font: 900 clamp(2.2rem, 6vw, 3.6rem)/1 var(--head); text-transform: uppercase; }
.freebie__lead { font-size: 1.15rem; max-width: 34em; }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; width: 100%; margin: 20px 0 12px; }
.dl li { background: var(--cream); color: var(--ink); border: 4px solid #000; border-radius: 18px; padding: 20px; display: grid; grid-template-rows: auto auto 1fr auto; justify-items: center; gap: 8px; }
.dl__art { height: 200px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.dl__art > img { height: 100%; width: auto; border: 3px solid #000; }
.dl__pnp { display: flex; }
.dl__pnp img { width: 74px; border-radius: 6px; outline: 2px dashed rgb(0 0 0 / .45); outline-offset: 3px; }
.dl__pnp img:nth-child(1) { transform: rotate(-10deg); }
.dl__pnp img:nth-child(3) { transform: rotate(10deg); }
.dl h2 { font: 900 1.25rem/1.1 var(--head); text-transform: uppercase; }
.dl p { color: var(--ink-soft); font-size: .9rem; }
.dl .btn { margin-top: 8px; }
.tips { max-width: 640px; text-align: left; background: rgb(0 0 0 / .25); border-radius: 16px; padding: 20px 26px; }
.tips h2 { font: 900 1.3rem/1 var(--head); text-transform: uppercase; margin-bottom: 10px; }
.tips ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }
.freebie__ks { width: min(900px, 100%); margin-top: 16px; background: var(--ks); border: 3px solid #000; }
.freebie__links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; font-weight: 700; }

@media (max-width: 560px) {
  :root { --nav-h: 58px; }
  .nav { gap: 8px; }
  .nav__logo img { height: 38px; }
  .btn--small { padding: .65em .8em; font-size: .78rem; }
  .trailer { border-width: 3px; border-radius: 14px; }
  .trailer video { border-radius: 11px; }
  .trailer__badge { top: -26px; right: -8px; width: 74px; }
  .trailer__sound { left: 8px; bottom: 8px; font-size: .8rem; }
  .special__card { padding: 34px 12px 30px; }
  .special__card h3 { font-size: 1.3rem; }
  .special__card p { font-size: .92rem; }
}

/* ---------- Scroll depth for decorative monsters ---------- */
[data-depth] { translate: 0 var(--py, 0px); will-change: translate; }

/* ---------- Scroll-in reveals ---------- */
.js [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity .6s ease, translate .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--r, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
  html { scroll-behavior: auto; }
}
