/* InnoVolt – verspieltes RC-Renn-Interface */
:root {
  --bg: #0d1428; --panel: rgba(14, 22, 44, 0.9); --panel2: rgba(24, 36, 70, 0.95); --line: rgba(120, 170, 255, 0.25);
  --text: #eef3ff; --muted: #9fb0d0; --accent: #ffd23a; --accent2: #ff7a1a; --cyan: #3ad6ff; --good: #5dff9a; --bad: #ff5a4a;
  --font: "Trebuchet MS", "Segoe UI", "Arial Rounded MT Bold", system-ui, sans-serif;
  --head: "Arial Black", "Segoe UI Black", Impact, "Trebuchet MS", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); overflow: hidden; -webkit-user-select: none; user-select: none; touch-action: none; }
#app { position: fixed; inset: 0; }
#c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
button, input, select { font-family: inherit; }

/* Ladebildschirm */
#boot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; z-index: 50;
  background: radial-gradient(ellipse at 50% 40%, #233a7a 0%, #0d1428 70%); }
.boot-logo, .logo { font-family: var(--head); font-size: clamp(42px, 8vw, 96px); font-style: italic; letter-spacing: 0.02em; color: #fff;
  text-shadow: 0 4px 0 #1a2a5a, 0 0 24px rgba(58, 214, 255, 0.55); transform: skewX(-6deg); line-height: 1; }
.boot-logo span, .logo span { color: var(--accent); text-shadow: 0 4px 0 #8a4a00, 0 0 26px rgba(255, 210, 58, 0.6); }
.boot-bar { width: min(420px, 70vw); height: 10px; background: rgba(255,255,255,0.1); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.boot-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--accent)); transition: width .25s; }
#boot-msg { color: var(--muted); margin: 0; text-align: center; max-width: 80vw; }

/* Bildschirme */
#ui { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.screen { position: absolute; inset: 0; pointer-events: auto; display: flex; align-items: center; justify-content: center; padding: 12px; }
.screen.dim { background: rgba(6, 10, 24, 0.55); backdrop-filter: blur(2px); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; box-shadow: 0 14px 50px rgba(0,0,0,0.55); max-height: 94vh; overflow: auto; max-width: 96vw; }
.panel.narrow { width: min(460px, 94vw); }
.panel.wide { width: min(1080px, 96vw); }
.panel h2 { margin: 0 0 14px; font-family: var(--head); font-style: italic; font-size: 26px; letter-spacing: 0.02em; color: var(--accent); text-shadow: 0 2px 0 #6a3a00; }
.panel h3 { margin: 12px 0 8px; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cyan); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px; border: 2px solid rgba(120, 170, 255, 0.35);
  background: linear-gradient(#24386e, #1a2852); color: var(--text); border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; transition: transform .08s, background .12s, border-color .12s; text-align: center; }
.btn:hover, .btn:focus-visible { border-color: var(--accent); background: linear-gradient(#2e4a90, #213468); outline: none; transform: translateY(-1px); }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(255, 210, 58, 0.45); }
.btn.primary { background: linear-gradient(#ffcc33, #ff8a1a); border-color: #ffe08a; color: #2a1600; text-shadow: 0 1px 0 rgba(255,255,255,0.4); }
.btn.primary:hover, .btn.primary:focus-visible { background: linear-gradient(#ffe066, #ffa040); }
.btn.danger { border-color: rgba(255, 90, 74, 0.6); }
.btn.small { min-height: 34px; padding: 5px 12px; font-size: 14px; }
.btn[disabled] { opacity: 0.42; cursor: not-allowed; transform: none; }
.btn.on, .btn.sel { border-color: var(--accent); box-shadow: inset 0 0 0 2px rgba(255,210,58,0.4); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; color: var(--muted); font-size: 14px; }
.field input, .field select, select { background: #0f1a36; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 16px; }
input[type=text], input[type=password], input[type=number] { -webkit-user-select: text; user-select: text; }

/* Titel */
.screen.title { align-items: center; }
.title-wrap { display: flex; flex-direction: column; align-items: center; }
.title-box { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 26px; background: linear-gradient(rgba(10,16,36,0.78), rgba(10,16,36,0.62)); border: 1px solid var(--line); border-radius: 18px; max-width: min(820px, 96vw); box-shadow: 0 10px 50px rgba(0,0,0,0.4); }
.tag { color: #d6e2ff; margin: 0; text-align: center; font-size: 17px; }
.menu-cols { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.menu-buttons { display: flex; flex-direction: column; gap: 9px; width: min(340px, 86vw); }
.menu-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.menu-foot { font-size: 12px; color: var(--muted); text-align: center; margin: 4px 0 0; }
.acct { position: absolute; top: 12px; right: 12px; pointer-events: auto; }

/* Autoauswahl */
.car-sel { display: grid; grid-template-columns: 1fr 360px; gap: 16px; }
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; align-content: start; }
.car-card { flex-direction: column; align-items: flex-start; min-height: 58px; text-align: left; }
.car-card small { color: var(--muted); font-weight: 400; font-size: 12px; }
.car-card.locked b::before { content: '🔒 '; }
.car-info canvas.preview { width: 100%; height: 220px; display: block; background: radial-gradient(ellipse at center, #2a3e78, #101a36); border-radius: 12px; }
.car-info h3 { font-size: 20px; color: var(--accent); margin: 10px 0 2px; text-transform: none; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 14px; }
.stats > div { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(255,255,255,0.1); padding: 2px 0; }
.stats span { color: var(--muted); }
.sbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; border: none !important; }
.sbar span { width: 120px; font-size: 13px; }
.sbar i { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--cyan) calc(var(--v) * 100%), rgba(255,255,255,0.1) 0); }

/* Streckenauswahl */
.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 46vh; overflow: auto; padding: 2px; }
.track-card { flex-direction: column; min-height: 130px; padding: 6px; }
.track-card canvas { width: 120px; height: 80px; border-radius: 6px; }
.track-card small { color: var(--muted); font-weight: 400; font-size: 12px; }
.track-card.locked { filter: grayscale(0.8); }
.track-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-top: 12px; align-items: start; }
.tinfo h3 { margin: 0; color: var(--accent); text-transform: none; font-size: 20px; }
.tinfo p { margin: 4px 0; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 18px; }
.opt-grid label { display: grid; grid-template-columns: 120px 1fr 70px; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.opt-grid label select { grid-column: 2 / 4; }
.opt-grid b { color: var(--text); font-size: 14px; text-align: right; }
input[type=range] { accent-color: var(--accent); width: 100%; }
.toggle.on { background: linear-gradient(#3a8a5a, #2a6a44); }

/* Ergebnisse */
table.res { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 15px; }
table.res th { text-align: left; color: var(--muted); font-weight: 400; font-size: 13px; padding: 4px 8px; }
table.res td { padding: 6px 8px; border-top: 1px solid rgba(255,255,255,0.07); }
table.res tr.me td { background: rgba(255, 210, 58, 0.14); color: #fff; font-weight: 700; }
.unlock { color: var(--good); font-weight: 700; }

/* Garage / Lack */
.garage { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
.checks { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.checks input { width: 18px; height: 18px; accent-color: var(--accent); vertical-align: middle; }
.paint { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); cursor: pointer; padding: 0; }
.sw:hover, .sw:focus-visible { border-color: #fff; transform: scale(1.12); outline: none; }
canvas.preview.big { width: 100%; height: 360px; background: radial-gradient(ellipse at center, #2a3e78, #101a36); border-radius: 12px; }
.crop { position: relative; width: 240px; height: 240px; border-radius: 10px; overflow: hidden; touch-action: none; cursor: grab; background: #111; }
.crop canvas, .crop video { position: absolute; inset: 0; width: 100%; height: 100%; }
.crop .guide { position: absolute; left: 22%; right: 22%; top: 14%; bottom: 12%; border: 2px dashed rgba(255,255,255,0.7); border-radius: 50%; pointer-events: none; }
.crop .guide::after { content: ''; position: absolute; left: 10%; right: 10%; top: 40%; border-top: 1px dashed rgba(255,255,255,0.5); }
.err { color: var(--bad); font-size: 13px; }

/* Meisterschaft */
.cups { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cup-card { flex-direction: column; align-items: flex-start; text-align: left; border-left: 6px solid var(--cup); min-height: 90px; }
.cup-card small { color: var(--muted); font-weight: 400; font-size: 12px; }
.cup-card i { font-style: normal; font-size: 12px; color: var(--good); }

/* Beitreten (geteilter Bildschirm) */
.join-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.jslot { border: 2px dashed var(--line); border-radius: 12px; min-height: 200px; padding: 10px; text-align: center; }
.jslot.on { border-style: solid; border-color: var(--cyan); background: rgba(58, 214, 255, 0.07); }
.jslot.ready { border-color: var(--good); background: rgba(93, 255, 154, 0.1); }
.jhead { font-family: var(--head); font-style: italic; color: var(--accent); margin-bottom: 6px; }
.jdev { font-size: 12px; color: var(--muted); }
.jface { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin: 6px auto; display: block; }
.jrow { margin: 6px 0; padding: 4px; border-radius: 6px; }
.jrow.act { background: rgba(255, 210, 58, 0.18); }
.jready { margin-top: 8px; font-weight: 700; color: var(--good); }

.help-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; font-size: 14px; }
.weap-list { display: grid; grid-template-columns: 1fr; gap: 6px; }
.weap-list div { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.weap-list img { grid-row: 1 / 3; }
.weap-list small { color: var(--muted); }

.subtitle { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); background: rgba(0,0,0,0.55); padding: 6px 14px; border-radius: 8px; font-size: 18px; opacity: 0; transition: opacity .2s; z-index: 30; pointer-events: none; text-align: center; max-width: 80vw; }
.subtitle.show { opacity: 1; }

/* HUD */
#hud { position: absolute; inset: 0; pointer-events: none; z-index: 10; text-shadow: 0 2px 2px rgba(0,0,0,0.8); }
.h-pane { position: absolute; overflow: hidden; }
.h-pane + .h-pane { box-shadow: inset 0 0 0 2px rgba(0,0,0,0.6); }
.h-pos { position: absolute; left: 14px; top: 10px; display: flex; align-items: center; gap: 10px; }
.h-place { font-family: var(--head); font-style: italic; font-size: 54px; color: var(--accent); line-height: 1; }
.h-of { font-size: 20px; color: #fff; font-weight: 700; }
.h-face { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.h-lap { position: absolute; right: 14px; top: 10px; text-align: right; }
.h-lapn { font-family: var(--head); font-style: italic; font-size: 24px; }
.h-time { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.h-best { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.h-weap { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; opacity: 0.25; transition: opacity .15s, transform .15s; }
.h-weap img { width: 64px; height: 64px; background: rgba(10, 20, 50, 0.65); border: 3px solid rgba(255,255,255,0.5); border-radius: 14px; padding: 4px; }
.h-weap.on { opacity: 1; animation: pop .3s; }
.h-weap:not(.on) img { content: none; }
.h-wn { font-family: var(--head); font-size: 26px; color: var(--accent); }
.h-wname { font-size: 14px; color: #fff; }
.h-speed { position: absolute; right: 16px; bottom: 12px; text-align: right; }
.h-speed b { font-family: var(--head); font-style: italic; font-size: 46px; color: #fff; }
.h-speed small { display: block; margin-top: -6px; color: var(--muted); font-size: 13px; }
.h-msg { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-family: var(--head); font-style: italic; font-size: 34px; opacity: 0; transform: scale(0.9); transition: opacity .2s, transform .2s; }
.h-msg.show { opacity: 1; transform: scale(1); }
.h-fin { font-size: 64px; }
.h-name { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); font-size: 13px; color: rgba(255,255,255,0.7); display: none; }
.h-pane:not(.single) .h-name { display: block; }
.h-stand { position: absolute; left: 14px; top: 82px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.h-stand li { display: flex; gap: 6px; padding: 1px 6px; border-radius: 4px; }
.h-stand li span { width: 18px; color: var(--muted); }
.h-stand li.me { background: rgba(255, 210, 58, 0.3); }
.h-stand li.hu { background: rgba(58, 214, 255, 0.25); }
.h-map { position: absolute; right: 12px; top: 92px; width: 150px; height: 150px; opacity: 0.9; }
.h-pane.small .h-place { font-size: 36px; }
.h-pane.small .h-face { width: 38px; height: 38px; }
.h-pane.small .h-lapn { font-size: 17px; } .h-pane.small .h-time { font-size: 16px; }
.h-pane.small .h-speed b { font-size: 30px; }
.h-pane.small .h-weap img { width: 46px; height: 46px; }
.h-pane.small .h-msg { font-size: 24px; } .h-pane.small .h-fin { font-size: 40px; }
.h-pane.small .h-map { width: 96px; height: 96px; top: 64px; }
.h-extra { position: absolute; background: rgba(0,0,0,0.15); }
.h-extra .h-stand { top: 12px; font-size: 15px; }
.h-count { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) scale(0.6); font-family: var(--head); font-style: italic; font-size: 140px; color: #fff; opacity: 0; transition: transform .25s, opacity .25s; text-shadow: 0 6px 0 #1a2a5a, 0 0 30px rgba(58,214,255,0.6); }
.h-count.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.h-count.go { color: var(--good); }
@keyframes pop { 0% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* Touch */
#touch { position: absolute; inset: 0; z-index: 15; pointer-events: none; }
#touch .tb { pointer-events: auto; border: 2px solid rgba(255,255,255,0.45); background: rgba(20, 30, 60, 0.45); color: #fff; border-radius: 50%; font-weight: 700; font-size: 16px; touch-action: none; }
#touch .tb.on { background: rgba(255, 210, 58, 0.55); }
.t-left { position: absolute; left: max(14px, env(safe-area-inset-left)); bottom: 20px; display: flex; gap: 16px; }
.tb-steer { width: 84px; height: 84px; font-size: 30px !important; }
.t-right { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: 18px; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 12px; align-items: end; }
.tb-gas { width: 96px; height: 96px; grid-column: 2; grid-row: 1 / 3; background: rgba(60, 200, 110, 0.45) !important; }
.tb-brake { width: 70px; height: 70px; grid-column: 1; grid-row: 2; }
.tb-fire { width: 70px; height: 70px; grid-column: 1; grid-row: 1; background: rgba(255, 120, 40, 0.5) !important; }
.t-top { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.t-top .tb.small { border-radius: 10px !important; padding: 6px 10px; font-size: 13px !important; }

@media (max-width: 860px) {
  .car-sel, .garage, .paint, .track-opts, .help-cols { grid-template-columns: 1fr; }
  .join-slots { grid-template-columns: 1fr 1fr; }
  .cups { grid-template-columns: 1fr; }
  .car-info canvas.preview { height: 170px; }
  .panel { padding: 14px; }
  .opt-grid label { grid-template-columns: 100px 1fr 60px; }
}
@media (max-height: 520px) {
  .title-box { gap: 6px; padding: 12px; }
  .logo { font-size: 38px; }
  .tag { display: none; }
  .btn { min-height: 36px; padding: 6px 12px; font-size: 14px; }
}

.h-arrow { position: absolute; left: 50%; top: 18%; font-size: 40px; color: var(--accent); transition: opacity .2s; text-shadow: 0 0 10px rgba(255,210,58,0.7); }
.h-stand li i { font-style: normal; color: var(--accent); margin-left: 4px; }

/* ---------- Streckeneditor ---------- */
.grid-head { grid-column: 1 / -1; margin: 10px 0 2px; }
.ed-screen .panel.editor { width: min(1200px, 98vw); padding: 14px 18px; }
.ed-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 10px; }
.ed-head h2 { margin: 0 10px 0 0; }
.ed-head label, .ed-props label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.ed-head input, .ed-head select, .ed-props select, textarea.code { background: #0e1630; color: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; }
.ed-body { display: flex; gap: 14px; align-items: flex-start; }
.ed-grid-wrap { flex: 1; min-width: 0; }
.ed-grid { display: block; width: 100%; max-width: calc((100vh - 260px) * 1.333); min-width: 260px; border-radius: 8px; touch-action: none; cursor: crosshair; outline: none; box-shadow: 0 0 0 1px var(--line); }
.ed-grid:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.ed-status { margin-top: 6px; font-weight: 600; font-size: 14px; }
.ed-status.ok { color: #7dffb0; }
.ed-status.bad, p.bad { color: #ff8a7a; }
.ed-side { width: 290px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.ed-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.btn.tool { flex-direction: column; gap: 2px; padding: 4px 2px; min-height: 0; }
.btn.tool small { font-size: 10.5px; line-height: 1.15; text-align: center; }
.btn.tool canvas { width: 34px; height: 34px; }
.ed-tip { min-height: 2.6em; margin: 0; }
.ed-props, .ed-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ed-help { margin: 8px 0 0; }
textarea.code { width: 100%; font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; resize: vertical; box-sizing: border-box; }
.my-tracks { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow: auto; min-width: min(560px, 88vw); }
.my-track { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; }
.my-track > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 860px) {
  .ed-body { flex-direction: column; }
  .ed-side { width: 100%; }
  .ed-tools { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ed-grid { max-width: none; }
  .ed-help { display: none; }
}
input, textarea { -webkit-user-select: text; user-select: text; touch-action: auto; }

/* ---------- Online ---------- */
.tabs { gap: 6px; margin-bottom: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.form-grid input, .form-grid select, .room-lobby select, .room-lobby input, .tsel select, .del-box input { background: #0e1630; color: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; min-height: 38px; }
.room-lobby { width: min(980px, 96vw); }
.lobby-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plist { display: flex; flex-direction: column; gap: 6px; }
.pl-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.03); }
.pl-row.me { border-color: var(--accent); }
.pl-row > div { flex: 1; min-width: 0; }
.pl-row img, .pl-row .noface { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #2a3a6a; flex: none; }
.tag { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--muted); white-space: nowrap; }
.tag.ok { background: rgba(93,255,154,0.18); color: var(--good); }
.tag.host { background: rgba(255,210,58,0.18); color: var(--accent); }
.chat { height: 150px; overflow: auto; background: rgba(0,0,0,0.25); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin-bottom: 6px; font-size: 14px; }
.chat p { margin: 3px 0; overflow-wrap: anywhere; }
.chat-in { flex: 1; min-width: 0; }
.rooms { max-height: 52vh; overflow: auto; margin: 6px 0 10px; }
.rooms-t td { vertical-align: middle; }
.acc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 8px 0 14px; }
.acc-stats div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 3px 0; }
.rk { max-height: 50vh; overflow: auto; margin-top: 8px; }
@media (max-width: 760px) { .lobby-cols { grid-template-columns: 1fr; } .acc-stats { grid-template-columns: 1fr; } }
.panel.cfg-panel { width: min(780px, 96vw); }
canvas.trophies { display: block; width: 100%; height: 150px; margin: 4px 0 8px; } canvas.trophies.one { height: 190px; }
