/* ==========================================================================
   Christmas Flabberbash — main stylesheet
   --------------------------------------------------------------------------
   1. Fonts           5. Buttons, pills, chips      9. Rules page
   2. Design tokens   6. Header / nav / footer     10. FAQ
   3. Base + layout   7. Home page sections        11. Motion (reveal/parallax)
   4. Type            8. Cards page + dialog       12. Utilities
   Mobile-first: base styles are for phones; `@media (min-width: …)` adds
   the desktop layout. Colors/fonts/sizes come from the tokens in section 2.
   ========================================================================== */

/* 1. FONTS ----------------------------------------------------------------
   Bryndan Write: headings (freeware, free for commercial use — FontSpace).
   Nunito: body text (SIL Open Font License, see /assets/fonts/NUNITO-OFL.txt).
   Le Petit Cochon from the brand kit is NOT used: its desktop license forbids
   web use (@font-face). */
@font-face {
  font-family: "Bryndan Write";
  src: url("/assets/fonts/bryndan-write.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-wght.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

/* 2. DESIGN TOKENS -------------------------------------------------------- */
:root {
  /* Brand colors (taken from the box art) */
  --navy: #07172F;        /* hero / header background — matches the photo backdrop */
  --navy-2: #0E2448;
  --ink: #14213A;         /* main text + outlines */
  --muted: #46526A;       /* secondary text (AA contrast on cream/white) */
  --muted-2: #616B80;
  --red: #C8242B;         /* peppermint red */
  --red-dark: #A51D23;
  --green: #1D6B3A;       /* tree green */
  --gold: #FFE38A;        /* star gold (accents on dark) */
  --gold-ink: #5A3B00;
  --ks-green: #05CE78;    /* Kickstarter brand green (kickstarter mode only) */
  --cream: #FFF9F1;
  --cream-2: #F5ECDD;
  --line: #E9DFCE;
  --white: #FFFFFF;
  --tint-green: #EAF5EE;
  --tint-red: #FBEDEE;
  --tint-gold: #FFF4CC;
  --on-dark-muted: #C9D6EE;

  /* Type */
  --font-display: "Bryndan Write", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing + shape */
  --gutter: 20px;
  --section-y: 72px;
  --radius: 22px;
  --radius-lg: 28px;
  --outline: 3px solid var(--ink);
  --shadow-hard: 0 6px 0 var(--ink);
}
@media (min-width: 900px) {
  :root { --gutter: 40px; --section-y: 112px; }
}

/* 3. BASE + LAYOUT -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid #2468C4; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 880px; }
.col { width: 100%; max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: 48px var(--section-y); }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }
.section--green { background: var(--green); color: var(--white); }

.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 28px; }
.stack-xl > * + * { margin-top: 48px; }
@media (min-width: 900px) { .stack-xl > * + * { margin-top: 64px; } }
.center { text-align: center; margin-inline: auto; }
.center.stack, .center.stack-sm { display: flex; flex-direction: column; align-items: center; }
.row-center { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* 4. TYPE ----------------------------------------------------------------- */
.h1, .h2, .h3, .h4, .hero__title { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: 0.005em; }
.h1 { font-size: clamp(42px, 6vw, 62px); }
.h2 { font-size: clamp(36px, 4.6vw, 52px); }
.h2--xl { font-size: clamp(40px, 5.4vw, 60px); }
.h3 { font-size: clamp(26px, 2.6vw, 32px); }
.h4 { font-size: 24px; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.eyebrow--gold { color: var(--gold); }
.eyebrow--red { color: var(--red); }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 58ch; }
.section--green .lede, .cta-band .lede, .page-hero--green .lede, .page-hero--red .lede, .finale .lede { color: inherit; opacity: 0.88; }
.lede-dark { font-size: 19px; color: var(--muted); }
.text-link { font-weight: 800; }
.script-red { font-family: var(--font-display); font-size: 1.35em; color: var(--red); }
.fineprint { font-size: 14px; color: var(--muted-2); display: flex; gap: 8px; align-items: center; justify-content: center; }
.note { font-size: 16px; color: var(--muted-2); }
.t-green { color: var(--green); }
.t-red { color: var(--red-dark); }

/* 5. BUTTONS, PILLS, CHIPS ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: var(--outline);
  font-family: var(--font-display); font-size: 22px; line-height: 1; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
  color: var(--ink); background: var(--white);
}
.btn:hover { transform: translateY(-2px); color: inherit; }
.btn:active { transform: translateY(2px); }
.btn--sm { min-height: 44px; padding: 0 18px; font-family: var(--font-body); font-weight: 800; font-size: 15px; border-width: 0; }
.btn--lg { min-height: 58px; font-size: 25px; padding: 0 32px; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--ks { background: var(--ks-green); color: var(--navy); }
.btn--ks:hover { color: var(--navy); }
.btn--outline { background: transparent; font-family: var(--font-body); font-weight: 800; font-size: 16px; }
.btn--ghost-light { background: transparent; border-color: var(--white); color: var(--white); font-family: var(--font-body); font-weight: 800; font-size: 16px; }
.btn--ghost-light:hover { color: var(--white); }
.btn--shadow { box-shadow: var(--shadow-hard); }
.btn--shadow-light { border-color: var(--white); box-shadow: 0 4px 0 var(--white); }
.pill { display: inline-block; font-family: var(--font-body); font-weight: 800; font-size: 12px; letter-spacing: 0.04em; padding: 4px 9px; border-radius: 999px; }
.pill--soon { background: var(--gold); color: var(--gold-ink); }
.pill--ks { background: var(--ks-green); color: var(--navy); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; }
.cta-band .pill--soon { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; }

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border: 1.5px solid rgba(255,255,255,.28); border-radius: 999px; font-weight: 700; font-size: 15px;
}
.chip svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chips--light { justify-content: center; }
.chips--light .chip { border-color: rgba(255,255,255,.5); }

.badge { display: inline-block; background: var(--c, var(--ink)); color: var(--white); font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }

.checks, .crosses { list-style: none; padding: 0; display: grid; gap: 12px; font-weight: 600; }
.checks li, .crosses li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.checks li::before, .crosses li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; background: currentColor; }
.checks li::before { color: var(--green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.crosses li::before { color: var(--red-dark); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/contain no-repeat; }
.checks li, .crosses li { color: var(--ink); }
.checks--lg, .crosses { font-size: 18px; font-weight: 600; }

/* 6. HEADER / NAV / FOOTER ----------------------------------------------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.announce { background: var(--green); color: var(--white); text-align: center; font-size: 15px; font-weight: 700; padding: 9px 0; }
.announce a { color: var(--gold); }
.announce a:hover { color: var(--white); }

.site-header { background: var(--navy); position: relative; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.site-header__logo img { width: 132px; height: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 15px; cursor: pointer;
}
.site-nav { display: none; }
.site-nav ul { list-style: none; padding: 0; margin: 0; }
.site-nav a:not(.btn) { color: var(--on-dark-muted); text-decoration: none; font-weight: 700; font-size: 17px; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 8px; }

/* Mobile menu: opened by main.js (adds .is-open) */
.site-nav.is-open {
  display: flex; flex-direction: column; gap: 8px; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy); padding: 12px var(--gutter) 24px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-nav.is-open ul { display: flex; flex-direction: column; }
.site-nav.is-open ul a { display: block; padding: 12px 0; font-size: 19px; }
.site-nav.is-open .btn { align-self: flex-start; margin-top: 8px; }
/* Without JS the menu is simply always shown, stacked */
html:not(.js) .site-nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
html:not(.js) .nav-toggle { display: none; }

@media (min-width: 900px) {
  .site-header__inner { min-height: 84px; }
  .site-header__logo img { width: 150px; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: flex; position: static; flex-direction: row; align-items: center; gap: 40px; padding: 0; background: none; border: 0; }
  .site-nav ul, .site-nav.is-open ul { display: flex; flex-direction: row; gap: 32px; }
  .site-nav.is-open ul a { padding: 0; font-size: 17px; }
  .site-nav.is-open .btn { margin-top: 0; }
}

.site-footer { background: var(--navy); color: var(--on-dark-muted); padding: 56px 0 40px; }
.site-footer__top { display: flex; flex-direction: column; gap: 24px; }
.site-footer__logo { width: 140px; }
.site-footer__links, .site-footer__social { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer a { color: var(--white); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--gold); }
.site-footer__social { margin-top: 24px; }
.site-footer__legal { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
@media (min-width: 900px) { .site-footer__top { flex-direction: row; justify-content: space-between; align-items: center; } }

/* 7. HOME PAGE SECTIONS --------------------------------------------------- */

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 8px 0 64px; overflow: hidden; }
.hero__grid { display: grid; gap: 8px; align-items: center; }
.hero__media { order: -1; margin-inline: calc(var(--gutter) * -1); }
.hero__img {
  width: 100%;
  /* Feather the photo edges into the navy background */
  -webkit-mask-image: radial-gradient(ellipse 75% 72% at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 72% at 50% 50%, #000 60%, transparent 100%);
}
.hero__copy { display: flex; flex-direction: column; gap: 20px; }
.hero__title { font-size: clamp(44px, 6vw, 68px); }
.hero__kicker { display: block; font-family: var(--font-body); font-weight: 800; font-size: 18px; letter-spacing: 0.02em; color: var(--gold); margin-bottom: 10px; }
.hero__lede { font-size: 19px; line-height: 1.55; color: var(--on-dark-muted); max-width: 34ch; }
.hero__lede strong { color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 6px; }
.hero__actions .btn { box-shadow: 0 4px 0 var(--white); border-color: var(--white); }
.link-play { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--white); font-weight: 800; text-decoration: none; }
.link-play:hover { color: var(--gold); }
.hero__status { font-size: 14px; color: #9FB0CF; }
.hero__wtb { display: inline-block; margin-top: 12px; color: var(--gold); font-weight: 700; font-size: 15px; }
.hero__wtb:hover { color: var(--white); }
.hero__actions .hero__wtb { margin-top: 0; }
@media (min-width: 900px) {
  .hero { padding: 32px 0 96px; }
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
  .hero__media { order: 0; margin: 0 -6% 0 0; }
  .hero__img { width: 116%; max-width: none; margin-left: -4%; }
}


/* Video */
.video {
  position: relative; max-width: 1040px; margin: 40px auto 0; aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg); overflow: hidden; border: 4px solid var(--ink); box-shadow: 0 10px 0 var(--ink);
  background: var(--navy);
}
.rules .video { margin-top: 0; box-shadow: var(--shadow-hard); }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(72px, 10vw, 112px); aspect-ratio: 1; border-radius: 999px;
  background: var(--red); color: var(--white); border: 4px solid var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .15s ease;
}
.video__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.video__fallback { position: absolute; inset: auto 16px 16px auto; background: var(--white); padding: 8px 14px; border-radius: 999px; font-weight: 800; }

/* About + facts */
.about { display: grid; gap: 40px; align-items: center; }
.about__copy p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.facts { display: grid; gap: 0; background: var(--white); border: var(--outline); border-radius: var(--radius-lg); box-shadow: var(--shadow-hard); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 24px; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); padding-top: 4px; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.2; }
.facts dd span { display: block; font-family: var(--font-body); font-size: 15px; color: var(--muted); }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; } }

/* How to play steps */
.steps { list-style: none; padding: 0; display: grid; gap: 56px; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.step p { color: var(--muted); max-width: 32ch; }
.step__num { width: 48px; height: 48px; border-radius: 999px; background: var(--red); color: var(--white); font-family: var(--font-display); font-size: 26px; display: grid; place-items: center; }
.step__art { height: 210px; display: flex; align-items: center; justify-content: center; }
.step__art img { width: 124px; border-radius: 10px; box-shadow: 0 6px 16px rgba(20,33,58,.18); }
.step__art--flip img:first-child { transform: rotate(-10deg) translateX(18px); }
.step__art--flip img:last-child { transform: rotate(6deg); position: relative; }
.step__art--star img { width: 140px; transform: rotate(-4deg); }
.step__art--groups { display: grid; grid-template-columns: repeat(2, 76px); gap: 12px; align-content: center; }
.step__art--groups span {
  width: 76px; height: 76px; border-radius: 22px; background: var(--c); color: var(--white);
  font-family: var(--font-display); font-size: 16px; line-height: 1; display: grid; place-items: center; text-align: center; padding: 4px;
}
.step__art--groups span:first-child { font-size: 20px; box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--c); }
.step__art--groups .dim { background: color-mix(in srgb, var(--c) 22%, white); color: var(--ink); }
.finale-line { font-size: 19px; font-weight: 700; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }

/* Editions */
.editions { display: grid; gap: 28px; }
.edition { background: var(--white); border: var(--outline); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-hard); display: flex; flex-direction: column; }
.edition__media { padding: 18px; }
.edition--peppermint .edition__media { background: repeating-linear-gradient(135deg, var(--red) 0 26px, var(--white) 26px 52px); }
.edition--snowflake .edition__media { background: #DCEBFA; }
.edition__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
.edition__body { padding: 28px 28px 32px; }
.edition__body > p { color: var(--muted); }
.edition--peppermint .edition__title { color: var(--red-dark); }
.edition--snowflake .edition__title { color: #1F5DAE; }
@media (min-width: 900px) { .editions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } .edition__body { padding: 32px 36px 36px; } }

/* Meet the crew */
.crew { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
.crew__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.crew__item img { width: 100%; max-width: 220px; border-radius: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.3); margin-bottom: 8px; }
.crew__item:nth-child(odd) img { transform: rotate(-3deg); }
.crew__item:nth-child(even) img { transform: rotate(2.5deg); }
.crew__item p { color: #D6EBDD; font-size: 16px; }
@media (min-width: 900px) { .crew { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }

/* Is it right for you */
.fit { display: grid; gap: 24px; }
.fit__col { border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column; gap: 20px; }
.fit__col--yes { background: var(--tint-green); }
.fit__col--yes .h3 { color: var(--green); }
.fit__col--no { background: var(--tint-red); }
.fit__col--no .h3 { color: var(--red-dark); }
@media (min-width: 900px) { .fit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } .fit__col { padding: 40px 44px; } }

/* Closing CTA band */
.cta-band { background: var(--red); color: var(--white); padding-block: var(--section-y); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 30px, transparent 30px 60px); pointer-events: none; }
.cta-band .wrap { position: relative; }
.cta-band__note { font-size: 15px; opacity: .9; }

/* Inner-page hero */
.page-hero { padding: 72px 0 56px; }
.page-hero--green { background: var(--green); color: var(--white); padding-bottom: 64px; }
.page-hero--red { background: var(--red); color: var(--white); position: relative; overflow: hidden; padding-bottom: 72px; }
.page-hero--red::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 30px, transparent 30px 60px); pointer-events: none; }
.page-hero--red .wrap { position: relative; }
@media (min-width: 900px) { .page-hero { padding: 96px 0 64px; } .page-hero--green, .page-hero--red { padding-bottom: 80px; } }

/* Hooks used only by Version B (theme-b.css shows/styles them). Hidden in Version A. */
.hero__toss, .crew-fan, .editions__note, .cta-band__star { display: none; }
.edition__card { display: contents; }

/* 8. CARDS PAGE + DIALOG -------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.filters[hidden] { display: none; }
.filters button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2.5px solid var(--ink);
  background: var(--white); color: var(--ink); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

.card-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.card-tile[hidden] { display: none; }
.card-tile__btn {
  width: 100%; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform .18s ease;
}
.card-tile__btn img { width: 100%; border-radius: 14px; box-shadow: 0 8px 20px rgba(20,33,58,.16); }
.card-tile__btn:hover { transform: translateY(-6px) rotate(-1deg); }
.card-tile__name { font-weight: 800; font-size: 16px; line-height: 1.3; text-align: center; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 28px; } }

.card-dialog {
  width: min(940px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: auto;
  border: 4px solid var(--ink); border-radius: 32px; box-shadow: 0 12px 0 var(--ink); background: var(--white); color: var(--ink);
}
.card-dialog::backdrop { background: rgba(7, 23, 47, .78); }
.card-dialog__close {
  position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 999px; z-index: 2;
  border: 2px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.card-dialog__grid { display: grid; gap: 24px; padding: 64px 24px 28px; }
.card-dialog__media { position: relative; max-width: 210px; margin-inline: auto; width: 100%; }
.card-dialog__media img { width: 100%; border-radius: 18px; box-shadow: 0 12px 28px rgba(20,33,58,.25); }
.card-dialog__body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-dialog__body .badge { align-self: flex-start; }
.card-detail__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4vw, 44px); line-height: 1.05; }
.card-detail__intro { color: var(--muted); font-size: 16px; }
.info-box { background: var(--cream); border-radius: 18px; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.info-box--gold { background: var(--tint-gold); }
.info-box__label { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.info-box--gold .info-box__label { color: #6B5400; }
.info-box__title { font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.info-box p { font-size: 16px; color: var(--muted); }
.acts { list-style: none; padding: 0; }
.acts li { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.acts .badge { text-align: center; }
@media (min-width: 760px) {
  .card-dialog__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; padding: 48px; }
  .card-dialog__media { max-width: 360px; }
}

.explain { display: grid; gap: 28px; }
.explain__item { display: flex; flex-direction: column; gap: 8px; }
.explain__item p { color: var(--muted); }
@media (min-width: 760px) { .explain { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; } }

/* Image protection (deterrent only — screenshots can't be blocked) */
.protect img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.card-dialog__media .shield { position: absolute; inset: 0; }

/* 9. RULES PAGE ----------------------------------------------------------- */
.jump { background: var(--white); border-bottom: 1px solid var(--line); }
.jump ul { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding-block: 14px; scrollbar-width: none; }
.jump a { display: inline-block; white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; padding: 10px 16px; border-radius: 999px; background: var(--cream); }
.jump a:hover { background: var(--cream-2); }
@media (min-width: 1000px) { .jump ul { justify-content: center; flex-wrap: wrap; } }

.rules__section { padding-top: 88px; }
.rules__section--last { padding-bottom: var(--section-y); }
@media (min-width: 900px) { .rules__section { padding-top: 104px; } }
.rules p { font-size: 18px; }
.rules .stack-lg > .h2:not(:first-child) { margin-top: 64px; }
.two { display: grid; gap: 20px; }
.three { list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } .three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.two--tight { gap: 16px; }

.deck-card { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; gap: 18px; align-items: center; }
.deck-card img { width: 88px; flex: none; border-radius: 8px; }
.deck-card p { font-size: 16px; color: var(--muted); }

.rsteps { list-style: none; padding: 0; display: grid; gap: 24px; }
.rstep { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; }
.rstep p { padding-top: 10px; }
.rstep__num { width: 52px; height: 52px; border-radius: 999px; color: var(--white); font-family: var(--font-display); font-size: 26px; display: grid; place-items: center; }
.rstep__num--green { background: var(--green); }
.rstep__num--red { background: var(--red); }

.tile { background: var(--white); border: 2px solid var(--line); border-radius: 20px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.tile p { font-size: 17px; }
.tile--green { background: var(--tint-green); border-color: transparent; }
.tile--green .h4 { color: var(--green); }
.tile--red { background: var(--tint-red); border-color: transparent; }
.tile--red .h4 { color: var(--red-dark); }
.tile--gold { background: var(--tint-gold); border-color: transparent; }
.tile--gold .h4 { color: #6B5400; }

.panel { background: var(--white); border: 2px solid var(--line); border-radius: 24px; padding: 26px 28px; }
.panel--navy { background: var(--navy); color: var(--white); border-color: transparent; }
.panel--navy p { color: var(--on-dark-muted); }
.panel--navy strong { color: var(--white); }
.panel--gold { background: var(--tint-gold); border-color: transparent; }
.panel__label { font-weight: 800; font-size: 14px !important; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.panel--gold .panel__label { color: #6B5400; }
.panel--gold p { font-size: 17px; }
.bashes { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 8px; font-family: var(--font-display); font-size: 26px; }
@media (min-width: 640px) { .bashes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.examples { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 2px solid var(--line); border-radius: 20px; overflow: hidden; font-size: 17px; }
.examples caption { text-align: left; font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); padding: 0 0 10px; }
.examples th { text-align: left; background: var(--cream); padding: 12px 20px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.examples td { padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.examples td:last-child { font-weight: 800; }

.example { background: var(--white); border: var(--outline); border-radius: var(--radius-lg); box-shadow: var(--shadow-hard); padding: 28px 22px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.example__label { font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.example__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.example__part { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted-2); }
.example__part img { width: 128px; border-radius: 10px; }
.example__part--text { background: var(--cream); border-radius: 18px; padding: 18px 20px; max-width: 230px; text-align: left; align-items: flex-start; }
.example__tag { font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #9A4613; }
.example__act { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.example__plus { font-family: var(--font-display); font-size: 40px; color: var(--red); }
.example__result { font-size: 20px !important; max-width: 34ch; }

.finale { background: var(--green); color: var(--white); border-radius: 36px; padding: 56px 24px; display: flex; flex-direction: column; gap: 36px; }
.three--dark li { background: rgba(255,255,255,.1); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.three--dark p { font-size: 17px; }
.finale__num { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--gold); }
@media (min-width: 900px) { .finale { padding: 72px 48px; } }

.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 22px; display: grid; gap: 10px; }
.prose a { color: var(--red-dark); }

/* 10. FAQ ----------------------------------------------------------------- */
.faq-group { display: flex; flex-direction: column; gap: 12px; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group__title { font-family: var(--font-display); font-weight: 400; font-size: 32px; color: var(--red); margin-bottom: 6px; }
.faq-item { background: var(--white); border: 2px solid var(--line); border-radius: 20px; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 800; font-size: 18px; min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Chevron: points down when closed, flips up when open */
.faq-item__icon { flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--cream); display: grid; place-items: center; transition: background .2s ease; }
.faq-item__icon::before {
  content: ""; width: 10px; height: 10px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] .faq-item__icon { background: var(--red); color: var(--white); }
.faq-item[open] .faq-item__icon::before { transform: translateY(2px) rotate(-135deg); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); font-size: 17px; }
@media (min-width: 900px) { .faq-item summary { padding: 22px 28px; font-size: 19px; } .faq-item p { padding: 0 28px 24px; } }

/* 11. MOTION -------------------------------------------------------------
   Subtle, and only when JS runs and the visitor hasn't asked for reduced motion.
   main.js adds .is-visible when an element scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js .steps [data-reveal]:nth-child(2), .js .crew [data-reveal]:nth-child(2) { transition-delay: .08s; }
  .js .steps [data-reveal]:nth-child(3), .js .crew [data-reveal]:nth-child(3) { transition-delay: .16s; }
  .js .crew [data-reveal]:nth-child(4) { transition-delay: .24s; }
  .hero__img { will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 12. UTILITIES ----------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 13. PRE-LAUNCH PASSWORD GATE ---------------------------------------------
   Only active while site.json → passwordGate.enabled is true (html.gated).
   Delete nothing when turning it off; the markup simply stops being output. */
.gate { display: none; }
.gated body > :not(.gate) { display: none !important; }
.gated .gate {
  display: grid; place-items: center; min-height: 100vh; padding: 24px var(--gutter);
  background: var(--navy); color: var(--white);
}
.gate__box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.gate__logo { width: 220px; margin-bottom: 8px; }
.gate__title { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.1; }
.gate__box p { color: var(--on-dark-muted); }
.gate__box input {
  width: 100%; min-height: 54px; padding: 0 22px; border-radius: 999px; border: 3px solid var(--white);
  font: inherit; font-size: 17px; color: var(--ink); background: var(--white);
}
.gate__box .btn { width: 100%; border-color: var(--white); box-shadow: 0 4px 0 var(--white); }
.gate__error { color: var(--gold) !important; font-weight: 700; min-height: 1.5em; }
