/* Viper Arena — HUD + menu extras. Everything is in em units off .va-hud so it scales from phones to 4K. */

/* ---------- HUD root ---------- */
.va-hud {
  position: absolute; inset: 0; pointer-events: none;
  font-family: var(--font-b); color: #fff;
  font-size: clamp(13px, calc(8px + .62vw), 26px);
  transition: opacity .35s ease;
}
.va-hud--off { opacity: 0; }
.va-hud .pill { font-size: inherit; }

/* ---------- leaderboard ---------- */
.va-lb {
  position: absolute; top: 4.1em; right: 1em; width: 15.5em;
  padding: .7em .75em .6em; border-radius: 1.1em;
  background: rgba(15, 12, 34, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset, 0 .5em 1.6em rgba(0, 0, 0, .35);
}
.va-lb__h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 .35em .45em; }
.va-lb__h span { font-family: var(--font-d); font-size: .8em; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); }
.va-lb__h i { font-style: normal; font-size: .68em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.va-lb ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1em; }
.va-lb li {
  display: grid; grid-template-columns: 1.5em .7em 1fr auto; gap: .5em; align-items: center;
  padding: .22em .4em; border-radius: .6em; font-size: .86em; font-weight: 700; line-height: 1.15; color: #DCD7FF;
}
.va-lb li[hidden] { display: none; }
.va-lb li .rk { font-family: var(--font-d); font-size: .82em; color: var(--mute); text-align: right; }
.va-lb li:nth-child(1) .rk { color: var(--sun); }
.va-lb li:nth-child(2) .rk { color: #E7E4FF; }
.va-lb li:nth-child(3) .rk { color: #F0A25A; }
.va-lb li .dot { width: .7em; height: .7em; border-radius: 50%; box-shadow: 0 0 .6em currentColor; background: currentColor; }
.va-lb li .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.va-lb li .sc { font-variant-numeric: tabular-nums; color: #fff; font-weight: 800; }
.va-lb li.me { background: rgba(198, 255, 61, .17); box-shadow: 0 0 0 1.5px var(--lime) inset; color: #fff; font-weight: 900; }
.va-lb li.me .rk { color: var(--lime); }
.va-lb li.gap { padding: 0; height: .5em; opacity: .5; font-size: .7em; text-align: center; display: block; }

/* ---------- kill feed ---------- */
.va-feed { position: absolute; top: 4.1em; left: 1em; display: flex; flex-direction: column; gap: .35em; align-items: flex-start; max-width: 60vw; }
.va-feed__i {
  padding: .4em .8em; border-radius: .8em; font-size: .88em; font-weight: 700; color: #DCD7FF; white-space: nowrap;
  background: rgba(15, 12, 34, .6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .08) inset;
  animation: vafeed 5.6s ease forwards;
}
.va-feed__i b { color: #fff; font-weight: 800; }
.va-feed__i.you { box-shadow: 0 0 0 1.5px var(--lime) inset; background: rgba(40, 55, 10, .7); }
.va-feed__i.you b.k { color: var(--lime); }
.va-feed__i.dead { box-shadow: 0 0 0 1.5px var(--orange) inset; background: rgba(60, 20, 10, .7); }
@keyframes vafeed {
  0% { opacity: 0; transform: translateX(-14px) scale(.96); }
  6% { opacity: 1; transform: none; }
  84% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* ---------- stats (bottom left) ---------- */
.va-stats { position: absolute; left: 1em; bottom: 1em; display: flex; gap: .6em; align-items: stretch; }
.va-p { min-width: 5.6em; padding: .55em 1em .6em; gap: .08em; }
.va-p small { font-size: .6em; }
.va-p b { font-size: 1.7em; line-height: 1.05; }
.va-p b .of { font-family: var(--font-b); font-weight: 800; font-size: .46em; color: var(--mute); margin-left: .25em; letter-spacing: 0; }
.va-p--len { min-width: 14em; position: relative; }
.va-p--len em { font-style: normal; font-weight: 800; font-size: .82em; letter-spacing: .02em; color: var(--lime); margin-top: .1em; }
.va-bar { display: block; height: .38em; margin-top: .45em; border-radius: 9em; background: rgba(255, 255, 255, .12); overflow: hidden; }
.va-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--lime), var(--cyan)); box-shadow: 0 0 .8em rgba(198, 255, 61, .6); transition: width .25s ease; }
.va-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; }
.va-p--len .nx { font-size: .6em; font-weight: 800; letter-spacing: .06em; color: var(--mute); text-transform: uppercase; white-space: nowrap; }

/* ---------- minimap ---------- */
.va-mini { position: absolute; right: 1em; bottom: 1em; width: 11.5em; height: 11.5em; border-radius: 50%;
  box-shadow: 0 0 0 .22em rgba(255, 255, 255, .12), 0 .5em 1.8em rgba(0, 0, 0, .5); background: rgba(15, 12, 34, .55); }
.va-mini canvas { width: 100%; height: 100%; display: block; border-radius: 50%; }

/* ---------- touch boost button ---------- */
.va-boost { display: none; position: absolute; right: 1em; bottom: 1em; width: 6.4em; height: 6.4em; border-radius: 50%; border: 0; padding: 0;
  font-family: var(--font-d); font-size: 1em; letter-spacing: .04em; color: var(--ink); text-transform: uppercase;
  background: radial-gradient(circle at 35% 30%, #E8FF8F, var(--lime) 55%, #7FB000); box-shadow: 0 .35em 0 #4A6A00, 0 0 0 .2em rgba(255, 255, 255, .25) inset, 0 .6em 1.6em rgba(0, 0, 0, .4);
  pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.va-boost.on { transform: translateY(.25em) scale(.96); box-shadow: 0 .1em 0 #4A6A00, 0 0 0 .2em rgba(255, 255, 255, .25) inset, 0 0 2em rgba(198, 255, 61, .8); }
.va-touch .va-boost { display: block; }
.va-touch .va-mini { right: auto; left: 1em; bottom: 1em; width: 8.6em; height: 8.6em; }
.va-touch .va-stats { left: 10.4em; bottom: 1em; }

/* ---------- hint ---------- */
.va-hint { position: absolute; left: 50%; bottom: 17%; transform: translateX(-50%); padding: .55em 1.1em; border-radius: 999px; font-weight: 800; font-size: .95em; white-space: nowrap;
  background: rgba(15, 12, 34, .7); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset; opacity: 0; transition: opacity .5s; }
.va-hint.show { opacity: 1; }
.va-hint kbd { font-size: .8em; margin: 0 .15em; }

/* ---------- menu extras (name + skins) ---------- */
.va-menu { display: grid; gap: .55rem; width: 100%; }
.va-lab { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); display: flex; justify-content: space-between; align-items: baseline; }
.va-lab b { font-family: var(--font-d); font-weight: 400; letter-spacing: .04em; font-size: .95rem; color: var(--lime); text-transform: none; }
.va-name {
  width: 100%; font: 800 1.15rem var(--font-b); color: #fff; padding: .7em 1em; border-radius: 14px; border: 0; outline: 0;
  background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset; transition: box-shadow .15s, background .15s;
}
.va-name::placeholder { color: #8A84B8; font-weight: 700; }
.va-name:focus { background: rgba(255, 255, 255, .13); box-shadow: 0 0 0 2px var(--lime) inset, 0 0 1.4rem rgba(198, 255, 61, .25); }
.va-skins { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.va-skin {
  position: relative; padding: 0; border: 0; border-radius: 12px; cursor: pointer; overflow: hidden; aspect-ratio: 2.35 / 1;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; transition: transform .12s, box-shadow .15s, background .15s;
}
.va-skin canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.va-skin:hover { transform: translateY(-2px); background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); }
.va-skin.sel { box-shadow: 0 0 0 2.5px var(--lime) inset, 0 0 1.1rem rgba(198, 255, 61, .45); background: linear-gradient(160deg, rgba(198, 255, 61, .2), rgba(198, 255, 61, .04)); }
.va-skin:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 900px) {
  .va-p--len .nx, .va-lb__h i { display: none; }
}
@media (max-width: 760px) {
  .va-hud { font-size: 13px; }
  .va-lb { top: 4.2em; right: .6em; width: 11.6em; padding: .5em .5em .4em; }
  .va-lb li { font-size: .82em; }
  .va-lb li:nth-child(n+7) { display: none; }
  .va-feed { top: 10.9em; left: .6em; max-width: 56vw; }
  .va-feed__i { font-size: .8em; }
  .va-stats { left: .6em; top: 4.2em; bottom: auto; flex-wrap: wrap; width: 12.6em; gap: .4em; }
  .va-touch .va-stats { left: .6em; bottom: auto; }
  .va-p { padding: .4em .7em .45em; min-width: 5.3em; }
  .va-p b { font-size: 1.45em; }
  .va-p--len { min-width: 100%; }
  .va-mini { right: .8em; bottom: .8em; width: 8.4em; height: 8.4em; }
  .va-touch .va-mini { left: .8em; right: auto; bottom: .8em; }
  .va-boost { right: .8em; bottom: .8em; width: 6.2em; height: 6.2em; }
  .va-hint { bottom: 24%; font-size: .85em; white-space: normal; text-align: center; width: 80vw; }
  .va-skins { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .va-skin { border-radius: 9px; }
  .va-menu { gap: .4rem; }
  .va-name { font-size: 1rem; padding: .55em .9em; }
}
@media (max-height: 520px) and (min-width: 761px) {
  .va-lb li:nth-child(n+7) { display: none; }
  .va-mini { width: 8.6em; height: 8.6em; }
  .va-lb { top: 3.9em; }
}
@media (max-height: 560px) {
  .va-menu .va-lab:first-child { display: none; }
}

/* --- small desktop frame: one row of skins so the Play button stays in view --- */
@media (max-height: 640px) and (min-width: 761px) {
  .va-skins { grid-template-columns: repeat(10, 1fr); gap: 4px; }
  .va-menu .va-lab:first-child { display: none; }
}
@media (max-height: 460px) {
  .va-skins { grid-template-columns: repeat(10, 1fr); gap: 4px; }
  .va-menu .va-lab:first-child { display: none; }
  .ar__ov--menu .menu p.tag { display: none; }
}
