/* The Fuzzballs Saga. Comic-page panels: full-bleed ink bands, splash hero, panel-grid roster.
   Single dark look by design (night in Gloom City). Shared by index.html and shop.html. */
:root {
  color-scheme: dark;
  --ink: #0e0c14;
  --ink-2: #16131e;
  --panel: #1f1b2a;
  --paper: #f4efe4;
  --muted: #d6d0e2;          /* raised from #b5aec3 for contrast on dark */
  --line: #0e0c14;
  --brand: #ff7a1a;
  --electro: #a46bff;
  --fire: #ffc531;
  --mystic: #1fae95;
  --corey: #ff7a1a;
  --ice: #7cc8ff;
  --allie: #ff3d8b;
  --split: #e0a43a;
  --f-display: "Bowlby One", "Arial Black", Impact, sans-serif;
  --f-tech: "Chakra Petch", "Consolas", ui-monospace, monospace;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--f-body); font-size: 18.5px; line-height: 1.72; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--fire); outline-offset: 3px; }
section[id], article[id] { scroll-margin-top: 80px; }
[hidden] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: 76px; position: relative; }
.halftone { background-image: radial-gradient(color-mix(in srgb, var(--electro) 22%, transparent) 1.2px, transparent 1.4px); background-size: 9px 9px; }
.review-bar { display: none; }

.eyebrow { font-family: var(--f-tech); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; color: var(--mystic); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.02; text-wrap: balance; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(30px, 5vw, 52px); }
p { margin: 0; }
.lede { max-width: 64ch; color: var(--muted); }
.stack { display: grid; gap: 16px; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--ink) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 2px solid var(--panel); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { font-family: var(--f-display); font-size: 19px; text-decoration: none; display: flex; align-items: center; gap: 10px; color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 18px; font-family: var(--f-tech); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); }
.nav-links .shop-link { color: var(--brand); }
@media (max-width: 820px) { .nav-links a:not(.keep) { display: none; } .nav-links { gap: 14px; } .brand { font-size: 16px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--f-display); font-size: 17px; text-decoration: none; padding: 14px 22px; border: 3px solid var(--line); border-radius: 4px; box-shadow: 5px 5px 0 var(--line); transition: transform .12s, box-shadow .12s; cursor: pointer; text-transform: uppercase; letter-spacing: .02em; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--line); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--line); }
.btn-brand { background: var(--brand); color: var(--ink); }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.hero { overflow: hidden; padding-block: 48px 0; background: radial-gradient(ellipse 60% 60% at 78% 40%, color-mix(in srgb, var(--electro) 30%, transparent), transparent 70%), radial-gradient(ellipse 45% 50% at 12% 85%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%), var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .copy { display: grid; gap: 18px; min-width: 0; }
.hero h1 img { width: min(100%, 640px); height: auto; filter: drop-shadow(6px 7px 0 #2a1000); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.subtitle { font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.05; letter-spacing: .02em; }
.book-one { justify-self: start; font-family: var(--f-tech); font-weight: 700; font-size: 15px; letter-spacing: .2em; color: var(--ink); background: var(--mystic); padding: 4px 10px; }
.hook { font-size: 20px; color: var(--paper); max-width: 46ch; }
.byline { font-family: var(--f-tech); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.byline b { color: var(--fire); }
.launch-note { font-family: var(--f-tech); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ticker { margin-top: 56px; background: var(--brand); color: var(--ink); border-block: 3px solid var(--paper); overflow: hidden; }
.ticker-track { display: flex; gap: 40px; white-space: nowrap; padding-block: 12px; font-family: var(--f-display); font-size: 18px; animation: tick 40s linear infinite; width: max-content; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Story */
.story .wrap { max-width: 1160px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: start; }
.story-book { margin: 0; position: sticky; top: 90px; border: 4px solid var(--paper); border-radius: 8px; overflow: hidden; box-shadow: 10px 10px 0 #5a2200; }
.story-book img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; gap: 28px; } .story-book { position: static; order: -1; max-width: 380px; } }
.story h2 { margin-block: 10px 26px; font-size: clamp(34px, 5.6vw, 58px); }
.story .lede { max-width: none; }
.story .triad { font-family: var(--f-display); font-size: clamp(22px, 3vw, 30px); color: var(--paper); }
.story .triad .f { color: var(--fire); } .story .triad .e { color: var(--electro); } .story .triad .m { color: var(--mystic); }
.story .beat { font-family: var(--f-tech); font-weight: 700; font-size: 21px; color: var(--paper); }
.unity { margin-top: 40px; font-family: var(--f-display); font-size: clamp(30px, 5vw, 54px); line-height: 1.02; color: var(--brand); text-shadow: 4px 4px 0 #5a2200; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; border: 2px solid var(--panel); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { padding: 16px; border: 1px solid var(--panel); }
.facts dt { font-family: var(--f-tech); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--mystic); }
.facts dd { margin: 4px 0 0; font-weight: 700; line-height: 1.35; }

/* Endorsement strip */
.endorse { background: var(--fire); color: var(--ink); border-block: 4px solid var(--paper); text-align: center; padding-block: 64px; }
.endorse blockquote { margin: 0 auto; max-width: 900px; font-family: var(--f-display); font-size: clamp(28px, 4.6vw, 52px); line-height: 1.05; }
.endorse cite { display: block; margin-top: 22px; font-style: normal; font-family: var(--f-tech); font-weight: 700; font-size: 16px; letter-spacing: .04em; line-height: 1.5; }
.endorse cite b { display: block; font-size: 19px; }

/* Roster */
.heroes { background: var(--ink-2); }
.roster-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 36px; }
.roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .roster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .roster { grid-template-columns: 1fr; } }
.card { --c: var(--brand); background: var(--panel); border: 3px solid var(--paper); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s; min-width: 0; }
.card:hover { transform: translateY(-4px) rotate(-.5deg); }
.card .art { aspect-ratio: 3 / 4; max-width: 100%; position: relative; overflow: hidden; border-bottom: 3px solid var(--paper); background: var(--ink); }
.card .art img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.card .art .label { position: absolute; left: 10px; bottom: 10px; background: var(--c); color: var(--ink); font-family: var(--f-tech); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border: 2px solid var(--line); }
.card .body { padding: 18px; display: grid; gap: 12px; flex: 1; align-content: start; }
.card h3 { font-size: 28px; color: var(--c); }
.card .tag { font-family: var(--f-tech); font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--paper); }
.card p { color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.watch { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; font-family: var(--f-tech); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--c); padding-top: 4px; }
.watch::before { content: ""; width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.watch:hover { text-decoration: underline; text-underline-offset: 4px; }
.card.electro, .team.electro { --c: var(--electro); } .card.fire, .team.fire { --c: var(--fire); } .card.mystic, .team.mystic { --c: var(--mystic); } .card.corey { --c: var(--corey); } .team.all { --c: var(--brand); }

/* Choose your Fuzzball */
.teams-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 860px) { .teams-grid { grid-template-columns: 1fr; } }
.team { --c: var(--brand); position: relative; border: 4px solid var(--c); border-radius: 8px; overflow: hidden; background: var(--panel); box-shadow: 8px 8px 0 var(--line); display: grid; }
.team .art { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.team .art img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.team .body { padding: 20px; display: grid; gap: 12px; align-content: start; }
.team h3 { font-size: clamp(26px, 2.5vw, 34px); color: var(--c); white-space: nowrap; }
.team .slogan { font-family: var(--f-tech); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: var(--paper); }
.team .row { display: flex; flex-wrap: wrap; gap: 10px; }
.team .btn { font-size: 14px; padding: 10px 13px; }
.team .btn-c { background: var(--c); color: var(--ink); }

/* Villain */
.villain { background: linear-gradient(180deg, var(--ink-2), #07060b); overflow: hidden; }
.villain .wrap { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
@media (max-width: 780px) { .villain .wrap { grid-template-columns: 1fr; } }
.villain-art { border: 4px solid var(--split); border-radius: 8px; overflow: hidden; aspect-ratio: 9 / 16; max-width: 320px; width: 100%; box-shadow: 0 0 60px color-mix(in srgb, var(--split) 40%, transparent), 10px 10px 0 var(--line); }
.villain-art img { width: 100%; height: 100%; object-fit: cover; }
.villain .text { display: grid; gap: 18px; min-width: 0; }
.villain h2 { color: var(--split); }
.villain .eyebrow { color: var(--split); }
.villain .btn { background: var(--split); color: var(--ink); justify-self: start; }

/* Trailer */
.trailer .frame { position: relative; margin-top: 28px; aspect-ratio: 16 / 9; border: 4px solid var(--paper); border-radius: 8px; overflow: hidden; background: #000; box-shadow: 10px 10px 0 var(--brand); }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Author */
.author .wrap { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: center; }
@media (max-width: 740px) { .author .wrap { grid-template-columns: 1fr; } }
.portrait { width: 260px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 5px solid var(--paper); box-shadow: 0 0 0 8px var(--brand); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 74% 40%; filter: brightness(1.38) contrast(1.06) saturate(1.05); } /* interim lift until a brighter headshot arrives */
.author .text { display: grid; gap: 16px; min-width: 0; }
.feature { font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; color: var(--fire); max-width: 40ch; }

/* Shop teaser */
.shop-teaser { background: radial-gradient(ellipse 70% 80% at 50% 0%, color-mix(in srgb, var(--electro) 28%, transparent), transparent 70%), var(--ink-2); text-align: center; }
.shop-teaser h2 { font-size: clamp(36px, 6vw, 64px); color: var(--brand); text-shadow: 4px 4px 0 #5a2200; }
.shop-teaser .lede { margin: 14px auto 28px; font-family: var(--f-tech); font-weight: 700; font-size: 20px; color: var(--paper); }
.shop-teaser .cta-row { justify-content: center; }

/* Updates */
.join { background: var(--brand); color: var(--ink); border-block: 4px solid var(--paper); }
.join .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 860px) { .join .wrap { grid-template-columns: 1fr; } }
.join h2 { font-size: clamp(34px, 6vw, 60px); }
.join .lede { color: var(--ink); font-weight: 500; margin-top: 12px; }
.form { display: grid; gap: 12px; background: var(--paper); border: 3px solid var(--ink); padding: 20px; box-shadow: 8px 8px 0 var(--ink); min-width: 0; color: var(--ink); }
.form label { font-family: var(--f-tech); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.form input { font: inherit; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 3px; background: #fff; color: var(--ink); width: 100%; }
.form .btn { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--electro); border-color: var(--ink); }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.form .msg { font-family: var(--f-tech); font-weight: 700; }
.form .msg.err { color: #b3261e; }
.form small { color: #3d3647; font-size: 14px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; margin-top: 28px; max-width: 860px; }
details { background: var(--panel); border: 2px solid color-mix(in srgb, var(--paper) 18%, transparent); border-radius: 4px; }
summary { cursor: pointer; padding: 16px 18px; font-family: var(--f-tech); font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--fire); font-family: var(--f-display); }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 18px 18px; color: var(--muted); max-width: 70ch; }

/* Dialogs: video player + get the book */
dialog { border: 0; padding: 0; background: transparent; overflow: visible; color: var(--paper); }
dialog::backdrop { background: rgba(8,6,12,.88); backdrop-filter: blur(4px); }
.player { max-width: min(92vw, 1000px); width: 100%; }
.player .frame { position: relative; margin: 0 auto; border: 4px solid var(--paper); border-radius: 8px; overflow: hidden; background: #000; box-shadow: 10px 10px 0 var(--brand); }
.player .frame.v { aspect-ratio: 9 / 16; height: min(76vh, 760px); max-width: 100%; }
.player .frame.h { aspect-ratio: 16 / 9; width: 100%; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font-family: var(--f-tech); font-weight: 700; }
.close { font: inherit; font-family: var(--f-display); background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 4px; padding: 6px 14px; cursor: pointer; box-shadow: 3px 3px 0 var(--brand); }
.endcard { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--electro) 40%, transparent), transparent 70%), var(--ink); }
.endcard .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.endcard button { font: inherit; cursor: pointer; }
.book-dlg { width: min(92vw, 560px); }
.book-panel { background: var(--panel); border: 4px solid var(--paper); border-radius: 8px; box-shadow: 10px 10px 0 var(--brand); padding: 24px; display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: center; }
@media (max-width: 480px) { .book-panel { grid-template-columns: 1fr; } .book-panel img { width: 140px; } }
.book-panel img { width: 100%; height: auto; align-self: center; border: 3px solid var(--paper); border-radius: 3px; }
.book-panel h2 { font-size: 30px; color: var(--brand); }
.book-panel .title { font-family: var(--f-tech); font-weight: 700; margin: 6px 0 16px; }
.retailers { display: grid; gap: 10px; }
.retailers .btn { justify-content: space-between; font-size: 16px; }
.retailers .btn small { font-family: var(--f-tech); font-size: 12px; letter-spacing: .06em; }

footer { border-top: 2px solid var(--panel); padding-block: 32px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: var(--paper); }

/* ---------- Shop page ---------- */
.shop-hero { text-align: center; padding-block: 56px 64px; background: radial-gradient(ellipse 60% 70% at 50% 10%, color-mix(in srgb, var(--electro) 32%, transparent), transparent 70%), var(--ink); overflow: hidden; }
.shop-hero .cast { display: flex; justify-content: center; gap: 0; margin: 0 auto 26px; max-width: 760px; }
.shop-hero .cast span { width: 33.3%; aspect-ratio: 3/4; overflow: hidden; border: 3px solid var(--paper); margin-inline: -6px; border-radius: 6px; box-shadow: 6px 6px 0 var(--line); background: var(--ink); }
.shop-hero .cast img { width: 100%; height: 100%; object-fit: cover; }
.shop-hero .cast span:nth-child(1) { transform: rotate(-4deg); } .shop-hero .cast span:nth-child(3) { transform: rotate(4deg); } .shop-hero .cast span:nth-child(2) { position: relative; z-index: 1; transform: translateY(-10px); }
.shop-hero h1 { font-size: clamp(42px, 8vw, 86px); color: var(--brand); text-shadow: 5px 5px 0 #5a2200; }
.shop-hero .lede { margin: 14px auto 26px; font-family: var(--f-tech); font-weight: 700; font-size: 20px; color: var(--paper); }
.shop-hero .cta-row { justify-content: center; }
.shop-hero .all { display: inline-block; margin-top: 18px; font-family: var(--f-tech); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.starts { background: var(--ink-2); }
.starts .wrap { display: grid; grid-template-columns: 180px 1fr; gap: 30px; align-items: center; max-width: 860px; }
@media (max-width: 600px) { .starts .wrap { grid-template-columns: 1fr; } }

.starts h2 { font-size: clamp(26px, 3.6vw, 38px); }
.section-head { display: grid; gap: 8px; margin-bottom: 26px; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .products { grid-template-columns: 1fr; } }
.products.big { grid-template-columns: repeat(4, 1fr); }
.product { --c: var(--brand); background: var(--panel); border: 3px solid var(--paper); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.product .pimg { aspect-ratio: 4 / 5; background: var(--ink); position: relative; overflow: hidden; }
.product .pimg img { width: 100%; height: 100%; object-fit: cover; }
.product .soon { position: absolute; left: 10px; top: 10px; background: var(--fire); color: var(--ink); font-family: var(--f-tech); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border: 2px solid var(--line); }
.product .pbody { padding: 14px; display: grid; gap: 10px; flex: 1; align-content: start; }
.product h3 { font-size: 20px; line-height: 1.1; }
.product .price { font-family: var(--f-tech); font-weight: 700; color: var(--fire); }
.product select { font: inherit; font-size: 15px; padding: 8px; border-radius: 3px; border: 2px solid var(--paper); background: var(--ink); color: var(--paper); }
.product .btn { font-size: 14px; padding: 10px 12px; margin-top: auto; }
.by-product { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.by-product .btn { min-width: 160px; }
.cartbar { position: fixed; right: 16px; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 12px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 6px; padding: 10px 12px; box-shadow: 6px 6px 0 var(--brand); font-family: var(--f-tech); font-weight: 700; }
.cartbar .btn { font-size: 14px; padding: 9px 14px; box-shadow: 3px 3px 0 var(--line); }
.shop-note { margin-top: 18px; color: var(--muted); font-size: 15px; text-align: center; }

/* Character focal points: keeps each character centered in any frame. The source frames are
   9:16, so wide frames crop top and bottom (y) and the zoom recenters off-center subjects (x). */
img.fz-fire, img.fz-electro, img.fz-mystic, img.fz-corey { transform-origin: 50% 50%; }
.art img.fz-fire, .cast img.fz-fire, .pimg img.fz-fire { object-position: 50% 32% !important; }
.art img.fz-electro, .cast img.fz-electro, .pimg img.fz-electro { object-position: 50% 30% !important; transform: scale(1.2) translateX(6%); }
.art img.fz-mystic, .cast img.fz-mystic, .pimg img.fz-mystic { object-position: 50% 52% !important; }
.art img.fz-corey, .cast img.fz-corey, .pimg img.fz-corey { object-position: 50% 35% !important; transform: scale(1.4) translateX(14%); }
/* Wide (4:3) team tiles crop much more height, so they need higher focal points. */
.team .art img.fz-fire { object-position: 50% 24% !important; }
.team .art img.fz-electro { object-position: 50% 20% !important; }
.team .art img.fz-mystic { object-position: 50% 36% !important; }

/* 3D book built from the front cover (CSS only, artwork untouched). Spine on the left faces the viewer. */
.book3d { --w: min(100%, 360px); --d: 36px; justify-self: center; display: block; width: var(--w); perspective: 1800px; padding: 12px 12px 34px 40px; text-decoration: none; }
.book3d.small { --w: 170px; --d: 18px; padding: 6px 6px 18px 22px; }
.book { position: relative; display: block; aspect-ratio: 440 / 684; transform-style: preserve-3d; transform: rotateY(26deg) rotateX(3deg); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.book3d:hover .book, .book3d:focus-visible .book { transform: rotateY(12deg) rotateX(2deg); }
.book .front { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 1px 4px 4px 1px; transform: translateZ(calc(var(--d) / 2)); }
.book .spine { position: absolute; top: 0; left: 0; width: var(--d); height: 100%; transform-origin: left center; transform: translateZ(calc(var(--d) / -2)) rotateY(-90deg); background: linear-gradient(90deg, #120904, #3b1b09 45%, #1c0e06); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 12% 0 8%; writing-mode: vertical-rl; overflow: hidden; }
.book .spine b { font-family: var(--f-display); font-weight: 400; font-size: calc(var(--d) * .48); line-height: 1; color: var(--brand); letter-spacing: .04em; white-space: nowrap; }
.book .spine i { font-style: normal; font-family: var(--f-tech); font-weight: 700; font-size: calc(var(--d) * .3); color: var(--paper); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.book .pages { position: absolute; top: 1.2%; right: 0; width: var(--d); height: 97.6%; transform-origin: right center; transform: translateZ(calc(var(--d) / -2)) rotateY(90deg); background: repeating-linear-gradient(90deg, #f3eee2 0 2px, #d6cfbf 2px 3px); }
.book .front { box-shadow: inset 6px 0 10px -4px rgba(0,0,0,.45); }
.book3d::after { content: ""; display: block; height: 18px; margin: 10px 6% 0 14%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); filter: blur(4px); }
@media (max-width: 880px) { .book3d { --w: min(72%, 300px); --d: 30px; } }
@media (prefers-reduced-motion: reduce) { .book { transition: none; } }
/* Meet the Heroes cards use the official "Meet [Name]" frames, shown whole (9:16). */
.card .art:has(img.meet) { aspect-ratio: 9 / 16; }
.card .art img.meet { object-position: 50% 50% !important; transform: none; }
.card .art:has(img.meet) .label { top: 10px; bottom: auto; }
/* New headshot: no brightening needed. */
.portrait img { filter: none; object-position: 50% 35%; }
/* Thicker book. */
.book3d { --d: 54px; padding-left: 58px; }
.book3d.small { --d: 26px; padding-left: 30px; }
@media (max-width: 880px) { .book3d { --d: 42px; } }
.book .front { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* Team tiles use the Meet posters, shown whole */
.team .art:has(img.meet) { aspect-ratio: 9 / 16; }
.team .art img.meet { object-position: 50% 50% !important; transform: none; }
/* Shirt and hoodie mockups: show the whole garment */
.product .pimg img.mock { object-fit: cover; object-position: 50% 45%; background: #e6e6e6; }
/* Shop hero uses the Meet posters, shown whole */
.shop-hero .cast { max-width: 620px; }
.shop-hero .cast span:has(img.meet) { aspect-ratio: 9 / 16; }
.shop-hero .cast img.meet { object-position: 50% 50%; }
.shop-hero .cast span:has(img.meet) { margin-inline: 6px; }

/* 2026-10-21: three Fuzzballs per row, Corey and Allie section, Tumma, socials, color swatches, logo hats */
.roster.three { grid-template-columns: repeat(3, 1fr); }
.roster.two { grid-template-columns: repeat(2, minmax(0, 340px)); }
@media (max-width: 1000px) { .roster.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .roster.three, .roster.two { grid-template-columns: 1fr; } }
.card.allie { --c: var(--brand); }
.pending { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--ink) 0 14px, var(--panel) 14px 28px); }
.pending-note { font-family: var(--f-tech); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; text-align: center; color: var(--paper); background: var(--ink); padding: 8px 12px; border: 2px solid var(--paper); }
.villain .wrap.tumma { margin-top: 56px; }
.socials { font-family: var(--f-tech); font-weight: 700; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.socials span { color: var(--mystic); text-transform: uppercase; letter-spacing: .12em; font-size: 14px; }
.socials a { color: var(--paper); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--paper); background: var(--sw); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.swatch[aria-pressed="true"] { outline: 3px solid var(--fire); outline-offset: 2px; }
.swatch-name { font-size: 14px; color: var(--paper); margin-left: 2px; }
.pimg.logo-tile { background: #111; display: grid; place-items: center; }
.pimg.logo-tile img { width: 78%; height: auto; object-fit: contain; }

/* 2026-10-22: Ice joins the Fuzzballs (four per row); Allie, Ice and Corey get team colors and gear */
.card.ice, .team.ice { --c: var(--ice); }
.card.allie, .team.allie { --c: var(--allie); }
.team.corey { --c: var(--corey); }
.teams-grid.four { grid-template-columns: repeat(4, 1fr); }
.teams-grid.two { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
@media (max-width: 1000px) { .teams-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .teams-grid.four, .teams-grid.two { grid-template-columns: 1fr; } }

/* Hero book image */
.hero-book { justify-self: center; display: block; width: min(100%, 400px); text-decoration: none; animation: heroBookIn .9s cubic-bezier(.2,.9,.25,1.2) both; }
.hero-book img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 26px rgba(0,0,0,.55)) drop-shadow(0 0 40px color-mix(in srgb, var(--brand) 28%, transparent)); animation: heroBookFloat 6s ease-in-out .9s infinite; }
.hero-book::after { content: ""; display: block; height: 18px; margin: 4px 16% 0; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); filter: blur(4px); animation: heroBookShadow 6s ease-in-out .9s infinite; }
.hero-book:hover img, .hero-book:focus-visible img { animation-play-state: paused; }
@keyframes heroBookIn { from { opacity: 0; transform: translateY(50px) rotate(5deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes heroBookFloat { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes heroBookShadow { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.8); opacity: .55; } }
@media (max-width: 880px) { .hero-book { width: min(78%, 320px); } }
@media (prefers-reduced-motion: reduce) { .hero-book, .hero-book img, .hero-book::after { animation: none; } }

/* Hero book backlight */
.hero-book { position: relative; isolation: isolate; }
.hero-book::before { content: ""; position: absolute; inset: -10% -16% -4%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 196, 120, .55), rgba(255, 122, 26, .28) 45%, rgba(164, 107, 255, .14) 72%, transparent 100%); filter: blur(26px); animation: heroBookGlow 6s ease-in-out .9s infinite; }
.hero-book img { filter: drop-shadow(0 22px 24px rgba(0,0,0,.55)); }
@keyframes heroBookGlow { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .hero-book::before { animation: none; } }

/* Hero book backlight: brighter */
.hero-book::before { inset: -20% -30% -10%; background: radial-gradient(closest-side, rgba(255, 214, 150, .95), rgba(255, 140, 40, .6) 40%, rgba(255, 122, 26, .3) 62%, rgba(164, 107, 255, .18) 80%, transparent 100%); filter: blur(30px); animation-name: heroBookGlow2; }
@keyframes heroBookGlow2 { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

/* 2026-10-27: hero 3D book back, follows the pointer, with the warm backlight; ticker keeps moving everywhere */
.hero-3d { position: relative; isolation: isolate; }
.hero-3d::before { content: ""; position: absolute; inset: -14% -22% -6%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 214, 150, .85), rgba(255, 140, 40, .5) 40%, rgba(255, 122, 26, .25) 62%, rgba(164, 107, 255, .15) 80%, transparent 100%); filter: blur(30px); animation: heroBookGlow2 6s ease-in-out infinite; }
@keyframes heroBookGlow2 { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.hero-3d.tilting .book { transform: rotateY(var(--ry, 26deg)) rotateX(var(--rx, 3deg)); transition: transform .2s ease-out; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: tick 40s linear infinite !important; } }

/* 2026-10-27b: equal-width team cards so every character lines up; Tumma art */
.teams-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.teams-grid.two { grid-template-columns: repeat(2, minmax(0, 340px)); }
.team { min-width: 0; }
.teams-grid.four .team h3 { font-size: clamp(20px, 1.9vw, 28px); }
@media (max-width: 1000px) { .teams-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .teams-grid.four { grid-template-columns: minmax(0, 1fr); } }
.tumma .villain-art img { width: 100%; height: 100%; object-fit: cover; }

/* 2026-10-27c: shop coming soon */
.shop-soon { min-height: 70vh; display: grid; align-items: center; }

/* 2026-10-27d: nav links white, orange when highlighted; sound toggle */
.nav-links a, .nav-links .shop-link, .nav-links a[aria-current="page"] { color: var(--paper); transition: color .15s; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links .shop-link:hover { color: var(--brand); }
.sound-toggle { position: fixed; left: max(14px, env(safe-area-inset-left, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); z-index: 50; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; border: 2px solid var(--paper); background: color-mix(in srgb, var(--ink) 88%, transparent); color: var(--paper); font-family: var(--f-tech); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; box-shadow: 3px 3px 0 var(--brand); backdrop-filter: blur(6px); }
.sound-toggle:hover, .sound-toggle:focus-visible { color: var(--brand); border-color: var(--brand); }
.sound-toggle[aria-pressed="false"] { opacity: .8; box-shadow: none; }
@media (max-width: 540px) { .sound-toggle span { display: none; } .sound-toggle { padding: 10px; } }

/* 2026-10-27e: real book spine, turned further so the spine shows */
.book .spine { background: #0b0f1c url("img/spine.webp") center / 100% 100% no-repeat; padding: 0; }
.book .spine b, .book .spine i { display: none; }
.hero-3d { --d: 40px; padding-left: 46px; }
.hero-3d .book { transform: rotateY(36deg) rotateX(3deg); }
.hero-3d:hover .book { transform: rotateY(24deg) rotateX(2deg); }
@media (max-width: 880px) { .hero-3d { --d: 32px; padding-left: 38px; } }
.book3d.small { --d: 20px; padding-left: 24px; }

/* 2026-10-27f: reveal links line up at the bottom of every character card */
.card .body { display: flex; flex-direction: column; gap: 12px; }
.card .body .watch { margin-top: auto; padding-top: 6px; }

/* 2026-10-27g: presale link */
.launch-note a { color: var(--fire); text-decoration: underline; text-underline-offset: 4px; }
.launch-note a:hover, .launch-note a:focus-visible { color: var(--brand); }
@media (max-width: 880px) { .sound-toggle span { display: none; } .sound-toggle { padding: 10px; } }

/* 2026-10-28: four characters on shop coming soon */
.shop-hero .cast { max-width: 760px; }
.shop-hero .cast span:has(img.meet) { width: 25%; margin-inline: 5px; }
.shop-hero .cast span:nth-child(1) { transform: rotate(-4deg); }
.shop-hero .cast span:nth-child(2) { position: relative; z-index: 1; transform: translateY(-10px) rotate(-1.5deg); }
.shop-hero .cast span:nth-child(3) { position: relative; z-index: 1; transform: translateY(-10px) rotate(1.5deg); }
.shop-hero .cast span:nth-child(4) { transform: rotate(4deg); }
@media (max-width: 560px) { .shop-hero .cast span:has(img.meet) { margin-inline: 3px; border-width: 2px; } }

/* 2026-11-03: character reveal buttons people cannot miss */
.card .body .watch { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin-top: auto; padding: 14px 16px; background: var(--c); color: var(--ink); border: 3px solid var(--line); border-radius: 10px; box-shadow: 5px 5px 0 var(--paper); font-family: var(--f-display); font-size: 17px; letter-spacing: .02em; line-height: 1.15; text-align: center; text-decoration: none; transition: transform .12s, box-shadow .12s; animation: fzWatchGlow 2.4s ease-in-out infinite; }
.card .body .watch::before { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f4efe4' d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") 56% 50% / 18px no-repeat; }
.card .body .watch:hover, .card .body .watch:focus-visible { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--paper); text-decoration: none; }
.card .body .watch:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--paper); }
@keyframes fzWatchGlow { 0%, 100% { filter: none; } 50% { filter: brightness(1.12) drop-shadow(0 0 10px var(--c)); } }
.card .art.has-reveal { cursor: pointer; }
.card .art .play-badge { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(14,12,20,.62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f4efe4' d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") 56% 50% / 36px no-repeat; border: 3px solid var(--c); box-shadow: 0 0 0 0 var(--c); pointer-events: none; animation: fzPlayPulse 2s ease-out infinite; transition: transform .15s; }
.card .art.has-reveal:hover .play-badge { transform: scale(1.1); }
@keyframes fzPlayPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 70%, transparent); } 70% { box-shadow: 0 0 0 18px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 560px) { .card .body .watch { font-size: 16px; padding: 13px 14px; } .card .art .play-badge { width: 64px; height: 64px; margin: -32px 0 0 -32px; background-size: 30px; } }
@media (prefers-reduced-motion: reduce) { .card .body .watch, .card .art .play-badge { animation: none; } }
.card .body .watch { white-space: nowrap; font-size: 18px; }

/* 2026-11-03b: one uniform reveal button everywhere */
a.reveal-btn { display: flex; align-items: center; justify-content: center; gap: 12px; box-sizing: border-box; width: 220px; max-width: 100%; height: 64px; padding: 0 16px; margin: 0; flex: none; background: var(--c, var(--brand)); color: var(--ink); border: 3px solid var(--line); border-radius: 10px; box-shadow: 5px 5px 0 var(--paper); font-family: var(--f-display); font-size: 18px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .12s, box-shadow .12s; animation: fzWatchGlow 2.4s ease-in-out infinite; }
a.reveal-btn::before { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f4efe4' d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") 56% 50% / 18px no-repeat; }
a.reveal-btn:hover, a.reveal-btn:focus-visible { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--paper); }
a.reveal-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--paper); }
.card .body a.reveal-btn { margin-top: auto; align-self: center; }
.team .row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.team .row a.reveal-btn { order: -1; }
.villain a.reveal-btn { --c: var(--split); justify-self: start; }
@media (max-width: 640px) { a.reveal-btn { width: 100%; } .team .row .btn-ghost { width: 100%; } }
@media (prefers-reduced-motion: reduce) { a.reveal-btn { animation: none; } }
a.reveal-btn { width: 190px; gap: 10px; padding: 0 12px; font-size: 17px; letter-spacing: .01em; }
a.reveal-btn::before { width: 30px; height: 30px; background-size: 16px; }
@media (min-width: 900px) and (max-width: 1140px) { #heroes .card .body { padding-left: 14px; padding-right: 14px; } }
@media (max-width: 640px) { a.reveal-btn { width: 300px; max-width: 100%; height: 64px; font-size: 18px; } }
/* 2026-11-13: no play badge over character art */
.card .art .play-badge { display: none !important; }
@media (min-width: 641px) { a.reveal-btn { width: 204px; font-size: 16px; gap: 9px; padding: 0 10px; } }
#faq .updated { margin-top: 18px; font-size: 14px; color: var(--muted); opacity: .85; }
