/* Syntherra UI — dark glass over a live WebGL world */
@font-face { font-family: 'Syn Display'; src: url('/fonts/orbitron.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Syn Text'; src: url('/fonts/exo2.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
:root {
  --bg: #06050d; --glass: rgba(14, 11, 30, .62); --glass2: rgba(22, 18, 46, .72); --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .16);
  --fg: #f3f1ff; --dim: #a7a1cc; --dim2: #6f6996; --cyan: #2ef2ff; --mag: #ff3dc8; --vio: #8a5bff; --gold: #ffd34a; --good: #5dffa8; --bad: #ff4d6a;
  --grad: linear-gradient(110deg, #2ef2ff 0%, #8a5bff 48%, #ff3dc8 100%);
  --r: 16px; --r2: 22px; --ui-scale: 1;
  --f-d: 'Syn Display', 'Segoe UI', system-ui, sans-serif; --f-t: 'Syn Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --nav-w: 232px; --top-h: 64px; --tab-h: 66px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 400 calc(15px * var(--ui-scale)) / 1.45 var(--f-t); overflow: hidden; overscroll-behavior: none; }
body.hc { --glass: rgba(0, 0, 0, .88); --glass2: rgba(0, 0, 0, .94); --dim: #e2dfff; --line: rgba(255, 255, 255, .35); }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; z-index: 0; }
#app { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
#hud { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
body.in-game #app { display: none; }
a { color: var(--cyan); text-decoration: none; }
h1, h2, h3 { font-family: var(--f-d); letter-spacing: .02em; margin: 0 0 .4em; line-height: 1.15; }
h1 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: .5em; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.dim { color: var(--dim); } .small { font-size: .85em; } .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .04em; } .center { text-align: center; } .hidden { display: none !important; } .grow { flex: 1; }
.eyebrow { font: 600 .72rem/1 var(--f-d); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); display: flex; align-items: center; gap: .5em; margin-bottom: .5em; }
.note { color: var(--gold); } .legal { color: var(--dim2); } .legal-links a { color: var(--dim); }

/* ---------- shell ---------- */
.shell { position: absolute; inset: 0; display: grid; grid-template-columns: var(--nav-w) 1fr; grid-template-rows: var(--top-h) 1fr; pointer-events: none; }
.nav { grid-row: 1 / 3; pointer-events: auto; background: linear-gradient(180deg, rgba(8, 6, 20, .86), rgba(8, 6, 20, .66)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: calc(14px + var(--sat)) 12px calc(12px + var(--sab)) calc(12px + var(--sal)); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; font: 800 1.12rem var(--f-d); letter-spacing: .16em; color: var(--fg); }
.brand img, .tb-brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(46, 242, 255, .6)); }
.brand span, .tb-brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav nav { display: flex; flex-direction: column; gap: 2px; }
.nav-i { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--dim); font-weight: 600; transition: background .2s, color .2s; position: relative; }
.nav-i:hover { background: rgba(255, 255, 255, .05); color: var(--fg); }
.nav-i.on { color: var(--fg); background: linear-gradient(90deg, rgba(46, 242, 255, .16), rgba(138, 91, 255, .08)); }
.nav-i.on::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad); box-shadow: 0 0 12px var(--cyan); }
.nav-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px; color: var(--dim2); font-size: .8rem; }
.net-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim2); }
.net-dot.online { background: var(--good); box-shadow: 0 0 8px var(--good); } .net-dot.offline { background: var(--gold); }
.topbar { grid-column: 2; pointer-events: auto; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: calc(var(--sat)) calc(18px + var(--sar)) 0 18px; }
.tb-brand { display: none; align-items: center; gap: 8px; font: 800 1rem var(--f-d); letter-spacing: .14em; color: var(--fg); margin-right: auto; }
.tb-right { display: flex; align-items: center; gap: 8px; }
.tb-level, .tb-cur, .tb-avatar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--fg); font-weight: 700; }
.tb-level b { font-family: var(--f-d); } .tb-level i { width: 54px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.tb-level i::after { content: ''; position: absolute; inset: 0; width: var(--p); background: var(--grad); }
.tb-cur.credits .ic { color: var(--cyan); } .tb-cur.prisms .ic { color: var(--gold); }
.tb-avatar { width: 38px; padding: 0; justify-content: center; background: linear-gradient(135deg, hsl(var(--h) 90% 60%), hsl(calc(var(--h) + 60) 90% 50%)); font-family: var(--f-d); }
.shell::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6, 5, 13, .72) 0%, rgba(6, 5, 13, .35) 45%, rgba(6, 5, 13, .1) 100%), linear-gradient(0deg, rgba(6, 5, 13, .55), transparent 40%); }
.view { grid-column: 2; pointer-events: auto; overflow-y: auto; overflow-x: hidden; padding: 8px calc(28px + var(--sar)) 40px 28px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; -webkit-overflow-scrolling: touch; }
.view.enter > * { animation: rise .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.tabbar { display: none; }
.view > section { max-width: 1240px; margin: 0 auto; }

/* ---------- panels / cards ---------- */
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r2); padding: 20px; backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); margin-bottom: 18px; }
.panel.glow { box-shadow: 0 0 0 1px rgba(46, 242, 255, .18), 0 18px 60px rgba(46, 242, 255, .12); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 12px; }
.panel-h h3 { margin: 0; } .more { font-size: .85rem; color: var(--dim); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 > .panel, .grid-3 > .panel { margin-bottom: 0; } .grid-2 { margin-bottom: 18px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 18px; }
.page-h h1 { margin: 0; }
.sec-h { margin: 26px 0 12px; }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.center { justify-content: center; flex-wrap: wrap; }
.card { font: inherit; color: inherit; text-align: left; cursor: pointer; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); border-color: rgba(46, 242, 255, .45); box-shadow: 0 12px 34px rgba(46, 242, 255, .16); }
.card:active { transform: scale(.98); }

/* ---------- buttons / inputs ---------- */
.btn { font: 700 .92rem var(--f-t); letter-spacing: .02em; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .06); color: var(--fg); cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, .12); }
.btn:active { transform: scale(.97); }
.btn.primary { border: 0; background: var(--grad); color: #07040f; box-shadow: 0 6px 24px rgba(138, 91, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.primary:hover { box-shadow: 0 8px 32px rgba(255, 61, 200, .55); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--dim); }
.btn.danger { border-color: rgba(255, 77, 106, .5); color: #ffb3c0; }
.btn.big { min-height: 54px; font-size: 1.05rem; width: 100%; margin-top: 18px; font-family: var(--f-d); letter-spacing: .12em; }
.btn.tiny { min-height: 30px; padding: 0 10px; font-size: .8rem; border-radius: 9px; }
.btn.on { border-color: var(--cyan); color: var(--cyan); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
input, select { font: inherit; color: var(--fg); background: rgba(0, 0, 0, .35); border: 1px solid var(--line2); border-radius: 12px; min-height: 42px; padding: 0 14px; outline: none; }
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46, 242, 255, .15); }
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; border: 0; padding: 0; min-height: 28px; flex: 1; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; margin-top: -7px; background: var(--fg); box-shadow: 0 0 12px var(--cyan); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--fg); }
select option { background: #120e28; }
.tgl { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 8px 0; user-select: none; }
.tgl input { display: none; }
.tgl > span { width: 44px; height: 26px; border-radius: 26px; background: rgba(255, 255, 255, .12); position: relative; flex: none; transition: background .2s; }
.tgl > span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tgl input:checked + span { background: var(--grad); }
.tgl input:checked + span::after { transform: translateX(18px); }
.tgl small { display: block; }
.slider { display: flex; align-items: center; gap: 12px; margin: 8px 0; } .slider span { min-width: 120px; color: var(--dim); } .slider b { min-width: 56px; text-align: right; }
.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 12px; } .field span { color: var(--dim); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: rgba(0, 0, 0, .3); padding: 5px; border-radius: 14px; border: 1px solid var(--line); }
.seg button { font: inherit; color: var(--dim); background: transparent; border: 0; border-radius: 10px; padding: 10px 12px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.seg button b { color: inherit; font-family: var(--f-d); letter-spacing: .06em; }
.seg button.on { background: var(--glass2); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(46, 242, 255, .5), 0 0 18px rgba(46, 242, 255, .2); }
.seg.small button { padding: 7px 12px; text-align: center; font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button { font: 700 .88rem var(--f-t); color: var(--dim); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; cursor: pointer; display: flex; flex-direction: column; align-items: center; min-width: 88px; }
.pills button small { font-weight: 600; font-size: .72rem; opacity: .8; }
.pills button.on { color: #07040f; background: var(--grad); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { font: 600 .85rem var(--f-t); color: var(--dim); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.chip.on { color: var(--fg); border-color: var(--mag); box-shadow: 0 0 14px rgba(255, 61, 200, .35); }
.tabs { display: flex; gap: 4px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); padding: 4px; border-radius: 12px; flex-wrap: wrap; }
.tabs a { color: var(--dim); padding: 7px 14px; border-radius: 9px; font-weight: 600; }
.tabs a.on { background: var(--glass2); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255, 61, 200, .45); }
.lbl { display: block; margin: 16px 0 8px; font: 700 .74rem var(--f-d); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.tag { display: inline-flex; align-items: center; gap: 4px; font: 700 .7rem var(--f-d); letter-spacing: .1em; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--fg); }
.tag.hot { background: linear-gradient(90deg, #ff3dc8, #ff7a3d); color: #fff; } .tag.gold { background: linear-gradient(90deg, #ffd34a, #ff9a3a); color: #1a1000; } .tag.dim { color: var(--dim); }
.badge.grade { font: 900 .9rem var(--f-d); padding: 3px 8px; border-radius: 8px; background: rgba(0, 0, 0, .4); }
.g-sp, .g-s { color: var(--gold); text-shadow: 0 0 12px rgba(255, 211, 74, .7); } .g-a { color: var(--cyan); } .g-b { color: var(--good); } .g-c { color: #ffb36b; } .g-d { color: var(--bad); }

/* ---------- covers / songs ---------- */
.cover { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; background: linear-gradient(135deg, var(--a), var(--b)); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover span { position: relative; font: 900 1.25rem var(--f-d); color: rgba(255, 255, 255, .92); text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.cover.big { width: 120px; height: 120px; border-radius: 18px; } .cover.big span { font-size: 2.1rem; }
.cover.up { background: linear-gradient(135deg, #1d1a3a, #2b2152); color: var(--cyan); }
.cover.up .ic { width: 40%; height: 40%; }
.cover.art { background-color: #1d1a3a; background-size: cover; background-position: center; background-repeat: no-repeat; }
.dslot { display: contents; }
.dc-trend { margin-top: 4px; font: 700 .8rem var(--f-d); color: var(--cyan); letter-spacing: .02em; }
.song { display: flex; align-items: center; gap: 12px; padding: 10px; position: relative; min-width: 0; }
.song-info { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.song-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1rem; }
.song-info small { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song .tag { position: absolute; top: 8px; right: 8px; }
.song .badge { position: absolute; bottom: 8px; right: 10px; }
.song .del { position: absolute; top: 6px; right: 6px; opacity: .5; padding: 4px; } .song .del:hover { opacity: 1; color: var(--bad); }
.song-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; scroll-snap-type: x mandatory; }
.song-row > * { scroll-snap-align: start; }
.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1fr minmax(320px, 520px); gap: 24px; align-items: center; margin: 10px 0 22px; }
.hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); background: linear-gradient(90deg, #fff, #cfc8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.song-input { margin: 0; }
.si-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.si-tabs button { font: 700 .85rem var(--f-t); display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--dim); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 10px; padding: 9px 6px; cursor: pointer; }
.si-tabs button.on { color: var(--fg); border-color: rgba(46, 242, 255, .55); background: rgba(46, 242, 255, .08); }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; min-height: 128px; border: 2px dashed rgba(46, 242, 255, .35); border-radius: 16px; cursor: pointer; padding: 16px; transition: background .2s, border-color .2s; background: rgba(46, 242, 255, .03); }
.drop b { font-family: var(--f-d); font-size: 1rem; letter-spacing: .04em; } .drop span { color: var(--dim); font-size: .85rem; }
.drop:hover, .drop.over { background: rgba(46, 242, 255, .1); border-color: var(--cyan); }
.yt-form input { flex: 1; min-width: 0; }
.gen-seed { width: 140px; } .gen-len { min-width: 140px; }
.si-body[data-p="gen"] .row { flex-wrap: wrap; } .si-body[data-p="gen"] .gen-len, .si-body[data-p="gen"] .gen-seed { flex: 1 1 120px; min-width: 0; width: auto; } .si-body[data-p="gen"] .gen-go { flex: 1 1 100%; justify-content: center; }
.daily-card { display: flex; gap: 18px; align-items: center; cursor: pointer; margin: 0; }
.dc-body { flex: 1; min-width: 0; } .dc-body h2 { margin: .1em 0 .2em; } .dc-count { margin: 8px 0 12px; font: 600 .85rem var(--f-d); color: var(--gold); letter-spacing: .06em; }
.ch-row { display: grid; grid-template-columns: 1fr 90px 44px; align-items: center; gap: 10px; padding: 7px 0; font-size: .9rem; }
.ch-row.big { grid-template-columns: 1fr 140px 52px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ch-row.big small { display: block; color: var(--dim); } .ch-row em { font-style: normal; color: var(--dim); text-align: right; }
.ch-row.done span, .ch-row.done b { color: var(--good); }
.bar { height: 7px; border-radius: 7px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 7px; transition: width .6s; }
.event-banner { margin-top: 14px; border-radius: 14px; padding: 14px 16px; background-size: cover; background-position: center; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); }
.event-banner b { font-family: var(--f-d); } .event-banner span { color: var(--gold); font-size: .85rem; } .event-banner.live { box-shadow: 0 0 22px rgba(255, 211, 74, .35); }
.recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.recent-i { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 10px; padding: 12px 14px; }
.recent-i small { color: var(--dim); } .recent-i em { font-style: normal; font-family: var(--f-d); color: var(--cyan); grid-column: 2; grid-row: 2; text-align: right; } .recent-i .badge { grid-column: 2; grid-row: 1; justify-self: end; }

/* ---------- setup modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.modal-wrap { position: fixed; inset: 0; background: rgba(3, 2, 10, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; pointer-events: auto; animation: fade .2s; }
.modal-wrap.out { opacity: 0; transition: opacity .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: linear-gradient(180deg, rgba(24, 19, 52, .95), rgba(12, 9, 28, .96)); border: 1px solid var(--line2); border-radius: 24px; padding: 24px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(46, 242, 255, .12); animation: pop .28s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { width: min(760px, 100%); }
@keyframes pop { from { transform: translateY(16px) scale(.97); opacity: 0; } }
.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: var(--fg); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.setup-head { display: flex; gap: 18px; align-items: center; margin-bottom: 4px; padding-right: 36px; }
.setup-head h2 { margin: .1em 0; font-size: 1.5rem; }
.world-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; }
.wchip { position: relative; height: 80px; border-radius: 12px; border: 2px solid transparent; background-size: cover; background-position: center 35%; background-color: #1a1533; cursor: pointer; display: flex; align-items: flex-end; padding: 6px; color: #fff; font: 700 .72rem var(--f-t); text-shadow: 0 1px 6px #000; overflow: hidden; }
.wchip::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent 60%); }
.wchip span { position: relative; }
.wchip.on { border-color: var(--cyan); box-shadow: 0 0 18px rgba(46, 242, 255, .5); }
.wchip.locked { filter: grayscale(.8) brightness(.55); }
.wchip.locked .ic { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; }
.opts { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 10px; }
.practice-opts { width: 100%; } .practice-opts label { display: flex; align-items: center; gap: 10px; }
.lb-mini .pb { margin: 14px 0 6px; color: var(--gold); }
.lb { list-style: none; margin: 8px 0 0; padding: 0; } .lb li { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); } .lb li em { font-style: normal; color: var(--cyan); }
.confirm-msg { font-size: 1.05rem; padding-right: 30px; }
.yt-card { display: flex; gap: 12px; align-items: center; margin: 12px 0; } .yt-card img { width: 120px; border-radius: 10px; } .yt-card div { display: flex; flex-direction: column; } .yt-card span { color: var(--dim); }
.checklist { list-style: none; padding: 0; } .checklist li { display: flex; gap: 8px; margin: 8px 0; } .checklist .ic { color: var(--good); }

/* ---------- loading ---------- */
.loading-ov { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(10, 6, 30, .55), rgba(3, 2, 10, .92)); backdrop-filter: blur(4px); animation: fade .25s; }
.loading-ov.out { opacity: 0; transition: opacity .3s; }
.ld-card { width: min(440px, 90vw); text-align: center; }
.ld-title { font: 800 1.5rem var(--f-d); margin-bottom: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-step { color: var(--dim); margin-bottom: 14px; min-height: 1.4em; }
.ld-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; } .ld-bar i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 14px var(--cyan); transition: width .25s; }
.ld-tip { margin-top: 22px; color: var(--dim2); font-size: .9rem; }
.up-prog .ld-step { margin-top: 8px; }

/* ---------- results ---------- */
.results { max-width: 1000px; margin: 0 auto; }
.res-head { display: flex; gap: 28px; align-items: center; margin: 12px 0 22px; }
.res-grade { font: 900 clamp(4.2rem, 11vw, 7.5rem)/1 var(--f-d); min-width: 1.3em; text-align: center; animation: gradeIn .7s cubic-bezier(.2, 1.4, .3, 1) both; }
@keyframes gradeIn { from { transform: scale(2.2) rotate(-8deg); opacity: 0; filter: blur(10px); } }
.res-score { font: 800 clamp(2rem, 5vw, 3.2rem) var(--f-d); letter-spacing: .03em; }
.res-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.res-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 16px; }
.res-grid .panel { margin: 0; }
.stat-big { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.stat-big span { color: var(--dim); } .stat-big b { font: 800 1.35rem var(--f-d); }
.bar-row { display: grid; grid-template-columns: 82px 1fr 52px; gap: 10px; align-items: center; margin: 9px 0; font-weight: 700; font-size: .85rem; }
.bar-row b { text-align: right; } .bar-row.perfect span { color: var(--gold); } .bar-row.great span { color: var(--cyan); } .bar-row.good span { color: var(--good); } .bar-row.miss span { color: var(--bad); }
.bar-row.miss .bar i { background: var(--bad); }
.rewards .rw { display: flex; flex-wrap: wrap; gap: 14px; font: 700 1.1rem var(--f-d); } .rewards .rw .ic { color: var(--cyan); }
.lvlup { margin-top: 12px; color: var(--gold); font: 700 1rem var(--f-d); }
.ach-new { margin-top: 8px; display: flex; gap: 8px; align-items: center; color: var(--gold); }
.afk-note { margin: 6px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 90, 90, .1); border: 1px solid rgba(255, 90, 90, .35); color: #ffb0b0; font-weight: 600; }
.res-actions { margin-top: 22px; }

/* ---------- tables / charts ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.lb-table { width: 100%; border-collapse: collapse; } .lb-table th { text-align: left; color: var(--dim); font: 700 .72rem var(--f-d); letter-spacing: .12em; text-transform: uppercase; padding: 8px 6px; }
.lb-table td { padding: 9px 6px; border-top: 1px solid var(--line); } .lb-table tr.me td { background: rgba(46, 242, 255, .08); }
.lb-table td a { color: var(--fg); font-weight: 700; } .lvl { color: var(--dim2); margin-left: 6px; }
/* supporter heart: the number sits inside the heart */
.heart { position: relative; display: inline-grid; place-items: center; width: 26px; height: 24px; vertical-align: middle; flex: none; filter: drop-shadow(0 0 6px rgba(255, 61, 120, .55)); }
.heart svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: #ff3d78; }
.heart b { position: relative; font: 800 10.5px/1 var(--f-t); color: #fff; padding-bottom: 3px; letter-spacing: -.02em; }
h1 .heart { width: 34px; height: 31px; } h1 .heart b { font-size: 13px; }
.chart-list { display: flex; flex-direction: column; gap: 8px; }
.chart-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.cr-rank { font: 900 1.3rem var(--f-d); width: 36px; text-align: center; color: var(--dim); }
.chart-row .cover { width: 48px; height: 48px; } .delta { font: 700 .8rem var(--f-d); color: var(--dim); } .delta.up { color: var(--good); } .delta.down { color: var(--bad); }
table.mini { width: 100%; border-collapse: collapse; font-size: .88rem; } table.mini td, table.mini th { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; }
details summary { cursor: pointer; color: var(--cyan); margin: 12px 0 6px; }

/* ---------- garage / shop ---------- */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.item { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.item.eq { border-color: var(--cyan); box-shadow: 0 0 22px rgba(46, 242, 255, .22); }
.item-img { width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; background: #15112c center / cover no-repeat; display: flex; align-items: center; justify-content: center; gap: 6px; }
.item-img.veh { background-size: contain; background-color: rgba(255, 255, 255, .03); }
.item-img.notes i { width: 18%; height: 22%; border-radius: 40%; background: var(--c); box-shadow: 0 0 16px var(--c); }
.item-img.frame { background: radial-gradient(circle at 50% 45%, #2c2156, #120c24 70%); padding: 6px; }
.item-img.title { background: linear-gradient(135deg, #1d1838, #2c1636); padding: 8px; }
.rar { font: 700 .66rem var(--f-d); letter-spacing: .12em; text-transform: uppercase; } .rar.common { color: #b8b3d8; } .rar.rare { color: var(--cyan); } .rar.epic { color: #c78bff; } .rar.legendary { color: var(--gold); } .rar.exclusive { color: #ff6fb8; } .rar.event { color: #7affc4; }
.item .btn { margin-top: auto; align-self: stretch; }
.wallet { display: flex; align-items: center; gap: 6px; font: 700 1rem var(--f-d); } .wallet .ic { color: var(--cyan); } .wallet .ic:nth-of-type(2) { color: var(--gold); }
.packs { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.pack { font: inherit; color: var(--fg); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; opacity: .6; }
.pack b { display: flex; align-items: center; gap: 4px; font-family: var(--f-d); } .pack .ic { color: var(--gold); }
.redeem input { flex: 1; min-width: 0; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ach { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; opacity: .55; }
.ach .ic { grid-row: 1 / 3; width: 28px; height: 28px; color: var(--dim2); } .ach small { color: var(--dim); }
.ach.got { opacity: 1; border-color: rgba(255, 211, 74, .45); } .ach.got .ic { color: var(--gold); filter: drop-shadow(0 0 8px var(--gold)); }

/* ---------- leagues ---------- */
.lg-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 800 .74rem var(--f-d); letter-spacing: .1em; }
.lg-badge.bronze { background: #6b3d1f; color: #ffcf9e; } .lg-badge.silver { background: #4a5268; color: #e8eeff; } .lg-badge.gold { background: #6b5210; color: #ffe27a; } .lg-badge.platinum { background: #1f5a63; color: #a8fbff; } .lg-badge.diamond { background: #3a2a7a; color: #d6c8ff; }
.lg-table { list-style: none; padding: 0; margin: 0; } .lg-table li { display: grid; grid-template-columns: 36px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.lg-table li.up { box-shadow: inset 3px 0 0 var(--good); } .lg-table li.down { box-shadow: inset 3px 0 0 var(--bad); } .lg-table li.me { background: rgba(46, 242, 255, .08); } .lg-table em { font-style: normal; color: var(--dim); }
.rules { padding-left: 18px; } .rules li { margin: 6px 0; color: var(--dim); }

/* ---------- profile ---------- */
.prof-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.prof-head > div:nth-child(2) { flex: 1; min-width: 200px; }
.avatar.xl, .av { display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, hsl(var(--h) 90% 60%), hsl(calc(var(--h) + 60) 90% 50%)); font: 900 2rem var(--f-d); color: #fff; }
.avatar.xl { width: 88px; height: 88px; box-shadow: 0 0 30px rgba(138, 91, 255, .5); } .av { width: 34px; height: 34px; font-size: .95rem; flex: none; }
.xpbar { position: relative; height: 18px; border-radius: 18px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 10px; max-width: 420px; }
.xpbar i { position: absolute; inset: 0 auto 0 0; background: var(--grad); } .xpbar span { position: relative; display: block; text-align: center; font: 700 .72rem/18px var(--f-d); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 14px; } .stat b { display: block; font: 800 1.5rem var(--f-d); } .stat span { color: var(--dim); font-size: .85rem; }
.row-t { border-bottom: 1px solid var(--line); }
.auth { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.ref-prog { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; } .ref-prog .bar { flex: 1; }
.fr { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); } .fr a { color: var(--fg); }

/* ---------- duel ---------- */
.big-act { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 22px; min-height: 160px; }
.big-act .ic { width: 34px; height: 34px; color: var(--cyan); } .big-act b { font: 800 1.15rem var(--f-d); } .big-act small { color: var(--dim); }
.big-act.join .code-in { width: 100%; text-transform: uppercase; font-size: 1.2rem; text-align: center; letter-spacing: .3em; }
.lobby-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.room-code { font-size: 2rem; font-weight: 800; letter-spacing: .3em; color: var(--cyan); text-shadow: 0 0 16px rgba(46, 242, 255, .6); }
.players { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.pl { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 0 10px; align-items: center; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.pl .av { grid-row: 1 / 3; width: 46px; height: 46px; } .pl small { color: var(--dim); } .pl em { grid-column: 3; grid-row: 1 / 3; font-style: normal; color: var(--dim); }
.pl.ready { border-color: var(--good); } .pl.ready em { color: var(--good); }
.pl.wait { display: flex; gap: 12px; color: var(--dim); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--cyan); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lobby-song { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; } .lobby-song > div { flex: 1; min-width: 200px; display: flex; flex-direction: column; } .lobby-song small { color: var(--dim); }
.duel-res { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; } .duel-res .win b { color: var(--gold); }

/* ---------- settings ---------- */
.keys { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0; } .keys span { min-width: 110px; color: var(--dim); }
.key { font: 800 .85rem var(--f-d); min-width: 44px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .06); color: var(--fg); cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35); }
.key.listen { border-color: var(--mag); color: var(--mag); animation: blink .8s infinite; }
@keyframes blink { 50% { opacity: .4; } }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.more-i { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; text-decoration: none; color: var(--fg); font-weight: 700; }
.more-i .ic { width: 32px; height: 32px; color: var(--cyan); }

/* ---------- tutorial / calibration ---------- */
.tut-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tut-step { position: relative; margin: 0; } .tut-n { position: absolute; top: 14px; right: 16px; font: 900 2rem var(--f-d); color: rgba(255, 255, 255, .08); }
.tut-ill { height: 90px; border-radius: 12px; margin-bottom: 12px; background: linear-gradient(180deg, rgba(46, 242, 255, .08), rgba(255, 61, 200, .08)); position: relative; overflow: hidden; }
.tut-ill::before { content: ''; position: absolute; left: 50%; bottom: 16px; width: 70%; height: 10px; transform: translateX(-50%); border-radius: 10px; background: rgba(46, 242, 255, .5); box-shadow: 0 0 18px var(--cyan); }
.tut-ill::after { content: ''; position: absolute; left: 30%; width: 34px; height: 16px; border-radius: 8px; background: var(--mag); box-shadow: 0 0 16px var(--mag); animation: fall 1.4s linear infinite; }
.ill-lanes2::after { width: 34px; height: 60px; background: linear-gradient(0deg, var(--cyan), transparent); left: 55%; }
.ill-lanes3::after { background: #fff; box-shadow: 0 0 22px #fff; left: 44%; }
.ill-surf1::after, .ill-surf2::after { border-radius: 6px; width: 22px; height: 22px; background: var(--gold); animation: fall 1s linear infinite, sway 2s ease-in-out infinite; }
.ill-calib::after { left: 46%; border-radius: 50%; width: 22px; height: 22px; top: 30px; background: var(--cyan); animation: beat 0.6s ease-out infinite; }
@keyframes fall { from { top: -20px; } to { top: 80px; } }
@keyframes sway { 50% { left: 62%; } }
@keyframes beat { 0% { transform: scale(1.6); opacity: 1; } 100% { transform: scale(.8); opacity: .3; } }
.tut-offer { text-align: center; padding: 6px 4px; } .tut-emblem { width: 72px; height: 72px; filter: drop-shadow(0 0 16px rgba(46, 242, 255, .7)); }
.calib-pad { margin: 20px auto; width: 210px; height: 210px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(46, 242, 255, .15), rgba(0, 0, 0, .3)); border: 2px solid rgba(46, 242, 255, .5); cursor: pointer; position: relative; user-select: none; touch-action: manipulation; font: 900 1.6rem var(--f-d); letter-spacing: .2em; }
.calib-pad .pulse { position: absolute; inset: -2px; border-radius: 50%; border: 3px solid var(--mag); opacity: 0; }
.calib-pad .pulse.go { animation: ring .5s ease-out; } .calib-pad.hit { animation: tapf .15s; }
@keyframes ring { from { opacity: 1; transform: scale(.9); } to { opacity: 0; transform: scale(1.25); } }
@keyframes tapf { 50% { background: rgba(46, 242, 255, .4); } }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 40; top: calc(76px + var(--sat)); right: 18px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; max-width: 360px; background: var(--glass2); border: 1px solid var(--line2); border-left: 3px solid var(--cyan); border-radius: 12px; padding: 12px 16px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: slideIn .3s cubic-bezier(.2, .9, .3, 1.1); }
.toast.good { border-left-color: var(--good); } .toast.bad { border-left-color: var(--bad); } .toast.out { opacity: 0; transform: translateX(20px); transition: .4s; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.fatal { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; pointer-events: auto; }

/* ---------- HUD ---------- */
.hud { position: absolute; inset: 0; font-family: var(--f-d); user-select: none; -webkit-user-select: none; }
.hud-top { position: absolute; top: calc(12px + var(--sat)); left: calc(16px + var(--sal)); right: calc(16px + var(--sar)); display: flex; align-items: flex-start; gap: 14px; }
.hud-score .score { font: 900 clamp(1.6rem, 4vw, 2.6rem)/1 var(--f-d); letter-spacing: .03em; text-shadow: 0 0 18px rgba(46, 242, 255, .6); font-variant-numeric: tabular-nums; }
.hud-score .acc { color: var(--dim); font-size: .9rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.hud-score .ghost { font-size: .82rem; margin-top: 4px; } .ghost.ahead { color: var(--good); } .ghost.behind { color: var(--bad); }
.hud-song { flex: 1; max-width: 420px; margin: 4px auto 0; text-align: center; }
.hud-song .title { font-size: .8rem; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-song .prog { margin-top: 6px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; } .hud-song .prog i { display: block; height: 100%; width: 0; background: var(--grad); }
.hud-pause { margin-left: auto; pointer-events: auto; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(10, 8, 24, .55); display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; backdrop-filter: blur(8px); }
.hud-pause span { width: 5px; height: 18px; border-radius: 3px; background: var(--fg); }
.hud.watching .hud-pause { opacity: .7; }
/* volume next to pause: small slider panel, the game keeps running underneath */
.hud-btns { margin-left: auto; position: relative; display: flex; align-items: flex-start; gap: 10px; }
.hud-btns .hud-pause { margin-left: 0; }
.hud-volbtn { pointer-events: auto; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid var(--line2); background: rgba(10, 8, 24, .55); color: var(--fg); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .15s, box-shadow .15s; }
.hud-volbtn svg { width: 24px; height: 24px; } .hud-volbtn.muted { color: var(--dim); }
.hud-top.vol-open { z-index: 4; }
.hud-top.vol-open .hud-volbtn { border-color: rgba(46, 242, 255, .75); box-shadow: 0 0 18px rgba(46, 242, 255, .35); }
.hud-volpop { display: none; pointer-events: auto; position: absolute; right: 0; top: calc(100% + 10px); width: min(290px, calc(100vw - 32px)); align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; background: rgba(10, 8, 24, .84); border: 1px solid rgba(46, 242, 255, .35); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hud-top.vol-open .hud-volpop { display: flex; animation: vpIn .16s ease-out; }
@keyframes vpIn { from { opacity: 0; transform: translateY(-6px); } }
.vp-mute { flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.vp-mute svg { width: 22px; height: 22px; }
.hud-volpop input[type=range] { flex: 1; min-width: 0; min-height: 40px; cursor: pointer; }
.hud-volpop input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--cyan) 0 var(--p, 100%), rgba(255, 255, 255, .14) var(--p, 100%) 100%); }
.hud-volpop input[type=range]::-moz-range-track { background: rgba(255, 255, 255, .14); }
.hud-volpop input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--cyan); }
.vp-val { flex: none; min-width: 3em; text-align: right; font: 700 .9rem var(--f-d); font-variant-numeric: tabular-nums; }
.hud-judge { position: absolute; left: 0; top: 0; width: 0; height: 0; transition: transform .3s; }
.judge { position: absolute; left: 0; top: -40px; transform: translateX(-50%); white-space: nowrap; font: 900 clamp(1.3rem, 3.2vw, 2rem) var(--f-d); letter-spacing: .08em; opacity: 0; }
.judge.pop { animation: jpop .45s cubic-bezier(.2, 1.5, .3, 1) both; }
@keyframes jpop { 0% { opacity: 0; transform: translateX(-50%) scale(1.6); } 20% { opacity: 1; transform: translateX(-50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-14px); } }
.judge.perfect { color: #fff6c8; text-shadow: 0 0 18px #ffd34a, 0 0 4px #fff; } .judge.great { color: #b8fbff; text-shadow: 0 0 16px var(--cyan); } .judge.good { color: #b8ffd8; text-shadow: 0 0 14px var(--good); } .judge.miss { color: #ff8da0; text-shadow: 0 0 14px var(--bad); }
.combo { position: absolute; left: 0; top: 2px; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.combo b { display: block; font: 900 clamp(2rem, 5vw, 3.2rem)/1 var(--f-d); text-shadow: 0 0 20px rgba(255, 61, 200, .7); }
.combo span { font-size: .7rem; letter-spacing: .3em; color: var(--dim); text-transform: uppercase; transition: opacity .3s; }
.combo.milestone b { animation: cm .5s; }
@keyframes cm { 40% { transform: scale(1.35); color: var(--gold); } }
.hud-mult { position: absolute; right: calc(20px + var(--sar)); top: calc(80px + var(--sat)); }
.hud-mult .ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 3px solid rgba(255, 255, 255, .2); background: rgba(10, 8, 24, .45); }
.hud-mult b { font: 900 1.25rem var(--f-d); }
.ring.m2 { border-color: var(--cyan); box-shadow: 0 0 16px rgba(46, 242, 255, .5); } .ring.m3 { border-color: var(--good); box-shadow: 0 0 18px rgba(93, 255, 168, .5); } .ring.m4 { border-color: var(--mag); box-shadow: 0 0 22px rgba(255, 61, 200, .6); }
.ring.m6, .ring.m8 { border-color: var(--gold); box-shadow: 0 0 28px rgba(255, 211, 74, .8); color: var(--gold); }
.hud-od { position: absolute; right: calc(28px + var(--sar)); top: calc(160px + var(--sat)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: auto; }
.hud-od .bar { width: 12px; height: 140px; border-radius: 12px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.hud-od .bar i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(0deg, #ffd34a, #fff2b0); box-shadow: 0 0 14px var(--gold); transition: height .2s; }
.od-btn { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255, 211, 74, .4); background: rgba(10, 8, 24, .6); color: rgba(255, 211, 74, .5); font-size: 1.4rem; cursor: pointer; }
.hud-od.ready .od-btn { color: #1a1000; background: var(--gold); border-color: #fff; box-shadow: 0 0 26px var(--gold); animation: blink 1s infinite; }
.hud-od.active .bar i { background: linear-gradient(0deg, #ff9a3a, #ffd34a); }
.hud-power { position: absolute; left: 50%; top: calc(70px + var(--sat)); transform: translateX(-50%); font: 800 .9rem var(--f-d); letter-spacing: .15em; color: var(--gold); text-shadow: 0 0 14px var(--gold); }
.hud-center-msg { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); font: 900 clamp(1.6rem, 5vw, 3rem) var(--f-d); letter-spacing: .1em; opacity: 0; white-space: nowrap; }
.hud-center-msg.show { animation: msg 1.2s ease-out both; }
.hud-center-msg.od { color: var(--gold); text-shadow: 0 0 26px var(--gold); } .hud-center-msg.odgain { color: #fff; font-size: 1.2rem; top: 40%; } .hud-center-msg.bad { color: var(--bad); text-shadow: 0 0 22px var(--bad); }
@keyframes msg { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%); } }
.countdown { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font: 900 clamp(4rem, 16vw, 9rem) var(--f-d); text-shadow: 0 0 40px var(--mag); opacity: 0; }
.countdown.tick { animation: cd .9s ease-out both; }
@keyframes cd { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.7); } }
.pause-menu { position: absolute; inset: 0; pointer-events: auto; background: rgba(3, 2, 10, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.pause-menu h2 { font-size: 2rem; margin-bottom: 16px; } .pause-menu .btn { min-width: 220px; }
.hud-opp { position: absolute; left: 50%; top: calc(64px + var(--sat)); transform: translateX(-50%); width: min(420px, 70vw); text-align: center; font-size: .8rem; }
.opp-bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .1); margin: 4px 0; }
.opp-bar .me { background: var(--cyan); transition: width .3s; } .opp-bar .them { background: var(--mag); transition: width .3s; margin-left: auto; }
.opp-name { color: var(--mag); } .opp-score { color: var(--dim); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .res-grid { grid-template-columns: 1fr 1fr; } .res-grid .rewards { grid-column: 1 / 3; } }
@media (max-width: 900px) {
  :root { --nav-w: 0px; --top-h: calc(56px + var(--sat)); }
  .shell { grid-template-columns: 1fr; grid-template-rows: var(--top-h) 1fr var(--tab-h); }
  .nav { display: none; }
  .topbar { grid-column: 1; padding: var(--sat) calc(12px + var(--sar)) 0 calc(12px + var(--sal)); background: linear-gradient(180deg, rgba(6, 5, 13, .85), rgba(6, 5, 13, 0)); }
  .tb-brand { display: flex; } .tb-brand span { display: none; } .tb-level i { display: none; }
  .tb-level, .tb-cur, .tb-avatar { height: 34px; padding: 0 9px; font-size: .85rem; } .tb-avatar { width: 34px; padding: 0; }
  .view { grid-column: 1; padding: 6px calc(14px + var(--sar)) 24px calc(14px + var(--sal)); }
  .tabbar { display: grid; grid-template-columns: repeat(6, 1fr); grid-row: 3; pointer-events: auto; background: rgba(8, 6, 20, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); padding-bottom: var(--sab); height: calc(var(--tab-h) + var(--sab)); }
  .shell { grid-template-rows: var(--top-h) 1fr calc(var(--tab-h) + var(--sab)); }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--dim2); font-size: .66rem; font-weight: 700; }
  .tab .ic { width: 24px; height: 24px; } .tab.on { color: var(--cyan); } .tab.on .ic { filter: drop-shadow(0 0 6px var(--cyan)); }
  .hero { grid-template-columns: 1fr; gap: 14px; } .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .daily-card .cover.big { width: 92px; height: 92px; }
  .toasts { left: 12px; right: 12px; top: calc(62px + var(--sat)); } .toast { max-width: none; }
  .modal-wrap { align-items: end; padding: 0; } .modal { width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0; padding-bottom: calc(24px + var(--sab)); animation: sheet .3s cubic-bezier(.2, .9, .3, 1); }
  .modal.wide { width: 100%; }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
  .res-head { flex-direction: column; text-align: center; gap: 6px; } .res-tags { justify-content: center; } .res-grid { grid-template-columns: 1fr; } .res-grid .rewards { grid-column: auto; }
  .hide-s { display: none; } .players { grid-template-columns: 1fr; }
  .hud-mult { top: calc(70px + var(--sat)); right: calc(12px + var(--sar)); } .hud-mult .ring { width: 52px; height: 52px; }
  .hud-od { top: auto; bottom: calc(26% + var(--sab)); right: calc(10px + var(--sar)); } .hud-od .bar { height: 90px; }
  .hud-song { display: none; }
  .setup-head .cover.big { width: 84px; height: 84px; }
  .song-row { grid-auto-columns: minmax(240px, 82%); }
}
@media (max-width: 420px) { .tb-cur.prisms { display: none; } .pills button { min-width: 0; flex: 1 1 30%; } }
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
@media (prefers-reduced-motion: reduce) { .view.enter > *, .modal, .toast { animation: none; } }

/* privacy-hidden names, own-rank gap row, league recap */
.anon { color: var(--dim); font-style: normal; font-weight: 600; }
.lb-table tr.gap td { text-align: center; color: var(--dim2); padding: 2px; border: 0; }
.tag.good { background: rgba(61, 255, 160, .16); color: var(--good); } .tag.bad { background: rgba(255, 77, 109, .16); color: var(--bad); }
.lg-last .rw { display: flex; flex-wrap: wrap; gap: 14px; font-weight: 700; }
ol.lb li.me b { color: var(--cyan); }

/* ---- instruments, limited skins, weekly shop */
.item { position: relative; }
.item-img.inst { background-size: contain; background-color: rgba(255, 255, 255, .03); background-position: center 40%; aspect-ratio: 16 / 13; }
.tag-lim { position: absolute; top: 18px; left: 18px; z-index: 1; font: 800 .6rem/1 var(--f-d); letter-spacing: .12em; text-transform: uppercase; font-style: normal; padding: 5px 7px; border-radius: 7px; background: rgba(0, 0, 0, .55); color: var(--cyan); backdrop-filter: blur(6px); }
.tag-lim.ev { color: var(--gold); }
.weekly-shop { background: radial-gradient(600px 220px at 10% 0%, rgba(138, 91, 255, .22), transparent 70%), radial-gradient(500px 220px at 95% 100%, rgba(46, 242, 255, .14), transparent 70%), var(--glass); border-color: rgba(138, 91, 255, .35); }
.event-shop { background: radial-gradient(600px 220px at 10% 0%, rgba(255, 154, 42, .2), transparent 70%), var(--glass); border-color: rgba(255, 180, 74, .35); }
.ws-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ws-head h3 { margin: 0; }
.ws-cd { font: 700 .85rem var(--f-d); letter-spacing: .06em; color: var(--gold); font-variant-numeric: tabular-nums; }
.big-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.item.big { flex-direction: row; align-items: stretch; gap: 14px; padding: 14px; }
.item.big .item-img { width: 52%; flex: none; aspect-ratio: 4 / 3; }
.item.big .item-img.inst { aspect-ratio: 3 / 4; width: 38%; }
.big-info { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.big-info b { font: 800 1.05rem var(--f-d); letter-spacing: .03em; }
.big-info .btn { margin-top: auto; }
.owned-tag { margin-top: auto; color: var(--good); font: 700 .8rem var(--f-d); }
@media (max-width: 520px) { .item.big .item-img { width: 46%; } .big-grid { grid-template-columns: 1fr; } }

/* profile frames + titles */
.avf { position: relative; display: grid; place-items: center; flex: none; }
.avf > .avatar, .avatar.avp { display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, hsl(var(--h) 90% 60%), hsl(calc(var(--h) + 60) 90% 50%)); font-family: var(--f-d); font-weight: 900; color: #fff; }
.avf > img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45)); }
.avf.xl { filter: drop-shadow(0 0 22px rgba(138, 91, 255, .35)); }
.item-img .avf { margin: auto; }
.tb-avatar.framed { background: none !important; box-shadow: none !important; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; }
.title-badge { display: inline-block; margin-top: 4px; padding: 3px 11px; border-radius: 999px; font: 800 .72rem var(--f-d); letter-spacing: .08em; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.title-badge.r-common { color: #d6d9ea; border-color: rgba(214, 217, 234, .35); background: rgba(255, 255, 255, .05); }
.title-badge.r-rare { color: #2ef2ff; border-color: rgba(46, 242, 255, .45); background: rgba(46, 242, 255, .08); box-shadow: 0 0 14px rgba(46, 242, 255, .25); }
.title-badge.r-epic { color: #c99bff; border-color: rgba(201, 155, 255, .5); background: rgba(160, 90, 255, .12); box-shadow: 0 0 16px rgba(160, 90, 255, .3); }
.title-badge.r-legendary { color: #ffd34a; border-color: rgba(255, 211, 74, .6); background: linear-gradient(90deg, rgba(255, 211, 74, .16), rgba(255, 138, 46, .16)); box-shadow: 0 0 18px rgba(255, 180, 60, .35); }
.title-badge.r-exclusive { color: #ff7ad9; border-color: rgba(255, 122, 217, .5); background: rgba(255, 122, 217, .1); }
.item-img.title .title-badge { font-size: .9rem; padding: 6px 14px; margin: 0; }
.prof-head .title-badge { margin: 2px 0 6px; }
.big-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.item.big .item-img.frame { aspect-ratio: 1; width: 42%; }

/* results: the way on is the one obvious button */
.res-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.res-next { display: flex; max-width: 420px; margin: 22px auto 0; font-size: 1.2rem; gap: 12px; animation: resNext 2.4s ease-in-out 1s infinite; }
.res-next + .res-actions { margin-top: 14px; }
.res-next .res-arrow { font-size: 1.35em; line-height: 1; transition: transform .2s; }
.res-next:hover .res-arrow { transform: translateX(4px); }
@keyframes resNext { 0%, 100% { box-shadow: 0 6px 24px rgba(138, 91, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .5); } 50% { box-shadow: 0 6px 36px rgba(46, 242, 255, .75), 0 0 0 3px rgba(46, 242, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .5); } }
.res-more { gap: 10px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .results { padding-bottom: 96px; }
  .res-next { position: sticky; bottom: 12px; z-index: 6; width: 100%; max-width: none; margin: 18px 0 0; }
  .results { padding-bottom: 24px; }
}

/* ---------- start page: music picker top right, challenges slim on the right edge ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); grid-template-areas: 'hero side' 'main side'; grid-template-rows: auto 1fr; gap: 18px 22px; align-items: start; }
.home-hero { grid-area: hero; margin: 6px 0 0; }
.home-hero h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); background: linear-gradient(90deg, #fff, #cfc8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-side { grid-area: side; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; }
.home-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.home-main > .panel { margin: 0; }
.music-pick { padding: 16px 16px 14px; border-color: rgba(46, 242, 255, .35); box-shadow: 0 0 0 1px rgba(46, 242, 255, .12), 0 18px 50px rgba(0, 0, 0, .45), 0 0 40px rgba(138, 91, 255, .18); }
.mp-head h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 800 1.12rem var(--f-d); letter-spacing: .08em; text-transform: uppercase; }
.mp-head h2 .ic { color: var(--cyan); }
.music-pick .si-tabs { grid-template-columns: repeat(4, 1fr); }
.music-pick .si-tabs button { padding: 8px 4px; font-size: .8rem; }
.mp-list { max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; scrollbar-width: thin; }
.mp-row, .au-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; text-align: left; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid transparent; color: var(--fg); font: inherit; }
.mp-row { cursor: pointer; }
.mp-row:hover, .au-row:hover { border-color: rgba(46, 242, 255, .35); background: rgba(46, 242, 255, .07); }
.mp-row .cover { width: 44px; height: 44px; border-radius: 10px; box-shadow: none; } .mp-row .cover span { font-size: .8rem; }
.mp-t { min-width: 0; } .mp-t b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-t small { display: block; color: var(--dim); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-play { color: var(--cyan); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(46, 242, 255, .1); }
.mp-row .badge, .mp-row .tag { font-size: .7rem; }
.au-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.au-logo { font: 900 1.05rem var(--f-d); letter-spacing: .04em; background: linear-gradient(90deg, #cc0fe0, #7e1bcc, #2c7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.au-ext { margin-left: auto; color: var(--cyan); font-weight: 700; font-size: .85rem; text-decoration: none; }
.au-ext:hover { text-decoration: underline; }
.au-search { margin-bottom: 10px; } .au-search input { flex: 1; min-width: 0; }
.au-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; margin-bottom: 12px; scrollbar-width: thin; }
.au-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
.au-row img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: linear-gradient(135deg, #2a1a5a, #0c2a4a); }
.au-row .btn.tiny { white-space: nowrap; }
.au-link { margin-bottom: 6px; } .au-link input { flex: 1; min-width: 0; }
.side-ch { margin: 0; padding: 14px 16px; }
.side-ch .panel-h { margin-bottom: 4px; } .side-ch .panel-h h3 { font-size: .92rem; }
.side-ch .ch-row { grid-template-columns: 1fr 64px 34px; gap: 8px; padding: 5px 0; font-size: .8rem; }
.side-ch .event-banner { margin-top: 10px; padding: 10px 12px; }
.side-ch .event-banner b { font-size: .9rem; } .side-ch .event-banner span { font-size: .78rem; }
@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 1fr; grid-template-areas: 'hero' 'side' 'main'; }
  .home-side { position: static; }
  .mp-list { max-height: 300px; }
}

/* ---------- radio LIVE ---------- */
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 45, 85, .16); border: 1px solid rgba(255, 45, 85, .55); color: #ff5f7e; font: 800 .72rem var(--f-d); letter-spacing: .14em; }
.live-pill.big { font-size: .9rem; padding: 4px 12px; vertical-align: middle; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff2d55; box-shadow: 0 0 10px #ff2d55; animation: liveDot 1.2s ease-in-out infinite; }
@keyframes liveDot { 50% { opacity: .35; transform: scale(.8); } }
.radio-card { margin: 0; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(120deg, rgba(255, 45, 85, .14), rgba(46, 242, 255, .06) 60%), var(--panel); }
.radio-card.on-air { border-color: rgba(255, 45, 85, .45); box-shadow: 0 0 30px rgba(255, 45, 85, .18); }
.rc-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--dim); font-size: .85rem; } .rc-time { color: var(--fg); font-weight: 700; }
.rc-act { gap: 10px; flex-wrap: wrap; }
.rs-station { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rs-logo { width: 46px; height: 46px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; overflow: hidden; font-size: 1.5rem; }
.rs-logo img { width: 100%; height: 100%; object-fit: cover; }
.rs-txt { min-width: 0; } .rs-txt b { display: block; font: 800 1.05rem var(--f-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-txt small { display: block; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-txt small.rs-where { display: flex; align-items: center; gap: 6px; }
.rs-where .flag { width: 22px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); object-fit: cover; flex: none; }
.rs-where .rs-tags { overflow: hidden; text-overflow: ellipsis; }
/* radio round: station banner at the top of the screen (flag, country, station) */
.hud-song.station { max-width: 620px; }
.hud-song.station .title { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 18px 6px 8px; border-radius: 999px;
  background: rgba(6, 8, 24, .78); border: 1px solid rgba(46, 242, 255, .5); box-shadow: 0 0 22px rgba(46, 242, 255, .28), 0 6px 20px rgba(0, 0, 0, .45);
  color: #fff; font-size: 1.02rem; letter-spacing: .03em; text-transform: none; }
.hud-song.station .flag { width: 32px; height: 24px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); object-fit: cover; flex: none; }
.hud-song.station .flag-none { font-size: 1.3rem; }
.hud-song.station .hs-country { font-weight: 800; color: var(--cyan); white-space: nowrap; flex: none; }
.hud-song.station .hs-country::after { content: '·'; margin-left: 10px; color: rgba(255, 255, 255, .5); }
.hud-song.station .hs-name { font: 800 1.02rem var(--f-d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hud-song.station .prog { margin-top: 8px; }
/* phones: the banner sits between score and buttons and shrinks; flag and country stay, a long station name ends in … */
.hud-song.station { min-width: 0; }
@media (max-width: 900px) {
  .hud-song.station { display: block; max-width: none; margin-top: 2px; }
  .hud-song.station .title { font-size: .8rem; gap: 6px; padding: 4px 10px 4px 5px; }
  .hud-song.station .hs-name { font-size: .8rem; } .hud-song.station .flag { width: 24px; height: 18px; }
  .hud-song.station .hs-country::after { margin-left: 6px; }
}
.rs-station.big .rs-logo { width: 72px; height: 72px; font-size: 2.2rem; border-radius: 16px; } .rs-station.big .rs-txt b { font-size: 1.35rem; }
.radio-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.radio-grid .panel { margin: 0; }
.radio-now { display: flex; flex-direction: column; gap: 14px; }
.rn-phase { font: 800 1.6rem var(--f-d); letter-spacing: .04em; } .rn-phase.live { color: #ff5f7e; }
.rn-stats { display: flex; gap: 16px; color: var(--dim); flex-wrap: wrap; }
.rn-home { color: var(--cyan); font-weight: 700; text-decoration: none; font-size: .9rem; }
.rb-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rb-list li { display: grid; grid-template-columns: 28px 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .035); }
.rb-list li em { font: 800 .95rem var(--f-d); font-style: normal; color: var(--dim); text-align: center; }
.rb-list li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.rb-list li b { font-family: var(--f-d); }
.rb-list li.p1 em { color: var(--gold); } .rb-list li.p2 em { color: #d6dde8; } .rb-list li.p3 em { color: #e3a066; }
.rb-list li.me { background: rgba(46, 242, 255, .1); outline: 1px solid rgba(46, 242, 255, .4); }
.radio-hof { margin-bottom: 18px; } .radio-hof .panel-h { flex-wrap: wrap; gap: 10px; }
.rb-list.hof li { padding: 7px 10px; }
.hof-who { display: flex; flex-direction: column; min-width: 0; }
.hof-who > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.hof-who small { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--dim); font-size: .78rem; font-weight: 500; white-space: nowrap; overflow: hidden; }
.hof-who small i { font-style: normal; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hof-who .flag { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); object-fit: cover; flex: none; }
.rb-list li.gap { display: block; background: none; padding: 0 10px; color: var(--dim); text-align: center; }
.radio-how { margin-top: 0; } .radio-how h3 { display: flex; gap: 8px; align-items: center; }
.radio-res .res-meta .rs-station { margin: 6px 0 2px; }
.radio-res-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; margin: 18px 0; }
.radio-res-grid .panel { margin: 0; }
@media (max-width: 900px) { .radio-res-grid { grid-template-columns: minmax(0, 1fr); } }
.rw + .small { margin-top: 2px; }
.ach-new.gold { color: var(--gold); }
/* radio chat */
.radio-grid .radio-chat { grid-column: 1 / -1; }
.radio-chat h3 { margin-top: 0; }
.rc-list { display: flex; flex-direction: column; gap: 8px; max-height: 340px; min-height: 140px; overflow-y: auto; padding: 4px 4px 4px 0; overscroll-behavior: contain; }
.rc-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .035); }
.rc-msg.mine { background: rgba(46, 242, 255, .07); }
.rc-msg .avf, .rc-msg .avatar { margin: 0 auto; }
.rc-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.rc-head b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14em; }
.rc-head .title-badge { font-size: .66rem; padding: 2px 8px; margin: 0; }
.rc-head time { margin-left: auto; color: var(--dim2); font-size: .74rem; }
.rc-rep { background: none; border: 0; color: var(--dim2); cursor: pointer; font-size: .85rem; padding: 0 2px; } .rc-rep:hover { color: #ff7a8a; }
.rc-msg p { margin: 3px 0 0; overflow-wrap: anywhere; line-height: 1.4; }
.rc-form { display: flex; gap: 8px; margin: 10px 0 6px; } .rc-form input { flex: 1; min-width: 0; }
/* waiting queue bar */
.radio-qbar { position: fixed; left: 50%; bottom: calc(16px + var(--sab, 0px)); translate: -50% 0; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 14px; border-radius: 999px; background: rgba(12, 8, 26, .92); border: 1px solid rgba(255, 45, 85, .45); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); font-weight: 700; font-size: .9rem; backdrop-filter: blur(10px); max-width: calc(100vw - 24px); }
.radio-qbar .qb-n { font-weight: 600; }
body.in-game .radio-qbar { display: none; }
.q-note { margin: 6px 0 0; }
/* waiting queue: vehicle + world for the next round */
.radio-grid .radio-qmenu { grid-column: 1 / -1; }
.qmenu h3 { margin: 0 0 2px; } .qmenu .lbl { display: block; margin: 12px 0 6px; }
.veh-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 118px; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; }
.vchip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px 6px; border-radius: 12px; border: 2px solid transparent; background: rgba(255, 255, 255, .05); color: var(--fg); cursor: pointer; font: 700 .7rem var(--f-t); }
.vchip img { width: 100%; height: 58px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.vchip span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vchip.on { border-color: var(--cyan); box-shadow: 0 0 18px rgba(46, 242, 255, .45); background: rgba(46, 242, 255, .08); }
.vchip:hover { background: rgba(255, 255, 255, .09); }
.qmenu-modal { max-width: min(860px, 96vw); }
.radio-qbar [data-qmenu] { white-space: nowrap; }
@media (max-width: 560px) { .radio-qbar { flex-wrap: wrap; justify-content: center; border-radius: 18px; } }
/* sign in with Apple / Google / Discord */
.oauth-btns { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; max-width: 360px; }
.btn.oauth { justify-content: center; font-weight: 800; flex-direction: column; gap: 2px; }
.btn.oauth small { font-weight: 600; font-size: .7rem; opacity: .8; } .btn.oauth small:empty { display: none; }
.btn.oauth.apple { background: #000; color: #fff; border: 1px solid #3a3a3a; }
.btn.oauth.google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.btn.oauth.discord { background: #5865f2; color: #fff; border: 1px solid #5865f2; }
.btn.oauth:disabled { opacity: .45; cursor: not-allowed; }
.pw-login { margin-top: 8px; } .pw-login summary { cursor: pointer; color: var(--dim); font-size: .85rem; }
.login-page { display: grid; place-items: center; min-height: 50vh; } .login-page .panel { max-width: 460px; text-align: center; }
.rr-status { margin: 6px 0 4px; }
@media (max-width: 900px) { .radio-grid { grid-template-columns: 1fr; } }
/* live board in the game HUD (top right, below the multiplier) */
.hud-live { position: absolute; right: calc(16px + var(--sar)); top: calc(156px + var(--sat)); width: min(230px, 46vw); padding: 10px 12px; border-radius: 14px; background: rgba(10, 8, 24, .55); border: 1px solid rgba(255, 45, 85, .35); backdrop-filter: blur(8px); font-family: var(--f-t); }
.hl-h { display: flex; align-items: center; gap: 7px; font: 800 .72rem var(--f-d); letter-spacing: .14em; color: #ff5f7e; margin-bottom: 6px; }
.hl-h .hl-n { margin-left: auto; color: var(--dim); letter-spacing: .04em; font-family: var(--f-t); font-weight: 600; }
.hl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: .8rem; }
.hl-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.hl-list li em { font-style: normal; color: var(--dim); font-weight: 800; } .hl-list li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-list li b { font-family: var(--f-d); font-size: .78rem; } .hl-list li.me { color: var(--cyan); }
.hl-me { margin-top: 4px; font-size: .75rem; color: var(--cyan); }
@media (max-width: 720px) { .hud-live { top: calc(130px + var(--sat)); width: 44vw; padding: 8px 10px; } .hl-list { font-size: .72rem; } }
.ach.has-item { display: flex; flex-direction: column; }
.ach-item { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px dashed rgba(255, 211, 74, .35); }
.ach-item .item-img { width: 64px; height: 52px; min-height: 0; flex: none; margin: 0; }
.ach-world .item-img { width: 86px; height: 48px; border-radius: 8px; background-size: cover; background-position: center; }
.ach .ach-cur { grid-column: 2; display: flex; gap: 8px; align-items: center; color: var(--gold); font-weight: 700; } .ach .ach-cur .ic { width: 14px; height: 14px; }
.ach-item .item-img.frame { padding: 0; overflow: visible; }
.ach-item .item-img.title { width: auto; max-width: 132px; padding: 6px; }
.ach-item .item-img.title .title-badge { font-size: .64rem; padding: 4px 8px; white-space: nowrap; }
.ach-item span { display: flex; flex-direction: column; font-weight: 700; font-size: .85rem; } .ach-item em { font-style: normal; color: var(--gold); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.ach-src { display: flex; gap: 6px; align-items: flex-start; text-align: left; line-height: 1.3; } .ach-src .ic { color: var(--gold); flex: none; }
/* world mastery achievements: one card per world, Surf (vehicle) + Lanes (guitar) */
.wm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.wm { border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); overflow: hidden; }
.wm-h { height: 64px; background-size: cover; background-position: center 40%; display: flex; align-items: flex-end; padding: 6px 10px; position: relative; }
.wm-h::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent 70%); }
.wm-h b { position: relative; font: 700 .85rem var(--f-t); text-shadow: 0 1px 6px #000; }
.wm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
.wm-t { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; border-radius: 10px; background: rgba(0, 0, 0, .25); opacity: .72; text-align: center; }
.wm-t.got { opacity: 1; background: rgba(255, 211, 74, .1); box-shadow: inset 0 0 0 1px rgba(255, 211, 74, .45); }
.wm-t .item-img { width: 100%; height: 54px; margin: 0; background-size: contain; background-position: center; background-repeat: no-repeat; }
.wm-t small { font-size: .68rem; line-height: 1.2; }
.wm-m { font: 700 .62rem var(--f-d); letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
.wm-soon { display: grid; place-items: center; border: 1px dashed var(--line2); border-radius: 8px; }
.wm-soon span { font-size: .65rem; color: var(--dim); }
.wm-ok { position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; color: var(--gold); }
.wm-ok svg { width: 16px; height: 16px; }

/* test server (Cloudflare env "dev") */
.stage-badge { position: fixed; left: 50%; top: 6px; transform: translateX(-50%); z-index: 9999; pointer-events: none;
  padding: 3px 10px; border-radius: 999px; font: 700 11px/1.4 var(--font-ui, system-ui), sans-serif; letter-spacing: .12em;
  color: #1a0d00; background: #ffb020; box-shadow: 0 0 12px rgba(255, 176, 32, .6); }
