.arena-screen { position: fixed; z-index: 100; inset: 0; width: min(100vw, 100%); background: #68a99c; overflow: hidden; overscroll-behavior: none; touch-action: none; user-select: none; }
#arena-canvas { position: absolute; inset: 0; overscroll-behavior: none; touch-action: none; }
.arena-hud { position: absolute; z-index: 3; top: calc(env(safe-area-inset-top) + 12px); left: 12px; right: 12px; display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; }
.arena-hud button { pointer-events: auto; }
.arena-stat { display: grid; gap: 2px; min-width: 90px; padding: 8px 10px; border: 2px solid rgba(255,255,255,.7); border-radius: 8px; background: rgba(23,60,45,.88); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.arena-stat b { font-size: 16px; }.arena-stat span { font-size: 10px; }
.arena-hud-actions { display: flex; gap: 7px; }
.arena-icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.7); border-radius: 8px; background: rgba(23,60,45,.88); color: #fff; font-size: 20px; }
.arena-leaders { position: absolute; z-index: 4; top: calc(env(safe-area-inset-top) + 64px); right: 12px; width: min(260px, calc(100vw - 24px)); padding: 10px; border: 2px solid #e1e9d9; border-radius: 8px; background: rgba(23,60,45,.94); color: #fff; transform: translateX(calc(100% + 20px)); transition: transform .18s ease; }
.leaders-open .arena-leaders { transform: translateX(0); }.arena-leaders h3 { margin: 0 0 7px; font-size: 13px; }.arena-leaders ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }.arena-leaders li { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.arena-status { position: absolute; z-index: 6; left: 50%; top: calc(env(safe-area-inset-top) + 68px); transform: translateX(-50%); max-width: min(86vw, 460px); padding: 8px 12px; border-radius: 6px; background: rgba(255,244,207,.94); color: #173c2d; font-size: 12px; font-weight: 800; text-align: center; box-shadow: 0 5px 18px rgba(0,0,0,.18); }
.arena-status.important { background: #fff; color: #842f27; }
.arena-exit-pointer { --exit-angle: 0deg; position: absolute; z-index: 3; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 6px; background: rgba(255,255,255,.84); color: #214b35; font-size: 10px; }
.arena-exit-pointer span { display: inline-block; font-size: 21px; transform: rotate(var(--exit-angle)); }
.arena-controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 16px); height: 150px; pointer-events: none; }
.arena-joystick { position: absolute; right: 18px; bottom: 0; width: 132px; height: 132px; border: 3px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(23,60,45,.35); pointer-events: auto; touch-action: none; }
.arena-joystick-knob { position: absolute; left: calc(50% - 29px); top: calc(50% - 29px); width: 58px; height: 58px; border: 3px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(183,220,141,.9); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.arena-tongue { position: absolute; left: 20px; bottom: 8px; width: 112px; height: 112px; border: 4px solid rgba(255,255,255,.8); border-radius: 50%; background: #d96e75; color: #fff; font-size: 42px; font-weight: 900; box-shadow: 0 7px 0 #813a43; pointer-events: auto; touch-action: none; }
.arena-tongue:active { transform: translateY(5px); box-shadow: 0 2px 0 #813a43; }.tongue-cooldown .arena-tongue { filter: grayscale(.7); opacity: .72; }
.arena-dialog { position: absolute; z-index: 10; left: 50%; top: 50%; width: min(88vw, 370px); transform: translate(-50%, -50%); padding: 18px; border: 3px solid #315f44; border-radius: 8px; background: #fff4cf; color: #173c2d; box-shadow: 0 20px 60px rgba(0,0,0,.35); text-align: center; }
.arena-dialog h2 { margin: 0 0 8px; font: 800 22px/1.1 Georgia, serif; }.arena-dialog p { margin: 0 0 16px; font-size: 13px; }.arena-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.arena-dialog button { min-height: 44px; border: 0; border-radius: 6px; font-weight: 900; }.arena-dialog .yes { background: #2f7450; color: #fff; }.arena-dialog .no { background: #e3eadf; color: #173c2d; }.arena-dialog .wide { grid-column: 1 / -1; }
.arena-fatal { min-height: 100dvh; display: grid; place-items: center; padding: 30px; background: #fff4cf; color: #842f27; font-weight: 900; text-align: center; }
.arena-place { width: clamp(108px, 31vw, 130px); height: clamp(94px, 25vw, 106px); left: 50%; top: 488px; transform: translateX(-50%); background: #87ca8a; border-radius: 48% 52% 57% 43%; }
@media (min-width: 700px) and (hover: hover) and (pointer: fine) { .arena-controls { display: none; }.arena-screen::after { content: "WASD / стрелки — движение · мышь — прицел · удерживайте левую кнопку — язык"; position: absolute; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 7px 10px; border-radius: 5px; background: rgba(23,60,45,.82); color: white; font-size: 11px; white-space: nowrap; } }
