/* Remote · LaRp Night — the shared look (from Anime/ProxyDB/Chat), then the remote-play parts at the end. */
:root {
  --bg: #0b0a0b;
  --surface: #121012;
  --surface-2: #181517;
  --text: #f1e6e4;
  --text-2: #a3979a;
  --text-3: #8f8486;
  --hairline: #262123;
  --hairline-2: #3a3235;
  --fill: rgba(191, 168, 168, 0.07);
  --fill-2: rgba(191, 168, 168, 0.15);
  --accent: #bfa8a8;
  --accent-hi: #d4bfbe;
  --accent-soft: rgba(191, 168, 168, 0.14);
  --on-accent: #141012;
  --live: #94cfa9;
  --live-soft: rgba(148, 207, 169, 0.12);
  --warn: #e0b47e;
  --dead: #e4908d;
  --chrome: rgba(11, 10, 11, 0.82);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --wrap: 86rem;
  --pad: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 300 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body::after {           /* film grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 0.6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
#view { flex: 1; outline: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.label { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); }

/* ── Header bar ───────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 40; background: var(--chrome); border-bottom: 1px solid var(--hairline);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); }
.bar-inner { max-width: var(--wrap); margin: 0 auto; padding: 0.75rem var(--pad); display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.brand-mark { width: 34px; height: 34px; transition: transform 500ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .brand:hover .brand-mark { transform: rotate(-12deg); } }
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 0.3rem; }
.brand-text b { font: 600 1.02rem/1 var(--display); letter-spacing: -0.03em; text-transform: uppercase; }
.brand-text span { font-size: 0.56rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-3); }
/* ── Buttons, pills, tags ─────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.35rem; border-radius: 980px; background: var(--accent); color: var(--on-accent);
  font: 500 0.66rem var(--body); letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; transition: background-color 300ms, transform 300ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .pill:hover { background: var(--accent-hi); transform: translateY(-2px); } }
.pill:active { transform: scale(0.98); }
.pill svg { width: 12px; height: 12px; fill: currentColor; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.72rem 1.2rem; border-radius: 980px; border: 1px solid var(--hairline); color: var(--text);
  font: 500 0.62rem var(--body); letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; transition: background-color 250ms, border-color 250ms, color 250ms; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--fill); border-color: var(--hairline-2); } }
.btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: 0.4; cursor: default; background: none; }
.btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.58rem; }
.tag { display: inline-block; white-space: nowrap; border-radius: 3px; padding: 0.24rem 0.5rem; font-size: 0.58rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--fill); color: var(--text-2); }
.tag.live { background: var(--live-soft); color: var(--live); }
.tag.soon { background: rgba(224, 180, 126, 0.12); color: var(--warn); }
.tag.solid { background: var(--accent); color: var(--on-accent); }
.seg { display: inline-flex; position: relative; padding: 3px; border-radius: 980px; border: 1px solid var(--hairline); }
.seg button { position: relative; z-index: 1; padding: 0.42rem 0.95rem; border-radius: 980px; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); transition: color 300ms; }
@media (hover: hover) and (pointer: fine) { .seg button:hover { color: var(--text); } }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.seg button:disabled { opacity: 0.35; cursor: default; }
.seg .n { opacity: 0.6; letter-spacing: 0.04em; margin-left: 0.25rem; }

/* ── Posters & cards ──────────────────────────────── */
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); isolation: isolate; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0.8rem;
  background: radial-gradient(circle at 80% 10%, hsla(var(--h), 22%, 58%, 0.35), transparent 55%), linear-gradient(160deg, hsl(var(--h), 10%, 15%), hsl(var(--h), 8%, 7%) 70%); }
.poster-ph::before { content: attr(data-glyph); position: absolute; right: -0.08em; top: -0.18em; font: 600 7.5rem/1 var(--display); letter-spacing: -0.08em;
  color: hsla(var(--h), 20%, 80%, 0.07); }
.poster-ph b { position: relative; font: 500 0.82rem/1.15 var(--display); letter-spacing: -0.03em; color: rgba(241, 230, 228, 0.8); text-transform: uppercase; overflow-wrap: anywhere; }
.card { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.card .poster { transition: transform 500ms var(--ease); }
.card .poster::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: inherit; pointer-events: none; }
.card .play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(11, 10, 11, 0.45); opacity: 0; transition: opacity 300ms; }
.card .play i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); transform: scale(0.8); transition: transform 400ms var(--ease); }
.card .play svg { width: 16px; height: 16px; fill: var(--on-accent); margin-left: 3px; }
@media (hover: hover) {
  .card:hover .poster { transform: translateY(-4px); }
  .card:hover .play { opacity: 1; }
  .card:hover .play i { transform: none; }
  .card:hover .card-t { color: var(--accent); }
}
.card .badges { position: absolute; left: 0.5rem; top: 0.5rem; display: flex; gap: 0.3rem; z-index: 1; }
.card .badges .tag { background: rgba(11, 10, 11, 0.78); color: var(--text); backdrop-filter: blur(6px); }
.card .badges .tag.solid { background: var(--accent); color: var(--on-accent); }
.card-t { font-size: 0.9rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 250ms; }
.card-m { margin-top: -0.4rem; font-size: 0.7rem; color: var(--text-3); letter-spacing: 0.04em; }
.card .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(11, 10, 11, 0.7); z-index: 1; }
.card .prog i { display: block; height: 100%; background: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 2rem 1.1rem; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(9.5rem, 11rem); gap: 1.1rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; padding-block: 0.4rem 1rem; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rank .poster::before { content: ""; position: absolute; inset: 50% 0 0; z-index: 1; background: linear-gradient(0deg, rgba(11, 10, 11, 0.85), transparent); pointer-events: none; }
.rank .poster-ph b { padding-right: 3.2rem; }
.rk { position: absolute; right: 0.55rem; bottom: 0.35rem; z-index: 1; font: 600 2.8rem/1 var(--display); letter-spacing: -0.08em; color: transparent;
  -webkit-text-stroke: 1px rgba(241, 230, 228, 0.75); transition: color 300ms, -webkit-text-stroke-color 300ms; }
@media (hover: hover) { .rank:hover .rk { color: var(--accent); -webkit-text-stroke-color: var(--accent); } }

/* ── Sections ─────────────────────────────────────── */
.section { margin-top: 3.4rem; }
.sec-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.sec-head h2 { font: 500 1.05rem/1.2 var(--display); letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap; }
.sec-head::after { content: ""; flex: 1; height: 1px; background: var(--hairline); order: 2; }
.sec-head .more { order: 3; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .sec-head .more:hover { color: var(--accent-hi); } }
.rail-nav { order: 4; display: flex; gap: 0.3rem; }
.icon-btn { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid var(--hairline); color: var(--text-2);
  transition: background-color 250ms, color 250ms, border-color 250ms, transform 300ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--fill); color: var(--accent); border-color: var(--hairline-2); } }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Hero (home) ──────────────────────────────────── */
.hero { position: relative; min-height: 78svh; display: grid; place-items: center; padding: 6rem 8vw 5rem; overflow: hidden;
  background: radial-gradient(ellipse 55% 45% at 50% 50%, #1d1719 0%, var(--bg) 72%); border-bottom: 1px solid var(--hairline); }
.hero-inner { position: relative; text-align: center; transform: translate(var(--mx, 0), var(--my, 0)); transition: transform 700ms var(--ease); }
.kicker { position: absolute; left: 1%; top: -1.9rem; font-size: 0.64rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--text-3); }
.word { margin: 0; font: 500 clamp(64px, 17vw, 270px)/0.86 var(--display); letter-spacing: -0.055em; white-space: nowrap; }
.word span { display: inline-block; opacity: 0; transform: translateY(40px); animation: rise-in 1.1s var(--ease) forwards; }
.word span:nth-child(2) { animation-delay: 60ms } .word span:nth-child(3) { animation-delay: 120ms }
.word span:nth-child(4) { animation-delay: 180ms } .word span:nth-child(5) { animation-delay: 240ms }
.seal { position: absolute; right: -8%; top: -48%; width: clamp(84px, 10vw, 150px); aspect-ratio: 1; opacity: 0; animation: pop 1s 800ms var(--ease) forwards; }
.seal svg { position: absolute; inset: -22%; width: 144%; height: 144%; animation: spin 24s linear infinite; overflow: visible; }
.seal text { font: 500 9.2px var(--body); letter-spacing: 3px; fill: var(--accent); text-transform: uppercase; }
.seal img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6)); transition: transform 600ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .seal:hover img { transform: rotate(-14deg) scale(1.05); } }
.hero-row { display: flex; justify-content: space-between; gap: 2rem; margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--hairline);
  font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); opacity: 0; animation: rise-in 1s 700ms var(--ease) forwards; }
.hero-row b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.hero-cta { display: flex; justify-content: center; gap: 0.6rem; margin-top: 2.2rem; opacity: 0; animation: rise-in 1s 850ms var(--ease) forwards; }
.scroll-cue { position: absolute; right: 5vw; bottom: 2.4rem; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; color: var(--text-3); font-size: 0.56rem; letter-spacing: 0.3em; }
.scroll-cue span { writing-mode: vertical-rl; }
.scroll-cue i { width: 1px; height: 54px; background: linear-gradient(var(--accent), transparent); }

/* ── Empty / error states, skeletons, toast ───────── */
.state { padding: 5rem 1rem; text-align: center; }
.state img { width: 96px; margin: 0 auto 1.6rem; animation: float 5s ease-in-out infinite; }
.state h2 { font: 500 1.4rem/1.2 var(--display); letter-spacing: -0.03em; text-transform: uppercase; }
.state p { margin: 0.7rem auto 1.6rem; max-width: 26rem; color: var(--text-2); font-size: 0.9rem; }
.skel { background: var(--fill-2); border-radius: var(--radius); animation: pulse 1.4s ease-in-out infinite; }
.skel-card { display: flex; flex-direction: column; gap: 0.7rem; }
.skel-card .skel:first-child { aspect-ratio: 2 / 3; }
.skel-line { height: 0.8rem; }
.toast { position: fixed; left: 50%; bottom: 1.6rem; z-index: 80; transform: translate(-50%, 20px); padding: 0.75rem 1.2rem; border-radius: 980px; background: var(--accent); color: var(--on-accent);
  font: 500 0.66rem var(--body); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity 300ms, transform 400ms var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.view-in { animation: fade .45s var(--ease) both; }

/* ── Footer ───────────────────────────────────────── */
.foot { margin-top: 5rem; border-top: 1px solid var(--hairline); padding: 4.5rem 1.5rem 3rem; text-align: center; }
.foot img { width: min(180px, 46vw); margin: 0 auto; opacity: 0.9; }
.foot p { margin-top: 1.6rem; font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); }

@keyframes rise-in { to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeout { 0%, 60% { opacity: 1; } to { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.6) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes pulse { 50% { opacity: 0.45; } }
@keyframes menuDown { from { opacity: 0; transform: translateY(-8px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 10px; } }
@keyframes flash { 0%, 40% { background: var(--accent-soft); } }
/* ── Footer ───────────────────────────────────────── */
.foot { margin-top: 5rem; border-top: 1px solid var(--hairline); padding: 4.5rem 1.5rem 3rem; text-align: center; }
.foot img { width: min(180px, 46vw); margin: 0 auto; opacity: 0.9; }
.foot p { margin-top: 1.6rem; font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); }

/* ══ Remote ═══════════════════════════════════════════════════════════ */
.foot { margin-top: 5rem; }
.nav button { padding: 0.45rem 0.9rem; border-radius: 980px; font-size: 0.64rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-2); transition: color 200ms, background-color 200ms; }
@media (hover: hover) and (pointer: fine) { .nav button:hover { color: var(--text); background: var(--fill); } }
.bar .nav { margin-left: auto; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.live { background: var(--live); box-shadow: 0 0 0 4px var(--live-soft); animation: pulse 2.4s ease-in-out infinite; }
.dot.warn { background: var(--warn); } .dot.dead { background: var(--dead); }

/* ── Sign in ─────────────────────────────────────── */
.gate { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; place-items: center;
  background: radial-gradient(ellipse 55% 45% at 50% 42%, #1d1719 0%, var(--bg) 72%); }
.gate .hero { min-height: 0; padding: 7rem 8vw 2rem; background: none; border: 0; }
.gate .word { font-size: clamp(56px, 15vw, 230px); }
.signin { width: min(25rem, calc(100vw - 2rem)); margin: 0 auto 4rem; display: grid; gap: 0.9rem; opacity: 0; animation: rise-in 1s 850ms var(--ease) forwards; }
.signin .label { display: flex; justify-content: space-between; }
.field { position: relative; }
.field input { width: 100%; height: 3rem; padding: 0 1.2rem; border-radius: 980px; border: 1px solid var(--hairline); background: rgba(18, 16, 18, 0.7);
  color: var(--text); font: 400 0.95rem var(--body); outline: none; transition: border-color 200ms, background-color 200ms; }
.field input::placeholder { color: var(--text-3); opacity: 1; }
.field input:focus { border-color: var(--accent); background: var(--surface); }
.field input.code { letter-spacing: 0.5em; text-align: center; font-variant-numeric: tabular-nums; }
.signin .pill { justify-content: center; height: 3rem; }
.signin .pill:disabled { opacity: 0.5; transform: none; cursor: progress; }
.signin .err { min-height: 1.2rem; text-align: center; font-size: 0.8rem; color: var(--dead); }
.signin .fine { text-align: center; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3); }
.shake { animation: shake 400ms var(--ease); }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

/* ── Library ─────────────────────────────────────── */
.home .hero { min-height: 62svh; }
.pc-row b .dot { margin-right: 0.5rem; vertical-align: 1px; }
.lib-tools { display: flex; gap: 0.5rem; align-items: center; }
.lib-find { position: relative; width: min(16rem, 50vw); }
.lib-find input { width: 100%; height: 2.2rem; padding: 0 1rem; border-radius: 980px; border: 1px solid var(--hairline); background: transparent; color: var(--text);
  font: 400 0.82rem var(--body); outline: none; }
.lib-find input:focus { border-color: var(--accent); background: var(--surface); }
.card { text-align: left; }
.card .src { position: absolute; left: 0.5rem; bottom: 0.5rem; z-index: 1; }
.card .src .tag { background: rgba(11, 10, 11, 0.78); color: var(--text); backdrop-filter: blur(6px); }
.card.desk .poster-ph { background: radial-gradient(circle at 70% 20%, rgba(191, 168, 168, 0.32), transparent 55%), linear-gradient(160deg, #1d1719, #0e0c0d 70%); }
.card.busy .play { opacity: 1; } .card.busy .play i { animation: pulse 1s ease-in-out infinite; transform: none; }

/* ── Player ──────────────────────────────────────── */
body.playing { overflow: hidden; }
body.playing .bar, body.playing .foot, body.playing #view { display: none; }
.stage { position: fixed; inset: 0; z-index: 60; background: #000; display: grid; place-items: center; overflow: hidden; touch-action: none;
  -webkit-user-select: none; user-select: none; }
.stage canvas { width: 100%; height: 100%; object-fit: contain; display: block; outline: none; }
.stage.game canvas, .stage.hide-cursor canvas { cursor: none; }
.stage.desk canvas { cursor: default; }
.hud { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.7rem max(1rem, env(safe-area-inset-right)) 0.7rem max(1rem, env(safe-area-inset-left));
  background: linear-gradient(rgba(11, 10, 11, 0.92), rgba(11, 10, 11, 0.6) 70%, transparent); transition: opacity 300ms, transform 400ms var(--ease); }
.stage.idle .hud { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.hud .t { display: flex; flex-direction: column; line-height: 1.1; gap: 0.25rem; margin-right: auto; min-width: 0; }
.hud .t b { font: 500 0.86rem/1 var(--display); letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud .t span { display: flex; align-items: center; gap: 0.45rem; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud .seg { background: rgba(11, 10, 11, 0.6); }
.hud .icon-btn { background: rgba(11, 10, 11, 0.6); }
.hud .icon-btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 5; min-width: 13rem; padding: 0.35rem; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); transform-origin: 100% 0; animation: menuDown 220ms var(--ease) both; }
.menu button { display: flex; width: 100%; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.7rem; border-radius: 3px; font-size: 0.82rem; text-align: left; }
.menu button kbd { font: 500 0.62rem var(--body); color: var(--text-3); letter-spacing: 0.06em; }
.menu button:hover, .menu button:focus-visible { background: var(--fill); }
.menu hr { border: 0; border-top: 1px solid var(--hairline); margin: 0.35rem 0; }
.menu .label { padding: 0.5rem 0.7rem 0.3rem; }
.menu .danger { color: var(--dead); }
.anchor { position: relative; }
.cover { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(11, 10, 11, 0.72); backdrop-filter: blur(6px); text-align: center; padding: 2rem; }
.cover h2 { font: 500 clamp(1.3rem, 3vw, 2rem)/1.15 var(--display); letter-spacing: -0.03em; text-transform: uppercase; }
.cover p { margin: 0.8rem auto 1.6rem; max-width: 30rem; color: var(--text-2); font-size: 0.9rem; }
.cover .spinner { width: 54px; height: 54px; margin: 0 auto 1.6rem; position: relative; }
.cover .spinner img { width: 100%; height: 100%; animation: spin 3s linear infinite; }
.cover .row { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.hint { position: absolute; left: 50%; bottom: calc(1.4rem + env(safe-area-inset-bottom)); z-index: 3; transform: translateX(-50%); padding: 0.55rem 1rem; border-radius: 980px;
  background: rgba(11, 10, 11, 0.8); border: 1px solid var(--hairline); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2);
  white-space: nowrap; pointer-events: none; animation: fadeout 4s var(--ease) forwards; }
.hint kbd { font: 600 0.62rem var(--body); color: var(--accent); }
.type-box { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }
.stats-box { position: absolute; right: 1rem; bottom: 1rem; z-index: 3; padding: 0.6rem 0.8rem; border-radius: var(--radius); background: rgba(11, 10, 11, 0.82);
  border: 1px solid var(--hairline); font: 400 0.68rem/1.6 var(--body); color: var(--text-2); font-variant-numeric: tabular-nums; pointer-events: none; }
.stats-box b { color: var(--text); font-weight: 500; }

@media (max-width: 900px) {
  .hero-row { flex-direction: column; gap: 0.5rem; align-items: center; }
  .scroll-cue { display: none; }
  .hud .seg button { padding: 0.4rem 0.6rem; letter-spacing: 0.08em; }
}
@media (max-width: 560px) {
  .brand-text span { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 0.8rem; }
  .hud .hide-sm { display: none; }
  .sec-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .word span, .seal, .hero-row, .hero-cta, .signin { opacity: 1; transform: none; }
}
button, a, .btn, .pill, .seg button, .card, .icon-btn, .nav a { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.btn:active, .pill:active, .seg button:active { transform: scale(0.97); }
.bar-inner, .wrap { padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
@media (pointer: coarse) { input { font-size: 16px; } }
.nav { display: flex; gap: 0.25rem; }
.nav a { padding: 0.45rem 0.9rem; border-radius: 980px; font-size: 0.64rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-2); transition: color 200ms, background-color 200ms; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--text); background: var(--fill); } }
.nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.search { position: relative; margin-left: auto; width: min(22rem, 100%); }
.search svg { position: absolute; left: 0.95rem; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.poster > img { position: absolute; inset: 0; z-index: 1; }
.card .src, .card .play { z-index: 2; }
.card .poster-ph b { padding-bottom: 2.1rem; }
.lib-tools { order: 3; }
