/* Pom Tales */
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fira Code", "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --inset-x: clamp(1rem, 3.5vw, 3.5rem);
  --inset-y: clamp(.85rem, 2.5vh, 1.75rem);

  /* the dark page and the blueprint board */
  --bg: #000;
  --page: #0b0a12;
  --ink: #f4f3ef;
  --ink-2: rgba(244, 243, 239, .72);
  --ink-3: rgba(244, 243, 239, .48);
  --ink-4: rgba(244, 243, 239, .26);
  --ink-rgb: 244, 243, 239;
  --line: rgba(255, 255, 255, .09);
  --board: #0a1a3a;
  --board-2: #0b1d42;
  --board-rgb: 10, 26, 58;
  --grid-rgb: 214, 228, 255;
  --accent-rgb: 255, 156, 74; /* [PLACEHOLDER] Pom orange, swap for the brand colour */

  --glass: linear-gradient(165deg, rgba(255,255,255,.2), rgba(255,255,255,.05) 48%, rgba(255,255,255,.1)), rgba(18,18,22,.28);
  --glass-line: rgba(255, 255, 255, .28);
  --glass-ink: #f4f3ef;
}
:root[data-theme="light"] {
  --bg: #f1f0ec;
  --page: #f4f3ef;
  --ink: #0a1a3a;
  --ink-2: rgba(10, 26, 58, .74);
  --ink-3: rgba(10, 26, 58, .52);
  --ink-4: rgba(10, 26, 58, .26);
  --ink-rgb: 10, 26, 58;
  --line: rgba(10, 26, 58, .1);
  --board: #eef0f5;
  --board-2: #e6e9f1;
  --board-rgb: 238, 240, 245;
  --grid-rgb: 30, 60, 140;
  --glass: linear-gradient(165deg, rgba(255,255,255,.62), rgba(255,255,255,.22) 48%), rgba(255,255,255,.34);
  --glass-line: rgba(255, 255, 255, .55);
  --glass-ink: #16161a;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sr-only:focus-within { position: fixed; left: 1rem; top: 4rem; width: auto; height: auto; clip: auto; z-index: 200; background: var(--page); padding: 1rem; }
:focus-visible { outline: 2px solid rgb(var(--accent-rgb)); outline-offset: 2px; }

/* ---------- HUD (logo top centre) ---------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; justify-content: center;
  padding: calc(var(--inset-y) + env(safe-area-inset-top, 0px)) var(--inset-x) var(--inset-y);
  pointer-events: none;
}
.hud-logo { pointer-events: auto; display: inline-flex; transition: transform .9s var(--ease), opacity .4s; }
.hud-logo img { width: 34px; height: 34px; filter: drop-shadow(0 2px 10px rgba(0,0,0,.35)); }
.app.is-booting .hud-logo { transform: translateY(calc(50vh - 100% - 4.2rem - var(--inset-y))); }

/* ---------- Home stage + cube turns ---------- */
.app { overflow: hidden; height: 100vh; height: 100dvh; }
.stage {
  position: fixed; inset: 0; perspective: 2200px; perspective-origin: 50% 50%;
  background: #000;
}
:root[data-theme="light"] .stage { background: var(--bg); }
.cube { position: absolute; inset: 0; transform-style: preserve-3d; }
.face {
  position: absolute; inset: 0; overflow: hidden;
  visibility: hidden; backface-visibility: hidden;
}
.face.is-on, .face.turn-in, .face.turn-out { visibility: visible; }
.cube.is-turning { transition: none; }
.cube.is-turning .face.turn-out { transform-origin: calc(50% + 50% * var(--dir)) 50%; }
.cube.is-turning .face.turn-in { transform-origin: calc(50% - 50% * var(--dir)) 50%; transform: translateX(calc(100% * var(--dir))) rotateY(calc(90deg * var(--dir))); }
.cube.is-turning.go .face { transition: transform 1.1s cubic-bezier(.7, 0, .2, 1), filter 1.1s cubic-bezier(.7, 0, .2, 1); }
.cube.is-turning.go .face.turn-out { transform: translateX(calc(-100% * var(--dir))) rotateY(calc(-90deg * var(--dir))); filter: brightness(.35); }
.cube.is-turning.go .face.turn-in { transform: none; }
.cube.is-turning.go { animation: cube-pull 1.1s cubic-bezier(.7, 0, .2, 1); }
@keyframes cube-pull { 50% { transform: translateZ(-38vw); } }

.app.is-leaving .curtain { opacity: 1; }
.curtain { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 300; }

/* ---------- Episodes wall ---------- */
.wall { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; opacity: 0; transition: opacity .6s; }
.wall.is-dragging { cursor: grabbing; }
.app.is-live .wall, .app.is-hinting .wall { opacity: 1; }

/* ---------- Dock (doubles as the intro loader) ---------- */
.dock {
  position: fixed; left: 50%; z-index: 100;
  bottom: calc(var(--inset-y) + .35rem + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 0); pointer-events: none;
  transition: transform .9s var(--ease), bottom .9s var(--ease), opacity .6s var(--ease);
}
.dock.is-load, .dock.is-clear, .dock.is-shape { bottom: 50%; transform: translate(-50%, 50%); transition: none; }
.dock-glass {
  position: relative; display: flex; gap: .2rem; padding: .32rem; overflow: hidden;
  color: var(--glass-ink); background: var(--glass);
  border: 1px solid var(--glass-line); border-radius: 999px;
  -webkit-backdrop-filter: blur(28px) saturate(1.7); backdrop-filter: blur(28px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 40px rgba(0,0,0,.35);
  pointer-events: auto;
}
.dock-meter {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px;
  width: max(calc(100% * var(--boot, 0)), 3.2rem); background: var(--ink); opacity: 1; pointer-events: none;
  transition: opacity .64s cubic-bezier(.4, 0, .2, 1);
}
.dock.is-load .dock-glass { border-color: var(--ink); animation: dock-in .62s var(--ease) both; }
.dock:not(.is-load) .dock-meter { opacity: 0; }
.dock-item {
  appearance: none; border: 0; background: none; cursor: pointer; border-radius: 999px;
  min-height: 2.55rem; padding: 0 .7rem; display: inline-flex; align-items: center; gap: .42rem;
  font-size: .8rem; font-weight: 560; letter-spacing: -.02em; white-space: nowrap;
  transition: background-color .28s, color .28s, opacity .4s;
}
.dock-icon { width: 1.15rem; height: 1.15rem; display: grid; place-items: center; transition: transform .38s var(--ease); }
.dock-icon svg { width: 100%; height: 100%; fill: currentColor; }
.dock-item[aria-current="page"] { background: rgba(255,255,255,.16); }
:root[data-theme="light"] .dock-item[aria-current="page"] { background: rgba(0,0,0,.08); }
.dock.is-live .dock-item:not([aria-current]):hover { background: rgba(255,255,255,.08); }
.dock.is-live .dock-item:hover .dock-icon { transform: translateY(-1px) scale(1.06); }
.dock-hint {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .8rem; font-weight: 560; letter-spacing: -.01em; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
/* loader states: pill with meter -> empty glass -> hint -> icons drop -> labels open */
.dock.is-load .dock-item, .dock.is-clear .dock-item { visibility: hidden; }
.dock.is-load .dock-item, .dock.is-clear .dock-item, .dock.is-shape .dock-item, .dock.is-drop .dock-item { min-width: 2.55rem; padding-inline: .72rem; gap: 0; justify-content: center; }
.dock.is-load .dock-label, .dock.is-clear .dock-label, .dock.is-shape .dock-label, .dock.is-drop .dock-label { display: none; }
.dock.is-shape .dock-item { opacity: 0; }
.app.is-hinting .dock-hint { opacity: 1; }
.dock.is-drop .dock-item { animation: dock-icons .72s var(--ease) both; }
.dock.is-drop .dock-item:nth-of-type(2) { animation-delay: 70ms; }
.dock.is-drop .dock-item:nth-of-type(3) { animation-delay: 140ms; }
.dock.is-drop .dock-item:nth-of-type(4) { animation-delay: 210ms; }
.dock.is-expand .dock-label { animation: dock-label .6s var(--ease) both; }
.dock.is-load .dock-glass, .dock.is-clear .dock-glass, .dock.is-shape .dock-glass, .dock.is-drop .dock-glass, .dock.is-expand .dock-glass { pointer-events: none; }
@keyframes dock-in { from { opacity: 0; transform: scale(.86); } }
@keyframes dock-icons { from { opacity: 0; transform: translateY(8px) scale(.6); } }
@keyframes dock-label { from { opacity: 0; max-width: 0; } to { opacity: 1; max-width: 9rem; } }

/* ---------- Blueprint board (guide, seasons, more) ---------- */
.board {
  background:
    linear-gradient(rgba(var(--grid-rgb), .07) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(90deg, rgba(var(--grid-rgb), .07) 1px, transparent 1px) 0 0 / 46px 46px,
    radial-gradient(ellipse at 50% 0%, var(--board-2), var(--board) 70%);
  color: var(--ink);
}
:root:not([data-theme="light"]) .board { --ink: #f4f3ef; }
.board-floor {
  position: absolute; left: -50%; right: -50%; top: 42%; height: 120%;
  background:
    linear-gradient(rgba(var(--grid-rgb), .16) 1px, transparent 1px) 0 0 / 92px 92px,
    linear-gradient(90deg, rgba(var(--grid-rgb), .16) 1px, transparent 1px) 0 0 / 92px 92px;
  transform: perspective(700px) rotateX(62deg); transform-origin: 50% 0;
  mask-image: linear-gradient(to bottom, transparent, #000 35%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%);
  pointer-events: none;
}
.round-btn {
  appearance: none; width: 2.75rem; height: 2.75rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(var(--ink-rgb), .16); background: rgba(var(--board-rgb), .55); color: rgba(var(--ink-rgb), .86);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
  transition: background-color .25s, border-color .25s, opacity .25s, transform .25s var(--ease);
}
.round-btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover:not(:disabled) { border-color: rgba(var(--ink-rgb), .4); transform: scale(1.05); }
.round-btn:disabled { opacity: .3; cursor: default; }

/* ---------- Episode guide ---------- */
.guide-stage {
  position: absolute; left: var(--inset-x); right: calc(var(--inset-x) + 3.5rem);
  top: calc(var(--inset-y) + 3.4rem); bottom: calc(var(--inset-y) + 12.6rem);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem);
}
.guide-num { margin: 0; justify-self: end; font-size: clamp(6rem, min(24vw, 40vh), 20rem); font-weight: 620; letter-spacing: -.075em; line-height: 1; font-variant-numeric: tabular-nums; }
.flip { display: flex; }
.digit { position: relative; display: inline-block; height: 1em; line-height: 1em; perspective: 2.6em; }
.digit-size { visibility: hidden; display: block; }
.leaf { position: absolute; inset: 0; display: block; backface-visibility: hidden; transform-origin: 50% 50%; }
.leaf-out { animation: leaf-out .55s cubic-bezier(.5, 0, .2, 1) both; }
.leaf-in { animation: leaf-in .55s cubic-bezier(.5, 0, .2, 1) both; }
@keyframes leaf-out { to { transform: rotateX(90deg) translateY(-.1em); opacity: 0; } }
@keyframes leaf-in { from { transform: rotateX(-90deg) translateY(.1em); opacity: 0; } }
.guide-post { max-width: 34rem; }
.guide-when { margin: 0; font: 400 .72rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); animation: fade .5s both; }
.guide-when span { color: var(--ink-4); }
.guide-title { margin: .5rem 0 0; font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
.word { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .06em .02em .1em; margin-bottom: -.1em; }
.word > span { display: inline-block; animation: word-up .7s var(--ease) both; }
@keyframes word-up { from { transform: translateY(105%); } }
.guide-log { margin: .55rem 0 0; color: var(--ink-2); font-size: clamp(1rem, 1.35vw, 1.2rem); animation: fade .6s .2s both; }
.guide-note { margin: .8rem 0 0; color: rgba(var(--ink-rgb), .8); font-size: clamp(.92rem, 1.15vw, 1.05rem); line-height: 1.5; animation: rise .7s var(--ease) .26s both; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .9rem 0 0; padding: 0; list-style: none; animation: fade .6s .34s both; }
.chips li { font: 400 .68rem/1 var(--mono); padding: .32rem .55rem; border-radius: 999px; background: var(--ink); color: var(--board); }
.guide-watch { display: inline-flex; gap: .4rem; margin-top: 1.1rem; font-weight: 560; font-size: .9rem; text-decoration: none; border-bottom: 1px solid rgba(var(--ink-rgb), .3); padding-bottom: .15rem; animation: fade .6s .4s both; }
.guide-watch:hover { border-color: var(--ink); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.guide-steps { position: absolute; right: clamp(.75rem, 2.5vw, 2rem); top: 50%; transform: translateY(-58%); display: flex; flex-direction: column; gap: .5rem; z-index: 3; }

.ruler { --t: 0; position: absolute; left: var(--inset-x); right: var(--inset-x); bottom: calc(var(--inset-y) + 5.6rem); height: 6rem; }
.rticks { position: absolute; left: 0; right: 0; top: 0; height: 1.6rem; }
.rtick { position: absolute; bottom: 0; width: 1px; height: .4rem; background: var(--ink-4); }
.rtick:nth-child(4n+1) { height: .7rem; }
.rlabel { position: absolute; top: 0; font: 400 .62rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); transform: translateX(-50%); white-space: nowrap; }
.rlabel:first-of-type { transform: none; }
.rline { position: absolute; left: 0; right: 0; top: 1.85rem; height: 1px; background: var(--ink-4); }
.rlit { position: absolute; left: 0; top: -.5px; height: 2px; width: calc(var(--t) * 100%); background: linear-gradient(90deg, rgba(var(--ink-rgb), .35), var(--ink)); box-shadow: 0 0 18px rgba(var(--ink-rgb), .35); transition: width .6s var(--ease); }
.rhead { position: absolute; top: 1.85rem; left: calc(var(--t) * 100%); width: 1px; height: 3.4rem; background: linear-gradient(to bottom, var(--ink), transparent); transition: left .6s var(--ease); }
.rhead::before { content: ""; position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 12px rgba(var(--ink-rgb), .8); }
.rbars { position: absolute; left: 0; right: 0; top: 2.4rem; margin: 0; padding: 0; list-style: none; display: flex; gap: 4px; }
.rbars li { flex: 1; min-width: 0; }
.rbar { appearance: none; border: 0; background: none; padding: 0; width: 100%; cursor: pointer; display: block; text-align: left; }
.rfill { display: block; height: .5rem; border-radius: 999px; background: color-mix(in oklch, var(--c) 50%, transparent); transition: height .38s var(--ease), background-color .3s, box-shadow .3s; }
.rbar:hover .rfill { background: color-mix(in oklch, var(--c) 80%, transparent); }
.rbar.is-on .rfill { height: .8rem; background: var(--c); box-shadow: 0 0 22px color-mix(in oklch, var(--c) 60%, transparent); }
.rname { display: block; margin-top: .45rem; font: 400 .6rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: clip; transition: color .3s; }
.rbar.is-on .rname { color: var(--c); }

/* ---------- Seasons shelf ---------- */
.shelf { position: absolute; left: 0; right: 0; top: 8vh; bottom: 18vh; display: flex; align-items: center; touch-action: pan-y; cursor: grab; }
.shelf-track { display: flex; padding-left: calc(50vw - min(19vw, 15rem)); will-change: transform; }
.shelf-item {
  --d: 0; flex: 0 0 auto; width: min(38vw, 30rem); display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
  transform: scale(calc(1 - min(1, abs(var(--d))) * .12)); opacity: calc(1 - min(1, abs(var(--d))) * .25);
}
.pill-label {
  font-weight: 560; font-size: .95rem; padding: .35rem .9rem; border-radius: 999px;
  background: rgba(var(--board-rgb), .7); border: 1px solid rgba(var(--ink-rgb), .2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.device { display: flex; flex-direction: column; align-items: center; text-decoration: none; transition: transform .5s var(--ease); width: 82%; }
.device:hover { transform: translateY(-6px); }
.device-body { display: block; width: 100%; padding: 2.2%; border-radius: 14px; background: linear-gradient(#2c2f36, #16181d); box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.12); }
.device-screen { display: block; position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #050608; }
.device-screen canvas { width: 100%; height: 100%; display: block; }
.screen-text { position: absolute; left: 7%; bottom: 9%; display: flex; flex-direction: column; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.screen-text strong { font-size: clamp(1.1rem, 2.2vw, 2rem); font-weight: 740; letter-spacing: -.035em; line-height: 1; }
.screen-text span { font: 400 .7rem/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.device-base { display: block; }
.device-laptop .device-body { border-radius: 14px 14px 4px 4px; }
.device-laptop .device-base { width: 118%; height: 14px; border-radius: 0 0 16px 16px; background: linear-gradient(#b9bcc4, #7d818a); box-shadow: 0 16px 30px rgba(0,0,0,.4); position: relative; }
.device-laptop .device-base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 5px; border-radius: 0 0 6px 6px; background: rgba(0,0,0,.25); }
.device-monitor .device-base { width: 18%; height: 52px; background: linear-gradient(90deg, #9da1aa, #c8cbd2, #9da1aa); clip-path: polygon(30% 0, 70% 0, 80% 100%, 20% 100%); position: relative; }
.device-monitor .device-base::after { content: ""; position: absolute; }
.device-monitor::after { content: ""; width: 34%; height: 8px; border-radius: 6px; background: linear-gradient(#c8cbd2, #8d9199); margin-top: -2px; }
.device-tv .device-body { padding: 1.2%; border-radius: 6px; background: #0d0e11; }
.device-tv .device-screen { aspect-ratio: 16 / 9; border-radius: 2px; }
.device-tv .device-base { width: 70%; height: 22px; background: linear-gradient(90deg, transparent 6%, #23252b 6%, #23252b 9%, transparent 9%, transparent 91%, #23252b 91%, #23252b 94%, transparent 94%); }
.device-tablet { width: 64%; }
.device-tablet .device-body { padding: 4%; border-radius: 26px; background: linear-gradient(#24262c, #121318); }
.device-tablet .device-screen { aspect-ratio: 4 / 3; border-radius: 10px; }
.mini-wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; padding: 6% 5%; background: #000; }
.mini-wall span { border-radius: 14% / 24%; background: #222 center / cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.shelf-prev, .shelf-next { position: absolute; top: 46%; z-index: 3; }
.shelf-prev { left: clamp(.75rem, 4vw, 3rem); }
.shelf-next { right: clamp(.75rem, 4vw, 3rem); }

/* ---------- More ---------- */
.more-wrap {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%);
  width: min(92vw, 62rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  max-height: calc(100% - 11rem); overflow: auto;
}
.panel { position: relative; padding: 1.1rem 1.1rem 1.2rem; background: rgba(var(--board-rgb), .82); border: 1px solid rgba(var(--grid-rgb), .18); }
.panel .c { position: absolute; width: 7px; height: 7px; border: 1px solid rgba(var(--ink-rgb), .55); background: var(--board); }
.panel .tl { left: -4px; top: -4px; } .panel .tr { right: -4px; top: -4px; } .panel .bl { left: -4px; bottom: -4px; } .panel .br { right: -4px; bottom: -4px; }
.panel-label { margin: 0 0 .9rem; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.panel-label:not(:first-of-type) { margin-top: 1.4rem; }
.panel-sub { margin: 0; font: 400 .62rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.panel-email { display: block; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -.02em; text-decoration: none; margin: .1rem 0 .8rem; }
.panel-email:hover { text-decoration: underline; text-underline-offset: 4px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px solid rgba(var(--grid-rgb), .14); }
.rows a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .1rem; text-decoration: none; }
.rows strong { display: block; font-weight: 500; font-size: .95rem; }
.rows small, .tiles small { display: block; font: 400 .6rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.row-arrow { width: 1.4rem; height: 1.4rem; padding: .25rem; border-radius: 50%; border: 1px solid rgba(var(--ink-rgb), .2); fill: none; stroke: currentColor; stroke-width: 2; flex: none; transition: transform .3s var(--ease); }
.rows a:hover .row-arrow { transform: translateX(3px); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.tiles li { display: flex; gap: .55rem; align-items: flex-start; padding: .6rem .65rem; border: 1px solid rgba(var(--grid-rgb), .16); background: rgba(var(--grid-rgb), .03); }
.tiles strong { font-weight: 500; font-size: .85rem; display: block; }
.tiles small { text-transform: none; letter-spacing: 0; line-height: 1.35; }
.tile-dot { width: .9rem; height: .9rem; border-radius: 50%; margin-top: .15rem; flex: none; background: radial-gradient(circle at 35% 35%, #ffd19a, rgb(var(--accent-rgb))); }
.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.socials a { display: block; text-align: center; padding: .45rem .5rem; border-radius: 999px; border: 1px solid rgba(var(--ink-rgb), .22); font-size: .8rem; text-decoration: none; transition: background-color .25s; }
.socials a:hover { background: rgba(var(--ink-rgb), .08); }
.appearance { display: flex; align-items: center; justify-content: space-between; margin-top: 1.4rem; }
.appearance .panel-label { margin: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid rgba(var(--ink-rgb), .22); }
.seg button { appearance: none; border: 0; background: none; cursor: pointer; font-size: .75rem; padding: .3rem .75rem; border-radius: 999px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--board); }

/* ---------- Inner pages (episode + season) ---------- */
.page { background: var(--page); color: var(--ink); }
.page-back, .scroll-cue {
  position: fixed; z-index: 80; display: inline-flex; align-items: center; gap: .45rem;
  font: 500 .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: .55rem .8rem; border-radius: 999px; color: #f4f3ef;
  background: rgba(10, 10, 16, .38); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: opacity .4s, transform .4s var(--ease), background-color .25s;
}
.page-back { left: var(--inset-x); top: calc(var(--inset-y) + .2rem); }
.page-back:hover { background: rgba(255,255,255,.14); }
.scroll-cue { left: var(--inset-x); bottom: calc(var(--inset-y) + .2rem); }
.scroll-cue i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; }
.scroll-cue i::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; animation: cue 1.6s infinite; }
@keyframes cue { 50% { transform: translateY(3px); } }
.page.is-scrolled .scroll-cue { opacity: 0; transform: translateY(10px); pointer-events: none; }

.hero { position: relative; height: 100vh; height: 100svh; min-height: 30rem; overflow: hidden; background: #000; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.06 + var(--hp, 0) * .08)); filter: brightness(calc(1 - var(--hp, 0) * .5)); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.25), transparent 30%, transparent 55%, rgba(11,10,18,.95)); }
.hero-title {
  position: absolute; left: var(--inset-x); right: var(--inset-x); bottom: 14vh; z-index: 2; margin: 0;
  font-size: clamp(3.2rem, 11vw, 10rem); font-weight: 740; letter-spacing: -.045em; line-height: .92; color: #fff;
  text-shadow: 0 10px 60px rgba(0,0,0,.35);
  transform: translateY(calc(var(--hp, 0) * -60px)); opacity: calc(1 - var(--hp, 0) * 1.2);
}
.hero-title .word > span { animation-duration: 1.1s; }
.hero-kicker { display: block; font: 500 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; color: rgba(255,255,255,.85); text-shadow: none; }

.content { position: relative; max-width: 50rem; margin: 0 auto; padding: 4rem var(--inset-x) 2rem; }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 0 2rem; padding: 0 0 1.6rem; border-bottom: 1px solid var(--line); }
.meta dt, .label { font: 400 .62rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.meta dd { margin: .35rem 0 0; font-size: .95rem; }
.label { margin: 0 0 .6rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 2.4rem; }
.tags li { font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(var(--ink-rgb), .04); }
.content p { color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.content h2 { margin: 2.6rem 0 .8rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.wide { max-width: 72rem; margin: 0 auto; padding: 1rem var(--inset-x) 3rem; }
.wide > h2 { margin: 1rem 0 1.2rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.player iframe, .player canvas, .player img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.player-ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; background: rgba(0,0,0,.35); }
.player-ph span { font: 400 .7rem/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.play { width: 4.5rem; height: 4.5rem; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.play::before { content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.strip { display: flex; gap: .5rem; margin-top: .7rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; }
.strip a { flex: 0 0 7.5rem; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; opacity: .55; transition: opacity .25s; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.strip a:hover, .strip a[aria-current] { opacity: 1; }
.strip img, .strip canvas { width: 100%; height: 100%; object-fit: cover; display: block; }

/* glass cards in page grids */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.4rem); list-style: none; margin: 0; padding: 0; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gcard { display: block; position: relative; border-radius: 9% / 15.5%; overflow: hidden; aspect-ratio: 720 / 418; transition: transform .6s var(--ease), filter .4s; }
.gcard img { width: 100%; height: 100%; object-fit: cover; }
.gcard:hover { transform: translateY(-4px) scale(1.02); }
.cards:hover .gcard:not(:hover) { filter: brightness(.7); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* footer */
.foot { max-width: 72rem; margin: 0 auto; padding: 5rem var(--inset-x) calc(var(--inset-y) + 1rem); }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; max-width: 40rem; margin: 0 auto 6rem; list-style: none; padding: 0; }
.foot-links a { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(var(--ink-rgb), .02); text-decoration: none; font-size: .8rem; transition: background-color .25s; }
.foot-links a:hover { background: rgba(var(--ink-rgb), .06); }
.foot-links a .row-arrow { margin-left: auto; width: 1rem; height: 1rem; padding: 0; border: 0; opacity: .5; }
.foot-links svg.ic { width: .95rem; height: .95rem; fill: currentColor; opacity: .8; }
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font: 400 .62rem/1 var(--mono); color: var(--ink-3); letter-spacing: .04em; }
.foot-bar ul { display: flex; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.foot-bar a { display: inline-block; padding: .4rem .55rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); }
.foot-bar a:hover { color: var(--ink); }

.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.notfound h1 { font-size: clamp(3rem, 10vw, 8rem); letter-spacing: -.05em; margin: 0; }
.notfound a { display: inline-block; margin-top: 1.5rem; padding: .7rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }

/* ---------- Small screens ---------- */
@media (max-width: 768px) {
  .dock-item { padding: 0 .6rem; font-size: .72rem; gap: .3rem; }
  .dock.is-live .dock-label, .dock.is-expand .dock-label { display: none; }
  .guide-stage { grid-template-columns: 1fr; align-content: center; gap: 1rem; top: calc(var(--inset-y) + 3rem); bottom: calc(var(--inset-y) + 10rem); right: var(--inset-x); }
  .guide-num { justify-self: start; font-size: clamp(5rem, 30vw, 9rem); }
  .guide-note { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .guide-steps { right: .6rem; top: auto; bottom: calc(var(--inset-y) + 11.5rem); transform: none; flex-direction: row; }
  .ruler { bottom: calc(var(--inset-y) + 4.4rem); }
  .rname { display: none; }
  .shelf-item { width: 76vw; }
  .shelf-track { padding-left: 12vw; }
  .more-wrap { grid-template-columns: 1fr; top: 4.5rem; transform: translateX(-50%); max-height: calc(100% - 10rem); }
  .meta { grid-template-columns: 1fr 1fr; }
  .cards, .cards.three { grid-template-columns: 1fr; }
  .foot-links { grid-template-columns: 1fr; }
  .foot-bar { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
