:root {
  --bg: #07031a;
  --panel: rgba(16, 8, 40, 0.78);
  --line: rgba(160, 110, 255, 0.35);
  --text: #eef0ff;
  --muted: #a9a3d6;
  --cyan: #00e5ff;
  --pink: #ff3df0;
  --gold: #ffd84a;
  --red: #ff3b5c;
  --blue: #2ea8ff;
  --font: 'Rajdhani', system-ui, sans-serif;
  --head: 'Orbitron', 'Rajdhani', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; overflow: hidden; }
body.in-game { touch-action: none; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* ---------------------------------------------------------------- Bildschirme */
.screen { position: fixed; inset: 0; z-index: 1; display: none; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.screen.show { display: flex; }
.screen.game { padding: 0; z-index: 2; background: #000; }
.panel { position: relative; width: min(560px, 100%); margin: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; backdrop-filter: blur(10px); box-shadow: 0 0 60px rgba(255, 61, 240, 0.15), inset 0 0 30px rgba(0, 229, 255, 0.05); }
.panel.wide { width: min(980px, 100%); }
h1, h2, h3 { font-family: var(--head); margin: 0 0 14px; letter-spacing: 0.04em; }
h2 { font-size: 1.5rem; }
h2 small { font-family: var(--font); color: var(--muted); font-size: 1rem; margin-left: 8px; }
h3 { font-size: 0.95rem; color: var(--muted); text-transform: uppercase; }
.logo { font-size: clamp(2.2rem, 8vw, 3.5rem); text-align: center; font-weight: 800; color: var(--cyan); text-shadow: 0 0 12px var(--cyan), 0 0 40px rgba(0, 229, 255, 0.6); margin-bottom: 4px; }
.logo span { color: var(--pink); text-shadow: 0 0 12px var(--pink), 0 0 40px rgba(255, 61, 240, 0.6); }
.tag { text-align: center; color: var(--muted); margin: 0 0 22px; }
.back { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--muted); font-size: 0.95rem; }
.back:hover { color: var(--text); }

.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; }
.field.col { flex-direction: column; align-items: stretch; }
.label { color: var(--muted); font-weight: 600; }
.seg { display: flex; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg.wrap { flex-wrap: wrap; }
.seg button { flex: 1; min-width: max-content; border: 0; background: none; padding: 9px 14px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.seg button.on { background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(255, 61, 240, 0.25)); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.seg button:disabled { cursor: default; }
input[type=range] { width: 100%; accent-color: var(--pink); }
input:not([type]), input[type=text] { width: 100%; font: inherit; font-size: 1.15rem; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.4); color: var(--text); outline: none; }
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2); }

.btn { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); padding: 11px 20px; border-radius: 12px; font-weight: 700; letter-spacing: 0.03em; transition: transform 0.08s, box-shadow 0.2s; }
.btn:hover { box-shadow: 0 0 18px rgba(0, 229, 255, 0.25); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: linear-gradient(135deg, #00c8ff, #b23dff 60%, #ff3df0); border: 0; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); box-shadow: 0 0 24px rgba(255, 61, 240, 0.35); }
.btn.big { width: 100%; padding: 15px; font-size: 1.2rem; margin-top: 14px; font-family: var(--head); }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.row .btn { flex: 1; }
.hint { color: var(--muted); text-align: center; min-height: 1.2em; margin: 10px 0 0; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.mode-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(0, 229, 255, 0.12), rgba(255, 61, 240, 0.12)); text-align: center; transition: transform 0.12s, box-shadow 0.2s; }
.mode-card:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(0, 229, 255, 0.3); }
.mc-icon { font-size: 2.3rem; }
.mc-title { font-family: var(--head); font-size: 1.15rem; }
.mc-sub { color: var(--muted); font-size: 0.92rem; }
.mc-online { color: var(--cyan); font-size: 0.85rem; min-height: 1em; }

.maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.map-card { text-align: left; padding: 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: linear-gradient(150deg, color-mix(in srgb, var(--c) 18%, transparent), rgba(0, 0, 0, 0.35)); display: flex; flex-direction: column; gap: 4px; }
.map-card b { color: var(--c); font-family: var(--head); font-size: 0.85rem; }
.map-card small { color: var(--muted); font-size: 0.82rem; line-height: 1.2; }
.map-card.on { border-color: var(--c); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 50%, transparent), inset 0 0 0 1px var(--c); }
.map-card:disabled { cursor: default; }
.settings .field { margin: 10px 0; }

.lobby-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.plist li { padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.plist li.me { background: rgba(0, 229, 255, 0.14); }
.plist li small { color: var(--muted); font-weight: 500; }
.plist .dot { width: 8px; height: 8px; border-radius: 50%; background: #3dff7a; box-shadow: 0 0 6px #3dff7a; margin: 0 4px; }
.plist.small li { padding: 6px 10px; }
.queue-text { color: var(--muted); line-height: 1.5; }
.queue-text b { color: var(--cyan); }

.spinner { width: 54px; height: 54px; margin: 10px auto 16px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.1); border-top-color: var(--cyan); border-right-color: var(--pink); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#scr-loading p { text-align: center; color: var(--muted); }

.toast-global { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: rgba(20, 10, 50, 0.95); border: 1px solid var(--line); padding: 12px 18px; border-radius: 12px; z-index: 50; opacity: 0; pointer-events: none; transition: 0.25s; max-width: 90vw; text-align: center; }
.toast-global.show { opacity: 1; transform: translate(-50%, 0); }
.rotate-hint { display: none; }

@media (max-width: 720px) {
  .modes { grid-template-columns: 1fr; }
  .lobby-grid { grid-template-columns: 1fr; }
  .panel { padding: 22px 16px; }
}

/* ---------------------------------------------------------------- Spiel */
.game-canvas, .game-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.game-overlay { position: absolute; inset: 0; pointer-events: none; font-family: var(--font); }
.game-overlay button, .game-overlay .pause, .game-overlay .results, .game-overlay .touch-ui * { pointer-events: auto; }
.hud { position: absolute; inset: 0; }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(255, 0, 40, 0.55)); opacity: 0; }
.dmgdirs { position: absolute; left: 50%; top: 50%; }
.dmgdir { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; }
.dmgdir::before { content: ''; position: absolute; left: 50%; top: -70px; width: 70px; height: 18px; margin-left: -35px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 40, 60, 0.95), transparent 70%); animation: fadeout 0.9s forwards; }
@keyframes fadeout { to { opacity: 0; } }

.crosshair { --s: 8px; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transition: opacity 0.1s; }
.crosshair i { position: absolute; background: #fff; box-shadow: 0 0 4px var(--cyan); transition: transform 0.06s; }
.crosshair i:nth-child(1) { width: 2px; height: 9px; left: -1px; top: calc(-9px - var(--s)); }
.crosshair i:nth-child(2) { width: 2px; height: 9px; left: -1px; top: var(--s); }
.crosshair i:nth-child(3) { width: 9px; height: 2px; top: -1px; left: calc(-9px - var(--s)); }
.crosshair i:nth-child(4) { width: 9px; height: 2px; top: -1px; left: var(--s); }
.crosshair b { position: absolute; width: 3px; height: 3px; left: -1.5px; top: -1.5px; background: var(--pink); border-radius: 50%; box-shadow: 0 0 4px var(--pink); }
.hitmarker { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; opacity: 0; }
.hitmarker::before, .hitmarker::after { content: ''; position: absolute; left: 50%; top: 0; width: 2px; height: 100%; margin-left: -1px; background: linear-gradient(#fff 0 35%, transparent 35% 65%, #fff 65%); }
.hitmarker::before { transform: rotate(45deg); }
.hitmarker::after { transform: rotate(-45deg); }
.hitmarker.show { opacity: 1; }
.hitmarker.head::before, .hitmarker.head::after { background: linear-gradient(var(--gold) 0 35%, transparent 35% 65%, var(--gold) 65%); }
.hitmarker.kill::before, .hitmarker.kill::after { background: linear-gradient(var(--red) 0 35%, transparent 35% 65%, var(--red) 65%); width: 3px; }
.scope { position: absolute; inset: 0; opacity: 0; transition: opacity 0.1s; background: radial-gradient(circle at center, transparent 0 33vmin, rgba(0, 0, 0, 0.92) 33.4vmin); }
.scope-ring { position: absolute; left: 50%; top: 50%; width: 66vmin; height: 66vmin; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(255, 61, 240, 0.7); box-shadow: 0 0 20px rgba(255, 61, 240, 0.5); }
.scope-ring::before, .scope-ring::after { content: ''; position: absolute; background: rgba(255, 61, 240, 0.8); }
.scope-ring::before { left: 0; right: 0; top: 50%; height: 1px; }
.scope-ring::after { top: 0; bottom: 0; left: 50%; width: 1px; }

.topbar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; font-weight: 700; text-shadow: 0 1px 3px #000; white-space: nowrap; }
.topbar > div { background: rgba(8, 4, 24, 0.6); border: 1px solid rgba(255, 255, 255, 0.12); padding: 5px 12px; border-radius: 10px; font-size: 0.98rem; }
.timer { font-family: var(--head); font-size: 1.25rem !important; color: var(--cyan); min-width: 86px; text-align: center; }
.timer.urgent { color: var(--red); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }
.team.r { color: var(--red); } .team.b { color: var(--blue); }
.score-l .team, .score-r .team { font-family: var(--head); }
.lead { color: var(--gold); }

.killfeed { position: absolute; top: 56px; right: 12px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.feed-item { background: rgba(8, 4, 24, 0.65); padding: 4px 10px; border-radius: 8px; font-size: 0.95rem; transition: opacity 0.5s; }
.feed-item.fade { opacity: 0; }
.feed-item .w { color: var(--muted); margin: 0 6px; font-size: 0.85rem; }
.toast { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); font-weight: 700; font-size: 1.2rem; text-shadow: 0 0 10px currentColor, 0 1px 3px #000; opacity: 0; transition: opacity 0.2s; }
.toast.show { opacity: 1; }
.bigmsg { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%) scale(0.8); font-family: var(--head); font-size: 1.6rem; color: #fff; text-shadow: 0 0 14px var(--pink), 0 2px 4px #000; opacity: 0; transition: transform 0.15s, opacity 0.15s; white-space: nowrap; }
.bigmsg.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.bigmsg.count { font-size: 4.5rem; color: var(--cyan); text-shadow: 0 0 30px var(--cyan); top: 40%; }
.bigmsg.gold { color: var(--gold); text-shadow: 0 0 20px var(--gold), 0 2px 4px #000; }
.death { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(60, 0, 20, 0.2), rgba(40, 0, 20, 0.65)); }
.death.show { display: flex; }
.death-title { font-family: var(--head); font-size: 2.4rem; color: var(--red); text-shadow: 0 0 20px var(--red); }
.death-by { font-size: 1.3rem; margin: 8px 0; }
.death-t { color: var(--muted); }

.bottom-left { position: absolute; left: 16px; bottom: 14px; width: min(260px, 34vw); }
.bottom-right { position: absolute; right: 16px; bottom: 14px; width: min(230px, 30vw); text-align: right; }
.bar { position: relative; height: 18px; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 9px; overflow: hidden; margin-top: 6px; }
.bar span { position: absolute; left: 0; top: 0; bottom: 0; transition: width 0.15s; }
.bar em { position: absolute; right: 8px; top: -1px; font-style: normal; font-weight: 700; font-size: 0.85rem; text-shadow: 0 1px 2px #000; }
.bar.hp span { background: linear-gradient(90deg, #1fd16b, #6dff9e); box-shadow: 0 0 10px #3dff7a; }
.bar.hp.low span { background: linear-gradient(90deg, #ff2442, #ff7a5c); }
.bar.armor { height: 12px; }
.bar.armor em { font-size: 0.7rem; top: -3px; }
.bar.armor span { background: linear-gradient(90deg, #1f7dff, #59c8ff); }
.bar.heat { height: 10px; }
.bar.heat span { background: linear-gradient(90deg, #ffd84a, #ff8a1f); }
.bar.heat.hot span { background: linear-gradient(90deg, #ff8a1f, #ff2a2a); }
.bar.heat.locked { animation: pulse 0.3s infinite; }
.buffs { display: flex; gap: 6px; flex-wrap: wrap; }
.buffs span { font-size: 0.8rem; font-weight: 700; padding: 2px 8px; border-radius: 8px; color: var(--c); border: 1px solid var(--c); background: rgba(0, 0, 0, 0.5); }
.slots { display: flex; gap: 5px; justify-content: flex-end; }
.slots span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.15); font-weight: 700; font-size: 0.85rem; color: var(--muted); }
.slots span.on { color: var(--c); border-color: var(--c); box-shadow: 0 0 8px var(--c); }
.wname { font-family: var(--head); font-size: 1.05rem; margin-top: 6px; text-shadow: 0 0 10px currentColor; }

.board, .results { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; flex-direction: column; background: rgba(4, 2, 14, 0.72); }
.board.show, .results.show { display: flex; }
.board h2 { color: var(--cyan); }
.board table, .results table { border-collapse: collapse; min-width: min(520px, 92vw); background: rgba(16, 8, 40, 0.8); border-radius: 12px; overflow: hidden; }
.board th, .board td, .results th, .results td { padding: 6px 14px; text-align: left; }
.board th, .results th { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; background: rgba(255, 255, 255, 0.05); }
.board tr.me, .results tr.me { background: rgba(0, 229, 255, 0.15); }
.board td small, .results td small { color: var(--muted); font-size: 0.7rem; border: 1px solid var(--muted); border-radius: 4px; padding: 0 3px; }
.bteam { margin: 6px; }
.bteam.r h3 { color: var(--red); } .bteam.b h3 { color: var(--blue); }
.res-box { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; max-height: 92vh; overflow-y: auto; text-align: center; box-shadow: 0 0 60px rgba(255, 61, 240, 0.25); }
.res-box h1 { color: var(--gold); text-shadow: 0 0 20px rgba(255, 216, 74, 0.6); font-size: clamp(1.3rem, 4vw, 2rem); }
.res-ts { font-family: var(--head); font-size: 2rem; margin-bottom: 12px; }
.res-btns { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

.pause { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(4, 2, 14, 0.6); }
.pause.show { display: flex; }
.pause-box { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; width: min(480px, 92vw); text-align: center; }
.pause-box .keys { color: var(--muted); line-height: 1.5; }
.pause-box label { display: block; text-align: left; margin: 12px 0; color: var(--muted); font-weight: 600; }
.pause-btns { display: flex; gap: 10px; margin-top: 16px; }
.pause-btns .btn { flex: 1; }
.pause-open { position: absolute; top: 10px; left: 10px; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.45); font-size: 1.1rem; }

/* ---------------------------------------------------------------- Touch-Steuerung */
.touch-ui { position: absolute; inset: 0; }
.stick-zone { position: absolute; left: 0; top: 60px; bottom: 0; width: 42%; }
.look-zone { position: absolute; right: 0; top: 60px; bottom: 0; width: 58%; }
.stick-base { position: absolute; left: 110px; top: calc(100% - 120px); width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); opacity: 0.55; pointer-events: none !important; }
.stick-base.active { opacity: 1; }
.stick-knob { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 229, 255, 0.7), rgba(0, 229, 255, 0.25)); box-shadow: 0 0 14px rgba(0, 229, 255, 0.6); pointer-events: none !important; }
.tbtn { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.35); font-size: 1.4rem; display: grid; place-items: center; touch-action: none; }
.tbtn.down { background: rgba(255, 61, 240, 0.45); border-color: var(--pink); }
.tbtn.fire { right: 36px; bottom: 120px; width: 86px; height: 86px; font-size: 2rem; border-color: rgba(255, 61, 240, 0.7); }
.tbtn.jump { right: 140px; bottom: 40px; width: 62px; height: 62px; }
.tbtn.zoom { right: 136px; bottom: 150px; width: 52px; height: 52px; font-size: 1.1rem; }
.tbtn.swap { right: 40px; bottom: 30px; width: 58px; height: 58px; }
.tbtn.board { left: 62px; top: 10px; width: 42px; height: 42px; border-radius: 10px; font-size: 1.1rem; }
body.in-game .touch-ui ~ .bottom-left { bottom: 14px; }
.dev-mobile .bottom-left { left: 50%; transform: translateX(-50%); bottom: 8px; width: min(240px, 40vw); }
.dev-mobile .bottom-right { top: 58px; bottom: auto; right: 12px; width: 170px; }
.dev-mobile .killfeed { top: 128px; font-size: 0.85rem; }
.dev-mobile .wname { font-size: 0.9rem; }
@media (orientation: portrait) and (pointer: coarse) {
  body.in-game .rotate-hint { display: flex; position: fixed; inset: 0; z-index: 100; background: #07031a; color: #fff; align-items: center; justify-content: center; font-size: 1.4rem; font-family: var(--head); text-align: center; padding: 20px; }
}

/* ---------------------------------------------------------------- Version 2: Schild, Munition, Hilfe, Touch */
.shieldtint { position: absolute; inset: 0; opacity: 0; transition: opacity 0.15s; background: radial-gradient(ellipse at center, rgba(90, 184, 255, 0) 55%, rgba(90, 184, 255, 0.28)); }
.hitmarker.blocked::before, .hitmarker.blocked::after { background: linear-gradient(#7fc8ff 0 35%, transparent 35% 65%, #7fc8ff 65%); }
.reloadring { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; opacity: 0; transition: opacity 0.1s; }
.reloadring.show { opacity: 1; }
.reloadring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.reloadring circle { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 3; stroke-dasharray: 100.5; stroke-dashoffset: 100.5; }
.reloadring span { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); font-size: 0.8rem; font-weight: 700; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.bar.shieldbar { height: 10px; }
.bar.shieldbar span { background: linear-gradient(90deg, #3a8dff, #9fd8ff); }
.bar.shieldbar.cooldown span { background: rgba(120, 150, 190, 0.6); }
.bar.shieldbar.active span { box-shadow: 0 0 10px #6fc0ff; }
.bar.shieldbar em { font-size: 0.68rem; top: -3px; }
.ammo { font-family: var(--head); margin-top: 4px; text-shadow: 0 1px 3px #000; }
.ammo b { font-size: 1.9rem; }
.ammo small { font-size: 1rem; color: var(--muted); margin-left: 4px; }
.ammo.low b { color: #ff5a5a; }
.hintbar { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; max-width: min(760px, 56vw); font-size: 0.74rem; color: rgba(255, 255, 255, 0.55); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); pointer-events: none; transition: opacity 0.3s; }
.hintbar.off { opacity: 0; }
.hintbar kbd { font-family: var(--font); font-weight: 700; color: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 4px; padding: 0 4px; background: rgba(0, 0, 0, 0.25); }
.pause-box .keys b { color: var(--cyan); font-weight: 700; }
.pause-box .keys.small { font-size: 0.88rem; }
.pause-box label.check { display: flex; gap: 8px; align-items: center; }

/* Touch-Steuerung (Pointer-Events) */
.game, .game-overlay, .touch-ui, .touch-ui * { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.screen.game { overflow: hidden; }
.touch-ui .zone { position: absolute; top: 56px; bottom: 0; }
.touch-ui .stick-zone { left: 0; width: 45%; }
.touch-ui .look-zone { right: 0; width: 55%; }
.touch-ui .stick-base { position: absolute; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.06); opacity: 0.6; pointer-events: none !important; }
.touch-ui .stick-base.active { opacity: 1; }
.touch-ui .stick-knob { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.25)); pointer-events: none !important; }
.touch-ui .tbtn { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); background: rgba(10, 12, 20, 0.35); color: #fff; font-size: 1.5rem; line-height: 1; display: grid; place-items: center; padding: 0; }
.touch-ui .tbtn.down { background: rgba(255, 255, 255, 0.3); border-color: #fff; }
.touch-ui .tlabel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 2px; font-size: 0.62rem; color: rgba(255, 255, 255, 0.55); white-space: nowrap; pointer-events: none; text-shadow: 0 1px 2px #000; font-family: var(--font); }
.touch-ui .stick-base .tlabel { top: auto; bottom: -16px; }
.touch-ui .fire { right: 28px; bottom: 112px; width: 92px; height: 92px; font-size: 2.2rem; border-color: rgba(255, 90, 90, 0.75); background: rgba(255, 60, 60, 0.18); }
.touch-ui .shield { right: 136px; bottom: 150px; width: 60px; height: 60px; border-color: rgba(120, 190, 255, 0.8); }
.touch-ui .jump { right: 130px; bottom: 36px; width: 62px; height: 62px; }
.touch-ui .reload { right: 206px; bottom: 60px; width: 52px; height: 52px; font-size: 1.3rem; }
.touch-ui .swap { right: 34px; bottom: 26px; width: 56px; height: 56px; font-size: 1.3rem; }
.touch-ui .zoom { right: 210px; bottom: 136px; width: 52px; height: 52px; font-size: 1.3rem; display: none; }
.touch-ui.has-zoom .zoom { display: grid; }
.touch-ui .tbtn.small { width: 42px; height: 42px; border-radius: 10px; font-size: 1.1rem; }
.touch-ui .board { left: 62px; top: 10px; }
.dev-mobile .bottom-left { left: 50%; transform: translateX(-50%); bottom: 8px; width: min(220px, 34vw); }
.dev-mobile .bottom-right { top: 58px; bottom: auto; right: 12px; width: 170px; }
.dev-mobile .ammo b { font-size: 1.4rem; }

/* ---------------------------------------------------------------- Version 3: Teams, Radar, Trefferrichtung */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tcol { border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 120px; background: rgba(0, 0, 0, 0.25); transition: box-shadow 0.15s; }
.tcol h4 { margin: 2px 4px 8px; font-family: var(--head); font-size: 0.85rem; }
.tcol h4 small { color: var(--muted); font-family: var(--font); }
.tcol.r { border-color: rgba(255, 59, 92, 0.6); } .tcol.r h4 { color: var(--red); }
.tcol.b { border-color: rgba(46, 168, 255, 0.6); } .tcol.b h4 { color: var(--blue); }
.tcol.over { box-shadow: 0 0 0 2px #fff inset; }
.tcol .plist { max-height: 40vh; }
.plist li.drag { cursor: grab; }
.plist li.dragging { opacity: 0.4; }
.plist li.empty { color: var(--muted); background: none; font-weight: 500; justify-content: center; }
.btn.small { padding: 7px 14px; font-size: 0.9rem; margin-top: 8px; }
.hint.small { font-size: 0.85rem; text-align: left; }
.lobby-grid { grid-template-columns: minmax(260px, 340px) 1fr; }
.radar { position: absolute; top: 10px; right: 12px; width: 150px; height: 150px; border-radius: 50%; }
.dev-mobile .radar { width: 104px; height: 104px; top: 8px; right: 8px; }
.killfeed { top: 172px; }
.dev-mobile .killfeed { top: 120px; left: 12px; right: auto; align-items: flex-start; }
.dev-mobile .bottom-right { top: 118px; }
.edges { position: absolute; inset: 0; pointer-events: none; }
.edges i { position: absolute; opacity: 0; }
.edges .top { left: 0; right: 0; top: 0; height: 22%; background: linear-gradient(to bottom, rgba(255, 25, 45, 0.75), transparent); }
.edges .bottom { left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(to top, rgba(255, 25, 45, 0.75), transparent); }
.edges .left { top: 0; bottom: 0; left: 0; width: 16%; background: linear-gradient(to right, rgba(255, 25, 45, 0.75), transparent); }
.edges .right { top: 0; bottom: 0; right: 0; width: 16%; background: linear-gradient(to left, rgba(255, 25, 45, 0.75), transparent); }
.touch-ui .crouch { right: 210px; bottom: 210px; width: 52px; height: 52px; font-size: 1.3rem; }
.touch-ui .crouch.on { background: rgba(255, 255, 255, 0.3); border-color: #fff; }
.touch-ui .zoom { right: 266px; bottom: 116px; }
@media (max-width: 720px) { .teams { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- Spielziele */
.objbar { position: absolute; top: 52px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; white-space: nowrap; font-weight: 700; text-shadow: 0 1px 3px #000; }
.objbar:empty { display: none; }
.zchip { position: relative; width: 34px; height: 34px; border-radius: 8px; background: rgba(8, 4, 24, 0.65); border: 2px solid rgba(255, 255, 255, 0.5); display: grid; place-items: center; overflow: hidden; }
.zchip b { position: relative; z-index: 1; font-family: var(--head); }
.zchip i.p { position: absolute; left: 0; bottom: 0; height: 100%; opacity: 0.55; }
.zchip i.p.r { background: var(--red); } .zchip i.p.b { background: var(--blue); }
.zchip.own-r { background: rgba(255, 59, 92, 0.75); border-color: #fff; }
.zchip.own-b { background: rgba(46, 168, 255, 0.75); border-color: #fff; }
.objbar .omsg { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); background: rgba(8, 4, 24, 0.5); padding: 4px 10px; border-radius: 8px; }
.objbar .fl { font-size: 0.9rem; background: rgba(8, 4, 24, 0.6); padding: 4px 10px; border-radius: 8px; }
.objbar .fl.r { color: var(--red); } .objbar .fl.b { color: var(--blue); }
.dev-mobile .objbar { top: 50px; transform: translateX(-50%) scale(0.85); }

/* ---- Musik */
.music-btn { position: fixed; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 1.3rem; cursor: pointer; backdrop-filter: blur(6px); }
.music-btn:hover { border-color: var(--cyan); box-shadow: 0 0 14px rgba(0, 229, 255, 0.35); }
.music-panel { position: fixed; top: calc(max(12px, env(safe-area-inset-top)) + 56px); right: max(12px, env(safe-area-inset-right)); z-index: 60; width: min(300px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: none; backdrop-filter: blur(8px); }
.music-panel.show { display: block; }
.music-panel .mp-now { display: flex; flex-direction: column; margin-bottom: 10px; }
.music-panel .mp-title { font-family: var(--head); font-size: 0.95rem; color: var(--cyan); }
.music-panel .mp-style { color: var(--muted); font-size: 0.9rem; }
.music-panel .mp-row { display: flex; gap: 8px; margin-bottom: 8px; }
.music-panel .mp-row .btn { flex: 1; padding: 8px 6px; font-size: 0.9rem; }
.music-panel label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; margin: 6px 0; }
.music-panel input[type=range] { flex: 1; }
body.in-game .music-btn, body.in-game .music-panel { display: none; }
.now-playing { position: fixed; left: max(14px, env(safe-area-inset-left)); bottom: 18px; z-index: 55; background: rgba(10, 5, 30, 0.8); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 600; color: var(--text); opacity: 0; transform: translateY(10px); transition: 0.4s; pointer-events: none; }
.now-playing.show { opacity: 0.92; transform: none; }
body.in-game .now-playing { bottom: auto; top: 38%; font-size: 0.85rem; padding: 5px 12px; }
.pause-music { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; }
.pause-music .pm-now { flex: 1; text-align: left; color: var(--cyan); font-size: 0.9rem; }
.pause-music .btn { padding: 6px 10px; font-size: 0.85rem; }
