:root {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #EDEFF2;
  --ink: #12151C;
  --muted: #5E6676;
  --line: #E2E5EA;
  --accent: #15A04A;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(21, 160, 74, .12);
  --sun: #E9A400;
  --star: #E39B00;
  --screen: #0A0C11;
  --shadow: 0 1px 2px rgba(18, 21, 28, .05), 0 10px 28px rgba(18, 21, 28, .08);
  --f-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --maxw: 1280px;
  --maxh: min(70vh, 660px);
  --side-w: 236px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0D12; --surface: #13161D; --surface-2: #1B1F28; --ink: #E9ECF2; --muted: #8A92A3;
    --line: #232833; --accent: #8BE36E; --accent-ink: #0B120A; --accent-soft: rgba(139, 227, 110, .12); --sun: #F5C451; --star: #F5C451;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0D12; --surface: #13161D; --surface-2: #1B1F28; --ink: #E9ECF2; --muted: #8A92A3;
  --line: #232833; --accent: #8BE36E; --accent-ink: #0B120A; --accent-soft: rgba(139, 227, 110, .12); --sun: #F5C451; --star: #F5C451;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--f-body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 23px/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; transform: rotate(-6deg); }
.logo-mark i { width: 14px; height: 14px; border-radius: 4px; background: var(--sun); display: block; box-shadow: 0 0 0 3px var(--accent-ink) inset; }
.logo b { color: var(--accent); font-weight: 800; }
.search { flex: 1; max-width: 340px; margin-left: auto; position: relative; }
.search input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 16px 0 40px; font: 500 15px var(--f-body); }
.search input::placeholder { color: var(--muted); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }

.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 14px var(--f-body); cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .dot { width: 9px; height: 9px; border-radius: 3px; background: var(--c, var(--accent)); }
.chip .n { font: 500 12px var(--f-mono); opacity: .6; }

.eyebrow { font: 600 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: 700 15px var(--f-body); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn svg { width: 18px; height: 18px; }

.section { padding-block: 22px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font: 800 25px/1.1 var(--f-display); letter-spacing: -.02em; margin: 0; }
.sec-head .meta { color: var(--muted); font: 500 13px var(--f-mono); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.slider { position: relative; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 17vw, 200px); gap: 16px; overflow-x: auto; padding: 6px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll > * { scroll-snap-align: start; }
.sl-btn { position: absolute; top: 38%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s ease, background .15s ease; }
.sl-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translateY(-50%) scale(1.06); }
.sl-btn svg { width: 18px; height: 18px; }
.sl-btn.prev { left: -14px; } .sl-btn.next { right: -14px; }
@media (hover: none) { .sl-btn { display: none; } }
.card { position: relative; display: flex; flex-direction: column; text-decoration: none; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; min-width: 0; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .thumb { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--screen); }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card h3 { font: 700 16px/1.2 var(--f-display); margin: 0; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.card .sub .dot { width: 8px; height: 8px; border-radius: 3px; background: var(--c); flex: none; }
.card .sub .best { margin-left: auto; font: 500 12px var(--f-mono); }
.fav { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(13, 16, 36, .55); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; }
.card:hover .fav, .fav[aria-pressed="true"], .fav:focus-visible { opacity: 1; }
.fav[aria-pressed="true"] { color: var(--sun); }
.fav svg { width: 17px; height: 17px; }
@media (hover: none) { .fav { opacity: 1; } }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }

.ad-slot { display: grid; place-items: center; text-align: center; border-radius: 14px; color: var(--muted); font: 500 12px var(--f-mono); letter-spacing: .04em; overflow: hidden; }
.ad-slot.placeholder { border: 1px dashed var(--line); background: repeating-linear-gradient(-45deg, transparent 0 10px, var(--surface-2) 10px 11px); }
.ad-slot.placeholder::before { content: attr(data-label); }
.ad-leader { min-height: 90px; width: 100%; max-width: 728px; margin: 6px auto; }
.ad-box { width: 100%; max-width: 300px; min-height: 250px; margin: 0 auto; }
.ad-slot:empty:not(.placeholder) { display: none; }

.crumbs { display: flex; align-items: center; gap: 8px; padding-block: 18px 10px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; font-weight: 600; color: var(--ink); }
.crumbs a:hover { color: var(--accent); }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.cabinet { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; min-width: 0; }
.cab-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cab-head h1 { font: 800 22px/1.1 var(--f-display); margin: 0; letter-spacing: -.02em; }
.genre-pill { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--f-body); padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); text-decoration: none; }
.genre-pill .dot { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.scores { display: flex; gap: 18px; margin-left: auto; font-variant-numeric: tabular-nums; }
.scores div { display: flex; flex-direction: column; line-height: 1.1; min-width: 48px; }
.scores small { font: 600 10px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.scores b { font: 700 19px var(--f-mono); }
.cab-tools { display: flex; gap: 6px; }
.cab-tools .icon-btn { width: 36px; height: 36px; border-radius: 10px; }
.screen-wrap { background: var(--screen); position: relative; }
.screen { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 14px; min-height: 320px; gap: 10px; }
.gcanvas { display: block; width: 100%; max-width: min(100%, calc(var(--maxh) * var(--ar))); aspect-ratio: var(--ar); height: auto; border-radius: 10px; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.status-line { color: #C9CEEA; font: 600 14px var(--f-body); min-height: 20px; text-align: center; }
.status-line:empty { display: none; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(9, 11, 26, .72); backdrop-filter: blur(3px); z-index: 4; padding: 20px; overflow-y: auto; overscroll-behavior: contain; }
.overlay > .ov-card { margin-block: auto; }
.ov-card { background: var(--surface); color: var(--ink); border-radius: 20px; padding: 24px; width: min(360px, 100%); text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.ov-card h2 { font: 800 30px/1.05 var(--f-display); margin: 0 0 6px; letter-spacing: -.02em; text-wrap: balance; }
.ov-card p { margin: 0 0 14px; color: var(--muted); }
.ov-score { font: 700 44px/1 var(--f-mono); margin: 6px 0 4px; }
.ov-best { display: inline-block; background: var(--sun); color: #1A1400; font: 800 12px var(--f-display); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; transform: rotate(-3deg); }
.ov-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.start { position: relative; z-index: 3; display: grid; place-items: center; padding: 28px 20px; min-height: 360px; background: var(--screen); }
.screen:empty { display: none; }
.start-in { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; color: #E8EBF8; max-width: 440px; }
.start img { width: min(340px, 80%); border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); transform: rotate(-2deg); }
.start p { margin: 0; color: #B8BEDD; }
.play-big { height: 54px; padding: 0 30px; border-radius: 16px; border: 0; background: var(--sun); color: #1A1400; font: 800 19px var(--f-display); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 6px 0 #B98500; transition: transform .1s; }
.play-big:active { transform: translateY(3px); box-shadow: 0 3px 0 #B98500; }
.play-big svg { width: 20px; height: 20px; }
.vpad { display: none; justify-content: space-between; align-items: center; padding: 6px 16px 16px; gap: 16px; user-select: none; -webkit-user-select: none; touch-action: none; }
.show-pad .vpad { display: flex; }
.vpad .dpad { display: grid; grid-template-columns: repeat(3, 54px); grid-template-rows: repeat(3, 54px); gap: 4px; }
.vpad .lr { display: flex; gap: 10px; }
.vpad .abtns { display: flex; gap: 12px; align-items: center; }
.vbtn { width: 54px; height: 54px; border-radius: 14px; border: 0; background: #262B4D; color: #E8EBF8; font: 800 16px var(--f-display); display: grid; place-items: center; touch-action: none; }
.vbtn.round { width: 64px; height: 64px; border-radius: 50%; background: #3046F5; }
.vbtn.round.b { background: #4A4F78; width: 54px; height: 54px; }
.vbtn.on { filter: brightness(1.5); }
.vbtn svg { width: 22px; height: 22px; }
.about-game { padding: 18px 18px 20px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; border-top: 1px solid var(--line); }
.about-game h2 { font: 700 15px var(--f-display); margin: 0 0 6px; }
.about-game p { margin: 0; color: var(--muted); max-width: 62ch; }
.keys { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.keys li { display: flex; gap: 10px; align-items: baseline; }
.keys kbd { font: 600 12px var(--f-mono); background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.side h2 { font: 800 18px var(--f-display); margin: 0; }
.mini-list { display: grid; gap: 10px; }
.mini { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; text-decoration: none; padding: 6px; border-radius: 12px; }
.mini:hover { background: var(--surface); }
.mini img { width: 96px; aspect-ratio: 4 / 3; border-radius: 9px; display: block; background: var(--screen); }
.mini b { font: 700 15px var(--f-display); display: block; }
.mini span { font-size: 12px; color: var(--muted); }
.cabinet:fullscreen { border-radius: 0; display: flex; flex-direction: column; height: 100%; --maxh: calc(100vh - 170px); }
.cabinet:fullscreen .screen-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cabinet:fullscreen .about-game { display: none; }

.page { max-width: 70ch; padding-block: 28px; }
.page h1 { font: 800 40px/1.05 var(--f-display); letter-spacing: -.03em; margin: 0 0 14px; }
.page h2 { font: 700 20px var(--f-display); margin: 24px 0 6px; }
.page p, .page li { color: var(--muted); }
.foot { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 24px; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; font-weight: 600; color: var(--ink); }
.foot a:hover { color: var(--accent); }


.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2BC46A; box-shadow: 0 0 0 0 rgba(43, 196, 106, .6); animation: pulse 2s infinite; display: inline-block; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #2BC46A; display: inline-block; box-shadow: 0 0 0 0 rgba(43, 196, 106, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43, 196, 106, .55); } 70% { box-shadow: 0 0 0 8px rgba(43, 196, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 196, 106, 0); } }
.lang { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; flex: none; }
.lang button { border: 0; background: var(--surface); height: 38px; padding: 0 9px; font: 700 12px var(--f-mono); cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.player-chip { display: inline-flex; align-items: center; gap: 7px; height: 40px; max-width: 170px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: 600 14px var(--f-body); cursor: pointer; flex: none; }
.player-chip:hover { background: var(--surface-2); }
.player-chip svg { width: 17px; height: 17px; flex: none; color: var(--accent); }
.player-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.panel-head h2, .panel-head h3 { display: flex; align-items: center; gap: 8px; font: 800 18px var(--f-display); margin: 0; letter-spacing: -.01em; }
.panel-head svg { width: 18px; height: 18px; color: #E0A100; }
.panel-head .meta { font: 500 12px var(--f-mono); color: var(--muted); text-decoration: none; }
.panel-head .meta.link:hover { color: var(--accent); }
.board-name { margin: -4px 0 8px; font: 600 12px var(--f-mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.lb-table { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.lb-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg); min-height: 40px; }
.lb-row.me { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); box-shadow: inset 0 0 0 2px var(--accent); }
.lb-rank { display: inline-flex; align-items: center; gap: 4px; font: 700 14px var(--f-mono); color: var(--muted); }
.lb-rank svg { width: 15px; height: 15px; }
.top1 .lb-rank { color: #D79A00; } .top2 .lb-rank { color: #8E9AAF; } .top3 .lb-rank { color: #C0723A; }
.lb-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name em { font-style: normal; font: 600 11px var(--f-mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.lb-score { font: 700 15px var(--f-mono); text-align: right; white-space: nowrap; }
.lb-date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.lb-crowns { display: inline-flex; align-items: center; gap: 3px; font: 600 12px var(--f-mono); color: #D79A00; }
.lb-crowns svg { width: 13px; height: 13px; }
.lb-gap { text-align: center; color: var(--muted); line-height: 1; }
.lb-del { border: 0; background: transparent; color: var(--muted); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.lb-del:hover { background: var(--surface-2); color: #E5484D; }
.lb-del svg { width: 14px; height: 14px; }
.lb-empty { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.lb-empty svg { width: 26px; height: 26px; flex: none; color: #E0A100; }
.lb-empty p, .muted-note { margin: 0; }
.muted-note { color: var(--muted); font-size: 13px; margin-top: 8px; }
.mode-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--sun) 22%, var(--surface)); font-size: 14px; }
.live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.live-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-decoration: none; padding: 6px; border-radius: 12px; background: var(--bg); }
.live-item:hover { background: var(--surface-2); }
.live-item img { width: 52px; aspect-ratio: 4 / 3; border-radius: 8px; display: block; }
.li-body { display: flex; flex-direction: column; min-width: 0; }
.li-top { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.mono { font-family: var(--f-mono); }
.name-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--sun); color: #1A1400; font: 800 14px var(--f-display); cursor: pointer; max-width: 220px; }
.name-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name-btn svg { width: 16px; height: 16px; flex: none; }
.name-btn.big { height: 44px; font-size: 18px; padding: 0 16px; }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.small svg { width: 14px; height: 14px; }
.card-top { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 56px); background: rgba(13, 16, 36, .7); color: #FFD45E; font: 700 11px var(--f-body); padding: 4px 8px; border-radius: 999px; }
.card-top svg { width: 12px; height: 12px; flex: none; }
.card-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.card-top em { font-style: normal; color: #FFD45E; opacity: .85; white-space: nowrap; flex: none; }
.card-pop .cp-genre svg { width: 13px; height: 13px; color: var(--sun); }
.card-pop .cp-recs dd { gap: 8px; min-width: 0; }
.card-pop .cp-recs dd b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.card-pop .cp-recs dt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-pop .cp-more { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

.lb-page { padding-block: 26px 10px; }
.lb-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.lb-hero h1 { font: 800 clamp(38px, 6vw, 64px)/1 var(--f-display); letter-spacing: -.035em; margin: 8px 0 10px; }
.lb-hero p { color: var(--muted); max-width: 60ch; margin: 0; }
.lb-me-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.lb-mode { font: 600 12px var(--f-mono); padding: 3px 8px; border-radius: 999px; }
.lb-mode.on { background: color-mix(in srgb, #2BC46A 18%, var(--surface)); color: #1D8A4A; }
.lb-mode.off { background: var(--surface-2); color: var(--muted); }
.lb-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.lb-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lb-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font: 600 13px var(--f-body); color: var(--muted); }
.field input, .field select { height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 12px; font: 600 15px var(--f-body); min-width: 0; }
.field.inline { flex: 1 1 220px; }
.lb-board-head { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 12px; padding: 10px; border-radius: 14px; background: var(--bg); }
.lb-board-head img { width: 80px; aspect-ratio: 4 / 3; border-radius: 10px; display: block; }
.lb-board-head b { display: block; font: 800 17px var(--f-display); }
.lb-board-head span { font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; height: 40px; padding: 0 14px; font: 700 14px var(--f-body); cursor: pointer; color: var(--ink); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.seg.big { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.seg.big button { color: #E8EBF8; height: 44px; padding: 0 18px; }
.seg.big button + button { border-left-color: rgba(255, 255, 255, .2); }
.seg.big button[aria-pressed="true"] { background: var(--sun); color: #1A1400; }

.lv-pill { font: 700 12px var(--f-mono); padding: 4px 10px; border-radius: 999px; background: var(--sun); color: #1A1400; }
.start-in.wide { max-width: 640px; width: 100%; }
.star-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; }
.star-lv { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; padding: 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #E8EBF8; cursor: pointer; min-width: 0; }
.star-lv:hover { background: rgba(255, 255, 255, .1); }
.star-lv[aria-pressed="true"] { background: #F0468E; border-color: #F0468E; }
.star-lv .stars { font-size: 10px; letter-spacing: -1px; color: #FFD45E; white-space: nowrap; overflow: hidden; max-width: 100%; }
.star-lv .stars i { font-style: normal; color: rgba(255, 255, 255, .2); }
.star-lv b { font: 700 13px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.star-lv .lv-face { width: 18px; height: 18px; vertical-align: -4px; margin-right: 5px; }
.lv-meta { font: 500 10px var(--f-mono); color: rgba(232, 235, 248, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ov-sub { margin: 0 0 10px !important; }
.ov-rank { margin: 4px 0 16px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.ov-rank.record { background: var(--sun); color: #1A1400; font-weight: 700; }
.name-inline { border: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 3px; font: 600 13px var(--f-body); cursor: pointer; opacity: .8; }

.dialog { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(9, 11, 26, .55); padding: 20px; }
.dlg-card { width: min(420px, 100%); background: var(--surface); color: var(--ink); border-radius: 20px; padding: 22px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 12px; }
.dlg-card h2 { font: 800 24px var(--f-display); margin: 0; }
.dlg-card p { margin: 0; color: var(--muted); }
.hint { font-size: 13px; }
.hint.bad { color: #E5484D; }
.toasts { position: fixed; z-index: 60; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--bg); box-shadow: 0 12px 40px rgba(0, 0, 0, .3); font: 600 14px/1.4 var(--f-body); transform: translateY(16px); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.toast.in { transform: none; opacity: 1; }
.toast.record { background: var(--sun); color: #1A1400; }
.toast-ic svg { width: 22px; height: 22px; display: block; }

@media (max-width: 980px) { .lb-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .star-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-row { grid-template-columns: 36px minmax(0, 1fr) auto auto; }
  .lb-date { display: none; }
  .player-chip { max-width: 120px; }
  .lb-board-head { grid-template-columns: 60px minmax(0, 1fr); }
  .lb-board-head img { width: 60px; }
  .lb-board-head .btn { grid-column: 1 / -1; justify-self: start; }
}

.link-more { text-decoration: none; font: 600 13px var(--f-mono); color: var(--accent); }
.sec-head h2 svg, .eyebrow svg { width: 20px; height: 20px; color: #F0602A; vertical-align: -3px; }
.eyebrow svg { width: 14px; height: 14px; vertical-align: -2px; }
.trend-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trend-card { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; min-width: 0; transition: transform .15s ease, box-shadow .15s ease; }
.trend-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.trend-card img { width: 110px; aspect-ratio: 4 / 3; border-radius: 10px; display: block; }
.trend-card .trend-rank { position: absolute; left: -6px; top: -8px; }
.trend-rank { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: var(--bg); font: 800 15px var(--f-display); z-index: 1; }
.trend-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.trend-body b { font: 700 16px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-body span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.trend-body svg { width: 14px; height: 14px; color: #F0602A; flex: none; }
.trend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.trend-item { display: grid; grid-template-columns: 34px 80px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--bg); text-decoration: none; }
.trend-item:hover { background: var(--surface-2); }
.trend-item img { width: 80px; aspect-ratio: 4 / 3; border-radius: 9px; display: block; }
.trend-list li:nth-child(1) .trend-rank { background: #F0602A; color: #fff; }
.trend-list li:nth-child(2) .trend-rank, .trend-list li:nth-child(3) .trend-rank { background: color-mix(in srgb, #F0602A 55%, var(--ink)); color: #fff; }
.trend-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.trend-main b { font: 700 16px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.trend-meta .dot { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.trend-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.trend-bar i { display: block; height: 100%; background: linear-gradient(90deg, #FFB547, #F0602A); border-radius: 3px; min-width: 2px; }
.trend-count { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.trend-count b { font: 700 18px var(--f-mono); }
.trend-count small { font-size: 11px; color: var(--muted); }
@media (max-width: 860px) { .trend-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trend-row { grid-template-columns: minmax(0, 1fr); } .trend-item { grid-template-columns: 30px 60px minmax(0, 1fr) auto; } .trend-item img { width: 60px; } }

@media (max-width: 980px) {
  .game-layout { grid-template-columns: minmax(0, 1fr); }
  .side { display: grid; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .about-game { grid-template-columns: minmax(0, 1fr); }
  .search { max-width: none; }
  .logo-text { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .scores { margin-left: 0; width: 100%; order: 3; }
  .cab-tools { margin-left: auto; }
  .screen { padding: 8px; }
  :root { --maxh: 62vh; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.stars-v { position: relative; display: inline-block; color: var(--line); font-size: 18px; line-height: 1; letter-spacing: 1px; white-space: nowrap; vertical-align: middle; }
.stars-v > span { display: inline; font-size: inherit; color: inherit; gap: 0; }
.stars-v > .fg { position: absolute; left: 0; top: 0; display: block; overflow: hidden; color: var(--star); }
.stars-v.sm { font-size: 13px; letter-spacing: 0; }
.trend-body .stars-v { display: inline-block; }
.rate-pill { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 12px var(--f-mono); cursor: pointer; }
.rate-pill:hover { background: var(--surface-2); }
.rate-pill i { font-style: normal; color: var(--star); font-size: 14px; }
.rate-pill span { color: var(--muted); font-weight: 500; }
.card .sub .rate { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font: 600 12px var(--f-mono); color: var(--ink); }
.card .sub .rate i { font-style: normal; color: var(--star); }
.card .sub .rate ~ .best { margin-left: 8px; }
.card .sub .rate ~ .best:empty { display: none; }
.reviews .rv-grid { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 28px; align-items: start; }
.rv-sum { display: flex; flex-direction: column; gap: 12px; }
.rv-avg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-avg b { font: 800 42px/1 var(--f-display); letter-spacing: -.02em; }
.rv-avg > span:last-child:not(.stars-v) { color: var(--muted); font-size: 13px; flex-basis: 100%; }
.rv-dist { display: flex; flex-direction: column; gap: 5px; }
.rv-bar { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 8px; align-items: center; font: 600 12px var(--f-mono); color: var(--muted); }
.rv-bar i { font-style: normal; color: var(--star); margin-left: 2px; }
.rv-bar .bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.rv-bar .bar em { display: block; height: 100%; background: var(--star); border-radius: inherit; }
.rv-bar .n { text-align: right; }
.rv-form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rv-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rv-pick .lbl { font: 700 14px var(--f-body); }
.rv-stars { display: inline-flex; }
.rv-stars button { border: 0; background: transparent; font-size: 32px; line-height: 1; padding: 2px 3px; color: var(--line); cursor: pointer; transition: transform .1s ease, color .1s ease; border-radius: 8px; }
.rv-stars button.on { color: var(--star); }
.rv-stars button:hover { transform: scale(1.12); }
.rv-stars button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rv-form textarea { width: 100%; min-height: 84px; resize: vertical; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 10px 12px; font: 15px/1.45 var(--f-body); }
.rv-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.rv-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-left { font: 500 12px var(--f-mono); color: var(--muted); margin-left: auto; }
.rv-actions .name-inline { color: var(--muted); }
.rv-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.rv-list li { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.rv-list li.me { background: color-mix(in srgb, var(--accent) 7%, transparent); padding-inline: 12px; border-radius: 12px; border-bottom-color: transparent; margin-top: 6px; }
.rv-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.rv-meta b { font-weight: 700; overflow-wrap: anywhere; }
.rv-meta em { font: 600 11px var(--f-mono); font-style: normal; color: var(--accent); }
.rv-meta time { font: 500 12px var(--f-mono); color: var(--muted); margin-left: auto; }
.rv-list p { margin: 6px 0 0; max-width: 72ch; overflow-wrap: anywhere; }
.reviews [data-rvmore] { margin-top: 12px; }
.rated-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rated-list a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border-radius: 12px; text-decoration: none; color: inherit; }
.rated-list a:hover { background: var(--surface-2); }
.rated-list img { width: 56px; aspect-ratio: 4 / 3; border-radius: 8px; display: block; }
.rated-list b { display: block; font: 700 14px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rated-line { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--f-mono); color: var(--muted); }
@media (max-width: 700px) { .reviews .rv-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

.player-chip { position: relative; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #E5484D; color: #fff; font: 700 11px/20px var(--f-mono); text-align: center; font-style: normal; box-shadow: 0 0 0 2px var(--surface); }
.friend-btn { background: transparent; color: #E8EBF8; border-color: rgba(255, 255, 255, .28); }
.friend-btn:hover { background: rgba(255, 255, 255, .1); }
.friend-btn svg { width: 18px; height: 18px; }
.toast { pointer-events: auto; flex-wrap: wrap; }
.toast-tx { flex: 1 1 200px; min-width: 0; }
.toast-act { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.toast.invite { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.toast.invite .toast-ic svg { color: var(--accent); }
.toast-x { border: 0; background: transparent; color: inherit; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; opacity: .7; }
.toast-x:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.toast-x svg { width: 14px; height: 14px; }
.sub-h { font: 700 13px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.friend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.friend-list li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); min-width: 0; }
.friend-list li:last-child { border-bottom: 0; }
.fl-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fl-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-main span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-code { font-size: 12px; color: var(--muted); }
.fl-thumb { width: 48px; aspect-ratio: 4 / 3; border-radius: 8px; flex: none; }
.dot-on { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.dot-on.on { background: #2FBF71; box-shadow: 0 0 0 3px color-mix(in srgb, #2FBF71 25%, transparent); }
.code-card { align-items: stretch; min-width: 200px; }
.big-code { font-size: 34px; letter-spacing: .14em; color: var(--ink); }
.add-friend { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.add-friend .field input { text-transform: uppercase; letter-spacing: .12em; font-family: var(--f-mono); }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); min-height: 1em; }
.hint.bad { color: #E5484D; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.stat b { font: 800 24px var(--f-display); }
.stat span { font-size: 12px; color: var(--muted); }
.acc p { margin: 0 0 10px; color: var(--muted); }
.acc-form { display: flex; flex-direction: column; gap: 10px; }
.acc-form .field input { background: var(--bg); }
.friend-dlg { width: min(460px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.friend-dlg .mode-note { margin: 0; }
.wait-ring { width: 54px; height: 54px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .15); border-top-color: var(--sun); animation: spin 1s linear infinite; }
.wait-t { font: 800 22px var(--f-display); color: #fff !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wait-ring { animation-duration: 3s; } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .big-code { font-size: 28px; } }

.lvl { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 8px; font: 800 12px var(--f-mono); font-style: normal; background: #C2793E; color: #fff; }
.rank-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: color-mix(in srgb, var(--rc) 18%, transparent); color: var(--ink); font: 700 12px var(--f-body); white-space: nowrap; }
.rank-badge b { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 999px; background: var(--rc); color: var(--ri); font: 800 12px var(--f-mono); }
.rank-badge.big { padding: 6px 18px 6px 6px; font-size: 15px; gap: 10px; }
.rank-badge.big b { min-width: 58px; height: 58px; font-size: 24px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--rc) 35%, transparent); }
.level-card { margin-bottom: 18px; }
.lc-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.lc-main { flex: 1 1 260px; min-width: 0; }
.lc-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.lc-row b { font: 800 22px var(--f-display); }
.lc-row span { font: 600 13px var(--f-mono); color: var(--muted); }
.xp-bar { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 8px 0 6px; }
.xp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--star)); }
.lc-streak { display: flex; flex-direction: column; align-items: center; padding: 10px 16px; border-radius: 14px; background: var(--surface-2); }
.lc-streak b { font: 800 26px var(--f-display); }
.lc-streak span { font-size: 12px; color: var(--muted); }
.lc-streak small { font: 600 11px var(--f-mono); color: var(--muted); }
.stat-grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lb-mainstack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ach-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ach-grid li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); opacity: .62; min-width: 0; }
.ach-grid li.on { opacity: 1; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--star) 60%, transparent); }
.ach-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--surface); color: var(--muted); }
.ach-grid li.on .ach-ic { background: var(--star); color: #1B1E2E; }
.ach-ic svg { width: 18px; height: 18px; }
.ach-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ach-t b { font-size: 14px; }
.ach-t span { font-size: 12px; color: var(--muted); }
.ach-p { font: 600 11px var(--f-mono); color: var(--muted); white-space: nowrap; }
.ov-xp { display: inline-block; margin: 6px 0 2px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 210, 63, .16); color: #FFD23F; font: 700 13px var(--f-mono); }
@media (max-width: 760px) { .stat-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.gift { position: relative; }
.chip-av { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; padding: 2px; font-size: 15px; line-height: 1; }
.chip-av::before { content: none; }
.av { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fr); padding: 2px; vertical-align: middle; flex: none; }
.av > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--surface-2); font-size: 14px; line-height: 1; }
.av.big { width: 96px; height: 96px; padding: 4px; }
.av.big > span { font-size: 52px; }
.prof-banner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 26px; border-radius: 22px; background: var(--bg); margin: 8px 0 18px; color: var(--ink); }
.prof-banner[style*="gradient"] { color: #fff; }
.prof-banner[style*="gradient"] .eyebrow { color: rgba(255,255,255,.85); }
.prof-banner h1 { margin: 2px 0 8px; font: 800 clamp(30px, 5vw, 54px)/1 var(--f-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.prof-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.prof-banner .code-card { background: var(--surface); color: var(--ink); }
.tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.task.done:not(.claimed) { box-shadow: inset 0 0 0 2px var(--star); }
.task.claimed { opacity: .6; }
.task-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.task-main span { font: 600 12px var(--f-mono); color: var(--muted); }
.task-ok { font: 700 13px var(--f-body); color: #2FBF71; white-space: nowrap; }
.xp-bar.thin { height: 7px; margin: 2px 0; }
.wheel-panel { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wheel-panel canvas { width: min(280px, 100%); height: auto; aspect-ratio: 1; }
.cos-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cos { position: relative; border: 2px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 6px; min-width: 44px; min-height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.cos.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.cos.locked { opacity: .45; cursor: not-allowed; }
.cos-lock { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; color: var(--muted); font-style: normal; }
.cos-lock svg { width: 14px; height: 14px; }
.cos-av { font-size: 24px; line-height: 1; }
.cos-bg { display: block; width: 56px; height: 30px; border-radius: 8px; }
.cos-ti { font: 700 12px var(--f-body); white-space: nowrap; }
.country-sel { width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 15px var(--f-body); }
.keys-t { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
.keys-t td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
kbd { display: inline-block; min-width: 28px; text-align: center; padding: 3px 7px; border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--surface-2); font: 700 12px var(--f-mono); color: var(--ink); }
.badge.inline { position: static; box-shadow: none; display: inline-block; margin-left: auto; }
.ph-links { display: flex; gap: 6px; flex-wrap: wrap; }
.lb-page.narrow { max-width: 760px; }
.chat-layout { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 16px; align-items: start; }
.chat-layout > * { min-width: 0; }
.friend-list.chats li { padding: 0; }
.friend-list.chats button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 6px; border-radius: 10px; cursor: pointer; }
.friend-list.chats li.on button, .friend-list.chats button:hover { background: var(--surface-2, rgba(127,127,127,.1)); }
.chat-panel { display: flex; flex-direction: column; min-height: 420px; }
.thread { flex: 1; overflow-y: auto; max-height: 56vh; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 12px; }
.msg { max-width: 78%; align-self: flex-start; background: var(--surface-2, rgba(127,127,127,.12)); border-radius: 14px 14px 14px 4px; padding: 8px 12px; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-radius: 14px 14px 4px 14px; }
.msg p { margin: 0; }
.msg time { display: block; font-size: 11px; opacity: .65; margin-top: 3px; }
.chat-form { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.chat-form input { flex: 1 1 180px; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.chal-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.chal-card b { display: flex; align-items: center; gap: 6px; }
.chal-card b svg { width: 16px; height: 16px; flex: none; }
.chal-card.win b::after { content: ' 🏆'; }
.ov-chal { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2, rgba(127,127,127,.12)); font-weight: 600; }
.ov-chal.win { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.fl-thumb { width: 44px; height: 30px; border-radius: 6px; object-fit: cover; flex: none; }
.friend-dlg { max-height: 80vh; overflow-y: auto; }
.news-list { display: grid; gap: 14px; }
.panel.news time { font-size: 13px; opacity: .7; }
.panel.news h2 { margin: 4px 0 6px; text-wrap: balance; }
.panel.news p { margin: 0; max-width: 65ch; line-height: 1.55; }
.rp-text { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; resize: vertical; }
@media (max-width: 720px) { .chat-layout { grid-template-columns: 1fr; } .thread { max-height: 50vh; } }

.stat-grid + .lb-table { margin-top: 12px; }

.shell { background: linear-gradient(90deg, var(--surface) calc(var(--side-w) - 1px), var(--line) calc(var(--side-w) - 1px) var(--side-w), transparent var(--side-w)); display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "side top" "side main" "side foot"; min-height: 100vh; }
.sidebar { grid-area: side; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 2px; padding: 18px 12px 20px; background: transparent; }
.sidebar .logo { padding: 2px 10px 18px; }
.top { grid-area: top; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
#view { grid-area: main; min-width: 0; }
.foot { grid-area: foot; background: transparent; }
.top-in { max-width: var(--maxw); margin: 0 auto; padding: 12px max(24px, env(safe-area-inset-right, 0px)) 12px max(24px, env(safe-area-inset-left, 0px)); gap: 10px; }
.top .logo { display: none; }
.wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.search { margin-left: 0; max-width: 460px; margin-right: auto; }
.search input { height: 42px; background: var(--surface); border-color: var(--line); border-radius: 12px; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.logo { font: 800 21px/1 var(--f-display); letter-spacing: -.03em; gap: 10px; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); transform: none; }
.logo-mark i { width: 12px; height: 12px; border-radius: 50% 50% 50% 4px; background: var(--accent-ink); box-shadow: none; transform: rotate(-45deg); }

.snav { display: flex; flex-direction: column; gap: 2px; }
.snav a { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font: 600 14.5px var(--f-body); }
.snav a svg { width: 19px; height: 19px; flex: none; }
.snav a:hover { background: var(--surface-2); color: var(--ink); }
.snav a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); }
.snav a[aria-current="page"] svg { color: var(--accent); }
.snav .live-dot { margin-left: auto; }
.snav.small { margin-top: auto; padding-top: 14px; }
.snav.small a { height: 34px; font-size: 13.5px; }
.snav.small svg { width: 16px; height: 16px; }
.nbadge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 11px/20px var(--f-mono); text-align: center; font-style: normal; }
.side-label { margin: 20px 12px 6px; font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sidebar .rail-in { display: flex; flex-direction: column; gap: 1px; overflow: visible; padding: 0; }
.sidebar .chip { width: 100%; height: 36px; border: 0; background: transparent; border-radius: 10px; padding: 0 12px; color: var(--muted); font: 600 14px var(--f-body); gap: 12px; }
.sidebar .chip:hover { background: var(--surface-2); color: var(--ink); }
.sidebar .chip[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.sidebar .chip .n { margin-left: auto; }
.chip[data-genre="all"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; box-sizing: border-box; }

.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 260px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; font: 600 14px var(--f-body); }
.menu-row .icon-btn { width: 38px; height: 34px; border-radius: 10px; }
.menu-link { border: 0; background: transparent; text-align: left; padding: 10px 8px; border-radius: 10px; font: 600 14px var(--f-body); cursor: pointer; color: var(--muted); }
.menu-link:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn { border-color: var(--line); background: var(--surface); border-radius: 12px; }
.lang { border-radius: 10px; }
.lang button { height: 32px; background: var(--surface); }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.player-chip { border-radius: 12px; background: var(--surface); }
.badge { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 2px var(--bg); }

.intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px 14px; }
.intro h1 { font: 800 clamp(26px, 3.2vw, 36px)/1.1 var(--f-display); letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.intro h1 em { font-style: normal; color: var(--accent); }
.btn { border-radius: 12px; height: 44px; font-weight: 700; }
.btn.ghost { background: transparent; }
.btn.primary { box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; padding-block: 4px 10px; }
.feat { position: relative; display: block; min-height: 300px; border-radius: 20px; overflow: hidden; text-decoration: none; color: #fff; background: var(--screen); isolation: isolate; }
.feat-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.feat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 8, 12, .92) 0%, rgba(6, 8, 12, .7) 42%, rgba(6, 8, 12, .1) 100%); }
.feat:hover .feat-bg { transform: scale(1.04); }
.feat-in { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 32px; max-width: 460px; height: 100%; justify-content: flex-end; }
.feat-tag { font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #8BE36E; }
.feat h2 { font: 800 clamp(30px, 4vw, 46px)/1 var(--f-display); letter-spacing: -.03em; margin: 0; }
.feat p { margin: 0 0 6px; color: rgba(255, 255, 255, .78); font-size: 15px; }
.feat .btn.primary { background: #8BE36E; color: #0B120A; border-color: #8BE36E; }
.feat-side { display: grid; grid-template-rows: 1fr 1fr auto; gap: 12px; min-width: 0; }
.feat-mini { position: relative; display: block; border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff; min-height: 110px; background: var(--screen); }
.feat-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.feat-mini:hover img { transform: scale(1.05); }
.feat-mini span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(6, 8, 12, .85)); display: flex; flex-direction: column; }
.feat-mini b { font: 700 16px var(--f-display); }
.feat-mini small { font-size: 12px; color: rgba(255, 255, 255, .7); }
.you-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.you-card:hover { border-color: var(--accent); }
.you-lv { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font: 800 16px var(--f-mono); flex: none; }
.you-main { display: flex; flex-direction: column; min-width: 0; }
.you-main b { font: 700 15px var(--f-display); }
.you-main small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.section { padding-block: 18px; }
.sec-head h2 { font: 700 21px/1.1 var(--f-display); display: flex; align-items: center; gap: 8px; }
.sec-head h2 svg { color: var(--accent); width: 18px; height: 18px; }
.link-more { color: var(--muted); }
.link-more:hover { color: var(--accent); }
.grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 16px; }
.card { background: transparent; border: 0; border-radius: 14px; overflow: visible; }
.card:hover { transform: translateY(-4px); box-shadow: none; }
.card .thumb { border-radius: 14px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .18s ease; }
.card:hover .thumb { box-shadow: 0 0 0 2px var(--accent), 0 14px 30px rgba(0, 0, 0, .28); }
.card .body { padding: 9px 2px 0; }
.card h3 { font: 700 15px/1.25 var(--f-body); letter-spacing: 0; }
.card .sub { font-size: 12.5px; }
.card .sub .dot { width: 6px; height: 6px; border-radius: 50%; }
.fav { border-radius: 50%; background: rgba(6, 8, 12, .6); backdrop-filter: blur(4px); }
.fav[aria-pressed="true"] { color: var(--sun); }
.card-top { background: rgba(6, 8, 12, .65); backdrop-filter: blur(4px); color: var(--sun); }
.trend-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trend-card { border-radius: 14px; background: var(--surface); border-color: var(--line); padding: 8px 12px 8px 8px; grid-template-columns: auto 96px minmax(0, 1fr); }
.trend-card:hover { transform: none; box-shadow: none; border-color: var(--accent); }
.trend-card img { width: 96px; border-radius: 9px; }
.trend-card .trend-rank { position: static; background: transparent; color: var(--muted); min-width: 22px; padding: 0; font: 700 16px var(--f-mono); }
.trend-body b { font: 700 15px var(--f-body); }
.trend-body svg, .eyebrow svg { color: var(--accent); }
.trend-bar i { background: var(--accent); }
.trend-list li:nth-child(1) .trend-rank, .trend-list li:nth-child(2) .trend-rank, .trend-list li:nth-child(3) .trend-rank { background: var(--accent); color: var(--accent-ink); }
.trend-rank { background: var(--surface-2); color: var(--ink); border-radius: 9px; }

.panel { border-radius: 16px; }
.panel-head svg { color: var(--accent); }
.panel-head h2, .panel-head h3 { font: 700 17px var(--f-display); }
.lb-row { background: var(--surface-2); background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.lb-row.me { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.lb-name em { color: var(--accent); }
.lb-empty svg { color: var(--accent); }
.mode-note { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.lb-hero h1 { font: 800 clamp(30px, 4.4vw, 46px)/1.02 var(--f-display); }
.lb-mode.on { background: var(--accent-soft); color: var(--accent); }
.name-btn { background: var(--accent); color: var(--accent-ink); font: 700 14px var(--f-body); }
.seg { border-radius: 10px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.seg.big button[aria-pressed="true"] { background: #8BE36E; color: #0B120A; }
.lv-pill { background: var(--accent-soft); color: var(--accent); }
.mini:hover { background: var(--surface-2); }

.cabinet { border-radius: 18px; }
.cab-head h1 { font: 800 21px/1.1 var(--f-display); }
.start { background: radial-gradient(120% 90% at 50% 0%, #161B24 0%, var(--screen) 70%); }
.start img { transform: none; border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.play-big { background: #8BE36E; color: #0B120A; box-shadow: 0 5px 0 #4E9A39, 0 14px 30px rgba(139, 227, 110, .25); border-radius: 14px; }
.play-big:active { box-shadow: 0 2px 0 #4E9A39; }
.ov-card { border-radius: 18px; }
.ov-best { background: var(--accent); color: var(--accent-ink); transform: none; }
.ov-rank.record { background: var(--sun); color: #1A1400; }
.vbtn { background: #1F2430; }
.vbtn.round { background: #4E9A39; }
.vbtn.round.b { background: #343A48; }
.vbtn.round.c { background: #A8641F; font-size: 14px; }
.vpad .abtns:has(.c) { gap: 9px; }
.toast { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.toast.record { background: var(--surface); color: var(--ink); border-color: var(--sun); }
.toast.record .toast-ic { color: var(--sun); }
.toast-ic { color: var(--accent); }
.foot { margin-top: 30px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); font-weight: 600; }
.foot a:hover { color: var(--ink); }

.tabbar { display: none; }
@media (max-width: 1099px) {
  .shell { background: none; grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "side" "main" "foot"; grid-template-rows: auto auto 1fr auto; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-left, 0px)) 10px; background: var(--bg); overflow: visible; }
  .sidebar .logo, .sidebar .snav, .side-label { display: none; }
  .sidebar .rail-in { flex-direction: row; overflow-x: auto; gap: 8px; scrollbar-width: none; }
  .sidebar .rail-in::-webkit-scrollbar { display: none; }
  .sidebar .chip { width: auto; height: 34px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0 14px; gap: 8px; }
  .sidebar .chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .sidebar .chip .n { margin-left: 0; }
  body:not([data-page="home"]) .sidebar { display: none; }
  .top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
  .top-in { flex-wrap: nowrap; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
  .top .logo { display: flex; }
  .top .logo-text { display: none; }
  .search { order: 0; flex: 1 1 auto; flex-basis: auto; max-width: none; min-width: 0; }
  #h-rewards { display: none; }
  #player-name { display: none; }
  .player-chip { padding: 0 8px; margin-left: 0; max-width: none; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 4px; border-radius: 12px; text-decoration: none; color: var(--muted); font: 600 11px var(--f-body); }
  .tabbar a svg, .tab-av { width: 22px; height: 22px; }
  .tab-av { display: grid; place-items: center; font-size: 17px; line-height: 1; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  .tabbar .nbadge { position: absolute; top: 0; left: 50%; margin-left: 6px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .toasts { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feat-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .feat-side .you-card { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .intro { padding-block: 18px 10px; }
  .intro .btn { height: 38px; padding: 0 12px; font-size: 14px; }
  .feat { min-height: 250px; }
  .feat-in { padding: 20px; }
  .feat p { display: none; }
  .feat-mini { min-height: 96px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
}
@media (max-width: 860px) {
  .trend-row { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-columns: minmax(250px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
  .trend-row::-webkit-scrollbar { display: none; }
  .trend-card { scroll-snap-align: start; grid-template-columns: auto 72px minmax(0, 1fr); }
  .trend-card img { width: 72px; }
}
@media (min-width: 1100px) and (max-width: 1280px) { :root { --side-w: 208px; } }
@media (max-width: 1099px) {
  body[data-page="game"] .tabbar { display: none; }
  body[data-page="game"] { padding-bottom: 0; }
  body[data-page="game"] .toasts { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
.ov-card .name-inline { display: inline-flex; align-items: center; gap: 6px; margin: 12px 8px 0; text-decoration: none; opacity: .7; }
.ov-card .name-inline:hover { opacity: 1; color: var(--accent); }
.ov-card .name-inline svg { width: 14px; height: 14px; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.overlay > .ov-card { position: relative; z-index: 2; animation: ovpop .34s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes ovpop { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
.overlay { animation: ovfade .25s ease both; }
@keyframes ovfade { from { opacity: 0; } to { opacity: 1; } }
.scores b.bump { animation: scbump .22s ease; }
@keyframes scbump { 0% { transform: scale(1); } 40% { transform: scale(1.28); color: var(--accent); } 100% { transform: scale(1); } }
.scores b { display: inline-block; transform-origin: left center; }
.gcanvas { border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 50px rgba(0, 0, 0, .5); }
.ov-score { animation: scpop .5s cubic-bezier(.2, 1.4, .4, 1) .12s both; }
@keyframes scpop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.medal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 6px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); vertical-align: middle; }

.card-pop { position: fixed; z-index: 80; width: 252px; padding: 14px 16px 12px; border-radius: 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow), 0 18px 40px rgba(0,0,0,.25); font-size: 13px; pointer-events: none; animation: cp-in .14s ease-out; }
@keyframes cp-in { from { opacity: 0; transform: translateY(4px) scale(.98); } }
.card-pop .cp-head { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 16px; }
.card-pop .cp-new { font: 800 10px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
.card-pop .cp-genre { display: flex; align-items: center; gap: 6px; color: var(--muted); margin: 3px 0 10px; }
.card-pop .cp-genre .dot { width: 8px; height: 8px; border-radius: 50%; }
.card-pop dl { margin: 0; display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.card-pop dl div { display: flex; justify-content: space-between; gap: 12px; }
.card-pop dt { color: var(--muted); }
.card-pop dd { margin: 0; text-align: right; display: flex; align-items: center; gap: 4px; }
.card-pop dd svg { width: 14px; height: 14px; color: var(--sun); }
.card-pop .cp-star { color: var(--star); }
.card-pop small { color: var(--muted); }
a.card { -webkit-touch-callout: none; }

:root {
  --card-ring: rgba(18, 21, 28, .07);
  --lift: 0 18px 40px -12px rgba(18, 21, 28, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --card-ring: rgba(255, 255, 255, .06); --lift: 0 22px 44px -14px rgba(0, 0, 0, .7); }
}
:root[data-theme="dark"] { --card-ring: rgba(255, 255, 255, .06); --lift: 0 22px 44px -14px rgba(0, 0, 0, .7); }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

.sidebar { scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
.snav a { transition: background .15s, color .15s; }
.snav a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); font-weight: 700; }
.snav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.sidebar .side-label { align-items: center; gap: 8px; }
@media (min-width: 1100px) { .sidebar .side-label { display: flex; } }
.side-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sidebar .chip { transition: background .15s, color .15s; }
.sidebar .chip .dot { width: 10px; height: 10px; border-radius: 4px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.sidebar .chip[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: var(--ink); }
.sidebar .chip[aria-pressed="true"] .n { opacity: 1; color: var(--c); font-weight: 700; }

.search::after { content: "/"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; font: 700 11px var(--f-mono); color: var(--muted); pointer-events: none; transition: opacity .15s; }
.search:focus-within::after { opacity: 0; }
.search input { transition: border-color .15s, box-shadow .15s; }
.icon-btn, .player-chip { transition: background .15s, border-color .15s, transform .15s; }
.icon-btn:hover, .player-chip:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.player-chip .chip-av { box-shadow: 0 0 0 2px var(--surface); }
.menu { border-radius: 16px; padding: 10px; animation: menu-in .16s var(--ease); transform-origin: top right; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.97); } }

.intro { padding-block: 30px 18px; align-items: flex-end; }
.intro h1 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.035em; }
.intro-sub { margin: 8px 0 0; color: var(--muted); font: 600 13px var(--f-mono); letter-spacing: .02em; }
.btn { transition: background .15s, border-color .15s, transform .12s, box-shadow .15s, filter .15s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn.ghost svg { transition: transform .35s var(--ease); }
.btn.ghost:hover svg { transform: rotate(180deg); }

.feature { gap: 14px; }
.feat { border-radius: 24px; min-height: 320px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), var(--lift); }
.feat-in { padding: 36px; gap: 12px; max-width: 560px; }
.feat-tag { display: inline-flex; align-items: center; gap: 10px; color: #A6F08D; }
.feat-tag i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; letter-spacing: .06em; backdrop-filter: blur(6px); }
.feat-tag i::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.feat h2 { font-size: clamp(32px, 4.4vw, 54px); text-shadow: 0 4px 30px rgba(0, 0, 0, .4); }
.feat .btn.primary { height: 48px; padding: 0 24px; border-radius: 999px; font-size: 16px; box-shadow: 0 10px 30px rgba(139, 227, 110, .35); }
.feat:hover .btn.primary { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(139, 227, 110, .45); }
.feat-mini { border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.feat-mini span { inset: 0; top: auto; padding: 44px 16px 14px; background: linear-gradient(transparent, rgba(6, 8, 12, .88) 55%); }
.feat-mini b { font-size: 17px; letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.feat-mini small { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .75); }
.feat-mini .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.feat-go { position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #8BE36E; color: #0B120A; opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .2s, transform .25s var(--ease); }
.feat-go svg { width: 16px; height: 16px; margin-left: 2px; }
.feat-mini:hover .feat-go, .feat-mini:focus-visible .feat-go { opacity: 1; transform: none; }
.you-card { border-radius: 18px; transition: transform .15s, border-color .15s; }
.you-card:hover { transform: translateY(-2px); }
.you-lv { border-radius: 12px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }

.section { padding-block: 22px; }
.sec-head { margin-bottom: 16px; align-items: center; }
.sec-head h2 { font: 800 22px/1.1 var(--f-display); letter-spacing: -.02em; }
.sec-head h2 svg { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--accent-soft); box-sizing: border-box; }
.sec-head .meta { font-size: 12px; }
.link-more { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .15s, color .15s; }
.link-more:hover { border-color: var(--accent); color: var(--accent); }

.card { border-radius: 16px; }
.card:hover { transform: translateY(-5px); }
.card, .card .thumb-wrap, .card .thumb { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.thumb-wrap { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--screen); box-shadow: 0 0 0 1px var(--card-ring); transform: translateZ(0); }
.card .thumb { border-radius: 0; box-shadow: none; }
.card:hover .thumb { box-shadow: none; transform: scale(1.06); }
.card:hover .thumb-wrap, .card:focus-visible .thumb-wrap { box-shadow: 0 0 0 2px var(--c), var(--lift); }
.thumb-wrap::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); opacity: 0; transition: opacity .2s; }
.card:hover .thumb-wrap::after { opacity: 1; }
.card-play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; display: grid; place-items: center; background: #8BE36E; color: #0B120A; box-shadow: 0 10px 26px rgba(0, 0, 0, .45); opacity: 0; transform: scale(.6); transition: opacity .18s, transform .3s cubic-bezier(.2, 1.5, .4, 1); }
.card-play svg { width: 20px; height: 20px; margin-left: 3px; }
.card:hover .card-play, .card:focus-visible .card-play { opacity: 1; transform: none; }
.card-new { position: absolute; left: 8px; bottom: 8px; z-index: 1; padding: 3px 8px; border-radius: 7px; background: var(--sun); color: #1A1400; font: 800 10px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.card .body { padding: 10px 4px 0; }
.card h3 { font: 700 15px/1.25 var(--f-display); letter-spacing: -.005em; transition: color .15s; }
.card:hover h3 { color: var(--accent); }
.card .sub .dot { width: 7px; height: 7px; }
.fav { top: 10px; right: 10px; z-index: 2; transition: opacity .15s, transform .15s, background .15s; }
.fav:hover { transform: scale(1.1); background: rgba(6, 8, 12, .8); }
.card-top { z-index: 2; left: 10px; top: 10px; }
.grid { gap: 26px 18px; }
.grid > .card { animation: card-rise .45s var(--ease) both; }
.grid > .card:nth-child(2) { animation-delay: 25ms; } .grid > .card:nth-child(3) { animation-delay: 50ms; } .grid > .card:nth-child(4) { animation-delay: 75ms; } .grid > .card:nth-child(5) { animation-delay: 100ms; } .grid > .card:nth-child(6) { animation-delay: 125ms; } .grid > .card:nth-child(7) { animation-delay: 150ms; } .grid > .card:nth-child(8) { animation-delay: 175ms; } .grid > .card:nth-child(n+9) { animation-delay: 200ms; }
@keyframes card-rise { from { opacity: 0; transform: translateY(10px); } }
.row-scroll { padding: 8px 4px 14px; gap: 18px; }
.sl-btn { backdrop-filter: blur(8px); background: color-mix(in srgb, var(--surface) 85%, transparent); }

.trend-row { gap: 12px; }
.trend-card { grid-template-columns: 44px 104px minmax(0, 1fr); padding: 10px 14px 10px 6px; border-radius: 18px; transition: border-color .15s, transform .2s var(--ease), box-shadow .2s; overflow: hidden; }
.trend-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 60%, var(--line)); }
.trend-card img { width: 104px; border-radius: 11px; transition: transform .25s var(--ease); }
.trend-card:hover img { transform: scale(1.04) rotate(-1deg); }
.trend-card .trend-rank { justify-self: center; font: 800 46px/1 var(--f-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--muted) 70%, transparent); }
.trend-row > .trend-card:nth-child(-n+3) .trend-rank { -webkit-text-stroke: 0; color: var(--accent); }
.trend-body b { font: 700 16px var(--f-display); }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.cat-tile { position: relative; display: flex; align-items: center; min-height: 92px; padding: 14px 16px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--c) 28%, var(--line)); background: color-mix(in srgb, var(--c) 10%, var(--surface)); cursor: pointer; text-align: left; overflow: hidden; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.cat-tile:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: var(--shadow); }
.cat-tx { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-tx b { font: 800 17px/1.15 var(--f-display); letter-spacing: -.01em; }
.cat-tx small { font: 600 12px var(--f-mono); color: var(--muted); }
.cat-tx::before { content: ""; width: 22px; height: 4px; border-radius: 4px; background: var(--c); margin-bottom: 8px; }
.cat-art { position: absolute; right: -6px; top: 50%; width: 120px; height: 70px; transform: translateY(-50%); pointer-events: none; }
.cat-art img { position: absolute; top: 8px; right: 14px; width: 66px; aspect-ratio: 4 / 3; border-radius: 9px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); transition: transform .3s var(--ease); background: var(--screen); }
.cat-art img:nth-child(1) { transform: rotate(-12deg) translate(-34px, 4px); }
.cat-art img:nth-child(2) { transform: rotate(10deg) translate(10px, 6px); }
.cat-art img:nth-child(3) { transform: translate(-10px, -4px); z-index: 1; }
.cat-tile:hover .cat-art img:nth-child(1) { transform: rotate(-18deg) translate(-44px, 2px); }
.cat-tile:hover .cat-art img:nth-child(2) { transform: rotate(16deg) translate(18px, 4px); }
.cat-tile:hover .cat-art img:nth-child(3) { transform: translate(-10px, -8px) scale(1.05); }

.empty { padding: 56px 20px; border-radius: 20px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--muted) 35%, var(--line)); font-weight: 600; }
.empty::before { content: "✦"; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); font-size: 28px; }
.lb-empty { background: color-mix(in srgb, var(--surface-2) 40%, transparent); border-color: color-mix(in srgb, var(--muted) 30%, var(--line)); border-radius: 14px; }
.lb-empty svg { padding: 6px; width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); box-sizing: border-box; }

.panel { border-radius: 20px; padding: 18px; box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 3%, transparent); }
.panel-head h2 svg, .panel-head h3 svg { width: 28px; height: 28px; padding: 5px; border-radius: 9px; background: var(--accent-soft); box-sizing: border-box; }
.lb-row { transition: background .15s; }
.lb-row:hover { background: var(--surface-2); }
.top1 .lb-rank, .top2 .lb-rank, .top3 .lb-rank { font-weight: 800; }
.top1 { background: color-mix(in srgb, #D79A00 14%, var(--surface)) !important; }
.top2 { background: color-mix(in srgb, #8E9AAF 16%, var(--surface)) !important; }
.top3 { background: color-mix(in srgb, #C0723A 14%, var(--surface)) !important; }

.lb-page { padding-top: 22px; }
.lb-hero { position: relative; isolation: isolate; overflow: hidden; padding: 28px 30px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 18px; align-items: center; }
.lb-hero h1 { letter-spacing: -.035em; margin: 6px 0 8px; }
.lb-hero .eyebrow { color: var(--accent); }
.lb-me-card { background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(8px); }
.prof-banner { position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; border: 1px solid var(--line); padding: 30px; }
.prof-banner:not([style*="gradient"]) { background: var(--surface); }
.prof-banner .av.big { box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45); }
.stat { border-radius: 14px; transition: transform .15s; }
.stat b { font-variant-numeric: tabular-nums; }
.xp-bar { background: color-mix(in srgb, var(--ink) 9%, transparent); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); }
.xp-bar i { background: var(--accent); }
.task { border-radius: 16px; background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); border: 1px solid transparent; transition: border-color .15s; }
.task:hover { border-color: var(--line); }
.task .btn.small { border-radius: 999px; font-family: var(--f-mono); }
.ach-grid li { border-radius: 14px; }
.ach-grid li.on .ach-ic { box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--star) 70%, transparent); }

.crumbs { padding-block: 20px 12px; }
.crumbs a { color: var(--muted); transition: color .15s; }
.crumbs > span:last-child { color: var(--ink); font-weight: 700; }
.cabinet { border-radius: 22px; border-color: color-mix(in srgb, var(--c) 14%, var(--line)); box-shadow: var(--shadow); }
.cab-head { padding: 14px 16px; gap: 10px; }
.cab-head h1 { font-size: 23px; letter-spacing: -.025em; }
.genre-pill { background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--ink); transition: background .15s; }
.genre-pill:hover { background: color-mix(in srgb, var(--c) 24%, var(--surface)); }
.scores div { padding: 4px 10px; border-radius: 10px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.cab-tools .icon-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.cab-tools .icon-btn[aria-pressed="true"] { color: var(--sun); }
.start { overflow: hidden; isolation: isolate; background: var(--screen); }
.start-in { position: relative; z-index: 1; }
.start-in > img { border-radius: 18px !important; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 60px rgba(0, 0, 0, .6) !important; animation: art-in .5s var(--ease) both; }
@keyframes art-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.start p { color: #D4DCD5; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.play-big { border-radius: 999px; height: 56px; padding: 0 34px; transition: transform .12s, box-shadow .2s, filter .15s; }
.play-big:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 0 #4E9A39, 0 18px 40px rgba(139, 227, 110, .35); }
.seg.big { border-radius: 999px; backdrop-filter: blur(8px); }
.about-game { padding: 20px; }
.about-game h2 { font-size: 16px; }
.side h2 { font-size: 19px; letter-spacing: -.01em; }
.mini { padding: 6px; border-radius: 14px; transition: background .15s, transform .15s; }
.mini:hover { transform: translateX(3px); }
.mini img { border-radius: 10px; box-shadow: 0 0 0 1px var(--card-ring); }

.overlay { background: rgba(8, 10, 14, .78); backdrop-filter: blur(6px); }
.ov-card { position: relative; overflow: hidden; border-radius: 24px; padding: 30px 26px 24px; width: min(380px, 100%); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03); }
.ov-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c, var(--accent)); }
.ov-card { isolation: isolate; }
.ov-card.win::before { background: var(--sun); }
.ov-card h2 { font-size: 32px; }
.ov-label { margin-top: 10px; font: 700 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ov-score { font: 800 58px/1 var(--f-display); letter-spacing: -.03em; margin: 4px 0 10px; font-variant-numeric: tabular-nums; color: var(--ink); }
.ov-xp { margin: 0 0 16px; background: color-mix(in srgb, var(--sun) 16%, transparent); color: color-mix(in srgb, var(--sun) 85%, var(--ink)); }
.ov-best { border-radius: 999px; padding: 5px 12px; animation: best-in .5s cubic-bezier(.2, 1.6, .4, 1) .3s both; }
@keyframes best-in { from { transform: scale(.4) rotate(-8deg); opacity: 0; } }
.ov-actions .btn { border-radius: 999px; }
.ov-actions .btn.primary { padding: 0 22px; }

.dialog { backdrop-filter: blur(6px); animation: ovfade .2s ease both; }
.dlg-card { border-radius: 24px; border: 1px solid var(--line); animation: ovpop .3s cubic-bezier(.2, 1.3, .4, 1) both; }
.toast { border-radius: 16px; box-shadow: var(--lift); }
.card-pop { border-radius: 16px; }

.foot { margin-top: 48px; }
.foot-in { padding-block: 28px 32px; align-items: center; }
.foot-in > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.foot-in > div strong::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; border-radius: 5px; vertical-align: -2px; background: var(--accent); }
.foot a { transition: color .15s; }

@media (max-width: 1099px) {
  .tabbar { padding-top: 6px; }
  .tabbar a { gap: 2px; padding: 2px 0; transition: color .15s; }
  .tabbar a svg, .tabbar .tab-av { width: 52px; height: 30px; padding: 4px 15px; border-radius: 999px; box-sizing: border-box; transition: background .2s; }
  .tabbar .tab-av { padding: 0; }
  .tabbar a[aria-current="page"] svg, .tabbar a[aria-current="page"] .tab-av { background: var(--accent-soft); }
  .tabbar a[aria-current="page"] { font-weight: 700; }
  .tabbar .nbadge { top: -2px; margin-left: 8px; }
  .sidebar { background: transparent; border-bottom: 0; padding-bottom: 4px; }
  .sidebar .chip { transition: background .15s, border-color .15s; }
  .sidebar .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .sidebar .chip[aria-pressed="true"] .n { color: inherit; opacity: .7; }
  .search::after { display: none; }
  .feat-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .cat-tiles { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 158px; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 2px max(16px, env(safe-area-inset-left, 0px)) 6px; scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
  .cat-tiles::-webkit-scrollbar { display: none; }
  .cat-tile { min-height: 108px; padding: 12px; align-items: flex-end; scroll-snap-align: start; }
  .cat-art { width: 100px; height: 52px; top: 10px; right: -4px; transform: none; }
  .cat-art img { width: 48px; top: 2px; }
  .cat-tx b { font-size: 15px; }
  .cat-tx::before { display: none; }
  .lb-hero { padding: 22px 18px; border-radius: 20px; }
  .prof-banner { padding: 22px 18px; }
  .cab-head h1 { font-size: 20px; }
  .cab-head { padding: 12px; gap: 8px; }
  .scores { width: auto; order: 3; gap: 8px; }
  .cab-tools { order: 4; margin-left: auto; }
  .cab-tools .icon-btn { width: 34px; height: 34px; }
  .scores div { padding: 3px 8px; min-width: 56px; }
  .screen-wrap:has(> .start:not([hidden])) .vpad { display: none; }
}
@media (max-width: 560px) {
  .intro { padding-block: 20px 12px; gap: 12px; }
  .intro h1 { font-size: 27px; }
  .intro-sub { font-size: 11.5px; }
  .feat { min-height: 230px; border-radius: 20px; }
  .feat-in { padding: 22px; }
  .feat h2 { font-size: 32px; }
  .feat-mini { min-height: 110px; border-radius: 16px; }
  .feat-mini span { padding: 30px 12px 10px; }
  .feat-mini b { font-size: 15px; }
  .trend-card { grid-template-columns: 34px 76px minmax(0, 1fr); padding: 8px 12px 8px 4px; }
  .trend-card img { width: 76px; }
  .trend-card .trend-rank { font-size: 36px; }
  .grid { gap: 20px 12px; }
  .card-play { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .ov-score { font-size: 48px; }
  .ov-card { padding: 24px 20px 20px; }
}
@media (hover: none) { .card-play, .feat-go { display: none; } }
@media (prefers-reduced-motion: reduce) { .grid > .card { animation: none; } }

.vol-wrap { display: inline-flex; align-items: center; gap: 6px; }
input.vol { align-self: center; flex: none; -webkit-appearance: none; appearance: none; width: 92px; height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--accent) var(--v, 80%), var(--line) var(--v, 80%)); cursor: pointer; margin: 0 2px; }
input.vol.off { opacity: .45; }
input.vol::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
input.vol::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 0; }
input.vol:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 560px) { #b-vol { width: 64px; } }
.logo-mark, .logo-mark:is(*) { width: 38px; height: 34px; border-radius: 0; background: none; transform: none; display: grid; place-items: center; }
.logo-mark .olo-mark { width: 38px; height: 34px; display: block; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.logo:hover .olo-mark { transform: rotate(-8deg) scale(1.06); }
.intro { align-items: center; }
.intro-olo { flex: none; width: 92px; height: 92px; margin-right: 4px; }
.intro-olo .olo { width: 100%; height: 100%; display: block; animation: olo-bob 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes olo-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-2deg); } }
.ov-olo { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -4px 0 8px; }
.ov-olo .olo { width: 72px; height: 72px; flex: none; animation: olo-pop .5s cubic-bezier(.3,1.6,.5,1) both; }
.ov-say { position: relative; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; font-weight: 700; font-size: 14px; line-height: 1.3; text-align: left; max-width: 200px; }
.ov-say::before { content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; background: inherit; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); }
@keyframes olo-pop { from { transform: scale(.4) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.empty::before { content: ""; width: 84px; height: 84px; background: var(--olo-sleep) center / contain no-repeat; border-radius: 0; }
@media (max-width: 560px) { .intro-olo { width: 64px; height: 64px; } }
@media (prefers-reduced-motion: reduce) { .intro-olo .olo, .ov-olo .olo { animation: none; } }
.intro > div:not(.intro-olo) { flex: 1; min-width: 0; }
@media (max-width: 560px) { .intro > div:not(.intro-olo) { flex: 1 1 calc(100% - 84px); } .intro { row-gap: 10px; } }
.foot-in > div strong::before { width: 20px; height: 20px; border-radius: 0; vertical-align: -5px; background: var(--olo-idle) center / contain no-repeat; }
.flag { font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-style: normal; }
.cc-pick { position: relative; max-width: 320px; }
.cc-cur { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px/1.2 var(--f-body); cursor: pointer; text-align: left; }
.cc-cur .flag { font-size: 18px; }
.cc-caret { margin-left: auto; color: var(--muted); }
.cc-pop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.28); padding: 8px; }
.cc-pop input { width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 14px var(--f-body); margin-bottom: 6px; }
.cc-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.cc-list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 14px var(--f-body); cursor: pointer; text-align: left; }
.cc-list button .flag { font-size: 20px; width: 26px; text-align: center; }
.cc-list button:hover, .cc-list button:focus-visible, .cc-list button.hi { background: var(--accent-soft); outline: none; }
.cc-list button.on { font-weight: 800; color: var(--accent); }
.cc-none { padding: 10px; color: var(--muted); font-size: 14px; }
.fa-panel { margin-bottom: 16px; }
.fa-steps { margin: 0 0 14px; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; }
.fa-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.fa-row .code-card { flex: none; }
.fa-form { flex: 1 1 260px; min-width: 0; }
.acc-top { margin-bottom: 16px; }
.olo-nudge { position: fixed; z-index: 90; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(380px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: flex-start; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: 0 20px 50px rgba(0,0,0,.35); animation: on-in .35s cubic-bezier(.3,1.4,.5,1) both; }
.olo-nudge.out { opacity: 0; transform: translateY(12px); transition: .22s; }
.olo-nudge .olo { width: 64px; height: 64px; flex: none; }
.olo-nudge b { display: block; font: 800 16px/1.25 var(--f-display); margin-bottom: 4px; }
.olo-nudge p { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.g-load { min-height: 52vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; color: var(--ink); padding: 40px 16px; }
.g-load .olo { width: 96px; height: 96px; animation: g-load-bob 1.4s ease-in-out infinite; }
.g-load p { margin: 0; font-weight: 600; max-width: 34ch; }
.g-load::after { content: ""; width: 120px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--c, var(--ink)), transparent) 0 0 / 60% 100% no-repeat, var(--line); animation: g-load-bar 1.1s linear infinite; }
.g-load.err::after { display: none; }
.g-load.err .olo { animation: none; }
@keyframes g-load-bob { 50% { transform: translateY(-6px); } }
@keyframes g-load-bar { from { background-position: -80px 0, 0 0; } to { background-position: 160px 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .g-load .olo, .g-load::after { animation: none; } }
.on-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@keyframes on-in { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .olo-nudge { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
.prof-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; }
.prof-cc { display: flex; align-items: center; gap: 8px; }
.prof-cc-l { font: 700 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prof-cc .cc-pick { width: 220px; }
.prof-cc .cc-cur { padding: 8px 12px; }
.cc-pop { z-index: 95; }
.rw-card { position: relative; overflow: hidden; text-align: center; width: min(360px, 100%); padding-top: 18px; }
.rw-card h2 { margin: 6px 0 2px; }
.rw-olo .olo { width: 74px; height: 74px; animation: olo-pop .5s cubic-bezier(.3,1.6,.5,1) both; }
.rw-eyebrow { font: 800 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 4px 0 12px; }
.rw-art { display: grid; place-items: center; min-height: 110px; animation: rw-in .55s .1s cubic-bezier(.3,1.6,.5,1) both; }
.rw-art .av.big { transform: scale(1.15); }
.rw-bg { width: 160px; height: 96px; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.rw-title { padding: 10px 18px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 800 20px/1 var(--f-display); }
.rw-big { font: 800 64px/1 var(--f-display); color: var(--accent); letter-spacing: -.03em; }
.rw-card .ov-actions { justify-content: center; margin-top: 14px; }
@keyframes rw-in { from { transform: scale(.3) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rw-art, .rw-olo .olo { animation: none; } }
.olo-mark.hop { animation: olo-hop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes olo-hop { 0% { transform: none; } 35% { transform: translateY(-5px) rotate(-10deg) scale(1.12); } 70% { transform: translateY(1px) rotate(4deg) scale(.97); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .olo-mark.hop { animation: none; } }
.menu-sub { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 2px; max-width: 190px; line-height: 1.35; }
.switch { flex: none; width: 42px; height: 24px; border-radius: 999px; border: 0; padding: 0; background: var(--line); position: relative; cursor: pointer; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] i { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.emb { --s: 48px; --eb: transparent; display: inline-grid; width: var(--s); height: var(--s); padding: 3px; border-radius: 30%; background: var(--eb); flex: none; vertical-align: middle; }
.emb > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 26%; background: radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--ec) 62%, #fff), var(--ec) 72%); font-size: calc(var(--s) * .48); line-height: 1; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), inset 0 2px 0 rgba(255, 255, 255, .22); }
.emb.sm { --s: 28px; padding: 2px; }
.emb.sm > span { box-shadow: none; }
.emb.big { --s: 92px; padding: 5px; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .5); }
.emb-none { padding: 0; }
.emb.emb-none.big { padding: 0; }
.emb-bronze { --eb: linear-gradient(135deg, #F0AE74, #8F4F22); }
.emb-silver { --eb: linear-gradient(135deg, #F4F6FA, #7F8999); }
.emb-gold { --eb: linear-gradient(135deg, #FFE98F, #CC9208 55%, #FFD54A); }
.emb-jade { --eb: linear-gradient(135deg, #8BF5C8, #0F7F55); }
.emb-frost { --eb: linear-gradient(135deg, #F1FDFF, #78CFFF 50%, #B7C4FF); box-shadow: 0 0 12px rgba(120, 207, 255, .55); }
.emb-ember { --eb: linear-gradient(135deg, #FFD65C, #FF6A2B 50%, #C3102C); box-shadow: 0 0 12px rgba(255, 106, 43, .55); }
.emb-royal { --eb: linear-gradient(135deg, #FFD54A, #7B3FE4 40%, #5225B8 60%, #FFD54A); box-shadow: 0 0 0 1px rgba(255, 213, 74, .6); }
.emb-neon { --eb: linear-gradient(135deg, #2BF5FF, #FF3DD9); box-shadow: 0 0 12px rgba(43, 245, 255, .6), 0 0 22px rgba(255, 61, 217, .35); }
.emb-prism { --eb: conic-gradient(from 210deg, #FF5D73, #FFB347, #FFE066, #7CF29C, #5FD0FF, #9D7CFF, #FF5D73); box-shadow: 0 0 16px rgba(157, 124, 255, .45); }
.emb.big.emb-frost, .emb.big.emb-ember, .emb.big.emb-neon, .emb.big.emb-prism { box-shadow: 0 0 26px color-mix(in srgb, var(--ec) 55%, transparent), 0 14px 34px -10px rgba(0, 0, 0, .5); }
.ctag { display: inline-block; padding: 1px 6px; margin-left: 4px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font: 800 11px/1.5 var(--f-mono); letter-spacing: .04em; text-decoration: none; vertical-align: 1px; }
a.ctag:hover { background: var(--accent); color: var(--accent-ink); }
.cl-body .ctag, .cl-pv-name .ctag, .cl-bname .ctag { margin-left: 0; }
.ctag.big { font-size: .42em; padding: 3px 10px; border-radius: 10px; vertical-align: .35em; margin: 0; background: rgba(255, 255, 255, .18); color: inherit; }
.cl-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.cl-tools input { flex: 1 1 200px; min-width: 0; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 14px; font: 600 15px var(--f-body); }
.cl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cl-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); border: 1px solid transparent; transition: border-color .15s; }
.cl-card:hover { border-color: var(--line); }
.cl-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.cl-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-body b { font: 700 16px var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.cl-meta span + span::before { content: "·"; margin-right: 10px; opacity: .6; }
.cl-desc { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cl-side { flex: none; display: flex; align-items: center; }
.cl-acts { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.cl-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font: 700 12px var(--f-body); white-space: nowrap; }
.cl-chip.on { background: var(--accent-soft); color: var(--accent); }
.cl-seg { margin-bottom: 10px; }
.cl-bname { display: flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; min-width: 0; }
.cl-bname:hover { color: var(--accent); }
.cl-cta .btn { margin-top: 10px; }
.cl-invites { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.cl-form { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.cl-form .sub-h { margin: 6px 0 0; }
.cl-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.cl-preview { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; background: var(--bg); border: 1px dashed var(--line); }
.cl-preview > div { display: flex; flex-direction: column; min-width: 0; }
.cl-pv-name { font: 800 22px var(--f-display); overflow-wrap: anywhere; }
.cl-preview .muted-note { margin: 0; }
.cl-pick .cos { min-width: 48px; min-height: 48px; }
.cl-pick .cos-av { font-size: 26px; }
.cl-sw { display: block; width: 30px; height: 30px; border-radius: 9px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
.cl-need { position: absolute; left: 3px; top: 2px; font: 800 10px/1 var(--f-mono); font-style: normal; color: var(--muted); }
.cl-min select { max-width: 240px; }
.cl-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; padding: 28px 30px; margin: 8px 0 18px; border-radius: 24px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--ec) 88%, #fff) 0%, var(--ec) 45%, color-mix(in srgb, var(--ec) 45%, #0B0D12) 100%); }
.cl-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 14px, transparent 14px 28px); }
.cl-id { display: flex; align-items: center; gap: 20px; min-width: 0; flex: 1 1 340px; }
.cl-idt { min-width: 0; }
.cl-banner .eyebrow { color: rgba(255, 255, 255, .85); }
.cl-banner h1 { margin: 4px 0 6px; font: 800 clamp(28px, 4.4vw, 46px)/1.05 var(--f-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.cl-motto { margin: 0; max-width: 60ch; color: rgba(255, 255, 255, .9); }
.cl-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cl-actions .btn { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; box-shadow: none; }
.cl-actions .btn:hover { background: rgba(255, 255, 255, .28); }
.cl-actions .btn.primary { background: #fff; color: #12151C; border-color: #fff; }
.cl-actions .cl-chip { background: rgba(255, 255, 255, .2); color: #fff; }
.cl-level { margin-bottom: 18px; }
.cl-level .lc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cl-level .lc-row b { font: 800 20px var(--f-display); }
.cl-level .lc-row span { font: 600 13px var(--f-mono); color: var(--muted); }
.cl-level .muted-note { margin: 0 0 12px; }
.stat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cl-chat .thread { min-height: 220px; max-height: 46vh; }
.msg-who { display: block; font: 700 12px var(--f-body); color: var(--accent); margin-bottom: 1px; }
.cm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cm-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.cm-row:last-child { border-bottom: 0; }
.cm-row.me { background: var(--accent-soft); border-radius: 12px; padding-inline: 10px; }
.cm-row .av { width: 38px; height: 38px; }
.cm-row .av > span { font-size: 20px; }
.cm-main { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 3px; }
.cm-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-main b em { font: 600 11px var(--f-mono); font-style: normal; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.cm-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.cm-on { color: #2FBF71; font-weight: 700; }
.role-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); font: 700 11px/1.6 var(--f-body); color: var(--muted); }
.role-chip svg { width: 11px; height: 11px; }
.role-chip.owner { background: color-mix(in srgb, var(--sun) 24%, transparent); color: color-mix(in srgb, var(--sun) 70%, var(--ink)); }
.role-chip.officer { background: var(--accent-soft); color: var(--accent); }
.cm-manage { flex: none; }
.cl-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cl-log li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cl-log li:last-child { border-bottom: 0; }
.cl-log time { flex: none; font-size: 12px; color: var(--muted); }
.cl-mgr { display: flex; flex-direction: column; gap: 8px; }
.cl-mgr .btn { justify-content: center; }
.btn.danger { color: #E5484D; border-color: color-mix(in srgb, #E5484D 45%, var(--line)); }
.btn.danger:hover { background: color-mix(in srgb, #E5484D 12%, var(--surface)); }
.cl-code { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.friend-list li .cl-chip, .friend-list li > .btn.small { flex: none; }
@media (max-width: 760px) {
  .stat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-banner { padding: 22px 18px; border-radius: 20px; }
  .cl-id { gap: 14px; flex-basis: 100%; }
  .emb.big { --s: 72px; }
  .cl-card { flex-wrap: wrap; }
  .cl-side { width: 100%; justify-content: flex-end; }
  .cl-side:empty { display: none; }
  .cl-fields { grid-template-columns: minmax(0, 1fr); }
  .cl-tools .seg { width: 100%; }
  .cl-tools .seg button { flex: 1; padding: 0 8px; font-size: 13px; }
  .cm-row { flex-wrap: wrap; }
  .cm-manage { margin-left: 50px; }
}

.seg.big.many { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 640px; max-width: 100%; border: 0; border-radius: 0; background: none; overflow: visible; backdrop-filter: none; }
.seg.big.many button, .seg.big.many button + button { border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .05); min-height: 46px; height: auto; padding: 6px 10px; line-height: 1.2; white-space: normal; }
.seg.big.many button:hover { background: rgba(255, 255, 255, .1); }
.seg.big.many button[aria-pressed="true"] { background: #8BE36E; border-color: #8BE36E; color: #0B120A; }
.star-lv[aria-pressed="true"] { background: #8BE36E; border-color: #8BE36E; color: #0B120A; }
.star-lv[aria-pressed="true"] .stars { color: #1F5A12; }
.star-lv[aria-pressed="true"] .stars i { color: rgba(11, 18, 10, .22); }
.star-lv[aria-pressed="true"] .lv-meta { color: rgba(11, 18, 10, .7); }
.star-lv .stars { font-size: 11px; letter-spacing: 0; }
.star-lv b { white-space: normal; line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 760px) { .seg.big.many { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 420px; } .seg.big.many button { font-size: 13px; padding: 0 8px; } }
.seg.big.many:has(.lv-sub) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.seg.big.many .lv-sub { display: block; font-size: 11px; font-weight: 600; opacity: .75; }
@media (max-width: 760px) { .seg.big.many:has(.lv-sub) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
[data-rename][aria-disabled="true"] { opacity: .5; filter: grayscale(1); cursor: not-allowed; }
.name-note { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font: 600 13px var(--f-body); }
.prof-banner:not([style*="gradient"]) .name-note { background: var(--surface-2); color: var(--muted); }
.name-note svg { width: 14px; height: 14px; flex: none; }
.ts-box { min-height: 0; max-width: 100%; }
.ts-box:not(:empty) { margin: 2px 0; }
.inv-btn { position: relative; }
.inv-panel .panel-head .meta:empty { display: none; }
.inv-list .inv-row { flex-wrap: wrap; }
.inv-ic { flex: none; display: grid; place-items: center; width: 44px; height: 34px; }
.inv-ic img { width: 44px; height: 33px; object-fit: cover; border-radius: 8px; }
.inv-ic svg { width: 22px; height: 22px; color: var(--accent); }
.inv-row .fl-main b { white-space: normal; }
.inv-banner-wrap { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 72px); right: 16px; z-index: 85; pointer-events: none; display: flex; justify-content: flex-end; max-width: calc(100vw - 32px); transform: translateY(-14px); opacity: 0; transition: opacity .25s, transform .3s cubic-bezier(.2, 1.2, .4, 1); }
.inv-banner-wrap.in { opacity: 1; transform: none; }
.inv-banner-wrap:not(.in) .inv-banner { pointer-events: none; }
.inv-banner { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 8px 12px 8px 8px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55); backdrop-filter: blur(6px); font-size: 14px; }
.inv-banner img { width: 40px; height: 30px; object-fit: cover; border-radius: 7px; flex: none; }
.inv-banner .emb.sm { --s: 30px; }
.inv-bi { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); flex: none; }
.inv-bi svg { width: 17px; height: 17px; }
.inv-bt { min-width: 0; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inv-bt em { font-style: normal; color: var(--muted); font-weight: 500; }
.inv-view { flex: none; font: 700 13px var(--f-body); color: var(--accent); text-decoration: none; padding: 4px 6px; border-radius: 8px; }
.inv-view:hover { background: var(--accent-soft); }
@media (max-width: 560px) { .inv-banner-wrap { top: calc(env(safe-area-inset-top, 0px) + 62px); right: 8px; left: 8px; max-width: none; justify-content: center; } .inv-banner { font-size: 13px; padding: 6px 10px 6px 6px; } .inv-banner img { width: 34px; height: 26px; } }
@media (prefers-reduced-motion: reduce) { .inv-banner-wrap { transition: opacity .2s; transform: none; } }
.un-slot { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.un-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--sun) 16%, var(--surface)); color: var(--ink) !important; font-size: 14px; }
.un-warn svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--sun); }
.acc-rows { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 12px; }
.acc-row:empty { display: none; }
.acc-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.acc-st { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); min-width: 0; flex: 1 1 200px; }
.acc-st.ok { color: var(--ink); font-weight: 600; }
.acc-st.warn { color: color-mix(in srgb, var(--sun) 75%, var(--ink)); font-weight: 600; }
.acc-st svg, .g-btn svg { width: 16px; height: 16px; flex: none; }
.acc-alt { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.acc-alt span:empty { display: none; }
.link-btn { border: 0; background: none; padding: 4px 0; color: var(--accent); font: 600 13px var(--f-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rec-card { width: min(460px, 100%); }
.rec-code { text-align: center; font-size: clamp(22px, 6vw, 30px); font-weight: 800; letter-spacing: .08em; padding: 14px 10px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--accent); user-select: all; overflow-wrap: anywhere; }
.rec-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rec-check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; padding: 6px 0; }
.rec-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.cl-meta span + time::before { content: "·"; margin-right: 10px; opacity: .6; }

[data-live="board"] > ol, [data-live="hall"] > ol, [data-live="levels"] > ol, [data-live="season"] > ol, [data-live="countries"] > ol { max-height: 458px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; }
[data-live="feed"] > ol { max-height: 676px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; }
.streak-chip { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 11px; border-radius: 999px; background: color-mix(in srgb, #FF9F43 16%, var(--surface)); color: var(--ink); font-weight: 800; font-size: 14px; text-decoration: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, #FF9F43 45%, transparent); white-space: nowrap; }
.streak-chip:hover { background: color-mix(in srgb, #FF9F43 26%, var(--surface)); }
.streak-chip.pending { opacity: .62; animation: streak-pulse 2.4s ease-in-out infinite; }
@keyframes streak-pulse { 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .streak-chip.pending { animation: none; } }
@media (max-width: 560px) { .streak-chip { height: 30px; padding: 0 8px; font-size: 13px; } }
.h2h-pill { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 6; max-width: calc(100% - 24px); padding: 7px 14px; border-radius: 999px; background: rgba(12, 16, 24, .86); color: #F5E7C8; font: 700 13px var(--f-body); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); pointer-events: none; text-align: center; transition: opacity .5s, transform .5s; }
.h2h-pill.out { opacity: 0; transform: translate(-50%, -8px); }
.ov-h2h { margin: 0 0 10px !important; font-weight: 700; color: var(--sun); }
.my-games-wrap { width: 100%; max-width: 380px; text-align: left; }
.my-games-wrap:empty { display: none; }
.my-games-wrap .sub-h { color: rgba(232, 235, 248, .7); }
.my-games-wrap .friend-list li { border-color: rgba(255, 255, 255, .1); }
.my-games-wrap .fl-main span { color: rgba(232, 235, 248, .65); }
.my-games li.turn .fl-main span { color: var(--accent); font-weight: 600; }
.h2h-list { list-style: none; margin: 0; padding: 0; }
.h2h-list > li { border-bottom: 1px solid var(--line); }
.h2h-list > li:last-child { border-bottom: 0; }
.h2h-list summary { display: flex; align-items: center; gap: 10px; padding: 10px 2px; cursor: pointer; list-style: none; }
.h2h-list summary::-webkit-details-marker { display: none; }
.h2h-list summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .2s; }
.h2h-list details[open] summary::after { transform: rotate(180deg); }
.h2h-who { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h-d { color: var(--muted); font-size: 13px; }
.h2h-games { list-style: none; margin: 0 0 10px; padding: 0 2px; display: grid; gap: 4px; }
.h2h-games li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); }
.h2h-games b { font-family: var(--f-mono); }
.pv-rec { font: 700 18px var(--f-display); margin: 4px 0 10px; }
[data-pv] { cursor: pointer; }
.lb-name[data-pv]:hover, .pv:hover { text-decoration: underline; text-underline-offset: 3px; }

:is([data-live="board"], [data-live="hall"], [data-live="levels"], [data-live="season"], [data-live="countries"], [data-live="feed"]) > ol { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 55%, transparent) transparent; padding-right: 6px; scroll-behavior: smooth; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); }
:is([data-live="board"], [data-live="hall"], [data-live="levels"], [data-live="season"], [data-live="countries"], [data-live="feed"]) > ol.at-end { -webkit-mask-image: none; mask-image: none; }
:is([data-live="board"], [data-live="hall"], [data-live="levels"], [data-live="season"], [data-live="countries"], [data-live="feed"]) > ol::-webkit-scrollbar { width: 6px; }
:is([data-live="board"], [data-live="hall"], [data-live="levels"], [data-live="season"], [data-live="countries"], [data-live="feed"]) > ol::-webkit-scrollbar-track { background: transparent; }
:is([data-live="board"], [data-live="hall"], [data-live="levels"], [data-live="season"], [data-live="countries"], [data-live="feed"]) > ol::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 999px; }
:is([data-live="board"], [data-live="hall"], [data-live="levels"], [data-live="season"], [data-live="countries"], [data-live="feed"]) > ol::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.season-prizes { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, #F2B630 6%, var(--surface)); }
.season-prizes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.season-prizes li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sp-medal { font-size: 20px; width: 24px; text-align: center; }
.sp-ring { width: 26px; height: 26px; border-radius: 50%; flex: none; -webkit-mask: radial-gradient(circle, transparent 7px, #000 8px); mask: radial-gradient(circle, transparent 7px, #000 8px); }
.sp-main { display: flex; flex-direction: column; min-width: 0; }
.sp-main b { font-size: 14px; }
.sp-main small { color: var(--muted); font-size: 12px; }
.sp-mine { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-trophy { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, #F2B630 18%, var(--surface)); }
.sp-last { border-top: 1px dashed var(--line); padding-top: 8px; }
.sp-last ol { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.sp-last span { color: var(--muted); }
.season-award { text-align: center; align-items: center; }
.sa-medal { font-size: 64px; line-height: 1; animation: ovpop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.sa-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.dlg-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.lb-page > :is(.panel, .chat-layout, p) + :is(.panel, .chat-layout) { margin-top: 16px; }
[data-live="ranked"] > ol { max-height: 458px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; }
.ranked-panel .lb-score { font-weight: 800; }
.online-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.find-btn svg { width: 18px; height: 18px; }
.find-btn.ready { border-color: var(--sun); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 35%, transparent); animation: mm-pulse 1.4s ease-in-out 3; }
@keyframes mm-pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--sun) 0%, transparent); } }
.mm-line { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: #B8BEDD; min-height: 0; }
.mm-line:empty { display: none; }
.mm-my { font-weight: 700; color: #DDE2F7; }
.mm-look { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; padding: 5px 12px; border-radius: 999px; font: 700 13px var(--f-body); color: #10131A; background: var(--sun); }
.mm-look svg { width: 14px; height: 14px; }
.mm-bgline { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #F5E7C8; }
.mm-bgline .name-inline { color: #F5E7C8; }
.mm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); animation: mm-blink 1.2s ease-in-out infinite; }
@keyframes mm-blink { 50% { opacity: .25; } }
.mm-search, .mm-found { gap: 12px; }
.mm-olo { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.mm-olo .olo { width: 92px; height: 92px; }
.mm-search .mm-olo .olo { animation: mm-bob 1.6s ease-in-out infinite; }
@keyframes mm-bob { 50% { transform: translateY(-5px) rotate(-3deg); } }
.mm-ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .12); border-top-color: var(--sun); animation: spin 1.1s linear infinite; }
.mm-clock { font-variant-numeric: tabular-nums; color: var(--sun); margin-left: 4px; }
.mm-sub { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.mm-lang button { height: 34px; padding: 0 12px; font-size: 13px; }
.mm-later { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.mm-later > p { color: #E8EBF8 !important; font-weight: 700; }
.mm-later-b { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mm-vs { display: flex; align-items: center; gap: 10px; font: 800 22px var(--f-display); color: #fff; }
.mm-rt { font: 800 15px var(--f-body); padding: 3px 10px; border-radius: 999px; background: var(--sun); color: #10131A; font-variant-numeric: tabular-nums; }
.mm-rt.guest { background: rgba(255, 255, 255, .16); color: #E8EBF8; }
.mm-pill { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); z-index: 6; max-width: calc(100% - 24px); display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 999px; background: rgba(12, 16, 24, .86); color: #E8EBF8; font: 700 13px var(--f-body); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); transition: opacity .5s, transform .5s; }
.mm-pill.rated { color: #F5E7C8; }
.mm-pill em { font-style: normal; opacity: .75; }
.mm-pill button { border: 0; border-radius: 999px; padding: 4px 10px; font: 800 12px var(--f-body); cursor: pointer; background: rgba(255, 255, 255, .14); color: #fff; }
.mm-pill.out { opacity: 0; transform: translate(-50%, -8px); pointer-events: none; }
.ov-rate { margin: 0 0 10px !important; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px; font-weight: 700; }
.ov-rate b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ov-rate b.up { color: #8BE36E; }
.ov-rate b.down { color: #FF7A8A; }
.ov-rate small { flex-basis: 100%; font-weight: 600; opacity: .7; font-size: 12px; }
.rc-pick { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.rc-pick .seg { align-self: flex-start; }
.rc-pick .seg button[aria-pressed="true"], .mm-lang button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.rc-note { margin: 0 !important; font-size: 13px; }
.mm-wrap { position: relative; display: flex; }
.mm-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 0; cursor: pointer; font: 800 13px var(--f-body); color: var(--ink); background: color-mix(in srgb, var(--sun) 18%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sun) 50%, transparent); white-space: nowrap; }
.mm-chip[hidden] { display: none; }
.mm-chip svg { width: 15px; height: 15px; }
.mm-chip-t { font-weight: 700; }
.mm-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: min(320px, calc(100vw - 24px)); padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5); }
.mm-pop-h { margin: 2px 6px 8px; font-weight: 800; font-size: 14px; }
.mm-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mm-pop li button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; font: 600 14px var(--f-body); }
.mm-pop li button:hover { background: var(--surface-2); }
.mm-pop li img { width: 44px; height: 33px; border-radius: 8px; object-fit: cover; flex: none; }
.mm-pop li span { flex: 1; min-width: 0; }
.mm-pop li b { font-size: 12px; color: var(--accent); white-space: nowrap; }
@media (max-width: 720px) { .mm-chip-t { display: none; } .mm-chip { height: 30px; padding: 0 9px; } }
@media (prefers-reduced-motion: reduce) { .mm-search .mm-olo .olo, .mm-dot, .find-btn.ready { animation: none; } .mm-ring { animation-duration: 3s; } }
.link-box { width: min(420px, 100%); display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.link-box input { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .35); color: #fff; font: 600 13px var(--f-body); text-overflow: ellipsis; }
.link-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.link-acts svg, .link-start svg { width: 16px; height: 16px; }
.link-code { margin: 0; font: 800 15px var(--f-body); letter-spacing: .08em; color: var(--sun) !important; }
.link-start { margin: 6px 0 10px; }
.code-join { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 8px; }
.code-join .field { flex: 1; min-width: 150px; }
.code-join input { text-transform: uppercase; letter-spacing: .08em; }
.sp-note { margin: 0; font-size: 12px; color: var(--muted); }
.chip .pin-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); flex: none; }
.chip .pin-ic svg { width: 14px; height: 14px; }
.sidebar .chip.pin { height: 40px; color: var(--ink); font-weight: 700; }
.sidebar .chip.pin:hover, .sidebar .chip.pin[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 16%, transparent); }
.sidebar .chip.pin .n { opacity: 1; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--c) 24%, transparent); color: var(--ink); }
.rail-sep { height: 1px; background: var(--line); margin: 10px 12px 6px; flex: none; }
.sort-row { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.sort-row .seg button { height: 32px; padding: 0 12px; font-size: 13px; }
.sec-head:has(.sort-row) { align-items: center; flex-wrap: wrap; }
@media (max-width: 1099px) { .rail-sep { width: 1px; height: 22px; margin: 0 2px; align-self: center; } .sidebar .chip.pin { margin-top: 0; height: 34px; } }
.chx { position: relative; width: 100%; max-width: min(100%, calc(var(--maxh) * var(--ar))); container-type: inline-size; display: flex; flex-direction: column; gap: 10px; }
.chx-wide { --maxh: min(82vh, 740px); }
.cabinet:fullscreen .chx-wide { --maxh: calc(100vh - 170px); }
.chx > .gcanvas { max-width: none; width: 100%; }
.chx-chat { display: flex; flex-direction: column; min-height: 0; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: #E6EAF8; font: 600 13px/1.35 var(--f-body); overflow: hidden; height: 190px; }
.chx-wide .chx-chat { position: absolute; height: auto; font-size: clamp(11px, 1.42cqw, 16px); border-radius: 1.2cqw; }
.chx-head { padding: .45em .8em; font-weight: 800; font-size: .86em; letter-spacing: .04em; text-transform: uppercase; color: #9AA4C8; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.chx-log { flex: 1; min-height: 0; overflow-y: auto; padding: .5em .7em; display: flex; flex-direction: column; gap: .35em; overscroll-behavior: contain; scrollbar-width: thin; }
.chx-row { overflow-wrap: anywhere; }
.chx-row.chx-sys { color: #9AA4C8; font-style: italic; }
.chx-row.chx-me { color: #BFD0FF; }
.chx-row.chx-offer { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; padding: .5em .6em; border-radius: .7em; background: rgba(255, 206, 84, .13); box-shadow: inset 0 0 0 1px rgba(255, 206, 84, .4); color: #FFE9B8; font-weight: 800; }
.chx-row.chx-offer.done { background: rgba(255, 255, 255, .05); box-shadow: none; color: #9AA4C8; font-weight: 600; }
.chx-row em { font-style: normal; font-weight: 800; color: #FFD98A; margin-left: .4em; }
.chx-row.chx-sys em { display: block; margin-left: 0; }
.chx-acts { display: inline-flex; gap: .4em; margin-left: auto; }
.chx-btn { border: 0; cursor: pointer; border-radius: .6em; padding: .4em .8em; font: 800 1em var(--f-body); color: #fff; background: rgba(255, 255, 255, .14); min-height: 32px; }
.chx-btn.hot { background: #4C74FF; }
.chx-btn:hover { filter: brightness(1.15); }
.chx-btn:focus-visible, .chx-form input:focus-visible { outline: 2px solid #9DB4FF; outline-offset: 1px; }
.chx-form { display: flex; gap: .4em; padding: .45em; border-top: 1px solid rgba(255, 255, 255, .07); }
.chx-form input { flex: 1; min-width: 0; border: 0; border-radius: .6em; padding: .4em .7em; background: rgba(0, 0, 0, .3); color: #fff; font: 600 max(1em, 16px) var(--f-body); }
.chx-wide .chx-form input { font-size: 1em; }
.chx-form input::placeholder { color: #7D88B0; }
.chx-form input:disabled { opacity: .5; }
.chx-head { display: flex; align-items: center; gap: .5em; }
.chx-tools { margin-left: auto; display: inline-flex; gap: .3em; }
.chx-tool { border: 0; cursor: pointer; border-radius: .5em; padding: .2em .55em; min-height: 26px; font: 800 .92em var(--f-body); letter-spacing: 0; text-transform: none; color: #C9D1EE; background: rgba(255, 255, 255, .08); }
.chx-tool[aria-pressed="true"] { background: rgba(255, 107, 107, .25); color: #FFD3D3; }
.chx-tool:hover { filter: brightness(1.2); }
.chx-tool:focus-visible { outline: 2px solid #9DB4FF; outline-offset: 1px; }
.chx-tool[hidden] { display: none; }
.chx-badge { min-width: 1.6em; padding: .05em .45em; border-radius: 1em; background: #FF5D73; color: #fff; font-size: .9em; text-align: center; letter-spacing: 0; }
.chx-badge[hidden] { display: none; }
.chx-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chx-bar { display: flex; gap: .4em; padding: .35em .45em 0; }
.chx-bar[hidden] { display: none; }
.chx-bar .chx-btn { min-height: 30px; padding: .3em .8em; }
.chx-btn:disabled { opacity: .5; cursor: default; filter: none; }
.chx-chat.folded { height: auto !important; }
.chx-chat.folded .chx-body { display: none; }
.chx-chat.muted .chx-opp { display: none; }
.mg-new { color: #FF8A9A; }
.screen.has-chat > .chx-chat { width: 100%; max-width: 560px; height: 220px; flex: none; }
@media (min-width: 900px) {
  .screen.has-chat { flex-direction: row; align-items: stretch; justify-content: center; }
  .screen.has-chat > .gcanvas { width: auto; flex: 1 1 0; min-width: 0; align-self: center; }
  .screen.has-chat > .chx-chat { width: 250px; max-width: none; height: auto; min-height: 280px; contain: size; }
  .screen.has-chat > .chx-chat.folded { contain: none; min-height: 0; align-self: flex-start; }
}
.mm-live { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-live:empty { display: none; }
.mm-live.in-game { padding: 8px 14px 0; }
.cabinet:has(.start:not([hidden])) .mm-live.in-game { display: none; }
.mm-live-b { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 8px 8px 8px 14px; border-radius: 999px; font: 700 13.5px var(--f-body); color: var(--ink); background: color-mix(in srgb, var(--sun) 16%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sun) 55%, transparent); animation: mm-glow 1.8s ease-in-out infinite; text-align: left; }
.mm-live-b b { padding: 4px 12px; border-radius: 999px; background: var(--sun); color: #10131A; font-weight: 800; }
.mm-live-b:hover b { filter: brightness(1.08); }
@keyframes mm-glow { 50% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sun) 55%, transparent), 0 0 0 5px color-mix(in srgb, var(--sun) 14%, transparent); } }
.mm-look { animation: mm-glow 1.8s ease-in-out infinite; }
.mm-look .mm-dot { background: #10131A; }
.find-n:empty { display: none; }
.find-n i { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--sun); color: #10131A; font: 800 12px var(--f-body); font-style: normal; animation: mm-blink 1.2s ease-in-out infinite; }
.mm-fail .mm-sub { max-width: 340px; }
@media (prefers-reduced-motion: reduce) { .mm-live-b, .mm-look, .find-n i { animation: none; } }
.mus { position: relative; display: inline-flex; align-items: center; flex: none; }
.cab-tools .mus .mus-btn { border-radius: 10px 0 0 10px; border-right: 0; }
.mus-btn.off { color: var(--muted); }
.mus-caret { width: 18px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 0 10px 10px 0; background: var(--surface); color: var(--muted); cursor: pointer; }
.mus-caret svg { width: 12px; height: 12px; transition: transform .15s; }
.mus-caret:hover, .mus.open .mus-caret { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.mus.open .mus-caret svg { transform: rotate(180deg); }
.mus-pop { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 45; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); white-space: nowrap; font: 600 12.5px var(--f-body); }
.mus-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.mus-pop small { color: var(--muted); font: inherit; }
.mus-pop b { min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.mus.open .mus-pop { display: flex; }
@media (hover: hover) { .mus:has(.mus-caret:hover) .mus-pop, .mus-pop:hover { display: flex; } }
.menu-row .mvol { width: 92px; }
@media (max-width: 760px) { .cab-tools .mus-caret { height: 34px; } }
@media (max-width: 560px) { #b-vol { width: 52px; } .cab-tools { gap: 5px; } .mus-pop { right: -40px; } }
