/* Upside Down Garry — website
   Layout: one long scroll of alternating bands — police-navy night and cream case-file paper.
   Sunburst behind the hero, chunky 3D titles, tilted sticker cards, crossing police tapes,
   rarity cards with share bars and evidence bags for the roadmap. */
@font-face { font-family: 'Bowlby One'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/BowlbyOne.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/DMSans.woff2) format('woff2'); }
@font-face { font-family: 'Chewy'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/Chewy.woff2) format('woff2'); }
@font-face { font-family: 'Special Elite'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/SpecialElite.woff2) format('woff2'); }

:root {
  --navy: #14213d;
  --navy-2: #1b2b50;
  --navy-3: #26396a;
  --navy-deep: #0b1428;
  --cream: #f5ead2;
  --cream-2: #ead9b4;
  --cream-3: #d9c08e;
  --ink: #1a1410;
  --ink-2: #4a3f33;
  --ink-3: #7a6a56;
  --gold: #ffc531;
  --gold-deep: #c98a0b;
  --catnip: #6fcf4a;
  --catnip-deep: #2f7a1f;
  --denim: #3c6ea8;
  --sky: #5b8fd6;
  --wood: #9a5f2e;
  --siren: #e8384f;
  --display: 'Bowlby One', 'Arial Black', Impact, sans-serif;
  --cartoon: 'Chewy', 'Bowlby One', 'Arial Black', sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --type: 'Special Elite', 'Courier New', ui-monospace, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #2a3a9a; color: var(--cream); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.02; text-wrap: balance; font-weight: 400; }
p { margin: 0; }
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border: 3px solid var(--ink); }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
main { overflow-x: clip; }

/* ---------- buttons: chunky, 3D bottom edge ---------- */
.btn {
  --b: var(--cream); --t: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  background: var(--b); color: var(--t); text-decoration: none; white-space: nowrap;
  border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 5px 0 var(--ink);
  font-family: var(--display); font-size: 15px; letter-spacing: .02em; text-transform: uppercase;
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn-gold { --b: var(--gold); }
.btn-cream { --b: var(--cream); }
.btn-navy { --b: var(--navy); --t: var(--cream); }
.btn-big { min-height: 58px; padding: 0 28px; font-size: 18px; border-radius: 14px; }

/* ---------- nav ---------- */
/* invisible over the hero; turns into a floating translucent capsule once you scroll (no backdrop-filter: Safari 26 drops it on fixed/sticky bars) */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); pointer-events: none; }
.nav-in { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-height: 76px; margin-top: 0; border-radius: 0; border: 1px solid transparent; background: transparent;
  transition: min-height .35s, margin-top .35s, border-radius .35s, background-color .35s, border-color .35s, box-shadow .35s, padding .35s; }
.nav.scrolled .nav-in { min-height: 60px; margin-top: 12px; border-radius: 999px; padding: 0 10px 0 18px;
  background: linear-gradient(100deg, rgba(23,36,106,.9) 0%, rgba(42,58,154,.88) 30%, rgba(90,58,166,.88) 60%, rgba(166,61,158,.88) 82%, rgba(224,71,143,.9) 100%);
  border-color: rgba(255,255,255,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 34px rgba(42,20,80,.35); }
.nav.scrolled .nav-in, .nav.open .nav-in { width: calc(100% - 24px); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.trio { display: inline-flex; align-items: center; flex: none; margin-right: 2px; }
.trio img { flex: none; }
.brand .trio img.mark, .trio img.mark:nth-child(1) { width: 46px; height: 46px; margin: 0; padding: 0; transform: none; border-radius: 12px; background: none; box-shadow: 0 4px 12px rgba(10,12,40,.35); }
/* logo: three little NFT cards fanned out, gradient rims */
.trio img { border-radius: 9px; object-fit: cover; background: var(--cream-2); padding: 2px;
  background-image: linear-gradient(135deg, #ffc531, #ff7aa8 50%, #5b8fd6); box-shadow: 0 4px 10px rgba(10,12,40,.35); }
.trio img:nth-child(1) { width: 30px; height: 38px; margin-right: -10px; transform: rotate(-12deg); }
.trio img:nth-child(2) { width: 36px; height: 46px; position: relative; z-index: 1; }
.trio img:nth-child(3) { width: 30px; height: 38px; margin-left: -10px; transform: rotate(12deg); }
.brand-wm { display: block; height: 40px; width: auto; filter: drop-shadow(0 3px 0 rgba(26,20,16,.45)); }
.brand-word { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; text-align: center; }
.brand-word small { display: block; transform: rotate(180deg); font-family: var(--type); font-size: 10.5px; letter-spacing: .22em; text-indent: .22em; color: #ffd76a; text-align: center; margin-bottom: 3px; }
.brand-word .bw { font-family: var(--display); font-size: 25px; white-space: nowrap; letter-spacing: .02em;
  color: #fff7e4; text-shadow: 0 2px 0 rgba(26,20,16,.55), 0 0 18px rgba(255,122,168,.45); }
/* links sit in one pill; a gold marker slides to the section you are reading */
.nav-links { position: relative; display: flex; align-items: center; gap: 0; margin-left: auto; padding: 4px; border-radius: 40px; background: transparent; border: 0; }
.nav-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 30px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 14px rgba(20,10,50,.25); opacity: 0;
  transition: transform .45s cubic-bezier(.3,1.35,.5,1), width .45s cubic-bezier(.3,1.35,.5,1), opacity .25s; }
.nav-links a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; color: rgba(255,247,228,.86); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 8px; border-radius: 30px; white-space: nowrap; transition: color .25s; }
.nav-links a svg { width: 16px; height: 16px; flex: none; opacity: .8; transition: transform .25s, opacity .25s; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover svg { opacity: 1; transform: translateY(-1px) rotate(-6deg); }
.nav-links a.on svg { opacity: 1; color: #ffd76a; }
/* active item: no pill, just the word in gold */
.nav-pill { display: none; }
.nav-links a.on, .nav-links a.on:hover { color: #ffd76a; }
.nav-docs { margin-left: 6px; border: 1px dashed rgba(255,247,228,.4); }
/* X (Twitter) link in the header */
.nav-x { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; color: #fff7e4;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); transition: background .2s, transform .2s; }
.nav-x svg { width: 16px; height: 16px; }
.nav-x:hover { background: #1a1410; transform: translateY(-1px); }
/* header button: plain cream "Play now" pill with a small "Soon" tag on its corner */
.nav-cta { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; height: 38px; padding: 0 18px 0 14px; border-radius: 999px; text-decoration: none;
  font: 700 14px/1 var(--body); letter-spacing: .01em; white-space: nowrap; color: #1a1410;
  background: #fff7e4; box-shadow: 0 6px 16px rgba(20,10,50,.22); transition: transform .2s, box-shadow .2s; }
.nav-cta svg { width: 14px; height: 14px; flex: none; color: #e0478f; }
/* "Play now" is not live yet: looks disabled, explains itself on click */
.nav-cta { cursor: not-allowed; opacity: .72; filter: saturate(.6); }
.nav-cta:focus-visible { outline: 2px solid #fff7e4; outline-offset: 3px; }
.nav-cta .soon-tip { position: absolute; top: calc(100% + 12px); right: 0; width: max-content; max-width: 240px; padding: 8px 12px; border-radius: 10px;
  background: #1a1410; color: #fff7e4; font: 600 13px/1.35 var(--body); white-space: normal; text-align: left; box-shadow: 0 8px 20px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .2s, transform .2s; }
.nav-cta.tip-on { opacity: 1; filter: none; }
.nav-cta.tip-on .soon-tip { opacity: 1; transform: none; }
.nav-cta .cs-tag { position: absolute; top: -8px; right: -6px; padding: 3px 7px; border-radius: 999px; transform: rotate(6deg);
  font: 800 9.5px/1 var(--body); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: #e0478f; box-shadow: 0 0 0 2px #fff7e4; }
.nav-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; }
.nav-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--gold), #ff7aa8 60%, #e0478f); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(245,234,210,.3); border-radius: 50%; background: rgba(245,234,210,.12); cursor: pointer; }
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after { display: block; width: 18px; height: 2px; background: var(--cream); margin: 0 auto; position: relative; content: ''; border-radius: 2px; }
.nav-toggle i::before { position: absolute; top: -7px; left: 0; }
.nav-toggle i::after { position: absolute; top: 7px; left: 0; }

/* ---------- bands ---------- */
.band-dark { background: linear-gradient(115deg, #17246a 0%, #2a3a9a 28%, #5a3aa6 56%, #a63d9e 80%, #e0478f 100%); color: var(--cream); position: relative; }
.band-dark::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1.2px, transparent 1.6px) 0 0 / 14px 14px; }
.band-cream { background: var(--cream); color: var(--ink); position: relative; border-block: 4px solid var(--ink); }
.band-cream::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(26,20,16,.07) 1.2px, transparent 1.6px) 0 0 / 10px 10px; }
.sec { padding: 96px 0; }
.sec > .wrap { position: relative; }
.sec-h { max-width: 720px; display: grid; gap: 14px; margin-bottom: 40px; }
.sec-h p:last-child { font-size: 17.5px; color: var(--ink-2); }
.sec-h.light p:last-child { color: var(--cream-2); }
.label { font-family: var(--type); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--siren); }
.band-dark .label { color: var(--gold); }
.title { font-family: var(--display); font-size: clamp(36px, 5vw, 60px); line-height: 1; text-transform: uppercase; letter-spacing: -.005em;
  color: var(--navy); text-shadow: 3px 3px 0 var(--gold), 6px 6px 0 var(--ink); }
.band-dark .title { color: var(--cream); text-shadow: 3px 3px 0 var(--ink), 6px 6px 0 var(--wood); }
.sub { font-family: var(--display); font-size: 30px; text-transform: uppercase; margin: 48px 0 18px; color: var(--navy); }
.fine-print { margin-top: 14px; font-family: var(--type); font-size: 14px; color: var(--ink-3); }
.leaf { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.leaf li { position: relative; padding-left: 30px; }
.leaf li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -20 20 22'%3E%3Cpath d='M0,0 C-6,-2 -9,-8 -7,-13 L-5,-12 L-6,-16 L-3,-15 L-2,-19 L0,-17 L2,-19 L3,-15 L6,-16 L5,-12 L7,-13 C9,-8 6,-2 0,0 Z' fill='%236fcf4a' stroke='%231a1410' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pending { display: inline-block; font-family: var(--type); font-size: 13.5px; padding: 1px 10px; border: 2px dashed currentColor; border-radius: 6px; }

/* ---------- hero ---------- */
.hero { padding: calc(140px + env(safe-area-inset-top, 0px)) 0 calc(120px + 4.6vw); overflow: hidden; isolation: isolate; }
.hero > .wrap { position: relative; z-index: 1; }
/* cream wedge so the dark band ends on the same diagonal as the police tape */
.hero::after { content: ''; position: absolute; z-index: 0; left: 0; right: 0; bottom: -1px; height: calc(4.541vw + 2px); pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(26,20,16,.07) 1.2px, transparent 1.6px) 0 0 / 10px 10px, var(--cream);
  clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.hero + .tapes + .band-cream { border-top: 0; }
.burst { position: absolute; z-index: -1; left: 72%; top: 46%; width: 2400px; height: 2400px; margin: -1200px 0 0 -1200px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,197,49,.14) 0deg 7deg, rgba(60,110,168,.10) 7deg 14deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, #000 18%, transparent 55%); mask-image: radial-gradient(circle, #000 0, #000 18%, transparent 55%);
  animation: spin 120s linear infinite; }
.burst.gold { left: 50%; top: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.28) 0deg 7deg, transparent 7deg 14deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
/* "live" tag: glass pill, siren dot with a pulsing ring */
.stamp { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 16px 7px 12px; border-radius: 999px;
  font: 700 13.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #fff7e4;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 18px rgba(10,12,40,.25); }
.stamp .dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 8px rgba(255,77,109,.9); animation: dotbeat 1.6s ease-in-out infinite; }
.stamp .dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #ff4d6d; animation: dotring 1.6s ease-out infinite; }
@keyframes dotbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes dotring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes blink { 50% { opacity: .25; } }
.mega { font-family: var(--display); font-size: clamp(44px, 6.4vw, 86px); line-height: .98; text-transform: uppercase; letter-spacing: -.01em; display: grid; gap: 4px;
  color: var(--cream); text-shadow: 1px 1px 0 var(--ink), 2px 2px 0 var(--ink), 3px 3px 0 var(--wood), 4px 4px 0 var(--wood), 5px 5px 0 var(--wood), 6px 6px 0 var(--ink); }
.mega .hot { color: var(--gold); }
.lede { margin-top: 24px; font-size: 19px; color: var(--cream-2); max-width: 520px; }
.lede.dark { color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.pills li { padding: 5px 12px; border: 2px solid rgba(245,234,210,.35); border-radius: 30px; font-size: 14.5px; color: var(--cream-2); }
.pills b { font-family: var(--display); color: var(--gold); font-weight: 400; margin-right: 3px; }
.hero-art { position: relative; }
.sticker { position: absolute; z-index: 3; font-family: var(--display); text-transform: uppercase; font-size: clamp(14px, 1.6vw, 19px); padding: 8px 16px;
  border: 3px solid var(--ink); border-radius: 30px; box-shadow: 0 5px 0 var(--ink); white-space: nowrap; }
.st-a { top: 4%; left: 6%; background: var(--cream); color: var(--ink); transform: rotate(-8deg); }
.st-b { bottom: 13%; right: 2%; background: var(--catnip); color: var(--ink); transform: rotate(5deg); }

/* NFT cards: an upright stack; the front card changes on hover, wheel, swipe or the dots */
.stack { position: relative; aspect-ratio: 16 / 12; container-type: inline-size; perspective: 1400px; touch-action: pan-y; }
.ncard { position: absolute; margin: 0; left: 50%; bottom: 4%; width: 46%; cursor: pointer;
  transform: translateX(-50%) translateX(calc(var(--pos, 0) * 52%)) scale(var(--sc, 1)) rotateY(calc(var(--pos, 0) * -14deg));
  transition: transform .6s cubic-bezier(.22,1.2,.36,1), filter .4s ease, opacity .4s ease; will-change: transform; }
.ncard[data-pos="0"] { --pos: 0; --sc: 1; z-index: 3; }
.ncard[data-pos="1"] { --pos: 1; --sc: .8; z-index: 2; filter: brightness(.72) saturate(.85); }
.ncard[data-pos="-1"] { --pos: -1; --sc: .8; z-index: 1; filter: brightness(.72) saturate(.85); }
.ncard[data-pos="x"] { --pos: 0; --sc: .62; z-index: 0; opacity: 0; pointer-events: none; }
.stack-dots { flex-wrap: wrap; }
.ncard:not([data-pos="0"]):hover { filter: brightness(.9); }
.ncard[data-pos="0"] .nc-in { animation: cardfloat 3.4s ease-in-out infinite; }
@keyframes cardfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4cqw); } }
.nc-in { position: relative; padding: 2.2cqw; border: .8cqw solid var(--ink); border-radius: 2.4cqw; overflow: hidden;
  background: linear-gradient(180deg, var(--navy-3), var(--navy-deep)); box-shadow: inset 0 0 0 .7cqw var(--hc), 0 2.4cqw 3cqw rgba(0,0,0,.4); }
.nc-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: .2cqw .4cqw 1.5cqw; font-family: var(--type); font-size: 2.3cqw; text-transform: uppercase; letter-spacing: .06em; color: var(--cream-2); }
.nc-top span { white-space: nowrap; }
.nc-top em { font-style: normal; font-family: var(--display); color: var(--ink); background: var(--hc); padding: .3cqw 1.4cqw; border-radius: 1cqw; border: .4cqw solid var(--ink); }
.nc-art { aspect-ratio: 1; overflow: hidden; border-radius: 1.2cqw; border: .5cqw solid var(--ink); background: var(--navy-deep); }
.nc-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ncard[data-pos="0"]:hover .nc-art img { transform: scale(1.06); }
.ncard figcaption { display: grid; gap: .4cqw; padding: 1.8cqw .4cqw .2cqw; }
.ncard figcaption b { font-family: var(--display); font-size: 3.8cqw; line-height: 1.05; color: var(--cream); text-transform: uppercase; }
.ncard figcaption span { font-family: var(--type); font-size: 2.5cqw; color: var(--hc); }
/* holographic sweep on the front card */
.ncard[data-pos="0"] .nc-in::after { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 32%, rgba(255,214,140,.38) 46%, rgba(160,220,255,.3) 52%, transparent 66%) -150% 0 / 250% 100% no-repeat;
  animation: holo 4.5s ease-in-out infinite; }
@keyframes holo { 0%, 20% { background-position: -150% 0; } 70%, 100% { background-position: 150% 0; } }
.stack-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; position: relative; z-index: 4; }
.stack-dots button { border: 3px solid var(--ink); border-radius: 30px; background: rgba(245,234,210,.18); color: var(--cream); font-family: var(--display); font-size: 13px; text-transform: uppercase; padding: 5px 12px; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.stack-dots button:hover { transform: translateY(-2px); }
.stack-dots button[aria-selected="true"] { background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }

/* ---------- crossing police tapes ---------- */
/* the tape's centre line sits on the hero's diagonal: centre = hero bottom - 2.27vw at mid-page */
.tapes { position: relative; height: 96px; margin: calc(-2.2705vw - 54px) 0 calc(2.2705vw - 42px); z-index: 5; }
.tape { position: absolute; left: -30px; right: -30px; top: 30px; overflow: hidden; border-block: 4px solid var(--ink);
  background: repeating-linear-gradient(45deg, var(--gold) 0 26px, #ffd84f 26px 52px); box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.tape-a { transform: rotate(-2.6deg); }
.tape-track { display: flex; align-items: center; gap: 22px; width: max-content; height: 40px; animation: tape 36s linear infinite; }
.tape-track span { font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.tape-track b { color: var(--siren); font-size: 22px; line-height: 1.3; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- how it works: case files ---------- */
.files { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.file { position: relative; padding: 46px 20px 22px; background: #e9c98a; border: 3px solid var(--ink); border-radius: 4px 14px 14px 14px; box-shadow: 6px 7px 0 var(--ink); color: var(--ink); }
.file:nth-child(odd) { transform: rotate(-1.4deg); }
.file:nth-child(even) { transform: rotate(1.2deg); background: #f2d79f; }
.file::before { content: ''; position: absolute; top: -16px; left: -3px; width: 44%; height: 16px; background: inherit; border: 3px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; }
.file::after { content: ''; position: absolute; top: -14px; right: 22px; width: 14px; height: 44px; border: 3px solid #8b8f9c; border-radius: 10px; }
.file-no { position: absolute; top: 12px; left: 18px; font-family: var(--type); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--siren); }
.file b { display: block; font-family: var(--display); font-size: 22px; text-transform: uppercase; line-height: 1.05; margin-bottom: 8px; color: var(--navy); }
.file p { font-size: 15px; color: var(--ink-2); }

/* ---------- crew: sticker cards ---------- */
.crew { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.crew-card { background: var(--cream); color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; padding: 14px 14px 22px; box-shadow: 8px 9px 0 var(--navy-deep); }
.crew-card:nth-child(1) { transform: rotate(-1.5deg); }
.crew-card:nth-child(3) { transform: rotate(1.5deg); }
.cc-art { position: relative; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.cc-art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
/* two arts per class: the second fades over the first */
.cc-art .cc-alt { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .45s ease, transform .5s ease; }
.cc-art[data-v="1"] .cc-alt { opacity: 1; }
.cc-switch { position: absolute; left: 50%; top: 10px; z-index: 2; display: flex; gap: 4px; padding: 4px; transform: translateX(-50%);
  border-radius: 999px; background: rgba(20,14,40,.72); }
.cc-switch button { border: 0; border-radius: 999px; padding: 5px 11px; cursor: pointer; background: transparent; color: #fff7e4;
  font: 700 12px/1 var(--body); letter-spacing: .03em; }
.cc-switch button[aria-pressed="true"] { background: #fff7e4; color: #1a1410; }
.cc-tag { position: absolute; left: 10px; bottom: 10px; font-family: var(--display); font-size: 14px; text-transform: uppercase; background: var(--cc); color: var(--ink); border: 3px solid var(--ink); border-radius: 30px; padding: 3px 12px; transform: rotate(-3deg); }
.crew-card h3 { font-family: var(--display); font-size: 32px; text-transform: uppercase; color: var(--navy); text-shadow: 2px 2px 0 var(--cc); padding: 0 6px; }
.cc-count { font-family: var(--type); font-size: 14.5px; color: var(--siren); padding: 2px 6px 8px; }
.crew-card > p:not(.cc-count) { font-size: 15.5px; color: var(--ink-2); padding: 0 6px; }
.crew-card .leaf { padding: 0 6px; font-size: 14.5px; }

/* ---------- nft: rarity cards ---------- */
.rarity-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.rcard { position: relative; display: grid; gap: 10px; align-content: start; padding: 18px 16px 16px; background: #fbf4e3; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 6px 7px 0 var(--ink); overflow: hidden; transition: transform .3s cubic-bezier(.2,1.4,.4,1), box-shadow .3s; }
.rcard::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--rc); border-bottom: 3px solid var(--ink); }
.rcard:hover { transform: translateY(-8px); box-shadow: 8px 12px 0 var(--ink); }
.r-pill { justify-self: start; margin-top: 4px; font-family: var(--display); font-size: 14px; text-transform: uppercase; background: var(--rc); color: var(--ink); border: 3px solid var(--ink); border-radius: 30px; padding: 2px 12px; }
.r-share { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 3.6vw, 52px); line-height: 1; color: var(--navy); }
.r-of { font-family: var(--type); font-size: 13.5px; color: var(--ink-3); margin-top: -6px; }
.r-bar, .r-meter { position: relative; display: block; height: 12px; background: var(--cream-2); border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.r-bar i, .r-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--navy); border-radius: 0 4px 4px 0; transition: width 1.1s cubic-bezier(.2,1,.3,1); }
.r-meter { height: 8px; }
.r-meter i { background: var(--denim); }
.fx .rcard:not(.in) .r-bar i, .fx .rcard:not(.in) .r-meter i { width: 0; }
.r-stats { margin: 4px 0 0; display: grid; gap: 10px; }
.r-stats div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: baseline; }
.r-stats dt { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.r-stats dd { margin: 0; font-family: var(--display); font-size: 17px; color: var(--ink); }
.r-stats .r-meter { grid-column: 1 / -1; }
.r-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 4px; padding-top: 10px; border-top: 2px dashed var(--cream-3); }
.r-split span { display: grid; font-family: var(--display); font-size: 14px; color: var(--navy); }
.r-split small { font-family: var(--body); font-size: 11px; color: var(--ink-3); font-weight: 700; }

.mint { display: grid; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; background: #fbf4e3; box-shadow: 6px 7px 0 var(--ink); }
.mint-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding: 14px 20px; align-items: center; }
.mint-row + .mint-row { border-top: 2px dashed var(--cream-3); }
.mint-row b { font-family: var(--display); font-size: 20px; text-transform: uppercase; color: var(--navy); }
.mint-row span { font-weight: 700; }
.mint-row em { font-style: normal; font-family: var(--type); font-size: 15px; color: var(--ink-2); }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.note-card { position: relative; background: #fff7c7; border: 3px solid var(--ink); border-radius: 4px; padding: 26px 18px 18px; box-shadow: 5px 6px 0 var(--ink); }
.note-card:nth-child(2) { transform: rotate(1.2deg); background: #e5f6d4; }
.note-card:nth-child(3) { transform: rotate(-1deg); background: #dbe8fb; }
.note-card::before { content: ''; position: absolute; top: -12px; left: 50%; width: 90px; height: 24px; margin-left: -45px; background: rgba(245,234,210,.85); border: 2px solid rgba(26,20,16,.25); transform: rotate(-3deg); }
.note-card b { display: block; font-family: var(--display); font-size: 19px; text-transform: uppercase; margin-bottom: 6px; color: var(--navy); }
.note-card p { font-size: 15px; color: var(--ink-2); }

/* ---------- token: reasons + ID card ---------- */
.token { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.reasons { list-style: none; counter-reset: r; padding: 0; margin: 0; display: grid; gap: 18px; }
.reasons li { counter-increment: r; position: relative; padding-left: 62px; color: var(--cream-2); font-size: 17px; }
.reasons li::before { content: counter(r); position: absolute; left: 0; top: -4px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-family: var(--display); font-size: 20px; }
.reasons b { color: var(--cream); }
.idcard { background: var(--cream); color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 9px 10px 0 var(--navy-deep); transform: rotate(1.5deg); }
.id-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--denim); border-bottom: 4px solid var(--ink); }
.id-head span { font-family: var(--type); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.id-head b { font-family: var(--display); font-size: 30px; color: var(--gold); text-shadow: 2px 2px 0 var(--ink); }
.idcard dl { margin: 0; padding: 8px 20px; }
.idcard dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.idcard dl div + div { border-top: 2px dashed var(--cream-3); }
.idcard dt { font-family: var(--type); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.idcard dd { margin: 0; font-weight: 700; }
.id-warn { margin: 6px 20px 20px; padding: 12px 14px; background: #fff3b8; border: 3px solid var(--ink); border-radius: 10px; font-size: 14.5px; }

/* ---------- game: evidence photo ---------- */
.game { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 52px; align-items: center; }
.evidence-photo { position: relative; display: block; background: #fff; padding: 14px 14px 52px; border: 3px solid var(--ink); box-shadow: 9px 10px 0 var(--ink); transform: rotate(-2deg); text-decoration: none; transition: transform .2s; }
.evidence-photo:hover { transform: rotate(-1deg) scale(1.01); }
.evidence-photo img { border: 3px solid var(--ink); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.photo-cap { position: absolute; left: 18px; bottom: 14px; font-family: var(--type); font-size: 17px; color: var(--ink-2); }
.tape-corner { position: absolute; width: 110px; height: 30px; background: rgba(255,197,49,.85); border: 2px solid rgba(26,20,16,.3); z-index: 1; }
.tc-1 { top: -12px; left: -26px; transform: rotate(-30deg); }
.tc-2 { top: -12px; right: -26px; transform: rotate(28deg); }
.game .title { margin: 12px 0 0; }
.sim { margin: 18px 0 24px; color: var(--ink-2); font-size: 15px; }
.sim .pending { color: var(--siren); margin-right: 6px; }

/* ---------- economy ---------- */
.split { display: flex; gap: 4px; padding: 4px; background: var(--ink); border-radius: 14px; margin-bottom: 26px; min-height: 68px; box-shadow: 0 6px 0 var(--navy-deep); }
.split span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; }
.split b { font-family: var(--display); font-size: 24px; font-weight: 400; }
.sb-f { background: var(--catnip); } .sb-p { background: var(--sky); } .sb-r { background: var(--gold); }
.trio-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 26px; }
.dark-card { background: rgba(20,33,61,.82); border: 3px solid var(--ink); border-radius: 14px; padding: 20px; box-shadow: 0 6px 0 var(--navy-deep); }
.dark-card b { display: block; font-family: var(--display); font-size: 19px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.dark-card p { font-size: 15.5px; color: var(--cream-2); }
.table-wrap { overflow-x: auto; border: 3px solid var(--ink); border-radius: 14px; background: var(--cream); box-shadow: 0 6px 0 var(--navy-deep); }
.sinks { width: 100%; border-collapse: collapse; font-size: 15.5px; color: var(--ink); min-width: 460px; }
.sinks th { text-align: left; padding: 12px 18px; font-family: var(--type); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; font-size: 13.5px; background: var(--cream-2); border-bottom: 3px solid var(--ink); }
.sinks td { padding: 11px 18px; border-top: 2px dashed var(--cream-3); font-weight: 700; }
.sinks td:last-child { font-family: var(--display); font-weight: 400; color: var(--navy); }

/* ---------- treasury ---------- */
.treasury { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 52px; align-items: center; }
.treasury .title { margin: 12px 0 16px; }
.treasury > div > p { color: var(--ink-2); }
.vault-card { display: grid; gap: 16px; background: #fbf4e3; border: 4px solid var(--ink); border-radius: 18px; padding: 22px 22px 18px; box-shadow: 8px 9px 0 var(--ink); }
.vault-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.vault-h b { font-family: var(--display); font-weight: 400; font-size: 19px; text-transform: uppercase; color: var(--navy); }
.vault-h span { font-family: var(--type); font-size: 13.5px; color: var(--ink-3); }
.treasury { align-items: center; }
/* 100 coins, $1 each, filled in reading order */
.waffle { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; max-width: 360px; width: 100%; margin: 0 auto; }
.waffle i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--cc);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.45); transition: transform .45s cubic-bezier(.3,1.6,.5,1), opacity .25s ease; transition-delay: calc(var(--i) * 9ms); }
.cn-pool { --cc: #1baf7a; } .cn-buy { --cc: #eda100; } .cn-dev { --cc: #2a78d6; } .cn-mkt { --cc: #eb6834; }
.fx .vault-card:not(.in) .waffle i { transform: scale(0); opacity: 0; }
.vault-card[data-hl] .waffle i { opacity: .2; transition-delay: 0s; }
.vault-card[data-hl="pool"] .waffle .cn-pool, .vault-card[data-hl="buy"] .waffle .cn-buy, .vault-card[data-hl="dev"] .waffle .cn-dev, .vault-card[data-hl="mkt"] .waffle .cn-mkt { opacity: 1; transform: scale(1.08); }
.vault-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.vault-legend li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; cursor: default; transition: background .2s; }
.vault-legend li:hover, .vault-legend li:focus-visible { background: #fff3c4; outline: none; }
.vault-legend li > i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: var(--cc); }
.vault-legend b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--ink); }
.vault-legend span { display: grid; font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.25; }
.vault-legend small { font-weight: 500; font-size: 12.5px; color: var(--ink-3); }

/* ---------- security ---------- */
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.check { position: relative; background: rgba(20,33,61,.82); border: 3px solid var(--ink); border-radius: 14px; padding: 18px 18px 18px 60px; box-shadow: 0 6px 0 var(--navy-deep); }
.check::before { content: '✓'; position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: var(--catnip); color: var(--ink); border: 3px solid var(--ink); font-weight: 900; font-size: 16px; }
.check.warn::before { content: '!'; background: var(--gold); }
.check b { display: block; font-family: var(--display); font-size: 18px; text-transform: uppercase; color: var(--cream); margin-bottom: 4px; }
.check p { font-size: 15px; color: var(--cream-2); }

/* ---------- roadmap: evidence bags ---------- */
.bags { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.bag { position: relative; padding: 0 18px 22px; background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(235,240,245,.7)); border: 3px solid var(--ink); border-radius: 10px 10px 18px 18px; box-shadow: 6px 7px 0 var(--ink); }
.bag:nth-child(odd) { transform: rotate(-1.2deg); }
.bag:nth-child(even) { transform: rotate(1.4deg); }
.bag::before { content: ''; display: block; height: 10px; margin: 0 -18px 0; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px); opacity: .5; border-bottom: 3px solid var(--ink); }
.bag-head { display: block; margin: 0 -18px 16px; padding: 8px 18px; background: var(--siren); color: #fff; font-family: var(--type); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 3px solid var(--ink); }
.bag b { display: block; font-family: var(--display); font-size: 22px; text-transform: uppercase; color: var(--navy); line-height: 1.05; margin-bottom: 8px; }
.bag p { font-size: 15px; color: var(--ink-2); }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
@media (min-width: 1061px) { .faq-wrap > .sec-h { position: sticky; top: 110px; } }
.faq details { background: rgba(20,33,61,.82); border: 3px solid var(--ink); border-radius: 14px; margin-bottom: 12px; box-shadow: 0 5px 0 var(--navy-deep); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-family: var(--display); font-size: 18px; text-transform: uppercase; color: var(--cream); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); border: 3px solid var(--ink); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 20px 18px; color: var(--cream-2); font-size: 16px; }
.faq-sub { margin: 0 0 12px; font-family: var(--type); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ---------- finale ---------- */
.finale { position: relative; overflow: hidden; isolation: isolate; background: var(--gold); border-top: 4px solid var(--ink); padding: 110px 0; text-align: center; }
.finale-in { display: grid; justify-items: center; gap: 34px; }
.mega.small { font-size: clamp(40px, 6vw, 80px); color: var(--navy); text-shadow: 3px 3px 0 var(--cream), 6px 6px 0 var(--ink); }
.mega.small .hot { color: var(--cream); text-shadow: 3px 3px 0 var(--navy), 6px 6px 0 var(--ink); }

/* ---------- footer ---------- */
.foot { background: var(--navy-deep); border-top: 4px solid var(--ink); padding: 46px 0 calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--cream-2); }
.foot-in { display: grid; gap: 18px; justify-items: start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--cream); text-decoration: none; font-weight: 700; }
.foot nav a:hover { color: var(--gold); }
.foot p { font-size: 14px; max-width: 72ch; }
.foot .fine { font-family: var(--type); font-size: 13px; color: var(--ink-3); }

.seasons { margin-top: 0; }
.seasons .notes { margin-top: 28px; }
.seasons .mint { margin-top: 26px; }
.seasons .lede { max-width: 720px; }
.seasons .mint-row { grid-template-columns: 200px minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 640px) { .seasons .mint-row { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* contract address box (replaces the old Play buttons) */
.ca-btn { cursor: default; gap: 12px; white-space: normal; max-width: 100%; }

.ca-btn b { font: inherit; padding-right: 12px; border-right: 2px solid currentColor; }
.ca-btn .ca-v { font-family: var(--type); font-size: .78em; text-transform: none; letter-spacing: 0; user-select: none; overflow-wrap: anywhere; text-align: left; }
.ca-btn { cursor: pointer; position: relative; }
.ca-btn .ca-ic { width: 18px; height: 18px; flex: none; }
.ca-btn .ca-done { position: absolute; left: 50%; top: -12px; transform: translate(-50%, -100%); padding: 5px 10px; border-radius: 8px; background: #1a1410; color: #fff7e4;
  font: 700 12.5px/1 var(--body); text-transform: none; letter-spacing: 0; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.ca-btn.copied .ca-done { opacity: 1; }
.ca-code { font-family: var(--type); font-size: 13px; overflow-wrap: anywhere; user-select: all; }

/* ---------- responsive ---------- */
@media (min-width: 1061px) and (max-width: 1280px) {
  .nav-in { gap: 12px; }
  .nav-links a { padding: 8px 9px; font-size: 13.5px; }
  .nav-links a[data-spy] svg { display: none; }
}
@media (max-width: 1060px) {
  .nav-toggle { display: block; order: 3; margin-left: 0; }
  .nav-x { order: 2; margin-left: auto; }
  .nav-cta { order: 2; margin-left: 0; }
  .nav-links { display: none; position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); flex-direction: column; align-items: stretch; gap: 0; background: linear-gradient(160deg, rgba(23,36,106,.97), rgba(90,58,166,.97) 60%, rgba(196,66,150,.97)); padding: 10px; }
  .nav.open .nav-links { display: flex; }
  .nav-links { margin: 0; border-radius: 22px; border: 1px solid rgba(245,234,210,.22); box-shadow: 0 18px 40px rgba(8,12,34,.45); }
  .nav-in { position: relative; }
  .nav.open .nav-in { background: linear-gradient(100deg, rgba(23,36,106,.9), rgba(90,58,166,.88) 60%, rgba(224,71,143,.9)); border-color: rgba(255,255,255,.26); border-radius: 999px; margin-top: 12px; min-height: 60px; padding: 0 10px 0 18px; }
  .nav-links a svg { width: 19px; height: 19px; }
  .nav-links a { padding: 12px 14px; font-size: 17px; border-radius: 14px; }
  .nav-links a.on { background: none; }
  .nav-pill { display: none; }
  .nav-docs { margin: 6px 0 0; justify-content: center; }
  .hero-grid, .token, .game, .treasury, .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .files, .bags { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 22px; }
  .crew { grid-template-columns: minmax(0, 1fr); max-width: 540px; margin: 0 auto; }
  .checks, .trio-cards, .notes { grid-template-columns: minmax(0, 1fr); }
  .rarity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .sec { padding: 72px 0; }
  .hero { padding: calc(108px + env(safe-area-inset-top, 0px)) 0 calc(100px + 4.6vw); }
  .brand-word .bw { font-size: 22px; }
  .trio img:nth-child(1), .trio img:nth-child(3) { width: 22px; height: 29px; border-radius: 7px; }
  .trio img:nth-child(1) { margin-right: -8px; }
  .trio img:nth-child(3) { margin-left: -8px; }
  .trio img:nth-child(2) { width: 28px; height: 36px; border-radius: 8px; }
  .brand .trio img.mark, .trio img.mark:nth-child(1) { width: 40px; height: 40px; }
  .brand-wm { height: 34px; }
  .brand { gap: 10px; }
  .nav.scrolled .nav-in, .nav.open .nav-in { padding: 0 8px 0 12px; }
  .nav-in { gap: 8px; }
  .nav-cta { height: 36px; padding: 0 15px 0 12px; font-size: 13px; gap: 7px; }
  .cta .btn { width: 100%; }
  .files, .bags { grid-template-columns: minmax(0, 1fr); }
  .rarity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rcard { padding: 16px 12px 12px; }
  .mint-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .split { flex-direction: column; }
  .split span { flex: none !important; min-height: 48px; justify-content: flex-start; }
  .vault-legend { grid-template-columns: minmax(0, 1fr); }
  .waffle { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
  .tape-track span { font-size: 16px; }
  .sticker { font-size: 13px; padding: 6px 12px; }
  .stamp { font-size: 12px; letter-spacing: .05em; padding: 4px 10px; white-space: nowrap; }
  .lede { font-size: 17px; }
}
@media (max-width: 400px) {
  .brand-word small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stamp .dot, .stamp .dot::after { animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- motion ---------- */
/* hero title lines rise in */
.mega span { display: block; animation: rise .8s cubic-bezier(.2,1.3,.4,1) both; }
.mega span:nth-child(2) { animation-delay: .12s; }
.mega span:nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(40px) rotate(-2deg); opacity: 0; } }
.sticker { animation: wobble 3.6s ease-in-out infinite; }
.st-b { animation-delay: -1.8s; }
@keyframes wobble { 0%, 100% { rotate: 0deg; translate: 0 0; } 50% { rotate: 3deg; translate: 0 -6px; } }
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shine 3.8s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
/* siren glow behind the cards */
.siren-glow { position: absolute; z-index: -1; right: 4%; top: 18%; width: 46%; aspect-ratio: 1; border-radius: 50%; filter: blur(40px); opacity: .55;
  background: radial-gradient(circle at 30% 50%, rgba(232,56,79,.85), transparent 55%), radial-gradient(circle at 70% 50%, rgba(60,110,168,.9), transparent 55%);
  animation: siren 1.6s steps(2) infinite; }
@keyframes siren { 50% { transform: scaleX(-1); } }
/* floating catnip leaves */
.leaves { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.leaves i { position: absolute; bottom: -40px; left: var(--x); width: calc(26px * var(--s)); height: calc(28px * var(--s)); opacity: .55;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -20 20 22'%3E%3Cpath d='M0,0 C-6,-2 -9,-8 -7,-13 L-5,-12 L-6,-16 L-3,-15 L-2,-19 L0,-17 L2,-19 L3,-15 L6,-16 L5,-12 L7,-13 C9,-8 6,-2 0,0 Z' fill='%236fcf4a' stroke='%231a1410' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation: leaf var(--t) linear var(--d) infinite; }
@keyframes leaf { 0% { transform: translateY(0) rotate(0deg); opacity: 0; } 10% { opacity: .55; } 50% { transform: translateY(-55vh) translateX(30px) rotate(180deg); } 90% { opacity: .5; } 100% { transform: translateY(-110vh) translateX(-20px) rotate(360deg); opacity: 0; } }
/* things rise in as you scroll (only when JS is running, so the page reads fine without it) */
.fx [data-reveal] { opacity: 0; transform: translateY(34px) rotate(var(--rr, 0deg)); transition: opacity .7s ease, transform .8s cubic-bezier(.2,1.2,.4,1); transition-delay: var(--rd, 0s); }
.fx [data-reveal].in { opacity: 1; transform: translateY(0) rotate(var(--rr, 0deg)); }
.file:nth-child(odd) { --rr: -1.4deg; } .file:nth-child(even) { --rr: 1.2deg; }
.crew-card:nth-child(1) { --rr: -1.5deg; } .crew-card:nth-child(3) { --rr: 1.5deg; }
.bag:nth-child(odd) { --rr: -1.2deg; } .bag:nth-child(even) { --rr: 1.4deg; }
.note-card:nth-child(2) { --rr: 1.2deg; } .note-card:nth-child(3) { --rr: -1deg; }
.idcard { --rr: 1.5deg; } .vault-card { --rr: 1.2deg; }
.crew-card, .bag, .file, .note-card { transition: transform .35s cubic-bezier(.2,1.4,.4,1), box-shadow .35s; }
.crew-card:hover { transform: translateY(-10px) rotate(0deg) !important; box-shadow: 12px 16px 0 var(--navy-deep); }
.crew-card .cc-art img { transition: transform .5s ease; }
.crew-card:hover .cc-art img { transform: scale(1.06) rotate(-1deg); }
.bag:hover, .file:hover, .note-card:hover { transform: translateY(-6px) rotate(0deg) !important; }
/* pool split */
.fx .split span { transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2,1,.3,1); }
.fx .split.in span { transform: none; }
.fx .split.in span:nth-child(2) { transition-delay: .15s; } .fx .split.in span:nth-child(3) { transition-delay: .3s; }

/* ---------- charts ---------- */
.chart-card:last-child { margin-bottom: 0; }
.chart-card { margin: 36px 0 44px; background: #fbf4e3; color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; padding: 22px 24px 18px; box-shadow: 8px 9px 0 var(--ink); display: grid; gap: 12px; }
.band-dark .chart-card { box-shadow: 8px 9px 0 rgba(11,20,40,.85); }
.chart-card figcaption { display: grid; gap: 6px; max-width: 760px; }
.chart-card h3 { font-family: var(--display); font-size: 22px; text-transform: uppercase; color: var(--navy); }
.chart-card figcaption p { font-size: 15px; color: var(--ink-2); }
.chart { position: relative; width: 100%; height: 230px; }
.chart.tall { height: 300px; }
.chart.short { height: 130px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart text { font-family: var(--body); font-size: 12.5px; fill: var(--ink-2); }
.chart .v-lab { font-family: var(--display); font-size: 15px; fill: var(--ink); }
.chart .grid { stroke: #e2d4b2; stroke-width: 1; }
.chart .axis { stroke: #b9a77f; stroke-width: 1; }
.chart .hit { fill: transparent; cursor: pointer; }
/* per-NFT pool share: class ranking with portraits and a multiplier badge */
.chart.pn-host { height: auto; }
.pn { display: grid; gap: 12px; margin-top: 14px; }
.pn-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 96px; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 14px; border: 2px solid transparent; cursor: default; transition: background .2s, border-color .2s; }
.pn-row:hover, .pn-row:focus-visible { background: #fff3c4; border-color: var(--ink); outline: none; }
.pn-who { display: flex; align-items: center; gap: 12px; }
.pn-who img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--c); flex: none; }
.pn-who b { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; text-transform: uppercase; color: var(--navy); line-height: 1.1; }
.pn-who small { font-family: var(--type); font-size: 13px; color: var(--ink-3); }
.pn-track { position: relative; height: 34px; border-radius: 999px; background: #efe3c6; border: 3px solid var(--ink); overflow: hidden; }
.pn-track i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--c);
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.18) 0 10px, transparent 10px 20px); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.pn-val { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 2px 8px; border-radius: 999px; background: rgba(251,244,227,.92); font-family: var(--type); font-style: normal; font-size: 13px; color: var(--ink-2); }
.pn-x { justify-self: end; min-width: 84px; text-align: center; padding: 6px 10px; border-radius: 12px; background: var(--c); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  font-family: var(--display); font-size: 22px; color: var(--ink); }
.pn-note { margin: 4px 12px 0; font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 640px) {
  .pn-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .pn-track { grid-column: 1 / -1; grid-row: 2; height: 26px; }
  .pn-val { font-size: 11.5px; }
  .pn-x { font-size: 18px; min-width: 70px; }
}
.chart .hit:focus { outline: none; }
.chart .hit:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.chart .mark { transition: transform 1s cubic-bezier(.2,1.1,.3,1), opacity .4s; transform-box: fill-box; }
.fx .chart-card:not(.in) .mark.v { transform: scaleY(0); transform-origin: 50% 100%; }
.fx .chart-card:not(.in) .mark.h { transform: scaleX(0); transform-origin: 0 50%; }
.chart .line { fill: none; stroke: #2a78d6; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; transition: stroke-dashoffset 2s ease-out; }
.chart .area { fill: rgba(42,120,214,.12); transition: opacity 1.2s ease .6s; }
.fx .chart-card:not(.in) .area { opacity: 0; }
.chart .note-line { stroke: var(--ink-3); stroke-width: 1.5; }
.chart .xhair { stroke: var(--ink); stroke-width: 1; }
.chart .dot { fill: #2a78d6; stroke: #fbf4e3; stroke-width: 2; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); font-weight: 700; }
.chart-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 7px; vertical-align: -2px; }
.chart-legend .k1 { background: #2a78d6; } .chart-legend .k2 { background: #eb6834; } .chart-legend .k3 { background: #1baf7a; } .chart-legend .k4 { background: #eda100; }
.chart-data summary { cursor: pointer; font-family: var(--type); font-size: 14px; color: var(--ink-2); }
.chart-data table { margin-top: 10px; width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.chart-data th { text-align: left; font-family: var(--type); font-weight: 400; color: var(--ink-3); padding: 6px 10px; border-bottom: 2px solid var(--cream-3); }
.chart-data td { padding: 6px 10px; border-bottom: 1px solid #e8dcc0; }
.chart-src { font-family: var(--type); font-size: 13px; color: var(--ink-3); }
.viz-tip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: var(--cream); border-radius: 10px; padding: 8px 12px; display: grid; gap: 2px; font-size: 13px; box-shadow: 0 6px 0 rgba(0,0,0,.25); max-width: 260px; }
.viz-tip b { font-family: var(--display); font-weight: 400; font-size: 17px; color: var(--gold); }
.viz-tip[hidden] { display: none; }
@media (max-width: 640px) {
  .chart-card { padding: 16px 14px 14px; }
  .chart { height: 210px; }
  .chart.tall { height: 250px; }
  .chart.short { height: 140px; }
  .chart-card { margin-bottom: 34px; }
  .stack-dots button { font-size: 12px; padding: 4px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .leaves, .siren-glow { display: none; }
  .fx [data-reveal], .fx .split span, .waffle i { opacity: 1 !important; transform: none !important; }
  .r-bar i, .r-meter i { transition: none; }
}
