/* ============================================================
   ZIANG CHENG PORTFOLIO V3 — EDITORIAL OBSIDIAN DESIGN SYSTEM
   ============================================================ */
:root {
  --bg: #09090b;
  --surface: rgba(18, 18, 22, 0.74);
  --surface-2: rgba(26, 26, 32, 0.72);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f3ef;
  --muted: rgba(245, 243, 239, 0.6);
  --accent: #fb7b28;
  --accent-2: #e8be62;
  --orb-a: rgba(251, 123, 40, 0.2);
  --orb-b: rgba(72, 201, 167, 0.14);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Space Grotesk", "Plus Jakarta Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease-spring: cubic-bezier(0.22, 1.24, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth chapter-reactive atmosphere */
body[data-chapter="hero"] {
  --accent: #fb7b28; --accent-2: #e8be62;
  --orb-a: rgba(251, 123, 40, 0.2); --orb-b: rgba(72, 201, 167, 0.12);
}
body[data-chapter="paopao"] {
  --accent: #48c9a7; --accent-2: #f4b860;
  --orb-a: rgba(244, 184, 96, 0.22); --orb-b: rgba(72, 201, 167, 0.2);
}
body[data-chapter="lod"] {
  --accent: #f5a623; --accent-2: #ff6b35;
  --orb-a: rgba(245, 166, 35, 0.22); --orb-b: rgba(255, 107, 53, 0.16);
}
body[data-chapter="tgga"] {
  --accent: #fb7b28; --accent-2: #e8be62;
  --orb-a: rgba(251, 123, 40, 0.26); --orb-b: rgba(232, 190, 98, 0.14);
}
body[data-chapter="tools"] {
  --accent: #38bdf8; --accent-2: #48c9a7;
  --orb-a: rgba(56, 189, 248, 0.18); --orb-b: rgba(72, 201, 167, 0.15);
}
body[data-chapter="info"] {
  --accent: #f5f3ef; --accent-2: #fb7b28;
  --orb-a: rgba(251, 123, 40, 0.12); --orb-b: rgba(255, 255, 255, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--text); }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
.pixel-art { image-rendering: pixelated; }

.ico { width: 16px; height: 16px; flex: none; }
.ico-xs { width: 13px; height: 13px; flex: none; }

/* Top Chapter-Tinted Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.04);
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* Ambient Orbs + Subtle Film Grain */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient-orb {
  position: absolute;
  width: 56vw;
  height: 56vw;
  border-radius: 50%;
  filter: blur(130px);
  transition: background 900ms ease;
}
.orb-a { top: -18vw; left: -10vw; background: var(--orb-a); }
.orb-b { bottom: -18vw; right: -10vw; background: var(--orb-b); }
.grain-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
}

/* Minimal Top Header */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: linear-gradient(to bottom, rgba(9, 9, 11, 0.8), rgba(9, 9, 11, 0));
  backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.brand-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transition: background 500ms ease, box-shadow 500ms ease;
}
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.top-link {
  font-size: 13px;
  color: var(--muted);
  transition: color 180ms ease;
}
.top-link:hover { color: var(--text); }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(18, 18, 22, 0.78);
  backdrop-filter: blur(14px);
}
.lang-opt {
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.lang-opt:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.lang-opt.is-active {
  background: var(--accent);
  color: #100c09;
}

/* Layout Container & Chapters */
.page { position: relative; z-index: 2; padding-bottom: 120px; }
.container { width: min(1240px, calc(100% - 56px)); margin: 0 auto; position: relative; }
.chapter { padding: 112px 0 88px; position: relative; overflow-x: clip; }

/* Shared Buttons & Pills */
.magnet-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 600;
  transition: transform 240ms var(--ease-spring), border-color 200ms ease, background 200ms ease;
  will-change: transform;
}
.magnet-btn:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.1); }
.primary-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #100c09;
  font-weight: 700;
}
.primary-cta:hover { background: #ff954d; border-color: #ff954d; color: #100c09; }

.chapter-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.store-pill:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.09); transform: translateY(-1px); }

/* ============================================================
   HERO · EDITORIAL SHOWREEL + CHOREOGRAPHED CURTAIN REVEAL
   ============================================================ */
.chapter-hero {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 0 round 0px);
  animation: heroStageUnveil 1.15s var(--ease-out) both;
}
@keyframes heroStageUnveil {
  from {
    clip-path: inset(7% 5% 7% 5% round 28px);
    filter: brightness(0.65);
  }
  to {
    clip-path: inset(0 0 0 0 round 0px);
    filter: brightness(1);
  }
}
.hero-parallax {
  position: absolute;
  inset: -24px;
  background: #09090b;
  transition: transform 320ms ease-out;
  will-change: transform;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #09090b;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  clip-path: inset(0 0 0 100%);
  transform: scale(1.1);
  filter: brightness(0.46) saturate(1.04);
  transition:
    clip-path 1100ms cubic-bezier(0.76, 0, 0.24, 1),
    transform 6800ms cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: clip-path, transform;
}
.hero-slide.is-still {
  filter: brightness(0.54) saturate(1.04);
}
.hero-slide.is-reset {
  transition: none !important;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  clip-path: inset(0 0 0 100%);
  transform: scale(1.1);
}
.hero-slide.is-leaving {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  clip-path: inset(0 0 0 0);
  transform: scale(1);
  transition: transform 1100ms var(--ease-out);
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  clip-path: inset(0 0 0 0);
  transform: scale(1.01);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse 68% 60% at 50% 42%, rgba(9, 9, 11, 0.36) 0%, rgba(9, 9, 11, 0.88) 78%),
    linear-gradient(to bottom, rgba(9, 9, 11, 0.68) 0%, transparent 24%, rgba(9, 9, 11, 0.96) 100%);
}
.hero-scan-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 50% 45%, #000 18%, transparent 74%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 18%, transparent 74%);
}

.hero-layout {
  z-index: 4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 96px 0 38px;
  gap: 32px;
}

/* Top editorial hairline meta bar */
.hero-meta-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.hero-meta-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  transform-origin: left center;
  animation: drawLineX 1s var(--ease-out) 0.15s both;
}
@keyframes drawLineX {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.hero-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  animation: heroRise 0.7s var(--ease-out) 0.2s both;
}
.hero-edition {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  animation: heroRise 0.7s var(--ease-out) 0.28s both;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Monumental asymmetric split display typography */
.hero-center {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: auto 0;
}
.mask-line {
  display: block;
  overflow: hidden;
  padding: 4px 0;
}
.mask-line.is-unlocked {
  overflow: visible;
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.hero-name {
  position: relative;
  display: inline-block;
  font-size: clamp(56px, 9.2vw, 132px);
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  animation: maskSlideUp 0.95s var(--ease-out) 0.22s both;
}
.hero-char {
  display: inline-block;
  position: relative;
  --glow: 0;
  color: color-mix(in srgb, var(--accent-2) calc(var(--glow) * 88%), var(--text));
  text-shadow:
    0 18px 48px rgba(0, 0, 0, 0.45),
    0 0 32px color-mix(in srgb, var(--accent) calc(var(--glow) * 62%), transparent);
  transform-origin: center 72%;
  will-change: transform;
}
.hero-space {
  display: inline-block;
  width: 0.28em;
}
body[data-lang="zh"] .hero-name,
body[data-lang="ja"] .hero-name {
  letter-spacing: 0.04em;
  font-size: clamp(58px, 8.6vw, 120px);
}
@keyframes maskSlideUp {
  from {
    transform: translateY(115%) skewY(3deg);
    opacity: 0;
  }
  to {
    transform: translateY(0) skewY(0);
    opacity: 1;
  }
}

.hero-split-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-pitch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 540px;
  animation: heroRise 0.85s var(--ease-out) 0.42s both;
}
.hero-role-line {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 18px);
  color: rgba(245, 243, 239, 0.78);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-sub-wrap {
  margin-left: auto;
  text-align: right;
}
.hero-sub {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(40px, 6.6vw, 96px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: rgba(245, 243, 239, 0.08);
  -webkit-text-stroke: 1.5px rgba(245, 243, 239, 0.42);
  transition: transform 280ms var(--ease-out), -webkit-text-stroke-color 280ms ease, color 280ms ease, filter 280ms ease;
  animation: maskSlideUp 1s var(--ease-out) 0.34s both;
}
.hero-sub.is-lit {
  color: rgba(251, 123, 40, 0.14);
  -webkit-text-stroke-color: rgba(232, 190, 98, 0.82);
  filter: drop-shadow(0 0 24px rgba(251, 123, 40, 0.28));
}

/* Bottom architectural hairline bar */
.hero-bottom-bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  flex-wrap: wrap;
  animation: heroRise 0.9s var(--ease-out) 0.52s both;
}
.hero-bottom-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  transform-origin: left center;
  animation: drawLineX 1.1s var(--ease-out) 0.4s both;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0;
}
.metric-cell {
  padding: 2px 26px 2px 0;
  margin-right: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.metric-cell:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.metric-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}
.metric-lbl {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.reel-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 15, 19, 0.7);
  backdrop-filter: blur(14px);
  flex-wrap: wrap;
}
.reel-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  transition: color 200ms ease, background 200ms ease;
}
.reel-idx {
  font-style: normal;
  opacity: 0.55;
  font-size: 10px;
}
.reel-tab:hover { color: var(--text); }
.reel-tab.is-active { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.reel-tab.is-active .reel-idx { color: var(--accent); opacity: 1; }
.reel-progress {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.reel-tab.is-active .reel-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left center;
  animation: reelFill 6.4s linear forwards;
}
@keyframes reelFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ============================================================
   01 & 02 · EDITORIAL TWO-COLUMN GAME SHOWCASE
   ============================================================ */
.game-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.88fr;
  gap: 38px;
  align-items: center;
}

/* Left Visual Column + Bottom Character Dock */
.visual-col { position: relative; }
.stage-shell {
  position: relative;
  padding-bottom: 38px;
}
.stage-viewport {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  aspect-ratio: 16 / 10.4;
  background: #111115;
  box-shadow: 0 34px 72px rgba(0, 0, 0, 0.56);
  transform-style: preserve-3d;
  transition: transform 240ms ease-out, border-color 240ms ease, box-shadow 260ms ease;
}
.stage-viewport:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 40px 84px rgba(0, 0, 0, 0.68);
}
.stage-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 280ms ease, transform 560ms var(--ease-out), filter 300ms ease;
}
.stage-viewport img.is-switching {
  opacity: 0.15;
  transform: scale(1.07);
  filter: blur(4px);
}
.stage-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.14), transparent 62%);
  transition: opacity 260ms ease;
}
.stage-viewport:hover .stage-glare { opacity: 1; }
.stage-viewport.is-contain img {
  object-fit: contain;
  padding: 18px 18px 54px;
  background: radial-gradient(circle at 50% 42%, #1d1714, #0d0b0a);
}
.zoom-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(10, 10, 13, 0.65);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  transition: border-color 180ms ease, color 180ms ease, transform 200ms ease;
}
.zoom-btn:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.06); }

/* Subtle corner culinary stickers on PAO PAO */
.corner-sticker {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.55));
}
.stk-shrimp { width: 74px; top: -24px; left: -18px; transform: rotate(-14deg); animation: stickerFloatA 5.4s ease-in-out infinite; }
.stk-carp   { width: 78px; bottom: 54px; right: -18px; transform: rotate(10deg); animation: stickerFloatB 6.1s ease-in-out infinite; }
@keyframes stickerFloatA {
  0%, 100% { transform: rotate(-14deg) translateY(0); }
  50%      { transform: rotate(-10deg) translateY(-7px); }
}
@keyframes stickerFloatB {
  0%, 100% { transform: rotate(10deg) translateY(0); }
  50%      { transform: rotate(14deg) translateY(-8px); }
}

/* Inline 7-language Awards switcher inside LoD stage */
.award-lang-bar {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(11, 10, 12, 0.78);
  backdrop-filter: blur(14px);
}
.award-lang-bar[hidden] { display: none; }
.lang-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  transition: all 160ms ease;
}
.lang-chip:hover { color: var(--text); }
.lang-chip.is-active { background: var(--accent); color: #120d09; font-weight: 700; }

/* Unified Character Dock (PAO PAO 3D Chefs & LoD Pixel Heroes) */
.char-dock {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 16, 20, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.62);
}
.char-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 5px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 240ms var(--ease-spring), border-color 180ms ease, background 180ms ease, box-shadow 220ms ease;
  transform-origin: center bottom;
}
.char-btn::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.92);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 200ms var(--ease-out);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.48);
}
.char-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.char-btn img { width: 100%; height: 100%; object-fit: contain; }
.char-btn.is-active {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.14), 0 0 16px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* Right Story Column */
.story-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.story-top { display: flex; flex-direction: column; gap: 14px; }
.story-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pao-logo-box {
  position: relative;
  height: 92px;
  display: flex;
  align-items: center;
}
.pao-logo-img {
  position: absolute;
  left: 0;
  top: 50%;
  max-height: 88px;
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateY(-50%) scale(0.88);
  transition: opacity 280ms ease, transform 420ms var(--ease-spring);
  pointer-events: none;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.55));
}
.pao-logo-img.is-active { opacity: 1; transform: translateY(-50%) scale(1); }

.lod-logo-box { display: flex; align-items: center; height: 84px; }
.lod-logo-img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.58));
}

/* Clean Regional Share Bar (PAO PAO) */
.region-bar {
  display: flex;
  height: 32px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}
.reg-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  border-right: 1px solid rgba(9, 9, 11, 0.45);
  transition: filter 180ms ease;
}
.seg-sc  { flex: 40; background: rgba(244, 184, 96, 0.88); color: #161108; }
.seg-tc  { flex: 9;  background: rgba(251, 146, 60, 0.78); color: #161108; }
.seg-jp  { flex: 10; background: rgba(72, 201, 167, 0.85); color: #071713; }
.seg-kr  { flex: 8;  background: rgba(56, 189, 248, 0.8); color: #07141b; }
.seg-row { flex: 33; background: rgba(255, 255, 255, 0.06); color: var(--muted); cursor: default; }
.reg-seg:not(.seg-row):hover, .reg-seg.is-active {
  filter: brightness(1.14);
  box-shadow: inset 0 0 0 2px #fff;
}

/* KPI Strip with Spotlight Glow */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(16, 16, 21, 0.66);
  backdrop-filter: blur(14px);
}
.kpi-cell { position: relative; z-index: 1; display: flex; flex-direction: column; line-height: 1.1; }
.kpi-cell strong {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.kpi-cell span { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Interactive 3D Stacked Story Deck */
.story-deck {
  position: relative;
  padding-bottom: 24px;
  perspective: 1100px;
}
.deck-ghost {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(20, 20, 26, 0.68);
  transition: transform 340ms var(--ease-spring), border-color 240ms ease, background 240ms ease;
  pointer-events: none;
}
.deck-ghost.ghost-2 {
  top: 18px;
  bottom: 0;
  left: 20px;
  right: 20px;
  opacity: 0.45;
  transform: translateY(2px) rotate(1.1deg);
  z-index: 1;
}
.deck-ghost.ghost-1 {
  top: 10px;
  bottom: 10px;
  left: 9px;
  right: 9px;
  opacity: 0.82;
  transform: translateY(2px) rotate(-0.7deg);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 16px 5px;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.44);
}
.ghost-next-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(245, 243, 239, 0.56);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 85%;
}
.story-deck:hover .deck-ghost.ghost-1 {
  transform: translateY(8px) rotate(-1.3deg);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.story-deck:hover .deck-ghost.ghost-2 {
  transform: translateY(12px) rotate(1.8deg);
}

.story-card {
  position: relative;
  z-index: 3;
  padding: 22px 24px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(18, 18, 24, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.52);
  cursor: pointer;
  transition: transform 320ms var(--ease-spring), opacity 220ms ease, border-color 220ms ease, box-shadow 260ms ease;
}
.story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.62);
}
.story-card.is-flip-next {
  opacity: 0;
  transform: translateX(30px) translateY(-10px) rotate(2.6deg) scale(0.95);
}
.story-card.is-flip-prev {
  opacity: 0;
  transform: translateX(-30px) translateY(-10px) rotate(-2.6deg) scale(0.95);
}
.story-card.is-enter {
  animation: deckCardPopIn 380ms var(--ease-spring) both;
}
@keyframes deckCardPopIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.story-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.story-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}
.story-step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.story-heading {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.story-lead {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(245, 243, 239, 0.82);
}
.story-points {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-left: 17px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
.story-points li::marker { color: var(--accent); }

.deck-controls {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.deck-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.deck-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  padding: 2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
}
.deck-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}
.deck-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  padding: 0;
  transition: width 260ms var(--ease-spring), background 200ms ease;
}
.deck-dot:hover { background: rgba(255, 255, 255, 0.55); }
.deck-dot.is-active {
  width: 22px;
  background: var(--accent);
}
.deck-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.deck-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 200ms var(--ease-spring);
}
.deck-arrow:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  transform: scale(1.06);
}
.deck-next-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  transition: background 180ms ease, border-color 180ms ease, transform 220ms var(--ease-spring);
}
.deck-next-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0e0b08;
  transform: translateX(2px);
}

/* ============================================================
   SHARED SECTION HEADER (03 · 04 · 05)
   ============================================================ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.section-brand { display: flex; align-items: center; gap: 16px; }
.section-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.03em;
  font-weight: 700;
}
.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.section-kpis {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ============================================================
   03 · TGGA 2026 & BILIBILI — SHOWREEL & LIQUID GLASS
   ============================================================ */
.chapter-tgga { overflow: clip; }
.tgga-watermark-wrap {
  position: absolute;
  top: 64px;
  right: -64px;
  width: 460px;
  height: 460px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.1;
}
.tgga-watermark { width: 100%; height: 100%; object-fit: contain; will-change: transform; }
.tgga-wordmark { height: 48px; width: auto; filter: drop-shadow(0 8px 24px rgba(251, 123, 40, 0.28)); }

.tgga-grid {
  display: grid;
  grid-template-columns: 1.24fr 0.86fr;
  gap: 24px;
  margin-bottom: 24px;
}
.showreel-theatre {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0d0908;
  aspect-ratio: 16 / 9.4;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.52);
}
.showreel-theatre video { width: 100%; height: 100%; object-fit: cover; }
.reel-pills {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(11, 7, 6, 0.76);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  flex-wrap: wrap;
}
.reel-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  transition: all 180ms ease;
}
.reel-pill:hover { color: var(--text); }
.reel-pill.is-active { background: var(--accent); color: #120905; font-weight: 700; }

/* 3D Liquid-Glass Browser */
.glass-browser {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(20, 15, 13, 0.84));
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease-out;
  transform-style: preserve-3d;
}
.browser-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
}
.chrome-dots { display: inline-flex; gap: 5px; }
.chrome-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.24); }
.chrome-url { color: var(--muted); }
.site-pills { display: flex; gap: 4px; }
.browser-body { position: relative; flex: 1; background: #0b0706; min-height: 220px; }
.browser-body img { width: 100%; height: 100%; object-fit: cover; }

.mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  transition: all 180ms ease;
}
.mini-pill:hover { border-color: var(--border-strong); color: var(--text); }
.mini-pill.is-active { background: var(--accent); border-color: var(--accent); color: #0c0b0a; font-weight: 700; }
.icon-pill { padding: 5px 8px; }

/* Spotlight Cards (Unified across PAO PAO, LoD, TGGA & Toolkit) */
.spotlight-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 220ms ease, transform 240ms var(--ease-spring);
}
.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(251, 123, 40, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
  z-index: 0;
}
.chapter-paopao .spotlight-card::before {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(72, 201, 167, 0.2), transparent 65%);
}
.chapter-lod .spotlight-card::before {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 166, 35, 0.21), transparent 65%);
}
.chapter-tools .spotlight-card::before {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 189, 248, 0.16), transparent 65%);
}
.spotlight-card:hover::before { opacity: 1; }
.spotlight-card:hover { border-color: var(--border-strong); }
.chapter-paopao .spotlight-card:hover { border-color: rgba(72, 201, 167, 0.42); }
.chapter-lod .spotlight-card:hover { border-color: rgba(245, 166, 35, 0.42); }

.bili-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.bili-card { display: grid; grid-template-columns: 210px 1fr; align-items: center; }
.bili-thumb { position: relative; height: 132px; overflow: hidden; }
.bili-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease-out); }
.bili-card:hover .bili-thumb img { transform: scale(1.06); }
.bili-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(11, 7, 6, 0.85);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.badge-hot { background: var(--accent); color: #120905; }
.bili-meta { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.bili-kicker { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.bili-meta strong { font-size: 17px; line-height: 1.25; }
.bili-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

/* ============================================================
   04 · PUBLISHING TOOLKIT — SPACIOUS WEBAPP + PLAYABLE BENTO
   ============================================================ */
.webapp-shell {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(14, 18, 22, 0.88);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.48);
}
.webapp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.webapp-title { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #48c9a7; box-shadow: 0 0 10px #48c9a7; }
.mock-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(72, 201, 167, 0.4);
  color: #48c9a7;
}
.webapp-tabs { display: flex; gap: 6px; align-items: center; }
.webapp-frame-box { position: relative; height: 560px; background: #141816; }
.webapp-frame-box iframe { width: 100%; height: 100%; border: 0; background: #141816; }
.webapp-file-fallback {
  height: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #38bdf8;
}
.fallback-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; gap: 12px; flex-wrap: wrap; }
.fallback-hint { color: var(--muted); }
.fallback-svg { width: 100%; height: 380px; }

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-card { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.bento-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bento-kicker { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 3px; }
.bento-stat { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.action-pill {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: #06131a;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  transition: filter 180ms ease;
}
.action-pill:hover { filter: brightness(1.1); }
.mini-seg { display: flex; gap: 4px; }

.cli-terminal {
  padding: 13px;
  border-radius: 12px;
  background: rgba(5, 8, 12, 0.84);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cli-line.muted { color: var(--muted); }
.cli-line.is-done { color: #48c9a7; }
.cli-line.is-gate { color: #fbbf24; font-weight: 700; }

.kol-list { display: flex; flex-direction: column; gap: 9px; }
.kol-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  transition: all 240ms ease;
}
.kol-row.hl-good { border-color: #48c9a7; background: rgba(72, 201, 167, 0.12); }
.kol-row.hl-bad  { border-color: #f87171; background: rgba(248, 113, 113, 0.14); }
.tag-tier { font-size: 10px; opacity: 0.84; }

.rev-bars { display: flex; flex-direction: column; gap: 11px; }
.rev-bar-row { display: grid; grid-template-columns: 68px 1fr 40px; align-items: center; gap: 10px; font-size: 12px; }
.bar-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; transition: width 460ms var(--ease-spring); }
.fill-pos { background: #48c9a7; }
.fill-warn { background: #fb923c; }
.cp-handoff {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.24);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #bae6fd;
}

/* ============================================================
   05 · TRACK RECORD, GAMER DNA & CONTACT
   ============================================================ */
.accordion-list { border-top: 1px solid var(--border); margin-bottom: 30px; }
.acc-row { border-bottom: 1px solid var(--border); padding: 19px 4px; }
.acc-row summary {
  list-style: none;
  display: grid;
  grid-template-columns: 165px 1.1fr 1.3fr 24px;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.acc-row summary::-webkit-details-marker { display: none; }
.acc-year { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.acc-role { font-size: 14px; color: var(--muted); }
.acc-chev { justify-self: end; color: var(--muted); transition: transform 220ms ease; }
.acc-row[open] .acc-chev { transform: rotate(180deg); color: var(--accent); }
.acc-row p { margin: 12px 0 2px 181px; font-size: 14px; color: var(--muted); max-width: 68ch; }

.dna-ribbon { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 72px; }
.dna-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.dna-chip.is-accent { border-color: rgba(251, 123, 40, 0.5); background: rgba(251, 123, 40, 0.08); color: var(--text); }
.dna-chip.is-genre { border-color: rgba(72, 201, 167, 0.42); background: rgba(72, 201, 167, 0.07); color: #d6f7ee; }

.contact-footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.contact-headline {
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.8vw, 56px);
  letter-spacing: -0.03em;
  font-weight: 700;
}
.contact-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.footer-note { margin: 0; font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

/* ============================================================
   GLOBAL BOTTOM FLOATING DOCK (HIDDEN ON HERO, REVEALED ON SCROLL)
   ============================================================ */
.floating-dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(90px);
  opacity: 0;
  pointer-events: none;
  z-index: 45;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(14, 14, 18, 0.84);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.56);
  transition: transform 420ms var(--ease-out), opacity 320ms ease;
}
body:not([data-chapter="hero"]) .floating-dock {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.dock-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  transition: transform 220ms var(--ease-spring), background 180ms ease, color 180ms ease;
  transform-origin: center bottom;
}
.dock-item:hover { color: var(--text); }
.dock-item.is-active { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.dock-item.is-active .ico { color: var(--accent); }

/* Lightbox, Spark, Toast */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(7, 7, 9, 0.92);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 14px; border: 1px solid var(--border-strong); }
.lb-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(20, 20, 24, 0.84);
  display: grid;
  place-items: center;
}
.spark-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 90;
  background: var(--accent);
}
.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  padding: 9px 18px;
  border-radius: 999px;
  background: #16161b;
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: all 240ms var(--ease-out);
  z-index: 80;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   STRONG VISUAL SCROLL-ENTRANCE CHOREOGRAPHY
   ============================================================ */
body.has-motion [data-reveal="shutter"]:not(.is-revealed),
body.has-motion [data-reveal="shutter-delay"]:not(.is-revealed) {
  clip-path: inset(76% 0 0 0 round 22px);
  transform: translateY(36px);
  opacity: 0.15;
}
body.has-motion [data-reveal="shutter"].is-revealed:not(.is-settled),
body.has-motion [data-reveal="shutter-delay"].is-revealed:not(.is-settled) {
  clip-path: inset(0 0 0 0 round 22px);
  transform: translateY(0);
  opacity: 1;
  transition: clip-path 920ms cubic-bezier(0.16, 1, 0.3, 1), transform 860ms cubic-bezier(0.16, 1, 0.3, 1), opacity 540ms ease;
}
body.has-motion [data-reveal="shutter-delay"].is-revealed:not(.is-settled) { transition-delay: 140ms; }
body.has-motion [data-reveal="shutter"]:not(.is-revealed) > img,
body.has-motion [data-reveal="shutter"]:not(.is-revealed) > video,
body.has-motion [data-reveal="shutter-delay"]:not(.is-revealed) img {
  transform: scale(1.13);
}
body.has-motion [data-reveal="shutter"].is-revealed:not(.is-settled) > img,
body.has-motion [data-reveal="shutter"].is-revealed:not(.is-settled) > video,
body.has-motion [data-reveal="shutter-delay"].is-revealed:not(.is-settled) img {
  transform: scale(1);
  transition: transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3D Perspective Kinetic Title / Brand Unfold */
body.has-motion [data-reveal="kinetic"] {
  opacity: 0;
  transform: perspective(900px) translateY(48px) rotateX(14deg);
  transform-origin: center top;
  transition: transform 820ms cubic-bezier(0.16, 1, 0.3, 1), opacity 620ms ease;
}
body.has-motion [data-reveal="kinetic"].is-revealed {
  opacity: 1;
  transform: perspective(900px) translateY(0) rotateX(0deg);
}

/* Crisp Rise + Metallic Light-Sheen Border Sweep */
body.has-motion [data-reveal="rise"] {
  opacity: 0;
  transform: translateY(34px) scale(0.97);
  transition: transform 720ms var(--ease-out) 90ms, opacity 540ms ease 90ms;
}
body.has-motion [data-reveal="rise"].is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}
body.has-motion [data-reveal="rise"].is-revealed::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 38%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  pointer-events: none;
  animation: lightSheen 1.1s var(--ease-out) 180ms forwards;
}
@keyframes lightSheen {
  from { transform: translateX(0); opacity: 0.9; }
  to   { transform: translateX(420%); opacity: 0; }
}

/* 3D Stacked Story Deck Fan-In */
body.has-motion [data-reveal="deck"]:not(.is-revealed) .story-card {
  opacity: 0;
  transform: translateY(44px) scale(0.96);
}
body.has-motion [data-reveal="deck"]:not(.is-revealed) .deck-ghost {
  opacity: 0;
  transform: translateY(30px) scale(0.92);
}
body.has-motion [data-reveal="deck"].is-revealed:not(.is-settled) .story-card {
  transition: transform 640ms var(--ease-out) 80ms, opacity 480ms ease 80ms;
}
body.has-motion [data-reveal="deck"].is-revealed:not(.is-settled) .deck-ghost.ghost-1 {
  transition: transform 680ms var(--ease-out) 160ms, opacity 480ms ease 160ms;
}
body.has-motion [data-reveal="deck"].is-revealed:not(.is-settled) .deck-ghost.ghost-2 {
  transition: transform 720ms var(--ease-out) 230ms, opacity 480ms ease 230ms;
}

/* Elastic Character Dock Avatar Stagger Pop */
body.has-motion [data-reveal="dock"]:not(.is-revealed) {
  opacity: 0;
  transform: translateX(-50%) translateY(30px) scale(0.92);
}
body.has-motion [data-reveal="dock"]:not(.is-revealed) .char-btn {
  opacity: 0;
  transform: scale(0.35) translateY(24px);
}
body.has-motion [data-reveal="dock"].is-revealed:not(.is-settled) {
  transition: transform 680ms var(--ease-spring) 180ms, opacity 460ms ease 180ms;
}
body.has-motion [data-reveal="dock"].is-revealed:not(.is-settled) .char-btn {
  transition: transform 560ms var(--ease-spring), opacity 380ms ease;
}
body.has-motion [data-reveal="dock"].is-revealed:not(.is-settled) .char-btn:nth-child(1) { transition-delay: 200ms; }
body.has-motion [data-reveal="dock"].is-revealed:not(.is-settled) .char-btn:nth-child(2) { transition-delay: 255ms; }
body.has-motion [data-reveal="dock"].is-revealed:not(.is-settled) .char-btn:nth-child(3) { transition-delay: 310ms; }
body.has-motion [data-reveal="dock"].is-revealed:not(.is-settled) .char-btn:nth-child(4) { transition-delay: 365ms; }
body.has-motion [data-reveal="dock"].is-revealed:not(.is-settled) .char-btn:nth-child(5) { transition-delay: 420ms; }
body.has-motion [data-reveal="dock"].is-revealed:not(.is-settled) .char-btn:nth-child(6) { transition-delay: 475ms; }

/* Sticker Spring Pop */
body.has-motion [data-reveal="pop"] {
  opacity: 0;
  scale: 0.35;
  transition: scale 680ms var(--ease-spring) 280ms, opacity 400ms ease 280ms;
}
body.has-motion [data-reveal="pop"].is-revealed {
  opacity: 1;
  scale: 1;
}

/* Cascading Stagger Group (Bili cards, Bento grid, Accordion, DNA chips) */
body.has-motion [data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(34px) scale(0.96);
  transition: transform 700ms var(--ease-out), opacity 520ms ease;
}
body.has-motion [data-reveal="stagger"].is-revealed > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}
body.has-motion [data-reveal="stagger"].is-revealed > *:nth-child(1)  { transition-delay: 40ms; }
body.has-motion [data-reveal="stagger"].is-revealed > *:nth-child(2)  { transition-delay: 110ms; }
body.has-motion [data-reveal="stagger"].is-revealed > *:nth-child(3)  { transition-delay: 180ms; }
body.has-motion [data-reveal="stagger"].is-revealed > *:nth-child(4)  { transition-delay: 240ms; }
body.has-motion [data-reveal="stagger"].is-revealed > *:nth-child(5)  { transition-delay: 280ms; }
body.has-motion [data-reveal="stagger"].is-revealed > *:nth-child(6)  { transition-delay: 320ms; }
body.has-motion [data-reveal="stagger"].is-revealed > *:nth-child(7)  { transition-delay: 360ms; }
body.has-motion [data-reveal="stagger"].is-revealed > *:nth-child(8)  { transition-delay: 400ms; }
body.has-motion [data-reveal="stagger"].is-revealed > *:nth-child(9)  { transition-delay: 440ms; }
body.has-motion [data-reveal="stagger"].is-revealed > *:nth-child(10) { transition-delay: 480ms; }
body.has-motion [data-reveal="stagger"].is-revealed > *:nth-child(11) { transition-delay: 520ms; }

@media (prefers-reduced-motion: reduce) {
  .hero-stage, .hero-name, .hero-sub, .hero-eyebrow, .hero-edition, .hero-pitch, .hero-bottom-bar, .hero-meta-bar::after, .hero-bottom-bar::before, .corner-sticker {
    animation: none !important;
  }
  .hero-char, .hero-sub {
    transform: none !important;
    transition: none !important;
  }
  body.has-motion [data-reveal], body.has-motion [data-reveal] * {
    transition: none !important;
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   RESPONSIVE RULES
   ============================================================ */
@media (max-width: 1020px) {
  .game-showcase, .tgga-grid, .bili-row, .bento-grid { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; width: 100%; }
  .metric-cell { border-right: none; margin-right: 0; padding-right: 0; }
  .hero-sub-wrap { margin-left: 0; text-align: left; }
  .acc-row summary { grid-template-columns: 1fr auto; }
  .acc-year, .acc-role { grid-column: 1 / -1; }
  .acc-row p { margin-left: 0; }
}
@media (max-width: 640px) {
  .topbar { padding: 14px 16px; }
  .top-link { display: none; }
  .lang-opt { padding: 5px 8px; font-size: 10.5px; }
  .container { width: calc(100% - 28px); }
  .chapter { padding: 86px 0 64px; }
  .hero-layout { padding: 84px 0 28px; }
  .hero-edition { display: none; }
  .corner-sticker { width: 52px; }
  .char-dock { gap: 4px; padding: 6px 10px; }
  .char-btn { width: 42px; height: 42px; }
  .char-btn::after { display: none; }
  .deck-controls { flex-wrap: wrap; }
  .bili-card { grid-template-columns: 1fr; }
  .webapp-frame-box { height: 460px; }
  .floating-dock { bottom: 12px; padding: 6px 8px; gap: 2px; }
  .dock-item { padding: 7px 10px; }
  .dock-item span { display: none; }
}
