/* Hybrid Creatures: the site's one stylesheet.
   Identity: deep space black, portal cyan, violet and ember from the owner's portal-swirl art (HC PFP),
   brass and burgundy leather from his "Book of Lore" render. Bump ?v= in every page when this changes. */

@font-face { font-family: 'Bebas Neue'; src: url('/assets/fonts/bebas-neue-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/assets/fonts/barlow-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/assets/fonts/barlow-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/assets/fonts/barlow-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/assets/fonts/barlow-condensed-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Pirata One'; src: url('/assets/fonts/pirata-one-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --bg: #07060d; --bg2: #0d0a19; --panel: #120e22; --panel2: #191331; --line: #2b2450; --line2: #3b3270;
  --ink: #f4f1ff; --muted: #b3acd2; --dim: #8a83ab;
  --cyan: #2ee6ff; --violet: #9b6bff; --ember: #ff8a3d; --blood: #ff4558; --brass: #f2dca0; --brass2: #c9a85c;
  --leather: #3d0f19; --leather2: #250910; --paper: #f1e4c4; --paper2: #e3d0a4; --paper-ink: #2a1a10; --paper-dim: #6a4f36;
  --radius: 14px; --wrap: 1180px; --gut: 20px;
  --title: 'Bebas Neue', 'Barlow Condensed', Impact, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --black: 'Pirata One', 'Bebas Neue', serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #8ff3ff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--title); font-weight: 400; letter-spacing: .02em; line-height: 1.02; margin: 0 0 .4em; }
h1 { font-size: clamp(44px, 7vw, 92px); }
h2 { font-size: clamp(34px, 4.6vw, 58px); }
h3 { font-size: clamp(24px, 2.6vw, 32px); }
p { margin: 0 0 1em; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.split > *, .grid > *, .hero-grid > *, .cr-hero > *, .result > * { min-width: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--brass); color: #000; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font: 600 14px/1.2 'Barlow Condensed', var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin: 0 0 10px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: #e2ddf6; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.mt0 { margin-top: 0; }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(7, 6, 13, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 132px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a, .nav summary { color: var(--ink); text-decoration: none; font: 400 20px/1 var(--title); letter-spacing: .06em; padding: 10px 10px; border-radius: 10px; cursor: pointer; }
.nav a:hover, .nav summary:hover { background: var(--panel2); color: #fff; }
.nav a[aria-current="page"] { color: var(--cyan); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.nav details { position: relative; }
.nav summary { list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ' \25BE'; font-size: 14px; }
.nav .more { position: absolute; right: 0; top: calc(100% + 8px); background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 8px; display: grid; min-width: 190px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.nav .more a { padding: 10px 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 400 21px/1 var(--title); letter-spacing: .06em; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary { background: linear-gradient(135deg, var(--cyan), #6aa8ff 55%, var(--violet)); color: #07060d; box-shadow: 0 6px 26px rgba(46, 230, 255, .28); }
.btn-primary:hover { color: #07060d; transform: translateY(-1px); box-shadow: 0 10px 34px rgba(46, 230, 255, .42); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--ink); border-color: var(--line2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.btn-brass { background: linear-gradient(180deg, #f8e7b6, var(--brass2)); color: #2a1609; box-shadow: 0 6px 22px rgba(242, 220, 160, .22); }
.btn-brass:hover { color: #2a1609; transform: translateY(-1px); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 18px; }
.head-cta { margin-left: 6px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line2); color: var(--ink); border-radius: 10px; min-height: 44px; padding: 0 14px; font: 400 20px/1 var(--title); letter-spacing: .06em; }
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .head-cta { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg2); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px var(--gut) 18px; margin: 0; max-height: calc(100vh - 68px); overflow: auto; }
  .nav.open { display: flex; }
  .nav a, .nav summary { padding: 14px 8px; font-size: 24px; }
  .nav details { display: contents; }
  .nav summary { display: none; }
  .nav .more { position: static; display: grid; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
}

/* ---------------------------------------------------------------- footer */
.site-foot { margin-top: 90px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg2), #050409); padding: 56px 0 34px; color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
.foot-grid h2 { font-size: 22px; color: var(--ink); margin-bottom: 12px; }
.foot-grid a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.foot-grid a:hover { color: var(--cyan); }
.foot-logo { width: 150px; margin-bottom: 14px; }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--dim); }
.foot-legal p { margin: 0; max-width: 820px; }
.motion-btn { background: none; border: 1px solid var(--line2); color: var(--muted); border-radius: 999px; padding: 8px 14px; font: 600 14px var(--body); cursor: pointer; min-height: 40px; }
.motion-btn:hover { color: var(--ink); border-color: var(--cyan); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- sections */
main { display: block; }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section.tight { padding: 44px 0; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.center { margin-inline: auto; }
.page-hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 70px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('/media/brand/portal-bg-1280.webp') center/cover; opacity: .28; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 90% at 70% 10%, transparent, var(--bg) 78%), linear-gradient(180deg, transparent 50%, var(--bg)); }
.portal-glow { background: radial-gradient(60% 60% at 50% 0%, rgba(46, 230, 255, .12), transparent 70%), radial-gradient(50% 60% at 90% 60%, rgba(155, 107, 255, .12), transparent 70%); }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 960px) { .g4, .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3 { grid-template-columns: 1fr; } .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.panel { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); }
.panel h3 { margin-bottom: .3em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--ink); font: 600 15px var(--body); cursor: pointer; text-decoration: none; }
.chip[aria-pressed="true"], .chip.on { background: var(--cyan); color: #07060d; border-color: var(--cyan); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.tag { display: inline-block; font: 600 12px/1 'Barlow Condensed', var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; background: rgba(46, 230, 255, .12); color: var(--cyan); border: 1px solid rgba(46, 230, 255, .3); }
.tag.ultra { background: rgba(255, 138, 61, .14); color: var(--ember); border-color: rgba(255, 138, 61, .4); }
.tag.pair { background: rgba(155, 107, 255, .15); color: #c4a9ff; border-color: rgba(155, 107, 255, .4); }
.tag.original { background: rgba(242, 220, 160, .13); color: var(--brass); border-color: rgba(242, 220, 160, .35); }
.note { border-left: 3px solid var(--brass); background: rgba(242, 220, 160, .06); padding: 14px 18px; border-radius: 0 10px 10px 0; color: #ece4cf; }
.verbatim { font-size: 16px; overflow-wrap: anywhere; }
.lore-text, .bpage, .panel { overflow-wrap: break-word; }
.verbatim li { margin-bottom: .6em; }
.money { border: 1px solid rgba(242, 220, 160, .35); background: linear-gradient(180deg, rgba(242, 220, 160, .07), rgba(242, 220, 160, .02)); }
.legal-line { font-size: 13.5px; color: var(--dim); max-width: 900px; }

/* ---------------------------------------------------------------- home hero */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 6, 13, .92) 10%, rgba(7, 6, 13, .45) 60%, rgba(7, 6, 13, .7)), linear-gradient(180deg, transparent 55%, var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 60px 0; }
.hero-logo { width: min(520px, 90%); filter: drop-shadow(0 6px 30px rgba(46, 230, 255, .35)); margin-bottom: 18px; }
.hero-cards { position: relative; height: min(560px, 62vw); }
.hero-cards img { position: absolute; width: 46%; border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); transition: transform .5s ease; }
.hero-cards img:nth-child(1) { left: 2%; top: 12%; transform: rotate(-9deg); }
.hero-cards img:nth-child(2) { left: 27%; top: 2%; z-index: 2; transform: rotate(1deg); }
.hero-cards img:nth-child(3) { left: 52%; top: 14%; transform: rotate(9deg); }
.hero-cards:hover img:nth-child(1) { transform: rotate(-13deg) translateX(-10px); }
.hero-cards:hover img:nth-child(3) { transform: rotate(13deg) translateX(10px); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; padding: 40px 0 10px; } .hero-cards { height: 92vw; max-height: 520px; } }

/* ---------------------------------------------------------------- season strip + creature cards */
.season-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--ink); transition: transform .2s ease, border-color .2s ease; }
.season-card:hover { transform: translateY(-3px); border-color: var(--cyan); color: var(--ink); }
.season-card img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.season-card .cap { padding: 12px 14px 14px; }
.season-card .cap b { display: block; font: 400 24px/1 var(--title); letter-spacing: .04em; }
.season-card .cap span { color: var(--muted); font-size: 14px; }
.ccard { display: block; text-decoration: none; color: var(--ink); border-radius: 12px; position: relative; }
.ccard .art { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 2 / 3; background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .25s ease, box-shadow .25s ease; }
.ccard .art img { width: 100%; height: 100%; object-fit: cover; }
.ccard:hover .art { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 18px 44px rgba(46, 230, 255, .22); }
.ccard .nm { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; font: 400 22px/1.05 var(--title); letter-spacing: .04em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- creature page */
.cr-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(26px, 5vw, 70px); align-items: start; }
@media (max-width: 860px) { .cr-hero { grid-template-columns: 1fr; } }
.cardflip { position: relative; perspective: 1600px; max-width: 440px; margin-inline: auto; }
.cardflip .stage { position: relative; aspect-ratio: 2 / 3; }
.cardflip .stage > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; box-shadow: 0 26px 70px rgba(0, 0, 0, .6); }
.cardflip .stage > [hidden] { display: none; }
.views { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.lore-text p { color: #e6e1f7; }
.lore-text .facts-h { font: 400 26px/1 var(--title); letter-spacing: .05em; color: var(--brass); margin: 1.2em 0 .5em; }
.lore-text ul { padding-left: 1.1em; margin: 0 0 1em; }
.lore-text li { margin-bottom: .45em; }
.lore-text .loc { font-weight: 600; color: var(--ink); }
.lore-text .foot { margin-top: 1.2em; font: 600 14px/1.5 'Barlow Condensed', var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); white-space: pre-line; }
.song { margin: 18px 0; padding: 14px 18px; border-left: 3px solid var(--ember); background: rgba(255, 138, 61, .07); border-radius: 0 10px 10px 0; font-style: italic; }
.song small { display: block; font-style: normal; color: var(--dim); margin-top: 4px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 50px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- youtube lite + lightbox */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: opacity .2s; }
.yt button { position: absolute; inset: 0; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: #fff; }
.yt button span { display: grid; place-items: center; width: 74px; height: 52px; border-radius: 14px; background: rgba(255, 30, 60, .92); box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.yt button span::before { content: ''; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.yt:hover img { opacity: 1; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-cap { margin-top: 10px; font-size: 15px; color: var(--muted); }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.playable { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; text-align: inherit; }
.playable .pbadge { position: absolute; right: 10px; bottom: 10px; background: rgba(7, 6, 13, .78); color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 6px 12px; font: 600 13px var(--body); }
dialog.lb { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: min(96vw, 1200px); max-height: 94vh; width: auto; }
dialog.lb::backdrop { background: rgba(4, 3, 9, .9); backdrop-filter: blur(4px); }
dialog.lb .lb-body { display: grid; place-items: center; }
dialog.lb img, dialog.lb video { max-width: min(94vw, 1200px); max-height: 82vh; width: auto; height: auto; border-radius: 12px; }
dialog.lb .lb-yt { width: min(94vw, 1100px); aspect-ratio: 16 / 9; }
dialog.lb .lb-yt iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
dialog.lb .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
dialog.lb .lb-cap { color: var(--muted); font-size: 15px; }
dialog.lb .lb-x, dialog.lb .lb-nav { background: rgba(255, 255, 255, .08); border: 1px solid var(--line2); color: #fff; border-radius: 999px; min-height: 44px; min-width: 44px; padding: 0 14px; cursor: pointer; font: 600 15px var(--body); }

/* ---------------------------------------------------------------- the Book of Lore */
.lore-hero { position: relative; padding: clamp(36px, 6vw, 70px) 0 20px; overflow: hidden; isolation: isolate; }
.lore-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('/media/brand/portal-bg-1280.webp') center/cover; opacity: .35; }
.lore-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 30% 50%, rgba(7, 6, 13, .2), var(--bg) 80%); }
.lore-hero .split { grid-template-columns: .8fr 1.2fr; }
@media (max-width: 860px) { .lore-hero .split { grid-template-columns: 1fr; text-align: center; } .lore-hero .book-figure { max-width: 210px; } .lore-hero .btns { justify-content: center; } .lore-hero .lead { margin-inline: auto; } }
.book-figure { position: relative; max-width: 380px; margin-inline: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .65)); }
.book-figure img { width: 100%; height: auto; }
.lore-hero h1 { font-family: var(--black); font-size: clamp(56px, 8vw, 110px); letter-spacing: .01em; color: #fff7e6; text-shadow: 0 4px 30px rgba(155, 107, 255, .45); }
.mode-switch { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; padding: 4px; background: rgba(255, 255, 255, .03); }
.mode-switch button { border: 0; background: none; color: var(--muted); font: 600 15px var(--body); padding: 9px 16px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.mode-switch button[aria-pressed="true"] { background: var(--brass); color: #2a1609; }

.book-wrap { position: relative; padding: 26px 0 10px; }
.book-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: center; margin: 0 auto 18px; }
.book-tools select { background: var(--panel); color: var(--ink); border: 1px solid var(--line2); border-radius: 10px; min-height: 44px; padding: 0 12px; font: 600 15px var(--body); max-width: 78vw; }
.book-tools .count { color: var(--muted); font: 600 15px var(--body); min-width: 120px; text-align: center; }
.book-stage { --pw: min(560px, 46vw); --ph: calc(var(--pw) * 1.42); position: relative; width: calc(var(--pw) * 2); height: var(--ph); margin: 0 auto; perspective: 2600px; transition: transform .7s cubic-bezier(.3, .7, .2, 1); }
.book-stage.closed { transform: translateX(calc(var(--pw) * -.5)); }
.book-stage.ended { transform: translateX(calc(var(--pw) * .5)); }
.book-stage.single { --pw: min(520px, 100vw - 2 * var(--gut)); width: var(--pw); }
.book-stage.single.closed, .book-stage.single.ended { transform: none; }
.book-stage::before { content: ''; position: absolute; left: -14px; right: -14px; top: -12px; bottom: -14px; border-radius: 14px; background: linear-gradient(90deg, var(--leather2), var(--leather) 48%, #1d0710 50%, var(--leather) 52%, var(--leather2)); box-shadow: 0 40px 80px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .05); z-index: 0; transition: opacity .4s; }
.book-stage.closed::before, .book-stage.ended::before { opacity: 0; }
.book-stage.single::before { left: -8px; right: -10px; background: linear-gradient(90deg, #1d0710, var(--leather) 4%, var(--leather2)); }
.leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.35, .65, .25, 1); z-index: 1; }
.book-stage.single .leaf { left: 0; width: 100%; }
.leaf.turned { transform: rotateY(-180deg); }
.book-stage.single .leaf.turned { transform: rotateY(-180deg); opacity: 0; transition: transform .8s cubic-bezier(.35, .65, .25, 1), opacity .25s .55s; pointer-events: none; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.face.back { transform: rotateY(180deg); }
.book-stage.instant .leaf, .book-stage.instant,
.no-motion .leaf, .no-motion .book-stage, .no-motion .book-stage.single .leaf.turned { transition: none !important; }

/* a page */
.bpage { position: relative; container-type: inline-size; background: radial-gradient(120% 90% at 50% 40%, var(--paper), var(--paper2)); color: var(--paper-ink); font-family: var(--body); }
.face > .bpage { position: absolute; inset: 0; }
.face.front > .bpage { border-radius: 0 6px 6px 0; box-shadow: inset 18px 0 30px -18px rgba(70, 40, 10, .45); }
.face.back > .bpage { border-radius: 6px 0 0 6px; box-shadow: inset -18px 0 30px -18px rgba(70, 40, 10, .45); }
.book-stage.single .face > .bpage { border-radius: 4px 8px 8px 4px; box-shadow: inset 14px 0 24px -16px rgba(70, 40, 10, .5); }
.bpage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .08 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: multiply; opacity: .9; }
.bp-in { position: absolute; inset: 0; padding: 7.5cqw 8cqw 9cqw; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(90, 60, 30, .45) transparent; font-size: clamp(11.5px, 2.75cqw, 16.5px); line-height: 1.5; display: flex; flex-direction: column; }
.bp-in.center { justify-content: center; align-items: center; text-align: center; }
.bp-in.art { padding: 6cqw; justify-content: center; }
.bpage h2, .bpage h3 { color: #3a1408; font-family: var(--black); font-weight: 400; letter-spacing: .01em; line-height: 1; }
.bpage h2 { font-size: 10cqw; margin: 0 0 .25em; }
.bpage h3 { font-size: 7.2cqw; margin: 0 0 .35em; }
.bpage .bk { font: 600 2.3cqw/1.2 'Barlow Condensed', var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--paper-dim); margin: 0 0 1.4cqw; }
.bpage p { margin: 0 0 .8em; }
.bpage ul { margin: 0 0 .8em; padding-left: 1.1em; }
.bpage li { margin-bottom: .3em; }
.bpage .facts-h { font: 400 4.2cqw/1 var(--title); letter-spacing: .06em; color: #6b2312; margin: .8em 0 .35em; }
.bpage .loc { font-weight: 600; }
.bpage .foot { margin-top: auto; padding-top: 1em; font: 600 2.3cqw/1.45 'Barlow Condensed', var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); white-space: pre-line; border-top: 1px solid rgba(106, 79, 54, .3); }
.bpage .pno { position: absolute; bottom: 3.2cqw; left: 0; right: 0; text-align: center; font: 600 2.2cqw 'Barlow Condensed', var(--body); letter-spacing: .14em; color: var(--paper-dim); z-index: 2; pointer-events: none; }
.bpage .orn { width: 38cqw; height: auto; margin: 4cqw auto; opacity: .75; }
.bpage a { color: #7a2a0e; }
.bp-in.art > img:first-of-type, .bp-in.art > noscript + img { max-height: 100cqw; width: auto; max-width: 100%; margin: 0 auto; border-radius: 2.6cqw; box-shadow: 0 2cqw 5cqw rgba(40, 20, 5, .45); }
.bp-in.art > img[data-zoom], .bp-in.art > img[src*='/comics/'], .bp-in.art > img[data-src*='/comics/'], .bp-in.art > img[src*='/season45/'], .bp-in.art > img[data-src*='/season45/'], .bp-in.art > img[src*='table-of-contents'], .bp-in.art > img[data-src*='table-of-contents'] { max-height: 128cqw; border-radius: 0; box-shadow: 0 1.5cqw 4cqw rgba(40, 20, 5, .4); }
.bpage .cardart { width: 74cqw; max-width: 100%; margin: 0 auto; border-radius: 3cqw; box-shadow: 0 2cqw 5cqw rgba(40, 20, 5, .45); }
.bpage .thumbs { display: flex; justify-content: center; gap: 2.4cqw; margin-top: 3.4cqw; flex-wrap: wrap; }
.bpage .thumbs button { border: 0; background: none; padding: 0; cursor: zoom-in; width: 15cqw; color: var(--paper-dim); font: 600 2.1cqw 'Barlow Condensed', var(--body); letter-spacing: .08em; text-transform: uppercase; }
.bpage .thumbs img { border-radius: 1.4cqw; box-shadow: 0 1cqw 2.4cqw rgba(40, 20, 5, .35); margin-bottom: 1cqw; }
.bpage .thumbs .play { display: grid; place-items: center; aspect-ratio: 2 / 3; border-radius: 1.4cqw; background: #2a1408; color: var(--brass); font-size: 5cqw; margin-bottom: 1cqw; box-shadow: 0 1cqw 2.4cqw rgba(40, 20, 5, .35); }
.bpage .fullimg { width: 100%; height: 100%; object-fit: contain; }
.bpage .comic { width: 100%; height: auto; max-height: 100%; object-fit: contain; box-shadow: 0 1.5cqw 4cqw rgba(40, 20, 5, .4); }
.bpage .script p { margin: 0 0 .55em; }
.bpage .script .sp { font-weight: 600; color: #6b2312; }
.bpage .lyric { font-family: var(--black); font-size: 4.4cqw; line-height: 1.25; color: #4a1a0b; margin: 0 0 1em; }
.bpage .vthumb { position: relative; display: block; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 2cqw; overflow: hidden; box-shadow: 0 1.6cqw 4cqw rgba(40, 20, 5, .45); }
.bpage .vthumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bpage .vthumb::after { content: '\25B6'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 14cqw; height: 10cqw; display: grid; place-items: center; background: rgba(255, 30, 60, .9); color: #fff; border-radius: 2.6cqw; font-size: 4.6cqw; }
.bpage .vcap { font: 600 2.6cqw/1.3 'Barlow Condensed', var(--body); letter-spacing: .06em; color: var(--paper-dim); margin: 1.6cqw 0 3cqw; text-align: center; }
.bpage .vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.bpage .vgrid .vcap { margin-bottom: 0; }
.bpage .toc { list-style: none; padding: 0; margin: 0; columns: 1; }
.bpage .toc li { display: flex; gap: 1.6cqw; align-items: baseline; margin: 0 0 1.25cqw; }
.bpage .toc a { color: var(--paper-ink); text-decoration: none; font-weight: 600; }
.bpage .toc a:hover { text-decoration: underline; }
.bpage .toc .dots { flex: 1; border-bottom: 1px dotted rgba(106, 79, 54, .55); transform: translateY(-.3em); }
.bpage .toc .pg { font: 600 2.5cqw 'Barlow Condensed', var(--body); color: var(--paper-dim); }
.bpage.opener .bp-in { background: radial-gradient(70% 60% at 50% 45%, rgba(255, 255, 255, .35), transparent 70%); }
.bpage.opener h2 { font-size: 15cqw; color: #4b1606; }
.bpage.opener .sub { font-family: var(--black); font-size: 7cqw; color: #5d2a12; margin-bottom: .6em; }
/* cover and back cover */
.bpage.cover, .bpage.backcover, .bpage.endpaper { background: var(--leather); color: var(--brass); }
.bpage.cover::after, .bpage.backcover::after { opacity: .5; }
.bpage.cover .bp-in { padding: 0; }
.bpage.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bpage.endpaper { background: radial-gradient(80% 70% at 50% 40%, #4a1320, #24080f); }
.bpage.endpaper::after { opacity: .35; }
.bpage.endpaper .bp-in, .bpage.backcover .bp-in { color: var(--brass); }
.bpage.endpaper h2, .bpage.backcover h2, .bpage.endpaper h3 { color: var(--brass); }
.bpage.endpaper .bk { color: #d9b77a; }
.bpage.endpaper a { color: #ffe3a6; }
.bpage.filler .bp-in { justify-content: center; align-items: center; }
/* scroll mode (no JS, or "Read as a page") */
.book-src { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 22px; }
.book-src > .bpage { aspect-ratio: 1 / 1.42; border-radius: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.book-src > .bpage.filler { display: none; }
.book-src > .bpage.cover { display: none; }
.book-src > .bpage.spread-l { grid-column: auto; }
.lore-mode-book .book-src { display: none; }
.book-hint { text-align: center; color: var(--dim); font-size: 14px; margin-top: 16px; }
@media (max-width: 899px) { .book-hint { margin-top: 88px; } }
.book-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 60; width: 52px; height: 52px; border-radius: 999px; border: 1px solid rgba(242, 220, 160, .5); background: rgba(37, 9, 16, .85); color: var(--brass); font-size: 24px; cursor: pointer; display: grid; place-items: center; }
.book-nav.prev { left: -74px; }
.book-nav.next { right: -74px; }
.book-stage.closed .book-nav.next { right: calc(-74px - var(--pw) * .5); }
.book-stage.closed .book-nav.prev, .book-stage.ended .book-nav.next { visibility: hidden; }
.book-stage.ended .book-nav.prev { left: calc(-74px + var(--pw) * .5); }
.book-nav:disabled { opacity: .3; cursor: default; }
@media (max-width: 1260px) { .book-stage:not(.single) { --pw: min(520px, 42vw); } }
@media (max-width: 899px) { .book-nav { top: auto; bottom: -68px; transform: none; } .book-nav.prev { left: calc(50% - 64px); } .book-nav.next { right: calc(50% - 64px); } .book-stage.closed .book-nav.next { right: calc(50% - 64px); } .book-wrap { padding-bottom: 76px; } }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.bpage .linkish { color: #7a2a0e; }

/* ---------------------------------------------------------------- quiz */
.quiz { max-width: 820px; margin: 0 auto; }
.quiz-card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); border-radius: 20px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.progress { height: 8px; border-radius: 999px; background: #241c45; overflow: hidden; margin: 6px 0 22px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width .35s ease; }
.quiz h2 { font-size: clamp(30px, 4.4vw, 46px); }
.answers { display: grid; gap: 12px; margin-top: 18px; }
.answers button { text-align: left; min-height: 62px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--ink); font: 600 18px/1.3 var(--body); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.answers button:hover, .answers button:focus-visible { border-color: var(--cyan); background: rgba(46, 230, 255, .08); transform: translateX(3px); }
.answers button[aria-pressed="true"] { border-color: var(--cyan); background: rgba(46, 230, 255, .14); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 20px; gap: 12px; flex-wrap: wrap; }
.result { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(22px, 4vw, 48px); align-items: start; }
@media (max-width: 760px) { .result { grid-template-columns: 1fr; } }
.result .art img { border-radius: 16px; box-shadow: 0 26px 60px rgba(46, 230, 255, .18), 0 20px 50px rgba(0, 0, 0, .55); max-width: 400px; margin-inline: auto; width: 100%; }
.result h2 { font-size: clamp(42px, 6vw, 72px); }
.draft-flag { display: inline-block; margin-left: 8px; font: 600 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ember); border: 1px solid rgba(255, 138, 61, .5); border-radius: 4px; padding: 4px 6px; vertical-align: middle; }

/* ---------------------------------------------------------------- blends tree */
.tree { display: grid; gap: 18px; }
.tree-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto minmax(0, 1.25fr); gap: 10px; align-items: center; }
.tree-row .op { font: 400 34px/1 var(--title); color: var(--cyan); text-align: center; }
.tree-row img { border-radius: 8px; }
@media (max-width: 700px) { .tree-row { grid-template-columns: repeat(5, minmax(0, 1fr)); } .tree-row .op { grid-column: 1 / -1; } .tree-row > :last-child { grid-column: 2 / span 3; } }
.flow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.flow .step { text-align: center; width: 150px; }
.flow .step img { border-radius: 10px; margin-bottom: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.flow .arrow { font: 400 36px/1 var(--title); color: var(--brass); }
.zoom-img { cursor: zoom-in; }

/* ---------------------------------------------------------------- market */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.mk-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, border-color .2s; }
.mk-card:hover { transform: translateY(-3px); border-color: var(--cyan); color: var(--ink); }
.mk-card img { aspect-ratio: 2 / 3; object-fit: cover; background: #000; width: 100%; }
.mk-card .b { padding: 10px 12px 12px; display: grid; gap: 4px; }
.mk-card .t { font-weight: 600; font-size: 15px; line-height: 1.3; }
.mk-card .p { font: 400 22px/1 var(--title); color: var(--brass); letter-spacing: .04em; }
.mk-card .m { color: var(--dim); font-size: 13px; }
.mk-state { padding: 26px; border: 1px dashed var(--line2); border-radius: 14px; text-align: center; color: var(--muted); }
.mk-state.err { border-color: rgba(255, 69, 88, .55); color: #ffd5da; }
.skeleton { background: linear-gradient(90deg, #15112a, #221a42, #15112a); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 14px; aspect-ratio: 2 / 3.4; }
@keyframes shimmer { to { background-position: -200% 0; } }
.no-motion .skeleton { animation: none; }

/* ---------------------------------------------------------------- releases timeline */
.timeline { position: relative; display: grid; gap: 22px; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--cyan), var(--violet), var(--ember)); }
.tl-item { position: relative; }
.tl-item::before { content: ''; position: absolute; left: -32px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--cyan); }
.tl-item.next::before { border-color: var(--ember); box-shadow: 0 0 0 6px rgba(255, 138, 61, .18); }
.tl-item h3 { font-size: 40px; margin: 0 0 6px; }
.tl-item ul { margin: 0; padding-left: 1.1em; }
.tl-item li { margin-bottom: .45em; }
.tl-item .done { color: #7ff0a0; font-weight: 600; margin-right: 4px; }

/* ---------------------------------------------------------------- shoes */
model-viewer { width: 100%; height: min(70vh, 560px); background: radial-gradient(70% 70% at 50% 40%, #1c1640, #07060d); border-radius: 18px; border: 1px solid var(--line2); --poster-color: transparent; }
.mv-wrap { position: relative; }
.mv-poster { position: relative; display: grid; place-items: center; border-radius: 18px; border: 1px solid var(--line2); background: radial-gradient(70% 70% at 50% 40%, #1c1640, #07060d); padding: 24px; }
.mv-poster .btn { margin-top: 12px; }

/* ---------------------------------------------------------------- reveal */
.js-reveal .reveal { opacity: 0; transition: opacity .7s ease; }
.js-reveal .reveal.in { opacity: 1; }
.no-motion .reveal { opacity: 1 !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } .js-reveal .reveal { opacity: 1; } }
