/* ---------- Arena: Lobby ---------- */
.ar-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.ar-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.ar-war.live { border-color: rgba(231, 76, 60, .5); background: linear-gradient(135deg, rgba(231, 76, 60, .12), transparent 60%), var(--panel); }
.ar-warbar { position: relative; height: 26px; border-radius: 13px; background: rgba(52, 152, 219, .35); overflow: hidden; margin: 10px 0 6px; }
.ar-warbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #c0392b, #e74c3c); }
.ar-warbar span { position: relative; display: block; text-align: center; line-height: 26px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.ar-warnums { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .88rem; margin-bottom: 10px; }
.ar-loadout { display: flex; gap: 12px; align-items: center; }
.ar-loadout canvas { background: radial-gradient(circle, #2c333b, #14181c 70%); border-radius: 12px; flex: none; }
.ar-loadout > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ar-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: start; }
.ar-team { border: 2px solid var(--tc); border-radius: 14px; padding: 10px; background: color-mix(in srgb, var(--tc) 10%, transparent); }
.ar-team h4 { margin: 0 0 8px; color: var(--tc); display: flex; justify-content: space-between; }
.ar-slot { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgba(0, 0, 0, .25); margin-bottom: 6px; }
.ar-slot small { margin-left: auto; }

/* ---------- Waffenkammer ---------- */
.ar-shop-top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ar-shop-top canvas { background: radial-gradient(circle, #2c333b, #101316 70%); border-radius: 16px; flex: none; }
.ar-shop-top > div { flex: 1 1 260px; }
.ar-gear { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ar-gear > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 10px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.ar-weapons { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.ar-wcard.eq, .ar-skin.eq, .ar-paint.eq { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.ar-whead { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.ar-whead > div { display: flex; flex-direction: column; }
.ar-wicon { font-size: 2rem; }
.ar-statrows { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 4px 8px; align-items: center; font-size: .75rem; color: var(--muted); }
.ar-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ar-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #ffe08a); }
.ar-ups { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.ar-up { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: .84rem; }
.ar-pips { display: flex; gap: 3px; }
.ar-pips i { width: 10px; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.ar-pips i.on { background: var(--gold); }
.ar-skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ar-skin, .ar-paint { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 10px; }
.ar-skin canvas { background: radial-gradient(circle, #2c333b, #14181c 70%); border-radius: 12px; }
.ar-paints { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.ar-paint i { width: 56px; height: 18px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .25); }

/* ---------- Spiel ---------- */
.arena-game { position: fixed; inset: 0; z-index: 140; background: #0d0f12; touch-action: none; user-select: none; -webkit-user-select: none; cursor: none; }
.arena-game button, .arena-game .rg-result { cursor: pointer; }
.arena-game .rg-result { cursor: default; }
.arena-game canvas#agCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ag-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: center; pointer-events: none; }
.ag-top .rg-exit { position: absolute; right: 0; top: 0; }
.ag-score { display: flex; align-items: stretch; background: rgba(0, 0, 0, .65); border-radius: 12px; overflow: hidden; font-variant-numeric: tabular-nums; }
.ag-score > span { min-width: 64px; display: grid; place-items: center; font-size: 1.6rem; font-weight: 900; padding: 4px 12px; }
.ag-score .t0 { background: rgba(231, 76, 60, .75); }
.ag-score .t1 { background: rgba(52, 152, 219, .75); }
.ag-score > div { padding: 4px 14px; text-align: center; }
.ag-score small { display: block; font-size: .62rem; color: #bbb; letter-spacing: .05em; }
.ag-score b { font-size: 1.2rem; }
.ag-map { position: absolute; top: 62px; right: 10px; border-radius: 10px; pointer-events: none; }
.ag-feed { position: absolute; top: 190px; right: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; pointer-events: none; font-size: .82rem; font-weight: 600; }
.ag-feed div { background: rgba(0, 0, 0, .55); padding: 3px 8px; border-radius: 6px; animation: agIn .2s ease-out; }
.ag-feed div.me { box-shadow: 0 0 0 1px var(--gold) inset; }
@keyframes agIn { from { transform: translateX(20px); opacity: 0; } }
.ag-hud { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 12px; align-items: flex-end; pointer-events: none; }
.ag-hp, .ag-weap { background: rgba(0, 0, 0, .65); border-radius: 12px; padding: 8px 12px; }
.ag-hp { display: flex; align-items: center; gap: 10px; }
.ag-hpbar { width: 180px; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ag-hpbar i { display: block; height: 100%; background: linear-gradient(90deg, #27ae60, #2ecc71); transition: width .15s; }
.ag-hpbar i.low { background: linear-gradient(90deg, #c0392b, #e74c3c); }
.ag-hp b { font-size: 1.3rem; min-width: 36px; font-variant-numeric: tabular-nums; }
.ag-weap { min-width: 170px; display: flex; flex-direction: column; }
.ag-weap span { font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ag-weap span.low { color: #ff6b5b; }
.ag-weap small { color: #bbb; }
.ag-rl { height: 3px; background: rgba(255, 255, 255, .1); margin: 3px 0; }
.ag-rl i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 1s linear; }
.ag-banner { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, .7); border: 2px solid #fff; border-radius: 12px; padding: 8px 18px; font-weight: 800; font-size: 1.1rem; pointer-events: none; text-align: center; max-width: 90vw; }
.ag-streak { position: absolute; top: 30%; left: 50%; transform: translateX(-50%); font: 900 2.6rem Cinzel, serif; color: var(--gold2, #ffd700); text-shadow: 0 0 18px rgba(255, 180, 0, .8), 0 3px 0 #000; pointer-events: none; text-align: center; animation: agPop .35s cubic-bezier(.2, 1.6, .5, 1); }
.ag-streak small { display: block; font: 700 .9rem Inter, sans-serif; color: #fff; }
@keyframes agPop { from { transform: translateX(-50%) scale(2.2); opacity: 0; } }
.ag-dead { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); background: rgba(0, 0, 0, .75); border: 1px solid rgba(231, 76, 60, .6); border-radius: 14px; padding: 14px 22px; text-align: center; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.ag-dead b { font-size: 1.3rem; }
.ag-board { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: rgba(0, 0, 0, .8); border-radius: 14px; padding: 14px; width: min(720px, 94vw); pointer-events: none; }
.ag-board h4 { margin: 0 0 6px; }
.ag-board table { width: 100%; font-size: .85rem; border-collapse: collapse; }
.ag-board td, .ag-board th { padding: 3px 6px; text-align: left; }
.ag-board tr.me td { color: var(--gold2, #ffd700); font-weight: 700; }
.ag-vig { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(200, 0, 0, .75)); }
.ag-stick { position: absolute; bottom: calc(26px + env(safe-area-inset-bottom)); width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .25); touch-action: none; }
.ag-stick.l { left: 22px; }
.ag-stick.r { right: 22px; background: rgba(231, 76, 60, .12); border-color: rgba(231, 76, 60, .45); }
.ag-stick i { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 50%; background: rgba(255, 255, 255, .35); pointer-events: none; }
.ag-btns { position: absolute; right: 22px; bottom: calc(170px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(2, 52px); gap: 10px; }
.ag-btns button { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .5); color: #fff; font-size: 1.3rem; touch-action: none; }
@media (pointer: coarse) {
  .arena-game { cursor: default; }
  .ag-hud { bottom: auto; top: 58px; left: 10px; transform: none; flex-direction: column; align-items: flex-start; gap: 6px; }
  .ag-hpbar { width: 110px; }
  .ag-weap { min-width: 0; padding: 6px 10px; }
  .ag-map { width: 120px; height: 80px; }
  .ag-feed { top: 150px; font-size: .72rem; }
}
@media (max-width: 860px) {
  .ar-layout { grid-template-columns: 1fr; }
  .ar-teams { grid-template-columns: 1fr; }
  .ar-teams .war-x { text-align: center; }
  .ag-streak { font-size: 1.8rem; }
}
