:root {
  --bg: #090d14;
  --bg-soft: rgba(15, 23, 42, 0.86);
  --panel: rgba(17, 24, 39, 0.88);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #fbbf24;
  --accent-2: #38bdf8;
  --danger: #fb7185;
  --success: #34d399;
  --shadow: 0 22px 70px rgba(0,0,0,0.45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); touch-action: none; overscroll-behavior: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(circle at 50% 20%, #1e293b 0, #0f172a 32%, #050712 100%); }
.game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: auto; touch-action: none; }
.noise-layer { position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: overlay; background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,.14) 0 1px, transparent 1px), radial-gradient(circle at 70% 80%, rgba(255,255,255,.12) 0 1px, transparent 1px); background-size: 7px 7px, 11px 11px; }

.screen { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; z-index: 30; }
.screen[hidden] { display: none; }
.screen-menu { background: radial-gradient(circle at 60% 20%, rgba(251,191,36,.18), transparent 30%), linear-gradient(135deg, rgba(15,23,42,.9), rgba(2,6,23,.94)); opacity: 0; pointer-events: none; transition: .2s ease; }
.screen-menu.is-visible { opacity: 1; pointer-events: auto; }
.screen-panel { background: rgba(2, 6, 23, .64); backdrop-filter: blur(10px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }

.brand-card, .panel-card, .buy-menu { width: min(920px, calc(100vw - 32px)); border: 1px solid var(--line); background: linear-gradient(150deg, rgba(15,23,42,.94), rgba(3,7,18,.90)); border-radius: 30px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 42px); position: relative; overflow: hidden; }
.panel-card { touch-action: pan-y; }
.brand-card::before, .panel-card::before, .buy-menu::before { content: ""; position: absolute; inset: -1px; background: radial-gradient(circle at 12% 12%, rgba(56,189,248,.16), transparent 32%), radial-gradient(circle at 90% 10%, rgba(251,191,36,.16), transparent 36%); pointer-events: none; }
.brand-card > *, .panel-card > *, .buy-menu > * { position: relative; }
.brand-card { max-width: 780px; text-align: center; }
.small-card { max-width: 520px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; }
h1 { margin: 0; font-size: clamp(54px, 10vw, 110px); line-height: .86; letter-spacing: -.08em; text-transform: uppercase; }
h1 span { color: var(--accent); text-shadow: 0 0 25px rgba(251,191,36,.35); }
h2 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; }
.tagline { color: #cbd5e1; font-size: clamp(17px, 2.4vw, 24px); margin: 16px 0 28px; }
.muted { color: var(--muted); line-height: 1.55; }
.center { text-align: center; }

.menu-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.menu-actions > button { flex: 1 1 220px; max-width: 240px; min-height: 50px; }
.primary-btn, .ghost-btn { border: 0; border-radius: 999px; padding: 13px 20px; font-weight: 800; color: #07111f; background: linear-gradient(135deg, var(--accent), #f97316); box-shadow: 0 12px 32px rgba(251, 191, 36, .22); min-width: 150px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-align: center; transition: transform .12s ease, filter .12s ease, border-color .12s ease; }
.ghost-btn { color: var(--text); background: rgba(255,255,255,.08); border: 1px solid var(--line); box-shadow: none; }
.primary-btn:hover, .ghost-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.slim { padding: 9px 14px; min-width: auto; }
.close-x { position: absolute; top: 16px; right: 18px; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: var(--text); font-size: 28px; line-height: 1; }
.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.stats-strip div { padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.06); }
.stats-strip strong { display: block; font-size: 28px; }
.stats-strip small { display: block; color: var(--muted); margin-top: 3px; }
#pauseMenu .panel-card { display: grid; gap: 12px; }
#pauseMenu .panel-card p { margin: 0; }
#pauseMenu .panel-card button { width: 100%; min-width: 0; margin: 0; }
#multiplayerUnavailablePanel .info-card { text-align: center; }
#multiplayerUnavailablePanel .info-card .primary-btn { width: 100%; margin-top: 8px; }


.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 22px 0; }
.help-grid div { display: flex; align-items: center; gap: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.05); }
kbd { min-width: 34px; text-align: center; padding: 6px 8px; border-radius: 9px; color: #020617; background: #e2e8f0; font-weight: 900; box-shadow: inset 0 -2px rgba(0,0,0,.18); }
.setting-row { display: grid; gap: 8px; margin: 16px 0; font-weight: 700; color: #dbeafe; }
.setting-row input, .setting-row select { width: 100%; border: 1px solid var(--line); background: rgba(15,23,42,.9); color: var(--text); border-radius: 14px; padding: 10px 12px; }

.hud { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.hud[hidden] { display: none; }
.top-hud { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; }
.round-pill { min-width: 132px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(2,6,23,.58); backdrop-filter: blur(8px); text-align: center; }
.round-pill span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.round-pill strong { display: block; font-size: 20px; }
.objective strong { color: var(--accent); }
.crosshair { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); }
.crosshair i { position: absolute; display: block; background: rgba(255,255,255,.86); box-shadow: 0 0 8px rgba(0,0,0,.5); }
.crosshair i:nth-child(1), .crosshair i:nth-child(2) { width: 2px; height: 10px; left: 16px; }
.crosshair i:nth-child(1) { top: 0; } .crosshair i:nth-child(2) { bottom: 0; }
.crosshair i:nth-child(3), .crosshair i:nth-child(4) { height: 2px; width: 10px; top: 16px; }
.crosshair i:nth-child(3) { left: 0; } .crosshair i:nth-child(4) { right: 0; }
.hit-marker { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); color: var(--danger); font-size: 54px; line-height: 1; opacity: 0; text-shadow: 0 0 18px rgba(251,113,133,.8); transition: opacity .08s, transform .08s; }
.hit-marker.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.damage-vignette { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle, transparent 45%, rgba(239,68,68,.34)); transition: opacity .16s ease; }
.damage-vignette.is-visible { opacity: 1; }
.bottom-hud { position: absolute; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: end; }
.hud-card { min-width: 135px; border: 1px solid var(--line); border-radius: 20px; padding: 12px 14px; background: rgba(2,6,23,.62); backdrop-filter: blur(8px); }
.hud-card small { display: block; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hud-card strong { display: block; font-size: 30px; line-height: 1; }
.hud-card span { display: block; color: #cbd5e1; margin-top: 5px; }
.hp-card strong { color: var(--success); }
.mini-map { position: absolute; right: max(16px, env(safe-area-inset-right)); top: max(16px, env(safe-area-inset-top)); width: 190px; height: 190px; border: 1px solid var(--line); border-radius: 22px; background: rgba(2,6,23,.62); backdrop-filter: blur(8px); }
.message-feed { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: min(350px, 42vw); display: grid; gap: 8px; }
.message-feed p { margin: 0; padding: 10px 13px; border: 1px solid var(--line); border-radius: 14px; color: #e2e8f0; background: rgba(2,6,23,.68); animation: fadeFeed 3.4s forwards; }
.center-message { position: absolute; left: 50%; top: 23%; transform: translateX(-50%); min-width: min(620px, calc(100vw - 40px)); text-align: center; font-size: clamp(24px, 4vw, 52px); line-height: 1; font-weight: 950; letter-spacing: -.04em; color: #e5e7eb; text-shadow: 0 10px 35px rgba(0,0,0,.7); opacity: 0; transition: opacity .2s ease, transform .2s ease, color .16s ease; }
.center-message.is-visible { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.center-message.is-success { color: var(--success); text-shadow: 0 0 22px rgba(52,211,153,.42), 0 10px 35px rgba(0,0,0,.74); }
.center-message.is-danger { color: var(--danger); text-shadow: 0 0 22px rgba(251,113,133,.44), 0 10px 35px rgba(0,0,0,.74); }
@keyframes fadeFeed { 0%, 78% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; transform: translateX(18px); } }

.buy-menu { position: absolute; z-index: 24; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(860px, calc(100vw - 26px)); padding: 24px; }
.buy-menu[hidden] { display: none; }
.buy-header { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 14px; }
.buy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 12px; }
.buy-card { border: 1px solid var(--line); background: rgba(255,255,255,.06); border-radius: 20px; padding: 15px; }
.buy-card h3 { margin: 0 0 6px; font-size: 18px; }
.buy-card p { margin: 0 0 12px; color: var(--muted); min-height: 42px; }
.buy-card .price { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.buy-card button { min-width: auto; width: 100%; padding: 10px 12px; }
.buy-card.is-owned { outline: 1px solid rgba(52,211,153,.4); }

.mobile-controls { position: absolute; inset: auto 0 0 0; z-index: 12; pointer-events: none; padding: 18px; display: flex; justify-content: space-between; align-items: end; touch-action: none; user-select: none; -webkit-user-select: none; }
.mobile-controls[hidden] { display: none; }
.touch-pad, .touch-fire { pointer-events: auto; touch-action: none; -webkit-tap-highlight-color: transparent; }
.touch-pad { width: 116px; height: 116px; border-radius: 999px; background: rgba(15,23,42,.45); border: 1px solid var(--line); position: relative; }
.touch-pad span { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; border-radius: 999px; background: rgba(255,255,255,.28); transform: translate(-50%,-50%); }
.touch-fire { width: 92px; height: 92px; border-radius: 999px; border: 1px solid rgba(251,191,36,.6); color: #07111f; background: linear-gradient(135deg, var(--accent), #fb923c); font-weight: 950; box-shadow: 0 16px 40px rgba(0,0,0,.4); }

@media (max-width: 760px) {
  .menu-actions { display: grid; grid-template-columns: 1fr; }
  .menu-actions > button { width: 100%; max-width: none; }

  .top-hud { left: 10px; right: 10px; transform: none; justify-content: center; flex-wrap: wrap; }
  .round-pill { min-width: 104px; padding: 8px 10px; }
  .bottom-hud { left: 10px; bottom: 10px; gap: 6px; }
  .hud-card { min-width: 96px; padding: 9px; border-radius: 16px; }
  .hud-card strong { font-size: 24px; }
  .mini-map { width: 132px; height: 132px; top: auto; right: 10px; bottom: 140px; }
  .message-feed { display: none; }
  .stats-strip { grid-template-columns: 1fr; }
  h1 { font-size: clamp(50px, 17vw, 80px); }
  .screen-panel { place-items: start center; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
  #helpPanel .panel-card { max-height: calc(100dvh - 24px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
  #helpPanel .help-grid { grid-template-columns: 1fr; gap: 9px; margin: 16px 0; }
  #helpPanel .help-grid div { padding: 11px; align-items: flex-start; }
  #helpPanel .muted { margin-bottom: 6px; }

}

/* Multiplayer Beta */
.multiplayer-card { max-width: 760px; }
.mp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.invite-box { margin: 12px 0; padding: 12px; border: 1px solid rgba(148,163,184,.24); border-radius: 16px; background: rgba(15,23,42,.62); display: grid; gap: 8px; }
.invite-box small { color: #94a3b8; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.invite-box input, .setting-row input[type="text"] { width: 100%; box-sizing: border-box; border: 1px solid rgba(148,163,184,.3); border-radius: 12px; background: rgba(2,6,23,.72); color: #e5e7eb; padding: 11px 12px; font: inherit; }
.mp-status { display: grid; gap: 4px; margin: 14px 0; padding: 12px; border-radius: 14px; background: rgba(56,189,248,.09); border: 1px solid rgba(56,189,248,.24); }
.mp-status strong { color: #e0f2fe; }
.mp-status span { color: #cbd5e1; font-size: .95rem; }
@media (max-width: 720px) {
  .mp-actions { display: grid; }
  .multiplayer-card { max-height: 82vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
}

#mapSelectPanel { scrollbar-width: none; }
#mapSelectPanel::-webkit-scrollbar,
.map-select-card::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Map-Auswahl */
.map-select-card { max-width: 920px; max-height: calc(100dvh - 36px); overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.map-card { display: grid; gap: 12px; width: 100%; text-align: left; color: var(--text); border: 1px solid rgba(148,163,184,.24); border-radius: 24px; padding: 15px; background: rgba(255,255,255,.06); box-shadow: inset 0 1px rgba(255,255,255,.08); transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.map-card:hover, .map-card:focus-visible { transform: translateY(-2px); border-color: rgba(251,191,36,.72); background: rgba(251,191,36,.09); outline: none; }
.map-card strong { font-size: 22px; line-height: 1.1; }
.map-card small { color: var(--muted); line-height: 1.35; }
.map-preview { position: relative; display: block; height: 148px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); background: #0f172a; box-shadow: inset 0 0 34px rgba(0,0,0,.35); }
.map-preview::before { content: ""; position: absolute; inset: 0; opacity: .9; }
.map-preview i { position: absolute; display: block; border-radius: 8px; }
.map-preview-yard::before { background: linear-gradient(135deg, #172033, #0b1220); background-size: 18px 18px; }
.map-preview-yard i:nth-child(1) { left: 9%; top: 12%; width: 28%; height: 18%; background: #475569; }
.map-preview-yard i:nth-child(2) { right: 10%; top: 18%; width: 18%; height: 44%; background: #334155; }
.map-preview-yard i:nth-child(3) { left: 34%; bottom: 14%; width: 38%; height: 15%; background: #64748b; }
.map-preview-yard i:nth-child(4) { left: 43%; top: 41%; width: 17%; height: 17%; border-radius: 999px; background: rgba(251,191,36,.72); box-shadow: 0 0 22px rgba(251,191,36,.5); }
.map-preview-house::before { background: radial-gradient(circle at 55% 42%, rgba(251,191,36,.18), transparent 24%), linear-gradient(135deg, #3b2116, #160b07); }
.map-preview-house i:nth-child(1) { left: 8%; top: 10%; width: 84%; height: 11%; background: #8b5e34; }
.map-preview-house i:nth-child(2) { left: 8%; bottom: 10%; width: 84%; height: 11%; background: #8b5e34; }
.map-preview-house i:nth-child(3) { left: 8%; top: 10%; width: 11%; height: 80%; background: #8b5e34; }
.map-preview-house i:nth-child(4) { right: 8%; top: 10%; width: 11%; height: 80%; background: #8b5e34; }
.map-preview-house i:nth-child(5) { left: 42%; top: 19%; width: 12%; height: 62%; background: #5b3a23; box-shadow: 58px 0 0 #5b3a23, -44px 34px 0 #5b3a23; }

/* Mobile Zusatzbuttons */
.touch-actions { pointer-events: auto; display: grid; justify-items: end; gap: 9px; max-width: min(46vw, 210px); }
.touch-weapon-row, .touch-command-row { display: flex; gap: 7px; justify-content: flex-end; }
.touch-mini, .touch-command { min-width: 42px; min-height: 42px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(15,23,42,.68); color: #f8fafc; font-weight: 950; box-shadow: 0 10px 26px rgba(0,0,0,.28); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.touch-command { min-width: 62px; padding: 0 11px; color: #07111f; background: rgba(251,191,36,.88); border-color: rgba(251,191,36,.64); }
.touch-actions .touch-fire { pointer-events: auto; }

@media (max-width: 760px) {
  .screen { padding: 12px; place-items: start center; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
  .brand-card, .panel-card, .buy-menu { width: min(100%, calc(100vw - 20px)); border-radius: 22px; padding: 18px; }
  .brand-card { margin: auto 0; }
  .map-grid { grid-template-columns: 1fr; gap: 12px; }
  .map-preview { height: 112px; }
  .buy-menu { max-height: calc(100dvh - 22px); overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; top: 50%; padding: 18px; }
  .buy-header { position: sticky; top: -18px; padding-top: 2px; padding-bottom: 10px; background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(15,23,42,.76)); z-index: 2; }
  .buy-grid { grid-template-columns: 1fr; }
  .buy-card p { min-height: 0; }
  .mobile-controls { padding: 10px max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); align-items: end; gap: 10px; }
  .touch-pad { width: 104px; height: 104px; flex: 0 0 auto; }
  .touch-actions { gap: 7px; max-width: 58vw; }
  .touch-weapon-row, .touch-command-row { gap: 6px; flex-wrap: wrap; }
  .touch-mini, .touch-command { min-width: 38px; min-height: 38px; border-radius: 13px; font-size: 13px; }
  .touch-command { min-width: 58px; }
  .touch-fire { width: 78px; height: 78px; font-size: 12px; }
}

@media (max-width: 430px), (max-height: 620px) {
  .top-hud { transform: scale(.86); transform-origin: top center; }
  .bottom-hud { transform: scale(.84); transform-origin: bottom left; }
  .mini-map { width: 110px; height: 110px; bottom: 128px; }
  .touch-pad { width: 92px; height: 92px; }
  .touch-pad span { width: 34px; height: 34px; }
  .touch-fire { width: 68px; height: 68px; }
  .touch-mini, .touch-command { min-width: 34px; min-height: 34px; font-size: 12px; }
  .touch-command { min-width: 52px; }
}

/* Map-Vorschauen als echte Top-down Kartenbilder */
.map-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.map-preview::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 34px rgba(0,0,0,.34); }

/* Multiplayer Raum/Lobby */
.multiplayer-card { max-width: 1040px; max-height: calc(100dvh - 36px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mp-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 14px; }
.mp-tabs .is-active { border-color: rgba(251,191,36,.72); background: rgba(251,191,36,.14); color: #fef3c7; }
.mp-view { display: grid; gap: 14px; }
.mp-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; align-items: end; }
.mp-room-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.room-list { display: grid; gap: 10px; }
.room-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 210px) auto; gap: 10px; align-items: center; padding: 12px; border-radius: 18px; border: 1px solid rgba(148,163,184,.24); background: rgba(255,255,255,.055); }
.room-card strong { display: block; font-size: 17px; }
.room-card small { color: var(--muted); }
.room-card input { width: 100%; box-sizing: border-box; border: 1px solid rgba(148,163,184,.3); border-radius: 12px; background: rgba(2,6,23,.72); color: #e5e7eb; padding: 10px 11px; font: inherit; }
.mp-lobby { margin-top: 14px; display: grid; gap: 14px; }
.mp-lobby-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: rgba(15,23,42,.72); border: 1px solid rgba(148,163,184,.22); }
.mp-lobby-head small { display: block; color: #94a3b8; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.mp-lobby-head strong { font-size: 20px; }
.mp-host-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; padding: 12px; border-radius: 18px; border: 1px solid rgba(251,191,36,.24); background: rgba(251,191,36,.075); }
.mp-host-controls label { display: grid; gap: 6px; color: var(--muted); font-weight: 800; }
.mp-host-controls select { border: 1px solid rgba(148,163,184,.3); border-radius: 12px; background: rgba(2,6,23,.72); color: #e5e7eb; padding: 11px 12px; font: inherit; }
.mp-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mp-team { min-height: 185px; padding: 13px; border-radius: 22px; border: 1px solid rgba(148,163,184,.24); background: rgba(255,255,255,.052); }
.mp-team h3 { margin: 0 0 10px; font-size: 20px; }
.mp-team-blue { border-color: rgba(56,189,248,.36); background: rgba(56,189,248,.075); }
.mp-team-red { border-color: rgba(248,113,113,.36); background: rgba(248,113,113,.075); }
.mp-team-list { min-height: 124px; display: grid; align-content: start; gap: 8px; padding: 8px; border-radius: 16px; border: 1px dashed rgba(226,232,240,.18); }
.mp-player-chip { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 14px; background: rgba(2,6,23,.62); border: 1px solid rgba(148,163,184,.24); cursor: grab; user-select: none; }
.mp-player-chip:active { cursor: grabbing; }
.mp-player-chip.is-host::after { content: "Host"; font-size: 11px; font-weight: 950; color: #fef3c7; background: rgba(251,191,36,.18); border: 1px solid rgba(251,191,36,.35); border-radius: 999px; padding: 3px 7px; }
.mp-player-chip.is-self { outline: 1px solid rgba(52,211,153,.56); }
.mp-bot-chip { opacity: .72; cursor: default; font-style: italic; }
.mp-drop-active { outline: 2px solid rgba(251,191,36,.7); outline-offset: 2px; }

@media (max-width: 720px) {
  .room-card { grid-template-columns: 1fr; }
  .mp-teams { grid-template-columns: 1fr; }
  .mp-lobby-head { align-items: stretch; flex-direction: column; }
}

/* Multiplayer Neuer Ablauf */
.mp-step { display: grid; gap: 14px; }
.mp-browser-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px; margin-bottom: 14px; border: 1px solid rgba(148,163,184,.24); border-radius: 18px; background: rgba(15,23,42,.72); }
.mp-browser-head small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.mp-browser-head strong { display: block; font-size: 21px; }
.mp-create-game { display: grid; gap: 12px; margin: 0 0 16px; padding: 14px; border: 1px solid rgba(251,191,36,.24); border-radius: 20px; background: rgba(251,191,36,.07); }
.mp-create-game h3, .mp-room-tools h3, .mp-deathmatch h3 { margin: 0; font-size: 21px; }
.game-card-main { min-width: 0; }
.game-open-badge { justify-self: start; color: #bbf7d0; border: 1px solid rgba(52,211,153,.35); border-radius: 999px; background: rgba(52,211,153,.12); padding: 7px 11px; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.mp-deathmatch { padding: 13px; border-radius: 22px; border: 1px solid rgba(251,191,36,.30); background: rgba(251,191,36,.07); }
#mpNicknameContinueBtn, #createGameBtn { justify-self: start; }
@media (max-width: 720px) {
  .mp-browser-head { align-items: stretch; flex-direction: column; }
  #mpNicknameContinueBtn, #createGameBtn, #openCreateGameBtn { width: 100%; }
  .game-open-badge { width: 100%; text-align: center; }
}
