/* VANTA SHIFT — ARENA (PvP) HUD + menus. Competitive readability: clean, high-contrast, no layout shift. */
#arena-hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; font-family: var(--mono); color: #f2f0ea; }
.ah-top { position: absolute; top: calc(10px + var(--sa-t)); left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: 120px 110px 120px; align-items: center; }
.ah-team { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; background: rgba(10,12,16,0.62); }
.ah-team b { font-family: var(--disp); font-weight: 400; font-size: 30px; letter-spacing: 0.02em; min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.ah-team span { font-size: 11px; letter-spacing: 0.24em; }
.ah-team.t0 { justify-content: flex-end; border-bottom: 3px solid #4f8ee8; } .ah-team.t0 b { color: #8fbaff; }
.ah-team.t1 { justify-content: flex-start; border-bottom: 3px solid #e8a03a; } .ah-team.t1 b { color: #ffc77a; }
.ah-top.ffa .ah-team span { display: none; }
.ah-top.ffa .ah-team.t0::before { content: 'SEN'; font-size: 10px; letter-spacing: 0.2em; } .ah-top.ffa .ah-team.t1::after { content: 'LİDER'; font-size: 10px; letter-spacing: 0.2em; }
.ah-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 40px; background: rgba(0,0,0,0.72); }
.ah-timer { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ah-sub { font-size: 9px; letter-spacing: 0.16em; color: #b9b6ae; white-space: nowrap; }
.ah-map { position: absolute; left: calc(12px + var(--sa-l)); top: calc(12px + var(--sa-t)); width: 204px; }
.ah-map canvas { width: 204px; height: 144px; display: block; border: 1px solid rgba(255,255,255,0.18); image-rendering: pixelated; }
.ah-map div { font-size: 10px; letter-spacing: 0.18em; margin-top: 4px; color: #d8d5cd; height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-feed { position: absolute; right: calc(12px + var(--sa-r)); top: calc(12px + var(--sa-t)); width: 340px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ah-feed div { display: flex; gap: 8px; align-items: center; padding: 3px 9px; background: rgba(8,9,12,0.62); font-size: 12px; transition: opacity 0.5s; max-width: 100%; white-space: nowrap; overflow: hidden; }
.ah-feed div.mine { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45); }
.ah-feed div.out { opacity: 0; }
.ah-feed em { font-style: normal; color: #a9a6a0; font-size: 11px; }
.ah-cross { position: absolute; left: 50%; top: 50%; width: 0; height: 0; --gap: 6px; transition: opacity 0.1s; }
.ah-cross i { position: absolute; background: rgba(255,255,255,0.92); box-shadow: 0 0 2px #000; }
.ah-cross i:nth-child(1) { width: 2px; height: 8px; left: -1px; top: calc(-8px - var(--gap)); }
.ah-cross i:nth-child(2) { width: 2px; height: 8px; left: -1px; top: var(--gap); }
.ah-cross i:nth-child(3) { width: 8px; height: 2px; top: -1px; left: calc(-8px - var(--gap)); }
.ah-cross i:nth-child(4) { width: 8px; height: 2px; top: -1px; left: var(--gap); }
.ah-cross b { position: absolute; width: 2px; height: 2px; left: -1px; top: -1px; background: #fff; }
.ah-hit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; }
.ah-hit.on { opacity: 1; }
.ah-hit i { position: absolute; width: 10px; height: 2px; background: #fff; box-shadow: 0 0 3px #000; }
.ah-hit i:nth-child(1) { transform: rotate(45deg) translate(7px, 0); } .ah-hit i:nth-child(2) { transform: rotate(135deg) translate(7px, 0); }
.ah-hit i:nth-child(3) { transform: rotate(225deg) translate(7px, 0); } .ah-hit i:nth-child(4) { transform: rotate(315deg) translate(7px, 0); }
.ah-hit i { left: -5px; top: -1px; }
.ah-hit.head i { background: #ffd04a; } .ah-hit.kill i { background: #ff3b30; width: 14px; } .ah-hit.shield i { background: #7fd3ff; }
.ah-dmg { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.ah-dmg i { position: absolute; left: -70px; top: -130px; width: 140px; height: 26px; border-top: 4px solid rgba(255,48,32,0.85); border-radius: 50% 50% 0 0; transform-origin: 70px 130px; animation: dmgfade 1.2s forwards; filter: blur(0.5px); }
@keyframes dmgfade { from { opacity: 1; } to { opacity: 0; } }
.ah-center { position: absolute; left: 50%; top: 27%; transform: translateX(-50%); text-align: center; opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.ah-center.on { opacity: 1; }
.ah-center b { display: block; font-family: var(--disp); font-weight: 400; font-size: clamp(30px, 4.4vw, 54px); letter-spacing: 0.08em; text-shadow: 0 2px 10px rgba(0,0,0,0.8); white-space: nowrap; }
.ah-center small { display: block; font-size: 12px; letter-spacing: 0.26em; color: #d6d3cb; white-space: nowrap; }
.ah-respawn { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); font-size: 15px; letter-spacing: 0.24em; padding: 6px 14px; background: rgba(0,0,0,0.55); white-space: nowrap; }
.ah-prot { position: absolute; left: 50%; top: calc(66px + var(--sa-t)); transform: translateX(-50%); font-size: 10px; letter-spacing: 0.26em; color: #7fd3ff; }
.ah-hp { position: absolute; left: calc(16px + var(--sa-l)); bottom: calc(16px + var(--sa-b)); display: grid; grid-template-columns: auto 200px 40px; gap: 10px; align-items: center; font-size: 11px; letter-spacing: 0.16em; }
.ah-hp .bar { height: 7px; background: rgba(255,255,255,0.14); position: relative; overflow: hidden; }
.ah-hp .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #eceae3; transition: width 0.15s; }
.ah-hp .bar i.low { background: #ff3b30; }
.ah-hp b { font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.ah-ammo { position: absolute; right: calc(18px + var(--sa-r)); bottom: calc(14px + var(--sa-b)); text-align: right; }
.ah-ammo div { font-size: 17px; } .ah-ammo b { font-size: 34px; font-variant-numeric: tabular-nums; }
.ah-ammo small { display: block; font-size: 10px; letter-spacing: 0.18em; color: #bdbab3; white-space: nowrap; }
.ah-killer { position: absolute; left: 50%; bottom: 24%; transform: translateX(-50%); min-width: 300px; max-width: 90vw; padding: 12px 18px; background: rgba(8,9,12,0.82); border-left: 3px solid #ff3b30; display: flex; flex-direction: column; gap: 4px; }
.ah-killer b { font-family: var(--disp); font-weight: 400; font-size: 26px; letter-spacing: 0.04em; }
.ah-board { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(760px, 94vw); max-height: 80vh; overflow: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; padding: 14px; background: rgba(8,9,12,0.88); }
.ah-board h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.24em; }
.ah-board .t0 h4 { color: #8fbaff; } .ah-board .t1 h4 { color: #ffc77a; }
.ah-board table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ah-board th { font-size: 9.5px; letter-spacing: 0.14em; color: #a9a6a0; text-align: right; font-weight: 500; padding: 3px 4px; }
.ah-board td { text-align: right; padding: 4px; border-top: 1px solid rgba(255,255,255,0.08); font-variant-numeric: tabular-nums; }
.ah-board th:first-child, .ah-board td:first-child { text-align: left; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-board tr.you td { color: #fff; font-weight: 700; background: rgba(255,255,255,0.06); }
#ah-scope { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, transparent 0 calc(min(50vh, 50vw) - 2px), #000 calc(min(50vh, 50vw) - 1px)); }
#ah-scope canvas { width: min(100vh, 100vw); height: min(100vh, 100vw); }
.arena-over { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(0,0,0,0.74); padding: 16px; }
.arena-over .panel { width: min(820px, 96vw); max-height: 92vh; overflow: auto; }
.arena-over h2 { font-size: clamp(34px, 5vw, 56px) !important; }
.arena-over h2.win { color: #ffd04a; }
.arena-over tr.you td { color: #fff; font-weight: 700; }
/* touch: keep HUD clear of the controls */
body.is-touch .ah-map { top: calc(62px + var(--sa-t)); }
body.is-touch .ah-map, body.is-touch .ah-map canvas { width: 128px; } body.is-touch .ah-map canvas { height: 90px; }
body.is-touch .ah-hp { bottom: calc(10px + var(--sa-b)); left: 50%; transform: translateX(-50%); grid-template-columns: auto 110px 32px; gap: 6px; }
body.is-touch .ah-hp b { font-size: 15px; }
body.is-touch .ah-ammo { bottom: calc(34px + var(--sa-b)); right: auto; left: 50%; transform: translateX(-50%); text-align: center; }
body.is-touch .ah-ammo b { font-size: 26px; }
body.is-touch .ah-killer { bottom: 34%; }
@media (orientation: portrait) and (max-width: 560px) {
  body.is-touch .ah-hp, body.is-touch .ah-ammo { left: auto; transform: none; right: calc(12px + var(--sa-r)); text-align: right; }
  body.is-touch .ah-hp { bottom: auto; top: calc(178px + var(--sa-t)); }
  body.is-touch .ah-ammo { bottom: auto; top: calc(200px + var(--sa-t)); }
  .ah-feed { top: calc(62px + var(--sa-t)); width: 60vw; }
  .ah-feed div:nth-child(n+5) { display: none; }
  .ah-top { top: calc(10px + var(--sa-t)); left: auto; right: calc(10px + var(--sa-r)); transform: none; }
}
@media (max-width: 900px), (max-height: 520px) {
  .ah-map, .ah-map canvas { width: 150px; } .ah-map canvas { height: 106px; }
  .ah-feed { width: 240px; } .ah-feed div { font-size: 10.5px; }
  .ah-top { grid-template-columns: 90px 90px 90px; } .ah-team b { font-size: 24px; min-width: 32px; } .ah-team { height: 34px; padding: 0 8px; } .ah-mid { height: 34px; }
  .ah-team span { display: none; }
}
/* arena menu modal */
.arena-menu { display: flex; flex-direction: column; gap: 10px; }
.am-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.am-modes button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px; border: 1px solid var(--line); border-radius: 2px; background: rgba(255,255,255,0.03); text-align: left; min-width: 0; }
.am-modes button b { font-family: var(--disp); font-weight: 400; font-size: 18px; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.am-modes button small { font-size: 10.5px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.am-modes button.on { border-color: var(--red); background: rgba(224,38,27,0.12); }
.am-lo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.am-lo label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.am-seg { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.am-seg button { font-size: 11px; padding: 8px 2px; }
.am-seg button[disabled] { opacity: 0.35; pointer-events: none; }
.am-bots { grid-template-columns: repeat(4, 1fr); }
.am-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.am-acts .mbtn { flex-direction: column; align-items: flex-start; gap: 2px; }
.am-acts .mbtn small { white-space: normal; }
.arena-btn { border-color: rgba(233,180,90,0.45); background: linear-gradient(90deg, rgba(233,180,90,0.16), rgba(233,180,90,0.02)); }
.arena-btn::before { background: var(--amber); }
@media (max-width: 620px) { .am-modes, .am-acts { grid-template-columns: 1fr; } .am-lo { grid-template-columns: 1fr; } }

.arena-over .over-actions { display: flex; flex-wrap: wrap; gap: 8px; }
