@font-face { font-family: "Clash Grotesk"; src: url("../fonts/ClashGrotesk-Extralight.woff2?v=3dbd4a3e98") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("../fonts/ClashGrotesk-Light.woff2?v=cb552fccc9") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("../fonts/ClashGrotesk-Regular.woff2?v=48ebd5cc56") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("../fonts/ClashGrotesk-Medium.woff2?v=9cb7a46c12") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("../fonts/ClashGrotesk-Semibold.woff2?v=0759a658b2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("../fonts/ClashGrotesk-Bold.woff2?v=1e4c366981") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #06070a;
  --text: #eef0f4;
  --muted: #8f95a1;
  --faint: #5b616d;
  --brand: #5b79f9;
  --brand-rgb: 91, 121, 249;
  --brand-hi: #7089ff;
  --brand-hi-rgb: 112, 137, 255;
  --brand-text: #9db0ff;
  --brand-text-rgb: 157, 176, 255;
  --brand-light: #dfe5ff;
  --on-brand: #ffffff;
  --brand-dim: rgba(var(--brand-rgb), 0.24);
  --ok: #5ee08a;
  --gold: #ffc35c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.28);
  --raise: rgba(255, 255, 255, 0.05);
  --foul: #e6a55a;
  --bad: #e2705a;
  --font: "Clash Grotesk", "Segoe UI", system-ui, sans-serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --panel: var(--grain), radial-gradient(140% 120% at 0% 0%, rgba(60, 80, 190, 0.16), transparent 50%), linear-gradient(175deg, rgba(23, 25, 32, 0.94) 0%, rgba(15, 16, 21, 0.93) 55%, rgba(9, 10, 13, 0.93) 100%);
  --hud: var(--grain), linear-gradient(180deg, rgba(20, 22, 28, 0.9) 0%, rgba(10, 11, 15, 0.86) 100%);
  --depth: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 48px -18px rgba(0, 0, 0, 0.7);
  --r: 4px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --top: max(14px, env(safe-area-inset-top, 0px));
  --bottom: max(18px, env(safe-area-inset-bottom, 0px));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pad-x: clamp(28px, 3.4vw, 72px);
  --pad-y: clamp(28px, 5.2vh, 64px);
  --rail: clamp(196px, 14vw, 244px);
  --gap: clamp(28px, 2.8vw, 52px);
  --panel-w: clamp(480px, 40vw, 660px);
  --menu-end: calc(var(--pad-x) + var(--rail) + var(--gap) + var(--panel-w));
  --head-gap: clamp(28px, 5vh, 52px);
  --stack: 16px;
  --block-pad: 28px 32px 30px;
  --stage-w: clamp(170px, 14vw, 240px);
  --stage-gap: clamp(16px, 3vw, 72px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (pointer: coarse) { input, select, textarea { font-size: 16px !important; } }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font); font-size: 14px; font-weight: 400; line-height: 1.4; letter-spacing: 0.005em; overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; touch-action: none; }
#app { position: fixed; inset: 0; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
button, input, select { font-family: var(--font); color: var(--text); }
button { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.4); outline-offset: 2px; }
#view:focus-visible { outline: none; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }


.brand { display: inline-flex; align-items: center; }
.brand .logo-full { display: block; height: 40px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.brand.large { flex-direction: column; align-items: flex-start; }
.brand.large .logo-full { height: clamp(44px, 5.4vw, 84px); width: auto; }

.screen { position: absolute; inset: 0; display: flex; z-index: 20; }
.backdrop { background: radial-gradient(90% 90% at 50% 45%, rgba(4, 6, 12, 0.6), rgba(3, 4, 8, 0.86)); padding: var(--top) var(--gutter) var(--bottom); overflow-y: auto; }
.menu-screen { background: linear-gradient(180deg, rgba(6, 7, 11, 0.4) 0%, rgba(6, 7, 11, 0) 22%, rgba(6, 7, 11, 0) 76%, rgba(6, 7, 11, 0.5) 100%), linear-gradient(90deg, rgba(6, 7, 11, 0.94) 0%, rgba(6, 7, 11, 0.9) calc(var(--menu-end) - 90px), rgba(6, 7, 11, 0.5) calc(var(--menu-end) + 30px), rgba(6, 7, 11, 0.12) calc(var(--menu-end) + 150px), rgba(6, 7, 11, 0) calc(var(--menu-end) + 260px)); }

#login { --fade: clamp(560px, 58vw, 1080px); padding: var(--pad-y) var(--pad-x); overflow-y: auto; background: radial-gradient(120% 90% at 0% 50%, rgba(6, 7, 11, 0.35), rgba(6, 7, 11, 0) 70%), linear-gradient(180deg, rgba(6, 7, 11, 0.32) 0%, rgba(6, 7, 11, 0) 24%, rgba(6, 7, 11, 0) 74%, rgba(6, 7, 11, 0.42) 100%), linear-gradient(90deg, rgba(6, 7, 11, 0.78) 0%, rgba(6, 7, 11, 0.76) calc(var(--fade) * 0.14), rgba(6, 7, 11, 0.7) calc(var(--fade) * 0.28), rgba(6, 7, 11, 0.6) calc(var(--fade) * 0.42), rgba(6, 7, 11, 0.47) calc(var(--fade) * 0.55), rgba(6, 7, 11, 0.33) calc(var(--fade) * 0.67), rgba(6, 7, 11, 0.2) calc(var(--fade) * 0.78), rgba(6, 7, 11, 0.09) calc(var(--fade) * 0.88), rgba(6, 7, 11, 0.025) calc(var(--fade) * 0.95), rgba(6, 7, 11, 0) var(--fade)); }
.login-col { margin: auto 0; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; max-width: calc(var(--menu-end) - var(--pad-x)); }
.tagline { font-size: 17px; color: var(--muted); max-width: 32ch; line-height: 1.5; }
.steam-btn { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px 0 20px; background: var(--grain), var(--brand); color: var(--on-brand); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border-radius: var(--r); box-shadow: 0 18px 40px -16px rgba(var(--brand-rgb), 0.8); transition: transform 0.2s var(--ease); }
.steam-btn i { font-size: 22px; line-height: 1; }
.steam-btn:hover { background: var(--grain), var(--brand-hi); }
.steam-btn:active { transform: translateY(1px); }
.login-msg { color: var(--foul); font-size: 14px; }
.login-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.discord-btn { color: #fff; background: var(--grain), #5865f2; box-shadow: 0 18px 40px -16px rgba(88, 101, 242, 0.8); }
.discord-btn:hover { background: var(--grain), #6d78f5; }
.guest-form { display: contents; }
.guest-btn { color: #fff; border: 0; font-family: var(--font); cursor: pointer; background: var(--grain), #2c313a; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8); }
.guest-btn:hover { background: var(--grain), #3a404b; }
.acct { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; }
.acct .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acct .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct .avatar { width: 26px; height: 26px; }
.acct .muted { color: var(--muted); font-size: 13px; }
.acct a.btn { text-decoration: none; color: var(--text); height: 38px; }
.row-label i { margin-right: 6px; font-size: 14px; vertical-align: -2px; }

#home { overflow: hidden; }
.home-wrap { display: grid; grid-template-columns: var(--rail) var(--panel-w) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: var(--gap); row-gap: var(--head-gap); width: 100%; height: 100%; padding: var(--pad-y) var(--pad-x); }
.home-head { grid-column: 1 / 3; grid-row: 1; display: flex; align-items: flex-end; min-height: 30px; }
.side { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 32px; min-height: 0; }
.nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.nav button, .nav a { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 15px 8px 14px 4px; font-size: 21px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; text-align: left; color: var(--faint); transition: color 0.2s var(--ease), background 0.25s var(--ease), padding 0.25s var(--ease); }
.nav button:hover, .nav a:hover { color: var(--muted); background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 80%); }
.nav button[aria-selected="true"] { color: var(--text); padding-left: 16px; background: linear-gradient(90deg, var(--brand-dim), rgba(var(--brand-rgb), 0.06) 55%, transparent 90%); }
.nav button[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--brand-text); }
.nav small { font-size: 12px; font-weight: 500; color: var(--faint); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.nav a { text-decoration: none; }
.nav-out i { font-size: 17px; line-height: 1; letter-spacing: 0; color: var(--faint); align-self: center; transition: transform 0.25s var(--ease), color 0.2s var(--ease); }
.nav-out:hover i { color: var(--muted); transform: translate(2px, -2px); }
.nav button[aria-selected="true"] small { color: var(--brand-text); }
.me-card { margin-top: auto; display: flex; align-items: center; gap: 12px; min-width: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.me-card:empty { display: none; }
.me-card .who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.me-card .who b { font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card .who small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #1a1c22; flex: none; display: block; box-shadow: 0 0 0 1px var(--line-2); }
.avatar.ph { display: grid; place-items: center; color: var(--muted); background: linear-gradient(180deg, #20232b, #15171d); }
.avatar.ph i { display: block; font-size: 18px; line-height: 1; font-weight: 400; width: 1em; height: 1em; }
.avatar.ph i::before { display: block; line-height: 1; }
.avatar.ph.open { background: repeating-linear-gradient(45deg, transparent 0 4px, var(--raise) 4px 5px); }

.panel { grid-column: 2; grid-row: 2; min-height: 0; overflow-y: auto; padding-right: 8px; margin-right: -8px; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.tab-panel { display: flex; flex-direction: column; gap: var(--stack); animation: fadeUp 0.35s var(--ease); }
@keyframes fadeUp { from { opacity: 0.4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.block, .ach-list, .stat-grid { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--depth); }
.block { padding: var(--block-pad); }
.block-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.block-title { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); }
.block-sub { color: var(--muted); font-size: 13px; line-height: 1.5; }
.block-sub:empty { display: none; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 16px; min-height: 58px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rows > .row { border-bottom: 0; }
.rows > .row:not([hidden]) ~ .row { border-top: 1px solid var(--line); }
.row-label { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.block-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.block-note { color: var(--faint); font-size: 12.5px; line-height: 1.45; flex: 1; min-width: 160px; }
.block-note:empty { display: none; }
.links { display: flex; gap: 28px; flex-wrap: wrap; padding: 4px 2px; }

.seg { display: flex; flex-wrap: nowrap; justify-self: start; max-width: 100%; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(0, 0, 0, 0.18); }
.seg button { position: relative; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 9px 12px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color 0.15s, background 0.15s; }
.seg button + button { box-shadow: -1px 0 0 var(--line); }
.seg button:hover { color: var(--text); background: var(--raise); }
.seg button[aria-pressed="true"] { color: var(--text); background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07)); }
.seg.small button { padding: 6px 10px; font-size: 11px; }
.seg-btn { justify-self: start; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(0, 0, 0, 0.18); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; cursor: pointer; transition: color 0.15s, background 0.15s, border-color 0.15s; }
.seg-btn:hover { color: var(--text); background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)); }
.seg-btn i { font-size: 14px; }
.seg.wrap { flex-wrap: wrap; overflow: hidden; }
.seg.wrap button { flex: 1 1 auto; justify-content: center; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
.seg.locked button { cursor: default; }
.seg.locked button:hover { background: none; color: var(--muted); }
.seg.locked button[aria-pressed="true"]:hover { color: var(--text); background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07)); }
.seg.locked button:not([aria-pressed="true"]) { opacity: 0.4; }
.seg button:disabled { opacity: 0.3; cursor: default; }
.seg button:disabled:hover { background: none; color: var(--muted); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; max-width: 300px; height: 22px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--line-3); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-3); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 18px; border-radius: 2px; background: var(--text); margin-top: -8px; border: 0; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 18px; border-radius: 2px; background: var(--text); border: 0; }
.select { position: relative; justify-self: start; }
.select select { -webkit-appearance: none; appearance: none; background: rgba(0, 0, 0, 0.18); border: 1px solid var(--line-2); border-radius: var(--r); min-width: 12em; height: 40px; padding: 0 38px 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.select select option { background: #14161b; color: var(--text); text-transform: none; }
.select i { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); font-size: 18px; }
.rows > .row.card-preview-row { display: block; min-height: 0; padding: 0 0 4px; container-type: inline-size; }
.rows > .row:not([hidden]) ~ .row.card-preview-row { border-top: 0; }
.card-preview { --cw: min(112px, 19cqi); --lap: 0.45; --ar: 640 / 896; --tall: 1.4; display: flex; justify-content: center; align-items: flex-start; min-height: calc(var(--cw) * var(--tall) + 50px); padding: 16px 0 34px; pointer-events: none; }
.pcard { position: relative; flex: none; width: var(--cw); aspect-ratio: var(--ar); margin-left: calc(var(--cw) * var(--lap) * -1); border-radius: calc(var(--cw) * 0.065); overflow: hidden; background: #111318; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07); transform-origin: 50% 115%; rotate: var(--r); translate: 0 var(--y); pointer-events: auto; transition: translate 0.25s var(--ease), scale 0.25s var(--ease), box-shadow 0.25s var(--ease); animation: pcardIn 0.55s var(--ease) var(--d) backwards; }
.pcard:first-child { margin-left: 0; }
.pcard img, .pcard canvas { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.pcard:hover { z-index: 20 !important; translate: 0 calc(var(--y) - 14px); scale: 1.1; box-shadow: 0 22px 34px -14px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.16); }
@keyframes pcardIn { from { opacity: 0; rotate: 0deg; translate: 0 calc(var(--y) + 28px); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; background: transparent; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease); }
.btn i { font-size: 17px; line-height: 1; margin-left: -2px; }
.btn kbd { margin-left: auto; font-family: var(--font); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; color: var(--faint); border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 6px; line-height: 1.4; }
.btn.primary kbd { color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.3); }
.btn:hover { border-color: var(--line-3); background-color: var(--raise); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grain), var(--brand); border-color: transparent; color: var(--on-brand); min-width: 168px; box-shadow: 0 16px 34px -18px rgba(var(--brand-rgb), 0.9); }
.btn.primary:hover { background: var(--grain), var(--brand-hi); }
.btn.ghost { border-color: transparent; color: var(--muted); padding-left: 10px; padding-right: 14px; }
.btn.ghost:hover { color: var(--text); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background-color: rgba(226, 112, 90, 0.08); border-color: rgba(226, 112, 90, 0.35); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none; }
.btn.small { height: 36px; padding: 0 14px; gap: 8px; font-size: 11.5px; }
.btn.small i { font-size: 15px; }
.linkbtn { background: none; border: 0; padding: 4px 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color 0.15s; }
.linkbtn:hover { color: var(--text); }
.iconbtn { width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 1px solid transparent; border-radius: var(--r); color: var(--muted); font-size: 20px; }
.iconbtn:hover { color: var(--text); background: var(--raise); border-color: var(--line); }
.grow { flex: 1; }

.join { display: flex; gap: 10px; }
.join input, .share input { height: 44px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 14px; font-size: 14px; min-width: 0; transition: border-color 0.15s; }
.join input { width: 150px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.join input::placeholder { letter-spacing: 0.12em; color: var(--faint); }
.join input:focus, .share input:focus { border-color: var(--line-3); outline: none; }

.ach-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; padding: 6px 28px 8px; }
.ach { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ach-list .ach:last-child, .ach-list .ach:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.ach-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ach b { font-weight: 600; font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.ach small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ach .prog { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.ach .prog span { flex: 1; height: 2px; background: var(--line-2); position: relative; }
.ach .prog i { position: absolute; inset: 0 auto 0 0; background: var(--brand-text); }
.ach .prog em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.ach.locked b { color: var(--muted); }
.ach.locked small { color: var(--faint); }
.medal { --m-hi: #3a3f4b; --m-mid: #23262e; --m-lo: #121419; position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; flex: none; background: radial-gradient(circle at 30% 24%, var(--m-hi), var(--m-mid) 48%, var(--m-lo) 100%); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.4), 0 8px 16px -4px rgba(0, 0, 0, 0.6); }
.medal::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle at 50% 65%, var(--m-mid), var(--m-lo) 130%); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.28); }
.medal::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 42%); pointer-events: none; }
.medal i { position: relative; z-index: 1; font-size: 20px; line-height: 1; color: var(--m-hi); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.18); }
.medal.bronze { --m-hi: #f6c99c; --m-mid: #b8703c; --m-lo: #4e250c; }
.medal.silver { --m-hi: #ffffff; --m-mid: #aab2bd; --m-lo: #3d434d; }
.medal.gold { --m-hi: #fff2ba; --m-mid: #d6a12a; --m-lo: #5e3c00; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -3px 6px rgba(0, 0, 0, 0.4), 0 8px 16px -4px rgba(0, 0, 0, 0.6), 0 0 22px rgba(214, 161, 42, 0.25); }
.ach.locked .medal { --m-hi: #3a3f4b; --m-mid: #23262e; --m-lo: #121419; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), inset 0 -3px 6px rgba(0, 0, 0, 0.4), 0 6px 12px -4px rgba(0, 0, 0, 0.5); }
.ach.locked .medal::after { opacity: 0.25; }
.ach.locked .medal i { color: #565d6b; }

.rank-head, .rank li { display: grid; grid-template-columns: 52px 32px minmax(0, 1fr) 120px 76px; gap: 12px; align-items: center; }
.rank-head { padding: 0 14px 10px; border-bottom: 1px solid var(--line); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.rank-head span:nth-child(2) { grid-column: 2 / 4; }
.rank-head span:nth-child(3), .rank-head span:nth-child(4) { text-align: right; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.rank li:last-child { border-bottom: 0; }
.rank li .pos { color: var(--faint); font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; }
.rank li.top .pos { color: var(--text); }
.rank li.pinned { border-bottom: 1px solid var(--line-2); margin: 0 0 4px; background: linear-gradient(90deg, var(--brand-dim), transparent 70%); }
.rank li.empty { display: block; color: var(--faint); border: 0; }
.rank .avatar { width: 32px; height: 32px; }
.rank li span.n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.rank li .g { text-align: right; color: var(--muted); font-size: 13px; }
.rank li b { font-weight: 700; font-size: 16px; text-align: right; }
.rank li.me-row span.n { color: var(--brand-text); }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; padding: 8px 28px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.stat:nth-child(-n+4) { border-top: 0; }
.stat b { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.stat small { color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.recent { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.recent li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.recent li:last-child { border-bottom: 0; }
.recent .w, .recent .l { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.recent .w { color: var(--text); }
.recent .l { color: var(--faint); }
.recent .opp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent .opp em { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-left: 10px; }
.recent .d { color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.recent li.empty, .empty { display: block; color: var(--faint); border: 0; }


#lobby { overflow: hidden; }
.lobby-wrap { width: calc(var(--menu-end) + 8px); max-width: 100%; height: 100%; overflow-y: auto; padding: var(--pad-y) var(--pad-x); display: flex; flex-direction: column; gap: var(--stack); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.lobby-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 8px; }
.lobby-head > div { display: flex; flex-direction: column; gap: 8px; }
.lobby-head h2 { font-size: clamp(40px, 4.4vw, 56px); font-weight: 700; line-height: 0.9; }
.lobby-head > .lobby-head-side { flex-direction: row; align-items: center; gap: 10px; }
.lobby-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.share { display: flex; gap: 10px; margin-top: 18px; }
.share input { flex: 1; color: var(--muted); font-size: 13px; }

.modal { margin: auto; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); width: min(500px, 100%); max-height: 100%; overflow-y: auto; padding: 34px 36px 30px; display: flex; flex-direction: column; gap: 24px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 40px 90px -20px rgba(0, 0, 0, 0.8); animation: modalIn 0.3s var(--ease); contain: layout paint; }
.modal.wide { width: min(860px, 100%); }
.modal.narrow { width: min(400px, 100%); }
.modal.pause-modal { width: min(620px, 100%); }
.mtabs { display: flex; border-bottom: 1px solid var(--line); margin-top: -6px; }
.mtabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 10px 14px 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); transition: color 0.15s; }
.mtabs button:first-child { padding-left: 2px; }
.mtabs button:hover { color: var(--muted); }
.mtabs button[aria-selected="true"] { color: var(--text); }
.mtabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand-text); }
.mtabs button:first-child[aria-selected="true"]::after { left: 2px; }
.pause-modal .rows { border-top: 0; margin-top: -10px; }
.pause-modal .row { grid-template-columns: 150px minmax(0, 1fr); }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-head > div { display: flex; flex-direction: column; gap: 8px; }
.modal h2 { font-size: 40px; font-weight: 700; letter-spacing: 0.005em; line-height: 0.9; text-transform: uppercase; }
.modal h3 { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.modal p { color: var(--muted); line-height: 1.55; font-size: 14px; }
.modal-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.modal-foot.split { justify-content: space-between; }
.modal.small { width: min(420px, 100%); }
.modal.small h2 { font-size: 30px; }
#logoutAsk { z-index: 50; }
.modal-foot .hint { flex: 1; min-width: 140px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.eyebrow:empty { display: none; }
.code { color: var(--brand-text); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.pill { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.06); border-radius: var(--r); padding: 7px 10px; white-space: nowrap; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.menu-list { display: flex; flex-direction: column; gap: 10px; }
.menu-list .btn { width: 100%; justify-content: flex-start; padding: 0 16px; }
.hint { color: var(--muted); font-size: 13px; }
.hint:empty { display: none; }

.seats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.seats li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); min-height: 64px; }
.seats li:last-child { border-bottom: 0; }
.seats .avatar { width: 38px; height: 38px; }
.seats .nm { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.seats .nm b { font-weight: 600; font-size: 15px; letter-spacing: 0.03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seats .nm small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.seats .nm small span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; margin: 0 8px; vertical-align: middle; }
.seats li.off .nm, .seats li.off .avatar { opacity: 0.5; }
.seats li.team-head { display: block; min-height: 0; padding: 18px 0 8px; border-bottom: 1px solid var(--line); font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-text); }
.seats li.team-head:first-child { padding-top: 6px; }
.list-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.list-label small { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.pub-list + .list-label { margin-top: 26px; }
.pub-list li { grid-template-columns: 38px minmax(0, 1fr) auto auto; min-height: 60px; padding: 10px 0; }
.pub-list li.empty { display: block; min-height: 0; padding: 16px 0; color: var(--faint); font-size: 13px; }
.pub-list .nm b { font-size: 14px; }
.pub-count { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums; padding: 5px 8px; border-radius: var(--r); background: rgba(255, 255, 255, 0.06); }
.pub-av { position: relative; width: 38px; height: 38px; }
.pub-av .avatar { position: absolute; width: 26px; height: 26px; }
.pub-av .avatar:first-child { left: 0; top: 0; }
.pub-av .avatar + .avatar { right: 0; bottom: 0; box-shadow: 0 0 0 2px #14161b, 0 0 0 3px var(--line-2); }
.pub-av .avatar.ph i { font-size: 14px; }
.iconbtn.kick { width: auto; min-width: 38px; padding: 0 9px; gap: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.iconbtn.kick:hover { color: var(--bad); }
.iconbtn.kick.armed { color: var(--bad); border-color: rgba(226, 112, 90, 0.35); background: rgba(226, 112, 90, 0.08); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.iconbtn.kick.armed i { font-size: 15px; }
.seats.draggable li[data-seat] { grid-template-columns: 24px 38px minmax(0, 1fr) auto; }
.seats .drag { display: grid; place-items: center; width: 24px; height: 38px; padding: 0; background: none; border: 0; color: var(--faint); cursor: grab; touch-action: none; font-size: 18px; }
.seats .drag:hover { color: var(--text); }
.seats li.dragging { opacity: 0.35; }
.seats li.drop { background: linear-gradient(90deg, var(--brand-dim), transparent 80%); box-shadow: inset 2px 0 0 var(--brand-text); }
.seat-ghost { position: fixed; z-index: 100; margin: 0; border: 1px solid var(--line-3); border-radius: var(--r); background: var(--panel); box-shadow: var(--depth); pointer-events: none; padding: 0 12px; cursor: grabbing; }
.seat-ghost li { border-bottom: 0; }
.seats li.empty-seat .nm b { color: var(--faint); }
.seat-count { margin-left: 10px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.chips { list-style: none; margin: 0; padding: 2px 4px 2px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 6px; max-height: 196px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.chips li { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; height: 36px; padding: 0 10px 0 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.025); cursor: default; outline: none; transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.chips .avatar { width: 26px; height: 26px; }
.chips .avatar.ph i { font-size: 13px; }
.chips b { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips .crown { flex: none; font-size: 13px; color: var(--brand-text); }
.chips li.mine { border-color: rgba(var(--brand-text-rgb), 0.45); }
.chips li.hot, .chips li:focus-visible { border-color: rgba(var(--brand-text-rgb), 0.8); background: rgba(var(--brand-rgb), 0.2); box-shadow: 0 0 16px rgba(var(--brand-rgb), 0.3); }
.chips li.off b, .chips li.off .avatar { opacity: 0.45; }
.chips li.off::after { content: ''; position: absolute; left: 24px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 2px var(--ink); }
.chips .kick { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-right: -4px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--faint); font-size: 15px; cursor: pointer; opacity: 0; transition: opacity 0.15s, color 0.15s, background 0.15s; }
.chips li:hover .kick, .chips li:focus-within .kick, .chips .kick.armed { opacity: 1; }
.chips .kick:hover { color: var(--bad); background: rgba(226, 112, 90, 0.12); }
.chips .kick.armed { color: #fff; background: var(--bad); }
.chips li.chip-open { border-style: dashed; background: none; color: var(--faint); }
.chips li.chip-open b { font-weight: 500; text-transform: none; letter-spacing: 0.02em; }

.over-head { display: flex; flex-direction: column; gap: 10px; }
.over-head h2 { font-size: clamp(52px, 9vw, 76px); font-weight: 700; letter-spacing: -0.01em; line-height: 0.86; }
.over-head h2.win { color: var(--text); }
.over-head h2.loss { color: var(--muted); }
.over-wait { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid rgba(var(--brand-text-rgb), 0.3); border-radius: var(--r); background: linear-gradient(180deg, rgba(var(--brand-hi-rgb), 0.16), rgba(var(--brand-hi-rgb), 0.06)); }
.over-wait i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--brand-hi-rgb), 0.24); color: var(--brand-light); font-size: 18px; }
.over-wait:not(.gone) i { animation: overWait 2.4s ease-in-out infinite; }
.over-wait b { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.modal .over-wait p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.over-wait.gone { border-color: var(--line-2); background: var(--raise); }
.over-wait.gone i { background: var(--raise); color: var(--muted); }
@keyframes overWait { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--brand-text-rgb), 0.35); } 50% { box-shadow: 0 0 0 7px rgba(var(--brand-text-rgb), 0); } }
.unlocked { display: flex; flex-direction: column; }
.unlocked:empty { display: none; }

.help-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.help-grid { display: grid; grid-template-columns: 130px minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.help-grid dt, .help-grid dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 13.5px; line-height: 1.5; }
.help-grid dt { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding-right: 16px; padding-top: 14px; }
.help-grid dd { color: var(--muted); }
.help-sec { display: flex; flex-direction: column; gap: 10px; padding: 14px 0 0; border-top: 1px solid var(--line); }


#hud { position: absolute; inset: 0; pointer-events: none; z-index: 10; will-change: opacity; }
#focusFx { position: absolute; inset: 0; pointer-events: none; z-index: 9; opacity: 0; transition: opacity 1.6s var(--ease); background: radial-gradient(ellipse 75% 70% at 50% 52%, transparent 40%, rgba(4, 4, 8, 0.42) 72%, rgba(2, 2, 4, 0.86) 100%); will-change: opacity; }
#focusFx[data-level="1"] { opacity: 0.85; }
#hud.cine { opacity: 0; transition: opacity 0.5s var(--ease); }
#countdown { position: absolute; inset: 0; z-index: 12; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; pointer-events: none; background: radial-gradient(40% 40% at 50% 50%, rgba(3, 4, 10, 0.55), transparent 75%); opacity: 1; transition: opacity 0.6s var(--ease); }
#countdown[hidden] { display: flex; opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s; }
#countdown .cd-label { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
#countdown .cd-num { position: relative; width: 1.2em; height: 1em; font-size: clamp(110px, 16vw, 200px); font-weight: 700; line-height: 1; color: #fff; text-shadow: 0 0 40px rgba(var(--brand-rgb), 0.85), 0 6px 30px rgba(0, 0, 0, 0.6); font-variant-numeric: tabular-nums; }
#countdown .cd-num span { position: absolute; inset: 0; display: grid; place-items: center; animation: cdIn 1s cubic-bezier(0.22, 1, 0.36, 1) both; }
#countdown .cd-num span.out { animation: cdOut 0.45s ease-in both; }
@keyframes cdIn { 0% { opacity: 0; transform: scale(1.35); filter: blur(8px); } 35% { opacity: 1; transform: scale(1); filter: blur(0); } 100% { opacity: 1; transform: scale(0.94); } }
@keyframes cdOut { to { opacity: 0; transform: scale(0.8); filter: blur(6px); } }
#focusFx[data-level="2"] { opacity: 1; transition-duration: 0.5s; }
.tools { position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: auto; }
.tools.top { top: var(--top); left: var(--gutter); }
.tbtn { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 12px; background: var(--hud); border: 1px solid var(--line); border-radius: var(--r); font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; transition: border-color 0.15s, color 0.15s; }
.tbtn i { font-size: 16px; line-height: 1; color: var(--muted); }
.tbtn kbd { font-family: var(--font); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; color: var(--faint); border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 5px; line-height: 1.3; }
.tbtn:hover { border-color: var(--line-3); }
.tbtn[aria-pressed="true"] { background: var(--grain), linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)); }
.tbtn[aria-pressed="true"] i { color: var(--text); }
.tbtn:disabled { opacity: 0.4; cursor: default; }
.tbtn.accent { background: var(--grain), var(--brand); border-color: transparent; color: var(--on-brand); box-shadow: 0 14px 30px -14px rgba(var(--brand-rgb), 0.9); }
.tbtn.accent i { color: var(--on-brand); }
.tbtn.accent kbd { color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.3); }
.cam-bar { left: 50%; transform: translateX(-50%); bottom: var(--bottom); flex-direction: row; align-items: center; gap: 6px; transition: opacity 0.35s var(--ease); }

.board { position: absolute; top: var(--top); left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; width: min(760px, calc(100% - 400px)); background: var(--hud); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--depth); overflow: hidden; }
.plate { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 16px 11px; min-width: 0; }
.plate.right { align-items: flex-end; text-align: right; }
.plate .name { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; min-width: 0; max-width: 100%; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate .name > .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.plate .tag { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; min-height: 13px; }
.plate .tag i { font-size: 13px; }
.plate.out .name { color: var(--muted); }
.center { position: relative; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; padding: 0 18px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 96px; }
.q-host-answer { margin-top: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: #7dffa6; }
.q-host-answer b { font-weight: 700; color: var(--text); }
.talk-tag { position: absolute; z-index: 36; left: var(--gutter); bottom: calc(var(--bottom) + 64px); display: flex; align-items: center; gap: 10px; padding: 9px 16px 10px; background: var(--hud); border: 1px solid rgba(var(--brand-text-rgb), 0.45); border-radius: var(--r); box-shadow: var(--depth), 0 0 24px rgba(var(--brand-rgb), 0.35); font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); pointer-events: none; animation: toastIn 0.3s var(--ease); }
.talk-tag i { font-size: 16px; color: var(--brand-text); }
.talk-tag.self { border-color: rgba(255, 90, 106, 0.6); box-shadow: var(--depth), 0 0 24px rgba(255, 90, 106, 0.3); }
.talk-tag.self i { color: #ff5a6a; }
.talk-tag .bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.talk-tag .bars b { width: 3px; height: 100%; border-radius: 1px; background: var(--brand-text); animation: talkBar 0.9s ease-in-out infinite; }
.talk-tag .bars b:nth-child(2) { animation-delay: -0.3s; }
.talk-tag .bars b:nth-child(3) { animation-delay: -0.55s; }
.talk-tag .bars b:nth-child(4) { animation-delay: -0.15s; }
@keyframes talkBar { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.talk-btn { position: absolute; z-index: 36; right: var(--gutter); bottom: calc(var(--bottom) + 8px); display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; background: var(--hud); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--depth); color: var(--text); font: inherit; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.talk-btn i { font-size: 18px; }
.talk-btn kbd { font: 600 10.5px/1 inherit; letter-spacing: 0.08em; padding: 4px 6px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--muted); }
.talk-btn:hover { border-color: rgba(var(--brand-text-rgb), 0.5); }
.talk-btn.on { background: rgba(255, 90, 106, 0.18); border-color: rgba(255, 90, 106, 0.7); box-shadow: 0 0 20px rgba(255, 90, 106, 0.35); }
.talk-btn.on i { color: #ff5a6a; }
.key-bind { min-width: 96px; }
.key-bind.binding { border-color: rgba(var(--brand-text-rgb), 0.7); color: var(--brand-text); animation: bindPulse 1s ease-in-out infinite; }
@keyframes bindPulse { 50% { box-shadow: 0 0 14px rgba(var(--brand-rgb), 0.5); } }
.diff { display: flex; align-items: center; gap: 8px; min-height: 5px; }
.diff-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.diff-pips { display: flex; gap: 4px; }
.diff i { width: 12px; height: 4px; border-radius: 1px; background: var(--line-2); }
.diff i.on { background: var(--brand-text); box-shadow: 0 0 6px rgba(var(--brand-text-rgb), 0.7); }
.diff-pips.d1 i.on, .diff-pips.d2 i.on { background: #7dffa6; box-shadow: 0 0 6px rgba(125, 255, 166, 0.6); }
.diff-pips.d4 i.on { background: #ffb347; box-shadow: 0 0 6px rgba(255, 179, 71, 0.6); }
.diff-pips.d5 i.on { background: #ff5a6a; box-shadow: 0 0 6px rgba(255, 90, 106, 0.65); }
.hearts { display: flex; gap: 3px; font-size: 17px; line-height: 1; color: var(--faint); min-height: 17px; }
.hearts i.on { color: #ff4f6d; filter: drop-shadow(0 0 6px rgba(255, 79, 109, 0.55)); }
.hearts.hit { animation: heartHit 0.7s var(--ease); }
.hearts.hit i.lost { animation: heartLost 0.9s var(--ease); }
@keyframes heartLost { 0% { transform: scale(1); color: #ff4f6d; } 30% { transform: scale(1.45); color: #ff4f6d; filter: brightness(1.8); } 100% { transform: scale(1); } }
@keyframes heartHit { 0% { transform: scale(1); } 25% { transform: scale(1.25); filter: brightness(1.8); } 100% { transform: scale(1); } }
.hearts .out-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bad); }

.q-card { position: absolute; left: 50%; top: calc(var(--top) + 80px); transform: translateX(-50%); width: min(760px, calc(100% - 400px)); display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 6px 16px; padding: 11px 18px 12px; background: var(--hud); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--depth); text-align: center; animation: qIn 0.5s var(--ease); }
.q-card .q-host-answer, .q-card .q-result { grid-column: 1 / -1; }
.q-card.compact { width: auto; max-width: calc(100% - 24px); padding: 8px 12px; justify-items: center; }
.q-card.compact .q-text { display: none; }
@keyframes qIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translateX(-50%); } }
.q-text { font-size: clamp(15px, 1.4vw, 20px); font-weight: 500; line-height: 1.32; letter-spacing: 0.005em; color: var(--text); text-wrap: balance; }
.q-card.reveal .q-text { font-size: clamp(15px, 1.5vw, 18px); color: var(--muted); }
.q-result { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); animation: qIn2 0.45s var(--ease); }
@keyframes qIn2 { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.q-result .k { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.q-result b { font-size: clamp(24px, 2.8vw, 36px); font-weight: 700; color: var(--ok); text-shadow: 0 0 24px rgba(94, 224, 138, 0.35); line-height: 1.1; }
.q-result em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.q-result small { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.q-card.ok { border-color: rgba(94, 224, 138, 0.4); box-shadow: var(--depth), 0 0 40px -10px rgba(94, 224, 138, 0.45); }
.q-card.ok .q-result em { color: var(--ok); }
.q-card.bad { border-color: rgba(226, 112, 90, 0.4); box-shadow: var(--depth), 0 0 40px -10px rgba(226, 112, 90, 0.45); }
.q-card.bad .q-result em { color: var(--bad); }
.q-card.void .q-result b { color: var(--gold); text-shadow: 0 0 24px rgba(255, 195, 92, 0.35); }
.q-card.void .q-result em { color: var(--gold); }

.answer-dock { position: absolute; left: 50%; bottom: calc(var(--bottom) + 52px); transform: translateX(-50%); width: min(640px, calc(100% - 32px)); display: flex; flex-direction: column; align-items: stretch; gap: 10px; pointer-events: none; }
.answer-dock > * { pointer-events: auto; }
.answer { display: contents; }
.answer-box { display: flex; gap: 8px; padding: 6px; background: var(--hud); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--depth); }
.answer-box input { flex: 1; min-width: 0; height: 46px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; font-size: 18px; font-weight: 500; color: var(--text); }
.answer-box input:focus { outline: none; border-color: rgba(var(--brand-text-rgb), 0.6); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.25); }
.answer-box input::placeholder { color: var(--faint); }
.answer-box input:disabled { opacity: 0.5; }
.answer-box .btn { height: 46px; min-width: 0; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px; text-align: left; background: var(--hud); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--depth); font-size: 15px; font-weight: 500; transition: border-color 0.15s, background-color 0.15s, transform 0.1s; }
.choice kbd { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 3px; font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--brand-text); border: 1px solid rgba(var(--brand-text-rgb), 0.4); }
.choice span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.choice:hover:not(:disabled) { border-color: var(--line-3); }
.choice:active:not(:disabled) { transform: translateY(1px); }
.choice.sel { background: var(--grain), linear-gradient(180deg, rgba(var(--brand-rgb), 0.55), rgba(var(--brand-rgb), 0.3)); border-color: rgba(var(--brand-text-rgb), 0.7); }
.choice:disabled:not(.sel) { opacity: 0.45; cursor: default; }
.choice .box { margin-left: auto; flex: none; font-size: 18px; color: var(--muted); }
.choice.sel .box { color: var(--text); }
.choices.six .choice { min-height: 46px; }
.choice-submit { align-self: center; min-width: 220px; pointer-events: auto; }
.choice-submit.done { opacity: 0.55; }
.answer-note { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.answer-note i { color: var(--brand-text); font-size: 16px; }
.answer-note small { color: var(--faint); font-size: 10.5px; }
.answer-note.saved { align-self: center; padding: 9px 16px; background: var(--hud); border: 1px solid rgba(var(--brand-text-rgb), 0.4); border-radius: var(--r); box-shadow: var(--depth); text-shadow: none; animation: qIn2 0.35s var(--ease); }
.status { align-self: center; min-height: 36px; display: flex; align-items: center; padding: 6px 16px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--hud); border: 1px solid var(--line); border-radius: var(--r); }
.host-bar { align-self: center; display: flex; gap: 10px; }
.host-bar[hidden] { display: none; }
#btnHostVoid.armed { color: #fff; background: var(--bad); border-color: var(--bad); }
.status.watch { color: var(--text); }
.timer { align-self: center; width: min(320px, 100%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.timer span { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.timer i { display: block; width: 100%; height: 3px; background: rgba(255, 255, 255, 0.15); position: relative; overflow: hidden; border-radius: 2px; }
.timer b { position: absolute; inset: 0; background: var(--brand-text); transform-origin: 0 50%; box-shadow: 0 0 10px rgba(var(--brand-text-rgb), 0.8); }
.timer.low b { background: #ff5a4a; box-shadow: 0 0 10px rgba(255, 90, 74, 0.8); }
.timer.low span { color: #ff7a6c; animation: lowPulse 1s ease-in-out infinite; }
@keyframes lowPulse { 50% { opacity: 0.55; } }

#bubbles { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
.bubble { position: absolute; left: 0; top: 0; max-width: 170px; padding: 5px 10px 6px; border-radius: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.2; color: #fff; white-space: nowrap; background: rgba(12, 8, 18, 0.88); border: 1px solid var(--line-2); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.9); animation: bubbleIn 0.4s var(--ease) both; will-change: transform; }
.bubble span { display: block; overflow: hidden; text-overflow: ellipsis; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; margin-left: -5px; background: inherit; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transform: rotate(45deg); }
.bubble.ok { border-color: rgba(94, 224, 138, 0.7); background: rgba(14, 52, 28, 0.92); }
.bubble.ok::after { border-color: rgba(94, 224, 138, 0.7); }
.bubble.bad { border-color: rgba(226, 112, 90, 0.6); background: rgba(58, 16, 12, 0.92); }
.bubble.bad::after { border-color: rgba(226, 112, 90, 0.6); }
.bubble.void { border-color: rgba(255, 195, 92, 0.6); background: rgba(56, 38, 8, 0.92); }
.bubble.me { box-shadow: 0 0 0 2px rgba(var(--brand-text-rgb), 0.9), 0 8px 18px -8px rgba(0, 0, 0, 0.9); }
@keyframes bubbleIn { from { opacity: 0; margin-top: 8px; } to { opacity: 1; margin-top: 0; } }
.me-tag { transition: none; }
.me-tag[hidden] { display: none; }

.ranking { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ranking li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 70px 60px; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ranking li > span:nth-child(n+3) { text-align: right; color: var(--muted); font-weight: 600; }
.ranking li.h { padding: 0 14px 8px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.ranking li.h > span { color: var(--faint); }
.ranking .pos { color: var(--faint); font-weight: 700; }
.ranking .n { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ranking .n b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking .avatar { width: 26px; height: 26px; }
.ranking .avatar.ph i { font-size: 14px; }
.ranking li.w .pos, .ranking li.w b { color: var(--gold); }
.ranking li.me { background: linear-gradient(90deg, var(--brand-dim), transparent 75%); }
.ranking li.me b { color: var(--brand-text); }

.char-pick { display: flex; align-items: center; gap: 6px; min-width: 0; }
.char-name { display: flex; align-items: baseline; justify-content: center; gap: 6px; min-width: 170px; text-align: center; white-space: nowrap; }
.char-name b { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.char-name small { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.char-pick .seg-btn { margin-left: 8px; }
.lobby-me { margin-top: 14px; }

.toasts { position: absolute; z-index: 35; bottom: calc(var(--bottom) + 64px); right: var(--gutter); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: flex-start; gap: 10px; max-width: 100%; padding: 10px 18px 11px; background: var(--hud); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--depth); font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; line-height: 1.35; text-transform: uppercase; text-align: left; color: var(--text); animation: toastIn 0.35s var(--ease); }
.toast::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(85% 160% at 50% 150%, rgba(var(--brand-hi-rgb), 0.6), rgba(var(--brand-rgb), 0.18) 55%, transparent 80%); }
.toast i { font-size: 15px; line-height: 1; color: rgba(255, 255, 255, 0.72); flex: none; }
.toast.foul::before { background: radial-gradient(85% 160% at 50% 150%, rgba(232, 168, 88, 0.6), rgba(196, 136, 46, 0.18) 55%, transparent 80%); }
.toast.foul i { color: var(--foul); }
.toast.bad::before { background: radial-gradient(85% 160% at 50% 150%, rgba(226, 104, 82, 0.6), rgba(180, 64, 48, 0.18) 55%, transparent 80%); }
.toast.bad i { color: var(--bad); }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }



.watchers { position: absolute; left: var(--gutter); top: calc(var(--top) + 88px); display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }

.ach-pop { position: absolute; right: var(--gutter); bottom: var(--bottom); z-index: 45; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.ach-pop .ach { width: 310px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); animation: popIn 0.45s var(--ease); }
.ach-pop .ach small.k, .unlocked .ach small.k { color: var(--brand-text); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
@keyframes popIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.update { position: absolute; z-index: 60; right: var(--gutter); bottom: var(--bottom); width: min(380px, calc(100% - 32px)); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: center; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--depth); pointer-events: auto; animation: popIn 0.45s var(--ease); }
.update > i { font-size: 22px; line-height: 1; color: var(--brand-text); }
.update-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.update-text b { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.update-text small { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.update-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.update .btn { height: 36px; padding: 0 14px; min-width: 0; font-size: 11.5px; }
.update.ingame { top: calc(var(--top) + 112px); bottom: auto; right: auto; left: var(--gutter); }

#loading { position: absolute; inset: 0; z-index: 40; opacity: 0.996; will-change: opacity; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; background: var(--grain), radial-gradient(70% 60% at 50% 45%, #170a04, var(--ink)); transition: opacity 1.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s, visibility 0s linear 1.5s; padding-inline: 16px; text-align: center; }
#loading > * { transition: opacity 0.5s var(--ease), transform 0.7s var(--ease); }
#loading.done > * { opacity: 0; transform: translateY(-8px) scale(0.985); }
#loading .brand.large { align-items: center; }
#loading .brand.large .logo-full { height: min(102px, 16.5vw); width: auto; object-position: center; }
#loading.done { opacity: 0; visibility: hidden; pointer-events: none; }
#loading.done .bar i { will-change: auto; transition: none; }
#loading.done .bar i::after { animation: none; will-change: auto; }
#app.intro .home-head, #app.intro .side .nav, #app.intro .side .me-card, #app.intro .panel, #app.intro .login-col, #app.intro .lobby-wrap > * { animation: introUp 1.1s var(--ease) both; }
#app.intro .home-head { animation-delay: 0.45s; }
#app.intro .side .nav { animation-delay: 0.6s; }
#app.intro .panel { animation-delay: 0.75s; }
#app.intro .side .me-card { animation-delay: 0.9s; }
#app.intro .login-col { animation-delay: 0.5s; }
@keyframes introUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
#app.intro .menu-screen { animation: introBg 1.6s var(--ease) 0.2s both; }
@keyframes introBg { from { opacity: 0; } to { opacity: 1; } }
.bar { width: min(240px, 60vw); height: 2px; background: var(--line-2); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0; overflow: hidden; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--ease); will-change: transform; }
.bar i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 38%; z-index: 1; background: linear-gradient(90deg, transparent, rgba(var(--brand-text-rgb), 0.35) 30%, rgba(255, 255, 255, 0.95) 50%, rgba(var(--brand-text-rgb), 0.35) 70%, transparent); transform: translateX(-100%); animation: barGlow 1.6s cubic-bezier(0.45, 0, 0.35, 1) infinite; will-change: transform; pointer-events: none; }
@keyframes barGlow { from { transform: translateX(-100%); } to { transform: translateX(265%); } }
@media (prefers-reduced-motion: reduce) { .bar i::after { animation-duration: 3.2s; } }
#loading small { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; max-width: 40ch; line-height: 1.6; }

@media (max-width: 1100px) {
  :root { --rail: 180px; --panel-w: clamp(420px, 50vw, 540px); --block-pad: 24px 24px 26px; }
  .tools.top .tbtn span { display: none; }
  .nav button, .nav a { font-size: 18px; }
}
@media (max-width: 900px) {
  .menu-screen, #login { background: rgba(6, 7, 11, 0.88); }
  #home { overflow-y: auto; display: block; }
  .home-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; height: auto; min-height: 100%; row-gap: 20px; padding: max(22px, env(safe-area-inset-top, 0px)) var(--gutter) max(64px, calc(env(safe-area-inset-bottom, 0px) + 48px)); }
  .home-head { justify-content: center; }
  .home-head { grid-column: 1; }
  .side { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 16px; }
  .brand .logo-full { height: 32px; }
  .nav { grid-column: 1 / -1; flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; border-top: 0; border-bottom: 1px solid var(--line); }
  .nav::-webkit-scrollbar { display: none; }
  .nav button, .nav a { font-size: 15px; padding: 10px 12px; flex: none; border-bottom: 0; }
  .nav button[aria-selected="true"] { padding-left: 12px; background: linear-gradient(0deg, var(--brand-dim), transparent); }
  .nav button[aria-selected="true"]::before { display: none; }
  .nav small, .nav-out i { display: none; }
  .me-card { grid-row: 1; grid-column: 1; justify-self: center; margin: 0; padding: 0; border: 0; max-width: 100%; }
  .me-card .who small { display: none; }
  .panel { grid-column: 1; grid-row: 3; padding: 0; margin: 0; overflow: visible; }
  .lobby-wrap { width: 100%; padding: max(22px, env(safe-area-inset-top, 0px)) var(--gutter) 0; }
  .lobby-wrap::after { content: ''; flex: none; height: max(56px, calc(env(safe-area-inset-bottom, 0px) + 40px)); }
  .help-body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 720px) {
  .board { width: calc(100% - 24px); top: max(10px, env(safe-area-inset-top, 0px)); grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .plate { padding: 8px 10px 9px; gap: 5px; }
  .plate .name { font-size: 14px; gap: 7px; }
  .plate .tag { font-size: 9px; letter-spacing: 0.1em; }
  .center { min-width: 0; padding: 0 8px; }
  .hearts { font-size: 14px; }
  .q-card { width: calc(100% - 24px); top: calc(max(10px, env(safe-area-inset-top, 0px)) + 108px); padding: 10px 12px; }
  .q-text { font-size: 15px; }
  .tools.top { top: calc(max(10px, env(safe-area-inset-top, 0px)) + 66px); left: 12px; flex-direction: row; gap: 8px; }
  .tbtn kbd, .btn kbd { display: none; }
  .watchers { top: calc(max(10px, env(safe-area-inset-top, 0px)) + 72px); left: auto; right: 12px; }
  .toasts { top: auto; bottom: calc(var(--bottom) + 190px); }
  .answer-dock { bottom: calc(var(--bottom) + 46px); }
  .choices { grid-template-columns: minmax(0, 1fr); }
  .choice { min-height: 44px; }
  .bubble { font-size: 11px; max-width: 120px; }
  .cam-bar { width: calc(100% - 24px); justify-content: center; gap: 4px; }
  .cam-bar .tbtn { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 6px; font-size: 10px; letter-spacing: 0.06em; }
  .cam-bar .tbtn i { display: none; }
  :root { --block-pad: 20px 16px 22px; }
  .row, .pause-modal .row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 0; }
  .ach-list, .stat-grid { padding-left: 16px; padding-right: 16px; }
  .ach-list { grid-template-columns: minmax(0, 1fr); }
  .ach-list .ach:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(-n+4) { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .modal { padding: 24px 20px 22px; }
  #over .modal-foot .grow { display: none; }
  #over .modal-foot .hint { flex: 1 1 100%; min-width: 0; }
  #over .modal-foot .hint:empty { display: none; }
  #over .modal-foot .btn { flex: 1 1 140px; min-width: 0; }
  .modal h2 { font-size: 32px; }
  .help-grid { grid-template-columns: minmax(0, 1fr); }
  .help-grid dt { border-bottom: 0; padding-bottom: 2px; }
  .help-grid dd { padding-top: 0; }
  .pub-list li { grid-template-columns: 38px minmax(0, 1fr) auto auto; gap: 10px; }
  .pub-list .btn.small { padding: 0 11px; }
  .pub-list .btn.small span { display: none; }
  .lobby-head { flex-wrap: wrap; align-items: flex-start; }
  .lobby-head > .lobby-head-side { width: 100%; justify-content: space-between; }
  .rank-head, .rank li { grid-template-columns: 40px 28px minmax(0, 1fr) 64px 48px; gap: 8px; }
  .ach-pop .ach { width: min(310px, calc(100vw - 32px)); }
  .recent li { grid-template-columns: 76px minmax(0, 1fr) auto; }
}
html.coarse .cam-bar { left: var(--gutter); right: var(--gutter); width: auto; transform: none; justify-content: center; }
html.coarse .toasts { right: auto; left: 50%; bottom: calc(var(--bottom) + 210px); transform: translateX(-50%); align-items: center; width: min(520px, calc(100% - 32px)); }
html.coarse .tbtn kbd, html.coarse .choice kbd { display: none; }
html.coarse .update { left: 12px; right: 12px; width: auto; }
html.coarse .update.ingame { top: 120px; }
html.coarse .ach-pop { bottom: auto; top: calc(var(--top) + 90px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.secret { filter: blur(10px); transition: filter 0.25s var(--ease); cursor: default; }
.secret:hover, .secret:focus, .secret:focus-visible { filter: none; }
input.secret { color: transparent; text-shadow: 0 0 12px rgba(255, 255, 255, 0.9); filter: none; }
input.secret:hover, input.secret:focus { color: inherit; text-shadow: none; }
.q-media { display: flex; align-items: center; justify-content: center; gap: 12px; pointer-events: auto; }
.q-media .eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.q-media .eq b { width: 4px; height: 100%; border-radius: 1px; background: var(--brand-text); animation: talkBar 0.8s ease-in-out infinite; }
.q-media .eq b:nth-child(2) { animation-delay: -0.2s; }
.q-media .eq b:nth-child(3) { animation-delay: -0.45s; }
.q-media .eq b:nth-child(4) { animation-delay: -0.1s; }
.q-media .eq b:nth-child(5) { animation-delay: -0.6s; }
.hover-tag { position: absolute; z-index: 11; left: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: rgba(10, 10, 12, 0.66); border: 1px solid rgba(var(--brand-text-rgb), 0.28); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), 0 0 18px rgba(var(--brand-rgb), 0.22); backdrop-filter: none; pointer-events: none; white-space: nowrap; transform-origin: 50% 100%; opacity: 0; transition: opacity 0.18s var(--ease); will-change: transform, opacity; }
.hover-tag.on { opacity: 1; }
.hover-tag.top { z-index: 25; }
.hover-tag .avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; font-size: 15px; }
.hover-tag b { font-size: 15px; font-weight: 600; letter-spacing: 0.03em; color: var(--text); }
.hover-tag.mine { border-color: rgba(var(--brand-text-rgb), 0.6); }
.hover-tag.mine b { color: var(--brand-text); }
.hover-tag::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; margin-left: -5px; background: rgba(10, 10, 12, 0.66); border-right: 1px solid rgba(var(--brand-text-rgb), 0.28); border-bottom: 1px solid rgba(var(--brand-text-rgb), 0.28); transform: rotate(45deg); }

#tags { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
.ptag { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; transform-origin: 50% 100%; will-change: transform; transition: opacity 0.4s var(--ease); }
.ptag .who { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 5px 17px 5px 5px; border-radius: 999px; background: rgba(10, 9, 8, 0.72); border: 1px solid var(--line-2); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5); white-space: nowrap; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease); }
.ptag .who .avatar { width: 34px; height: 34px; }
.ptag .who .avatar.ph i { font-size: 18px; }
.ptag .who b { font-size: 17.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.ptag .lives { display: flex; gap: 3px; font-size: 18px; line-height: 1; color: var(--faint); }
.ptag .lives i.on { color: #ff4f6d; filter: drop-shadow(0 0 5px rgba(255, 79, 109, 0.55)); }
.ptag .lives i.lost { animation: heartLost 0.9s var(--ease); }
.ptag.hold .who { border-color: rgba(var(--brand-text-rgb), 0.85); background: rgba(42, 18, 4, 0.82); box-shadow: 0 0 22px rgba(var(--brand-rgb), 0.45); }
.ptag.hold .who b { color: var(--brand-text); }
.ptag.self .who { border-color: rgba(var(--brand-text-rgb), 0.4); }
.ptag.out { opacity: 0.45; }
.ptag.out .who b { color: var(--muted); }
.ptag .typed { min-height: 0; padding: 5px 14px; border-radius: 8px; background: rgba(10, 9, 8, 0.82); border: 1px solid rgba(var(--brand-text-rgb), 0.35); font-size: 22px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.ptag .typed:empty { display: none; }
.ptag .typed mark, .word-line mark { background: none; color: var(--brand-text); text-shadow: 0 0 14px rgba(var(--brand-rgb), 0.8); }
.ptag .typed.ok { border-color: rgba(94, 224, 138, 0.8); color: #c8ffd9; }
.ptag .typed.bad { border-color: rgba(226, 112, 90, 0.8); color: #ffc9bd; animation: shake 0.4s var(--ease); }
@keyframes shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.word-dock { position: absolute; left: 50%; bottom: calc(var(--bottom) + 52px); transform: translateX(-50%); width: min(640px, calc(100% - 32px)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.word-dock[hidden] { display: none; }
.word-who { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); min-height: 14px; }
.word-who.mine { color: var(--brand-text); }
.word-line { height: 64px; line-height: 1; min-width: 260px; max-width: 100%; display: flex; align-items: center; justify-content: center; padding: 8px 26px; border-radius: var(--r); background: var(--hud); border: 1px solid var(--line-2); box-shadow: var(--depth); font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); white-space: nowrap; overflow: hidden; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.word-line:empty::before { content: '\00a0'; }
.word-line.mine { border-color: rgba(var(--brand-text-rgb), 0.7); box-shadow: var(--depth), 0 0 34px rgba(var(--brand-rgb), 0.28); }
.word-line .caret { display: inline-block; width: 3px; height: 0.9em; margin-left: 4px; background: var(--brand-text); animation: caret 1s steps(1) infinite; vertical-align: -0.08em; }
@keyframes caret { 50% { opacity: 0; } }
.word-line.ok { border-color: rgba(94, 224, 138, 0.85); box-shadow: var(--depth), 0 0 34px rgba(94, 224, 138, 0.35); }
.word-line.bad { border-color: rgba(226, 112, 90, 0.85); box-shadow: var(--depth), 0 0 34px rgba(226, 112, 90, 0.35); animation: shake 0.4s var(--ease); }
.word-hint { min-height: 16px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.word-hint.bad { color: #ff9a86; }
.letters { position: absolute; left: 50%; bottom: var(--bottom); transform: translateX(-50%); width: min(640px, calc(100% - 24px)); display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.letters[hidden] { display: none; }
.letters span { flex: 0 1 26px; min-width: 0; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: rgba(8, 7, 6, 0.9); border: 1px solid var(--line-3); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--muted); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease); }
.letters span.on { color: #ffd9b8; background: linear-gradient(rgba(var(--brand-rgb), 0.38), rgba(var(--brand-rgb), 0.38)), rgba(8, 7, 6, 0.9); border-color: rgba(var(--brand-text-rgb), 0.95); }
.letters span.pop { animation: letterPop 0.5s var(--ease); }
.letters.full span { color: #fff1e6; background: rgba(var(--brand-rgb), 0.45); border-color: rgba(var(--brand-text-rgb), 0.95); box-shadow: 0 0 16px rgba(var(--brand-rgb), 0.6); animation: letterPop 0.6s var(--ease); }
@keyframes letterPop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
#wordInput { position: absolute; left: -9999px; top: 0; width: 10px; height: 10px; opacity: 0; pointer-events: none; }
#flash { position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(255, 210, 140, 0.9), rgba(255, 120, 40, 0.5) 45%, rgba(40, 10, 0, 0) 80%); }
#flash.go { animation: boomFlash 1.1s ease-out; }
#flash.me.go { animation: boomFlashMe 1.6s ease-out; }
@keyframes boomFlash { 0% { opacity: 0; } 8% { opacity: 0.85; } 100% { opacity: 0; } }
@keyframes boomFlashMe { 0% { opacity: 0; } 6% { opacity: 1; } 30% { opacity: 0.6; } 100% { opacity: 0; } }
.plate .tag.lang { color: var(--brand-text); }
@media (max-width: 720px) {
  .word-line { height: 52px; font-size: 26px; padding: 6px 16px; }
  .word-dock { bottom: calc(var(--bottom) + 42px); }
  .letters { gap: 2px; }
  .letters span { height: 24px; font-size: 11px; border-radius: 4px; }
  .ptag .who b { max-width: 90px; font-size: 11px; }
}
.modal-foot .hint:empty { display: none; }
#over .modal { width: min(660px, 100%); }
#over .modal-foot .btn { white-space: nowrap; }
.seg.tight button { padding-left: 9px; padding-right: 9px; letter-spacing: 0.05em; }
@media (min-width: 721px) { #over .modal-foot { flex-wrap: nowrap; } #over .modal-foot .btn { padding-left: 18px; padding-right: 18px; flex: 0 0 auto; } }

.opts { display: contents; }
.rows .opts > .row { border-bottom: 0; border-top: 1px solid var(--line); }
.opt-chips-row { align-items: start; }
.opt-chips-row .row-label { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; }
.opt-chips-row .v-count { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--faint); font-variant-numeric: tabular-nums; }
.opt-chips { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(0, 0, 0, 0.18); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color 0.15s, background 0.15s, border-color 0.15s; }
.opt-chip i { font-size: 14px; line-height: 1; color: var(--faint); transition: color 0.15s; }
.opt-chip:hover { color: var(--text); background: var(--raise); }
.opt-chip[aria-pressed="true"] { color: var(--text); background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07)); border-color: var(--line-3); }
.opt-chip[aria-pressed="true"] i { color: var(--brand-text); }
.opt-chip.locked { cursor: default; }
.opt-chip.locked:hover { background: rgba(0, 0, 0, 0.18); color: var(--muted); }
.opt-chip.locked[aria-pressed="true"]:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07)); color: var(--text); }
.opt-chip[hidden] { display: none; }
.chip-hint { min-height: 17px; margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--faint); }
.row-label .hint-i { margin-left: 6px; font-size: 13px; color: var(--faint); vertical-align: -1px; }
.ranking li { grid-template-columns: 34px minmax(0, 1fr) repeat(var(--cols, 2), minmax(52px, auto)); }

.ptag .who { gap: 10px; padding: 5px 16px 5px 5px; }
.ptag .av-wrap { position: relative; display: block; width: 40px; height: 40px; flex: none; }
.ptag .av-wrap .avatar { position: absolute; inset: 3px; width: 34px; height: 34px; }
.ptag .timer { position: absolute; inset: 0; width: 40px; height: 40px; transform: rotate(-90deg); pointer-events: none; }
.ptag .timer circle { fill: none; stroke: var(--brand-text); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 116.2; stroke-dashoffset: 116.2; opacity: 0; transition: opacity 0.3s var(--ease); filter: drop-shadow(0 0 4px rgba(var(--brand-rgb), 0.8)); }
.ptag.hold .timer circle { opacity: 1; }
.ptag.late .timer circle { stroke: #ff6a52; }
.ptag .who-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ptag .who-text b { font-size: 15.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.15; }
.ptag .info { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ptag .info:empty { display: none; }
.ptag .info i { font-size: 13px; vertical-align: -1px; }
.ptag .info .chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); color: var(--text); }
.ptag .info .chip.brand { background: rgba(var(--brand-rgb), 0.22); border-color: rgba(var(--brand-text-rgb), 0.55); color: var(--brand-light); }
.ptag .info .chip.gold { background: rgba(255, 195, 92, 0.16); border-color: rgba(255, 195, 92, 0.55); color: #ffe2a8; }
.ptag .info .chip.bad { background: rgba(226, 112, 90, 0.16); border-color: rgba(226, 112, 90, 0.55); color: #ffc9bd; }
.ptag .info .chip.ok { background: rgba(94, 224, 138, 0.14); border-color: rgba(94, 224, 138, 0.5); color: #c8ffd9; }
.ptag .info .muted { color: var(--faint); }
.ptag.hold .who { border-color: rgba(var(--brand-text-rgb), 0.85); background: rgba(14, 10, 12, 0.86); box-shadow: 0 0 22px rgba(var(--brand-rgb), 0.45); }
.ptag.gone .who b { color: var(--muted); }
.ptag.out .who { opacity: 0.6; }
.ptag[data-mood="gold"] .who { border-color: rgba(255, 195, 92, 0.8); box-shadow: 0 0 22px rgba(255, 195, 92, 0.35); }

.my-info { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.my-info b { color: var(--text); font-size: 15px; }
.my-info .chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }
.my-info .chip.brand { border-color: rgba(var(--brand-text-rgb), 0.6); color: var(--brand-light); background: rgba(var(--brand-rgb), 0.18); }
.my-info .chip.gold { border-color: rgba(255, 195, 92, 0.6); color: #ffe2a8; }
.board .center { display: flex; align-items: center; justify-content: center; width: clamp(150px, 30%, 230px); min-width: 0; padding: 0 18px; }
.turn-note { display: flex; min-width: 0; max-width: 100%; white-space: pre; font-size: 10px; font-weight: 600; letter-spacing: 0.16em; line-height: 13px; text-transform: uppercase; color: var(--faint); }
.turn-note b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--muted); }
.turn-note.mine { color: var(--brand-text); }
@media (max-width: 720px) {
  .board .center { width: 28vw; padding: 0 8px; }
  .turn-note { font-size: 9px; letter-spacing: 0.1em; }
  .my-info { gap: 5px; max-width: 100%; font-size: 10px; letter-spacing: 0.04em; }
  .my-info b { font-size: 13px; }
  .my-info .chip { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 1px 6px; font-size: 9px; letter-spacing: 0.06em; }
}

.bottom-stack { position: absolute; left: 50%; bottom: var(--bottom); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(980px, calc(100% - 24px)); pointer-events: none; z-index: 11; }
.bottom-stack .timer { width: 200px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bottom-stack .timer[hidden] { display: none; }
.bottom-stack .timer span { font-size: 12px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); animation: none; }
.bottom-stack .timer i { display: block; width: 100%; height: 3px; background: rgba(255, 255, 255, 0.15); position: relative; overflow: hidden; border-radius: 0; }
.bottom-stack .timer b { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--text); box-shadow: none; transform: none; }
.bottom-stack .timer.low b { background: var(--foul); }
.bottom-stack .timer.low span { color: var(--foul); animation: none; }
.dock { display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.dock:empty { display: none; }
.dock .status { width: max-content; max-width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: 22px; row-gap: 2px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; line-height: 13px; text-transform: uppercase; color: var(--muted); background: var(--hud); border: 1px solid var(--line); border-radius: var(--r); padding: 5px 14px; }
.dock .status.alert { color: var(--foul); }
.dock .dock-bar { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; pointer-events: auto; }
.dock .dock-bar > * { pointer-events: auto; }
.dock .pick { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

.banner { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 12; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.banner .b { opacity: 0; animation: bannerIn 2.2s var(--ease) forwards; }
.banner .b b { display: block; font-size: clamp(38px, 6vw, 74px); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; text-shadow: 0 0 34px rgba(var(--brand-rgb), 0.9), 0 6px 26px rgba(0, 0, 0, 0.7); line-height: 0.95; }
.banner .b small { display: block; margin-top: 8px; font-size: clamp(12px, 1.4vw, 15px); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9); }
.banner .b.gold b { text-shadow: 0 0 34px rgba(255, 195, 92, 0.85), 0 6px 26px rgba(0, 0, 0, 0.7); color: #fff3d6; }
.banner .b.bad b { text-shadow: 0 0 34px rgba(226, 80, 60, 0.85), 0 6px 26px rgba(0, 0, 0, 0.7); }
@keyframes bannerIn { 0% { opacity: 0; transform: scale(0.86); filter: blur(6px); } 14% { opacity: 1; transform: scale(1.02); filter: none; } 22% { transform: scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: scale(1.04) translateY(-10px); } }

#ui3d { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
@keyframes cardIn { from { opacity: 0; transform: translate(-50%, -46%) scale(0.97); } to { opacity: 1; transform: translate(-50%, -50%); } }
.zoom-btn { position: absolute; right: var(--gutter); bottom: var(--bottom); z-index: 11; }
@media (max-width: 760px) {
  .ptag .who-text b { max-width: 90px; font-size: 11.5px; }
  .ptag .info { font-size: 10.5px; }
  .ptag .av-wrap { width: 32px; height: 32px; }
  .ptag .av-wrap .avatar { width: 26px; height: 26px; }
  .ptag .timer { width: 32px; height: 32px; }
}
#ui3d .badges { position: absolute; inset: 0; }
.cbadge { position: absolute; left: 0; top: 0; min-width: 24px; padding: 2px 7px; border-radius: 999px; background: rgba(12, 10, 9, 0.88); border: 1px solid rgba(var(--brand-text-rgb), 0.6); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.25; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55); transition: opacity 0.2s var(--ease); will-change: transform; }
.cbadge.hot { background: rgba(var(--brand-rgb), 0.92); border-color: rgba(255, 255, 255, 0.7); }
.cbadge[hidden] { display: none; }
.round-board { z-index: 24; padding: var(--top) var(--gutter) var(--bottom); background: radial-gradient(90% 90% at 50% 45%, rgba(4, 6, 12, 0.45), rgba(3, 4, 8, 0.72)); pointer-events: none; animation: rbIn 0.3s var(--ease); transition: opacity 0.3s var(--ease); }
@keyframes rbIn { from { opacity: 0; } to { opacity: 1; } }
.round-board.out { opacity: 0; }
.round-board .modal { width: min(560px, 100%); }
.round-board .over-head h2 { font-size: clamp(40px, 6.4vw, 60px); }
.round-board .rb-chip { flex: none; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.title-chip { margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.title-chip.t-president { color: #ffe2a8; border-color: rgba(255, 195, 92, 0.6); background: rgba(255, 195, 92, 0.12); }
.title-chip.t-vice { color: var(--brand-light); border-color: rgba(var(--brand-text-rgb), 0.5); }
.title-chip.t-bottom { color: #ffc9bd; border-color: rgba(226, 112, 90, 0.55); }
.title-chip.t-subbottom { color: #f0b8aa; border-color: rgba(226, 112, 90, 0.35); }
.labels3d { position: absolute; inset: 0; pointer-events: none; }
.lbl3d { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; background: rgba(10, 9, 8, 0.8); border: 1px solid var(--line-2); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.35; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease); will-change: transform; }
.lbl3d.in { opacity: 1; }
.lbl3d.out { opacity: 0 !important; }
.lbl3d i { font-size: 13px; line-height: 1; }
.lbl3d small { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lbl3d.big { padding: 4px 13px; font-size: 15px; }
.lbl3d.brand { background: rgba(var(--brand-rgb), 0.28); border-color: rgba(var(--brand-text-rgb), 0.6); color: var(--brand-light); }
.lbl3d.gold { background: rgba(70, 48, 10, 0.86); border-color: rgba(255, 195, 92, 0.7); color: #ffe2a8; box-shadow: 0 0 18px rgba(255, 195, 92, 0.35); }
.lbl3d.ok { background: rgba(10, 40, 22, 0.86); border-color: rgba(94, 224, 138, 0.6); color: #c8ffd9; }
.lbl3d.bad { background: rgba(48, 14, 10, 0.86); border-color: rgba(226, 112, 90, 0.6); color: #ffc9bd; }
.lbl3d.mute { color: var(--muted); }
.lbl3d.pop { animation: lblPop 0.45s var(--ease); }
@keyframes lblPop { 0% { transform-origin: 50% 50%; filter: brightness(1.8); } 100% { filter: none; } }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; pointer-events: auto; }
.chip-btn { --c: #2449b8; --s: #f4efe6; --i: #fff; position: relative; width: 50px; height: 50px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: radial-gradient(circle at 50% 50%, var(--c) 0 52%, transparent 53%), repeating-conic-gradient(from 11.25deg, var(--s) 0 22.5deg, var(--c) 22.5deg 45deg); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35) inset, 0 8px 18px -6px rgba(0, 0, 0, 0.8); color: var(--i); font: 600 14px/1 var(--font); letter-spacing: 0.02em; transition: transform 0.15s var(--ease), filter 0.15s var(--ease), opacity 0.15s; }
.chip-btn::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--s) 75%, transparent); pointer-events: none; }
.chip-btn:hover { transform: translateY(-3px); filter: brightness(1.12); }
.chip-btn:active { transform: translateY(0) scale(0.96); }
.chip-btn:disabled { opacity: 0.32; cursor: default; transform: none; filter: grayscale(0.4); }
.chip-btn[data-v="5"] { --c: #b3262f; }
.chip-btn[data-v="10"] { --c: #2449b8; }
.chip-btn[data-v="25"] { --c: #1d7a45; }
.chip-btn[data-v="100"] { --c: #18191d; --s: #d9b25a; --i: #f1d48d; }
.chip-btn[data-v="500"] { --c: #5d2a9c; }
.chip-btn[data-v="1000"] { --c: #c98a1c; --s: #1b1306; --i: #1b1306; }
.bet-amount { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 92px; height: 50px; padding: 0 14px; border-radius: var(--r); background: var(--hud); border: 1px solid var(--line-2); pointer-events: auto; }
.bet-amount b { font-size: 20px; font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1.1; }
.bet-amount small { font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 760px) {
  .chip-btn { width: 42px; height: 42px; font-size: 12px; }
  .chip-btn::after { inset: 7px; }
  .bet-amount { min-width: 74px; height: 42px; }
  .bet-amount b { font-size: 17px; }
  .lbl3d { font-size: 11.5px; padding: 2px 9px; }
}
