/* Anime Core Studio — dark violet + brushed-silver theme taken from the studio logo.
   No inline styles anywhere (CSP style-src 'self'); JS only sets CSS custom properties / sizes. */

:root {
  color-scheme: dark;
  --page: #09080e;
  --surface: #13111b;
  --surface-2: #1b1826;
  --surface-3: #241f33;
  --border: rgba(167, 139, 250, 0.14);
  --border-strong: rgba(167, 139, 250, 0.28);
  --text: #f3f1f8;
  --text-2: #bfb8d1;
  --muted: #9a92b0;
  --silver: linear-gradient(180deg, #ffffff 0%, #e6e2f0 45%, #b9b2cc 55%, #f4f1fb 100%);

  --violet-300: #c4b5fd;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --brand-soft: rgba(139, 92, 246, 0.16);
  --glow: 0 0 0 1px rgba(167, 139, 250, 0.35), 0 8px 30px rgba(124, 58, 237, 0.35);

  /* status (always paired with a text label) */
  --good: #22c55e;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #ef4444;
  --dev: #a78bfa;
  --testing: #2dd4bf;
  --good-text: #4ade80;
  --critical-text: #f87171;
  --neutral-dot: #8b84a0;

  /* charts */
  --series: #9085e9;
  --grid: #2a2638;
  --axis: #3a3550;
  --axis-text: #9a92b0;

  --focus: #c4b5fd;

  /* surfaces / effects that differ per theme */
  --bg-glow-1: rgba(124, 58, 237, 0.28);
  --bg-glow-2: rgba(167, 139, 250, 0.08);
  --topbar-bg: rgba(9, 8, 14, 0.78);
  --overlay-bg: rgba(9, 8, 14, 0.82);
  --float-bg: rgba(19, 17, 27, 0.92);
  --link-hover: #ddd6fe;
  --amber-text: #fcd34d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
  /* interactive geometric background (geo-bg.js) */
  --geo-rgb: 167, 139, 250;
  --geo-line: 0.075;
  --geo-fill: 0.035;

  --radius: 14px;
  --fs: 15px; /* base size inside the studio cards (scaled with the screen on the home page) */
  --page-width: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Light theme (toggle in the top bar, saved in localStorage; applied early by theme-init.js).
   Near-white page, white cards lifted by soft shadows (instead of tinted borders), violet kept for accents. */
:root[data-theme="light"] {
  color-scheme: light;
  --page: #f4f3f8;
  --surface: #ffffff;
  --surface-2: #f5f3fa;
  --surface-3: #ece9f4;
  --border: rgba(28, 18, 60, 0.09);
  --border-strong: rgba(91, 33, 182, 0.24);
  --text: #16121f;
  --text-2: #4a4458;
  --muted: #6b6580;
  --card-shadow: 0 1px 2px rgba(28, 18, 60, 0.05), 0 6px 20px -6px rgba(28, 18, 60, 0.1);
  --silver: linear-gradient(180deg, #4a4163 0%, #2a2340 48%, #1c1730 52%, #4a4163 100%);

  --violet-300: #6d28d9;
  --violet-400: #8b5cf6;
  --brand-soft: rgba(124, 58, 237, 0.11);
  --glow: 0 0 0 1px rgba(124, 58, 237, 0.3), 0 8px 24px rgba(124, 58, 237, 0.16);

  --warning: #e0a00f;
  --dev: #8b5cf6;
  --testing: #14b8a6;
  --good-text: #15803d;
  --critical-text: #b91c1c;
  --neutral-dot: #9a93ad;

  --series: #7b6fe0;
  --grid: #dad6e4;
  --axis: #bfb8cf;
  --axis-text: #6a6480;

  --focus: #7c3aed;
  --bg-glow-1: rgba(124, 58, 237, 0.1);
  --bg-glow-2: rgba(167, 139, 250, 0.07);
  --topbar-bg: rgba(255, 255, 255, 0.82);
  --overlay-bg: rgba(255, 255, 255, 0.88);
  --float-bg: rgba(255, 255, 255, 0.96);
  --link-hover: #5b21b6;
  --amber-text: #a16207;
  --shadow: 0 10px 30px rgba(45, 25, 90, 0.14);
  --shadow-lg: 0 18px 50px rgba(45, 25, 90, 0.18);
  --geo-rgb: 109, 40, 217;
  --geo-line: 0.05;
  --geo-fill: 0.018;
}
/* light page, home game cards: like the team cards, a white plate with a coloured hairline and a soft coloured
   shadow (brand violet; launch cards take their fire's colour through --card-rgb) */
.game { --card-rgb: 139, 92, 246; }
[data-theme="light"] .game.rich {
  border-color: rgba(var(--card-rgb), 0.3);
  background: linear-gradient(180deg, #fff 55%, rgba(var(--card-rgb), 0.07));
  box-shadow: 0 14px 34px -18px rgba(var(--card-rgb), 0.6);
}
[data-theme="light"] .game.rich::after { box-shadow: inset 0 0 0 1px rgba(var(--card-rgb), 0.55); }
[data-theme="light"] .launch-card.game.rich {
  border-color: rgba(var(--card-rgb), 0.45);
  background: linear-gradient(180deg, #fff 50%, rgba(var(--card-rgb), 0.1));
  box-shadow: 0 0 0 1px rgba(var(--card-rgb), 0.12), 0 18px 40px -16px rgba(var(--card-rgb), 0.65);
}
[data-theme="light"] .game.rich .game-media::after { background: linear-gradient(180deg, transparent, #fff); }
[data-theme="light"] .game-media.icon-only { background: radial-gradient(circle at 50% 45%, rgba(var(--card-rgb), 0.22), transparent 65%), rgba(var(--card-rgb), 0.05); }
/* light: surfaces separate by shadow, not by tint */
[data-theme="light"] .card, [data-theme="light"] .game,
[data-theme="light"] .card { background: var(--surface); }
[data-theme="light"] .soon-panel { background: var(--surface-2); }
/* avatar stage: same look as dark (a coloured glow behind the avatar on a neutral surface), tuned for a light page */
[data-theme="light"] ::selection { background: rgba(139, 92, 246, 0.28); }
/* page transition: each new page fades in and rises slightly (router.js adds .page-enter); transform and opacity
   only. The loading state fades in softly too, so a quick navigation never flashes. */
.page-enter { animation: page-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#main > .loading { animation: page-in 0.3s ease 0.12s both; }
@media (prefers-reduced-motion: reduce) { .page-enter, #main > .loading { animation: none; } }
/* theme switch: a slow cross-fade (theme.js switchTheme), not a light-switch flash */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.7s; animation-timing-function: ease-in-out; }
.theme-veil { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 1; transition: opacity 0.7s ease; will-change: opacity; }
.theme-veil.out { opacity: 0; }
[data-theme="light"] .studio-logo { filter: drop-shadow(0 6px 26px rgba(91, 33, 182, 0.35)); }
[data-theme="light"] .tag.dev { color: #0369a1; }
[data-theme="light"] .tag.cm { color: #be185d; }
[data-theme="light"] .tag.tester { color: #0f766e; }
[data-theme="light"] .tag.tester-lead { color: #115e59; }
[data-theme="light"] .tag.beta { color: #4338ca; }
[data-theme="light"] .tag.creator { color: #c2410c; }
[data-theme="light"] .tag.mod { color: #15803d; }
[data-theme="light"] .tag.helper { color: #475569; background: rgba(100, 116, 139, 0.14); }
[data-theme="light"] .ban-box strong { color: #991b1b; }
[data-theme="light"] .kind-staff { --kind-text: #be123c; }
[data-theme="light"] .kind-tester { --kind-text: #047857; }
[data-theme="light"] .kind-developer { --kind-text: #0369a1; }
[data-theme="light"] .like-btn:hover, [data-theme="light"] .like-btn.on { color: #e11d48; }
[data-theme="light"] .like-btn.on { background: rgba(255, 228, 233, 0.9); }
[data-theme="light"] .rank-pos.top2 { background: linear-gradient(180deg, #f4f2f9, #bdb6cf); }
[data-theme="light"] .game-media.icon-only img { box-shadow: 0 8px 24px rgba(45, 25, 90, 0.25); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 15px/1.5 var(--font);
  background:
    radial-gradient(1100px 520px at 50% -180px, var(--bg-glow-1), transparent 70%),
    radial-gradient(700px 400px at 100% 0, var(--bg-glow-2), transparent 70%),
    var(--page);
  background-attachment: fixed;
}
/* the page fills the window: main takes the spare height, so the footer always sits at the bottom */
html { min-height: 100%; }
body { min-height: 100dvh; }
#app { flex: 1 0 auto; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
#main { flex: 1 0 auto; }
/* nothing may widen the page sideways (the launch cards' fire reaches past their edges): clip, without making a
   scroll container, so the sticky top bar keeps working */
html, body { overflow-x: clip; }
.footer { margin-top: auto; }
.geo-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
a { color: var(--violet-300); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 620; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(139, 92, 246, 0.45); }
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { flex: none; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
}
/* bottom rule fading out at both ends */
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--border-strong) 18%, var(--border-strong) 82%, transparent);
}
/* account menu open: a gap in the line where the menu hangs (layout.js joinBar sets --gap-l / --gap-r) */
.topbar.menu-joined::after {
  -webkit-mask-image: linear-gradient(90deg, #000 var(--gap-l), transparent var(--gap-l) var(--gap-r), #000 var(--gap-r));
  mask-image: linear-gradient(90deg, #000 var(--gap-l), transparent var(--gap-l) var(--gap-r), #000 var(--gap-r));
}
/* at least the regular page width: the home page narrows --page-width, the bar's links still need the room */
.topbar-inner { max-width: max(var(--page-width), 1160px); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; flex: none; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.55)); }
.brand-text {
  font-weight: 800; font-size: 15px; letter-spacing: 0.06em; line-height: 1;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text small { display: block; font-size: 9.5px; letter-spacing: 0.42em; margin-top: 3px; color: var(--violet-300); -webkit-text-fill-color: var(--violet-300); }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
/* menu: open links (no boxes); the active one is lit with a thin glowing line under it, which grows from the
   centre on hover (transform only) */
.nav a { position: relative; color: var(--text-2); text-decoration: none; padding: 8px 12px; white-space: nowrap; font-size: 14px; font-weight: 550;
  transition: color 0.15s; }
.nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px; border-radius: 2px;
  background: var(--violet-400); box-shadow: 0 0 10px var(--violet-500);
  transform: scaleX(0); opacity: 0; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(0.45); opacity: 0.6; }
.nav a.active { color: var(--text); }
.nav a.active::after { transform: scaleX(1); opacity: 1; }
.nav a { display: inline-flex; align-items: center; gap: 6px; }
.nav-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--critical); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}
.top-right { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.top-sep { width: 1px; height: 20px; margin: 0 6px; background: var(--border-strong); flex: none; }
.lang { width: auto; padding: 5px 8px; font-size: 13px; }
/* every control in the top bar shares one height (34px, like the icon buttons) */
/* tools (theme, language) are bare until hovered; the account button is a pill */
.top-right .lang {
  height: 34px; padding: 0 6px; border-radius: 9px; border-color: transparent; background-color: transparent;
  color: var(--text-2); font-weight: 600; cursor: pointer;
}
.top-right .lang:hover { background-color: var(--surface-2); color: var(--text); }
.top-right > .btn { height: 34px; padding: 0 18px; border-radius: 999px; }
.icon-link {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  color: var(--text-2); border: 1px solid transparent; background: transparent; transition: color 0.15s, background 0.15s;
}
.icon-link:hover { color: var(--text); background: var(--surface-2); }
.theme-toggle { padding: 0; font: inherit; cursor: pointer; }
.icon-link.discord:hover { color: #fff; background: #5865f2; border-color: #5865f2; }

/* profile menu */
.profile { position: relative; }
.profile-btn {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 1px 10px 1px 1px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font: inherit; cursor: pointer;
}
.profile-btn:hover, .profile-btn[aria-expanded="true"] { border-color: var(--border-strong); background: var(--surface-3); }
.profile-btn .name { font-size: 14px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-dot { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--critical); margin-right: -4px; }
.profile:has(.menu .nav-badge:not(.hidden)) .menu-dot { display: inline-block; }
/* account menu: hangs from the header's bottom line (the bar's 10px bottom padding below the button), right edge on
   the page's edge like the button */
/* ---------- shell motion (account menu; reusable): a panel that grows out of the bar through concave joins.
   Tokens below. ---------- */
:root {
  --shell-surface: var(--topbar-bg);                                       /* same as the bar: the panel is part of it */
  --shell-r: 22px;          /* outer corners and the concave joins */
  --shell-dur: 360ms;       /* panel */
  --shell-dur-sm: 190ms;    /* small interactions */
  --shell-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
.menu {
  position: absolute; right: 0; top: calc(100% + 9px); width: 300px; max-width: calc(100vw - 24px - 2 * var(--shell-r)); z-index: 40;
  padding: 7px 10px 10px; border: 0; background: none;
  /* closed: a sliver under the account button, inside the bar. Opening grows it out of the button, wider and down at
     once, its bottom already rounded, until it is the whole panel; closing runs the same path backwards (and an
     open / close half way just turns around, it is one CSS transition) */
  transform-origin: top right; transform: translateY(-4px);
  clip-path: inset(0 0 calc(100% - 2px) var(--menu-from, 60%) round 0 0 var(--shell-r) var(--shell-r));
  visibility: hidden; pointer-events: none;
  transition: clip-path var(--shell-dur) var(--shell-ease), transform var(--shell-dur) var(--shell-ease), visibility 0s linear var(--shell-dur);
}
.menu.open {
  transform: none; visibility: visible; pointer-events: auto;
  clip-path: inset(0 calc(var(--shell-r) * -1) 0 calc(var(--shell-r) * -1) round 0 0 var(--shell-r) var(--shell-r));
  transition: clip-path var(--shell-dur) var(--shell-ease), transform var(--shell-dur) var(--shell-ease), visibility 0s;
}
/* the panel's surface and outline (layout.js shape()): one shape, cut from a single path, wider than the panel by the
   concave joins on each side; one background and one blur, the outline stroking the same path */
.menu-surface {
  position: absolute; top: 0; left: calc(var(--shell-r) * -1); z-index: -1; pointer-events: none;
  background: var(--shell-surface); backdrop-filter: blur(12px);
}
.menu-outline { position: absolute; top: 0; left: calc(var(--shell-r) * -1); z-index: -1; pointer-events: none; overflow: visible; }
.menu-outline path { fill: none; stroke: var(--border-strong); stroke-width: 1; stroke-linejoin: round; shape-rendering: geometricPrecision; }
.menu { isolation: isolate; }
/* contents settle in after the surface, and leave first (reverse) */
.menu > :not(.menu-surface):not(.menu-outline) { opacity: 0; transform: translateY(-4px); transition: opacity var(--shell-dur-sm) var(--shell-ease), transform var(--shell-dur-sm) var(--shell-ease); }
.menu.open > :not(.menu-surface):not(.menu-outline) { opacity: 1; transform: none; transition: opacity 260ms var(--shell-ease) 70ms, transform 260ms var(--shell-ease) 70ms; }

/* panel contents (classic look) */
.menu-head { display: flex; gap: 12px; align-items: center; padding: 6px 8px 10px; }
.menu-head .who { min-width: 0; }
.menu-head strong { display: block; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-head .who span { display: block; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-kv {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0 0 4px; padding: 10px 10px; font-size: 13px;
  border-radius: 10px; background: var(--surface-2);
}
.menu-kv dt { color: var(--muted); }
.menu-kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.menu-label { padding: 8px 8px 4px; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; border-radius: 10px; border: 0; background: none;
  color: var(--text); text-decoration: none; font: inherit; font-size: 14px; cursor: pointer; text-align: left;
  transition: background var(--shell-dur-sm) var(--shell-ease), transform var(--shell-dur-sm) var(--shell-ease);
}
.menu-item:hover { background: var(--surface-2); color: var(--text); }
.menu-item:active { transform: scale(0.97); }
.menu-item .icon { color: var(--muted); }
.menu-item:hover .icon { color: var(--violet-300); }
.menu-item.danger { color: var(--critical-text); }
.menu-item.danger .icon { color: inherit; }
.menu-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; font-size: 14px; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.menu-item.compact { gap: 6px; padding: 7px 9px; font-size: 13.5px; min-width: 0; }
.menu-item.compact .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item.compact .nav-badge { flex: none; }
.menu-item.active { background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--border-strong); }
.menu .divider { margin: 4px 0; }
@media (prefers-reduced-motion: reduce) {
  .menu, .menu.open, .menu > *, .menu.open > *, .menu-item { transition: none; }
  .menu { transform: none; }
  .menu-item:active { transform: none; }
}

@media (max-width: 1180px) { .profile-btn .name { display: none; } .profile-btn { padding-right: 8px; } }
@media (max-width: 1000px) and (min-width: 761px) { .brand-text { display: none; } .topbar-inner { gap: 12px; } .nav a { padding: 8px 10px; } }
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; gap: 6px 12px; padding: 8px 14px 4px; }
  /* centred menu row that wraps onto a second line instead of hiding links off the edge */
  .nav { order: 3; flex-basis: 100%; flex-wrap: wrap; justify-content: center; overflow: visible; margin: 0 -8px; }
  .profile-btn .name { display: none; }
}
/* phones (scrollui.js): the bar slides up out of the way while scrolling down, back on scrolling up; a small
   "back to top" button appears far down long pages. Transform / opacity only. */
.topbar { transition: transform 0.28s ease; }
@media (max-width: 760px) { html.bar-hidden .topbar { transform: translateY(-100%); } }
.to-top {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 25; display: none;
  width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; cursor: pointer;
  color: var(--text); background: var(--float-bg); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  backdrop-filter: blur(8px); opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.to-top .icon { width: 18px; height: 18px; }
@media (max-width: 760px) { .to-top { display: inline-flex; } }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .topbar, .to-top { transition: none; } }
/* phones: brand and tools always share the first row (menu on the second), everything a notch smaller */
@media (max-width: 480px) {
  .brand { gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .brand-text { font-size: 13px; }
  .brand-text small { font-size: 8.5px; letter-spacing: 0.36em; }
  .top-right { gap: 2px; }
  .top-sep { margin: 0 4px; }
  .top-right > .btn { padding: 0 14px; }
  .nav a { padding: 8px 10px; font-size: 13.5px; }
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--page-width); margin: 0 auto; padding: 28px 16px 56px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack.sm { gap: 6px; }
/* Placeholder boxes a view fills later (e.g. ticket actions/rating) take no gap while empty. */
.stack > div:empty { display: none; }
.stack.lg { gap: 40px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.center { justify-content: center; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head p { margin-top: 4px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.section-title { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-300); font-weight: 700; }
/* title + small link button: the button must not make the row taller than a bare title, or the spacing drifts */
.section-head { align-items: center; }
.section-head > .btn { margin-block: -8px; }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%), var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-width: 0;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 16px 20px 0; }
.pad { padding: 0 20px 16px; }

.footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.footer .container { padding: 16px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
/* phones: one centred column, the legal links under the copyright */
@media (max-width: 600px) {
  .footer .container { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 16px 22px; }
  .footer .row { justify-content: center; gap: 16px; }
}
.footer a { color: var(--text-2); }
/* a thin divider between the legal links */
.footer .row a + a { position: relative; margin-left: 9px; }
.footer .row a + a::before { content: ''; position: absolute; left: -12px; top: 50%; height: 12px; width: 1px; translate: 0 -50%; background: var(--border-strong); }

/* ---------- studio home ---------- */
/* same breathing room above the logo and below the numbers */
/* The home page width follows the screen (1160px on a 1920px screen, narrower on laptops, wider on 1440p / 4K);
   the other pages keep a fixed width so tables and panels don't shrink. The top bar follows the same width. */
body:has(.home) { --page-width: clamp(720px, 60.5vw, 1680px); }
/* everything inside the game / launch cards is a multiple of --fs: 15px at 1920x1080, following the smaller of the
   window's width and height, so a card keeps its proportions on any screen (readable floor on small ones) */
.home { --fs: clamp(12px, min(0.78125vw, 1.389vh), 24px); }
/* narrow screens: one card per row at full width, so the cards keep the desktop's reading size */
@media (max-width: 760px) { .home { --fs: 15px; } }
/* phones: two game cards per row, in a compact version (the card's scale drops, the creator line goes, the cover is
   shorter); launch cards stay full width but with a shorter cover, so more fits on one screen */
@media (max-width: 600px) {
  .home .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home .games > .game { --fs: 11.5px; }
  .home .games .game-media { aspect-ratio: 16 / 10; }
  .home .games .game-ico { width: 36px; height: 36px; border-radius: 9px; }
  .home .games .game-head { gap: 8px; }
  .home .games .game-head-tags { display: none; }
  .home .games .game-creator { font-size: 11.5px; }
  .home .games .game-creator .icon { width: 12px; height: 12px; }
  .home .games .game-body { padding: 10px 9px 12px; gap: 6px; }
  .home .games .game-body h3 { font-size: 15px; }
  .home .games .game-meta { font-size: 11.5px; min-height: 0; }
  /* compact: genre only (the date would wrap to its own line); the date stays on the game's tooltip-free full card */
  .home .games .game-meta .sep, .home .games .game-meta .game-date { display: none; }
  .home .games .game-grid { column-gap: 14px; }
  .home .games .stat-label { font-size: 9.5px; letter-spacing: 0.08em; }
  .home .games .stat-value { font-size: 17px; }
  .home .games .approval b { font-size: 12.5px; }
  .home .games .btn.play-roblox, .home .games .btn.play-off { padding: 10px 6px; font-size: 13px; gap: 6px; }
  .home .games .game-media .badge { font-size: 10px; padding: 2px 7px; top: 7px; right: 7px; }
  .home .launches .game-media { aspect-ratio: 16 / 7; }
  .home .launches { padding-top: 34px; }
}
/* Home layout in screen-relative units: vertical spacing follows the window height (vh), widths the window
   width (vw), each clamped so phones and 4K screens stay sane. The numbers match the old pixel values at 1080p,
   where the first screen shows the studio header + the first row of cards with equal room above and below. */
.home {
  --section-gap: clamp(24px, 3.7vh, 72px);  /* between sections (40px at 1080p) */
  --title-gap: clamp(14px, 1.85vh, 36px);   /* section title -> its cards (20px at 1080p) */
  gap: var(--section-gap);
}
.home > section.stack { gap: var(--title-gap); }
/* room above the logo = room under the first row of cards: 4vh in total with the container's 28px padding */
.studio-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(10px, 1.5vh, 28px);
  /* the top bar doesn't scale: on taller screens it takes a smaller share, so give that room back above the logo
     (and take some away on short ones); the extra term is 0 at 1080p */
  padding-top: max(0px, calc(3.72vh - 28px + (1.389vh - 15px) * 3.9));
}
.studio-logo { width: min(440px, 72vw, max(150px, 24.2vh)); height: auto; filter: drop-shadow(0 0 42px rgba(124, 58, 237, 0.45)); }
/* phones: the home header uses fixed sizes, not the window height (that differs from phone to phone and with the
   browser's bars), and is compact, so the launches start on the first screen on every phone alike */
@media (max-width: 600px) {
  .home { --section-gap: 26px; --title-gap: 14px; }
  .home .studio-hero { padding-top: 4px; gap: 12px; }
  .home .studio-logo { width: min(42vw, 190px); }
  .home .hero-stats { padding: 0; }
  .home .hero-stat, .home .hero-stat:first-child { padding: 10px 6px; }
  .home .hero-stat b { font-size: 22px; }
  .home .hero-stat > span { font-size: 9.5px; }
  .container:has(.home) { padding-top: 16px; }
}
/* studio numbers: one open row (no boxes), thin dividers between them; a 2 x 2 grid on phones */
.hero-stats { display: flex; justify-content: center; padding: clamp(6px, 1.05vh, 20px) 0; }
.hero-stat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 2px clamp(18px, 2.1vw, 44px); border-left: 1px solid var(--border-strong);
}
.hero-stat:first-child { border-left: 0; }
.hero-stat b { white-space: nowrap; font-size: clamp(24px, min(3.2vh, 2.2vw), 44px); font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text); }
.hero-stat > span {
  display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap;
  font: 600 clamp(10px, min(1vh, 0.68vw), 13px)/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.12em; text-transform: uppercase;
}
/* phones: a 2 x 2 grid divided by an open cross (lines stop short of the centre), like the game cards' numbers */
@media (max-width: 560px) {
  .hero-stats {
    --gap: 10px;
    display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; width: 100%; padding: 0;
    background:
      linear-gradient(to bottom, var(--border-strong) 0 calc(50% - var(--gap)), transparent 0 calc(50% + var(--gap)), var(--border-strong) 0) center / 1px 100% no-repeat,
      linear-gradient(to right, var(--border-strong) 0 calc(50% - var(--gap)), transparent 0 calc(50% + var(--gap)), var(--border-strong) 0) center / 100% 1px no-repeat;
  }
  .hero-stat, .hero-stat:first-child { border-left: 0; padding: 14px 6px; justify-content: center; }
}

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--fs) * 17.4), 1fr)); gap: calc(var(--fs) * 1.07); }
.game {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.game:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--glow); }
.game-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
.game-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-media .badge { position: absolute; right: calc(var(--fs) * 0.6667); top: calc(var(--fs) * 0.6667); background: var(--overlay-bg); backdrop-filter: blur(6px); }
.game.testing .game-media img { filter: saturate(0.8) brightness(0.9); }
.game.in_dev .game-media img, .game.offline .game-media img { filter: saturate(0.55) brightness(0.75); }
.game-media.icon-only { display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(139, 92, 246, 0.35), transparent 65%), var(--surface-2); }
.game-media.icon-only img { width: calc(var(--fs) * 6.4); height: calc(var(--fs) * 6.4); border-radius: calc(var(--fs) * 1.333); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }
.game-ph { width: 100%; height: 100%; background: radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.35), transparent 60%); }
.game-body { padding: calc(var(--fs) * 0.8) calc(var(--fs) * 1.067) calc(var(--fs) * 0.9333); display: flex; flex-direction: column; gap: calc(var(--fs) * 0.5333); flex: 1; }
.game-body h3 { font-size: calc(var(--fs) * 1.1); font-weight: 750; line-height: 1.2; }
.game-body .btn { align-self: flex-start; }
/* cover slideshow: every image stacked, the current one faded in; dots at the bottom */
.game-media .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.game-media .slide.on { opacity: 1; }
.slide-dots {
  position: absolute; left: 50%; bottom: calc(var(--fs) * 0.5333); transform: translateX(-50%); display: flex; gap: calc(var(--fs) * 0.3333);
  padding: calc(var(--fs) * 0.2667) calc(var(--fs) * 0.4); border-radius: calc(var(--fs) * 66.6); background: rgba(0, 0, 0, 0.35);
}
.dot-btn { width: calc(var(--fs) * 0.4); height: calc(var(--fs) * 0.4); padding: 0; border: 0; border-radius: calc(var(--fs) * 0.2); background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: width 0.2s, background 0.2s; }
.dot-btn.on { width: calc(var(--fs) * 0.9333); background: #fff; }
/* Studio game cards. Every animation here only touches transform / opacity, so the browser runs it on the
   compositor at the screen's refresh rate (no repaint per frame): no animated shadows, widths or blurs. */
.game.rich { position: relative; will-change: transform; transition: transform 0.2s ease; }
.game.rich:hover { transform: translateY(-3px); box-shadow: none; border-color: var(--border); }
.game.rich::after { /* hover outline + glow, faded in with opacity */
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 1px var(--border-strong), inset 0 0 40px rgba(139, 92, 246, 0.12); transition: opacity 0.2s ease;
}
.game.rich:hover::after { opacity: 1; }
.game.rich .game-media { overflow: hidden; }
.game.rich .game-media::after {
  content: ''; position: absolute; inset: auto 0 0; height: 50%; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, transparent, var(--surface));
}
[data-theme="light"] .game.rich .game-media::after { height: 32%; }
/* no banner: the icon sits in the middle of the cover, sized to it, never under the badge or a fade */
.game.rich .game-media.icon-only::after { display: none; }
.game.rich .game-media.icon-only img { width: auto; height: 54%; aspect-ratio: 1; }
.game-ph { display: flex; align-items: center; justify-content: center; }
.game-ph img { width: 26%; height: auto; opacity: 0.35; }
.game-ico.ph { display: flex; align-items: center; justify-content: center; font-size: calc(var(--fs) * 1.2); font-weight: 800; letter-spacing: 0.02em;
  color: #fff; background: linear-gradient(135deg, var(--violet-500), var(--violet-700)); }
.game.rich .game-media .badge { z-index: 2; backdrop-filter: none; background: rgba(9, 8, 14, 0.78); color: #f3f1f8; }
.game.rich .slide-dots { z-index: 2; }
.game.rich .game-media .slide { will-change: opacity, transform; transition: opacity 0.6s ease, transform 0.8s ease; }
.game.rich:hover .game-media .slide.on { transform: scale(1.04); }
/* icon, name + creator and tags on one row, all centred on the icon */
.game-head { display: flex; align-items: center; gap: calc(var(--fs) * 0.8); min-width: 0; }
.game-ico {
  flex: none; width: calc(var(--fs) * 3.6); height: calc(var(--fs) * 3.6); object-fit: cover;
  border-radius: calc(var(--fs) * 0.8667); border: 1px solid var(--border); background: var(--surface-2);
}
.game-head-text { display: flex; flex-direction: column; gap: calc(var(--fs) * 0.06667); min-width: 0; }
.game-head-tags { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: calc(var(--fs) * 0.4); }
/* phones: the tags ("Estimated date") sit at the top right, beside the name only; the creator and date lines below
   keep the full width, so nothing wraps and no extra line is needed */
@media (max-width: 600px) {
  .game-head { position: relative; }
  .game-head-text { flex: 1; }
  .game-head:has(.game-head-tags) .game-title { padding-right: calc(var(--fs) * 7.4); }
  .game-head-tags { position: absolute; top: 0; right: 0; }
}

.game-title { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--fs) * 0.2667) calc(var(--fs) * 0.5333); }
.game-creator { display: inline-flex; align-items: center; gap: calc(var(--fs) * 0.3333); align-self: flex-start; font-size: calc(var(--fs) * 0.8333); color: var(--text-2); text-decoration: none; }
.game-creator:hover { color: var(--link-hover); text-decoration: none; }
/* third line next to the icon, under name and creator */
.game-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: calc(var(--fs) * 0.1333) calc(var(--fs) * 0.4667); min-height: 1.4em; margin: 0; font-size: calc(var(--fs) * 0.8333); color: var(--muted); }
.game-genre { color: var(--text); font-weight: 650; }
.game-meta .sep { color: var(--muted); }
.game-meta .game-date { font-size: calc(var(--fs) * 0.7667); cursor: help; }
/* the numbers float free (no boxes): small label over a big value, spacing alone groups them */
/* numbers in a 2 x 2 grid with lines that never touch: a short divider between the columns on each row and a short
   rule under the top row, stopping before the centre (an open cross) */
.game-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(var(--fs) * 1.6); margin: calc(var(--fs) * 0.2) 0 calc(var(--fs) * 0.1); }
.game-grid > :only-child { grid-column: 1 / -1; } /* a lone tile (e.g. only the peak of an offline game) spans the row */
.game-stat { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: calc(var(--fs) * 0.27); min-width: 0;
  padding: calc(var(--fs) * 0.6) 0; }
/* the open cross is drawn on the grid itself: rows of equal height make the grid's centre the exact crossing, and both
   lines stop --cross-gap short of it on each side, so the four arms are symmetric by construction */
.game-grid {
  --cross-gap: calc(var(--fs) * 0.55);
  grid-auto-rows: 1fr;
  background:
    linear-gradient(to bottom, var(--border-strong) 0 calc(50% - var(--cross-gap)), transparent 0 calc(50% + var(--cross-gap)), var(--border-strong) 0) center / 1px 100% no-repeat,
    linear-gradient(to right, var(--border-strong) 0 calc(50% - var(--cross-gap)), transparent 0 calc(50% + var(--cross-gap)), var(--border-strong) 0) center / 100% 1px no-repeat;
}
.game-grid:has(> :only-child) { background: none; }
.stat-label { display: inline-flex; align-items: center; gap: calc(var(--fs) * 0.4); font: 600 calc(var(--fs) * 0.7)/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stat-value { display: block; font-size: calc(var(--fs) * 1.4); font-weight: 750; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--text); }
.game-stat.live .stat-value { color: var(--good-text); }
.live-dot { position: relative; width: calc(var(--fs) * 0.4); height: calc(var(--fs) * 0.4); flex: none; border-radius: 50%; background: var(--good); }
.live-dot::after { /* expanding ring: transform + opacity only */
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--good);
  animation: live-ring 2s ease-out infinite; will-change: transform, opacity;
}
@keyframes live-ring { from { transform: scale(1); opacity: 0.55; } to { transform: scale(2.8); opacity: 0; } }
.approval { display: flex; flex-direction: column; gap: calc(var(--fs) * 0.4); padding: calc(var(--fs) * 0.27) 0 calc(var(--fs) * 0.4); }
.approval-top { display: flex; align-items: baseline; justify-content: space-between; gap: calc(var(--fs) * 0.6667); }
.approval b { font-size: calc(var(--fs) * 0.9333); font-weight: 750; font-variant-numeric: tabular-nums; color: var(--text); }
.approval-track { display: block; height: calc(var(--fs) * 0.27); border-radius: calc(var(--fs) * 66.6); background: var(--surface-2); overflow: hidden; }
.approval-fill { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--good); transform-origin: left; transform: scaleX(var(--p, 0)); }
.game-body .btn.play-roblox {
  align-self: stretch; margin-top: auto; padding: calc(var(--fs) * 0.8); gap: calc(var(--fs) * 0.5333); border-radius: calc(var(--fs) * 0.7333); border-color: transparent;
  background: #22c55e; color: #052e14; font-weight: 700;
}
.game .btn.play-roblox, .game .btn.play-off, .game .btn.follow-btn { font-size: calc(var(--fs) * 0.933); }
.game .game-media .badge { font-size: calc(var(--fs) * 0.833); padding: calc(var(--fs) * 0.2) calc(var(--fs) * 0.6); }
.game .game-head-tags .tag { font-size: calc(var(--fs) * 0.767); padding: calc(var(--fs) * 0.133) calc(var(--fs) * 0.533); }
.game-body .btn.play-roblox:hover { background: #2fd36c; color: #052e14; }
/* taken-down game: where the play button would be, a muted "offline" bar (not clickable) */
.game-body .btn.play-off {
  align-self: stretch; margin-top: auto; padding: calc(var(--fs) * 0.8); gap: calc(var(--fs) * 0.5333); border-radius: calc(var(--fs) * 0.7333); font-weight: 700; cursor: help;
  color: var(--text-2); background: var(--surface-2); border: 1px dashed var(--border-strong);
}
.game-body .btn.play-off:hover { background: var(--surface-2); color: var(--text-2); }
.game-body .btn.play-off .icon { color: var(--critical-text); }
/* number tiles: the plain arrow instead of the text cursor; the "?" one where hovering explains the number */
.game-stat, .approval, .hero-stat { cursor: default; }
.game-stat[title], .approval[title], .hero-stat[title] { cursor: help; }
/* unreleased / taken-down games: a panel fills the card so it lines up with the released ones in the row */
.soon-panel {
  flex: 1; min-height: calc(var(--fs) * 8); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--fs) * 0.4);
  padding: calc(var(--fs) * 1.067); text-align: center; border-radius: calc(var(--fs) * 0.6667); border: 1px dashed var(--border-strong); background: var(--surface-2);
}
.soon-panel b { font-size: calc(var(--fs) * 0.9667); }
.soon-panel p { margin: 0; max-width: 30ch; font-size: calc(var(--fs) * 0.8667); color: var(--text-2); }
.soon-icon { display: inline-flex; padding: calc(var(--fs) * 0.6); border-radius: 50%; color: var(--dev); background: var(--brand-soft); }
.game-body .btn.follow-btn { align-self: stretch; margin-top: auto; padding: calc(var(--fs) * 0.7333); border-radius: calc(var(--fs) * 0.7333); }
@media (prefers-reduced-motion: reduce) {
  .live-dot::after { animation: none; opacity: 0; }
  .game.rich:hover, .game.rich:hover .game-media .slide.on { transform: none; }
}
/* upcoming launches: bigger cards with a live countdown, above the regular game grid */
/* two launch cards per row (each half the width) on any screen wide enough, one per row on phones */
/* padding-top: room for the flames above the cards (they never reach the section title) */
.launches { padding-top: calc(var(--fs) * 3.4); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(calc(var(--fs) * 22.7), calc(50% - 14px))), 1fr));
  gap: calc(var(--title-gap, 20px) * 2.4) 28px; }

/* procedural fire behind each launch card (fire.js draws it in a canvas behind the card, never over its content) */
.launch-fire { position: relative; isolation: isolate; display: flex; transition: transform 0.2s ease; }
.launch-fire > .launch-card { flex: 1; position: relative; z-index: 1; }
.fire-canvas { position: absolute; z-index: -1; pointer-events: none; }
/* the whole card lifts on hover, with its fire */
.launch-fire:hover { transform: translateY(-3px); }
.launch-fire > .launch-card:hover { transform: none; }
@media (prefers-reduced-motion: reduce) { .launch-fire:hover { transform: none; } }
.launch-card { border-color: var(--border-strong);
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.12), transparent 55%), var(--surface); }
.launch-body { padding: calc(var(--fs) * 0.9333) calc(var(--fs) * 1.2) calc(var(--fs) * 1.2); display: flex; flex-direction: column; gap: calc(var(--fs) * 0.6667); }
.launch-body h3 { font-size: calc(var(--fs) * 1.167); }
/* countdown: open numbers like the studio header (no boxes), thin dividers between units */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); padding: calc(var(--fs) * 0.9) 0 calc(var(--fs) * 0.63); }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: calc(var(--fs) * 0.27); border-left: 1px solid var(--border-strong); }
.cd-unit:first-child { border-left: 0; }
.cd-unit b { font-size: calc(var(--fs) * 1.87); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.05; color: var(--text); }
.cd-unit span { color: var(--muted); font: 600 calc(var(--fs) * 0.7)/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.12em; text-transform: uppercase; }
.countdown-done { padding: calc(var(--fs) * 0.8); border-radius: calc(var(--fs) * 0.6667); text-align: center; font-weight: 700; color: var(--good-text);
  background: rgba(34, 197, 94, 0.12); }
/* language switch (rewrite.js): the caret sweeping a text, letters ahead of it still in the old language */
.rw-caret { color: #fff; text-shadow: 0 0 6px var(--violet-400), 0 0 14px var(--violet-500); }
[data-theme="light"] .rw-caret { color: var(--violet-600); text-shadow: 0 0 8px rgba(139, 92, 246, 0.55); }
.rw-old { opacity: 0.45; }
.rw-cursor { color: var(--violet-300); margin-left: 0.04em; animation: rw-blink 0.5s steps(1) infinite; }
@keyframes rw-blink { 50% { opacity: 0; } }
.tag.estimated { background: rgba(250, 178, 25, 0.14); color: var(--amber-text); cursor: help; }
.list li .launch-ctl, .list li .peak-ctl { flex-basis: 100%; gap: 8px; }
.peak-ctl input[type="number"] { width: 130px; }
.launch-ctl input[type="datetime-local"] { width: auto; }
@media (max-width: 420px) { .cd-unit b { font-size: 20px; } }
.game-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); flex: none; object-fit: cover; display: inline-block; }

/* support call to action on the home page: open, like the studio numbers (thin rule above, no box) */
.support-cta {
  display: flex; align-items: center; gap: clamp(14px, 1.2vw, 24px); flex-wrap: wrap;
  padding-top: clamp(20px, 2.6vh, 44px); border-top: 1px solid var(--border-strong);
}
.support-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 50%;
  color: var(--violet-300); background: var(--brand-soft); border: 1px solid var(--border-strong);
}
.support-icon .icon { width: 20px; height: 20px; }
.support-cta h2 { font-size: clamp(18px, 2vh, 26px); font-weight: 750; letter-spacing: -0.01em; }
.support-cta p { margin: 3px 0 0; color: var(--muted); }
.support-cta .btn { padding: 11px 18px; }
@media (max-width: 560px) {
  .support-cta .btn { width: 100%; }
  .home .support-cta { padding-top: 16px; margin-top: -24px; }
  /* the strip is as tall as its tallest person (a dev with several games): on phones a dev's games flow on shared
     lines ("Cloverlines · Shinobi Origins") instead of one per line, so that height, and the blank under the
     others, shrink; every game still shows */
  .marquee .games-list { min-height: 1.45em; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0 5px; font-size: 11px; }
  .marquee .games-line { line-height: 1.4; }
  .marquee .games-line + .games-line::before { content: '·'; margin-right: 5px; color: var(--muted); }
  .marquee-info { padding-bottom: 2px; }
  .marquee { padding-bottom: 0; }
}

/* ---------- login panel ---------- */
.login-panel { max-width: 520px; margin: 8vh auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.login-mark { filter: drop-shadow(0 0 22px rgba(139, 92, 246, 0.6)); }
.login-panel .lead { color: var(--text-2); }
/* the shield sits inline, right before the first word, even when the line wraps (not stranded at the left) */
.login-panel .safe { font-size: 13px; color: var(--text-2); display: block; text-align: center; text-wrap: balance; }
.login-panel .safe .icon { color: var(--good-text); display: inline-block; vertical-align: -3px; margin-right: 6px; }
.login-panel .notice { text-align: left; width: 100%; }
.discord-mark { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 24px; color: #fff; background: #5865f2;
  box-shadow: 0 0 28px rgba(88, 101, 242, 0.55); }

/* ---------- new ticket flow ---------- */
/* new ticket steps: choice cards in the site's card language (lift + tinted edge on hover, an arrow that slides in) */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.choice {
  --c-rgb: 139, 92, 246;
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; border-radius: 16px;
  text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.choice:hover { color: var(--text); transform: translateY(-2px); border-color: rgba(var(--c-rgb), 0.55);
  background: linear-gradient(180deg, rgba(var(--c-rgb), 0.08), transparent 70%), var(--surface); }
.choice:active { transform: scale(0.98); }
.choice img, .choice-ph { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; background: var(--surface-2); border: 1px solid var(--border); }
.choice-text { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; min-width: 0; flex: 1; }
.choice-text strong { font-size: 15.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choice-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.choice-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neutral-dot); }
.st-online .choice-status .dot { background: var(--good); box-shadow: 0 0 8px var(--good); }
.st-testing .choice-status .dot { background: var(--testing); }
.st-in_dev .choice-status .dot { background: var(--dev); }
.st-offline .choice-status .dot { background: var(--critical); }
.game-choice.st-online { --c-rgb: 34, 197, 94; }
.game-choice.st-testing { --c-rgb: 45, 212, 191; }
.game-choice.st-offline { --c-rgb: 239, 68, 68; }
.choice-go { flex: none; display: inline-flex; color: var(--muted); opacity: 0.5; transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease; }
.choice:hover .choice-go { transform: translateX(3px); opacity: 1; color: rgb(var(--c-rgb)); }
[data-theme="light"] .choice { box-shadow: var(--card-shadow); }
@media (prefers-reduced-motion: reduce) { .choice, .choice:hover, .choice:active, .choice-go { transition: none; transform: none; } }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.crumb {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: 13.5px;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
}
.crumb:hover { color: var(--text); border-color: var(--border-strong); }
.game-cell { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.game-cell img { border-radius: 6px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters select { width: auto; }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.tile .label { color: var(--text-2); font-size: 13px; }
.tile .value { font-size: 24px; font-weight: 680; margin-top: 2px; line-height: 1.2; overflow-wrap: anywhere; }
.tile .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
/* .tiles.open (public pages): open numbers, no boxes, a thin divider in the gap before each column; the one before
   the first column falls outside the grid and is clipped, so it works for any number of columns */
.tiles.open { gap: 22px 36px; overflow: hidden; padding: 4px 0; }
.tiles.open .tile { position: relative; background: none; border: 0; border-radius: 0; padding: 0; }
.tiles.open .tile::before { content: ''; position: absolute; top: 2px; bottom: 2px; left: -18px; border-left: 1px solid var(--border-strong); }
.tiles.open .tile .label { color: var(--muted); font: 600 10.5px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.tiles.open .tile .value { font-weight: 750; margin-top: 5px; font-variant-numeric: tabular-nums; }
.hero-figure { font-size: 48px; font-weight: 750; line-height: 1.05; letter-spacing: -0.02em; }
.rbx { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.rbx .icon { width: 0.95em; height: 0.95em; color: var(--violet-300); }

/* ---------- buttons & inputs ---------- */
[hidden] { display: none !important; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1;
  padding: 10px 14px; border-radius: 10px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); color: var(--text); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary {
  border-color: transparent; color: #fff;
  background: linear-gradient(180deg, var(--violet-500), var(--violet-700));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 20px rgba(124, 58, 237, 0.35);
}
.btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #9d74f8, var(--violet-600)); color: #fff; }
.btn.danger { color: var(--critical-text); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 7px 11px; font-size: 13px; }
.btn.lg { padding: 14px 22px; font-size: 16px; }

input[type="text"], input[type="search"], input[type="number"], input[type="date"], textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border-strong); border-radius: 10px; padding: 9px 11px;
}
select { cursor: pointer; }
textarea { resize: vertical; min-height: 92px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--violet-500); cursor: pointer; vertical-align: middle; }
input[type="file"] { font: inherit; font-size: 14px; max-width: 100%; color: var(--text-2); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 550; }
label.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.form-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.form-row > .grow { flex: 1 1 200px; }

/* ---------- segmented tabs ---------- */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a { font-size: 13px; font-weight: 560; color: var(--text-2); padding: 6px 11px; border-radius: 9px; text-decoration: none; white-space: nowrap; }
.seg a:hover { color: var(--text); }
.seg .on { background: var(--brand-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.seg .count { color: var(--muted); margin-left: 5px; font-variant-numeric: tabular-nums; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th.num, .table td.num { text-align: right; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover td, .table tbody tr.selected td { background: rgba(139, 92, 246, 0.08); }
.table .w-check { width: 40px; }
.card.flush .table th:first-child, .card.flush .table td:first-child { padding-left: 20px; }
.card.flush .table th:last-child, .card.flush .table td:last-child { padding-right: 20px; }
.prod-name { font-weight: 560; min-width: 140px; }
.prod-type { color: var(--text-2); font-size: 12.5px; }

/* ---------- badges & tags ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neutral-dot); flex: none; }
.badge.open .dot { background: var(--violet-400); }
.badge.in_progress .dot, .badge.waiting .dot { background: var(--warning); }
.badge.waiting .dot { background: var(--serious); }
.badge.unread { background: var(--brand-soft); }
.badge.unread .dot { background: var(--violet-400); box-shadow: 0 0 8px var(--violet-400); }
.badge.resolved .dot { background: var(--good); box-shadow: 0 0 8px var(--good); }
.badge.rejected .dot { background: var(--critical); }
.badge.dev .dot { background: var(--dev); }
.badge.testing .dot { background: var(--testing); box-shadow: 0 0 8px var(--testing); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; background: var(--surface-2); color: var(--text-2); letter-spacing: 0.01em; white-space: nowrap; }
.tag.staff { background: rgba(167, 139, 250, 0.16); color: var(--violet-300); }
.tag.dev { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
.tag.lead { background: rgba(250, 178, 25, 0.14); color: var(--amber-text); }
.tag.cm { background: rgba(244, 114, 182, 0.14); color: #f9a8d4; }
.tag.tester { background: rgba(45, 212, 191, 0.14); color: #5eead4; }
.tag.tester-lead { background: rgba(45, 212, 191, 0.22); color: #99f6e4; box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.45); }
.tag.beta { background: rgba(129, 140, 248, 0.16); color: #a5b4fc; }
.tag.creator { background: rgba(251, 146, 60, 0.14); color: #fdba74; }
.tag.mod { background: rgba(34, 197, 94, 0.14); color: #86efac; }
.tag.helper { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; }
.tag.owner { background: linear-gradient(180deg, var(--violet-500), var(--violet-700)); color: #fff; }
.tag.banned { background: var(--critical); color: #fff; letter-spacing: 0.04em; }
.card.card-banned { border-color: rgba(239, 68, 68, 0.55); box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.25); }
/* Tester blacklist: black in both themes, with a light edge so it still reads on the dark background. */
.tag.blacklist { background: #000; color: #fff; letter-spacing: 0.04em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
[data-theme="light"] .tag.blacklist { box-shadow: none; }
.tag.purchased { background: rgba(34, 197, 94, 0.16); color: var(--good-text); letter-spacing: 0.04em; }
.pur-box > summary { cursor: pointer; list-style: none; flex-wrap: wrap; }
.pur-box > summary::-webkit-details-marker { display: none; }
.pur-box[open] > summary { margin-bottom: 10px; }
.bl-reason { margin: 0; padding: 6px 10px; border-left: 3px solid var(--border-strong); background: var(--surface-2); border-radius: 0 6px 6px 0; color: var(--text-2); overflow-wrap: anywhere; }
.ban-box {
  border: 1px solid rgba(239, 68, 68, 0.5); background: rgba(239, 68, 68, 0.12); color: var(--critical-text);
  border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px;
}
.ban-box ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.ban-box strong { color: #fca5a5; }

/* ---------- people ---------- */
.avatar { border-radius: 50%; background: var(--surface-3); flex: none; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; font-weight: 650; color: var(--text-2); overflow: hidden; border: 1px solid var(--border-strong); }
.person { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.person .who { min-width: 0; }
.person .who strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .who span { display: block; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- notices & empty ---------- */
.notice { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--violet-500); }
.notice.warn { border-left-color: var(--warning); }
.notice.bad { border-left-color: var(--critical); }
.empty { text-align: center; padding: 36px 16px; color: var(--text-2); }
/* a richer empty state (player's ticket list): icon, title, one line, call to action; open, no box */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 16px 10px; text-align: center; }
.empty-state strong { font-size: 17px; }
.empty-state p { margin: 0 0 8px; max-width: 46ch; color: var(--text-2); line-height: 1.55; }
.empty-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 4px;
  border-radius: 50%; color: var(--violet-300); background: var(--brand-soft); border: 1px solid var(--border-strong);
}
.empty-icon .icon { width: 22px; height: 22px; }
.team-sec-title.plain { color: var(--text); font-size: 19px; }
.empty h3 { color: var(--text); margin-bottom: 6px; }

/* ---------- composer & selection ---------- */
.selbar {
  position: sticky; bottom: 12px; z-index: 10; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--float-bg); backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong); border-radius: 14px; padding: 10px 12px 10px 16px; box-shadow: var(--shadow);
}
.selbar .info { flex: 1; min-width: 160px; font-size: 14px; }
.composer { display: flex; flex-direction: column; gap: 10px; }
/* new ticket, last step: context header (game icon, topic as the title, links to change) and an open composer */
.compose-page { max-width: 760px; width: 100%; margin: 0 auto; }
/* inside the narrow flow column: two cards per row */
.compose-page .choices { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
/* topic cards: a tinted round mark that says what it is, title, one line of description */
.cat-choice { align-items: center; padding: 16px; }
.cat-mark {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  color: rgb(var(--c-rgb)); background: rgba(var(--c-rgb), 0.12);
}
.cat-mark .icon { width: 20px; height: 20px; }
.cat-mark.yt { background: rgba(255, 0, 51, 0.1); }
.cat-choice.choice-yt { --c-rgb: 255, 0, 51; }
.cat-desc { font-size: 13px; line-height: 1.45; color: var(--text-2); }
.cat-choice .choice-text strong { white-space: normal; }
.ticket-context { display: flex; align-items: center; gap: 16px; }
.ticket-context img, .ticket-context .choice-ph { width: 52px; height: 52px; border-radius: 14px; flex: none; border: 1px solid var(--border); }
.ticket-context-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ticket-context-kicker { font-size: 12.5px; color: var(--muted); }
.ticket-context h1 { font-size: 26px; line-height: 1.15; }
.ticket-context-links { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); }
.ticket-context-links a { color: var(--text-2); text-decoration: none; }
.ticket-context-links a:hover { color: var(--text); text-decoration: underline; }
.compose { display: flex; flex-direction: column; gap: 12px; }
.compose-label strong { font-size: 15px; }
.compose-label p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); }
.compose-box { position: relative; }
.compose-box textarea {
  display: block; width: 100%; min-height: 180px; resize: vertical; padding: 16px 16px 34px; border-radius: 16px; font-size: 15px; line-height: 1.55;
  background: var(--surface); border: 1px solid var(--border-strong); transition: border-color 0.15s, box-shadow 0.15s;
}
.compose-box textarea:focus { border-color: var(--violet-500); box-shadow: 0 0 0 3px var(--brand-soft); outline: none; }
.compose-box .counter { position: absolute; right: 14px; bottom: 10px; pointer-events: none; }
.compose-actions { display: flex; justify-content: space-between; gap: 10px; }
@media (max-width: 560px) { .compose-actions .btn { flex: 1; } .ticket-context h1 { font-size: 22px; } }
.composer .actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.counter { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- ticket page: header, origin, Discord bar ---------- */
.ticket-hero { display: flex; align-items: center; gap: 16px; }
.ticket-hero-ico { width: 56px; height: 56px; border-radius: 16px; flex: none; object-fit: cover; border: 1px solid var(--border); box-shadow: var(--shadow); }
.ticket-hero-ico.ph { display: grid; place-items: center; background: var(--surface-2); color: var(--violet-300); }
.ticket-hero-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.ticket-hero-main h1 { font-size: 26px; line-height: 1.1; }
.ticket-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; color: var(--text-2); }
.ticket-hero-meta .handler { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 560px) {
  .ticket-hero { flex-wrap: wrap; gap: 12px; }
  .ticket-hero > .btn { order: -1; flex-basis: 100%; justify-content: flex-start; padding: 4px 0; }
  .ticket-hero > .btn:hover { background: transparent; }
  .ticket-hero-ico { width: 44px; height: 44px; border-radius: 12px; }
  .ticket-hero-main h1 { font-size: 22px; }
}
.origin {
  display: inline-flex; align-items: center; gap: 6px; max-width: 240px; padding: 2px 9px 2px 6px; border-radius: 999px; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border);
}
.origin span { overflow: hidden; text-overflow: ellipsis; }
.origin img { width: 16px; height: 16px; border-radius: 50%; }
.origin.discord { color: #c9cdfb; background: rgba(88, 101, 242, 0.14); border-color: rgba(88, 101, 242, 0.38); }
.origin.discord > .icon { color: #8b95f7; }
.origin.compact { padding: 3px; border-radius: 6px; }
.id-cell { display: inline-flex; align-items: center; gap: 6px; }
.discord-bar-slot:empty { display: none; }
.discord-bar {
  display: flex; align-items: center; gap: 10px; margin: 0 20px 10px; padding: 8px 8px 8px 12px; border-radius: 12px; font-size: 13px;
  color: var(--text-2); background: rgba(88, 101, 242, 0.1); border: 1px solid rgba(88, 101, 242, 0.3);
}
.discord-bar > .icon { flex: none; color: #8b95f7; }
.discord-bar.warn { background: rgba(250, 178, 25, 0.08); border-color: rgba(250, 178, 25, 0.4); }
.discord-bar.warn > .icon { color: var(--warning); }
.btn.discord-btn { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.discord-btn:hover { background: #4752c4; color: #fff; }
@media (max-width: 560px) {
  .discord-bar { margin: 0 12px 10px; flex-wrap: wrap; }
  .discord-bar > .grow { flex-basis: calc(100% - 30px); }
  .discord-bar > .btn { margin-left: 26px; }
}
.discord-card .card-head > .icon { color: #8b95f7; }
.discord-card .who { display: flex; flex-direction: column; min-width: 0; }
.discord-card .kv { margin: 14px 0; }
.discord-card .server-mini { border-radius: 50%; }
.discord-card > p { margin: 12px 0 0; }

/* ---------- ticket thread ---------- */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg-row { display: flex; align-items: flex-start; gap: 10px; max-width: min(86%, 680px); }
.msg-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-row.theirs { align-self: flex-start; }
.msg-row.cont { margin-top: -10px; }
.msg-av { flex: none; width: 34px; }
.msg-av.gap { height: 1px; }
.msg-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.msg-row.mine .msg-col { align-items: flex-end; }
.msg-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 4px; font-size: 12.5px; color: var(--muted); }
.msg-row.mine .msg-meta { flex-direction: row-reverse; }
.msg-meta strong { color: var(--text); font-size: 13.5px; font-weight: 650; }
.msg-meta time { font-size: 11.5px; }
.msg-bubble {
  min-width: 0; max-width: 100%; padding: 9px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.5;
  background: var(--surface-2); border: 1px solid var(--border);
}
.msg-row.theirs .msg-bubble { border-top-left-radius: 6px; }
.msg-row.mine .msg-bubble { border-top-right-radius: 6px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.34), rgba(109, 40, 217, 0.22)); border-color: rgba(139, 92, 246, 0.42); }
.msg-row.staff.theirs .msg-bubble { border-color: rgba(139, 92, 246, 0.35); box-shadow: inset 3px 0 0 rgba(139, 92, 246, 0.55); }
.msg-row.internal .msg-bubble { background: rgba(250, 178, 25, 0.08); border: 1px dashed rgba(250, 178, 25, 0.6); box-shadow: none; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-text a { color: var(--violet-300); text-decoration: underline; text-underline-offset: 2px; }
.msg-row.mine .msg-text a { color: var(--link-hover); }
.msg-row.deleted .msg-text { text-decoration: line-through; opacity: 0.6; }
.msg-gone { color: var(--muted); font-size: 13.5px; }
.msg-flag { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); text-align: right; }
/* "edited" mark that opens the earlier texts (team) */
.msg-edits > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.msg-edits > summary::-webkit-details-marker { display: none; }
.msg-edits > summary > span { text-decoration: underline dotted; text-underline-offset: 2px; }
.msg-edits > summary:hover, .msg-edits[open] > summary { color: var(--text-2); }
.msg-edits > summary .icon { width: 12px; height: 12px; transition: transform 0.15s; }
.msg-edits[open] > summary .icon { transform: rotate(180deg); }
.msg-edits-list { list-style: none; margin: 6px 0 0; padding: 8px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.msg-edits-list li { padding-left: 9px; border-left: 2px solid var(--border-strong); }
.msg-edit-head { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.msg-edit-head span { font-weight: 600; }
.msg-edits-list .msg-text { font-size: 13.5px; color: var(--text-2); }
.tag.note { display: inline-flex; align-items: center; gap: 4px; background: rgba(250, 178, 25, 0.16); color: var(--amber-text); }
.tag.discord-staff { background: rgba(88, 101, 242, 0.16); color: #aab2fa; }
.src-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.src-chip.discord { background: rgba(88, 101, 242, 0.15); color: #aab2fa; }
.msg-files { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.msg-bubble > .msg-files:first-child { margin-top: 0; }
.msg-media { display: grid; grid-template-columns: 1fr; gap: 4px; width: min(360px, 100%); }
.msg-media.n2 { grid-template-columns: 1fr 1fr; }
.msg-media.n3 { grid-template-columns: repeat(3, 1fr); }
.msg-img { display: block; overflow: hidden; border-radius: 12px; background: var(--surface-3); }
.msg-img img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover; transition: transform 0.2s; }
.msg-img:hover img { transform: scale(1.02); }
.msg-media.n2 .msg-img img, .msg-media.n3 .msg-img img { aspect-ratio: 1; }
.msg-video { width: 100%; max-height: 320px; border-radius: 12px; background: #000; }
.msg-file {
  display: flex; align-items: center; gap: 8px; max-width: 320px; padding: 8px 10px; border-radius: 10px; font-size: 13px;
  color: var(--text); text-decoration: none; background: var(--surface-3); border: 1px solid var(--border);
}
.msg-file:hover { color: var(--text); border-color: var(--border-strong); }
.msg-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.msg-file-size { color: var(--muted); font-size: 12px; white-space: nowrap; }
.msg-file.off { opacity: 0.75; }
.msg-system { display: flex; justify-content: center; }
.sys-pill {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 12px 4px 5px; border-radius: 999px;
  font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border);
}
.sys-ico { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; color: var(--text-2); background: var(--surface-3); }
.msg-system.resolved .sys-ico { color: var(--good-text); background: rgba(34, 197, 94, 0.18); }
.msg-system.rejected .sys-ico { color: var(--critical-text); background: rgba(239, 68, 68, 0.18); }
.msg-system.claimed .sys-ico { color: var(--amber-text); background: rgba(250, 178, 25, 0.18); }
.msg-system.reopened .sys-ico { color: #7dd3fc; background: rgba(56, 189, 248, 0.18); }
.msg-system.warn .sys-pill { border-color: rgba(250, 178, 25, 0.45); }
.msg-system.warn .sys-ico { color: #8b95f7; background: rgba(88, 101, 242, 0.16); }
.sys-time { color: var(--muted); font-size: 11.5px; }
.src-dot { display: inline-flex; color: #8b95f7; }
@media (max-width: 560px) { .msg-row { max-width: 96%; gap: 8px; } }
[data-theme="light"] .origin.discord, [data-theme="light"] .src-chip.discord, [data-theme="light"] .tag.discord-staff,
[data-theme="light"] .composer-hint .to-discord { color: #4752c4; }
[data-theme="light"] .msg-row.mine .msg-bubble { background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.12)); }
[data-theme="light"] .msg-row.mine .msg-text a { color: var(--violet-700); }
[data-theme="light"] .msg-system.reopened .sys-ico { color: #0369a1; }

/* chat card: header, pinned opening request, own scroll area, reply box (components/chat.js) */
/* overflow visible (not .flush's hidden) so the jump button can stick to the bottom of the browser window */
.card.flush.chat-card { display: flex; flex-direction: column; overflow: visible; }
.chat-card > .card-head { margin-bottom: 10px; }
.chat-pin-slot:empty { display: none; }
.chat-pin { margin: 0 20px 10px; border: 1px solid var(--border); border-left: 3px solid var(--violet-500); border-radius: 10px; background: var(--surface-2); }
.chat-pin summary { list-style: none; cursor: pointer; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.chat-pin summary::-webkit-details-marker { display: none; }
.chat-pin-head { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.chat-pin-head .icon:first-child { color: var(--violet-300); }
.chat-pin-head .icon:last-child { margin-left: auto; color: var(--muted); transition: transform 0.15s; }
.chat-pin[open] .chat-pin-head .icon:last-child { transform: rotate(180deg); }
.chat-pin-preview { font-size: 13.5px; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.chat-pin[open] .chat-pin-preview { display: none; }
.chat-pin-body { padding: 0 12px 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; max-height: 260px; overflow-y: auto; }
.chat-view { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.chat-scroll {
  max-height: min(64vh, 680px); overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 18px;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.chat-scroll:focus-visible { outline-offset: -2px; border-radius: 0; }
.chat-day { position: sticky; top: 0; z-index: 2; display: flex; justify-content: center; padding: 8px 0 2px; pointer-events: none; }
.chat-day span {
  font-size: 11.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2);
  background: var(--surface-3); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; box-shadow: var(--shadow);
}
.chat-more { display: flex; justify-content: center; padding-top: 10px; }
.chat-empty { text-align: center; padding: 24px 0 8px; }
/* Sits over the bottom of the chat; sticky so it stays on screen when the chat's bottom is below the fold.
   height + margin-bottom = -margin-top: takes no room in the layout. */
.chat-jump {
  position: sticky; bottom: 14px; align-self: flex-end; z-index: 3; height: 34px; margin: -48px 20px 14px 0;
  display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--text); background: var(--float-bg); backdrop-filter: blur(8px); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.chat-jump:hover { background: var(--surface-3); }
.chat-jump.has-new { color: #fff; border-color: transparent; background: linear-gradient(180deg, var(--violet-500), var(--violet-700)); }

/* reply box: reply / internal note tabs (team), growing field with the send button inside, hints */
.chat-composer { display: flex; flex-direction: column; gap: 8px; padding: 12px 20px 14px; border-top: 1px solid var(--border); }
.composer-tabs { display: inline-flex; align-self: flex-start; gap: 4px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.composer-tabs button {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 0; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); background: transparent;
}
.composer-tabs button:hover { color: var(--text); }
.composer-tabs button.on { color: var(--text); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); }
.note-mode .composer-tabs button.on { color: var(--amber-text); background: rgba(250, 178, 25, 0.16); box-shadow: inset 0 0 0 1px rgba(250, 178, 25, 0.45); }
.composer-field {
  display: flex; align-items: flex-end; gap: 8px; padding: 5px 5px 5px 14px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--border-strong); transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.composer-field:focus-within { border-color: var(--violet-500); box-shadow: 0 0 0 3px var(--brand-soft); }
.note-mode .composer-field { background: rgba(250, 178, 25, 0.06); border-style: dashed; border-color: rgba(250, 178, 25, 0.6); }
.note-mode .composer-field:focus-within { box-shadow: 0 0 0 3px rgba(250, 178, 25, 0.15); }
.composer-field textarea, .composer-field textarea:focus {
  flex: 1; height: 40px; min-height: 40px; max-height: 260px; resize: none; padding: 8px 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; outline: none; font-size: 14.5px; line-height: 1.5;
  overflow-y: hidden; scrollbar-width: thin;
}
.composer-field textarea.scrolls { overflow-y: auto; }
.send-btn { flex: none; height: 40px; padding: 0 16px; border-radius: 12px; gap: 7px; }
.composer-foot { display: flex; align-items: center; gap: 10px; min-height: 16px; padding: 0 4px; font-size: 12px; color: var(--muted); }
.composer-hint { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.composer-hint .to-discord { display: inline-flex; align-items: center; gap: 5px; color: #aab2fa; }
.note-mode .composer-hint { gap: 5px; color: var(--amber-text); }
.chat-composer.closed .composer-foot { display: none; }
.composer-closed { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
  .chat-scroll { padding: 4px 12px 14px; max-height: 68vh; }
  .chat-pin { margin: 0 12px 10px; }
  .chat-composer { padding: 10px 12px 12px; }
  .send-btn { width: 40px; padding: 0; }
  .send-btn span { display: none; }
}
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.actions-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.reject-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.delivered-by { font-size: 12px; color: var(--text-2); }
.check-done { color: var(--good-text); font-weight: 600; }

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; overflow: visible; }
.chart .grid line { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart .tick { fill: var(--axis-text); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .bar { fill: var(--series); }
.chart .peak { fill: var(--text-2); font-size: 11.5px; font-weight: 600; }
.chart .hit { fill: transparent; }
.chart .hit:focus { outline: none; }
.chart .hit:focus-visible { stroke: var(--focus); stroke-width: 2; }
.chart-tip { position: absolute; pointer-events: none; z-index: 5; background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; box-shadow: var(--shadow); white-space: nowrap; }
.chart-tip strong { display: block; margin-bottom: 2px; }
.chart-tip .r { display: flex; justify-content: space-between; gap: 16px; color: var(--text-2); }
.chart-tip .r b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar-row { display: grid; grid-template-columns: minmax(110px, 200px) minmax(0, 1fr); gap: 12px; align-items: center; font-size: 13.5px; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hbar { height: 18px; border-radius: 0 4px 4px 0; background: var(--series); width: calc((100% - 96px) * var(--pct, 0)); min-width: 2px; flex: none; }
.hbar-val { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) { .hbar-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ---------- misc ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--surface-3); color: var(--text); border: 1px solid var(--border-strong); padding: 11px 14px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); }
.toast.bad { border-color: rgba(239, 68, 68, 0.6); }
.loading { padding: 48px 0; text-align: center; color: var(--text-2); }
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--border-strong); border-top-color: var(--violet-400); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } .game, .game:hover { transition: none; transform: none; } }
.pager { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 12px 20px; font-size: 13px; color: var(--text-2); }
.divider { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
details.more summary { cursor: pointer; color: var(--violet-300); font-size: 14px; font-weight: 550; padding: 12px 20px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.list select { width: auto; }

/* legal pages (privacy, terms): same type and rules as the rest of the site */
.legal { max-width: 760px; gap: 14px; padding-top: 40px; }
.legal > p:first-child a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; text-decoration: none;
  font-size: 13px; font-weight: 600; color: var(--text-2); border: 1px solid var(--border-strong);
}
.legal > p:first-child a:hover { color: var(--text); background: var(--surface-2); }
.legal h1 { font-size: 30px; letter-spacing: -0.015em; margin: 6px 0 2px; }
.legal h2 { margin: 22px 0 0; padding-bottom: 10px; font-size: 19px; font-weight: 750; border-bottom: 1px solid var(--border-strong); }
.legal p, .legal li { color: var(--text-2); line-height: 1.65; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal li::marker { color: var(--violet-400); }
.legal strong { color: var(--text); }
.legal code { font-size: 0.88em; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); }

/* ---------- applications ---------- */
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.center { text-align: center; }
.table th.center, .table td.center { text-align: center; }
.center-items { align-items: center; }
.apply-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.apply-card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px;
  background: radial-gradient(120% 60% at 0 0, var(--kind-soft, var(--brand-soft)), transparent 55%), var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.apply-card:hover { transform: translateY(-3px); border-color: var(--kind-line, var(--border-strong)); }
.apply-card:hover .apply-mark { transform: rotate(-6deg) scale(1.06); }
.apply-mark { transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.apply-closed { display: flex; gap: 8px; align-items: flex-start; }
.apply-closed .icon { flex: none; margin-top: 2px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .apply-card, .apply-card:hover, .apply-mark { transition: none; transform: none; } }
/* public application cards: the kind's mark (no repeated name tag), open / closed, description, meta, an action footer */
.apply-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.apply-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px;
  color: var(--kind-text, var(--violet-300)); background: var(--kind-soft, var(--brand-soft));
}
.apply-mark .icon { width: 20px; height: 20px; }
.apply-state { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.apply-state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--critical); }
.apply-state.on { color: var(--good-text); }
.apply-state.on .dot { background: var(--good); box-shadow: 0 0 8px var(--good); }
.apply-card h2 { font-size: 19px; }
.apply-desc { margin: 0; color: var(--text-2); line-height: 1.55; }
.apply-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.apply-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.apply-meta .icon { width: 14px; height: 14px; }
.apply-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.apply-foot > p { margin: 0; font-size: 13px; color: var(--muted); }
.apply-foot .btn.primary { align-self: stretch; }
.apply-card.is-open { border-color: var(--border-strong); background: linear-gradient(120deg, rgba(124, 58, 237, 0.16), transparent 60%), var(--surface); }
.apply-card .btn { align-self: flex-start; }

/* Application kinds: each one keeps its own color everywhere (cards, tabs, review list, detail). */
.kind-staff { --kind: #fb7185; --kind-text: #fda4af; --kind-soft: rgba(251, 113, 133, 0.14); --kind-line: rgba(251, 113, 133, 0.5); }
.kind-tester { --kind: #34d399; --kind-text: #6ee7b7; --kind-soft: rgba(52, 211, 153, 0.14); --kind-line: rgba(52, 211, 153, 0.5); }
.kind-developer { --kind: #38bdf8; --kind-text: #7dd3fc; --kind-soft: rgba(56, 189, 248, 0.14); --kind-line: rgba(56, 189, 248, 0.5); }
.kind-tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--kind-text, var(--violet-300)); background: var(--kind-soft, var(--brand-soft)); border: 1px solid var(--kind-line, var(--border-strong));
}
.kind-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--kind, var(--violet-400)); box-shadow: 0 0 8px var(--kind, var(--violet-400)); }
.apply-card[class*="kind-"] { border-top: 1px solid var(--border); box-shadow: inset 0 2px 0 -1px var(--kind-line); }
/* the form's tag on the public cards: a soft chip in its colour (regular type, no outline or glow) */
.apply-card .kind-tag {
  gap: 0; padding: 3px 11px; font-size: 12px; font-weight: 650; letter-spacing: 0.01em; text-transform: none; border: 0;
}
.apply-card .kind-tag .kind-dot { display: none; }
.reqs-sec { padding-top: 8px; }
.reqs-sec .team-sec-title { font-size: 19px; color: var(--text); }
.apply-card.is-open[class*="kind-"] { border-color: var(--kind-line); background: linear-gradient(120deg, var(--kind-soft), transparent 60%), var(--surface); }
.card.kind-card { border-top: 3px solid var(--kind); }
.seg a[class*="kind-"] { display: inline-flex; align-items: center; gap: 7px; }
.seg a[class*="kind-"].on { color: var(--kind-text); background: var(--kind-soft); box-shadow: inset 0 0 0 1px var(--kind-line); }
.app-row[class*="kind-"] .rank { color: var(--kind-text); }
.tag.portfolio-tag { background: var(--kind-soft, var(--brand-soft)); color: var(--kind-text, var(--violet-300)); }
.link-rows { display: flex; flex-direction: column; gap: 8px; }
.link-row { display: flex; gap: 8px; align-items: center; }
.link-row input { flex: 1; min-width: 0; }
.question.invalid .link-row input.bad, .link-row input.bad { border-color: var(--critical); }
.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.link-list a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; min-width: 0;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); text-decoration: none;
}
.link-list a:hover { border-color: var(--border-strong); }
.link-list .link-host { font-weight: 650; white-space: nowrap; }
.link-list .link-url { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.link-list .icon { flex: none; color: var(--violet-300); }
.link-list li { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.link-preview-btn { align-self: flex-start; }
.link-preview { max-width: 640px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.link-preview img { display: block; max-width: 100%; max-height: 480px; margin: 0 auto; }
.link-preview iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.link-preview p { margin: 0; padding: 10px 12px; }
/* requirements: a checklist of tiles; done ones get a filled green tick */
/* progress: how many of the steps are done, a count in the heading and a thin bar under it */
.reqs-count { margin-left: auto; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border-strong); }
.reqs-count.all { color: #052e14; background: var(--good); border-color: transparent; }
.reqs-sec .team-sec-head { align-items: center; }
.reqs-track { display: block; height: 4px; margin-top: -12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.reqs-fill { display: block; height: 100%; width: 100%; background: var(--good); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.5s ease; }
.reqs-notes { display: flex; flex-direction: column; gap: 6px; }
.reqs-notes p { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.reqs-notes .icon { flex: none; margin-top: 2px; }
.reqs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; font-size: 14px; color: var(--text-2); }
.reqs li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.reqs li.ok { color: var(--text); }
.req-mark {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px dashed var(--border-strong); font-size: 12px; font-weight: 800; color: transparent;
}
.reqs li.ok .req-mark { border: 0; background: var(--good); color: #052e14; }

.questions { gap: 26px; }
.question { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.question legend { padding: 0; margin-bottom: 8px; }
.q-title { font-weight: 600; font-size: 15px; }
.q-num { color: var(--violet-300); }
.req { color: var(--critical-text); }
.question.invalid input[type="text"], .question.invalid textarea { border-color: var(--critical); }
.question.invalid .q-title { color: var(--critical-text); }
.options { display: flex; flex-direction: column; gap: 6px; }
.option {
  display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; cursor: pointer; font-size: 14.5px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.option:hover { border-color: var(--border-strong); }
.option:has(input:checked) { border-color: var(--violet-500); background: var(--brand-soft); }
.option:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
.option input[type="radio"] { width: 18px; height: 18px; accent-color: var(--violet-500); margin: 0; flex: none; }

.list.apps li { padding: 14px 4px; }
.list li.clickable { cursor: pointer; }
.list li.clickable:hover { background: rgba(139, 92, 246, 0.06); }
.app-row .rank { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--violet-300); min-width: 34px; }
.btn.react .icon { color: var(--muted); }
.btn.react.on { border-color: rgba(244, 114, 182, 0.55); background: rgba(244, 114, 182, 0.14); }
.btn.react.on .icon { color: #f472b6; fill: #f472b6; }
.btn.react:disabled { opacity: 0.75; }
.avatar-stack { display: inline-flex; align-items: center; }
.avatar-stack .avatar { margin-left: -6px; border: 2px solid var(--surface); }
.avatar-stack .avatar:first-child { margin-left: 0; }
.more-n { margin-left: 6px; font-size: 12px; color: var(--text-2); }
.answer-block { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.answer-block:last-child { border-bottom: 0; padding-bottom: 0; }
.answer-block h3 { color: var(--text-2); font-weight: 600; font-size: 13.5px; }
.answer { font-size: 14.5px; }
.tag.choice-tag { background: var(--brand-soft); color: var(--text); font-size: 13px; padding: 4px 10px; }
details.more.flat summary { padding: 4px 0; }
.msg-preview { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }

.q-edit { gap: 12px; }
.q-edit select { width: auto; }
.opt-row { display: flex; align-items: center; gap: 8px; }
.opt-mark { width: 14px; height: 14px; flex: none; border: 2px solid var(--border-strong); border-radius: 50%; }
.opt-mark.multi { border-radius: 4px; }
.btn.icon-btn { padding: 6px 8px; }
.num-input { width: 110px !important; }
label.field.inline { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; font-weight: 500; }
.add-bar { padding: 14px 16px; }

/* Saved replies: emoji buttons in the decision box and their editor */
.decide-groups { display: flex; flex-direction: column; gap: 10px; }
.decide-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.decide-group > .btn:first-child { min-width: 96px; margin-right: 4px; }
.reply-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.btn.reply-chip { padding: 5px 10px; gap: 6px; font-weight: 560; }
.reply-chip .reply-emoji { font-size: 17px; line-height: 1; }
.reply-chip .reply-label { font-size: 12.5px; color: var(--text-2); max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.btn.reply-chip.on { border-color: var(--violet-500); background: var(--brand-soft); }
.btn.reply-chip.on .reply-label { color: var(--text); }
.reply-edit { gap: 10px; }
.reply-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reply-head .reply-label-input { flex: 1 1 160px; min-width: 0; }
.reply-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.reply-actions .pick-icon { font-size: 15px; line-height: 1; }
@media (max-width: 560px) { .reply-actions .pick-text { display: none; } }
input.emoji-input { width: 64px; flex: none; text-align: center; font-size: 20px; padding: 5px 6px; }
.emoji-picks { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.btn.emoji-pick { font-size: 18px; padding: 4px 6px; line-height: 1; }
.emoji-hint { padding: 4px 6px; flex-basis: 100%; }
.tag.default-tag { background: var(--brand-soft); color: var(--text); cursor: help; }
.perm-table .table td { vertical-align: middle; }

/* Linked accounts */
/* linked accounts: one open section per service (mark, name, status over a rule), no boxes */
.account-page { max-width: 720px; margin: 0 auto; width: 100%; gap: 30px; }
.acct { display: flex; flex-direction: column; gap: 14px; --acct: var(--violet-400); --acct-rgb: 167, 139, 250; }
.acct-roblox { --acct: #e5e7eb; --acct-rgb: 229, 231, 235; }
.acct-discord { --acct: #5865f2; --acct-rgb: 88, 101, 242; }
[data-theme="light"] .acct-roblox { --acct: #1f2937; --acct-rgb: 31, 41, 55; }
.acct-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border-strong); }
.acct-head h2 { margin: 0; font-size: 19px; font-weight: 750; }
.acct-head > :last-child:not(h2) { margin-left: auto; }
.acct-mark {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  color: var(--acct); background: rgba(var(--acct-rgb), 0.12); border: 1px solid rgba(var(--acct-rgb), 0.3);
}
.acct-google .acct-mark { background: var(--surface-2); border-color: var(--border-strong); }
.acct-chip { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; color: var(--violet-300); background: var(--brand-soft); }
.acct-body { padding: 0 2px; }
.acct-who { display: flex; align-items: center; gap: 12px; }
.acct-who .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-kv {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 4px 0 2px; padding: 12px 14px; font-size: 14px;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border);
}
.acct-kv dt { color: var(--muted); }
.acct-kv dd { margin: 0; font-weight: 650; }
.acct-profile { display: flex; align-items: center; gap: 14px; }
.acct-profile .avatar { box-shadow: 0 0 0 3px rgba(var(--acct-rgb), 0.18); }
.acct-profile .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.acct-profile .who strong { font-size: 17px; }
.acct-profile .who span { font-size: 13px; color: var(--muted); }
.acct-facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 6px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.acct-facts > div { display: flex; flex-direction: column; gap: 5px; padding: 14px 4px; }
.acct-facts > div + div { padding-left: 20px; border-left: 1px solid var(--border); }
.acct-facts b { font-size: 15px; font-weight: 700; }
.acct-actions { display: flex; justify-content: flex-end; }
.btn.ghost-danger { background: none; border-color: transparent; }
.btn.ghost-danger:hover { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.35); }
.phrase {
  display: inline-block; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14.5px; overflow-wrap: anywhere; user-select: all;
}
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step .btn { align-self: flex-start; }
.step-n {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--brand-soft); color: var(--violet-300);
}

/* Discord verify page (#/verify): three steps joined by a line, done ones in green, the next one ringed */
.vsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vstep { position: relative; display: flex; gap: 16px; padding-bottom: 28px; }
.vstep:last-child { padding-bottom: 0; }
.vstep:not(:last-child)::before {
  content: ''; position: absolute; left: 17px; top: 40px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--border-strong);
}
.vstep.done:not(:last-child)::before { background: rgba(34, 197, 94, 0.45); }
.vstep-n {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 750;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--border-strong);
}
.vstep.current .vstep-n { color: var(--violet-300); background: var(--brand-soft); border-color: var(--violet-400); box-shadow: 0 0 0 4px var(--brand-soft); }
.vstep.done .vstep-n { color: #fff; background: var(--good); border-color: var(--good); }
.vstep-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 5px; }
.vstep-body > .btn { align-self: flex-start; }
.vstep-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vstep-head h2 { margin: 0; font-size: 17px; font-weight: 720; }
.vstep.todo .vstep-head h2 { color: var(--muted); }
.verify-result { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border-strong); }
.verify-result .loading { padding: 18px 0; }
.verify-result-head { display: flex; align-items: center; gap: 10px; color: var(--violet-300); }
.verify-result-head.good { color: var(--good-text); }
.verify-result-head h2 { margin: 0; font-size: 19px; font-weight: 750; color: var(--text); }
.verify-servers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.verify-server { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.verify-server .guild-ico { width: 40px; height: 40px; }

/* ---------- studio team (public page + home marquee) ---------- */
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }

/* team page: sections by role ("PROJECT LEADS  03" over a rule); five people per row, centred, at the classic card
   size, in the open style (avatar in its role's light, own floor line), separated by short fading dividers */
.member-card, .staff-row, .team-sec { --tier: var(--violet-400); --tier-rgb: 167, 139, 250; }
.team-sec { display: flex; flex-direction: column; }
.team-sec { gap: 10px; }
.team-sec-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border-strong); }
.team-sec-title { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.2; color: var(--tier); }
/* head count (groups longer than a row): a small counter like a tab's */
.team-sec-count {
  min-width: 26px; padding: 2px 9px; border-radius: 999px; text-align: center; cursor: default;
  font-size: 12.5px; font-weight: 700; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border-strong);
  font-variant-numeric: tabular-nums;
}
/* rows of --cols equal people; a short last row (or a small group) sits in the middle */
.team-grid {
  --cols: 5; --gap: 32px; --w: 200px; /* the classic card size: 5 x 200px fill the page width */
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px var(--gap); padding-top: 16px;
  width: min(100%, calc(var(--cols) * var(--w) + (var(--cols) - 1) * var(--gap))); margin: 0 auto;
}
.team-grid > .member-card { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
@media (max-width: 1080px) { .team-grid { --cols: 4; } }
@media (max-width: 860px) { .team-grid { --cols: 3; --gap: 28px; } }
@media (max-width: 600px) { .team-grid { --cols: 2; --gap: 20px; } }
.team-grid.owner { --cols: 1; --w: 300px; }
.member-card { position: relative; display: flex; flex-direction: column; color: var(--text); scroll-margin: 120px; }
/* divider between columns: a short line fading at both ends, never touching the next row */
.team-grid:not(.owner) > .member-card + .member-card::before {
  content: ''; position: absolute; left: calc(var(--gap) / -2); top: 12%; bottom: 12%; width: 1px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--border-strong) 30%, var(--border-strong) 70%, transparent);
}
.team-grid:not(.owner) > .member-card:nth-child(5n + 1)::before { display: none; }
@media (max-width: 1080px) {
  .team-grid:not(.owner) > .member-card:nth-child(5n + 1)::before { display: block; }
  .team-grid:not(.owner) > .member-card:nth-child(4n + 1)::before { display: none; }
}
@media (max-width: 860px) {
  .team-grid:not(.owner) > .member-card:nth-child(4n + 1)::before { display: block; }
  .team-grid:not(.owner) > .member-card:nth-child(3n + 1)::before { display: none; }
}
@media (max-width: 600px) {
  .team-grid:not(.owner) > .member-card:nth-child(3n + 1)::before { display: block; }
  .team-grid:not(.owner) > .member-card:nth-child(2n + 1)::before { display: none; }
}
/* divider between rows: a short line fading at both ends above everyone below the first row (the gap's middle) */
.team-grid:not(.owner) > .member-card::after {
  content: none; position: absolute; left: 8%; right: 8%; top: -20px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--border-strong) 30%, var(--border-strong) 70%, transparent);
}
.team-grid:not(.owner) > .member-card:nth-child(n + 6)::after { content: ''; }
@media (max-width: 1080px) { .team-grid:not(.owner) > .member-card:nth-child(n + 5)::after { content: ''; } }
@media (max-width: 860px) { .team-grid:not(.owner) > .member-card:nth-child(n + 4)::after { content: ''; } }
@media (max-width: 600px) { .team-grid:not(.owner) > .member-card:nth-child(n + 3)::after { content: ''; } }
.member-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.member-link:hover { color: inherit; }
/* open stage at the classic size (square, as tall as the old cards): the avatar stands in its role's light with a
   floor shadow; under it, its own short floor line with a role-coloured tick */
.member-stage {
  --glow-a: 0.24; --beam-a: 0.1;
  position: relative; aspect-ratio: 1 / 1; display: flex; align-items: flex-end; justify-content: center;
  padding: 11% 8% 7%; isolation: isolate;
  /* the beam fades in from nothing at the top (the avatar starts lower, at 11%) */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%); mask-image: linear-gradient(to bottom, transparent, #000 10%);
  background:
    radial-gradient(34% 75% at 50% 0%, rgba(var(--tier-rgb), var(--beam-a)), transparent 72%), /* soft beam from above */
    radial-gradient(62% 56% at 50% 72%, rgba(var(--tier-rgb), var(--glow-a)), transparent 72%);
}
.member-stage::before { /* pedestal: a tinted disc with a thin ring in the role's colour, under the feet */
  content: ''; position: absolute; left: 17%; right: 17%; bottom: 3%; height: 13%; z-index: -2; border-radius: 50%;
  border: 1px solid rgba(var(--tier-rgb), 0.45);
  background: radial-gradient(closest-side, rgba(var(--tier-rgb), 0.28), rgba(var(--tier-rgb), 0.06) 70%, transparent);
  box-shadow: 0 0 18px rgba(var(--tier-rgb), 0.18);
}
.member-stage::after { /* floor shadow under the feet */
  content: ''; position: absolute; left: 24%; right: 24%; bottom: 5%; height: 7%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
}
.member-stage img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom; display: block;
  transform-origin: 50% 100%; transition: transform 0.3s ease;
}
.member-card:hover .member-stage img { transform: translateY(-4px) scale(1.04); }
.member-stage.no-pic, .marquee-pic.no-pic { align-items: center; }
.member-card.tier-owner .member-stage { --glow-a: 0.42; --beam-a: 0.16; }
.member-info {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; min-width: 0;
  /* same box in both themes: switching theme must not move anything */
  flex: 1; padding: 14px 10px 16px; background: linear-gradient(90deg, transparent, var(--border-strong) 22%, var(--border-strong) 78%, transparent) top / 100% 1px no-repeat;
}
.member-info::before { /* role-coloured tick on the floor line, centred */
  content: ''; position: absolute; top: -1px; left: calc(50% - 11px); width: 22px; height: 2px; background: var(--tier);
  box-shadow: 0 0 8px rgba(var(--tier-rgb), 0.7); transition: transform 0.25s ease;
}
.member-card:hover .member-info::before { transform: scaleX(2.2); }
.member-role { /* soft chip in the role's colour: regular type (not the monospace labels), no outline */
  display: inline-flex; align-items: center; margin: 5px 0 1px; padding: 3px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 650; line-height: 1.3; letter-spacing: 0.01em; color: var(--tier);
  background: rgba(var(--tier-rgb), 0.1);
}
.member-name { font-weight: 700; font-size: 16px; }
.team-grid.owner .member-name { font-size: 21px; }
.member-card .like-btn { top: 8px; right: 8px; }
/* arriving from the home strip: the chosen person lights up for a moment */
.member-card.spotlight .member-stage { animation: spotlight 2.6s ease-out; }
.member-card.spotlight .member-info::before { transform: scaleX(3.2); }
@keyframes spotlight {
  0%, 60% { background: radial-gradient(34% 75% at 50% 0%, rgba(var(--tier-rgb), 0.3), transparent 72%),
    radial-gradient(66% 62% at 50% 70%, rgba(var(--tier-rgb), 0.58), transparent 76%); }
  100% { background: radial-gradient(34% 75% at 50% 0%, rgba(var(--tier-rgb), var(--beam-a)), transparent 72%),
    radial-gradient(62% 56% at 50% 72%, rgba(var(--tier-rgb), var(--glow-a)), transparent 72%); }
}
[data-theme="light"] .member-stage::after { background: radial-gradient(closest-side, rgba(40, 20, 80, 0.22), transparent); }
/* light page: a coloured light doesn't read on white, so the whole card becomes a soft tinted plate: white, deepening
   to the role's tint at the avatar's feet and fading back to white under the text, with a hairline of the role's colour
   and a soft coloured shadow. The pedestal ring and the floor shadow get stronger, the beam goes. */
[data-theme="light"] .member-link {
  border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(70% 34% at 50% 40%, rgba(var(--tier-rgb), 0.2), transparent 75%),
    linear-gradient(180deg, #fff 0%, rgba(var(--tier-rgb), 0.11) 52%, #fff 100%);
  box-shadow: inset 0 0 0 1px rgba(var(--tier-rgb), 0.2), 0 12px 28px -16px rgba(var(--tier-rgb), 0.6);
  transition: box-shadow 0.2s;
}
[data-theme="light"] .member-card.tier-owner .member-link {
  background:
    radial-gradient(70% 34% at 50% 40%, rgba(var(--tier-rgb), 0.28), transparent 75%),
    linear-gradient(180deg, #fff 0%, rgba(var(--tier-rgb), 0.16) 52%, #fff 100%);
}
[data-theme="light"] .member-card:hover .member-link { box-shadow: inset 0 0 0 1px rgba(var(--tier-rgb), 0.42), 0 16px 32px -16px rgba(var(--tier-rgb), 0.75); }
[data-theme="light"] .member-stage { -webkit-mask-image: none; mask-image: none; background: none; }
[data-theme="light"] .member-stage::before { border-color: rgba(var(--tier-rgb), 0.55); background: radial-gradient(closest-side, rgba(var(--tier-rgb), 0.3), rgba(var(--tier-rgb), 0.08) 70%, transparent); box-shadow: none; }
[data-theme="light"] .member-stage::after { background: radial-gradient(closest-side, rgba(30, 15, 60, 0.32), transparent); }
[data-theme="light"] .member-info {
  background: linear-gradient(90deg, transparent, rgba(var(--tier-rgb), 0.28) 25%, rgba(var(--tier-rgb), 0.28) 75%, transparent) top / 100% 1px no-repeat;
}
[data-theme="light"] .member-role { background: rgba(var(--tier-rgb), 0.13); }
[data-theme="light"] .member-card.spotlight .member-stage { animation: none; }
[data-theme="light"] .member-card.spotlight .member-link { animation: spotlight-light 2.6s ease-out; }
@keyframes spotlight-light {
  0%, 60% { box-shadow: inset 0 0 0 2px rgba(var(--tier-rgb), 0.6), 0 16px 36px -12px rgba(var(--tier-rgb), 0.85); }
}
/* Name + verified seal: the name shortens with an ellipsis, the seal always stays visible. */
.name-badge { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; }
.name-badge .name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.name-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.name-line > .tag { flex: none; }
/* Display name beside the nick: fainter, and the first to shorten when the row is tight. */
.name-line > .name-display { color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0; flex-shrink: 3; }
.id-tag { flex: none; font: 500 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted);
  padding: 0 5px; border: 1px solid var(--border); border-radius: 6px; cursor: copy; white-space: nowrap; }
.id-tag:hover, .id-tag:focus-visible { color: var(--text); border-color: var(--brand); outline: none; }
.verified { display: inline-flex; flex: none; color: #3b82f6; }
.verified .icon { display: block; }

/* Like button: pill over the top-right corner of the avatar. */
.like-btn {
  position: absolute; top: 8px; right: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px 4px 8px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 650; line-height: 1;
  color: var(--text-2); background: var(--overlay-bg); border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
}
.like-btn:hover { color: #fb7185; border-color: rgba(251, 113, 133, 0.55); }
.like-btn:focus-visible { outline: 2px solid var(--violet-400); outline-offset: 2px; }
.like-btn:disabled { cursor: progress; opacity: 0.75; }
.like-btn.on { color: #fb7185; border-color: rgba(251, 113, 133, 0.6); background: rgba(76, 5, 25, 0.62); }
.like-btn.on .icon path { fill: currentColor; }
.like-btn.own { cursor: default; }
.like-btn.own:hover { color: var(--text-2); border-color: var(--border-strong); }
.like-btn.pop .icon { animation: like-pop 0.35s ease-out; }
@keyframes like-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.like-count { font-variant-numeric: tabular-nums; }
/* site staff: open rows (headshot, name, @, roles) separated by thin lines */
/* site staff: card rows like before (surface, border, rounded), with the coloured role tags; hover tints the edge */
.staff-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; padding-top: 6px; }
.staff-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: var(--text); scroll-margin: 120px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  transition: border-color 0.15s, transform 0.15s;
}
.staff-row:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
.staff-row .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--border-strong); }
.staff-row .who { display: flex; flex-direction: column; min-width: 0; }
.staff-row .who strong, .staff-row .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-sync { display: flex; align-items: center; gap: 8px; }
.dot-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--violet-500); flex: none; animation: dot-pulse 1.2s ease-in-out infinite; }
@keyframes dot-pulse { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .dot-pulse { animation: none; } }
.section-title .count-note { margin-left: 8px; font-size: 0.8em; font-weight: 560; font-variant-numeric: tabular-nums; }
.staff-roles { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 50%; }
[data-theme="light"] .staff-row { box-shadow: var(--card-shadow); }
@media (prefers-reduced-motion: reduce) { .staff-row, .staff-row:hover { transition: none; transform: none; } }
/* testers, team view: one row per tester (activity in the games under the name), opens into a panel with every game's save */
.tester-list { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
details.tester { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color 0.15s; }
details.tester:hover, details.tester[open] { border-color: var(--border-strong); }
details.tester > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; border-radius: 14px; }
details.tester > summary::-webkit-details-marker { display: none; }
details.tester > summary:focus-visible { outline: 2px solid var(--violet-400); outline-offset: 2px; }
details.tester .avatar { flex: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--border-strong); }
details.tester .who { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
details.tester .who > strong, details.tester .who > .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tester-caret { flex: none; color: var(--muted); display: inline-flex; transition: transform 0.15s; }
details.tester[open] .tester-caret { transform: rotate(180deg); }
.act { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 12.5px; }
.act .chip { font-variant-numeric: tabular-nums; }
.act-on { display: inline-flex; align-items: center; gap: 6px; color: var(--good-text); font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); flex: none; }
.tester-panel { border-top: 1px solid var(--border); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.gd-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 10px; }
.gd-game { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gd-head { display: flex; align-items: center; gap: 9px; }
.gd-head img, .gd-icon { width: 28px; height: 28px; border-radius: 8px; flex: none; object-fit: cover; }
.gd-icon { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--muted); }
.gd-uni { display: flex; flex-direction: column; gap: 8px; }
.gd-uni + .gd-uni { border-top: 1px dashed var(--border); padding-top: 10px; }
.gd-uni-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gd-kv { font-size: 13px; gap: 4px 14px; }
.gd-kv dd { font-variant-numeric: tabular-nums; }
.gd-chars ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.gd-chars li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gd-foot { gap: 8px; }
.gd-yes { color: var(--good-text); display: inline-flex; }
.gd-err { color: var(--critical-text); }
.gd-only { margin: 0; border-top: 1px dashed var(--border); padding-top: 8px; }
@media (max-width: 640px) {
  details.tester > summary { flex-wrap: wrap; }
  details.tester .staff-roles { max-width: none; order: 3; justify-content: flex-start; width: 100%; padding-left: 52px; }
}
@media (prefers-reduced-motion: reduce) { details.tester, .tester-caret { transition: none; } }
/* testers, team: the bar about the games' data (a pass reads every tester every few hours) */
.sync-bar { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 14px 12px; font-size: 13px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.sync-bar.off { color: var(--text-2); padding-bottom: 9px; }
.sync-bar .dot-pulse { margin-inline: 5px; }
.sync-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-width: 0; }
.sync-text strong { font-weight: 650; }
.sync-ok { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: none;
  border-radius: 50%; background: rgba(34, 197, 94, 0.16); color: var(--good-text); }
.sync-track { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--surface-2); }
.sync-fill { display: block; height: 100%; background: var(--series); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.4s ease; }
.sync-bar.running .sync-fill { background: var(--violet-500); }
[data-theme="light"] .sync-bar { box-shadow: var(--card-shadow); }
@media (prefers-reduced-motion: reduce) { .sync-fill { transition: none; } }
/* testers, team: compact list, one dense line per tester in a single table-like card */
.tester-table { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
[data-theme="light"] .tester-table { box-shadow: var(--card-shadow); }
.trow { display: grid; grid-template-columns: 10px 28px minmax(0, 1fr) 132px 124px 80px 88px 14px; align-items: center; gap: 10px;
  padding: 7px 14px; font-size: 13.5px; }
.trow.thead { padding-block: 8px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); }
details.tester.compact { background: none; border: 0; border-radius: 0; }
details.tester.compact + details.tester.compact { border-top: 1px solid var(--border); }
details.tester.compact > summary.trow { display: grid; padding: 7px 14px; gap: 10px; border-radius: 0; }
details.tester.compact > summary.trow:hover { background: rgba(139, 92, 246, 0.06); }
details.tester.compact[open] > summary.trow { background: var(--brand-soft); }
details.tester.compact > summary:focus-visible { outline-offset: -2px; }
details.tester.compact .avatar { box-shadow: none; }
details.tester.compact .tester-panel { background: var(--surface-2); }
.tname { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tname .tag { flex: none; }
.tgames { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; white-space: nowrap; }
.tseen { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.tnum { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.th-sort { display: inline-flex; align-items: center; gap: 3px; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.th-sort.tnum { justify-content: flex-end; }
.th-sort:hover, .th-sort.on { color: var(--text); }
.th-sort:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; justify-self: center; box-sizing: border-box; }
.st-day { background: var(--good); }
.st-week { background: var(--warning); }
.st-idle { background: var(--neutral-dot); }
.st-never { border: 1.5px solid var(--neutral-dot); }
.st-pending { border: 1.5px dashed var(--neutral-dot); }
.gicon { position: relative; display: inline-flex; flex: none; width: 22px; height: 22px; }
.gicon img, .gicon-ph { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; display: block; }
.gicon-ph { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 700; }
.gicon.dev::after { content: 'DEV'; position: absolute; right: -3px; bottom: -3px; padding: 1px 2px; border-radius: 3px; font-size: 7px; font-weight: 800;
  letter-spacing: 0.04em; line-height: 1; color: #fff; background: #0369a1; }
.tag.mini { font-size: 10px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; }
.group-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 5px 4px 10px; font-size: 12.5px; color: var(--text);
  background: var(--brand-soft); border-color: var(--border-strong); }
.chip-x { display: inline-flex; padding: 2px; border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; }
.chip-x:hover { color: var(--text); background: var(--surface-3); }
@media (max-width: 720px) {
  .trow, details.tester.compact > summary.trow { grid-template-columns: 10px 28px minmax(0, 1fr) 92px 64px 14px; gap: 8px; padding-inline: 10px; }
  .trow .tgames, .trow .tweek { display: none; }
}
/* testers, team: Stats view */
.tpick { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-width: 0; padding: 0; border: 0; background: none;
  font: inherit; color: var(--text); cursor: pointer; }
.tpick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpick:hover .tpick-name { text-decoration: underline; }
.tpick:focus-visible, .tier-av:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.tiers { display: flex; flex-direction: column; gap: 12px; }
.tier { display: flex; flex-direction: column; gap: 7px; }
.tier + .tier { border-top: 1px dashed var(--border); padding-top: 12px; }
.tier-head { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; flex-wrap: wrap; }
.tier-n { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.tier-track { display: block; height: 10px; }
.tier-bar { display: block; height: 100%; width: calc(100% * var(--pct, 0)); min-width: 2px; border-radius: 0 4px 4px 0; background: var(--series); }
.tier-people { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.tier-av { display: inline-flex; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.tier-see { margin-left: auto; }
.hbars.wide .hbar-row { grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); }
.hbars.wide .hbar { width: calc((100% - 168px) * var(--pct, 0)); }
@media (max-width: 560px) { .hbars.wide .hbar-row { grid-template-columns: minmax(0, 1fr); } }

/* the strip is a real horizontal scroller (team.js glides it and lets people drag / swipe / jump) */
.marquee {
  overflow-x: auto; overflow-y: hidden; padding: 6px 0; scrollbar-width: none; cursor: grab; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.dragging { cursor: grabbing; }
.marquee.dragging a { pointer-events: none; }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; gap: 16px; padding-right: 16px; }
/* team strip controls: jump to a group, step with the arrows */
.team-head { flex-wrap: wrap; gap: 10px 16px; }
.strip-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.strip-jumps { display: flex; align-items: center; gap: 4px; }
/* thin dividers: between the group shortcuts, and between them and the arrows */
.strip-jump + .strip-jump { position: relative; margin-left: 9px; }
.strip-jump + .strip-jump::before {
  content: ''; position: absolute; left: -7px; top: 50%; height: 12px; width: 1px; translate: 0 -50%;
  background: var(--border-strong);
}
.strip-arrows { position: relative; padding-left: 14px; }
.strip-arrows::before { content: ''; position: absolute; left: 0; top: 50%; height: 18px; width: 1px; translate: 0 -50%; background: var(--border-strong); }
@media (max-width: 760px) { .strip-arrows { padding-left: 0; } .strip-arrows::before { display: none; } }
.strip-jump {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 0; border-radius: 999px; background: none;
  color: var(--text-2); cursor: pointer; font: 600 10.5px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.15s, background 0.15s;
}
.strip-jump:hover { color: var(--text); background: rgba(var(--tier-rgb), 0.12); }
.strip-arrows { display: flex; gap: 6px; }
.strip-arrow {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: none; color: var(--text-2); cursor: pointer; transition: color 0.15s, background 0.15s;
}
.strip-arrow:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 760px) { .strip-jumps { display: none; } }

/* home strip of team members, editorial style: groups by role ("PROJECT LEADS  03") under a rule, people separated by
   thin vertical lines (no boxes). Each person: avatar standing in its role's light with a floor shadow, then a rule
   with a role-coloured tick, display name, @username and what they do. Hover lifts the avatar and stretches the tick. */
.tier-owner { --tier: #b79cff; --tier-rgb: 183, 156, 255; }
.tier-project_lead { --tier: #f5b941; --tier-rgb: 245, 185, 65; }
.tier-developer { --tier: #5ec4f5; --tier-rgb: 94, 196, 245; }
[data-theme="light"] .tier-owner { --tier: #6d28d9; }
[data-theme="light"] .tier-project_lead { --tier: #a16207; }
[data-theme="light"] .tier-developer { --tier: #0284c7; }
/* the strip: people stand apart, each on their own short floor (see .marquee-info); groups open with a small
   vertical label after a short divider, instead of boxes */
.marquee-group {
  gap: 0; padding-right: 0;
}
/* between groups: a short divider standing on the stage, fading at both ends (it never touches the floor) */
.team-block { position: relative; flex: none; display: flex; align-items: flex-start; padding-left: 18px; }
.team-block::before {
  content: ''; position: absolute; left: 0; top: 22px; height: 112px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-strong) 25%, var(--border-strong) 75%, transparent);
}
.team-block-head {
  height: 154px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 2px 0 22px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 600 10px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.2em; text-transform: uppercase;
}
.team-block-label { color: var(--tier); }
.team-block-count { color: var(--muted); }
.team-block-row { display: flex; }
.marquee-item { width: 172px; margin: 0 10px; flex: none; display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.marquee-item:hover { color: var(--text); }
.marquee-pic {
  position: relative; width: 100%; aspect-ratio: 1 / 0.9; display: flex; align-items: flex-end; justify-content: center;
  padding: 10% 14% 7%; isolation: isolate;
  background: radial-gradient(60% 55% at 50% 74%, rgba(var(--tier-rgb), 0.2), transparent 72%);
}
.marquee-pic::after { /* floor shadow under the feet */
  content: ''; position: absolute; left: 26%; right: 26%; bottom: 6%; height: 8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
}
.marquee-pic img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom; display: block;
  transform-origin: 50% 100%; transition: transform 0.3s ease;
}
.marquee-item:hover .marquee-pic img { transform: translateY(-4px) scale(1.04); }
.marquee-info {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0;
  padding: 12px 12px 16px; background: linear-gradient(90deg, transparent, var(--border-strong) 22%, var(--border-strong) 78%, transparent) top / 100% 1px no-repeat;
}
.marquee-info::before { /* role-coloured tick on the floor line, centred */
  content: ''; position: absolute; top: -1px; left: calc(50% - 9px); width: 18px; height: 2px; background: var(--tier);
  box-shadow: 0 0 8px rgba(var(--tier-rgb), 0.7); transition: transform 0.25s ease;
}
.marquee-item:hover .marquee-info::before { transform: scaleX(2.2); }
.marquee-info strong { font-size: 14.5px; max-width: 100%; }
.marquee-handle { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.35em; }
/* games: all of them, one per line; the box keeps room for --games lines (most games in the group) so cards line up */
.games-list:empty { margin: 0; }
.games-list {
  display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 100%; margin-top: 4px;
  min-height: max(0px, calc(var(--games, 1) * 1.45em + (var(--games, 1) - 1) * 2px)); font-size: 12px; color: var(--muted);
}
.games-line { max-width: 100%; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marquee-handle { font-size: 12px; color: var(--text-2); }
[data-theme="light"] .marquee-pic::after { background: radial-gradient(closest-side, rgba(40, 20, 80, 0.22), transparent); }

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-pic img, .marquee-info::before { transition: none; }
  .member-card, .member-card:hover, .member-stage img, .marquee-pic img { transition: none; transform: none; }
  .member-card.spotlight .member-stage { animation: none; }
  .like-btn.pop .icon { animation: none; }
}

/* ---------------------------------------------------------------- ticket ratings */
.face { flex: none; }
.face .face-bg { fill: currentColor; fill-opacity: 0.16; stroke: currentColor; stroke-width: 1.6; }
.face .face-eye { fill: currentColor; }
.face .face-mouth { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.face.mood-none { color: var(--muted); }
.face.mood-0, .face.mood-1 { color: var(--critical-text); }
.face.mood-2 { color: var(--serious); }
.face.mood-3 { color: var(--warning); }
.face.mood-4, .face.mood-5 { color: var(--good-text); }
.face.mood-5 { filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.45)); }

.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.star path { fill: transparent; stroke: var(--axis); stroke-width: 1.6; stroke-linejoin: round; }
.star.on path { fill: #fbbf24; stroke: #fbbf24; }

.rating-chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.rating-word { font-weight: 600; font-size: 13.5px; }
.rating-comment { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.rating-card { display: flex; flex-direction: column; gap: 12px; }
.rating-card .card-head { margin-bottom: 0; }
.rating-card .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rating-card textarea { min-height: 64px; }

.rate-picker { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.rate-options { display: flex; align-items: center; gap: 2px; }
.rate-opt { background: none; border: 0; padding: 4px; border-radius: 8px; cursor: pointer; line-height: 0; transition: transform 0.12s ease; }
.rate-opt:hover { transform: scale(1.12); }
.rate-opt .star path { fill: transparent; stroke: var(--axis); }
.rate-opt.lit .star path { fill: #fbbf24; stroke: #fbbf24; }
.rate-zero { margin-right: 8px; opacity: 0.55; }
.rate-zero.lit, .rate-zero:hover { opacity: 1; }
.rate-zero .face { color: var(--critical-text); }
.rate-live { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.rate-live-word { font-size: 14px; }
.badge.rate-nudge { background: rgba(251, 191, 36, 0.14); color: var(--amber-text); text-decoration: none; }
.badge.rate-nudge::before { content: "★"; }
@media (prefers-reduced-motion: reduce) { .rate-opt { transition: none; } .rate-opt:hover { transform: none; } }

.rank-pos { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.rank-pos.top1 { background: linear-gradient(180deg, #fde68a, #f59e0b); color: #1c1305; }
.rank-pos.top2 { background: var(--silver); color: #1b1826; }
.rank-pos.top3 { background: linear-gradient(180deg, #fdba74, #c2410c); color: #1c0d05; }
a.plain { color: inherit; text-decoration: none; }
.dist { display: flex; width: 110px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-3); }
.dist-seg { display: block; flex-basis: 0; }
.dist-seg.neg { background: var(--critical); }
.dist-seg.mid { background: var(--warning); }
.dist-seg.pos { background: var(--good); }
.card-pad { padding: 0 20px 20px; }
.feedback-list { display: flex; flex-direction: column; gap: 12px; }
.feedback { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.feedback .rating-comment { margin-top: 0; }
.feedback-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Automatic refund-policy notice (top of refund tickets and of the refund form). */
.msg-notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); font-size: 14.5px;
  background: rgba(250, 178, 25, 0.12); border: 1px solid rgba(250, 178, 25, 0.55); box-shadow: 0 0 0 1px rgba(250, 178, 25, 0.12), 0 6px 24px rgba(250, 178, 25, 0.08);
}
.msg-notice strong { color: var(--amber-text); font-size: 15px; }
.msg-notice-icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--warning); color: #1a1405; font-weight: 800;
}

/* Site metrics */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; align-items: start; }

/* ---------------------------------------------------------------- finance (owner only) */
.payout-slot:empty { display: none; }
.payout-slot { padding-top: 16px; }
.payout-alert { align-items: flex-start; }
.payout-alert strong { white-space: nowrap; }
.payout-alert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.payout-alert-list .late, .due-badge.late { color: var(--critical-text); font-weight: 650; }
.payout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 14px; }
.payout-grid .wide { grid-column: span 2; }
@media (max-width: 560px) { .payout-grid .wide { grid-column: auto; } }
.list.payouts li.payout-row { flex-direction: column; align-items: stretch; gap: 10px; padding: 16px 4px; }
.payout-row.soon { box-shadow: inset 3px 0 0 var(--warning); padding-left: 14px; }
.payout-row.late { box-shadow: inset 3px 0 0 var(--critical); padding-left: 14px; }
.payout-row.paused { opacity: 0.6; }
.payout-row.editing { padding: 18px 4px; }
.payout-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.payout-amount { display: inline-flex; align-items: center; gap: 10px; }
.payout-amount strong { font-size: 18px; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 4px; }
.payout-meta { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; color: var(--text-2); }
.due-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.due-badge.soon { color: var(--amber-text); }
.due-badge.later { color: var(--text-2); }
.pay-info { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.payout-actions { gap: 6px; }
.tag.paid { background: rgba(34, 197, 94, 0.14); color: var(--good-text); }

/* ---------------------------------------------------------------- YouTube look
   Content-creator tickets (and their new-ticket form): theme.js viewAccent() sets data-accent="youtube"
   on <html> while one is open, on top of light/dark. YouTube's neutral greys, red accent, pill buttons. */
.cat-yt { display: inline-flex; align-items: center; gap: 6px; }
.tag.cat-yt { background: rgba(255, 0, 51, 0.12); color: var(--text); }
.choice-yt:hover { border-color: #ff0033; box-shadow: 0 0 0 1px rgba(255, 0, 51, 0.4), 0 8px 30px rgba(255, 0, 51, 0.2); }
.choice .yt-logo { flex: none; margin: 0 8px; }

:root[data-accent="youtube"] {
  --page: #0f0f0f;
  --surface: #181818;
  --surface-2: #272727;
  --surface-3: #333333;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #f1f1f1;
  --text-2: #aaaaaa;
  --muted: #909090;
  --violet-300: #ff6b81;
  --violet-400: #ff4e5f;
  --violet-500: #ff0033;
  --violet-600: #e6002e;
  --violet-700: #cc0029;
  --brand-soft: rgba(255, 0, 51, 0.14);
  --glow: 0 0 0 1px rgba(255, 0, 51, 0.4), 0 8px 30px rgba(255, 0, 51, 0.22);
  --focus: #ff6b81;
  --series: #ff4e5f;
  --bg-glow-1: rgba(255, 0, 51, 0.14);
  --bg-glow-2: rgba(255, 255, 255, 0.03);
  --topbar-bg: rgba(15, 15, 15, 0.86);
  --overlay-bg: rgba(15, 15, 15, 0.86);
  --float-bg: rgba(33, 33, 33, 0.94);
  --link-hover: #ff97a6;
  --geo-rgb: 255, 0, 51;
  --geo-line: 0.06;
  --geo-fill: 0.025;
  --font: Roboto, Arial, system-ui, sans-serif;
}
:root[data-theme="light"][data-accent="youtube"] {
  --page: #f9f9f9;
  --surface: #ffffff;
  --surface-2: #f2f2f2;
  --surface-3: #e5e5e5;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.18);
  --text: #0f0f0f;
  --text-2: #606060;
  --muted: #6f6f6f;
  --violet-300: #cc0029;
  --violet-400: #ff0033;
  --brand-soft: rgba(255, 0, 51, 0.08);
  --glow: 0 0 0 1px rgba(255, 0, 51, 0.3), 0 8px 24px rgba(255, 0, 51, 0.12);
  --focus: #cc0029;
  --bg-glow-1: rgba(255, 0, 51, 0.06);
  --bg-glow-2: rgba(0, 0, 0, 0.02);
  --topbar-bg: rgba(255, 255, 255, 0.9);
  --overlay-bg: rgba(255, 255, 255, 0.88);
  --float-bg: rgba(255, 255, 255, 0.95);
  --link-hover: #99001f;
  --geo-rgb: 204, 0, 41;
  --geo-line: 0.07;
  --geo-fill: 0.02;
}
[data-accent="youtube"] ::selection { background: rgba(255, 0, 51, 0.32); }
[data-accent="youtube"] .brand img { filter: drop-shadow(0 0 10px rgba(255, 0, 51, 0.45)); }
[data-accent="youtube"] .btn, [data-accent="youtube"] .crumb, [data-accent="youtube"] .seg, [data-accent="youtube"] .seg a { border-radius: 999px; }
[data-accent="youtube"] .btn.primary { background: #ff0033; box-shadow: none; }
[data-accent="youtube"] .btn.primary:hover:not(:disabled) { background: #d9002b; }
[data-accent="youtube"] .chat-jump.has-new { background: #ff0033; }
[data-accent="youtube"] .msg-row.mine .msg-bubble { background: rgba(255, 0, 51, 0.16); border-color: rgba(255, 0, 51, 0.38); }
[data-accent="youtube"] .msg-row.staff.theirs .msg-bubble { border-color: rgba(255, 0, 51, 0.3); box-shadow: inset 3px 0 0 rgba(255, 0, 51, 0.55); }
[data-accent="youtube"] .msg-row.internal .msg-bubble { background: rgba(250, 178, 25, 0.08); box-shadow: none; }
[data-accent="youtube"] .composer-field:focus-within { border-color: #ff0033; box-shadow: 0 0 0 3px rgba(255, 0, 51, 0.15); }
[data-accent="youtube"] .table tbody tr.clickable:hover td { background: rgba(255, 0, 51, 0.06); }
[data-accent="youtube"] .tag.staff { background: rgba(255, 0, 51, 0.14); }

/* ---------------------------------------------------------------- community: Discord servers + X (home page) */
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--fs) * 17), 1fr)); gap: calc(var(--fs) * 1.07); }
.server-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.server-card:hover { color: var(--text); transform: translateY(-3px); border-color: rgba(88, 101, 242, 0.6); box-shadow: 0 14px 40px rgba(88, 101, 242, 0.2); }
.server-banner { display: grid; place-items: center; height: calc(var(--fs) * 5.6); color: #fff; background: linear-gradient(135deg, #5865f2, #7c3aed); }
.server-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.server-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: calc(var(--fs) * 0.4); padding: 0 calc(var(--fs) * 1.1) calc(var(--fs) * 1.1); }
.server-ico {
  display: grid; place-items: center; width: calc(var(--fs) * 4.2); height: calc(var(--fs) * 4.2); margin-top: calc(var(--fs) * -2.1);
  border-radius: 30%; border: 4px solid var(--surface); object-fit: cover; background: var(--surface-3);
  font-size: calc(var(--fs) * 1.3); font-weight: 800; color: var(--text);
}
.server-body h3 { margin-top: 2px; font-size: calc(var(--fs) * 1.2); font-weight: 750; }
.server-desc {
  margin: 0; font-size: calc(var(--fs) * 0.87); line-height: 1.45; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.server-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: calc(var(--fs) * 0.6); font-size: calc(var(--fs) * 0.83); color: var(--muted); }
.server-stats > span { display: inline-flex; align-items: center; gap: 6px; }
.server-stats .live-dot { width: 8px; height: 8px; }
.member-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neutral-dot); }
.btn.server-join { width: 100%; margin-top: auto; padding: calc(var(--fs) * 0.75) 10px; color: #fff; background: #5865f2; border-color: #5865f2; }
.server-card:hover .btn.server-join { background: #4752c4; }
.x-card .server-banner { background: radial-gradient(circle at 30% 20%, #2b2b2b, #000 70%); }
.x-card:hover { border-color: rgba(255, 255, 255, 0.35); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); }
.server-ico.x { color: #fff; background: #000; }
.btn.server-join.x { background: #0f0f0f; border-color: #333; }
.x-card:hover .btn.server-join.x { background: #262626; }
/* Official Roblox group: the main card, two columns wide when there's room. */
.group-card { grid-column: span 2; border-color: rgba(250, 178, 25, 0.45); }
.group-card .server-banner { position: relative; height: calc(var(--fs) * 6.4); background: radial-gradient(circle at 25% 15%, #3a2a0a, #120d05 55%, #000); color: #fab219; }
.group-card .tag.group-main { position: absolute; top: 10px; right: 10px; color: #1a1205; background: #fab219; font-weight: 750; }
.group-card .server-desc { -webkit-line-clamp: 3; }
.group-card:hover { border-color: #fab219; box-shadow: 0 14px 40px rgba(250, 178, 25, 0.22); }
.server-ico.roblox { color: #fab219; background: #120d05; }
.btn.server-join.roblox { color: #1a1205; background: #fab219; border-color: #fab219; }
.group-card:hover .btn.server-join.roblox { background: #e09e0f; }
@media (max-width: 760px) { .group-card { grid-column: auto; } }
[data-theme="light"] .server-card { box-shadow: var(--card-shadow); }
[data-theme="light"] .x-card:hover { border-color: #000; }
@media (max-width: 760px) { .servers { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); } }

/* X in the top bar and the footer */
.icon-link.x:hover { color: #fff; background: #000; border-color: #000; }
.footer-x { display: inline-flex; align-items: center; gap: 5px; }

/* ---------------------------------------------------------------- owner > Discord */
.bot-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bot-head strong { display: block; font-size: 17px; margin-bottom: 2px; }
.bot-ph { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; background: #5865f2; }
.bot-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.bot-state .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neutral-dot); }
.bot-state.on .dot { background: var(--good); }
.bot-state.warn .dot { background: var(--warning); }
.bot-state.bad .dot { background: var(--critical); }
.bot-card .notice { margin-top: 14px; }
.bot-steps { display: flex; flex-direction: column; gap: 6px; margin: 16px 0 0; padding-left: 20px; font-size: 14px; color: var(--text-2); }
.guild-card { display: flex; flex-direction: column; gap: 16px; }
.guild-card.gone { opacity: 0.6; }
.guild-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.guild-head strong { font-size: 16px; }
.guild-ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 30%; object-fit: cover; color: #fff; background: #5865f2; }
.guild-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.guild-grid h3 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.guild-grid a { overflow-wrap: anywhere; }
input.pos-input { width: 84px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-ui { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); transition: background 0.15s; }
.switch-ui::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-2); transition: transform 0.15s, background 0.15s;
}
.switch input:checked + .switch-ui { background: var(--violet-600); border-color: var(--violet-500); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch input:disabled + .switch-ui { opacity: 0.5; }
@media (prefers-reduced-motion: reduce) {
  .server-card, .msg-img img, .switch-ui, .switch-ui::after { transition: none; }
  .server-card:hover { transform: none; }
}
