/* Rostar Roleplay — site styles (calm dark) */

:root {
  --bg: #121416;
  --bg-2: #15181a;
  --surface: #181b1e;
  --surface-2: #1e2225;
  --surface-3: #262b2f;
  --border: rgba(255, 255, 255, .07);
  --border-2: rgba(255, 255, 255, .1);
  --border-3: rgba(255, 255, 255, .16);
  --line: rgba(255, 255, 255, .06);
  --text: #ebe9e4;
  --text-2: #b4b2ad;
  --muted: #8b8984;
  --faint: #62615d;
  --accent: #3fc3d6;
  --accent-hi: #6ad5e4;
  --accent-deep: #238e9d;
  --accent-fg: #04191d;
  --accent-text: #7fd9e7;
  --accent-soft: rgba(63, 195, 214, .1);
  --accent-line: rgba(63, 195, 214, .35);
  --glow: rgba(63, 195, 214, .16);
  --ok: #8fcf6a;
  --warn: #e0b04a;
  --danger: #e06464;
  --info: #72a7e8;
  --discord: #5865f2;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --font: "Barlow Condensed", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  --font-serif: var(--font-head);
  --container: 1200px;
  --header-h: 0px;
  --rail-w: 72px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 17.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
.bg-art { display: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); line-height: 1.2; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; height: 1px; background: var(--line); margin: 28px 0; }
::selection { background: rgba(63, 195, 214, .3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.icon { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -48px; z-index: 200; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 880px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.mono { font-family: var(--font-mono); font-size: .9em; }
.nowrap { white-space: nowrap; }
.t-right { text-align: right; }
.t-center { text-align: center; }
.t-warn { color: var(--warn); }
.t-accent { color: var(--accent-text); }
.stack-top { margin-top: 16px; }
.crumbs-top { margin-bottom: 20px; }
.pt-0 { padding-top: 0; }
code, kbd { font-family: var(--font-mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--accent-text); }
.rec { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); flex: none; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
[data-state="online"] .dot, .dot-on { background: var(--ok); }
[data-state="offline"] .dot, .dot-off { background: var(--danger); }

/* ---------- Buttons ---------- */
.btn { --h: 42px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 18px; overflow: hidden; border-radius: 10px; border: 1px solid transparent; font-size: 14.5px; font-weight: 600; line-height: 1; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, translate .2s var(--ease), box-shadow .2s; }
.btn:hover { translate: 0 -1px; }
.btn:active { translate: 0 0; }
.btn-primary:hover { box-shadow: 0 10px 26px -12px rgba(63, 195, 214, .55); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); pointer-events: none; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn .icon { transition: translate .2s var(--ease); }
.btn:hover .icon-arrow-right, .btn:hover > .icon:last-child:not(:first-child) { translate: 3px 0; }
.btn .icon { width: 16px; height: 16px; }
.btn small { font-size: 11.5px; padding: 2px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-text); }
.btn-lg { --h: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-sm { --h: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn-xs { --h: 28px; padding: 0 10px; font-size: 12.5px; gap: 6px; border-radius: 8px; }
.btn-xs .icon { width: 14px; height: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-outline { border-color: var(--border-3); color: var(--text); }
.btn-outline:hover { border-color: rgba(255, 255, 255, .26); background: var(--surface-2); }
.btn-secondary, .btn-ghost { border-color: var(--border); background: var(--surface-2); color: var(--text); }
.btn-secondary:hover, .btn-ghost:hover { background: var(--surface-3); }
.btn-plain { padding: 0 8px; color: var(--text-2); }
.btn-plain:hover { color: var(--text); background: var(--surface-2); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: #4d59e0; }
.btn-danger-ghost { border-color: rgba(224, 100, 100, .3); color: #f0a3a3; }
.btn-danger-ghost:hover { background: rgba(224, 100, 100, .1); }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.round-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); transition: .15s; }
.round-btn:hover { background: var(--surface-2); }
.round-btn .icon { width: 17px; height: 17px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--text-2); transition: .15s; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn .icon { width: 18px; height: 18px; }

/* ---------- Side rail (navigation) ---------- */
body { padding-left: var(--rail-w); }
.topbar { display: none; }
.burger { display: none; }
.rail { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; display: flex; flex-direction: column; width: var(--rail-w); padding: 16px 12px; overflow: hidden; border-right: 1px solid var(--line); background: var(--bg); transition: width .25s var(--ease), box-shadow .25s; }
.rail:hover, .rail:focus-within { width: 240px; box-shadow: 30px 0 60px -30px rgba(0, 0, 0, .8); }
.rail-brand { display: flex; align-items: center; gap: 12px; height: 44px; margin-bottom: 20px; padding-left: 2px; white-space: nowrap; flex: none; }
.rail-brand img { width: 40px; flex: none; }
.rail-brand .rail-text { font-size: 16px; font-weight: 700; line-height: 1.15; }
.rail-brand small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.rail-nav { display: flex; flex: 1; flex-direction: column; gap: 2px; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
.rail-nav::-webkit-scrollbar { display: none; }
.rail-link { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; height: 42px; padding: 0 12px; border-radius: 11px; color: var(--muted); white-space: nowrap; flex: none; transition: background .15s, color .15s; }
.rail-link:hover { background: var(--surface); color: var(--text); }
.rail-link.is-active { background: var(--surface-2); color: var(--text); }
.rail-link.is-active::before { content: ""; position: absolute; left: -12px; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.rail-ico { display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.rail-ico .icon { width: 19px; height: 19px; }
.rail-ico img { width: 26px; height: 26px; max-width: none; border-radius: 50%; }
.rail-text { font-size: 14.5px; font-weight: 500; opacity: 0; transform: translateX(-6px); transition: opacity .15s, transform .2s var(--ease); }
.rail:hover .rail-text, .rail:focus-within .rail-text { opacity: 1; transform: none; transition-delay: .05s; }
.rail-sep { height: 1px; margin: 10px 10px; background: var(--line); flex: none; }
.rail-foot { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); flex: none; }
.rail-status .rail-text { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.rail-status b { font-size: 13px; font-weight: 400; color: var(--muted); }
.rail-status .dot { width: 8px; height: 8px; }
.rail-link[data-login] { color: var(--text); }
.rail-link[data-login] .rail-ico { color: #fff; }
.rail-user { position: relative; }
.rail-user > .rail-link { text-align: left; }
.rail-backdrop { display: none; }
.announce { border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13.5px; color: var(--text-2); }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; text-align: center; }
.announce-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Dropdown (user menu in the rail) */
.has-drop { position: relative; }
.drop { position: fixed; z-index: 80; min-width: 220px; padding: 6px; border: 1px solid var(--border-2); border-radius: 14px; background: var(--surface-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s var(--ease), visibility 0s .15s; }
.drop-up { left: 252px; bottom: 16px; }
.has-drop.is-open > .drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drop-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; text-align: left; transition: background .15s; }
.drop-item:hover { background: var(--surface-3); }
.drop-item strong { display: block; font-size: 14px; font-weight: 500; color: var(--text); }
.drop-ico { display: grid; place-items: center; width: 22px; height: 22px; color: var(--muted); flex: none; }
.drop-ico .icon { width: 16px; height: 16px; }
.drop-item:hover .drop-ico { color: var(--text); }
.drop-count { margin-left: auto; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-size: 11.5px; font-style: normal; font-weight: 600; }
.drop-danger strong, .drop-danger .drop-ico { color: #f0a3a3; }
.drop-form { margin: 0; }
.drop-user { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); }
.drop-user img { border-radius: 50%; }
.drop-user strong { display: block; font-size: 14px; }
.drop-user small { font-size: 12.5px; color: var(--muted); }

/* ---------- Motion: blocks fade up as they enter the screen (classes added by app.js) ---------- */
.rv { opacity: 0; translate: 0 22px; transition: opacity .7s var(--ease), translate .9s var(--ease); }
.rv.is-in { opacity: 1; translate: 0 0; }
.rail-link .rail-ico { transition: translate .2s var(--ease), color .15s; }
.rail-link:hover .rail-ico { translate: 2px 0; }

/* ---------- Home ---------- */
.page-home .site-footer { margin-top: 0; }

/* Home stage: the page does not scroll. One cinematic video plays behind every scene; the
   scenes switch with the bottom navigation, arrow keys, the mouse wheel or a swipe (home.js).
   Only transform/opacity/filter animate. Without JavaScript the tabs still work via :target. */
body.page-home { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: none; }
.page-home main { position: relative; flex: 1 1 auto; min-height: 0; }
body.page-home > .site-footer { display: none; }
.page-home .live-tab { top: calc(var(--header-h) + 16px); bottom: auto; }
.page-home .cookie-note { bottom: 92px; }

.h-stage { --nav-h: 76px; position: absolute; inset: 0; isolation: isolate; overflow: hidden; background: #0b0c0d; }
.h-stage-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.h-stage-media { position: absolute; inset: -36px; backface-visibility: hidden; }
.h-stage.has-video .h-stage-media { will-change: transform; }
.h-stage-cam { position: absolute; inset: 0; transform: translate3d(var(--cam-x, 0%), var(--cam-y, 0%), 0) scale(var(--cam-s, 1)); transform-origin: 50% 45%; filter: blur(var(--blur, 0px)) saturate(calc(1 - var(--dim, 0) * .3)); transition: transform 2.8s cubic-bezier(.22, .61, .24, 1), filter 1.1s var(--ease); }
.h-stage.is-cutting .h-stage-cam { filter: blur(calc(var(--blur, 0px) + 8px)); transition-duration: 2.8s, .45s; }
.h-stage-drift { position: absolute; inset: 0; animation: h-drift 28s ease-in-out infinite alternate; }
.h-hero-film { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; background: #0b0c0d; animation: h-film-in 1.8s var(--ease) both; }
.h-hero-video { position: absolute; inset: 0; overflow: hidden; background: #0d0f10; }
.h-hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.h-hero-video iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-width: 177.78vh; min-height: 100vh; border: 0; transform: translate(-50%, -50%); opacity: 0; transition: opacity .8s var(--ease); pointer-events: none; }
.h-hero-video iframe.is-ready { opacity: 1; }
.h-aurora { position: absolute; inset: -20%; background: radial-gradient(36% 44% at 16% 22%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), radial-gradient(32% 40% at 86% 14%, color-mix(in srgb, var(--discord) 26%, transparent), transparent 70%), radial-gradient(38% 38% at 56% 94%, color-mix(in srgb, var(--warn) 20%, transparent), transparent 70%); filter: blur(70px); opacity: .7; }
/* Per-scene darkening so lists and text stay readable over the footage */
.h-stage-dim { position: absolute; inset: 0; background: radial-gradient(ellipse 90% 80% at 35% 50%, rgba(9, 10, 11, .96), rgba(9, 10, 11, .82) 70%, rgba(9, 10, 11, .9)); opacity: var(--dim, 0); transition: opacity 1.2s var(--ease); }
/* Cinematic grade: soft backdrop behind centred text, vignette, darker top and bottom edges */
.h-hero-shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse 56% 44% at 50% 50%, rgba(8, 9, 10, .38), transparent 72%),
  radial-gradient(ellipse 125% 95% at 50% 46%, transparent 52%, rgba(4, 5, 6, .6) 100%),
  linear-gradient(180deg, rgba(8, 9, 10, .5) 0%, rgba(8, 9, 10, .05) 22%, rgba(8, 9, 10, .08) 66%, rgba(8, 9, 10, .7) 100%); }
.h-hero-grain { position: absolute; inset: 0; opacity: .07; background-size: 180px 180px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* Dip to black while the footage jumps to the next shot */
.h-stage-cut { position: absolute; inset: 0; background: #050606; opacity: 0; transition: opacity .45s ease; }
.h-stage.is-cutting .h-stage-cut { opacity: .82; }

/* Scenes: stacked on top of each other, one visible at a time */
.h-scenes { position: absolute; inset: 0 0 var(--nav-h); z-index: 1; }
.h-scene { --enter: 28px; --leave: -28px; position: absolute; inset: 0; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; opacity: 0; visibility: hidden; transform: translate3d(0, var(--enter), 0); transition: none; }
.h-stage[data-dir="prev"] .h-scene { --enter: -28px; --leave: 28px; }
.h-scene.is-leaving { transform: translate3d(0, var(--leave), 0); transition: opacity .5s ease, transform .9s var(--ease), visibility 0s linear .9s; }
.h-scene.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .8s ease .3s, transform 1.1s var(--ease) .25s, visibility 0s; }
.h-stage:not(.is-ready) .h-scene:target { opacity: 1; visibility: visible; transform: none; }
.h-stage:not(.is-ready) .h-scenes:has(.h-scene:target) .h-scene.is-active:not(:target) { opacity: 0; visibility: hidden; }
.h-scene-inner { position: relative; width: 100%; margin-block: auto; padding-top: 48px; padding-bottom: 40px; }
.h-scene.is-active .h-scene-inner > * { animation: h-rise 1s var(--ease) both; animation-delay: .35s; }
.h-scene.is-active .h-scene-inner > :nth-child(2) { animation-delay: .45s; }
.h-scene.is-active .h-scene-inner > :nth-child(3) { animation-delay: .55s; }
.h-scene.is-active .h-scene-inner > :nth-child(n + 4) { animation-delay: .65s; }
.h-stage:not(.is-ready) .h-scene.is-active .h-scene-inner > * { animation-delay: 0s; }
.h-scene.is-active :is(.h-steps, .h-factions, .h-news-list, .h-stats) > * { animation: h-rise .9s var(--ease) both; animation-delay: .55s; }
.h-scene.is-active :is(.h-steps, .h-factions, .h-news-list, .h-stats) > :nth-child(2) { animation-delay: .62s; }
.h-scene.is-active :is(.h-steps, .h-factions, .h-news-list, .h-stats) > :nth-child(3) { animation-delay: .69s; }
.h-scene.is-active :is(.h-steps, .h-factions, .h-news-list, .h-stats) > :nth-child(4) { animation-delay: .76s; }
.h-scene.is-active :is(.h-steps, .h-factions, .h-news-list, .h-stats) > :nth-child(5) { animation-delay: .83s; }
.h-scene.is-active :is(.h-steps, .h-factions, .h-news-list, .h-stats) > :nth-child(6) { animation-delay: .9s; }
.h-scene.is-active :is(.h-steps, .h-factions, .h-news-list, .h-stats) > :nth-child(n + 7) { animation-delay: .97s; }
.h-scene .h-factions a, .h-scene .h-news-list a, .h-scene .h-steps li { transition: translate .25s var(--ease), color .15s; }
.h-scene .h-factions a:hover, .h-scene .h-news-list a:hover { translate: 6px 0; }
.h-scene .h-head { margin-bottom: 36px; }

/* 01 · Intro */
.h-scene--intro .h-scene-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.h-hero-kicker { display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(12, 14, 15, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.h-brand { display: flex; flex-direction: column; align-items: center; margin-top: 30px; line-height: 1; letter-spacing: 0; }
.h-brand-mark { width: clamp(60px, 6.5vw, 96px); height: auto; margin-bottom: 20px; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .55)); }
.h-brand-name { display: block; font-family: var(--font-head); font-size: clamp(72px, min(13vw, 20vh), 200px); font-weight: 800; line-height: .86; letter-spacing: 0; color: #f3f1ec; text-shadow: 0 4px 40px rgba(0, 0, 0, .45); }
.h-brand-sub { display: flex; align-items: center; gap: 18px; margin-top: 16px; font-size: clamp(13px, 1.3vw, 18px); font-weight: 600; letter-spacing: .62em; text-transform: uppercase; color: var(--accent-text); text-shadow: 0 1px 14px rgba(0, 0, 0, .6); }
.h-brand-sub::before, .h-brand-sub::after { content: ""; width: clamp(28px, 4vw, 64px); height: 1px; background: currentColor; opacity: .5; }
.h-brand-sub::before { margin-right: .62em; }
.h-lead { max-width: 540px; margin-top: 30px; font-size: 18px; line-height: 1.6; color: rgba(235, 233, 228, .84); text-shadow: 0 1px 18px rgba(0, 0, 0, .7); }
.h-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.h-scene--intro .h-actions { justify-content: center; margin-top: 32px; }
.btn-glass { border-color: rgba(255, 255, 255, .22); background: rgba(12, 14, 15, .4); color: var(--text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { border-color: rgba(255, 255, 255, .34); background: rgba(30, 34, 37, .66); }

/* 02 · Getting started (+ live numbers) */
.h-scene .h-stats { margin-top: 44px; }
.h-scene .h-stats > div { padding-top: 18px; }


/* 03 · News */
.h-scene .h-news-media { max-height: 36dvh; }


/* 05 · Closing + footer */
.h-cta-title { font-family: var(--font-head); font-size: clamp(50px, min(7.6vw, 13vh), 112px); font-weight: 700; line-height: .98; letter-spacing: 0; }
.h-scene--cta .h-actions { margin-top: 32px; }
.h-scene-foot { margin-top: 56px; }
.h-scene-foot .site-footer { margin: 0; padding: 26px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.h-scene-foot .container { max-width: none; padding: 0; }
.h-scene-foot .footer-inner { justify-items: start; gap: 14px; text-align: left; }
.h-scene-foot .socials, .h-scene-foot .footer-links { justify-content: flex-start; }
.h-scene-foot .socials a { background: rgba(255, 255, 255, .06); }

/* Bottom navigation */
.h-stage-nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 10px; height: var(--nav-h); padding: 0 24px; border-top: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, rgba(10, 11, 12, .45), rgba(10, 11, 12, .8)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.h-stage-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 40px; height: 40px; flex: none; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .04); font-size: 14px; font-weight: 600; color: var(--text-2); transition: background .15s, color .15s, border-color .15s, opacity .2s; }
.h-stage-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .1); color: var(--text); }
.h-stage-btn:disabled { opacity: .3; cursor: default; }
.h-stage-btn .icon { width: 15px; height: 15px; }
.h-stage-toggle .icon { width: 12px; height: 12px; }
.h-stage-toggle .i-play, .h-stage-toggle[aria-pressed="true"] .i-pause { display: none; }
.h-stage-toggle[aria-pressed="true"] .i-play { display: block; }
/* Music control: speaker button + level slider (slides open on hover; a small panel on touch) */
.h-sound { position: relative; display: flex; align-items: center; flex: none; }
.h-sound .i-vol-on, .h-sound.is-on .i-vol-off { display: none; }
.h-sound.is-on .i-vol-on { display: block; }
.h-sound.is-on .h-sound-btn { border-color: var(--accent-line); color: var(--accent-text); }
.h-sound-btn { position: relative; }
.h-sound.is-waiting .h-sound-btn { color: var(--text); }
.h-sound.is-waiting .h-sound-btn::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--accent); border-radius: inherit; opacity: 0; animation: h-ping 2.4s ease-out infinite; pointer-events: none; }
.h-sound-range { display: flex; align-items: center; width: 0; height: 40px; overflow: hidden; opacity: 0; transition: width .3s var(--ease), opacity .2s, margin .3s var(--ease); }
.h-sound:hover .h-sound-range, .h-sound:focus-within .h-sound-range { width: 92px; margin-left: 10px; opacity: 1; }
.h-sound-range input { --fill: 12%; width: 92px; height: 18px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.h-sound-range input::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--fill), rgba(255, 255, 255, .18) var(--fill)); }
.h-sound-range input::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--fill), rgba(255, 255, 255, .18) var(--fill)); }
.h-sound-range input::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4.5px; border: 0; border-radius: 50%; background: var(--text); -webkit-appearance: none; appearance: none; }
.h-sound-range input::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--text); }
.h-sound-range input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (hover: none) {
  .h-sound-range, .h-sound:hover .h-sound-range, .h-sound:focus-within .h-sound-range { position: absolute; left: -8px; bottom: calc(100% + 12px); width: 152px; height: 44px; margin: 0; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(20, 22, 24, .94); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .8); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s; }
  .h-sound.is-open .h-sound-range { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .h-sound-range input { width: 100%; height: 28px; }
}
.h-stage-next { width: auto; min-width: 40px; padding: 0 14px 0 18px; border-color: var(--accent-line); color: var(--text); }
.h-stage-next:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.h-stage-next:hover:not(:disabled) .icon { transform: translateX(2px); }
.h-stage-next .icon { transition: transform .2s var(--ease); }
.h-stage-tabs { display: flex; flex: 1 1 auto; min-width: 0; height: 100%; margin: 0 6px; }
.h-stage-tabs li { flex: 1 1 0; min-width: 0; }
.h-stage-tabs a { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; padding: 0 8px; font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .2s; }
.h-stage-tabs a span { overflow: hidden; text-overflow: ellipsis; }
.h-stage-tabs a::before { content: ""; position: absolute; left: 10px; right: 10px; top: -1px; height: 2px; border-radius: 0 0 2px 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.h-stage-tabs a:hover { color: var(--text-2); }
.h-stage-tabs a[aria-current] { color: var(--text); }
.h-stage-tabs a[aria-current]::before { transform: scaleX(1); }
.h-stage-tabs b { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--faint); transition: color .2s; }
.h-stage-tabs a[aria-current] b { color: var(--accent-text); }
.h-stage-now { display: none; }

@keyframes h-film-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes h-drift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.05) translate3d(-1%, -.6%, 0); } }
@keyframes h-ping { 0% { opacity: .7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.45); } }
@keyframes h-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Live numbers */
.h-stats-section { padding: 64px 0 8px; }
.h-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.h-stats > div { display: flex; flex-direction: column; align-items: center; padding: 22px 16px 0; text-align: center; border-right: 1px solid var(--line); }
.h-stats > div:last-child { border-right: 0; }
.h-stats dt { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.h-stats dd { font-family: var(--font-head); margin: 6px 0 0; font-size: 34px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.h-stats dd small { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--muted); }

.h-section { position: relative; padding-top: 104px; padding-bottom: 104px; }
.h-section::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--line); }
.h-label { font-size: 14px; font-weight: 500; color: var(--accent-text); }
.h-head { margin-bottom: 52px; }
.h-head-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; }
.h-head h2, .h-split h2 { margin-top: 10px; font-size: clamp(38px, 4.3vw, 62px); font-weight: 600; line-height: 1.05; letter-spacing: 0; }
.h-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--text); transition: color .15s; }
.h-link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.h-link:hover { color: var(--accent-hi); }
.h-link:hover .icon { transform: translateX(3px); }
.h-muted { color: var(--muted); }
.h-text { max-width: 460px; margin-top: 18px; font-size: 17px; color: var(--text-2); }

/* Reused for the hero's two-column layout (copy | terminal) */
.h-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; gap: 72px; }

/* Steps */
.h-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.h-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border-2); }
.h-step-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.h-step-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; }
.h-step-ico .icon { width: 16px; height: 16px; }
.h-step-ico--discord { background: var(--discord); }
.h-step-ico--accent { background: var(--accent); color: var(--accent-fg); }
.h-step-ico--warn { background: var(--warn); color: #241a04; }
.h-step-no { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.h-steps h3 { font-size: 22px; font-weight: 600; letter-spacing: 0; }
.h-steps p { color: var(--text-2); }
.h-copy { display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--border-2); border-radius: 10px; color: var(--text-2); text-align: left; transition: border-color .15s, color .15s; }
.h-copy code { overflow: hidden; padding: 0; border: 0; background: none; text-overflow: ellipsis; white-space: nowrap; }
.h-copy:hover, .h-copy.is-copied { border-color: var(--accent-line); color: var(--text); }

/* News */
.h-news { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 56px; }
.h-news-lead { display: grid; gap: 12px; }
.h-news-media { display: grid; place-items: center; aspect-ratio: 16 / 10; margin-bottom: 8px; overflow: hidden; border-radius: 16px; background: var(--surface); }
.h-news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.h-news-media img.h-news-logo { width: 26%; height: auto; opacity: .3; }
.h-news-lead:hover .h-news-media img { transform: scale(1.03); }
.h-news-lead strong { font-family: var(--font-head); font-size: clamp(22px, 2.3vw, 32px); font-weight: 600; line-height: 1.18; letter-spacing: 0; }
.h-news-lead:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.h-news-excerpt { color: var(--text-2); }
.h-meta { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.h-cat { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.h-cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cc, var(--accent)); }
.h-news-list { border-top: 1px solid var(--line); }
.h-news-list li a { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.h-news-list li.h-muted { padding: 20px 0; }
.h-news-list strong { font-size: 18px; font-weight: 500; line-height: 1.35; letter-spacing: 0; }
.h-news-list a:hover strong { color: #fff; text-decoration: underline; text-decoration-color: var(--border-3); text-underline-offset: 4px; }

/* Factions */
.h-factions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
.h-factions a { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.h-faction-logo { display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: color-mix(in srgb, var(--fc) 40%, var(--surface-2)); font-size: 13px; font-weight: 700; color: #fff; flex: none; transition: transform .2s var(--ease); }
.h-faction-logo img { width: 100%; height: 100%; object-fit: cover; }
.h-factions strong { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.h-factions small { display: block; font-size: 13px; color: var(--muted); }
.h-factions a:hover .h-faction-logo { transform: scale(1.06); }
.h-factions a:hover strong { color: #fff; }

/* Season band */
.h-season { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 540px; padding: 104px 0 72px; overflow: hidden; background: var(--surface); }
.h-season-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.h-season::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 20, 22, .15), rgba(18, 20, 22, .96) 92%); }
.h-season-mark { position: absolute; right: 6%; top: 44%; z-index: -2; width: min(40vw, 520px); transform: translateY(-50%); opacity: .08; }
.h-season-inner { position: relative; width: 100%; }
.h-season h2 { max-width: 900px; margin-top: 10px; font-size: clamp(42px, 6.4vw, 96px); font-weight: 600; line-height: .98; letter-spacing: -.05em; }
.h-play { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 15px; font-weight: 500; }
.h-play span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--text); color: #121416; transition: transform .2s var(--ease); }
.h-play span .icon { width: 18px; height: 18px; margin-left: 2px; }
.h-play:hover span { transform: scale(1.07); }
.h-chronicle { display: flex; flex-wrap: wrap; margin-top: 64px; border-top: 1px solid rgba(255, 255, 255, .12); }
.h-chronicle li { flex: 1 1 180px; padding: 18px 24px 0 0; }
.h-chronicle strong { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.h-chronicle .is-current strong { color: var(--accent-text); }
.h-chronicle span { display: block; margin-top: 4px; font-size: 16px; font-weight: 500; }
.h-chronicle a:hover span { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Closing */
.h-cta { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 32px; padding-top: 128px; padding-bottom: 128px; }
.h-cta h2 { font-size: clamp(42px, 6.4vw, 96px); font-weight: 600; line-height: .98; letter-spacing: -.05em; }

/* Live streamers: floating button + drawer */
.live-tab { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px; border: 1px solid var(--border-2); border-radius: 999px; background: rgba(30, 34, 37, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .7); font-size: 14px; font-weight: 600; color: var(--text); transition: background .15s; }
.live-tab:hover { background: var(--surface-3); }
.edge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.edge-dot.is-live { background: var(--danger); box-shadow: 0 0 0 3px rgba(224, 100, 100, .2); }
.drawer { position: fixed; top: 12px; bottom: 12px; z-index: 70; display: flex; flex-direction: column; width: 360px; max-width: calc(100vw - 24px); border: 1px solid var(--border-2); background: var(--surface); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); transition: transform .35s var(--ease); }
.drawer-right { right: 12px; border-radius: 18px; transform: translateX(calc(100% + 24px)); }
.drawer.is-open { transform: none; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transition: .25s; }
.home.has-drawer .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.drawer-head strong { display: block; font-size: 16px; font-weight: 600; }
.drawer-head small { font-size: 13px; color: var(--muted); }
.drawer-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--surface-3); color: var(--text); }
.drawer-close { display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; border-radius: 9px; color: var(--muted); }
.drawer-close:hover { color: var(--text); background: var(--surface-2); }
.drawer-body { flex: 1; display: grid; align-content: start; gap: 6px; overflow-y: auto; padding: 12px; }
.drawer-foot { width: auto; margin: 12px; }
.drawer-label { display: flex; align-items: center; gap: 8px; margin: 8px 4px 2px; font-size: 13px; font-weight: 500; color: var(--muted); }
.drawer-label.is-live { color: #f0a3a3; }
.drawer-empty { padding: 20px 8px; text-align: center; }
.streamer { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; transition: background .15s; }
.streamer:hover { background: var(--surface-2); }
.streamer:not(.is-live) { opacity: .6; }
.streamer > .icon { margin-left: auto; color: var(--faint); }
.streamer-avatar { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-3); font-weight: 600; color: var(--text-2); flex: none; }
.streamer-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.streamer.is-live .streamer-avatar { box-shadow: 0 0 0 2px var(--danger); }
.live-tag { position: absolute; left: 50%; bottom: -6px; padding: 1px 5px; transform: translateX(-50%); border-radius: 4px; background: var(--danger); color: #fff; font-size: 9px; font-weight: 700; white-space: nowrap; }
.streamer-main strong { display: block; font-size: 14.5px; font-weight: 600; }
.streamer-main small { display: block; font-size: 12.5px; color: var(--muted); }
.streamer-main em { font-style: normal; color: #f0a3a3; }
.trailer-modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .85); }
.trailer-box { position: relative; width: min(1100px, 100%); }
.trailer-box .drawer-close { position: absolute; top: -44px; right: 0; background: var(--surface-2); }
.trailer-frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #000; }
.trailer-frame iframe { width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--text); color: #121416; transition: transform .2s var(--ease); }
.video-play:hover { transform: scale(1.06); }
.video-play .icon { width: 22px; height: 22px; margin-left: 3px; }

/* Access terminal (retro screen, kept intentionally quiet) */
.term:focus { outline: none; }
.term { --t: #62d0e0; --t-dim: rgba(98, 208, 224, .5); position: relative; display: flex; flex-direction: column; align-items: center; width: min(100%, 560px); user-select: none; -webkit-user-select: none; }
.term-glow, .term-neck, .term-base, .term-chin { display: none; }
.term-monitor { position: relative; width: 100%; }
.term-screen { position: relative; display: flex; flex-direction: column; gap: 10px; aspect-ratio: 4 / 3.15; padding: 14px 16px 12px; overflow: hidden; border-radius: 12px; background: #0b1416; box-shadow: inset 0 0 0 1px rgba(98, 208, 224, .12); font-family: var(--font-mono); color: var(--t); transition: box-shadow .3s; }
.term-top, .term-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--t-dim); }
.term-path { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.term-path .icon { width: 14px; height: 14px; }
.term-state { padding: 2px 8px; border: 1px solid currentColor; border-radius: 4px; color: var(--warn); white-space: nowrap; }
.term-state.is-live { color: var(--t); }
.term-state.is-ok { color: #dcf9fd; background: rgba(98, 208, 224, .18); }
.term-state.is-bad { color: #ff9a9a; background: rgba(224, 100, 100, .14); }
.term-target { display: flex; align-items: center; justify-content: center; gap: 14px; }
.term-target small { font-size: 10.5px; letter-spacing: .12em; color: var(--t-dim); }
.term-code { display: flex; gap: 6px; }
.term-code span { display: grid; place-items: center; width: 32px; height: 38px; border: 1px solid rgba(98, 208, 224, .35); border-radius: 6px; background: rgba(98, 208, 224, .06); font-size: 20px; color: #dcf9fd; }
.term-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--cols, 14), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 2px; padding: 6px; border-radius: 8px; background: rgba(0, 0, 0, .22); }
.term-grid span { display: grid; place-items: center; min-width: 0; border-radius: 3px; font-size: clamp(11px, 1.05vw, 15px); line-height: 1; color: rgba(98, 208, 224, .45); cursor: pointer; transition: color .2s, background .15s; }
.term-grid span.is-new { color: rgba(200, 235, 150, .8); transition: none; }
.term-grid span.is-sel { --b: var(--t); border-radius: 0; background: rgba(98, 208, 224, .14); color: #e6fbff; box-shadow: inset 0 2px 0 var(--b), inset 0 -2px 0 var(--b); }
.term-grid span.is-sel-first { border-radius: 4px 0 0 4px; box-shadow: inset 2px 0 0 var(--b), inset 0 2px 0 var(--b), inset 0 -2px 0 var(--b); }
.term-grid span.is-sel-last { border-radius: 0 4px 4px 0; box-shadow: inset -2px 0 0 var(--b), inset 0 2px 0 var(--b), inset 0 -2px 0 var(--b); }
.term-grid.is-wrong span.is-sel { --b: #e06464; background: rgba(224, 100, 100, .2); color: #ffd6d6; }
.term-grid.is-hit span.is-sel { background: rgba(98, 208, 224, .4); color: #fff; }
.term-lives { display: flex; gap: 5px; }
.term-lives i { width: 9px; height: 9px; border-radius: 2px; background: var(--t); transition: .3s; }
.term-lives i.is-lost { background: transparent; box-shadow: inset 0 0 0 1px rgba(224, 100, 100, .8); }
.term-keys { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.term-keys kbd { padding: 0 4px; border: 1px solid rgba(98, 208, 224, .25); border-radius: 3px; background: none; color: inherit; font-size: 10px; }
.term-timer { min-width: 48px; text-align: right; font-size: 14px; color: var(--t); }
.term-timer.is-low { color: #ff9a9a; }
.term-overlay, .term-result { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; }
.term-overlay { background: rgba(10, 16, 12, .78); }
.term-result { background: rgba(10, 18, 12, .92); animation: fadein .4s var(--ease); }
.term-overlay-title, .term-result-title { font-size: 18px; letter-spacing: .14em; color: #dcf9fd; }
.term-overlay-text, .term-result-text { max-width: 300px; font-size: 12.5px; line-height: 1.5; color: var(--t-dim); }
.term-result-ico { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--t); border-radius: 50%; }
.term-result-ico .icon { width: 24px; height: 24px; }
.term-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.term-btn { display: inline-flex; align-items: center; height: 38px; margin-top: 6px; padding: 0 16px; border: 1px solid var(--t); border-radius: 6px; background: rgba(98, 208, 224, .1); color: #dcf9fd; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; transition: background .15s, color .15s; }
.term-btn:hover { background: var(--t); color: #0b1416; }
.term-btn-ghost { border-color: rgba(98, 208, 224, .3); background: none; }
.term-scan { display: none; }
.term-screen.is-alarm { box-shadow: inset 0 0 0 1px rgba(224, 100, 100, .5), inset 0 0 80px rgba(120, 0, 0, .45); }
.term-screen.is-glitch { animation: term-glitch .3s steps(2) 3; }
@keyframes term-glitch { 0% { transform: translate(2px, -1px); } 50% { transform: translate(-3px, 1px); } 100% { transform: none; } }
.term-led { display: none; }
.term-pad { display: none; gap: 6px; margin-top: 12px; }
.term-pad button { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface-2); color: var(--text); touch-action: manipulation; }
.term-pad button:active { background: var(--surface-3); }
.term-pad .term-pad-ok { width: auto; padding: 0 16px; border-color: var(--accent); background: var(--accent); color: var(--accent-fg); font-weight: 600; }
@media (hover: none), (max-width: 960px) {
  .term.is-playing .term-pad { display: flex; }
  .term-keys { display: none; }
}

/* Fake crash screen (terminal failure) */
.crash { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; padding: 8vh 10vw; overflow: auto; background: #0b3d1a; color: #e8f6f8; }
.crash-inner { display: grid; justify-items: start; gap: 22px; max-width: 820px; }
.crash-face { font-size: clamp(90px, 14vw, 160px); font-weight: 300; line-height: 1; }
.crash-title { font-size: clamp(22px, 2.6vw, 34px); font-weight: 400; line-height: 1.3; }
.crash-text, .crash-progress { font-size: clamp(16px, 1.6vw, 22px); font-weight: 300; }
.crash-meta { display: grid; gap: 6px; font-size: 14px; opacity: .85; }
.crash-code { font-family: var(--font-mono); }
.crash-meta kbd { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12); color: #fff; }
.crash-btn { height: 42px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 4px; color: #fff; font-size: 14px; }
.crash-btn:hover { background: rgba(255, 255, 255, .1); }
html.is-crashed, html.is-crashed body { overflow: hidden; }
html.is-crashing body > *:not(.crash) { animation: crash-jitter .09s steps(2) infinite; filter: hue-rotate(80deg) contrast(1.6) saturate(2); }
html.is-crashing::after { content: ""; position: fixed; inset: 0; z-index: 1999; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 4px), linear-gradient(90deg, rgba(255, 0, 60, .14), rgba(0, 255, 200, .12)); animation: crash-flicker .12s steps(2) infinite; }
@keyframes crash-jitter { 0% { transform: translate(0, 0); } 50% { transform: translate(-6px, 3px) skewX(-2deg); } 100% { transform: translate(5px, -2px); } }
@keyframes crash-flicker { 50% { opacity: .35; } }
@keyframes beacon { 50% { opacity: .15; } }
@keyframes fadein { from { opacity: 0; } }

/* ---------- Page headers ---------- */
.page-header { padding: 56px 0 28px; }
.page-header .container { display: grid; gap: 12px; }
.page-header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-header-brand .page-header-row { display: flex; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--accent-text); }
.crumbs .icon { width: 14px; height: 14px; }
.crumb-sep { width: 12px !important; height: 12px !important; opacity: .6; }
.crumbs [aria-current] { color: var(--text-2); }
.page-title { font-family: var(--font-head); font-size: clamp(38px, 4.8vw, 58px); font-weight: 700; line-height: 1.1; letter-spacing: 0; color: var(--text); }
.page-lead { max-width: 680px; font-size: 16px; color: var(--text-2); }
.page-header-row .page-lead { margin-top: 8px; }
.brand-title { display: flex; align-items: center; gap: 22px; }
.brand-title-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); color: var(--text); flex: none; }
.brand-title-ico .icon { width: 24px; height: 24px; }
.center-title { text-align: center; font-size: clamp(32px, 4.4vw, 52px); font-weight: 600; letter-spacing: -.035em; color: var(--text); }
.center-title::after { content: ""; display: block; height: 0; margin: 0 0 40px; }
.pill-search { display: flex; align-items: center; width: min(100%, 340px); height: 46px; padding: 0 8px 0 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.pill-search:focus-within { border-color: var(--accent-line); }
.pill-search input[type="search"] { flex: 1; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; outline: none; }
.pill-search button { display: grid; place-items: center; width: 36px; height: 36px; color: var(--muted); }
.page-search { display: flex; align-items: center; gap: 8px; max-width: 540px; margin-top: 8px; padding: 5px 6px 5px 16px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); }
.page-search:focus-within { border-color: var(--accent-line); }
.page-search > .icon { color: var(--muted); }
.page-search input, .page-search input[type="search"] { flex: 1; min-width: 0; height: 36px; min-height: 0; padding: 0; border: 0; background: none; outline: none; box-shadow: none; }
.page-search .btn { border-radius: 999px; }

/* ---------- Sections, cards ---------- */
.section { padding: 72px 0; }
.section-sm { padding: 32px 0 80px; }
.section-tight { padding: 32px 0 80px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2, .section-title { font-size: 26px; font-weight: 600; letter-spacing: -.025em; }
.section-head p { color: var(--text-2); margin-top: 6px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent-text); }
.link-more .icon { width: 15px; height: 15px; }
.card, .panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.panel { padding: 26px; }
.card-pad { padding: 20px; }
.panel-title { font-size: 22px; font-weight: 600; }
.block-title { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.block-title .icon { color: var(--text); }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 44px 20px; color: var(--muted); }
.empty > .icon { width: 30px; height: 30px; color: var(--accent-deep); }
.empty p { max-width: 460px; }
.empty strong { color: var(--text); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.back-link:hover { color: var(--accent-text); }
.back-link .icon { width: 15px; height: 15px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid var(--border-2); color: var(--text-2); background: var(--surface-2); }
.badge .icon { width: 12px; height: 12px; }
.badge .dot { width: 6px; height: 6px; box-shadow: none; }
.badge-ok { color: var(--ok); border-color: rgba(159, 209, 74, .35); background: rgba(159, 209, 74, .1); }
.badge-warn { color: var(--warn); border-color: rgba(231, 181, 60, .35); background: rgba(231, 181, 60, .08); }
.badge-info { color: var(--info); border-color: rgba(106, 168, 240, .35); background: rgba(106, 168, 240, .08); }
.badge-danger { color: #f39b9b; border-color: rgba(239, 91, 91, .35); background: rgba(239, 91, 91, .08); }
.badge-muted { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 9px; font-size: 13px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); }
.chip:hover { border-color: var(--border-3); }
.chip .icon { width: 14px; height: 14px; color: var(--accent-text); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 600; color: var(--muted); }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--accent-text); border-bottom-color: var(--accent); }
.tab .icon { width: 15px; height: 15px; }
.tab span { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--text-2); transition: .2s; }
.filter-tab:hover { border-color: var(--border-3); color: var(--text); }
.filter-tab.is-active { border-color: var(--border-3); background: var(--accent-soft); color: var(--accent-text); }
.filter-tab span { font-size: 12px; color: var(--muted); }

/* ---------- Forms ---------- */
input[type="text"], input[type="url"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="search"], input[type="password"], input:not([type]), select, textarea { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 11px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(63, 195, 214, .1); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type="date"], input[type="datetime-local"] { color-scheme: dark; }
input[type="color"] { width: 100%; height: 44px; padding: 3px; border-radius: 11px; border: 1px solid var(--border-2); background: var(--bg-2); cursor: pointer; }
.field { display: grid; gap: 7px; }
.field-label { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.field-help { font-size: 13px; color: var(--muted); }
.field-error { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #f39b9b; }
.field-error .icon { width: 14px; height: 14px; }
.has-error input, .has-error textarea, .has-error select { border-color: rgba(239, 91, 91, .6); }
.req { color: var(--danger); font-style: normal; }
.q-no { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--accent-fg); background: var(--accent); flex: none; }
.counter { font-family: var(--font-mono); font-size: 12px; color: var(--faint); text-align: right; }
.counter.is-short { color: var(--warn); }
.counter.is-ok { color: var(--ok); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; }
.select-wrap > .icon { position: absolute; right: 13px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; pointer-events: none; color: var(--muted); }
select option { background: var(--surface); }
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--border-2); font-size: 14px; cursor: pointer; transition: .15s; }
.radio-pill:hover span { border-color: var(--border-3); }
.radio-pill input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.radio-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-field { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--accent-soft); cursor: pointer; font-size: 14.5px; }
.check-field input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--border-3); flex: none; color: transparent; transition: .12s; }
.check-box .icon { width: 13px; height: 13px; }
.check-field input:checked + .check-box { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.check-field input:focus-visible + .check-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-inline { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check-inline input { width: 16px; height: 16px; accent-color: var(--accent); }
.switch { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-2); flex: none; transition: .15s; }
.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: .15s var(--ease); }
.switch input:checked + .switch-ui { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); background: var(--accent-fg); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Prose, callouts ---------- */
.callout { margin: 16px 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border-2); border-left: 3px solid var(--accent); background: var(--accent-soft); font-size: 14.5px; color: var(--text-2); }
.callout-title { font-weight: 600; color: var(--text); margin-bottom: 4px !important; }
.callout-body > * + * { margin-top: 8px; }
.callout-note { border-left-color: var(--info); background: rgba(106, 168, 240, .06); }
.callout-tip { border-left-color: var(--ok); }
.callout-warning { border-left-color: var(--warn); background: rgba(231, 181, 60, .06); }
.callout-danger { border-left-color: var(--danger); background: rgba(239, 91, 91, .06); }
.callout strong { color: var(--text); }
.prose { color: var(--text-2); font-size: 15.5px; line-height: 1.75; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: 24px; font-weight: 600; color: var(--text); margin-top: 36px; padding-bottom: 8px; border-bottom: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { font-size: 20px; font-weight: 600; color: var(--text); margin-top: 28px; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h4 { font-size: 16px; color: var(--text); margin-top: 22px; }
.prose > h2:first-child, .prose > h3:first-child, .prose > h4:first-child { margin-top: 0; }
.prose .anchor { float: left; margin-left: -22px; width: 22px; color: var(--faint); opacity: 0; font-weight: 400; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-color: rgba(127, 217, 231, .35); text-underline-offset: 3px; }
.prose a.wiki-link.is-missing { color: #f0a0a0; text-decoration-style: dashed; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 6px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent-deep); }
.prose img, .prose .md-img { border-radius: 12px; border: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { color: var(--accent-text); font-weight: 700; background: var(--surface-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.table-scroll tr:last-child td { border-bottom: 0; }
.code-block { margin: 0; padding: 14px 16px; overflow-x: auto; border-radius: 12px; background: #0f1113; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--text-2); }
.code-block code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose-lg { font-size: 16px; }
.prose-sm { font-size: 14px; }
mark { background: rgba(63, 195, 214, .25); color: var(--text); border-radius: 3px; padding: 0 2px; }
.infobox { float: right; width: 290px; margin: 0 0 16px 24px; border: 1px solid var(--border-2); border-radius: 14px; background: var(--surface-2); overflow: hidden; font-size: 13.5px; }
.infobox-title { padding: 11px 14px; font-weight: 600; color: var(--text); background: var(--surface-3); border-bottom: 1px solid var(--border); margin: 0 !important; }
.infobox img { width: 100%; border: 0 !important; border-radius: 0 !important; }
.infobox dl { margin: 0; padding: 4px 14px 8px; }
.infobox dl > div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.infobox dl > div:last-child { border-bottom: 0; }
.infobox dt { color: var(--muted); }
.infobox dd { margin: 0; color: var(--text); }

/* ---------- Weazel News ---------- */
.news-heading { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 22px; font-weight: 600; }
.news-heading .icon { width: 20px; height: 20px; color: var(--warn); }
.ticker-track { flex: 1; min-width: 0; overflow: hidden; }
.ticker-move { display: flex; gap: 28px; padding-left: 18px; white-space: nowrap; }
.ticker-move a { font-size: 14.5px; font-weight: 500; }
.ticker-move a[aria-hidden="true"] { display: none; }
.ticker-move a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Masthead */
.press-mast { padding: 32px 0 0; }
.press-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.press-topline > span { display: inline-flex; align-items: center; gap: 7px; }
.press-topline .icon { width: 14px; height: 14px; }
.press-logo { margin: 22px 0 6px; text-align: center; font-family: var(--font-serif); font-size: clamp(46px, 6.5vw, 84px); font-weight: 800; line-height: 1; letter-spacing: 0; color: var(--text); }
.press-logo em { font-style: italic; font-weight: 700; color: var(--accent); }
.press-tagline { padding-bottom: 22px; text-align: center; font-size: 15px; color: var(--muted); }
.press-mast-sm { padding: 0; border-bottom: 1px solid var(--line); }
.press-mast-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; min-height: 72px; }
.press-logo-sm { margin: 0; font-size: 30px; text-align: left; }

/* Category bar */
.press-bar { position: sticky; top: var(--header-h); z-index: 30; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(18, 20, 22, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.press-bar-inner { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.press-cats { display: flex; flex: 1; gap: 4px; min-width: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.press-cats::-webkit-scrollbar { display: none; }
.press-chip { --cc: var(--accent); display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: background .15s, color .15s; }
.press-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cc); }
.press-chip b { font-size: 12px; font-weight: 500; color: var(--faint); }
.press-chip:hover { background: var(--surface); color: var(--text); }
.press-chip.is-active { background: var(--surface-2); color: var(--text); }
.press-search { display: flex; align-items: center; gap: 8px; width: 250px; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); flex: none; }
.press-search:focus-within { border-color: var(--accent-line); }
.press-search .icon { color: var(--muted); }
.press-search input[type="search"] { flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 0; background: none; box-shadow: none; }

/* Breaking news (static, no motion) */
.press-breaking { display: flex; align-items: center; height: 44px; overflow: hidden; border-bottom: 1px solid var(--line); }
.press-breaking-label { display: inline-flex; align-items: center; gap: 8px; height: 26px; margin-left: max(24px, calc((100vw - var(--container)) / 2 + 24px)); padding: 0 10px; border-radius: 7px; background: rgba(224, 100, 100, .14); color: #f0a3a3; font-size: 12.5px; font-weight: 600; flex: none; }
.press-breaking-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }

/* Shared bits */
.press-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.press-cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cc, var(--accent)); }
.press-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.press-meta span { display: inline-flex; align-items: center; gap: 5px; }
.press-meta .icon { width: 14px; height: 14px; }
.press-label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.press-label .icon { width: 15px; height: 15px; }
.press-ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--surface-2); }
.press-ph img { width: 36%; opacity: .3; }
.press-play { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; }
.press-play .icon { width: 15px; height: 15px; margin-left: 2px; }

/* Front page */
.press-front { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; padding-top: 32px; }
.press-lead { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 460px; overflow: hidden; border-radius: 20px; background: var(--surface-2); }
.press-lead-media { position: absolute; inset: 0; z-index: -1; }
.press-lead-media > img { width: 100%; height: 100%; object-fit: cover; }
.press-lead-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(12, 13, 15, .9) 85%); }
.press-lead .press-play { top: 18px; right: 18px; bottom: auto; width: 50px; height: 50px; }
.press-lead-body { max-width: 760px; padding: 32px; }
.press-kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.press-kicker .press-cat { color: #fff; }
.press-lead h2 { margin-top: 12px; font-family: var(--font-serif); font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
.press-lead h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.press-lead-text { max-width: 620px; margin-top: 12px; font-size: 16px; color: rgba(255, 255, 255, .78); }
.press-lead .press-meta { margin-top: 16px; color: rgba(255, 255, 255, .6); }
.press-top { display: flex; flex-direction: column; gap: 16px; }

/* Cards */
.press-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.press-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: var(--surface-2); }
.press-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.press-card:hover .press-media > img { transform: scale(1.04); }
.press-body { display: grid; justify-items: start; gap: 7px; }
.press-card h3 { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.press-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--border-3); text-underline-offset: 4px; }
.press-card .press-body > p:not(.press-meta) { display: -webkit-box; overflow: hidden; font-size: 14.5px; color: var(--text-2); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.press-sm { flex-direction: row; align-items: flex-start; gap: 14px; }
.press-sm .press-media { width: 116px; aspect-ratio: 4 / 3; border-radius: 10px; flex: none; }
.press-sm .press-play { right: 6px; bottom: 6px; width: 26px; height: 26px; }
.press-sm .press-play .icon { width: 11px; height: 11px; }
.press-sm .press-body { gap: 4px; }
.press-sm h3 { font-size: 15.5px; }

/* Feed + sidebar */
.press-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 48px; padding-top: 56px; padding-bottom: 88px; }
.press-section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.press-section-head h2 { font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.press-count { font-size: 14px; color: var(--muted); }
.press-section-head .link-more { margin-left: auto; }
.press-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
.press-feed-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.press-aside { position: sticky; top: calc(var(--header-h) + 80px); display: grid; gap: 16px; }
.press-box { padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.press-rank a { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.press-rank li:last-child a { padding-bottom: 0; border-bottom: 0; }
.press-rank b { min-width: 22px; font-size: 15px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.press-rank strong { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.press-rank a:hover strong { color: #fff; }
.press-rank small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.press-tip { display: grid; justify-items: start; gap: 10px; }
.press-tip-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--surface-3); color: var(--text); }
.press-tip h3 { font-size: 16px; font-weight: 600; }
.press-tip p { font-size: 14px; color: var(--text-2); }

/* Article */
.press-article-head { display: grid; justify-items: start; gap: 14px; padding-top: 48px; }
.press-article-head h1 { font-family: var(--font-serif); font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.press-article-lead { font-size: 19px; line-height: 1.6; color: var(--text-2); }
.press-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; width: 100%; margin-top: 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.press-byline > span { display: inline-flex; align-items: center; gap: 6px; }
.press-byline .icon { width: 14px; height: 14px; }
.press-author { gap: 10px !important; font-size: 14.5px; font-weight: 600; color: var(--text); }
.press-author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.press-author small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.press-share { display: inline-flex; align-items: center; gap: 6px; height: 32px; margin-left: auto; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.press-share:hover, .press-share.is-copied { border-color: var(--accent-line); color: var(--text); }
.press-article-media { max-width: 1080px; margin: 32px auto 0; }
.press-cover, .press-video { margin: 0; overflow: hidden; border-radius: 20px; background: #000; }
.press-video { aspect-ratio: 16 / 9; }
.press-video iframe { width: 100%; height: 100%; border: 0; }
.press-prose { margin-top: 36px; }
.press-article-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.press-article-foot .back-link { margin: 0; }
.press-sign { font-family: var(--font-serif); font-style: italic; color: var(--muted); }
.press-related { margin-top: 56px; padding: 64px 0 88px; border-top: 1px solid var(--line); }

/* ---------- Factions ---------- */
.fx-hero { padding: 56px 0 40px; }
.fx-kicker { font-size: 14px; font-weight: 500; color: var(--accent-text); }
.fx-title { margin-top: 10px; font-size: clamp(40px, 5vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.fx-lead { max-width: 600px; margin-top: 14px; font-size: 17px; color: var(--text-2); }
.fx-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 760px; margin: 32px 0 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.fx-stats > div { min-width: 0; padding: 14px 18px; }
.fx-stats > div + div { border-left: 1px solid var(--border); }
.fx-stats dt { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.fx-stats dd { margin: 4px 0 0; font-size: 26px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fx-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 24px; }
.fx-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 12px; background: var(--surface); }
.fx-tab { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: background .15s, color .15s; }
.fx-tab .icon { width: 14px; height: 14px; }
.fx-tab b { font-size: 12px; font-weight: 500; color: var(--faint); }
.fx-tab:hover { color: var(--text); }
.fx-tab.is-active { background: var(--surface-3); color: var(--text); }
.fx-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.fx-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.fx-toggle input:checked + .switch-ui { background: var(--accent); border-color: var(--accent); }
.fx-toggle input:checked + .switch-ui::after { transform: translateX(16px); background: var(--accent-fg); }
.fx-toggle input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.fx-search { display: flex; align-items: center; gap: 8px; width: 270px; height: 42px; margin-left: auto; padding: 0 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.fx-search:focus-within { border-color: var(--accent-line); }
.fx-search .icon { color: var(--muted); }
.fx-search input[type="search"] { flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 0; background: none; box-shadow: none; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.fx-card { --fc: var(--accent); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); transition: border-color .2s, background .2s; }
.fx-card:hover { border-color: var(--border-3); background: var(--surface-2); }
.fx-cover, .fx-dialog-cover { position: relative; height: 84px; background: color-mix(in srgb, var(--fc) 26%, var(--surface)); }
.fx-watermark { display: none; }
.fx-type { position: absolute; left: 14px; top: 12px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; background: rgba(0, 0, 0, .3); font-size: 12px; font-weight: 500; color: #fff; }
.fx-type .icon { width: 13px; height: 13px; }
.fx-status { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; background: rgba(0, 0, 0, .3); font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .7); }
.fx-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8b8984; }
.fx-status.is-open { color: #d4f1f6; }
.fx-status.is-open::before { background: var(--ok); }
.fx-id { position: relative; display: flex; align-items: flex-end; gap: 14px; margin-top: -26px; padding: 0 18px; }
.fx-logo { display: grid; place-items: center; width: 60px; height: 60px; overflow: hidden; border: 3px solid var(--surface); border-radius: 16px; background: color-mix(in srgb, var(--fc) 45%, var(--surface-2)); font-size: 18px; font-weight: 700; color: #fff; flex: none; }
.fx-card:hover .fx-logo { border-color: var(--surface-2); }
.fx-logo img { width: 100%; height: 100%; object-fit: cover; }
.fx-logo-lg { width: 84px; height: 84px; border-radius: 20px; font-size: 24px; }
.fx-id h2 { font-size: 17px; font-weight: 600; line-height: 1.25; }
.fx-id p { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 13px; color: var(--muted); }
.fx-id p .icon { width: 13px; height: 13px; }
.fx-desc { display: -webkit-box; flex: 1; overflow: hidden; padding: 14px 18px 0; font-size: 14.5px; color: var(--text-2); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.fx-actions { display: flex; align-items: center; gap: 8px; padding: 16px 18px 18px; }
.fx-actions .btn-plain { margin-left: auto; }
.fx-none { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 40px 0; color: var(--muted); }
.fx-dialog { --fc: var(--accent); width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; overflow: auto; border: 1px solid var(--border-2); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9); }
.fx-dialog[open] { animation: fx-pop .25s var(--ease); }
.fx-dialog::backdrop { background: rgba(0, 0, 0, .65); }
@keyframes fx-pop { from { opacity: 0; transform: translateY(10px); } }
.fx-dialog-cover { height: 110px; }
.fx-dialog-close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(0, 0, 0, .35); color: #fff; }
.fx-dialog-close:hover { background: rgba(0, 0, 0, .55); }
.fx-dialog-body { padding: 0 0 24px; }
.fx-dialog-body .fx-id { margin-top: -38px; padding: 0 24px; }
.fx-dialog-body h2 { font-size: 24px; letter-spacing: -.03em; }
.fx-file { font-size: 12.5px; color: var(--muted); }
.fx-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px 24px 0; border: 1px solid var(--border); border-radius: 14px; }
.fx-facts > div { padding: 12px 14px; }
.fx-facts > div + div { border-left: 1px solid var(--border); }
.fx-facts dt { font-size: 12.5px; color: var(--muted); }
.fx-facts dd { margin: 3px 0 0; font-weight: 600; }
.fx-dialog-text { margin: 20px 24px 0; font-size: 15.5px; line-height: 1.7; color: var(--text-2); }
.fx-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 24px 0; }
.fx-dialog-actions:empty { display: none; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: border-color .2s; }
.faq-item[open], .faq-item:hover { border-color: var(--border-3); }
.faq-item summary { display: flex; align-items: center; gap: 18px; padding: 22px 24px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-3); font-size: 14px; font-weight: 600; color: var(--text-2); flex: none; }
.faq-q { flex: 1; }
.faq-caret { width: 20px; height: 20px; color: var(--text); transition: transform .25s; }
.faq-item[open] .faq-caret { transform: rotate(180deg); }
.faq-a { padding: 0 24px 22px 76px; }

/* ---------- Streamers ---------- */
.stream-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.stream-card { border-radius: 18px; border: 1px solid var(--border-2); background: var(--surface); overflow: hidden; }
.stream-player { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: radial-gradient(circle, rgba(63, 195, 214, .1), transparent 70%), #05080a; }
.stream-player > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: blur(2px); }
.stream-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream-player .live-tag { left: 12px; bottom: auto; top: 12px; transform: none; font-size: 11px; padding: 3px 8px; }
.stream-body { display: grid; gap: 6px; justify-items: start; padding: 16px; }
.stream-body strong { font-size: 16px; }
.stream-body small { color: var(--muted); }
.stream-body p { font-size: 14px; color: var(--text-2); }
.streamer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }

/* ---------- Rules ---------- */
.rules-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.rules-nav { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; padding: 14px 10px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.side-title { padding: 2px 10px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text); }
.rules-link { display: flex; align-items: baseline; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--text-2); }
.rules-link:hover { background: var(--surface-2); color: var(--text); }
.rules-link.is-active { background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--border-2); }
.rules-root { font-weight: 700; color: var(--text); }
.rules-group ul { display: none; margin: 2px 0 6px 16px; padding-left: 8px; border-left: 1px solid var(--border); }
.rules-group.is-open ul { display: block; }
.rule-code { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 5px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: var(--text); background: var(--accent-soft); border: 1px solid var(--border-2); flex: none; }
.rule-code.is-child { margin-left: 16px; }
.rule-code-lg { min-width: 50px; height: 50px; font-size: 18px; border-radius: 12px; }
.rule-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.rule-article { padding: 30px; }
.sub-eyebrow { display: block; margin: 30px 0 12px; font-size: 13px; font-weight: 600; color: var(--text); }
.sub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sub-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); transition: .15s; }
.sub-card:hover { border-color: var(--border-3); }
.sub-card strong { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.sub-card small { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.sub-card > .icon { margin-left: auto; color: var(--accent-text); }
.search-results { display: grid; gap: 10px; margin-top: 16px; }
.search-results a { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.search-results a:hover { border-color: var(--border-3); }
.search-results strong { display: block; font-weight: 700; color: var(--text); }
.search-results small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--text-2); }
.search-results > li > a > .icon { margin-left: auto; color: var(--muted); flex: none; }

/* ---------- Partners, apply, profile ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.partner-card { display: grid; justify-items: start; gap: 10px; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.partner-logo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); }
.partner-logo img { width: 100%; height: 100%; object-fit: cover; }
.partner-logo span { font-weight: 600; color: var(--accent-text); }
.partner-card h3 { font-size: 16px; font-weight: 600; }
.partner-card p { color: var(--text-2); font-size: 14px; }
.notice { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 24px; border: 1px solid var(--border-2); border-radius: 18px; background: var(--surface); }
.notice > div { flex: 1; min-width: 220px; }
.notice strong { font-weight: 700; }
.notice p { color: var(--muted); font-size: 14px; }
.notice-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--discord); color: #fff; }
.apply-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.apply-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); transition: border-color .2s; }
.apply-card:hover { border-color: var(--border-3); }
.apply-card.is-closed { opacity: .6; }
.apply-top { display: flex; align-items: center; justify-content: space-between; }
.apply-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--border-2); color: var(--accent-text); flex: none; }
.apply-ico .icon { width: 19px; height: 19px; }
.apply-ico-lg { width: 50px; height: 50px; }
.apply-card h3 { margin-top: 16px; font-size: 19px; font-weight: 600; color: var(--text); }
.apply-card > p { margin-top: 6px; font-size: 14px; color: var(--text-2); flex: 1; }
.apply-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.apply-meta li { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 7px; font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); }
.apply-meta .icon { width: 12px; height: 12px; color: var(--accent-text); }
.apply-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.apply-foot .btn { margin-left: auto; }
.apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.apply-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.apply-info { display: grid; gap: 10px; }
.apply-info h3 { font-size: 17px; font-weight: 600; }
.info-list { display: grid; margin: 4px 0; }
.info-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.info-list li:last-child { border-bottom: 0; }
.info-list li > span { color: var(--muted); }
.info-list strong { font-weight: 600; text-align: right; word-break: break-word; }
.tips h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.tips ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }
.tips li { font-size: 13.5px; color: var(--text-2); }
.tips a { color: var(--accent-text); }
.state-panel { display: grid; justify-items: start; gap: 10px; }
.state-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.state-ico .icon { width: 22px; height: 22px; }
.state-panel > p { color: var(--text-2); }
.state-latest { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); }
.state-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.apply-form { display: grid; gap: 22px; }
.form-section { padding-top: 18px; border-top: 1px solid var(--border); }
.form-section:first-of-type { padding-top: 0; border-top: 0; }
.form-section h3 { font-size: 18px; font-weight: 600; color: var(--text); }
.form-section p { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.form-errors:focus { outline: none; }
.apply-form.is-wizard .apply-step { display: none; }
.apply-form.is-wizard .apply-step.is-current { display: grid; gap: 22px; animation: step-in .3s var(--ease); }
.apply-step { display: grid; gap: 22px; }
.apply-step .form-section { padding-top: 0; border-top: 0; }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.step-head { display: grid; gap: 10px; padding-bottom: 6px; }
.step-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.step-meta strong { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.step-meta span { font-size: 13.5px; color: var(--muted); }
.step-bar { height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.step-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .35s var(--ease); }
.step-nav { display: flex; gap: 10px; margin-left: auto; }
.step-nav [hidden], .step-head[hidden] { display: none; }
.draft-status { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--muted); text-align: right; min-height: 1.2em; }
.draft-status.is-bad { color: #f39b9b; }
@media (prefers-reduced-motion: reduce) { .apply-form.is-wizard .apply-step.is-current { animation: none; } .step-bar i { transition: none; } }
.form-submit { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.form-submit .muted { display: inline-flex; align-items: center; gap: 7px; }
.profile-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-avatar { width: 80px; height: 80px; border-radius: 22px; border: 1px solid var(--border-3); }
.profile-info { flex: 1; min-width: 220px; display: grid; gap: 8px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.profile-section + .profile-section { margin-top: 36px; }
.account-note { margin: 10px 0 12px; }
.app-list { display: grid; gap: 12px; }
.app-item { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); scroll-margin-top: calc(var(--header-h) + 20px); }
.app-item:target { border-color: var(--accent-line); }
.app-body { flex: 1; min-width: 0; }
.app-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.app-row strong { font-weight: 700; }
.app-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.app-steps li { position: relative; padding-top: 10px; font-size: 12px; color: var(--muted); }
.app-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--surface-3); }
.app-steps li.done { color: var(--text-2); }
.app-steps li.done::before { background: var(--accent); }
.app-steps li.current { color: var(--warn); }
.app-steps li.current::before { background: var(--warn); }
.app-steps li.rejected { color: var(--danger); }
.app-steps li.rejected::before { background: var(--danger); }

/* ---------- Characters ---------- */
.char-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.char-toolbar .page-search { margin: 0; flex: 1; min-width: 240px; max-width: none; }
.char-toolbar .select-wrap { min-width: 180px; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.char-card { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: border-color .15s; }
.char-card:hover { border-color: var(--border-3); }
.char-avatar { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--border-2); font-weight: 600; color: var(--accent-text); flex: none; }
.char-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.char-avatar-lg { width: 92px; height: 92px; border-radius: 22px; font-size: 30px; }
.char-avatar .dot { position: absolute; right: -3px; bottom: -3px; border: 2px solid var(--surface); width: 12px; height: 12px; box-shadow: none; }
.char-card-main { min-width: 0; flex: 1; }
.char-card-main strong { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char-card-main small { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.char-sidebar { display: grid; gap: 12px; }
.char-identity { display: grid; justify-items: start; gap: 12px; }
.char-identity h1 { font-size: 26px; font-weight: 600; color: var(--text); }
.kv { display: grid; margin: 0; }
.kv > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.private-note { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.private-note .icon { width: 13px; height: 13px; }
.my-chars { display: grid; gap: 10px; }

/* ---------- Social ---------- */
.social-layout { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 300px); gap: 32px; justify-content: center; align-items: start; }
.social-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.feed { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); overflow: hidden; }
.post { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--border-2); object-fit: cover; font-weight: 600; color: var(--accent-text); overflow: hidden; flex: none; }
.post-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.post-head strong { font-weight: 600; }
.post-head .icon { width: 14px; height: 14px; color: var(--info); vertical-align: -2px; }
.post-head .handle, .post-head time { color: var(--muted); font-size: 13.5px; }
.post-body { margin-top: 4px; font-size: 15px; line-height: 1.55; word-break: break-word; }
.post-body a { color: var(--accent-text); }
.post-media { display: grid; gap: 3px; margin-top: 10px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.post-media.m-2, .post-media.m-3, .post-media.m-4 { grid-template-columns: 1fr 1fr; }
.post-media.m-3 > :first-child { grid-row: span 2; }
.post-media img, .post-media video { width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.post-media .is-broken { display: none; }
.post-location { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.post-location .icon { width: 13px; height: 13px; }
.post-stats { display: flex; gap: 22px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.post-stats > * { display: inline-flex; align-items: center; gap: 6px; }
.post-stats .icon { width: 15px; height: 15px; }
.post-reply-to { font-size: 13px; color: var(--muted); }
.post-lg .post-body { font-size: 17px; }
.account-card { display: grid; gap: 12px; }
.account-card .post-avatar { width: 76px; height: 76px; font-size: 24px; }
.account-card h1 { font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.account-card h1 .icon { width: 18px; height: 18px; color: var(--info); }
.account-stats { display: flex; gap: 18px; font-size: 13.5px; color: var(--muted); }
.account-stats b { color: var(--text); }
.mini-account { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.mini-account .post-avatar { width: 34px; height: 34px; font-size: 13px; }
.mini-account strong { display: block; font-size: 13.5px; }
.mini-account small { display: block; font-size: 12.5px; color: var(--muted); }

/* ---------- Wiki ---------- */
.wiki-hero-search { display: flex; gap: 8px; max-width: 580px; margin-top: 8px; }
.wiki-hero-search input { min-height: 50px; border-radius: 999px; padding-inline: 20px; }
.wiki-hero-search .btn { border-radius: 999px; }
.wiki-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wiki-subcats { margin-bottom: 28px; }
.wiki-cat { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); transition: .15s; }
.wiki-cat:hover { border-color: var(--border-3); }
.wiki-cat > .icon { width: 22px; height: 22px; color: var(--accent-text); margin-top: 2px; }
.wiki-cat strong { display: block; font-size: 16px; font-weight: 600; color: var(--text); }
.wiki-cat p { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.wiki-cat small { display: block; margin-top: 8px; font-size: 12px; color: var(--faint); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.list-card { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); overflow: hidden; }
.list-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.list-card-head.is-sub { border-top: 1px solid var(--line); }
.list-card-head h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.list-card-head h3 .icon { color: var(--text); }
.row-link { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); transition: background .12s; }
.row-link:last-child { border-bottom: 0; }
.row-link:hover { background: var(--surface-2); }
.row-link-main { flex: 1; min-width: 0; }
.row-link-main strong { display: block; font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-link-main small { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-link > .icon { color: var(--muted); }
.row-link time, .row-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.wiki-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr) 210px; gap: 36px; align-items: start; }
.wiki-layout.no-toc { grid-template-columns: 230px minmax(0, 1fr); }
.wiki-side { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; padding: 14px 10px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; }
.wiki-side h4, .wiki-toc h4 { font-size: 12px; font-weight: 600; color: var(--text); margin: 0 0 8px; padding-left: 8px; }
.wiki-side ul + h4 { margin-top: 18px; }
.wiki-side a, .wiki-toc a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--text-2); }
.wiki-side a:hover, .wiki-toc a:hover { color: var(--text); background: var(--surface-2); }
.wiki-side a.is-active { color: var(--accent-text); background: var(--accent-soft); }
.wiki-toc { position: sticky; top: calc(var(--header-h) + 20px); font-size: 13.5px; }
.wiki-toc a { border-radius: 0; border-left: 1px solid var(--border-2); padding-left: 12px; }
.wiki-toc .lvl-3 { padding-left: 24px; }
.wiki-article { min-width: 0; }
.wiki-article-head { display: grid; gap: 10px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.wiki-article-head h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; color: var(--text); }
.wiki-summary { font-size: 16px; color: var(--text-2); }
.wiki-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wiki-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.wiki-meta span { display: inline-flex; align-items: center; gap: 6px; }
.wiki-meta img { border-radius: 50%; }
.wiki-meta .icon { width: 14px; height: 14px; }
.wiki-foot { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.wiki-foot a:hover { color: var(--accent-text); }
.wiki-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 20px; border-radius: 12px; border: 1px solid rgba(231, 181, 60, .3); background: rgba(231, 181, 60, .06); font-size: 14px; color: var(--text-2); }
.wiki-page-list { columns: 3 240px; column-gap: 32px; }
.wiki-page-list section { break-inside: avoid; margin-bottom: 20px; }
.wiki-page-list h3 { font-size: 14px; font-weight: 600; color: var(--text); padding-bottom: 6px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.wiki-page-list a { display: block; padding: 3px 0; font-size: 14px; color: var(--text-2); }
.wiki-page-list a:hover { color: var(--accent-text); }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.editor-main { display: grid; gap: 16px; }
.editor-pane { border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.editor-tabs { display: flex; align-items: center; gap: 2px; padding: 5px; border-bottom: 1px solid var(--line); background: var(--surface); }
.editor-tabs > button { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.editor-tabs > button.is-active { color: var(--accent-text); background: var(--accent-soft); }
.md-toolbar { margin-left: auto; display: flex; flex-wrap: wrap; gap: 2px; }
.md-toolbar button { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 7px; font-size: 13px; color: var(--text-2); }
.md-toolbar button:hover { background: var(--surface-3); color: var(--accent-text); }
.md-toolbar .icon { width: 15px; height: 15px; }
.editor-pane textarea { border: 0; border-radius: 0; min-height: 540px; background: transparent; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; box-shadow: none !important; }
.editor-preview { min-height: 540px; padding: 20px 24px; }
.editor-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.editor-help { display: grid; font-size: 13px; color: var(--muted); }
.editor-help li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.editor-help li:last-child { border-bottom: 0; }
.field-gap { margin-top: 14px; }
.help-foot { margin-top: 10px; }
.form-actions-inline { display: grid; gap: 6px; margin-top: 16px; }
.history { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); overflow: hidden; }
.history-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.history-row:last-child { border-bottom: 0; }
.history-row img { border-radius: 50%; }
.history-main small { display: block; color: var(--muted); font-size: 13px; }
.history-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.size-delta { font-family: var(--font-mono); font-size: 12px; }
.size-delta.plus { color: var(--ok); }
.size-delta.minus { color: var(--danger); }
.diff-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0 16px; color: var(--muted); }
.diff { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-family: var(--font-mono); font-size: 12.5px; background: #0f1113; }
.diff-hunk + .diff-hunk { border-top: 1px dashed var(--border-2); }
.diff-line { display: grid; grid-template-columns: 44px 44px 18px minmax(0, 1fr); line-height: 1.7; }
.diff-line > span { padding: 0 6px; color: var(--faint); text-align: right; user-select: none; }
.diff-line code { background: none; border: 0; padding: 0 10px 0 0; font-size: inherit; white-space: pre-wrap; word-break: break-word; color: var(--text-2); }
.diff-line .op { text-align: center; }
.diff-add { background: rgba(159, 209, 74, .09); }
.diff-add code, .diff-add .op { color: #a9e3ee; }
.diff-del { background: rgba(239, 91, 91, .09); }
.diff-del code, .diff-del .op { color: #f3b4b4; }

/* ---------- Login, error ---------- */
.login-screen { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 40px 16px; }
.login-card { width: 100%; max-width: 420px; display: grid; gap: 16px; padding: 32px 28px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.login-logo { display: block; width: 90px; }
.login-title { font-size: 24px; font-weight: 600; color: var(--text); }
.login-lead { color: var(--text-2); font-size: 14.5px; margin-top: -8px; }
.login-perms { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-2); font-size: 13.5px; color: var(--text-2); }
.login-perms li { display: flex; align-items: center; gap: 10px; }
.login-perms .icon { width: 15px; height: 15px; color: var(--ok); }
.login-perms .no .icon { color: var(--muted); }
.login-foot { font-size: 12.5px; color: var(--muted); }
.login-foot a { color: var(--accent-text); }
.error-screen { padding: 110px 0; }
.error-inner { display: grid; justify-items: start; gap: 12px; max-width: 600px; }
.error-code { font-size: 14px; font-weight: 700; color: var(--accent-text); }
.error-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.debug { width: 100%; margin-top: 24px; overflow: auto; padding: 14px; border-radius: 10px; background: #000; border: 1px solid rgba(239, 91, 91, .35); color: #f3b4b4; font-size: 12px; white-space: pre-wrap; }

/* ---------- Footer, toasts, cookie, pagination ---------- */
.site-footer { margin-top: 40px; padding: 40px 0 36px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; justify-items: center; gap: 18px; text-align: center; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--text-2); transition: .15s; }
.socials a:hover { background: var(--surface-2); color: var(--text); }
.socials .icon { width: 18px; height: 18px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.footer-links a:hover { color: var(--accent-text); }
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-note { font-size: 11.5px; color: var(--faint); }
.toast-stack { position: fixed; right: 16px; top: calc(var(--header-h) + 12px); z-index: 120; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 13px 12px 13px 14px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--surface-2); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9); animation: toast-in .25s var(--ease); font-size: 14px; }
.toast p { flex: 1; padding-top: 1px; }
.toast-text { flex: 1; }
.toast-ico { display: grid; place-items: center; margin-top: 2px; }
.toast-ico .icon { width: 16px; height: 16px; }
.toast-success .toast-ico { color: var(--ok); }
.toast-error .toast-ico { color: var(--danger); }
.toast-info .toast-ico { color: var(--info); }
.toast-warning .toast-ico { color: var(--warn); }
.toast-close { color: var(--muted); padding: 2px; }
.toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }
.cookie-note { position: fixed; left: calc(var(--rail-w) + 20px); bottom: 20px; z-index: 110; display: grid; justify-items: start; gap: 10px; width: min(360px, calc(100vw - 40px)); padding: 18px 20px; border: 1px solid var(--border-2); border-radius: 16px; background: var(--surface-2); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); font-size: 13.5px; color: var(--text-2); }
.cookie-title { font-size: 15px; font-weight: 600; color: var(--text); }
.cookie-note a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.page-btn { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.page-btn:hover { border-color: var(--border-3); color: var(--text); }
.page-btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.page-btn .icon { width: 15px; height: 15px; }
.page-gap { display: grid; place-items: center; width: 20px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; translate: none; }
  .h-stage-drift { animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .press-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 32px; }
  .press-feed-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .press-feed-3 > :nth-child(3) { display: none; }
  .wiki-layout, .wiki-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
  .wiki-toc { display: none; }
  .wiki-side { position: static; max-height: none; order: 2; }
  .h-factions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .h-split { gap: 48px; }
}
@media (max-width: 1023px) {
  :root { --rail-w: 0px; --header-h: 60px; }
  .topbar { position: sticky; top: 0; z-index: 55; display: flex; align-items: center; gap: 12px; height: var(--header-h); padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); background: rgba(18, 20, 22, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .topbar-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
  .topbar-brand img { width: 32px; }
  .topbar-status { display: inline-flex; align-items: center; gap: 7px; height: 28px; margin-left: auto; padding: 0 10px; border-radius: 999px; background: var(--surface); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-2); }
  .burger { display: inline-grid; }
  .rail { width: 280px; padding-top: 18px; transform: translateX(-100%); transition: transform .3s var(--ease), box-shadow .3s; }
  .rail:hover, .rail:focus-within { width: 280px; box-shadow: none; }
  .rail .rail-text { opacity: 1; transform: none; }
  .nav-open .rail { transform: none; box-shadow: 30px 0 80px -20px rgba(0, 0, 0, .8); }
  .rail-backdrop { position: fixed; inset: 0; z-index: 58; display: block; background: rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
  .nav-open .rail-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
  .drop-up { left: 24px; bottom: 76px; }
  .h-split, .h-news { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .h-scene .h-news-media { max-height: 30dvh; }
  .h-stage-tabs a { flex-direction: column; justify-content: center; gap: 0; font-size: 12.5px; line-height: 1.3; }
  .h-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .h-steps li { padding-bottom: 28px; }
  .h-factions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .press-front, .press-layout { grid-template-columns: minmax(0, 1fr); }
  .press-aside { position: static; }
  .press-lead { min-height: 400px; }
  .press-bar-inner { flex-wrap: wrap; gap: 0 12px; padding-bottom: 10px; }
  .press-search { width: 100%; }
  .fx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-stats > div:nth-child(4) { border-left: 0; }
  .fx-stats > div:nth-child(n + 4) { border-top: 1px solid var(--border); }
  .fx-search { width: 100%; margin-left: 0; }
  .rules-layout, .apply-layout, .profile-layout, .char-layout, .social-layout, .editor-layout, .split { grid-template-columns: minmax(0, 1fr); }
  .rules-nav, .apply-aside, .social-aside, .editor-side { position: static; max-height: none; }
  .wiki-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .infobox { float: none; width: 100%; margin: 0 0 16px; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .h-stage { --nav-h: 72px; }
  .h-stage-media { inset: -20px; }
  .h-stage-cam { filter: blur(min(var(--blur, 0px), 4px)); }
  .h-scene-inner { padding-top: 32px; padding-bottom: 28px; }
  .h-scene .h-head { margin-bottom: 26px; }
  .h-scene .h-stats { margin-top: 28px; }
  .h-scene-foot { margin-top: 40px; }
  .h-stage-nav { gap: 8px; padding: 0 12px; }
  .h-stage-btn { width: 38px; height: 38px; }
  .h-stage-next { width: 38px; min-width: 0; padding: 0; }
  .h-stage-next span { display: none; }
  .h-stage-tabs { position: relative; align-items: flex-end; justify-content: center; gap: 2px; height: auto; align-self: stretch; padding-bottom: 14px; margin: 0; }
  .h-stage-tabs li { flex: 0 0 auto; }
  .h-stage-tabs a { width: 22px; height: 22px; padding: 0; }
  .h-stage-tabs a b, .h-stage-tabs a span, .h-stage-tabs a::before { display: none; }
  .h-stage-tabs a::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .28); transition: width .3s var(--ease), background .3s; }
  .h-stage-tabs a[aria-current]::after { width: 18px; border-radius: 3px; background: var(--accent); }
  .h-stage-now { position: absolute; left: 50%; top: 12px; display: flex; align-items: center; gap: 8px; transform: translateX(-50%); font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; }
  .h-stage-now b { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--accent-text); }
  .page-home .cookie-note { bottom: 84px; }
  .page-home .live-tab { top: calc(var(--header-h) + 12px); right: 12px; height: 34px; padding: 0 12px; font-size: 13px; }
  .h-scene:not(.h-scene--intro) .h-scene-inner { padding-top: 62px; }
  .h-brand { margin-top: 24px; }
  .h-brand-sub { gap: 12px; letter-spacing: .5em; }
  .h-brand-sub::before { margin-right: .5em; }
  .h-lead { margin-top: 22px; font-size: 16.5px; }
  .h-scene--intro .h-actions, .h-scene--cta .h-actions { width: 100%; max-width: 420px; }
  .h-actions .btn { flex: 1 1 auto; }
  .h-stats-section { padding-top: 32px; }
  .h-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-stats > div { padding: 18px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .h-stats > div:nth-child(even) { border-left: 1px solid var(--line); }
  .h-stats > div:nth-last-child(-n+2) { border-bottom: 0; }
  .h-stats dd { font-size: 28px; }
  .h-section { padding-top: 72px; padding-bottom: 72px; }
  .h-head { margin-bottom: 36px; }
  .h-factions { grid-template-columns: minmax(0, 1fr); }
  .h-season { min-height: 440px; padding: 72px 0 48px; }
  .h-chronicle { flex-direction: column; margin-top: 44px; }
  .h-chronicle li { flex: none; padding: 14px 0 0; }
  .h-cta { padding-top: 88px; padding-bottom: 88px; }
  .live-tab { right: 12px; bottom: 12px; }
  .term-screen { gap: 8px; padding: 10px; aspect-ratio: 4 / 3.7; }
  .term-code { gap: 4px; }
  .term-code span { width: 28px; height: 32px; font-size: 17px; }
  .term-target { gap: 10px; }
  .term-target small { font-size: 9.5px; }
  .term-grid { gap: 1px; padding: 4px; }
  .term-path { font-size: 10px; }
  .press-topline .press-edition { display: none; }
  .press-feed, .press-feed-3 { grid-template-columns: minmax(0, 1fr); }
  .press-feed-3 > :nth-child(3) { display: flex; }
  .press-lead { min-height: 360px; }
  .press-lead-body { padding: 22px; }
  .press-sm .press-media { width: 96px; }
  .press-share { margin-left: 0; }
  .fx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-stats > div:nth-child(odd) { border-left: 0; }
  .fx-stats > div:nth-child(4) { border-left: 1px solid var(--border); }
  .fx-stats > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .fx-facts { grid-template-columns: minmax(0, 1fr); }
  .fx-facts > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .wiki-cats, .sub-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-title-ico { width: 48px; height: 48px; }
  .page-header { padding-top: 36px; }
  .faq-a { padding-left: 20px; }
  .faq-item summary { padding: 18px; font-size: 15.5px; }
  .kv > div { grid-template-columns: 100px 1fr; }
  .diff-line { grid-template-columns: 30px 30px 14px minmax(0, 1fr); }
  .toast-stack { right: 12px; }
}

/* ---------- Typography: NoPixel-style (Barlow Condensed, bold uppercase display type) ---------- */
body { font-size: 16.5px; line-height: 1.45; letter-spacing: .02em; }
h1, h2, h3 { text-transform: uppercase; font-weight: 800; line-height: 1.06; letter-spacing: 0; }
h4 { font-weight: 700; letter-spacing: .01em; }
.page-title, .h-head h2, .h-split h2, .h-cta-title, .h-brand-name, .press-lead h2, .press-article-head h1 { text-transform: uppercase; font-weight: 800; line-height: 1.02; letter-spacing: 0; }
.h-steps h3, .h-news-lead strong, .fx-card h3, .sub-card strong { text-transform: uppercase; font-weight: 800; letter-spacing: 0; line-height: 1.1; }
.h-label, .fx-kicker, .eyebrow, .h-meta, .press-cat, .h-cat { text-transform: uppercase; font-weight: 600; letter-spacing: .06em; }
.h-lead, .page-lead, .h-text, .h-news-excerpt { font-weight: 500; line-height: 1.38; letter-spacing: .01em; }
.btn { text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.rail-text, .rail-link, .topbar-brand, .footer-links a, .h-stage-tabs a, .h-link, .h-stage-next, .live-tab, .tab, .filter-tab, .chip, .press-chip { text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.rail-brand small { letter-spacing: .2em; font-size: 11px; }
.h-stage-tabs a { font-size: 15px; color: rgba(255, 255, 255, .48); }
.h-stage-tabs a[aria-current], .h-stage-tabs a:hover { color: #fefefe; }
.h-stats dd, .h-step-no, .h-stage-tabs b { font-weight: 700; letter-spacing: 0; }



/* ---------- Ambient details: corner marks, ivy, falling code, place + time ---------- */
.h-corner { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(127, 217, 231, .38); pointer-events: none; }
.h-corner--tl { left: 14px; top: 14px; border-width: 1px 0 0 1px; }
.h-corner--tr { right: 14px; top: 14px; border-width: 1px 1px 0 0; }
.h-corner--bl { left: 14px; bottom: 14px; border-width: 0 0 1px 1px; }
.h-corner--br { right: 14px; bottom: 14px; border-width: 0 1px 1px 0; }
.h-decor { position: absolute; inset: 0 0 var(--nav-h); z-index: 2; overflow: hidden; pointer-events: none; }
.h-coords { position: absolute; left: 30px; top: 26px; display: grid; gap: 1px; font-size: 13px; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: rgba(235, 233, 228, .5); text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }
.h-coords b { font-size: 22px; font-weight: 700; letter-spacing: .08em; color: rgba(235, 233, 228, .85); font-variant-numeric: tabular-nums; }
.h-coords small { font-size: 11.5px; letter-spacing: .14em; color: rgba(127, 217, 231, .6); }
.h-codes { position: absolute; right: 30px; top: 70px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; width: 190px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(127, 217, 231, .55); -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent); }
.h-codes span { white-space: nowrap; animation: h-code-in .6s var(--ease) both; }
.h-codes span:nth-last-child(n + 7) { opacity: .35; }
.h-codes span:nth-last-child(n + 9) { opacity: .15; }
.h-codes em { font-style: normal; color: rgba(235, 233, 228, .75); }

.ambient { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.ambient .h-corner--tl { left: calc(var(--rail-w) + 14px); }
.ambient main, .site-footer { position: relative; z-index: 2; }

@keyframes h-code-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 1023px) {
  .h-codes, .h-coords small,   .h-coords { left: 22px; top: 16px; }
  .h-coords b { font-size: 18px; }
    .ambient   .ambient .h-corner--tl { left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
      }


/* ---------- Life on every page: soft glow, corner marks, code line, hover depth ---------- */
.ambient-glow { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; background: radial-gradient(circle, rgba(63, 195, 214, .09), transparent 65%); filter: blur(20px); will-change: transform; }
.ambient-glow--a { left: -14vmax; top: -16vmax; animation: glow-a 26s ease-in-out infinite alternate; }
.ambient-glow--b { right: -18vmax; bottom: -20vmax; background: radial-gradient(circle, rgba(63, 195, 214, .07), transparent 65%); animation: glow-b 32s ease-in-out infinite alternate; }
.ambient-codes { position: absolute; right: 30px; bottom: 22px; display: grid; justify-items: end; gap: 2px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(127, 217, 231, .38); }
.ambient-codes span { animation: h-code-in .6s var(--ease) both; }
.ambient-codes span:nth-last-child(n + 3) { opacity: .45; }
.ambient .h-corner--bl { left: calc(var(--rail-w) + 14px); }
@keyframes glow-a { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.15); } }
@keyframes glow-b { to { transform: translate3d(-12vmax, -9vmax, 0) scale(1.1); } }

.page-header .page-title { position: relative; width: fit-content; }
.page-header .page-title::after { content: ""; display: block; height: 3px; width: 56px; margin-top: 12px; border-radius: 2px; background: var(--accent); transform-origin: left; animation: title-line 1s var(--ease) .3s both; }
@keyframes title-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.panel, .fx-card, .stream-card, .list-card, .apply-card, .partner-card, .char-card { transition: transform .35s var(--ease), border-color .25s, box-shadow .35s; }
.fx-card:hover, .stream-card:hover, .apply-card:hover, .partner-card:hover, .char-card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: 0 22px 44px -26px rgba(63, 195, 214, .45); }

/* ---------- Soft page-to-page transitions ---------- */
body:not(.page-home) main { animation: page-in .7s var(--ease) backwards; }
body.is-leaving:not(.page-home) main { opacity: 0; transform: translateY(-10px); transition: opacity .24s ease, transform .24s ease; }
body.is-leaving .h-stage { opacity: 0; transform: scale(1.015); transition: opacity .3s ease, transform .4s ease; }
body.is-leaving .ambient { opacity: .5; transition: opacity .3s; }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  body:not(.page-home) main { animation: none; }
  .ambient-glow, .page-header .page-title::after { animation: none; }
  body.is-leaving:not(.page-home) main, body.is-leaving .h-stage { transition: none; }
}

/* ---------- Steam button, linked accounts ---------- */
.btn-steam { background: #1b2838; color: #dbe7f3; border-color: #2c4157; }
.btn-steam:hover { background: #22364b; }
.login-alt { margin-top: 10px; }
.linked-accounts { display: grid; gap: 14px; padding: 18px; }
.linked-row { display: flex; align-items: center; gap: 12px; }
.linked-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; flex: none; color: #fff; }
.linked-ico .icon { width: 20px; height: 20px; }
.linked-steam { background: #1b2838; }
.linked-discord { background: var(--discord); }
.linked-main { flex: 1; min-width: 0; }
.linked-main strong { display: block; font-weight: 600; }
.linked-main small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Character pages (player-themed) ---------- */
.cp {
  --cp-bg: var(--bg); --cp-hero: var(--bg-2);
  --accent-hi: color-mix(in srgb, var(--accent) 78%, #fff);
  --accent-deep: color-mix(in srgb, var(--accent) 70%, #000);
  --accent-text: color-mix(in srgb, var(--accent) 72%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 38%, transparent);
  --glow: color-mix(in srgb, var(--accent) 18%, transparent);
  --cp-display: var(--cp-font, var(--font-head));
  position: relative; z-index: 2; background: var(--cp-bg); min-height: 70vh;
}
.cp[data-theme="sakura"]  { --bg: #1c1316; --bg-2: #241a1e; --surface: #261b20; --surface-2: #30232a; --surface-3: #3a2b33; --border: rgba(242,163,189,.12); --border-2: rgba(242,163,189,.18); --accent: #f2a3bd; --accent-fg: #2a0f19; --cp-bg: #1c1316; --cp-hero: #2a1a21; }
.cp[data-theme="edo"]     { --bg: #130d0c; --bg-2: #1a1110; --surface: #1c1312; --surface-2: #261a18; --surface-3: #31221f; --border: rgba(210,72,58,.16); --border-2: rgba(210,72,58,.24); --accent: #d2483a; --accent-fg: #fff; --cp-bg: #130d0c; --cp-hero: #1e1210; }
.cp[data-theme="tokyo"]   { --bg: #0f0c1a; --bg-2: #151125; --surface: #171229; --surface-2: #1f1936; --surface-3: #2a2248; --border: rgba(200,107,255,.16); --border-2: rgba(200,107,255,.26); --accent: #c86bff; --accent-fg: #1a0630; --cp-bg: #0f0c1a; --cp-hero: #1a1033; }
.cp[data-theme="rose"]    { --bg: #1a1214; --bg-2: #22181b; --surface: #251a1d; --surface-2: #2f2226; --surface-3: #3a2a2f; --border: rgba(231,154,165,.13); --border-2: rgba(231,154,165,.2); --accent: #e79aa5; --accent-fg: #2b0f15; --cp-bg: #1a1214; --cp-hero: #281a1e; }
.cp[data-theme="lavanta"] { --bg: #15131c; --bg-2: #1b1825; --surface: #1d1a29; --surface-2: #272336; --surface-3: #322d45; --border: rgba(185,162,239,.14); --border-2: rgba(185,162,239,.22); --accent: #b9a2ef; --accent-fg: #1c1235; --cp-bg: #15131c; --cp-hero: #211c33; }
.cp[data-theme="vice"]    { --bg: #1b1012; --bg-2: #24161a; --surface: #27171b; --surface-2: #331f24; --surface-3: #40292f; --border: rgba(255,138,92,.14); --border-2: rgba(255,138,92,.22); --accent: #ff8a5c; --accent-fg: #2a0e04; --cp-bg: #1b1012; --cp-hero: linear-gradient(180deg, #3b1530 0%, #5a2230 45%, #1b1012 100%); }
.cp[data-theme="noir"]    { --bg: #0e0e0e; --bg-2: #151515; --surface: #181818; --surface-2: #202020; --surface-3: #2a2a2a; --border: rgba(255,255,255,.1); --border-2: rgba(255,255,255,.16); --text: #e8e4da; --accent: #e8e4da; --accent-fg: #111; --cp-bg: #0e0e0e; --cp-hero: #161616; }
.cp[data-theme="western"] { --bg: #17110b; --bg-2: #1f1710; --surface: #221a12; --surface-2: #2d2218; --surface-3: #392b1e; --border: rgba(211,154,82,.15); --border-2: rgba(211,154,82,.24); --accent: #d39a52; --accent-fg: #241506; --cp-bg: #17110b; --cp-hero: #2a1d10; }
.cp[data-theme="sokak"]   { --bg: #121212; --bg-2: #181818; --surface: #1b1b1b; --surface-2: #242424; --surface-3: #2e2e2e; --border: rgba(255,255,255,.1); --border-2: rgba(255,255,255,.17); --accent: #f2d22e; --accent-fg: #141100; --cp-bg: #121212; --cp-hero: #1c1c1c; }
.cp[data-theme="altin"]   { --bg: #0f0d09; --bg-2: #161209; --surface: #19150c; --surface-2: #221c10; --surface-3: #2d2517; --border: rgba(216,178,94,.16); --border-2: rgba(216,178,94,.26); --accent: #d8b25e; --accent-fg: #1d1404; --cp-bg: #0f0d09; --cp-hero: #1b150a; }
.cp[data-theme="rozet"]   { --bg: #0c1220; --bg-2: #111a2e; --surface: #131d33; --surface-2: #1a2640; --surface-3: #22314f; --border: rgba(111,156,240,.14); --border-2: rgba(111,156,240,.22); --accent: #6f9cf0; --accent-fg: #07122a; --cp-bg: #0c1220; --cp-hero: #14213b; }
.cp[data-theme="acil"]    { --bg: #151314; --bg-2: #1c191a; --surface: #1f1b1c; --surface-2: #292425; --surface-3: #342d2f; --border: rgba(239,90,90,.14); --border-2: rgba(239,90,90,.22); --accent: #ef5a5a; --accent-fg: #fff; --cp-bg: #151314; --cp-hero: #1f1819; }
.cp[data-theme="orman"]   { --bg: #0f1410; --bg-2: #141b15; --surface: #161e17; --surface-2: #1d2820; --surface-3: #263329; --border: rgba(143,191,106,.14); --border-2: rgba(143,191,106,.22); --accent: #8fbf6a; --accent-fg: #0e1a06; --cp-bg: #0f1410; --cp-hero: #17231a; }

.cp-hero { position: relative; background: var(--cp-hero); border-bottom: 1px solid var(--border-2); }
.cp-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cp-hero.has-banner { min-height: 340px; }
.cp-banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cp-hero.has-banner .cp-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, var(--cp-bg) 100%); }
.cp-pattern { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.cp-hero-inner { position: relative; z-index: 2; padding-block: 28px 34px; }
.cp-hero.has-banner .cp-hero-inner { padding-top: 120px; }
.cp-head { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-top: 18px; }
.cp-portrait { position: relative; margin: 0; width: 190px; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: var(--surface-2); border: 2px solid var(--accent-line); box-shadow: 0 24px 50px -24px #000, 0 0 0 6px var(--accent-soft); flex: none; }
.cp-portrait img { width: 100%; height: 100%; object-fit: cover; }
.cp-portrait img.is-game { object-position: center 18%; }
.cp-portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px 7px; font-size: 12px; text-align: center; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.cp-initials { display: grid; place-items: center; width: 100%; height: 100%; font: 700 56px var(--cp-display); color: var(--accent-text); }
.cp-title { flex: 1; min-width: 240px; display: grid; gap: 8px; padding-bottom: 6px; }
.cp-kicker { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.cp-name { font: 700 clamp(38px, 6vw, 64px)/1.02 var(--cp-display); text-transform: uppercase; letter-spacing: .01em; color: var(--text); }
.cp-motto { font-size: 19px; color: var(--text-2); font-style: italic; max-width: 620px; }
.cp-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-bottom: 6px; }
.cp-glyph { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); font: 700 clamp(160px, 24vw, 320px)/1 "Shippori Mincho", serif; color: var(--accent); opacity: .08; pointer-events: none; user-select: none; }
.cp-body { padding: 36px 0 64px; }
.cp .panel { background: var(--surface); border-color: var(--border); }
.cp-main { display: grid; gap: 16px; align-content: start; }
.cp-bio .prose { font-size: 17px; line-height: 1.7; }
.cp-empty-cta { display: flex; align-items: center; gap: 16px; border-style: dashed; color: var(--text-2); }
.cp-empty-cta .icon { width: 26px; height: 26px; color: var(--accent-text); }
.cp-empty-cta strong { display: block; color: var(--text); }
.cp-empty-cta small { color: var(--muted); font-size: 14px; }
.cp-mod { position: relative; }
.cp-mod summary { list-style: none; cursor: pointer; }
.cp-mod summary::-webkit-details-marker { display: none; }
.cp-mod-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 230px; padding: 6px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface-2); box-shadow: 0 18px 40px -18px #000; }

/* gallery */
.cp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.cp-shot { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.cp-shot a { display: block; width: 100%; height: 100%; }
.cp-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cp-shot:hover img { transform: scale(1.05); }
.cp-shot form { position: absolute; top: 6px; right: 6px; }
.cp-shot-del { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(0,0,0,.65); color: #fff; opacity: 0; transition: opacity .15s; }
.cp-shot:hover .cp-shot-del, .cp-shot-del:focus-visible { opacity: 1; }
@media (hover: none) { .cp-shot-del { opacity: 1; } }
.cp-gallery-edit { grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; }
.cp-lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(0,0,0,.88); padding: 24px; cursor: zoom-out; }
.cp-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px #000; }

/* editor */
.edit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.cp-form { display: grid; gap: 16px; }
.cp-side { display: grid; gap: 12px; position: sticky; top: 20px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.theme-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); cursor: pointer; transition: border-color .15s, transform .2s; }
.theme-opt:hover { border-color: var(--border-3); transform: translateY(-2px); }
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.theme-opt.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.theme-opt input:focus-visible ~ .theme-swatch { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-swatch { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: var(--sw-bg); border: 1px solid rgba(255,255,255,.12); flex: none; overflow: hidden; }
.theme-swatch b { font: 700 20px var(--sw-font, var(--font-head)); color: var(--sw-ac); }
.theme-swatch i { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--sw-ac); }
.theme-text { min-width: 0; }
.theme-text strong { display: block; font-weight: 600; line-height: 1.2; }
.theme-text small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.25; }
.accent-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
input.accent-pick { width: 52px; flex: none; height: 36px; padding: 2px; border: 1px solid var(--border-2); border-radius: 9px; background: var(--surface-2); cursor: pointer; }
.accent-pick:disabled { opacity: .35; cursor: not-allowed; }
.img-slot { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.img-slot-prev { display: grid; place-items: center; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px dashed var(--border-3); color: var(--muted); flex: none; }
.img-slot-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-portrait { width: 90px; aspect-ratio: 3 / 4; }
.img-banner { width: 160px; aspect-ratio: 16 / 7; }
.img-slot-body { display: grid; gap: 8px; min-width: 0; }
.field-hint { font-size: 13px; color: var(--muted); }
.gallery-upload { display: grid; gap: 10px; }
.form-actions { display: flex; gap: 10px; }

/* theme ornaments */
.cp[data-theme="sakura"] .cp-pattern { background: radial-gradient(circle at 12% 30%, rgba(242,163,189,.22) 0 2px, transparent 3px), radial-gradient(circle at 70% 70%, rgba(242,163,189,.18) 0 2px, transparent 3px); background-size: 140px 140px, 190px 190px; }
.cp-petals i { position: absolute; top: -20px; width: 12px; height: 9px; border-radius: 12px 0 12px 0; background: #f6b8cd; opacity: .65; animation: petal 11s linear infinite; }
.cp-petals i:nth-child(1) { left: 6%; animation-delay: -1s; } .cp-petals i:nth-child(2) { left: 17%; animation-delay: -6s; animation-duration: 13s; }
.cp-petals i:nth-child(3) { left: 29%; animation-delay: -3s; } .cp-petals i:nth-child(4) { left: 41%; animation-delay: -9s; animation-duration: 14s; }
.cp-petals i:nth-child(5) { left: 53%; animation-delay: -4s; } .cp-petals i:nth-child(6) { left: 64%; animation-delay: -8s; animation-duration: 12s; }
.cp-petals i:nth-child(7) { left: 76%; animation-delay: -2s; } .cp-petals i:nth-child(8) { left: 88%; animation-delay: -7s; animation-duration: 15s; }
.cp-petals i:nth-child(9) { left: 95%; animation-delay: -5s; }
@keyframes petal { from { transform: translate(0, 0) rotate(0); } 50% { transform: translate(40px, 200px) rotate(180deg); } to { transform: translate(-10px, 420px) rotate(360deg); opacity: 0; } }
.cp[data-theme="edo"] .cp-pattern { background: repeating-linear-gradient(135deg, rgba(210,72,58,.07) 0 2px, transparent 2px 22px); }
.cp[data-theme="edo"] .cp-hero { border-bottom: 4px solid var(--accent); }
.cp[data-theme="tokyo"] .cp-pattern { background: linear-gradient(transparent 94%, rgba(200,107,255,.16) 95%), linear-gradient(90deg, transparent 94%, rgba(200,107,255,.1) 95%); background-size: 36px 36px; }
.cp[data-theme="tokyo"] .cp-name { text-shadow: 0 0 22px var(--accent); }
.cp[data-theme="rose"] .cp-pattern, .cp[data-theme="lavanta"] .cp-pattern { background: radial-gradient(60% 80% at 85% 0, var(--glow), transparent 70%); }
.cp[data-theme="vice"] .cp-pattern { background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 6px); mask-image: linear-gradient(transparent 40%, #000); }
.cp[data-theme="noir"] .cp-hero, .cp[data-theme="noir"] .cp-portrait img { filter: grayscale(1) contrast(1.05); }
.cp[data-theme="noir"] .cp-pattern { background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); }
.cp[data-theme="western"] .cp-pattern { background: radial-gradient(circle at 20% 120%, rgba(211,154,82,.25), transparent 60%); }
.cp[data-theme="western"] .cp-name, .cp[data-theme="altin"] .cp-name, .cp[data-theme="sokak"] .cp-name { letter-spacing: .03em; }
.cp[data-theme="sokak"] .cp-pattern { background: repeating-linear-gradient(-45deg, rgba(242,210,46,.1) 0 14px, transparent 14px 28px); mask-image: linear-gradient(90deg, #000, transparent 60%); }
.cp[data-theme="sokak"] .cp-name { transform: rotate(-1.5deg); transform-origin: left; text-transform: none; }
.cp[data-theme="altin"] .cp-pattern { background: linear-gradient(120deg, transparent 30%, rgba(216,178,94,.12) 50%, transparent 70%); }
.cp[data-theme="altin"] .cp-hero { border-bottom: 1px solid var(--accent); }
.cp[data-theme="orman"] .cp-pattern { background: radial-gradient(80% 100% at 0 100%, rgba(143,191,106,.2), transparent 60%); }
.cp[data-theme="sakura"] .cp-name, .cp[data-theme="edo"] .cp-name, .cp[data-theme="rose"] .cp-name, .cp[data-theme="lavanta"] .cp-name, .cp[data-theme="orman"] .cp-name { text-transform: none; }

/* Silhouettes: every theme gets a skyline/landscape along the bottom of the hero (tinted with the accent, so a custom accent
   recolours it); some add a big emblem. Both are alpha masks from assets/img/sil/. A cover image replaces the strip. */
.cp, .theme-opt { --sil: url(../img/sil/rostar.svg); }
.cp[data-theme="sakura"], .theme-opt[data-theme="sakura"] { --sil: url(../img/sil/sakura.svg); }
.cp[data-theme="edo"], .theme-opt[data-theme="edo"] { --sil: url(../img/sil/edo.svg); }
.cp[data-theme="tokyo"], .theme-opt[data-theme="tokyo"] { --sil: url(../img/sil/tokyo.svg); }
.cp[data-theme="rose"], .theme-opt[data-theme="rose"] { --sil: url(../img/sil/rose.svg); }
.cp[data-theme="lavanta"], .theme-opt[data-theme="lavanta"] { --sil: url(../img/sil/lavanta.svg); }
.cp[data-theme="vice"], .theme-opt[data-theme="vice"] { --sil: url(../img/sil/vice.svg); }
.cp[data-theme="noir"], .theme-opt[data-theme="noir"] { --sil: url(../img/sil/noir.svg); }
.cp[data-theme="western"], .theme-opt[data-theme="western"] { --sil: url(../img/sil/western.svg); }
.cp[data-theme="sokak"], .theme-opt[data-theme="sokak"] { --sil: url(../img/sil/sokak.svg); }
.cp[data-theme="altin"], .theme-opt[data-theme="altin"] { --sil: url(../img/sil/altin.svg); }
.cp[data-theme="rozet"], .theme-opt[data-theme="rozet"] { --sil: url(../img/sil/rozet.svg); }
.cp[data-theme="acil"], .theme-opt[data-theme="acil"] { --sil: url(../img/sil/acil.svg); }
.cp[data-theme="orman"], .theme-opt[data-theme="orman"] { --sil: url(../img/sil/orman.svg); }
.cp[data-theme="rose"] { --emb: url(../img/sil/rose-emblem.svg); }
.cp[data-theme="lavanta"] { --emb: url(../img/sil/lavanta-emblem.svg); }
.cp[data-theme="vice"] { --emb: url(../img/sil/vice-emblem.svg); }
.cp[data-theme="noir"] { --emb: url(../img/sil/noir-emblem.svg); }
.cp[data-theme="western"] { --emb: url(../img/sil/western-emblem.svg); }
.cp[data-theme="sokak"] { --emb: url(../img/sil/sokak-emblem.svg); }
.cp[data-theme="altin"] { --emb: url(../img/sil/altin-emblem.svg); }
.cp[data-theme="rozet"] { --emb: url(../img/sil/rozet-emblem.svg); }
.cp[data-theme="acil"] { --emb: url(../img/sil/acil-emblem.svg); }
.cp[data-theme="orman"] { --emb: url(../img/sil/orman-emblem.svg); }
.cp-sil, .cp-emblem, .cp-prop, .cp-ecg i { background: var(--accent); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.cp-sil { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(120px, 17vw, 230px); opacity: .17; -webkit-mask-image: var(--sil); mask-image: var(--sil); -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-position: left bottom; mask-position: left bottom; -webkit-mask-size: auto 100%; mask-size: auto 100%; }
.cp-emblem { position: absolute; right: 5%; top: 50%; width: clamp(180px, 26vw, 340px); aspect-ratio: 1; transform: translateY(-50%); opacity: .1; -webkit-mask-image: var(--emb); mask-image: var(--emb); -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.cp-hero.has-banner .cp-sil, .cp-hero.has-banner .cp-prop { display: none; }
.cp[data-theme="vice"] .cp-emblem { top: auto; bottom: 0; right: 12%; transform: translateY(34%); opacity: .3; background: linear-gradient(180deg, #ffb35c, var(--accent) 45%, #ff4f9a); }
.cp[data-theme="altin"] .cp-emblem { top: auto; bottom: 0; right: 8%; transform: none; opacity: .09; }
.cp[data-theme="orman"] .cp-emblem { opacity: .08; }

/* Rozet (police) and Acil servis (EMS): a vehicle on the street, siren glow, and a few job-specific touches */
.cp-prop { position: absolute; bottom: 1px; right: 30%; height: clamp(54px, 8vw, 104px); aspect-ratio: var(--prop-ar, 520 / 140); opacity: .18; -webkit-mask-image: var(--prop); mask-image: var(--prop); -webkit-mask-position: center bottom; mask-position: center bottom; -webkit-mask-size: contain; mask-size: contain; }
.cp[data-theme="rozet"] { --prop: url(../img/sil/cruiser.svg); --light-a: #ff3b4a; --light-b: #3b82ff; }
.cp[data-theme="acil"] { --prop: url(../img/sil/ambulance.svg); --prop-ar: 520 / 160; --light-a: #ff3b4a; --light-b: #ffffff; }
.cp-lights { position: absolute; inset: 0 0 auto 0; height: 170px; }
.cp-lights::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--light-a) 50%, var(--light-b) 50%); opacity: .8; }
.cp-lights i { position: absolute; top: 0; width: 50%; height: 100%; opacity: 0; }
.cp-lights i:first-child { left: 0; background: radial-gradient(80% 100% at 15% 0, var(--light-a), transparent 70%); animation: cp-flash-a 1.5s linear infinite; }
.cp-lights i:last-child { right: 0; background: radial-gradient(80% 100% at 85% 0, var(--light-b), transparent 70%); animation: cp-flash-b 1.5s linear infinite; }
.cp[data-theme="acil"] .cp-lights i:last-child { filter: brightness(.9); }
@keyframes cp-flash-a { 0% { opacity: .34; } 8% { opacity: .34; } 9% { opacity: 0; } 17% { opacity: 0; } 18% { opacity: .34; } 26% { opacity: .34; } 27%, 100% { opacity: 0; } }
@keyframes cp-flash-b { 0%, 49% { opacity: 0; } 50% { opacity: .3; } 58% { opacity: .3; } 59% { opacity: 0; } 67% { opacity: 0; } 68% { opacity: .3; } 76% { opacity: .3; } 77%, 100% { opacity: 0; } }
.cp-ecg { position: absolute; left: 0; right: 0; top: 16%; height: 96px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.cp-ecg i { position: absolute; inset: 0; opacity: .3; -webkit-mask-image: url(../img/sil/ecg.svg); mask-image: url(../img/sil/ecg.svg); -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-position: 0 50%; mask-position: 0 50%; -webkit-mask-size: auto 100%; mask-size: auto 100%; animation: cp-ecg 4s linear infinite; }
@keyframes cp-ecg { to { -webkit-mask-position: 384px 50%; mask-position: 384px 50%; } }
@keyframes cp-beat { 0%, 100% { box-shadow: 0 24px 50px -24px #000, 0 0 0 6px var(--accent-soft); } 12% { box-shadow: 0 24px 50px -24px #000, 0 0 0 11px var(--accent-soft); } 24% { box-shadow: 0 24px 50px -24px #000, 0 0 0 6px var(--accent-soft); } 36% { box-shadow: 0 24px 50px -24px #000, 0 0 0 9px var(--accent-soft); } }

.cp[data-theme="rozet"] { --cp-hero: linear-gradient(180deg, #14233f 0%, #0c1426 100%); }
.cp[data-theme="rozet"] .cp-pattern { background: radial-gradient(60% 90% at 82% 0, rgba(111,156,240,.2), transparent 70%), repeating-linear-gradient(90deg, rgba(111,156,240,.06) 0 1px, transparent 1px 48px); opacity: 1; }
.cp[data-theme="rozet"] .cp-hero { border-bottom: 4px solid var(--accent); box-shadow: 0 6px 0 -3px var(--accent-soft); }
.cp[data-theme="rozet"] .cp-name { letter-spacing: .03em; font-weight: 400; }
.cp[data-theme="rozet"] .cp-portrait { border-radius: 8px; }
.cp[data-theme="acil"] { --cp-hero: linear-gradient(180deg, #2a1517 0%, #151314 100%); }
.cp[data-theme="acil"] .cp-pattern { background: var(--accent); opacity: .07; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 24v16M24 32h16' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 24v16M24 32h16' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cp[data-theme="acil"] .cp-hero { border-bottom: 0; }
.cp[data-theme="acil"] .cp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: repeating-linear-gradient(-45deg, var(--accent) 0 11px, #f3efef 11px 22px); }
.cp[data-theme="acil"] .cp-name { letter-spacing: .02em; }
.cp[data-theme="acil"] .cp-portrait { animation: cp-beat 2.6s ease-in-out infinite; }
.cp[data-theme="rozet"] .cp-kicker, .cp[data-theme="acil"] .cp-kicker { justify-self: start; padding: 5px 12px; border: 1px solid var(--accent-line); border-radius: 5px; background: var(--accent-soft); letter-spacing: .16em; }
.cp[data-theme="rozet"] .cp-kicker::before { content: "★"; margin-right: 8px; }
.cp[data-theme="acil"] .cp-kicker::before { content: "✚"; margin-right: 8px; }
.cp[data-theme="rozet"] .panel, .cp[data-theme="acil"] .panel { border-top: 2px solid var(--accent-line); }
@media (max-width: 900px) { .cp-prop { right: 6%; } .cp-ecg { top: 8%; } }
@media (prefers-reduced-motion: reduce) {
  .cp-lights i, .cp-ecg i, .cp[data-theme="acil"] .cp-portrait { animation: none; }
  .cp-lights i { opacity: .25; }
}

/* theme picker: the same silhouette, tiny, inside each swatch */
.theme-swatch::before { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 62%; background: var(--sw-ac); opacity: .5; -webkit-mask-image: var(--sil); mask-image: var(--sil); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 22% bottom; mask-position: 22% bottom; -webkit-mask-size: auto 100%; mask-size: auto 100%; }
.theme-swatch b { position: relative; z-index: 1; }
.theme-swatch i { z-index: 1; }

@media (max-width: 900px) {
  .edit-layout { grid-template-columns: minmax(0, 1fr); }
  .cp-side { position: static; }
  .cp-portrait { width: 140px; }
  .cp-hero.has-banner { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .cp-petals i { animation: none; } }

.link-claim { display: grid; gap: 12px; }
.claim-code { display: flex; align-items: baseline; gap: 12px; }
.claim-code .mono { font-size: 34px; font-weight: 700; letter-spacing: .12em; color: var(--accent-text); cursor: copy; }
.claim-code small { color: var(--muted); }
.apply-form.is-wizard .form-section h3 { display: none; }
.apply-form.is-wizard .form-section:not(:has(p)) { display: none; }

/* ---------- Faction pages ---------- */
.fx-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.fx-cover.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 45%, var(--surface)); }
.fx-cover .fx-type, .fx-cover .fx-status { z-index: 1; }
.fx-link { color: inherit; }
.fx-link::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.fx-card { position: relative; }
.fx-actions { position: relative; z-index: 1; }
.managed-factions { display: grid; gap: 10px; }
.managed-row { display: flex; align-items: center; gap: 10px; }
.managed-row > a:nth-child(2) { flex: 1; min-width: 0; color: var(--text); }
.managed-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fc); flex: none; }

.fp { --fc: var(--accent); background: var(--bg); }
.fp-hero { position: relative; background: linear-gradient(180deg, color-mix(in srgb, var(--fc) 30%, var(--bg-2)), var(--bg) 100%); border-bottom: 1px solid color-mix(in srgb, var(--fc) 40%, transparent); }
.fp-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fp-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.fp-hero.has-cover .fp-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 15%, var(--bg) 100%); }
.fp-mark { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); font: 800 clamp(140px, 24vw, 320px)/1 var(--font-head); letter-spacing: -.04em; color: var(--fc); opacity: .09; user-select: none; }
.fp-hero-inner { position: relative; z-index: 2; padding-block: 28px 34px; }
.fp-hero.has-cover .fp-hero-inner { padding-top: 110px; }
.fp-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 18px; }
.fp-logo { display: grid; place-items: center; width: 132px; height: 132px; overflow: hidden; border: 3px solid color-mix(in srgb, var(--fc) 60%, transparent); border-radius: 28px; background: color-mix(in srgb, var(--fc) 40%, var(--surface-2)); box-shadow: 0 24px 50px -24px #000, 0 0 0 6px color-mix(in srgb, var(--fc) 14%, transparent); font: 700 40px var(--font-head); color: #fff; flex: none; }
.fp-logo img { width: 100%; height: 100%; object-fit: cover; }
.fp-title { flex: 1; min-width: 240px; display: grid; gap: 8px; padding-bottom: 4px; }
.fp-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--fc) 70%, #fff); }
.fp-kicker .icon { width: 15px; height: 15px; }
.fp-title h1 { font: 800 clamp(36px, 6vw, 62px)/1.02 var(--font-head); text-transform: uppercase; letter-spacing: .01em; }
.fp-tagline { max-width: 640px; font-size: 19px; font-style: italic; color: var(--text-2); }
.fp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-bottom: 6px; }
.fp-actions .btn-primary { background: var(--fc); color: #0b0d0e; }
.fp-body { padding: 34px 0 64px; }
.fp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.fp-main, .fp-aside { display: grid; gap: 16px; align-content: start; }
.fp-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.fp-panel .block-title .icon, .fp-section .block-title .icon, .fp-aside .block-title { color: color-mix(in srgb, var(--fc) 75%, #fff); }
.fp-posts { display: grid; gap: 12px; }
.fp-post header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.fp-post h3 { font-size: 18px; font-weight: 600; }
.fp-post time { font-size: 13px; color: var(--muted); }
.fp-people, .fp-roster, .fp-others { display: grid; gap: 10px; }
.fp-people li { display: flex; align-items: center; gap: 12px; }
.fp-people img { border-radius: 50%; flex: none; }
.fp-people span { flex: 1; min-width: 0; display: grid; }
.fp-people small, .fp-roster small, .fp-others small { font-size: 12.5px; color: var(--muted); }
.fp-roster li { display: flex; flex-direction: column; padding: 8px 12px; border-left: 3px solid var(--fc); border-radius: 0 10px 10px 0; background: var(--surface-2); }
.fp-roster small { text-transform: uppercase; letter-spacing: .08em; }
.fp-others a { display: flex; align-items: center; gap: 12px; color: var(--text); }
.fp-others a:hover strong { color: var(--accent-text); }
.fp-others .fx-logo { width: 42px; height: 42px; border-radius: 12px; font-size: 14px; border-width: 2px; }
.fp-others span:last-child { display: grid; min-width: 0; }
.fp-manage-list { display: grid; gap: 8px; margin-top: 16px; }
.fp-manage-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.fp-manage-list span { display: grid; min-width: 0; }
.fp-manage-list small { color: var(--muted); font-size: 12.5px; }
.fp-people-edit { margin: 14px 0; }
.fp-people-edit form { margin-left: auto; }
@media (max-width: 900px) {
  .fp-layout { grid-template-columns: minmax(0, 1fr); }
  .fp-aside { position: static; }
  .fp-logo { width: 96px; height: 96px; border-radius: 22px; font-size: 30px; }
}
.cp-form .panel > .field { margin-top: 16px; }
.cp-form .panel > .switch { margin-top: 14px; }

/* ---------- Weazel News: broadcast look ---------- */
.tv-head { --tv-red: #e3232c; background: linear-gradient(180deg, #1a0b0d, #0e0f11); border-bottom: 3px solid var(--tv-red); }
.tv-head-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; min-height: 84px; }
.tv-logo { display: inline-flex; align-items: stretch; height: 46px; font: 800 italic 28px/1 var(--font-head); letter-spacing: .03em; text-transform: uppercase; transform: skewX(-8deg); box-shadow: 0 10px 30px -14px var(--tv-red); }
.tv-logo span { display: grid; place-items: center; padding: 0 14px 0 16px; background: var(--tv-red); color: #fff; }
.tv-logo b { display: grid; place-items: center; padding: 0 16px 0 12px; background: #fff; color: #111; font-weight: 800; }
.tv-live { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border: 1px solid rgba(227, 35, 44, .6); border-radius: 4px; background: rgba(227, 35, 44, .14); font: 700 13px var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: #ff6b72; }
.tv-live i, .tv-ticker-label i, .tv-onair i { width: 8px; height: 8px; border-radius: 50%; background: var(--tv-red); animation: tv-blink 1.4s ease-in-out infinite; }
@keyframes tv-blink { 50% { opacity: .25; } }
.tv-meta { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; margin-left: auto; font-size: 14px; color: var(--muted); }
.tv-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tv-meta .icon { width: 14px; height: 14px; }
.tv-clock { font: 700 26px var(--font-head); letter-spacing: .06em; color: #fff; font-variant-numeric: tabular-nums; }
.tv-search { display: flex; align-items: center; gap: 8px; width: 230px; height: 38px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 6px; background: rgba(255, 255, 255, .04); }
.tv-search:focus-within { border-color: var(--tv-red); }
.tv-search .icon { color: var(--muted); }
.tv-search input[type="search"] { flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 0; background: none; box-shadow: none; }
.tv-head-sm { border-bottom-width: 2px; }
.tv-head-sm .tv-head-row { min-height: 64px; }
.tv-head-sm .tv-logo { height: 38px; font-size: 22px; }
.tv-head-sm .crumbs { margin-left: 4px; }
.tv-head-sm .tv-clock { margin-left: auto; font-size: 22px; }

.tv-ticker { display: flex; align-items: stretch; height: 44px; overflow: hidden; background: #0a0a0b; border-bottom: 1px solid var(--border); }
.tv-ticker-label { display: inline-flex; align-items: center; gap: 9px; padding: 0 28px 0 max(20px, calc((100vw - var(--container)) / 2 + 24px)); background: var(--tv-red, #e3232c); color: #fff; font: 800 15px var(--font-head); letter-spacing: .14em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); flex: none; z-index: 1; }
.tv-ticker-label i { background: #fff; }
.tv-ticker-track { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.tv-ticker-move { display: flex; gap: 0; white-space: nowrap; width: max-content; animation: tv-crawl 60s linear infinite; }
.tv-ticker-track:hover .tv-ticker-move { animation-play-state: paused; }
.tv-ticker-move a { display: inline-flex; align-items: center; padding: 0 22px; font: 600 15.5px var(--font-head); letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.tv-ticker-move a::before { content: "◆"; margin-right: 22px; font-size: 9px; color: #e3232c; }
.tv-ticker-move a:hover { text-decoration: underline; text-underline-offset: 4px; }
@keyframes tv-crawl { to { transform: translateX(-50%); } }

.tv-menu { position: sticky; top: var(--header-h); z-index: 30; border-bottom: 1px solid var(--border); background: rgba(12, 12, 14, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tv-cats { display: flex; gap: 2px; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.tv-cats::-webkit-scrollbar { display: none; }
.tv-chip { --cc: #e3232c; position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 4px; font: 700 15px var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; transition: background .15s, color .15s; }
.tv-chip::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 3px; height: 2px; background: var(--cc); transform: scaleX(0); transition: transform .25s var(--ease); }
.tv-chip:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.tv-chip.is-active { color: #fff; background: rgba(255, 255, 255, .08); }
.tv-chip.is-active::after, .tv-chip:hover::after { transform: scaleX(1); }

.tv-stage { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 18px; padding-top: 24px; }
.tv-lead { --cc: #e3232c; position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 460px; overflow: hidden; border-radius: 8px; background: #000; border: 1px solid var(--border-2); }
.tv-lead-media { position: absolute; inset: 0; z-index: -1; }
.tv-lead-media > img { width: 100%; height: 100%; object-fit: cover; }
.tv-lead-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, rgba(0,0,0,.92) 92%); }
.tv-lead .press-play { top: 18px; right: 18px; bottom: auto; }
.tv-bug { position: absolute; right: 16px; top: 16px; z-index: 2; padding: 5px 10px; background: #e3232c; color: #fff; font: 800 italic 14px/1 var(--font-head); letter-spacing: .08em; transform: skewX(-8deg); }
.tv-bug b { margin-left: 4px; padding: 0 5px; background: #fff; color: #111; }
.tv-lead .press-play { right: 16px; top: 58px; }
.tv-onair { position: absolute; left: 16px; top: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; background: rgba(0, 0, 0, .65); border-left: 4px solid #e3232c; font: 700 13px var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.tv-third { width: 100%; padding: 0 0 22px; display: grid; justify-items: start; gap: 0; }
.tv-tag { margin-left: 22px; padding: 5px 14px; background: var(--cc); color: #0b0b0b; font: 800 14px var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.tv-third h2 { width: calc(100% - 40px); margin: 0 0 0 22px; padding: 14px 22px 12px; background: rgba(8, 8, 10, .88); border-left: 6px solid var(--cc); font: 800 clamp(26px, 3.1vw, 42px)/1.08 var(--font-head); text-transform: uppercase; letter-spacing: .005em; color: #fff; }
.tv-third h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.tv-third p { width: calc(100% - 40px); margin: 0 0 0 22px; padding: 10px 22px 12px; background: rgba(240, 240, 240, .95); font-size: 15.5px; color: #1a1a1a; }
.tv-time { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0 24px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.tv-time .icon { width: 14px; height: 14px; }

.tv-label { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.tv-label span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: #e3232c; color: #fff; font: 800 14px var(--font-head); letter-spacing: .14em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 22px; }
.tv-label span .icon { width: 15px; height: 15px; }
.tv-label em { font-style: normal; font-size: 13.5px; color: var(--muted); }
.tv-rundown { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--border-2); border-radius: 8px; background: linear-gradient(180deg, #161213, #0f1012); }
.tv-rundown ol { display: grid; gap: 2px; flex: 1; }
.tv-rundown li { --cc: #e3232c; border-left: 3px solid var(--cc); }
.tv-rundown a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 12px 12px; border-radius: 0 6px 6px 0; transition: background .15s; }
.tv-rundown a:hover { background: rgba(255, 255, 255, .06); }
.tv-rundown time { min-width: 52px; font: 700 20px var(--font-head); letter-spacing: .04em; color: #ff6b72; font-variant-numeric: tabular-nums; }
.tv-rundown span { display: grid; gap: 2px; min-width: 0; }
.tv-rundown small { font: 700 12px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--cc); }
.tv-rundown strong { font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--text); }

.tv-videos { margin-top: 36px; padding: 26px 0 30px; border-block: 1px solid var(--border); background: linear-gradient(180deg, #0f1012, #0b0b0c); }
.tv-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.tv-clip { --cc: #e3232c; display: grid; gap: 6px; align-content: start; scroll-snap-align: start; color: var(--text); }
.tv-clip-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border-2); }
.tv-clip-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tv-clip:hover .tv-clip-media img { transform: scale(1.05); }
.tv-clip-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--cc); }
.tv-clip small { font: 700 12px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--cc); }
.tv-clip strong { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.tv-clip:hover strong { text-decoration: underline; text-underline-offset: 3px; }

.tv-section-head h2 { position: relative; padding-left: 16px; font: 800 30px var(--font-head); text-transform: uppercase; letter-spacing: .02em; }
.tv-section-head h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 6px; background: #e3232c; }
.press-layout .press-media { border-radius: 6px; }
.press-layout .press-card h3 { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: .005em; line-height: 1.15; text-transform: uppercase; }
.press-layout .press-cat { padding: 2px 8px; border-radius: 3px; background: color-mix(in srgb, var(--cc, #e3232c) 22%, transparent); font: 700 12px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.press-layout .press-cat::before { display: none; }
.press-aside .tv-label { margin-bottom: 8px; }
.press-aside .press-box { border-radius: 8px; border-color: var(--border-2); }
.press-aside .press-tip .btn-secondary { border-color: #e3232c; }
.press-article .press-article-head h1 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; line-height: 1.04; }
.press-article .press-cat { padding: 4px 12px; background: var(--cc, #e3232c); color: #0b0b0b; font: 800 14px var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.press-article .press-cat::before { display: none; }
@media (max-width: 1100px) { .tv-meta .tv-edition { display: none; } }
@media (max-width: 900px) {
  .tv-stage { grid-template-columns: minmax(0, 1fr); }
  .tv-lead { min-height: 380px; }
  .tv-meta { margin-left: 0; }
  .tv-search { width: 100%; order: 5; }
  .tv-head-row { padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tv-ticker-move { animation: none; }
  .tv-ticker-track { overflow-x: auto; }
  .tv-live i, .tv-ticker-label i, .tv-onair i { animation: none; }
}
.tv-rundown time { flex: none; min-width: 66px; }
.tv-meta { flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
.tv-search { flex: none; }
@media (max-width: 1400px) { .tv-meta .tv-edition { display: none; } }
@media (max-width: 900px) { .tv-meta { flex: 1 1 100%; justify-content: flex-start; order: 4; } }

/* ---------- Streamers: streaming-platform look ---------- */
.sp { --sp-live: #ff3b4a; --sp-kick: #53fc18; --sp-twitch: #9146ff; --sp-yt: #ff2e2e; }
.sp-hero { position: relative; overflow: hidden; padding: 44px 0 34px; background: radial-gradient(60% 120% at 85% 0, rgba(145, 70, 255, .28), transparent 65%), radial-gradient(50% 120% at 10% 100%, rgba(83, 252, 24, .12), transparent 60%), #0d0e12; border-bottom: 1px solid var(--border); }
.sp-hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px); pointer-events: none; }
.sp-hero-inner { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.sp-kicker { display: inline-flex; align-items: center; gap: 9px; font: 700 14px var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: #ff6b76; }
.sp-hero h1 { margin-top: 8px; font: 800 clamp(44px, 6vw, 76px)/.95 var(--font-head); text-transform: uppercase; letter-spacing: .01em; }
.sp-lead { max-width: 560px; margin-top: 12px; font-size: 17px; color: var(--text-2); }
.sp-stats { display: flex; gap: 10px; margin: 0; }
.sp-stats > div { min-width: 100px; padding: 12px 18px; border: 1px solid var(--border-2); border-radius: 12px; background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); }
.sp-stats > div.is-live { border-color: rgba(255, 59, 74, .5); background: rgba(255, 59, 74, .1); }
.sp-stats dt { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sp-stats dd { margin: 2px 0 0; font: 700 30px var(--font-head); font-variant-numeric: tabular-nums; }
.sp-stats .is-live dd { color: #ff6b76; }

.sp-bar { position: sticky; top: var(--header-h); z-index: 30; border-bottom: 1px solid var(--border); background: rgba(13, 14, 18, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.sp-bar-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; min-height: 58px; padding-block: 8px; }
.sp-tabs { display: flex; gap: 4px; }
.sp-tab { height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); font: 700 14.5px var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); transition: background .15s, color .15s, border-color .15s; }
.sp-tab:hover { color: #fff; border-color: var(--border-3); }
.sp-tab.is-active { background: #fff; border-color: #fff; color: #0b0b0b; }
.sp-tab-twitch.is-active { background: var(--sp-twitch); border-color: var(--sp-twitch); color: #fff; }
.sp-tab-kick.is-active { background: var(--sp-kick); border-color: var(--sp-kick); color: #0b0b0b; }
.sp-tab-youtube.is-active { background: var(--sp-yt); border-color: var(--sp-yt); color: #fff; }
.sp-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.sp-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sp-toggle input:checked + .switch-ui { background: var(--sp-live); border-color: var(--sp-live); }
.sp-toggle input:checked + .switch-ui::after { transform: translateX(16px); background: #fff; }
.sp-search { display: flex; align-items: center; gap: 8px; width: 260px; height: 38px; margin-left: auto; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 999px; background: rgba(255, 255, 255, .04); }
.sp-search:focus-within { border-color: var(--sp-twitch); }
.sp-search .icon { color: var(--muted); }
.sp-search input[type="search"] { flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 0; background: none; box-shadow: none; }

.sp-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding-block: 28px 72px; align-items: start; }
.sp-layout:not(:has(.sp-rail)) { grid-template-columns: minmax(0, 1fr); }
.sp-rail { position: sticky; top: calc(var(--header-h) + 76px); display: grid; gap: 2px; max-height: calc(100vh - var(--header-h) - 100px); overflow: auto; padding: 14px 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); scrollbar-width: thin; }
.sp-rail-title { padding: 0 10px 8px; font: 700 13px var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sp-chan { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; transition: background .15s; }
.sp-chan:hover { background: var(--surface-2); }
.sp-chan:not(.is-live) { opacity: .6; }
.sp-chan[hidden], .sp-card[hidden], .sp-tile[hidden], .sp-section[hidden], .sp-featured[hidden] { display: none; }
.sp-chan-main { display: grid; flex: 1; min-width: 0; }
.sp-chan-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 600; }
.sp-chan-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--muted); }
.sp-viewers { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.sp-viewers i { width: 8px; height: 8px; border-radius: 50%; background: var(--sp-live); }
.sp-avatar { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); font-weight: 700; color: #fff; flex: none; overflow: visible; }
.sp-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.sp-avatar.is-live { box-shadow: 0 0 0 2px var(--sp-live); }
.sp-avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.sp-avatar-xl { width: 84px; height: 84px; font-size: 30px; }

.sp-main { display: grid; gap: 34px; min-width: 0; }
.sp-featured { overflow: hidden; border: 1px solid var(--border-2); border-radius: 14px; background: var(--surface); }
.sp-stage { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: radial-gradient(circle, rgba(145, 70, 255, .18), transparent 70%), #05060a; }
.sp-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sp-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-thumb.is-blur, .sp-card-media img.is-blur { opacity: .55; filter: blur(14px) saturate(1.3); transform: scale(1.15); }
.sp-badge-live { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 5px; background: var(--sp-live); color: #fff; font: 800 13px var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.sp-badge-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: tv-blink 1.4s ease-in-out infinite; }
.sp-badge-viewers { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 5px; background: rgba(0, 0, 0, .72); font-size: 13px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.sp-badge-viewers .icon { width: 14px; height: 14px; color: var(--sp-live); }
.sp-stage .sp-badge-viewers { top: 12px; bottom: auto; left: auto; right: 12px; }
.sp-play { position: relative; z-index: 2; }
.sp-info { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; }
.sp-info-main { flex: 1; min-width: 220px; display: grid; gap: 4px; }
.sp-info-main h2 { font-size: 20px; font-weight: 600; line-height: 1.25; }
.sp-info-main p { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text-2); }
.sp-plat { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin: 0 6px 0 2px; border-radius: 4px; font: 700 11px var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--surface-3); }
.sp-plat-kick { background: var(--sp-kick); color: #0b0b0b; }
.sp-plat-twitch { background: var(--sp-twitch); }
.sp-plat-youtube { background: var(--sp-yt); }
.sp-cat { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--surface-3); font-size: 12.5px; color: var(--text-2); }
.sp-empty { display: grid; justify-items: center; gap: 8px; padding: 56px 20px; text-align: center; border: 1px dashed var(--border-3); border-radius: 14px; background: var(--surface); }
.sp-empty-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface-3); color: var(--muted); }
.sp-empty-ico .icon { width: 26px; height: 26px; }
.sp-empty h2 { font-size: 24px; }
.sp-empty p { max-width: 440px; color: var(--text-2); }
.sp-h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 800 26px var(--font-head); text-transform: uppercase; letter-spacing: .02em; }
.sp-h em { font: 600 14px var(--font-head); font-style: normal; padding: 2px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px 16px; }
.sp-card { display: grid; gap: 10px; align-content: start; color: var(--text); }
.sp-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: linear-gradient(135deg, #1d1530, #0d1a12); border: 1px solid var(--border-2); transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; }
.sp-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-card:hover .sp-card-media { transform: translate(-4px, -4px); border-color: var(--sp-twitch); box-shadow: 4px 4px 0 var(--sp-twitch); }
.sp-card-body { display: flex; gap: 10px; align-items: flex-start; }
.sp-card-text { display: grid; gap: 2px; min-width: 0; justify-items: start; }
.sp-card-text strong { display: -webkit-box; overflow: hidden; font-size: 15.5px; font-weight: 600; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sp-card-text small { font-size: 13px; color: var(--muted); }
.sp-card:hover strong { color: #fff; }
.sp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sp-tile { display: grid; justify-items: center; gap: 6px; padding: 18px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-align: center; transition: border-color .2s, transform .25s var(--ease); }
.sp-tile:hover { border-color: var(--border-3); transform: translateY(-3px); }
.sp-tile strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.sp-tile small { display: inline-flex; align-items: center; font-size: 12.5px; color: var(--muted); }
.sp-none { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 30px 0; color: var(--muted); }
.sp-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 22px 24px; border: 1px solid var(--border-2); border-radius: 14px; background: linear-gradient(120deg, rgba(145, 70, 255, .16), rgba(83, 252, 24, .06)); }
.sp-cta h3 { font: 800 22px var(--font-head); text-transform: uppercase; }
.sp-cta p { margin-top: 4px; color: var(--text-2); }
@media (max-width: 1000px) {
  .sp-layout { grid-template-columns: minmax(0, 1fr); }
  .sp-rail { display: none; }
}
@media (max-width: 640px) {
  .sp-search { width: 100%; margin-left: 0; }
  .sp-stats > div { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .sp-badge-live i { animation: none; } .sp-card:hover .sp-card-media { transform: none; } }
.sp-stage .sp-play { position: relative; inset: auto; right: auto; bottom: auto; left: auto; top: auto; transform: none; width: 84px; height: 84px; }
.sp-tile small { flex-direction: column; gap: 6px; }
.sp-tile .sp-plat { margin: 0; }
.sp-stage .sp-play { margin: 0; }

/* Government factions (LSPD, Pillbox…): official look with rank ladder and roster by rank */
.fp-gov .fp-hero { background: linear-gradient(180deg, color-mix(in srgb, var(--fc) 34%, #0b0e14), #0b0d11); border-bottom: 4px solid var(--fc); box-shadow: 0 6px 0 -3px color-mix(in srgb, var(--fc) 22%, transparent); }
.fp-gov .fp-title h1 { letter-spacing: .03em; }
.fp-gov .fp-logo { border-radius: 14px; }
.fp-emblem { position: absolute; right: 5%; top: 50%; width: clamp(200px, 26vw, 340px); aspect-ratio: 1; transform: translateY(-50%); background: var(--fc); opacity: .12; -webkit-mask: var(--emb) no-repeat center / contain; mask: var(--emb) no-repeat center / contain; }
.fp-gov .fp-kicker { padding: 4px 12px; border: 1px solid color-mix(in srgb, var(--fc) 50%, transparent); border-radius: 5px; background: color-mix(in srgb, var(--fc) 14%, transparent); justify-self: start; }
.fp-gov .panel { border-top: 2px solid color-mix(in srgb, var(--fc) 60%, transparent); }
.fp-ladder { display: grid; gap: 6px; }
.fp-ladder li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); border-left: 4px solid color-mix(in srgb, var(--fc) calc(100% - var(--i, 0) * 1%), transparent); }
.fp-ladder b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: color-mix(in srgb, var(--fc) 30%, var(--surface-3)); font: 700 15px var(--font-head); flex: none; }
.fp-ladder span { display: grid; }
.fp-ladder strong { font-size: 16px; }
.fp-ladder small { color: var(--muted); font-size: 13.5px; }
.fp-roster-groups { display: grid; gap: 18px; }
.fp-roster-groups h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font: 700 15px var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--fc) 70%, #fff); }
.fp-roster-groups h3 em { font-style: normal; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 12px; }
.fp-roster-groups ul { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-roster-groups li { padding: 6px 12px; border: 1px solid var(--border-2); border-radius: 8px; background: var(--surface-2); font-size: 14.5px; }

/* Staff page */
.staff-group + .staff-group { margin-top: 40px; }
.staff-group h2 { margin-bottom: 14px; font: 700 15px var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.staff-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.staff-card img { border-radius: 50%; flex: none; }
.staff-card span { display: grid; min-width: 0; }
.staff-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.staff-card small { color: var(--muted); font-size: 13px; }
