/* ==========================================================================
   BELT BEASTS 帯獣 — site design system
   Palette from the Strategy & Brand Initiative: Belt Red, Obi Gold, Night Dojo, Washi.
   Type: Dela Gothic One (display) · Fraunces (flavour) · Inter (UI) · Source Code Pro (set numbers)
   ========================================================================== */

:root {
  --red: #e8262d;
  --red-deep: #9e0f16;
  --gold: #f4b63a;
  --gold-hi: #ffe2a0;
  --gold-lo: #a8741c;
  --night: #0c0a12;
  --night-2: #13101c;
  --night-3: #1b1727;
  --ink: #07060b;
  --washi: #f5eedf;
  --washi-2: #d9d0bd;
  --mute: #9a92a8;
  --line: rgba(245, 238, 223, .12);
  --line-gold: rgba(244, 182, 58, .35);
  --accent: var(--red);

  --f-display: 'Dela Gothic One', 'Hiragino Kaku Gothic StdN', system-ui, sans-serif;
  --f-serif: 'Fraunces', Georgia, serif;
  --f-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --f-mono: 'Source Code Pro', ui-monospace, monospace;
  --f-jp: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--night);
  color: var(--washi);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* film grain + vignette — the "expensive" layer */
.grain {
  position: fixed; inset: -50%; z-index: 9000; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 2%); } 100% { transform: translate(0, 0); }
}

/* ---------- typography ---------- */
.display, h1, h2, h3 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; line-height: .95; margin: 0; }
h1 { font-size: clamp(56px, 11vw, 190px); }
h2 { font-size: clamp(40px, 6.4vw, 104px); }
h3 { font-size: clamp(26px, 3vw, 44px); line-height: 1.02; }
h4 { margin: 0; }
p { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.no-line::before { display: none; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 300; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.55; color: var(--washi-2); max-width: 46ch; }
.mono { font-family: var(--f-mono); letter-spacing: .08em; }
.red { color: var(--red); }
.gold { color: var(--gold); }
.mute { color: var(--mute); }
.gold-text {
  background: linear-gradient(100deg, var(--gold-lo) 0%, var(--gold) 22%, var(--gold-hi) 42%, var(--gold) 58%, var(--gold-lo) 80%, var(--gold) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldsheen 6s linear infinite;
}
@keyframes goldsheen { to { background-position: -220% 0; } }
.outline-text { color: transparent; -webkit-text-stroke: 1.5px rgba(245, 238, 223, .5); }

/* split text */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; will-change: transform; white-space: nowrap; }
.split .c { display: inline-block; will-change: transform, opacity; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
.section { padding: clamp(96px, 14vw, 200px) 0; }
.section--tight { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 84px); }
.section-head.center { text-align: center; justify-items: center; }
.section-head .lede { margin: 0; }
.kanji-bg {
  position: absolute; font-family: var(--f-display); color: rgba(245, 238, 223, .035); pointer-events: none;
  font-size: clamp(220px, 40vw, 640px); line-height: .8; user-select: none; z-index: 0;
}
.hair { height: 1px; background: linear-gradient(90deg, transparent, var(--line-gold), transparent); border: 0; margin: 0; }
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 12px; overflow: hidden; isolation: isolate;
  padding: 17px 28px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s;
  box-shadow: 0 10px 40px -10px rgba(232, 38, 45, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  white-space: nowrap;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(232, 38, 45, .9), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn:hover::after { transform: translateX(120%); }
.btn .arr { transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn--gold { --bg: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); --fg: #1a1205; box-shadow: 0 10px 40px -12px rgba(244, 182, 58, .6), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--ghost { --bg: transparent; --fg: var(--washi); box-shadow: inset 0 0 0 1px rgba(245, 238, 223, .3); backdrop-filter: blur(10px); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }
.btn--sm { padding: 12px 20px; font-size: 11px; }
.link-u { justify-self: start; position: relative; display: inline-flex; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.link-u::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform-origin: right; transform: scaleX(.3); transition: transform .6s var(--ease); }
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hanko seal ---------- */
.seal {
  --s: 64px; width: var(--s); height: var(--s); display: inline-grid; place-items: center;
  background: var(--red); color: #fff; border-radius: 10px;
  font-family: var(--f-display); font-size: calc(var(--s) * .36); line-height: 1; writing-mode: vertical-rl; letter-spacing: .05em;
  box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 5px rgba(255, 255, 255, .85);
  filter: url(#rough);
  transform: rotate(-4deg);
}

/* ---------- logo ---------- */
.claw {
  display: inline-block; aspect-ratio: 1; background: var(--red);
  -webkit-mask: url(../img/brand/E7_transparent.svg) center/contain no-repeat;
  mask: url(../img/brand/E7_transparent.svg) center/contain no-repeat;
}
.wordmark { display: inline-flex; flex-direction: column; line-height: .92; font-family: var(--f-display); font-size: 17px; letter-spacing: .01em; }
.wordmark b { display: block; font-weight: 400; color: var(--red); }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; pointer-events: all;
  background: var(--ink);
}
.loader__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); }
.loader__panel--t { top: 0; } .loader__panel--b { bottom: 0; }
.loader__core { position: relative; z-index: 2; display: grid; justify-items: center; gap: 26px; text-align: center; }
.loader__claw { width: 120px; height: 120px; filter: drop-shadow(0 0 40px rgba(232, 38, 45, .6)); }
.loader__bow { font-family: var(--f-serif); font-style: italic; font-size: 22px; color: var(--washi-2); }
.loader__bow span { font-family: var(--f-display); font-style: normal; color: var(--red); margin-right: 10px; }
.loader__count { font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; color: var(--mute); }
.loader__bar { width: 180px; height: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; border-radius: 2px; }
.loader__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); }
.loader.is-done { pointer-events: none; }

/* page transition */
.pt { position: fixed; inset: 0; z-index: 9500; pointer-events: none; display: grid; place-items: center; }
.pt__bg { position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; }
.pt__claw { position: relative; width: 90px; height: 90px; opacity: 0; transform: scale(.6) rotate(-20deg); }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 9800; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: #fff; }
.cursor__ring { width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .7); transition: width .4s var(--ease), height .4s var(--ease), background .3s; }
.cursor.is-hover .cursor__ring { width: 74px; height: 74px; background: rgba(255, 255, 255, .12); }
.cursor__label { position: absolute; transform: translate(-50%, -50%); font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: #fff; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.has-label .cursor__ring { width: 92px; height: 92px; background: rgba(255, 255, 255, .1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ==========================================================================
   HEADER + MEGA MENU
   ========================================================================== */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 8000; height: var(--nav-h); transition: transform .6s var(--ease); }
.hdr__bar {
  position: relative; z-index: 3; height: 100%; display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter); transition: background .5s, backdrop-filter .5s, box-shadow .5s;
}
.hdr.is-scrolled .hdr__bar, .hdr.is-open .hdr__bar { background: rgba(10, 8, 15, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand .claw { width: 38px; transition: transform .8s var(--ease); }
.brand:hover .claw { transform: rotate(-90deg) scale(1.08); }
.nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em; color: var(--washi-2); transition: color .3s, background .3s;
}
.nav__link .jp { font-family: var(--f-display); font-size: 14px; line-height: 1; color: var(--red); }
.nav__link:hover, .nav__item.is-active .nav__link, .nav__link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__link .chev { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .4s var(--ease); opacity: .6; }
.nav__item.is-active .chev { transform: rotate(225deg) translateY(-1px); }
.hdr__tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, background .3s; }
.icon-btn:hover { box-shadow: inset 0 0 0 1px var(--gold); background: rgba(244, 182, 58, .06); }
.sound-bars { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.sound-bars i { width: 2px; height: 30%; background: var(--washi); border-radius: 1px; }
.is-playing .sound-bars i { animation: bar 1s ease-in-out infinite; background: var(--gold); }
.sound-bars i:nth-child(2) { animation-delay: -.3s; } .sound-bars i:nth-child(3) { animation-delay: -.6s; } .sound-bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes bar { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.partner-badge { display: none; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-gold); font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.partner-badge.on { display: inline-flex; }
.partner-badge img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.burger i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--washi); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger i:nth-child(1) { top: 19px; } .burger i:nth-child(2) { top: 26px; }
.hdr.is-mobile-open .burger i:nth-child(1) { top: 22px; transform: rotate(45deg); }
.hdr.is-mobile-open .burger i:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* mega panel */
.mega {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding-top: var(--nav-h);
  background: rgba(10, 8, 15, .94); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8);
  border-bottom: 1px solid var(--line);
}
.hdr.is-open .mega { clip-path: inset(0 0 0 0); }
.mega__scrim { position: fixed; inset: 0; z-index: 1; background: rgba(5, 4, 8, .55); opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.hdr.is-open .mega__scrim { opacity: 1; pointer-events: auto; }
.mega__panel { display: none; max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 44px; }
.mega__panel.is-on { display: grid; }
.mega__panel { grid-template-columns: 1.1fr 1.1fr 1.6fr; gap: 40px; }
.mega__col h5 { margin: 0 0 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.mega__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mega__links a { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; padding: 12px; margin: 0 -12px; border-radius: 12px; transition: background .3s; }
.mega__links a:hover { background: rgba(255, 255, 255, .05); }
.mega__links .k { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-family: var(--f-display); font-size: 16px; color: var(--gold); box-shadow: inset 0 0 0 1px var(--line-gold); transition: background .3s, color .3s; }
.mega__links a:hover .k { background: var(--red); color: #fff; box-shadow: none; }
.mega__links strong { display: block; font-weight: 600; font-size: 15px; color: #fff; }
.mega__links small { display: block; color: var(--mute); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.mega__feature { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; isolation: isolate; }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.mega__feature::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(8, 6, 12, .7) 55%, rgba(8, 6, 12, .96) 90%); }
.mega__feature img { object-position: center 25%; }
.mega__feature:hover img { transform: scale(1.14); }
.mega__feature .in { padding: 26px; display: grid; gap: 8px; }
.mega__feature .in h4 { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1; }
.mega__feature .in p { margin: 0; color: var(--washi-2); font-size: 14px; max-width: 40ch; }
.mega__els { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.mega__els a { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-display); font-size: 18px; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); transition: transform .4s var(--ease), background .3s; }
.mega__els a:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--c) 30%, transparent); }
.mega__mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.mega__mini a { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; position: relative; }
.mega__mini a img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mega__mini a:hover img { transform: scale(1.1); }
.mega__mini a span { position: absolute; left: 8px; bottom: 6px; font-family: var(--f-display); font-size: 13px; text-shadow: 0 2px 10px #000; }
.mega__panel > * { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.hdr.is-open .mega__panel.is-on > * { opacity: 1; transform: none; }
.hdr.is-open .mega__panel.is-on > *:nth-child(2) { transition-delay: .06s; }
.hdr.is-open .mega__panel.is-on > *:nth-child(3) { transition-delay: .12s; }

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: 7900; background: var(--ink); padding: calc(var(--nav-h) + 20px) var(--gutter) 40px; overflow-y: auto; clip-path: circle(0% at calc(100% - 40px) 38px); transition: clip-path .9s var(--ease); display: flex; flex-direction: column; }
.hdr.is-mobile-open ~ .mnav, .mnav.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); }
.mnav__item { border-bottom: 1px solid var(--line); }
.mnav__item > a { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0; font-family: var(--f-display); font-size: clamp(30px, 8vw, 46px); line-height: 1; }
.mnav__item > a span { font-size: 14px; color: var(--red); }
.mnav__sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 18px; }
.mnav__sub a { font-size: 13px; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--washi-2); }
.mnav__foot { margin-top: auto; padding-top: 30px; display: grid; gap: 14px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: -6%; z-index: -3; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media .alt { opacity: 0; }
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(ellipse 80% 60% at 50% 40%, transparent 30%, rgba(8, 6, 12, .55) 100%),
  linear-gradient(180deg, rgba(8, 6, 12, .55) 0%, transparent 22%, transparent 50%, rgba(12, 10, 18, .85) 82%, var(--night) 100%); }
.hero__inner { width: 100%; padding: 0 var(--gutter) clamp(90px, 12vh, 140px); max-width: var(--max); margin: 0 auto; display: grid; gap: 26px; }
.hero__title { font-size: clamp(48px, 16vw, 300px); line-height: .8; letter-spacing: -.035em; text-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.hero__title .l1 { color: var(--red); display: block; }
.hero__title .l2 { display: block; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.hero__tag { font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.2; max-width: 22ch; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__seal { position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 6vh); --s: clamp(70px, 8vw, 116px); }
.hero__meta { position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 6vh); display: grid; gap: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .26em; color: var(--washi-2); text-transform: uppercase; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: var(--mute); }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; width: 1px; height: 14px; background: #fff; animation: cue 2s var(--ease) infinite; }
@keyframes cue { from { top: -14px; } to { top: 46px; } }

/* page hero (sub pages) */
.phero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding-top: var(--nav-h); }
.phero__bg { position: absolute; inset: -8% 0; z-index: -2; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.phero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 6, 12, .6) 0%, rgba(8, 6, 12, .1) 35%, rgba(12, 10, 18, .8) 78%, var(--night) 100%); }
.phero__inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(60px, 9vh, 110px); display: grid; gap: 22px; }
.phero h1 { font-size: clamp(64px, 12.5vw, 220px); line-height: .82; letter-spacing: -.03em; }
.phero .kanji { position: absolute; right: var(--gutter); bottom: clamp(60px, 9vh, 110px); font-family: var(--f-display); font-size: clamp(80px, 14vw, 240px); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(244, 182, 58, .45); writing-mode: vertical-rl; }
.crumbs { font-family: var(--f-mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); display: flex; gap: 10px; }
.crumbs a:hover { color: var(--gold); }

/* marquee */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: var(--night); }
.marquee__track { display: flex; width: max-content; gap: 0; animation: mq 38s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee__item { display: flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--f-display); font-size: clamp(22px, 3vw, 40px); white-space: nowrap; }
.marquee__item .star { color: var(--red); font-size: .7em; }
.marquee__item .o { color: transparent; -webkit-text-stroke: 1px rgba(245, 238, 223, .45); }
@keyframes mq { to { transform: translateX(-50%); } }
.marquee--red { background: var(--red); border: 0; transform: rotate(-2deg) scale(1.04); margin: -10px 0; z-index: 3; }
.marquee--red .marquee__item { color: #fff; }
.marquee--red .marquee__item .star { color: var(--ink); }

/* ==========================================================================
   HOLO CARD
   ========================================================================== */
.bb-card {
  --el: #9b6bff; --belt: #fff; --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; --o: 0;
  position: relative; aspect-ratio: 63 / 88; width: 100%; container-type: inline-size;
  border-radius: 5.2% / 3.7%; transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4);
  will-change: transform; user-select: none;
}
.bb-card.is-tilting { transition: transform .08s linear, box-shadow .4s; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 60px -10px color-mix(in srgb, var(--el) 55%, transparent); }
.bb-card__frame {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; padding: 3.2cqw;
  background: linear-gradient(135deg, #fff1c4 0%, #e9b64c 18%, #a8741c 36%, #ffe08a 52%, #c58e2b 70%, #fff0bd 86%, #b7801f 100%);
}
.bb-card__inner {
  position: relative; height: 100%; border-radius: 2.4cqw; overflow: hidden; display: flex; flex-direction: column;
  padding: 3.2cqw 3.6cqw 2.6cqw;
  background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--el) 70%, #fff 10%) 0%, transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--el) 85%, #000 15%) 0%, color-mix(in srgb, var(--el) 55%, #0b0814) 60%, color-mix(in srgb, var(--el) 35%, #07050c) 100%);
  color: #fff;
}
.bb-card__belt { position: absolute; left: 0; right: 0; top: 0; height: 1.6cqw; background: var(--belt); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.bb-card__top { display: flex; justify-content: space-between; align-items: center; margin-top: 1.4cqw; font-family: var(--f-mono); font-size: 3.1cqw; letter-spacing: .12em; text-transform: uppercase; opacity: .92; }
.bb-card__top .st { background: rgba(0, 0, 0, .35); padding: .6cqw 2cqw; border-radius: 99px; }
.bb-card__name { display: flex; align-items: center; gap: 2cqw; margin: 1.6cqw 0 2cqw; }
.bb-card__name h4 { font-family: var(--f-display); font-weight: 400; font-size: 9.4cqw; line-height: 1; flex: 1; letter-spacing: -.01em; text-shadow: 0 .5cqw 0 rgba(0, 0, 0, .25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-card__hp { font-family: var(--f-display); font-size: 7.6cqw; line-height: 1; color: #fff; }
.bb-card__hp small { font-family: var(--f-mono); font-size: 2.8cqw; margin-right: 1cqw; letter-spacing: .1em; opacity: .85; }
.bb-card__seal { width: 9.5cqw; height: 9.5cqw; border-radius: 50%; display: grid; place-items: center; background: #fff; color: color-mix(in srgb, var(--el) 80%, #000); font-family: var(--f-display); font-size: 5.4cqw; box-shadow: 0 0 0 .8cqw rgba(0, 0, 0, .18), 0 .6cqw 1.4cqw rgba(0, 0, 0, .4); }
.bb-card__art { position: relative; aspect-ratio: 4 / 3; border-radius: 1.6cqw; overflow: hidden; box-shadow: 0 0 0 1cqw #f6d77f, 0 0 0 1.4cqw #8a5d14, 0 1.6cqw 3cqw rgba(0, 0, 0, .45); margin: 0 1cqw; }
.bb-card__art img { width: 100%; height: 100%; object-fit: cover; }
.bb-card__species { margin: 3.2cqw auto 1.6cqw; font-family: var(--f-serif); font-style: italic; font-size: 3.3cqw; padding: .6cqw 3cqw; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .35), transparent); text-align: center; }
.bb-card__techs { display: grid; gap: 1.8cqw; flex: 1; align-content: start; }
.bb-tech { display: grid; grid-template-columns: auto 1fr auto; gap: 0 2cqw; align-items: center; }
.bb-tech .pips { display: flex; gap: .8cqw; }
.bb-tech .pips i { width: 3.6cqw; height: 3.6cqw; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, color-mix(in srgb, var(--el) 60%, #fff) 40%, color-mix(in srgb, var(--el) 80%, #000)); box-shadow: 0 0 0 .4cqw rgba(0, 0, 0, .3); }
.bb-tech .tn { font-weight: 700; font-size: 4.2cqw; line-height: 1.1; display: flex; align-items: center; gap: 1.6cqw; flex-wrap: wrap; }
.bb-tech .tag { font-family: var(--f-mono); font-size: 2.4cqw; font-weight: 700; letter-spacing: .1em; padding: .3cqw 1.4cqw; border-radius: 99px; background: #fff; color: #111; }
.bb-tech .tag.GERI { background: var(--gold); } .bb-tech .tag.UKE { background: #9fe3ff; }
.bb-tech .dmg { font-family: var(--f-display); font-size: 6cqw; line-height: 1; }
.bb-tech .fx { grid-column: 2 / 4; font-size: 3cqw; line-height: 1.3; opacity: .85; margin-top: .6cqw; }
.bb-card__meta { display: flex; justify-content: space-between; gap: 2cqw; font-size: 2.8cqw; font-family: var(--f-mono); letter-spacing: .04em; padding: 1.6cqw 0; border-top: 1px solid rgba(255, 255, 255, .2); border-bottom: 1px solid rgba(255, 255, 255, .2); margin-top: 1.6cqw; text-transform: uppercase; }
.bb-card__meta b { font-family: var(--f-display); font-weight: 400; font-size: 3.4cqw; letter-spacing: .1em; }
.bb-card__flavor { margin: 1.8cqw 0 1.4cqw; font-family: var(--f-serif); font-style: italic; font-size: 3.1cqw; line-height: 1.35; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bb-card__foot { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 2.3cqw; letter-spacing: .12em; opacity: .75; }
.bb-card__shine, .bb-card__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.bb-card__shine {
  opacity: calc(var(--o) * .9); mix-blend-mode: color-dodge;
  background:
    repeating-linear-gradient(115deg, rgba(255, 0, 132, .5) 0%, rgba(255, 215, 0, .5) 7%, rgba(0, 255, 160, .5) 14%, rgba(0, 170, 255, .5) 21%, rgba(170, 0, 255, .5) 28%, rgba(255, 0, 132, .5) 35%),
    repeating-linear-gradient(45deg, rgba(14, 21, 46, .5) 0px, rgba(143, 163, 163, .4) 3px, rgba(14, 21, 46, .5) 6px);
  background-size: 400% 400%, 300% 300%;
  background-position: calc(var(--mx) * 1.6) calc(var(--my) * 1.6), var(--mx) var(--my);
  filter: brightness(.8) contrast(1.4) saturate(1.2);
  -webkit-mask: radial-gradient(farthest-corner circle at var(--mx) var(--my), #000 10%, rgba(0, 0, 0, .5) 40%, transparent 90%);
  mask: radial-gradient(farthest-corner circle at var(--mx) var(--my), #000 10%, rgba(0, 0, 0, .5) 40%, transparent 90%);
}
.bb-card__glare { opacity: var(--o); mix-blend-mode: overlay; background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .25) 25%, rgba(0, 0, 0, .35) 90%); }
.bb-card.is-holo .bb-card__shine { opacity: calc(.25 + var(--o) * .75); }
.bb-card--legend { --el: #f4b63a; }
.bb-card--legend .bb-card__inner { background: radial-gradient(120% 70% at 50% 0%, #fff3c9 0%, transparent 60%), linear-gradient(180deg, #d9982a, #7a4b0c 70%, #2a1704); }
.bb-card--earned .bb-card__frame { background: linear-gradient(135deg, #3a3a40, #0b0b0f 30%, #5b5b66 50%, #0b0b0f 70%, #2c2c33); }
.bb-card--earned .bb-card__art { box-shadow: 0 0 0 1cqw var(--red), 0 0 0 1.4cqw #3d0507, 0 1.6cqw 3cqw rgba(0, 0, 0, .45); }
.bb-card__sign { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; margin-top: 2cqw; font-family: var(--f-mono); font-size: 2.4cqw; letter-spacing: .14em; }
.bb-card__sign div { display: grid; gap: .8cqw; }
.bb-card__sign b { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 4.6cqw; letter-spacing: 0; text-transform: none; color: #fff; min-height: 6cqw; padding-bottom: .6cqw; border-bottom: 1px solid rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-cardback { position: relative; aspect-ratio: 63/88; border-radius: 5.2% / 3.7%; container-type: inline-size; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8); background: #111 url(../img/cards/back.webp) center/cover; }

/* flip */
.flip { perspective: 1400px; }
.flip__in { position: relative; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.flip.is-flipped .flip__in { transform: rotateY(180deg); }
.flip__face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip__face--back { position: absolute; inset: 0; transform: rotateY(180deg); }

/* element chip */
.el-chip { --c: #fff; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 12px; font-family: var(--f-mono); letter-spacing: .14em; text-transform: uppercase; background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); color: var(--washi); }
.el-chip b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #0c0a12; font-family: var(--f-display); font-weight: 400; font-size: 12px; letter-spacing: 0; }

/* belt strip */
.beltbar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; }
.beltbar i { flex: 1; }

/* reveal defaults (JS adds .in) */
[data-reveal] { opacity: 0; transform: translateY(40px); }
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1; transform: none; }

/* ==========================================================================
   HOME SECTIONS
   ========================================================================== */
.manifesto { padding: clamp(120px, 18vw, 260px) 0; }
.manifesto__text { font-family: var(--f-display); font-size: clamp(34px, 5.4vw, 88px); line-height: 1.04; letter-spacing: -.015em; max-width: 18ch; }
.manifesto__text .word { opacity: .14; transition: opacity .2s; }
.manifesto__text em { font-family: var(--f-serif); font-style: italic; font-weight: 300; color: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(70px, 10vw, 140px); border-top: 1px solid var(--line); }
.stat { padding: 34px 26px 10px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 26px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(48px, 6vw, 96px); line-height: 1; color: #fff; }
.stat span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }

/* partner pick */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 44px); align-items: end; }
.partner { display: grid; gap: 22px; justify-items: center; text-align: center; }
.partner .flip { width: 100%; max-width: 340px; cursor: pointer; }
.partner__team { font-family: var(--f-mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--c); }
.partner__blurb { color: var(--washi-2); max-width: 30ch; font-size: 15px; margin: 0; }
.partner.is-chosen .bb-card { box-shadow: 0 0 0 3px var(--gold), 0 0 80px -10px var(--gold), 0 40px 80px -30px #000; }
.partner .pick { opacity: .85; }
.partner.is-chosen .pick { --bg: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); --fg: #1a1205; }

/* evolution pinned */
.evo { position: relative; height: 250vh; }
.evo__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw; padding: var(--nav-h) var(--gutter) 40px; max-width: var(--max); margin: 0 auto; }
.evo__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 70% 50%, color-mix(in srgb, var(--evo, #9b6bff) 35%, transparent), transparent 70%); transition: background 1s; }
.evo__copy { display: grid; gap: 26px; }
.evo__name { font-family: var(--f-display); font-size: clamp(60px, 9vw, 150px); line-height: .85; height: 1em; position: relative; }
.evo__name span { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(40%); }
.evo__name span.on { opacity: 1; transform: none; transition: opacity .6s, transform .8s var(--ease); }
.evo__belt { display: grid; gap: 12px; max-width: 460px; }
.evo__belt .beltbar { height: 10px; position: relative; }
.evo__belt .beltbar i { opacity: .25; transition: opacity .4s; }
.evo__belt .beltbar i.lit { opacity: 1; }
.evo__steps { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--mute); text-transform: uppercase; }
.evo__steps span.on { color: var(--gold); }
.evo__stage { position: relative; aspect-ratio: 4/3; width: 100%; }
.evo__stage figure { position: absolute; inset: 0; margin: 0; border-radius: 28px; overflow: hidden; opacity: 0; transform: scale(.9); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px var(--line-gold); }
.evo__stage figure img { width: 100%; height: 100%; object-fit: cover; }
.evo__stage figure figcaption { position: absolute; left: 18px; bottom: 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; background: rgba(0, 0, 0, .55); padding: 6px 12px; border-radius: 99px; backdrop-filter: blur(6px); }
.evo__quote { font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: clamp(20px, 1.8vw, 26px); color: var(--washi-2); max-width: 30ch; min-height: 3.2em; }

/* card fan */
.fan { position: relative; height: clamp(420px, 46vw, 640px); display: grid; place-items: center; }
.fan .bb-card { position: absolute; width: clamp(200px, 21vw, 320px); }

/* stance triangle */
.stance-tri { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin: 0 auto; }
.stance-tri svg { width: 100%; height: 100%; overflow: visible; }
.stance-node { position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 30%, #2a2437, #110e18); box-shadow: inset 0 0 0 1px var(--line-gold), 0 30px 60px -20px #000; transition: transform .5s var(--ease), box-shadow .4s; }
.stance-node:hover { transform: translate(-50%, -50%) scale(1.06); box-shadow: inset 0 0 0 2px var(--gold), 0 30px 80px -20px rgba(244, 182, 58, .4); }
.stance-node b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 4vw, 54px); line-height: 1; color: var(--red); }
.stance-node strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(14px, 1.4vw, 20px); letter-spacing: .06em; }
.stance-node small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--mute); text-transform: uppercase; }

/* earned card section */
.earned { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.earned__card { max-width: 400px; width: 100%; justify-self: center; }
.earned__form { display: grid; gap: 14px; max-width: 460px; margin-top: 30px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.field input, .field select { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: #fff; font-size: 16px; transition: border-color .3s, background .3s; width: 100%; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--night-2); }
.field input:focus, .field select:focus { outline: 0; border-color: var(--gold); background: rgba(244, 182, 58, .05); }
.belt-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.belt-pick button { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transition: transform .3s var(--ease), box-shadow .3s; }
.belt-pick button.on { transform: scale(1.15); box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--gold); }

/* realm strip (horizontal pinned) */
.hscroll { position: relative; overflow: hidden; }
.hscroll__track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gutter); width: max-content; }
.realm-card { position: relative; width: clamp(280px, 34vw, 520px); aspect-ratio: 4/5; border-radius: 24px; overflow: hidden; flex-shrink: 0; isolation: isolate; display: flex; align-items: flex-end; }
.realm-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.realm-card:hover img { transform: scale(1.02); }
.realm-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 6, 12, .1) 30%, rgba(8, 6, 12, .92)); }
.realm-card .in { padding: 28px; display: grid; gap: 10px; width: 100%; }
.realm-card .belt-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.realm-card .belt-tag i { width: 26px; height: 7px; border-radius: 4px; background: var(--b); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.realm-card h3 { font-size: clamp(30px, 3vw, 44px); }
.realm-card p { margin: 0; color: var(--washi-2); font-size: 15px; }
.realm-card .jp { position: absolute; top: 22px; right: 24px; font-family: var(--f-display); font-size: 28px; writing-mode: vertical-rl; color: rgba(255, 255, 255, .85); text-shadow: 0 2px 20px #000; }

/* legend section */
.legend { position: relative; overflow: hidden; padding: clamp(120px, 16vw, 240px) 0; isolation: isolate; }
.legend__bg { position: absolute; inset: 0; z-index: -2; }
.legend__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); }
.legend::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 30% 50%, rgba(12, 10, 18, .2), rgba(12, 10, 18, .92) 75%), linear-gradient(180deg, var(--night), transparent 20%, transparent 80%, var(--night)); }
.legend__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.legend__card { max-width: 400px; justify-self: center; width: 100%; }
.rays { position: absolute; left: 50%; top: 50%; width: 180%; aspect-ratio: 1; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgba(244, 182, 58, .14) 0deg 4deg, transparent 4deg 14deg); -webkit-mask: radial-gradient(circle, #000 0%, transparent 60%); mask: radial-gradient(circle, #000 0%, transparent 60%); animation: spin 90s linear infinite; z-index: -1; pointer-events: none; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* feature split */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.split2--rev > :first-child { order: 2; }
.media-frame { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .9), 0 0 0 1px var(--line); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame .tag { position: absolute; left: 18px; top: 18px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; padding: 7px 12px; border-radius: 99px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); }
.ticks { list-style: none; margin: 26px 0 34px; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; color: var(--washi-2); }
.ticks li b { color: #fff; font-weight: 600; }
.ticks .k { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-family: var(--f-display); font-size: 15px; color: var(--red); box-shadow: inset 0 0 0 1px var(--line-gold); }

/* phone mock */
.phone { position: relative; width: min(340px, 80vw); aspect-ratio: 9/19.5; border-radius: 48px; padding: 12px; background: linear-gradient(145deg, #2c2833, #0e0c12); box-shadow: 0 0 0 1px #3a3542, 0 60px 120px -40px #000, inset 0 0 0 2px #1a1720; margin: 0 auto; }
.phone__screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #000; }
.phone__notch { position: absolute; top: 10px; left: 50%; width: 32%; height: 26px; border-radius: 20px; background: #000; transform: translateX(-50%); z-index: 5; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.tile { position: relative; border-radius: 22px; overflow: hidden; min-height: 280px; isolation: isolate; display: flex; align-items: flex-end; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(8, 6, 12, .9)); }
.tile .in { padding: 26px; display: grid; gap: 8px; }
.tile h4 { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1.05; }
.tile p { margin: 0; color: var(--washi-2); font-size: 14px; max-width: 44ch; }
.tile--text { background: linear-gradient(160deg, var(--night-3), var(--night-2)); }
.tile--text::before { display: none; }
.s-12 { grid-column: span 12; } .s-8 { grid-column: span 8; } .s-7 { grid-column: span 7; } .s-6 { grid-column: span 6; } .s-5 { grid-column: span 5; } .s-4 { grid-column: span 4; } .s-3 { grid-column: span 3; }

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(120px, 16vw, 230px) 0; isolation: isolate; }
.cta__claw { position: absolute; left: 50%; top: 50%; width: min(80vw, 820px); transform: translate(-50%, -50%); opacity: .08; z-index: -1; }
.cta h2 { font-size: clamp(54px, 9vw, 160px); line-height: .86; }
.cta form { display: flex; gap: 10px; max-width: 520px; margin: 40px auto 0; padding: 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 255, 255, .03); }
.cta form input { flex: 1; min-width: 0; background: none; border: 0; padding: 0 20px; color: #fff; font-size: 16px; }
.cta form input:focus { outline: 0; }
.cta .note { margin-top: 16px; font-size: 13px; color: var(--mute); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ftr { position: relative; border-top: 1px solid var(--line); padding: 90px 0 30px; background: linear-gradient(180deg, var(--night), var(--ink)); overflow: hidden; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.ftr h6 { margin: 0 0 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr ul a { color: var(--washi-2); font-size: 15px; transition: color .3s; }
.ftr ul a:hover { color: var(--gold); }
.ftr__brand p { color: var(--mute); font-size: 14px; max-width: 34ch; margin-top: 20px; }
.ftr__giant { font-family: var(--f-display); font-size: clamp(54px, 12.4vw, 220px); line-height: .8; letter-spacing: -.04em; margin: 80px 0 30px; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(245, 238, 223, .14); text-align: center; }
.ftr__giant b { font-weight: 400; -webkit-text-stroke: 1px rgba(232, 38, 45, .5); }
.ftr__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); font-family: var(--f-mono); letter-spacing: .06em; }

/* ==========================================================================
   BESTIARY
   ========================================================================== */
.filters { position: sticky; top: var(--nav-h); z-index: 50; padding: 16px 0; background: linear-gradient(180deg, rgba(12, 10, 18, .96) 70%, rgba(12, 10, 18, 0)); backdrop-filter: blur(6px); }
.filters__row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fchip { --c: var(--washi); padding: 9px 14px; border-radius: 999px; font-size: 13px; color: var(--washi-2); box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; align-items: center; gap: 8px; transition: all .3s var(--ease); }
.fchip b { font-family: var(--f-display); font-weight: 400; color: var(--c); }
.fchip:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); color: #fff; }
.fchip.on { background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 1px var(--c); color: #fff; }
.search { position: relative; margin-left: auto; }
.search input { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px 10px 38px; width: 220px; color: #fff; font-size: 14px; }
.search input:focus { outline: 0; border-color: var(--gold); }
.search::before { content: ''; position: absolute; left: 15px; top: 50%; width: 11px; height: 11px; border: 1.5px solid var(--mute); border-radius: 50%; transform: translateY(-60%); }
.search::after { content: ''; position: absolute; left: 25px; top: 58%; width: 6px; height: 1.5px; background: var(--mute); transform: rotate(45deg); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { padding: 7px 14px; border-radius: 999px; font-size: 12px; font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); transition: all .3s; }
.seg button.on { background: var(--washi); color: var(--night); }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.bcell { position: relative; border-radius: 22px; overflow: hidden; background: var(--night-2); cursor: pointer; isolation: isolate; box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .5s; }
.bcell:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 70%, transparent), 0 30px 70px -30px color-mix(in srgb, var(--c) 60%, transparent); }
.bcell__art { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.bcell__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s, transform 1.2s var(--ease); }
.bcell__art img + img { opacity: 0; }
.bcell:hover .bcell__art img { transform: scale(1.06); }
.bcell__art .n { position: absolute; top: 12px; left: 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; padding: 5px 9px; border-radius: 99px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); z-index: 2; }
.bcell__art .el { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #0c0a12; font-family: var(--f-display); font-size: 15px; z-index: 2; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.bcell__body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.bcell__body h4 { font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1; }
.bcell__evo { display: flex; gap: 6px; align-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--mute); flex-wrap: wrap; }
.bcell__evo i { font-style: normal; color: var(--c); }
.bcell__style { font-size: 13px; color: var(--washi-2); }
.bcell__stages { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 5px; z-index: 2; }
.bcell__stages i { width: 18px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.bcell__stages i.on { background: #fff; }
.empty { text-align: center; padding: 80px 0; color: var(--mute); }

/* modal / codex */
.modal { position: fixed; inset: 0; z-index: 8500; display: none; }
.modal.is-open { display: block; }
.modal__scrim { position: absolute; inset: 0; background: rgba(5, 4, 8, .82); backdrop-filter: blur(12px); opacity: 0; transition: opacity .5s; }
.modal.is-shown .modal__scrim { opacity: 1; }
.modal__box { position: absolute; inset: clamp(0px, 3vw, 40px); border-radius: clamp(0px, 2vw, 28px); background: var(--night-2); overflow: hidden; display: grid; grid-template-columns: minmax(300px, 0.9fr) 1.1fr; box-shadow: 0 0 0 1px var(--line), 0 80px 160px -40px #000; transform: translateY(40px) scale(.98); opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
.modal.is-shown .modal__box { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 18px; right: 18px; z-index: 5; width: 48px; height: 48px; border-radius: 50%; background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line); }
.modal__close::before, .modal__close::after { content: ''; position: absolute; left: 15px; right: 15px; top: 23px; height: 1.5px; background: #fff; transform: rotate(45deg); }
.modal__close::after { transform: rotate(-45deg); }
.modal__left { position: relative; display: grid; place-items: center; padding: clamp(30px, 4vw, 60px); background: radial-gradient(70% 60% at 50% 45%, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%), var(--ink); overflow: hidden; }
.modal__left .bb-card { width: min(380px, 100%); }
.modal__left .kan { position: absolute; font-family: var(--f-display); font-size: 46vh; color: color-mix(in srgb, var(--c) 10%, transparent); line-height: 1; pointer-events: none; }
.modal__right { overflow-y: auto; padding: clamp(30px, 4vw, 64px); display: grid; grid-auto-rows: max-content; gap: 28px; align-content: start; overscroll-behavior: contain; }
.modal__right h2 { font-size: clamp(48px, 6vw, 96px); }
.stage-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stage-tabs button { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; box-shadow: inset 0 0 0 1px var(--line); opacity: .55; transition: opacity .3s, box-shadow .3s; }
.stage-tabs button img { width: 100%; height: 100%; object-fit: cover; }
.stage-tabs button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-family: var(--f-display); font-size: 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); text-align: left; }
.stage-tabs button.on { opacity: 1; box-shadow: 0 0 0 2px var(--c); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; }
.kv div { background: var(--night-2); padding: 16px 18px; }
.kv small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.kv b { font-weight: 600; }
.trait { padding: 20px 22px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, transparent), transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); }
.trait small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--c); }
.trait p { margin: 6px 0 0; }
.tlist { display: grid; gap: 10px; }
.tlist div { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tlist b { font-weight: 600; }
.tlist .d { font-family: var(--f-display); font-size: 22px; }
.tlist small { grid-column: 1 / -1; color: var(--washi-2); }

/* ==========================================================================
   WORLD
   ========================================================================== */
.map { position: relative; max-width: 1180px; margin: 0 auto; border-radius: 28px; overflow: hidden; box-shadow: 0 60px 120px -40px #000, 0 0 0 1px var(--line-gold); }
.map img { width: 100%; }
.pin { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.pin button { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px rgba(0, 0, 0, .35), 0 0 0 7px color-mix(in srgb, var(--c) 40%, transparent); transition: transform .4s var(--ease); }
.pin button::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--c); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.pin span { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); white-space: nowrap; font-family: var(--f-display); font-size: 13px; padding: 6px 10px; border-radius: 8px; background: rgba(8, 6, 12, .82); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; opacity: 0; transition: opacity .3s, transform .4s var(--ease); }
.pin:hover span, .pin.on span { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.pin:hover button, .pin.on button { transform: scale(1.3); }
.realm-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; max-width: 1180px; margin-left: auto; margin-right: auto; border-radius: 28px; overflow: hidden; background: var(--night-2); box-shadow: 0 0 0 1px var(--line); margin-top: 26px; min-height: 460px; }
.realm-panel__img { position: relative; min-height: 340px; }
.realm-panel__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.realm-panel__body { padding: clamp(26px, 3.4vw, 50px); display: grid; gap: 18px; align-content: start; }
.realm-panel__body h3 { font-size: clamp(34px, 3.6vw, 56px); }
.wildrow { display: flex; gap: 8px; flex-wrap: wrap; }
.wildrow a { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--f-display); font-size: 13px; transition: box-shadow .3s; }
.wildrow a:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.wildrow img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.areas { list-style: none; padding: 0; margin: 0; counter-reset: a; display: grid; gap: 8px; }
.areas li { counter-increment: a; display: flex; gap: 12px; color: var(--washi-2); font-size: 15px; }
.areas li::before { content: counter(a, decimal-leading-zero); font-family: var(--f-mono); font-size: 11px; color: var(--gold); padding-top: 4px; }
.secret { padding: 16px 18px; border-radius: 14px; background: rgba(244, 182, 58, .07); box-shadow: inset 0 0 0 1px var(--line-gold); font-size: 14px; color: var(--washi-2); }
.secret b { font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; color: var(--gold); display: block; margin-bottom: 4px; }
.realm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.realm-grid .realm-card { width: auto; aspect-ratio: 3/4; }
.realm-grid .realm-card h3 { font-size: clamp(22px, 2vw, 30px); }
.ladder { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0; position: relative; }
.ladder__step { position: relative; padding: 0 10px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.ladder__step .b { width: 100%; height: 12px; border-radius: 6px; background: var(--b); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.ladder__step strong { font-family: var(--f-display); font-weight: 400; font-size: 15px; line-height: 1.1; }
.ladder__step small { font-size: 12px; color: var(--mute); line-height: 1.35; }
.ladder__step .lv { font-family: var(--f-mono); font-size: 11px; color: var(--gold); letter-spacing: .1em; }

/* ==========================================================================
   CARD GAME
   ========================================================================== */
.steps5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.step5 { padding: 34px 22px 0 0; display: grid; gap: 12px; align-content: start; }
.step5 + .step5 { padding-left: 22px; border-left: 1px solid var(--line); }
.step5 .k { font-family: var(--f-display); font-size: 54px; line-height: 1; color: var(--red); }
.step5 h4 { font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1; }
.step5 p { margin: 0; color: var(--washi-2); font-size: 15px; }
.step5 small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--mute); }

/* duel mini game */
.duel { border-radius: 30px; overflow: hidden; background: radial-gradient(80% 80% at 50% 0%, rgba(232, 38, 45, .18), transparent 60%), var(--night-2); box-shadow: 0 0 0 1px var(--line); padding: clamp(24px, 4vw, 56px); }
.duel__arena { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 50px); align-items: center; }
.duel__side { display: grid; gap: 14px; justify-items: center; text-align: center; }
.duel__side .bb-card { width: min(260px, 100%); }
.duel__hp { width: min(260px, 100%); height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.duel__hp i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #3ddc84, #b5f25c); transition: width .8s var(--ease), background .4s; }
.duel__hp i.low { background: linear-gradient(90deg, var(--red), #ff8a1f); }
.duel__vs { display: grid; gap: 14px; justify-items: center; text-align: center; min-width: 200px; }
.duel__shout { font-family: var(--f-display); font-size: clamp(48px, 7vw, 110px); line-height: .9; color: var(--red); min-height: 1em; text-shadow: 0 0 60px rgba(232, 38, 45, .6); }
.duel__log { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--washi-2); min-height: 3em; max-width: 28ch; }
.duel__picks { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.duel__pick { width: 130px; padding: 18px 10px; border-radius: 18px; background: linear-gradient(160deg, #241f30, #120f19); box-shadow: inset 0 0 0 1px var(--line-gold); display: grid; gap: 4px; justify-items: center; transition: transform .4s var(--ease), box-shadow .3s; }
.duel__pick:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 2px var(--gold), 0 20px 40px -20px rgba(244, 182, 58, .5); }
.duel__pick b { font-family: var(--f-display); font-weight: 400; font-size: 34px; color: var(--red); line-height: 1; }
.duel__pick strong { font-family: var(--f-display); font-weight: 400; font-size: 16px; }
.duel__pick small { font-size: 11px; color: var(--mute); }
.duel__pick:disabled { opacity: .4; pointer-events: none; }
.duel__score { display: flex; gap: 18px; justify-content: center; margin-top: 22px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: var(--mute); text-transform: uppercase; }
.duel__score b { color: var(--gold); font-weight: 600; }
.stance-reveal { width: 86px; height: 120px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-display); font-size: 40px; color: var(--red); background: #f5eedf; box-shadow: 0 20px 40px -15px #000; }
.stance-reveal.hidden { background: #111 url(../img/cards/back.webp) center/cover; color: transparent; }

/* element wheel */
.wheel-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.wheel { position: relative; aspect-ratio: 1; max-width: 600px; width: 100%; margin: 0 auto; }
.wheel svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wheel__node { position: absolute; width: 13%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; font-family: var(--f-display); font-size: clamp(16px, 2vw, 26px); color: #0c0a12; background: var(--c); box-shadow: 0 0 0 4px var(--night), 0 0 0 5px color-mix(in srgb, var(--c) 50%, transparent); transition: transform .4s var(--ease), opacity .3s, box-shadow .3s; }
.wheel__node:hover { transform: translate(-50%, -50%) scale(1.12); }
.wheel.has-sel .wheel__node { opacity: .3; }
.wheel.has-sel .wheel__node.sel, .wheel.has-sel .wheel__node.beat, .wheel.has-sel .wheel__node.weak { opacity: 1; }
.wheel__node.sel { transform: translate(-50%, -50%) scale(1.25); box-shadow: 0 0 0 4px var(--night), 0 0 0 7px #fff, 0 0 40px var(--c); }
.wheel__node.beat { box-shadow: 0 0 0 4px var(--night), 0 0 0 7px #3ddc84; }
.wheel__node.weak { box-shadow: 0 0 0 4px var(--night), 0 0 0 7px var(--red); }
.wheel__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: 44%; display: grid; gap: 4px; justify-items: center; }
.wheel__center b { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 6vw, 84px); line-height: 1; }
.wheel__center span { font-family: var(--f-display); font-size: clamp(16px, 1.6vw, 22px); }
.wheel__center small { font-size: 12px; color: var(--mute); line-height: 1.4; }
.legend-keys { display: flex; gap: 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.legend-keys i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 8px; }

/* rarity */
.rarity { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.rar { position: relative; border-radius: 18px; padding: 22px 16px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; align-content: start; min-height: 220px; overflow: hidden; }
.rar .sym { font-size: 30px; line-height: 1; }
.rar h5 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 18px; line-height: 1.05; }
.rar p { margin: 0; font-size: 13px; color: var(--washi-2); }
.rar .odds { margin-top: auto; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--gold); }
.rar--holo { background: linear-gradient(135deg, rgba(255, 0, 132, .15), rgba(0, 170, 255, .15), rgba(255, 215, 0, .15)); }
.rar--gold { background: linear-gradient(160deg, rgba(244, 182, 58, .3), rgba(120, 70, 10, .2)); box-shadow: inset 0 0 0 1px var(--line-gold); }
.rar--earned { background: linear-gradient(160deg, #26262c, #0b0b0f); box-shadow: inset 0 0 0 1px var(--red); }
.rar--earned .odds { color: var(--red); }

/* pack opening */
.pack-stage { position: relative; min-height: 640px; display: grid; place-items: center; border-radius: 30px; overflow: hidden; background: radial-gradient(60% 60% at 50% 50%, rgba(244, 182, 58, .14), transparent 70%), var(--ink); box-shadow: 0 0 0 1px var(--line); padding: 40px 20px; }
.pack { position: relative; width: 260px; aspect-ratio: 5/8; cursor: pointer; transition: transform .5s var(--ease); }
.pack:hover { transform: translateY(-8px) rotate(-1.5deg); }
.pack__body { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #1a1422, #08060c); box-shadow: 0 50px 90px -30px #000, inset 0 0 0 1px rgba(244, 182, 58, .4); display: grid; place-items: center; text-align: center; }
.pack__body::before { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 42%, rgba(232, 38, 45, .22) 0deg 6deg, transparent 6deg 18deg); }
.pack__body::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .25) 48%, transparent 60%); background-size: 250% 100%; animation: packsheen 3.2s ease-in-out infinite; }
@keyframes packsheen { 0% { background-position: 150% 0; } 60%, 100% { background-position: -100% 0; } }
.pack__in { position: relative; z-index: 2; display: grid; gap: 10px; justify-items: center; padding: 20px; }
.pack__in .claw { width: 110px; }
.pack__in .wordmark { font-size: 30px; }
.pack__in small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--gold); }
.pack__crimp { position: absolute; left: 0; right: 0; height: 18px; z-index: 3; background: repeating-linear-gradient(90deg, #c9a24a 0 6px, #8a6a24 6px 12px); }
.pack__crimp.t { top: 0; border-radius: 14px 14px 0 0; } .pack__crimp.b { bottom: 0; border-radius: 0 0 14px 14px; }
.pack__top { position: absolute; left: 0; right: 0; top: 0; height: 15%; z-index: 4; }
.pack-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; color: var(--mute); text-transform: uppercase; white-space: nowrap; }
.pulls { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; width: 100%; max-width: 1200px; }
.pull { width: clamp(120px, 13vw, 180px); cursor: pointer; }
.pull .flip__in { aspect-ratio: 63/88; }
.pull .flip__face { position: absolute; inset: 0; }
.pull .bb-cardback { width: 100%; }
.pull.rare .flip__face--front .bb-cardback { box-shadow: 0 0 0 2px var(--gold), 0 0 50px -6px var(--gold); animation: rarepulse 1.6s ease-in-out infinite; }
@keyframes rarepulse { 50% { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 80px 0 var(--gold); } }
.pack-odds { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--mute); }

/* anatomy */
.anatomy { display: grid; grid-template-columns: 1fr minmax(260px, 380px) 1fr; gap: 3vw; align-items: center; }
.anatomy__col { display: grid; gap: 26px; }
.anatomy__item { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); cursor: default; transition: border-color .3s; }
.anatomy__item:hover { border-color: var(--gold); }
.anatomy__item b { font-family: var(--f-mono); font-size: 11px; color: var(--gold); letter-spacing: .2em; }
.anatomy__item strong { font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.anatomy__item p { margin: 0; color: var(--washi-2); font-size: 14px; }
.anatomy__col--r { text-align: right; }

.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.format { padding: 34px 30px; border-radius: 24px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; align-content: start; }
.format .age { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; color: var(--gold); text-transform: uppercase; }
.format h4 { font-family: var(--f-display); font-weight: 400; font-size: 32px; line-height: 1; }
.format p { margin: 0; color: var(--washi-2); font-size: 15px; }
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.product { border-radius: 20px; padding: 24px 20px; background: linear-gradient(160deg, var(--night-3), var(--night-2)); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; align-content: start; }
.product .ch { font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--mute); text-transform: uppercase; }
.product h5 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 20px; line-height: 1.05; }
.product p { margin: 0; font-size: 13px; color: var(--washi-2); }
.product .price { margin-top: 8px; font-family: var(--f-display); font-size: 22px; color: var(--gold); }
.product--earned { box-shadow: inset 0 0 0 1px var(--red); }
.product--earned .price { color: var(--red); font-size: 14px; font-family: var(--f-mono); letter-spacing: .14em; }

/* ==========================================================================
   DOJO LEGENDS
   ========================================================================== */
.loop { position: relative; aspect-ratio: 1; max-width: 560px; margin: 0 auto; width: 100%; }
.loop__ring { position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(244, 182, 58, .35); animation: spin2 60s linear infinite; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.loop__node { position: absolute; width: 27%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 10px; background: radial-gradient(circle at 35% 30%, #2a2437, #110e18); box-shadow: inset 0 0 0 1px var(--line-gold), 0 20px 50px -20px #000; }
.loop__node b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2.6vw, 34px); color: var(--red); line-height: 1; }
.loop__node strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(11px, 1.1vw, 15px); margin-top: 6px; }
.loop__node small { display: block; font-size: 10px; color: var(--mute); line-height: 1.3; }
.loop__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.loop__center .claw { width: 90px; }
.loop__center div { font-family: var(--f-display); font-size: 20px; margin-top: 8px; }
.scan { position: relative; height: 100%; display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 45%, rgba(155, 107, 255, .35), transparent 70%), linear-gradient(180deg, #120d1d, #050308); }
.scan__frame { position: relative; width: 66%; }
.scan__frame .bb-card { width: 100%; }
.scan__line { position: absolute; left: -8%; right: -8%; height: 3px; top: 0; background: linear-gradient(90deg, transparent, #c9a8ff, #fff, #c9a8ff, transparent); box-shadow: 0 0 24px 6px rgba(201, 168, 255, .7); animation: scanline 2.6s ease-in-out infinite; z-index: 5; }
@keyframes scanline { 0%, 100% { top: 0; } 50% { top: 100%; } }
.scan__ui { position: absolute; left: 0; right: 0; top: 48px; text-align: center; font-family: var(--f-mono); font-size: 10px; letter-spacing: .24em; color: #c9a8ff; }
.scan__ok { position: absolute; left: 14px; right: 14px; bottom: 18px; padding: 14px; border-radius: 16px; background: rgba(10, 8, 16, .82); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(201, 168, 255, .35); display: grid; gap: 6px; font-size: 12px; }
.scan__ok strong { font-family: var(--f-display); font-weight: 400; font-size: 16px; color: var(--gold); }
.scan__ok span { color: var(--washi-2); }
.scan__burst { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .95), rgba(201, 168, 255, .5) 20%, transparent 55%); }
.hud { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 60px 120px -40px #000, 0 0 0 1px var(--line); }
.hud img { width: 100%; display: block; }
.hud__top { position: absolute; top: 4%; left: 3%; right: 3%; display: flex; justify-content: space-between; gap: 20px; }
.hud__bar { flex: 1; max-width: 40%; display: grid; gap: 6px; }
.hud__bar.r { text-align: right; }
.hud__bar span { font-family: var(--f-display); font-size: clamp(12px, 1.4vw, 18px); text-shadow: 0 2px 10px #000; }
.hud__bar i { display: block; height: clamp(8px, 1vw, 14px); border-radius: 99px; background: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.hud__bar i::after { content: ''; position: absolute; inset: 0; width: var(--w, 70%); background: linear-gradient(90deg, #ffde59, #3ddc84); }
.hud__bar.r i::after { left: auto; right: 0; background: linear-gradient(270deg, #ffde59, #ff5a1f); }
.hud__pop { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) rotate(-6deg); font-family: var(--f-display); font-size: clamp(26px, 4.4vw, 64px); color: #ffde59; text-shadow: 0 4px 0 #b3141b, 0 0 40px rgba(255, 222, 89, .7); white-space: nowrap; }
.hud__btns { position: absolute; right: 3%; bottom: 6%; display: grid; grid-template-columns: repeat(3, auto); gap: clamp(6px, 1vw, 12px); }
.hud__btns button { width: clamp(46px, 6vw, 80px); aspect-ratio: 1; border-radius: 50%; font-family: var(--f-display); font-size: clamp(10px, 1.1vw, 14px); background: rgba(10, 8, 15, .7); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); transition: transform .2s, background .2s; }
.hud__btns button:hover, .hud__btns button.hit { background: var(--red); transform: scale(1.1); }
.hud__kiai { position: absolute; left: 3%; bottom: 6%; padding: clamp(8px, 1vw, 14px) clamp(14px, 2vw, 26px); border-radius: 99px; font-family: var(--f-display); font-size: clamp(12px, 1.5vw, 20px); background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #1a1205; box-shadow: 0 0 30px rgba(244, 182, 58, .7); animation: kiaiPulse 1.4s ease-in-out infinite; }
@keyframes kiaiPulse { 50% { box-shadow: 0 0 60px rgba(244, 182, 58, 1); transform: scale(1.04); } }
.modes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.mode { padding: 26px 22px; border-radius: 22px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; align-content: start; }
.mode small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; }
.mode h5 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.05; }
.mode p { margin: 0; font-size: 14px; color: var(--washi-2); }
.dan { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.dan .realm-card { width: auto; aspect-ratio: 3/4; }
.dan .realm-card h3 { font-size: 22px; }
.commit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 22px; overflow: hidden; }
.commit div { background: var(--night); padding: 30px 26px; display: grid; gap: 8px; align-content: start; }
.commit b { font-family: var(--f-display); font-weight: 400; font-size: 38px; color: var(--red); line-height: 1; }
.commit strong { font-family: var(--f-display); font-weight: 400; font-size: 18px; line-height: 1.1; }
.commit p { margin: 0; font-size: 14px; color: var(--washi-2); }

/* ==========================================================================
   LORE
   ========================================================================== */
.chapter { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; padding: 18vh 0; }
.chapter__bg { position: absolute; inset: -10% 0; z-index: -2; }
.chapter__bg img { width: 100%; height: 100%; object-fit: cover; }
.chapter::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 6, 12, .94) 0%, rgba(8, 6, 12, .7) 45%, rgba(8, 6, 12, .15) 100%), linear-gradient(180deg, var(--night) 0%, transparent 18%, transparent 82%, var(--night) 100%); }
.chapter--r::after { background: linear-gradient(270deg, rgba(8, 6, 12, .94) 0%, rgba(8, 6, 12, .7) 45%, rgba(8, 6, 12, .15) 100%), linear-gradient(180deg, var(--night) 0%, transparent 18%, transparent 82%, var(--night) 100%); }
.chapter__in { max-width: 640px; display: grid; gap: 26px; }
.chapter--r .chapter__in { margin-left: auto; }
.chapter__no { font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; }
.chapter h2 { font-size: clamp(44px, 6vw, 96px); }
.chapter p { font-family: var(--f-serif); font-weight: 300; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.6; color: var(--washi-2); margin: 0; }
.chapter p.drop::first-letter { font-family: var(--f-display); float: left; font-size: 4.4em; line-height: .8; padding: 6px 12px 0 0; color: var(--red); font-style: normal; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 26px; overflow: hidden; }
.pillar { background: var(--night); padding: clamp(28px, 3vw, 46px); display: grid; gap: 14px; align-content: start; transition: background .5s; }
.pillar:hover { background: var(--night-2); }
.pillar b { font-family: var(--f-display); font-weight: 400; font-size: clamp(60px, 6vw, 96px); line-height: 1; color: var(--red); }
.pillar h4 { font-family: var(--f-display); font-weight: 400; font-size: 24px; }
.pillar p { margin: 0; color: var(--washi-2); font-size: 15px; }
.splice { display: grid; gap: 10px; }
.splice div { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 15px; color: var(--washi-2); }
.splice div::before { content: '✦'; color: var(--gold); }
.hero-sheet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hero-sheet .media-frame { aspect-ratio: 3/4; }
.palette { display: flex; gap: 8px; }
.palette i { width: 44px; height: 44px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.scrolls { display: grid; grid-template-columns: repeat(18, 1fr); gap: 6px; }
.scrolls i { aspect-ratio: 1/2.2; border-radius: 4px; background: linear-gradient(180deg, #e9dcc0, #b9a77f); box-shadow: inset 0 2px 0 #8a2a1a, inset 0 -2px 0 #8a2a1a; opacity: .14; transition: opacity .4s, transform .4s var(--ease); }
.scrolls i.found { opacity: 1; transform: translateY(-4px); }

/* ==========================================================================
   DOJOS
   ========================================================================== */
.belt-loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.bl { padding: 34px 26px; border-radius: 24px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; position: relative; }
.bl b { font-family: var(--f-display); font-weight: 400; font-size: 48px; color: var(--red); line-height: 1; }
.bl h4 { font-family: var(--f-display); font-weight: 400; font-size: 26px; }
.bl p { margin: 0; color: var(--washi-2); font-size: 15px; }
.bl small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--mute); text-transform: uppercase; font-weight: 500; }
.table td:first-child { font-family: var(--f-display); font-size: 18px; color: #fff; white-space: nowrap; }
.table td { color: var(--washi-2); }
.quote { font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: clamp(30px, 4vw, 60px); line-height: 1.15; max-width: 24ch; }
.quote::before { content: '“'; color: var(--red); font-family: var(--f-display); font-style: normal; }
.quote::after { content: '”'; color: var(--red); font-family: var(--f-display); font-style: normal; }
.dash { border-radius: 26px; background: var(--night-2); box-shadow: 0 0 0 1px var(--line), 0 50px 100px -40px #000; padding: 26px; display: grid; gap: 14px; }
.dash__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--washi-2); }
.dash__row b { color: #fff; font-weight: 600; }
.dash__row b.g { color: #3ddc84; }
.dash__head { display: flex; align-items: center; gap: 14px; }
.dash__head img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.dash__note { padding: 14px 16px; border-radius: 14px; background: rgba(244, 182, 58, .08); font-family: var(--f-serif); font-style: italic; color: var(--washi); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .hdr__tools .btn { display: none; }
  .hdr__bar { justify-content: space-between; }
  .mega, .mega__scrim { display: none; }
  .ftr__grid { grid-template-columns: 1fr 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
  .rarity { grid-template-columns: repeat(4, 1fr); }
  .products, .modes { grid-template-columns: repeat(3, 1fr); }
  .realm-grid { grid-template-columns: repeat(3, 1fr); }
  .dan { grid-template-columns: repeat(3, 1fr); }
  .commit { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  body { font-size: 16px; }
  .split2, .earned, .legend__grid, .wheel-wrap, .evo__stick { grid-template-columns: 1fr; }
  .split2--rev > :first-child { order: 0; }
  .partners { grid-template-columns: 1fr; gap: 60px; }
  .partner .flip { max-width: 300px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .evo { height: 300vh; }
  .evo__stick { align-content: center; gap: 24px; padding-top: calc(var(--nav-h) + 10px); }
  .evo__stage { max-width: 520px; }
  .evo__name { font-size: clamp(48px, 13vw, 90px); }
  .steps5 { grid-template-columns: 1fr; }
  .step5, .step5 + .step5 { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .duel__arena { grid-template-columns: 1fr 1fr; }
  .duel__vs { grid-column: 1 / -1; order: -1; }
  .duel__side .bb-card { width: min(180px, 100%); }
  .anatomy { grid-template-columns: 1fr; }
  .anatomy__col--r { text-align: left; }
  .anatomy__card { order: -1; max-width: 320px; justify-self: center; width: 100%; }
  .formats, .belt-loop { grid-template-columns: 1fr; }
  .products, .modes { grid-template-columns: 1fr 1fr; }
  .rarity { grid-template-columns: 1fr 1fr; }
  .realm-grid, .dan { grid-template-columns: 1fr 1fr; }
  .realm-panel { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: repeat(4, 1fr); row-gap: 30px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .tiles .s-8, .tiles .s-7, .tiles .s-6, .tiles .s-5, .tiles .s-4, .tiles .s-3 { grid-column: span 12; }
  .hero-sheet { grid-template-columns: 1fr 1fr; }
  .modal__box { grid-template-columns: 1fr; overflow-y: auto; inset: 0; border-radius: 0; }
  .modal__left { padding: 70px 30px 30px; }
  .modal__left .bb-card { width: min(300px, 80vw); }
  .modal__right { overflow: visible; }
  .scrolls { grid-template-columns: repeat(12, 1fr); }
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
  .hero__seal { display: none; }
  .phero .kanji { display: none; }
  .table { font-size: 14px; }
  .table th:nth-child(3), .table td:nth-child(3) { display: none; }
  .chapter::after, .chapter--r::after { background: linear-gradient(180deg, var(--night) 0%, rgba(8, 6, 12, .78) 25%, rgba(8, 6, 12, .85) 75%, var(--night) 100%); }
}
@media (max-width: 560px) {
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .products, .modes, .rarity, .realm-grid, .dan, .commit, .pillars { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr 1fr; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: center; }
  .hero__meta { display: none; }
  .evo__steps { font-size: 9px; letter-spacing: .08em; }
  .phero h1 { font-size: clamp(52px, 17vw, 120px); }
  .partner-badge span { display: none; }
  .partner-badge { padding: 4px; }
  .duel__pick { width: calc(33% - 8px); padding: 14px 4px; }
  .duel__pick b { font-size: 26px; }
  .cta form { flex-direction: column; border-radius: 22px; }
  .cta form input { padding: 14px 16px; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}

/* small kanji: Dela Gothic's kanji are too heavy below ~40px */
.jpk, .nav__link .jp, .bb-card__meta b, .bb-card__seal, .el-chip b, .mega__links .k, .mega__els a, .ticks .k, .wheel__node, .bcell__art .el, .fchip b, .stance-node b, .loop__node b, .step5 .k, .commit b, .bl b, .duel__pick b, .stance-reveal, .realm-card .jp, .mnav__item > a span, .loader__bow span, .pillar b, .kanji-bg, .modal__left .kan, .wheel__center b, .phero .kanji { font-family: var(--f-jp); font-weight: 900; }
.bb-card__meta b { font-weight: 700; }
/* gold gradient survives text splitting */
.gold-text .w, .gold-text .w > span, .gold-text .c { background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .eyebrow, .phero .eyebrow, .phero .crumbs { text-shadow: 0 1px 14px rgba(0, 0, 0, .9); }

/* ==========================================================================
   ROBUSTNESS + MOBILE PASS
   ========================================================================== */
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
.map img { aspect-ratio: 1600 / 1220; height: auto; }
.media-frame--wide { aspect-ratio: 16 / 8; }

/* holo shimmer for touch screens (no pointer to follow) */
@property --mx { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --my { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@keyframes holoSweep { 0% { --mx: 0%; --my: 20%; } 50% { --mx: 100%; --my: 80%; } 100% { --mx: 0%; --my: 20%; } }

@media (hover: none), (pointer: coarse) {
  .grain { display: none; }
  .bb-card { transition: none; }
  .bb-card.is-holo { animation: holoSweep 6s ease-in-out infinite; }
  .bb-card.is-holo .bb-card__shine { opacity: .45; }
  .btn:hover { transform: none; }
  .bcell:hover { transform: none; }
  .filters { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 900px) {
  /* horizontal realm strip becomes a native swipe carousel */
  .hscroll { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; }
  .hscroll::-webkit-scrollbar { display: none; }
  .hscroll__track .realm-card { scroll-snap-align: center; width: 78vw; }
  .evo { height: 210vh; }
  .evo__copy > p.mute { display: none; }
  .evo__copy { gap: 16px; }
  .evo__quote { min-height: 0; font-size: 18px; }
  .fan { height: 380px; }
  .fan .bb-card { width: 190px; }
}

@media (max-width: 760px) {
  /* compact sticky filter bar: single swipeable rows */
  .filters { padding: 10px 0; position: relative; top: auto; background: none; }
  .filters__row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .filters__row::-webkit-scrollbar { display: none; }
  .filters .wrap.filters__row:first-child { flex-wrap: wrap; }
  .seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg button { white-space: nowrap; }
  .fchip { flex-shrink: 0; white-space: nowrap; }
  .bgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bcell { border-radius: 16px; }
  .bcell__body { padding: 12px 12px 14px; gap: 4px; }
  .bcell__body h4 { font-size: 19px; }
  .bcell__evo { font-size: 9px; letter-spacing: 0; }
  .bcell__style { font-size: 11px; }
  .bcell__art .n { display: none; }
  .bcell__art .el { width: 26px; height: 26px; font-size: 12px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  h2 { font-size: clamp(34px, 10.5vw, 56px); }
  .phero { min-height: 78svh; }
  .phero h1 { font-size: clamp(44px, 14vw, 100px); }
  .section { padding: 84px 0; }
  .section--tight { padding: 56px 0; }
  .manifesto { padding: 90px 0; }
  .manifesto__text { font-size: clamp(28px, 8.4vw, 44px); }
  .stat { padding: 22px 12px 8px 0; }
  .stat + .stat { padding-left: 12px; }
  .stat b { font-size: 44px; }
  .realm-grid, .dan { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .realm-grid .realm-card, .dan .realm-card { border-radius: 16px; }
  .realm-grid .realm-card .in, .dan .realm-card .in { padding: 14px; gap: 6px; }
  .realm-grid .realm-card h3, .dan .realm-card h3 { font-size: 18px; }
  .realm-grid .realm-card p, .dan .realm-card p { font-size: 12px; line-height: 1.35; }
  .realm-grid .realm-card .mono, .realm-grid .realm-card .mute { display: none; }
  .realm-card .jp { font-size: 18px; top: 12px; right: 12px; }
  .realm-card .belt-tag { font-size: 9px; letter-spacing: .1em; }
  .realm-panel__body h3 span { display: block; margin-top: 6px; }
  .kv { grid-template-columns: 1fr 1fr; }
  .chapter { padding: 12vh 0; min-height: 0; }
  .chapter__in > div[style*="display:flex"] { gap: 8px !important; }
  .chapter__in .media-frame { width: calc((100% - 16px) / 3) !important; }
  .mega__feature { min-height: 0; }
  .tile { min-height: 240px !important; }
  .commit div { padding: 22px 18px; }
  .loop__node strong { font-size: 10px; }
  .loop__node small { display: none; }
  .duel { padding: 18px 12px; border-radius: 22px; }
  .duel__arena { gap: 10px; }
  .duel__shout { font-size: 44px; }
  .duel__log { font-size: 11px; min-height: 4.4em; }
  .stance-reveal { width: 54px; height: 76px; font-size: 26px; }
  .duel__score { flex-wrap: wrap; gap: 10px 16px; font-size: 10px; }
  .pack-stage { min-height: 520px; padding: 30px 12px; }
  .pull { width: calc((100% - 28px) / 3); }
  .pack-hint { white-space: normal; text-align: center; width: 90%; }
  .anatomy__item { padding: 10px 0; }
  .ladder { grid-template-columns: repeat(4, 1fr); row-gap: 22px; }
  .ladder__step { padding: 0 4px; }
  .ladder__step small { font-size: 10px; }
  .ladder__step strong { font-size: 13px; }
  .hud__top { gap: 8px; }
  .hud__bar { max-width: 46%; }
  .table td, .table th { padding: 12px 8px; }
  .table td:first-child { white-space: normal; font-size: 15px; }
  .modal__left { padding: 64px 20px 20px; }
  .modal__right { padding: 22px 16px 40px; gap: 22px; }
  .stage-tabs button span { font-size: 11px; padding: 14px 6px 6px; }
  .ftr__giant { margin: 50px 0 20px; }
  .hero__inner { padding-bottom: 96px; gap: 18px; }
  .marquee__item { font-size: 20px; gap: 22px; padding-right: 22px; }
}

.duel__card { width: min(260px, 100%); }
.duel__side .bb-card { width: 100% !important; }
@media (max-width: 900px) { .duel__card { width: min(180px, 100%); } }
.pack-stage { padding-bottom: 80px; }
@media (max-width: 900px) {
  .modal__box { grid-auto-rows: max-content; }
  .modal__left { min-height: 0; overflow: clip; }
}
