/* VOXELWATCH — bright optimistic sci-fi UI.
   Neutral engineering sans; tabular numerals on all stat surfaces;
   strict utilitarian composition on settings/controls; instant states. */

:root {
  --ink: #17242e;
  --ink-soft: #465866;
  --paper: #f7f2e7;
  --paper-2: #efe8d8;
  --line: rgba(23, 36, 46, 0.16);
  --home: #0aa2cf;
  --away: #ff5470;
  --gold: #ffd166;
  --accent: #18c5b4;
  --danger: #ff3b30;
  --ch-color: #ffffff;
  --dmg-flash: 0;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #0e141a;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#screens { position: fixed; inset: 0; z-index: 20; }

.vw-boot-error {
  position: fixed; inset: 40% 20%; text-align: center;
  color: #fff; font-size: 18px; z-index: 99;
}

/* ---------------------------------------------------------------- HUD --- */
.vw-objwrap {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  text-align: center;
}
.vw-objring { width: 118px; height: 118px; }
.vw-ring-bg { fill: rgba(14, 22, 28, 0.55); stroke: rgba(255,255,255,0.25); stroke-width: 6; }
.vw-ring-fill {
  fill: none; stroke: #fff; stroke-width: 6;
  stroke-linecap: butt; transform: rotate(-90deg); transform-origin: 70px 70px;
}
.vw-ring-letter {
  fill: #eaf6ff; font-size: 30px; font-weight: 800; letter-spacing: 1px;
  font-family: var(--sans); dominant-baseline: middle;
  font-variant-numeric: tabular-nums;
}
.vw-clock {
  margin-top: 6px; color: #fff; background: rgba(14, 22, 28, 0.62);
  padding: 3px 12px; border-radius: 4px; font-weight: 700; letter-spacing: 1.4px;
  font-variant-numeric: tabular-nums; display: inline-block; font-size: 15px;
}

.vw-phase-msg {
  position: absolute; top: 168px; left: 50%; transform: translateX(-50%);
  color: #fff; background: rgba(14, 22, 28, 0.68); border-left: 4px solid var(--accent);
  padding: 10px 26px; font-size: 21px; font-weight: 800; letter-spacing: 2.5px;
  opacity: 0; transition: opacity 120ms linear;
}
.vw-phase-msg.on { opacity: 1; }

.vw-contested {
  position: absolute; top: 140px; left: 50%; transform: translateX(-50%);
  color: #ffd166; font-weight: 900; letter-spacing: 3px; font-size: 17px;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  opacity: 0;
}
.vw-contested.on { opacity: 1; animation: vw-blink 0.9s steps(2) infinite; }
@keyframes vw-blink { 50% { visibility: hidden; } }

.vw-feed {
  position: absolute; top: 18px; right: 18px; width: 330px;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
}
.vw-feed-entry {
  background: rgba(14, 22, 28, 0.72); color: #eef4f8;
  padding: 4px 10px; border-radius: 3px; font-size: 13.5px; font-weight: 600;
  animation: vw-feedin 140ms ease-out;
  max-width: 100%;
}
.vw-feed-arrow { color: #ff5470; margin: 0 7px; font-weight: 900; }
.vw-feed-headshot { color: var(--gold); margin-right: 7px; }
@keyframes vw-feedin { from { transform: translateX(24px); opacity: 0; } }

.vw-ult-banner {
  position: absolute; left: 50%; bottom: 24%; transform: translateX(-50%) scale(.96);
  text-align: center; opacity: 0; transition: opacity 130ms, transform 130ms;
  pointer-events: none;
}
.vw-ult-banner.show { opacity: 1; transform: translateX(-50%) scale(1); }
.vw-ult-banner span { display: block; font-weight: 800; letter-spacing: 2px; font-size: 19px; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.vw-ult-banner em {
  display: block; font-style: normal; font-size: 44px; font-weight: 900;
  color: #fff; letter-spacing: 6px; text-transform: uppercase;
  text-shadow: 0 0 18px rgba(125, 249, 255, .85), 0 2px 6px rgba(0,0,0,.6);
}

.vw-crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.vw-crosshair::before, .vw-crosshair::after {
  content: ""; position: absolute; background: var(--ch-color);
  box-shadow: 0 0 3px rgba(0,0,0,.8);
}
/* ring-dot (flanker) */
.vw-crosshair[data-style="ring-dot"]::before {
  width: 22px; height: 22px; left: -11px; top: -11px; border-radius: 50%;
  background: transparent; border: 2px solid var(--ch-color);
}
.vw-crosshair[data-style="ring-dot"]::after { width: 4px; height: 4px; left: -2px; top: -2px; border-radius: 50%; }
/* cross-tick */
.vw-crosshair[data-style="cross-tick"]::before { width: 2.5px; height: 20px; left: -1.25px; top: -10px; box-shadow: 14px 0 0 0 var(--ch-color), -14px 0 0 0 var(--ch-color), 0 0 0 0 transparent; }
.vw-crosshair[data-style="cross-tick"]::after { width: 20px; height: 2.5px; left: -10px; top: -1.25px; }
/* diamond (aegis) */
.vw-crosshair[data-style="diamond"]::before { width: 13px; height: 13px; left: -6.5px; top: -6.5px; background: var(--ch-color); transform: rotate(45deg) scale(1.06); clip-path: none; border-radius: 1px; }
.vw-crosshair[data-style="diamond"]::after { width: 26px; height: 26px; left: -13px; top: -13px; border: 1.5px solid var(--ch-color); transform: rotate(45deg); background: transparent; border-radius: 1px; }
/* wide bracket scatter */
.vw-crosshair[data-style="wide-bracket"]::before { width: 34px; height: 34px; left: -17px; top: -17px; background: transparent; border-left: 2.5px solid var(--ch-color); border-right: 2.5px solid var(--ch-color); border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; border-radius: 45%; }
.vw-crosshair[data-style="wide-bracket"]::after { width: 5px; height: 5px; left: -2.5px; top: -2.5px; border-radius: 50%; }
/* halo-plus support */
.vw-crosshair[data-style="halo-plus"]::before { width: 18px; height: 18px; left: -9px; top: -9px; border-radius: 50%; background: transparent; border: 2px dashed var(--ch-color); }
.vw-crosshair[data-style="halo-plus"]::after { width: 2px; height: 10px; left: -1px; top: -5px; box-shadow: 0 0 0 0 var(--ch-color); border-radius: 0; }
/* orbit-ring oracle */
.vw-crosshair[data-style="orbit-ring"]::before { width: 26px; height: 26px; left: -13px; top: -13px; border-radius: 50%; background: transparent; border: 1.6px solid var(--ch-color); border-top-color: transparent; }
.vw-crosshair[data-style="orbit-ring"]::after { width: 6px; height: 6px; left: -3px; top: -3px; border-radius: 50%; }

.vw-hitmarker { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; }
.vw-hitmarker span { position: absolute; width: 2.6px; height: 11px; background: #fff; box-shadow: 0 0 3px rgba(0,0,0,.9); }
.vw-hitmarker span:nth-child(1) { transform: translate(-9px, -14px) rotate(45deg); }
.vw-hitmarker span:nth-child(2) { transform: translate(7px, -14px) rotate(-45deg); }
.vw-hitmarker span:nth-child(3) { transform: translate(-9px, 3px) rotate(-45deg); }
.vw-hitmarker span:nth-child(4) { transform: translate(7px, 3px) rotate(45deg); }
.vw-hitmarker.active { opacity: 1; }
.vw-hitmarker.crit span { background: var(--gold); height: 13px; }

.vw-dmg-layer { position: absolute; inset: 0; overflow: hidden; }
.vw-dmgnum {
  position: absolute; left: 0; top: 0; will-change: transform, opacity;
  font-weight: 800; font-size: 17px; color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  font-variant-numeric: tabular-nums;
}
.vw-dmgnum.crit { font-size: 21px; color: var(--gold); }

.vw-plate-layer { position: absolute; inset: 0; overflow: hidden; }
.vw-plate { position: absolute; left: 0; top: 0; text-align: center; width: 110px; }
.vw-plate-name { display: block; font-size: 12px; font-weight: 700; color: #dff3ff; text-shadow: 0 1px 2px #0009; letter-spacing: .5px; }
.vw-plate.enemy .vw-plate-name { color: #ffc9d2; }
.vw-plate.oracle-mend .vw-plate-name::after { content: " ✚"; color: #7dff9e; }
.vw-plate-bar { height: 5px; background: rgba(10,16,20,.7); border-radius: 2px; overflow: hidden; margin-top: 2px; }
.vw-plate-bar > div { height: 100%; background: #3fd7ff; }
.vw-enemy-hpbar {
  position: absolute; left: 0; top: 0; width: 96px; text-align: center;
}
.vw-enemy-hp-fill { height: 5px; background: var(--away); border-radius: 2px; }
.vw-enemy-hp-name { font-size: 11.5px; color: #ffd7de; text-shadow: 0 1px 2px #000a; font-weight: 700; }

.vw-team-panel {
  position: absolute; left: 16px; bottom: 16px; width: 230px;
  display: flex; flex-direction: column; gap: 5px;
}
.vw-team-row {
  display: grid; grid-template-columns: 1fr 16px; gap: 2px 8px; align-items: center;
  background: rgba(14, 22, 28, 0.66); border-radius: 4px; padding: 4px 8px 6px;
  color: #e8f2f8;
}
.vw-team-row.me { outline: 1px solid rgba(255, 210, 102, .7); }
.vw-tr-name { font-size: 12.5px; font-weight: 700; letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-tr-role svg { width: 15px; height: 15px; display: block; color: #9fd7ea; }
.vw-tr-bar { grid-column: 1 / span 2; height: 5px; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; position: relative; }
.vw-tr-fill { height: 100%; background: #3fd7ff; font-size: 9.5px; line-height: 5px; color: #06202a; font-weight: 800; text-align: right; padding-right: 3px; white-space: nowrap; }
.vw-team-row.dead { opacity: 0.5; }
.vw-team-row.dead .vw-tr-fill { background: #67757e; }

.vw-vitals {
  position: absolute; left: 16px; bottom: 218px; width: 230px;
  color: #eaf4fa;
}
.vw-vitals-hero { font-size: 15px; font-weight: 800; letter-spacing: 1.6px; display: flex; gap: 8px; align-items: center; text-shadow: 0 1px 3px #000a; }
.vw-role-pip svg { width: 17px; height: 17px; display: block; filter: drop-shadow(0 1px 2px #000a); }
.vw-hpbar {
  position: relative; height: 15px; margin-top: 4px;
  background: rgba(10, 16, 20, 0.72); border-radius: 3px; overflow: hidden;
}
.vw-hp-fill { height: 100%; background: #79e08c; transition: width 80ms linear; }
.vw-hp-ghost { position: absolute; inset: 0 auto 0 0; background: #d84b40; opacity: .55; }
.vw-hp-armor { position: absolute; bottom: 0; height: 4px; background: #cfd6dc; }
.vw-hp-text {
  position: absolute; inset: 0; text-align: right; padding-right: 6px;
  font-size: 11.5px; line-height: 15px; font-weight: 800; color: #07231a;
  mix-blend-mode: normal; color: #eafff2; text-shadow: 0 1px 2px #000c;
  font-variant-numeric: tabular-nums;
}
.vw-ammo { margin-top: 3px; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; color: #cfe4ee; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000a; }

.vw-ability-bar {
  position: absolute; right: 18px; bottom: 16px;
  display: flex; gap: 8px; align-items: stretch;
}
.vw-ab-slot {
  min-width: 74px; background: rgba(14, 22, 28, 0.72); border-radius: 5px;
  padding: 6px 9px 7px; color: #eef4f8; position: relative; overflow: hidden;
  border-bottom: 2px solid transparent;
}
.vw-ab-slot.just-cast { animation: vw-castpulse 260ms ease-out; }
@keyframes vw-castpulse { 0% { border-bottom-color: #7df9ff; background: rgba(38, 70, 84, .8); } 100% { border-bottom-color: transparent; } }
.vw-ab-key {
  display: inline-block; font-size: 10.5px; font-weight: 900; letter-spacing: 1px;
  background: rgba(255,255,255,.16); padding: 1px 5px; border-radius: 3px; margin-bottom: 3px;
}
.vw-ab-name { display: block; font-size: 11px; font-weight: 700; opacity: .92; white-space: nowrap; }
.vw-ab-cool {
  position: absolute; right: 6px; top: 4px; font-size: 15px; font-weight: 900;
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.vw-ab-charges { position: absolute; right: 8px; bottom: 4px; font-size: 10px; color: #9fe8ff; font-weight: 800; }
.vw-ult-slot { min-width: 108px; }
.vw-ult-meter { height: 7px; background: rgba(255,255,255,.16); border-radius: 3px; overflow: hidden; margin: 4px 0 3px; }
.vw-ult-meter-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #ffd166, #ffb84d); }
.vw-ult-slot.ready { border-bottom-color: var(--gold); box-shadow: 0 0 12px rgba(255, 209, 102, .35); animation: vw-readyglow 1.2s ease-in-out infinite alternate; }
@keyframes vw-readyglow { to { background: rgba(66, 52, 14, 0.78); } }
.vw-ult-slot.active { border-bottom-color: #7df9ff; }
.vw-ult-name { color: var(--gold); font-size: 11.5px; letter-spacing: .8px; }
.vw-alt-slot { border-left: 2px dotted rgba(255,255,255,.25); }

.vw-death-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(ellipse at center, rgba(64, 8, 12, .25), rgba(10, 4, 6, .68));
  opacity: 0; pointer-events: none; transition: opacity 150ms;
}
.vw-death-overlay.on { opacity: 1; }
.vw-death-title { font-size: 47px; font-weight: 900; color: #ff5a63; letter-spacing: 9px; text-shadow: 0 3px 16px #000; }
.vw-death-by { color: #ffd7db; font-weight: 600; font-size: 15.5px; }
.vw-death-timer { color: #fff; font-size: 30px; font-weight: 900; letter-spacing: 2px; font-variant-numeric: tabular-nums; }

.vw-lowhp { position: fixed; inset: 0; pointer-events: none; opacity: 0; z-index: 12; }
.vw-lowhp.on {
  opacity: 1;
  animation: vw-heart 1s ease-in-out infinite;
  background: radial-gradient(ellipse at center, transparent 54%, rgba(200, 10, 22, 0.34));
}
@keyframes vw-heart { 0%, 100% { opacity: .5; } 18% { opacity: 1; } 36% { opacity: .55; } }

.vw-oob-warn {
  position: absolute; left: 50%; top: 26%; transform: translateX(-50%);
  color: #ffe28a; background: rgba(60, 30, 0, 0.72);
  font-weight: 900; letter-spacing: 3px; padding: 8px 22px; border-radius: 4px;
  opacity: 0;
}
.vw-oob-warn.on { opacity: 1; animation: vw-blink 0.7s steps(2) infinite; }

.vw-scoreboard {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 12, 16, 0.55); backdrop-filter: blur(2px);
}
.vw-sb-title { position: absolute; top: 40px; width: 100%; text-align: center; color: #fff; font-weight: 900; letter-spacing: 5px; font-size: 21px; }
.vw-sb-table {
  border-collapse: collapse; background: rgba(16, 24, 30, 0.94);
  color: #e8f0f5; min-width: 620px; border-radius: 6px; overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.vw-sb-table th { text-align: left; font-size: 12px; letter-spacing: 1.5px; color: #93aab8; padding: 8px 14px; }
.vw-sb-table td { padding: 6.5px 14px; font-size: 14px; font-weight: 650; border-top: 1px solid rgba(255,255,255,.05); }
.vw-sb-table .vw-sb-teamhome, .vw-sb-table .vw-sb-teamaway {
  font-size: 12px; letter-spacing: 2px; font-weight: 900; padding: 7px 14px;
}
.vw-sb-table .vw-sb-teamhome { color: #35d0ff; }
.vw-sb-table .vw-sb-teamaway { color: #ff5470; }
.vw-sb-table tr.is-me td { color: var(--gold); }

.vw-fps-counter {
  position: fixed; left: 8px; top: 8px; z-index: 40;
  background: rgba(0,0,0,.55); color: #7dff9e; font: 700 12px/1 var(--sans);
  padding: 5px 8px; border-radius: 3px; font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ SCREENS --- */
.scr {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 28px;
}

button { font-family: inherit; cursor: pointer; }
.vw-btn-primary, .vw-btn-go, .vw-btn-ghost, .vw-btn-danger {
  border: 0; border-radius: 4px; font-weight: 800; letter-spacing: 1.6px;
  padding: 13px 34px; font-size: 15.5px; transition: filter 90ms, transform 90ms;
}
.vw-btn-primary:hover, .vw-btn-go:hover { filter: brightness(1.12); }
.vw-btn-primary:active, .vw-btn-go:active { transform: translateY(1px); }
.vw-btn-primary { background: #18c5b4; color: #04241f; }
.vw-btn-go { background: var(--gold); color: #2c1e04; font-size: 17px; }
.vw-btn-ghost { background: rgba(255,255,255,.09); color: #eaf6ff; }
.vw-btn-ghost:hover { background: rgba(255,255,255,.16); }
.vw-btn-danger { background: rgba(210, 60, 70, .88); color: #fff; }
.vw-spacer { flex: 1; }

/* title */
.vw-title { justify-content: flex-start; padding-top: 8vh; }
.vw-title-bg-label {
  position: absolute; top: 16px; right: 20px; color: rgba(234,246,255,.8);
  font-size: 12px; letter-spacing: 3px; font-weight: 700;
  background: rgba(10,16,20,.4); padding: 4px 10px; border-radius: 3px;
}
.vw-title-card {
  background: rgba(12, 18, 24, 0.82); backdrop-filter: blur(3px);
  border: 1px solid rgba(127, 222, 255, .25);
  border-radius: 10px; padding: 44px 58px 30px; text-align: center;
  box-shadow: 0 22px 80px rgba(2, 8, 14, 0.55);
}
.vw-logo {
  color: #f4efe6; font-size: clamp(44px, 7vw, 76px); font-weight: 900; letter-spacing: 10px;
  text-shadow: 0 4px 26px rgba(53, 208, 255, 0.45);
}
.vw-logo span { color: #35d0ff; }
.vw-tagline { color: #bcd9e6; margin: 8px 0 30px; font-size: 15.5px; letter-spacing: .6px; }
.vw-menu { display: flex; flex-direction: column; gap: 12px; align-items: stretch; min-width: 280px; }
.vw-menu-col button { text-align: center; width: 100%; }
.vw-foot { margin-top: 26px; color: #7d97a5; font-size: 11.5px; letter-spacing: .5px; }

/* hero select */
.vw-select {
  justify-content: flex-start; background: linear-gradient(180deg, rgba(9,14,19,.86), rgba(9,14,19,.72));
  align-items: stretch; gap: 0;
}
.vw-select-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 34px 12px;
}
.vw-select-head h2 { color: #f2f7fa; letter-spacing: 5px; font-size: 25px; font-weight: 900; }
.vw-select-body { display: flex; gap: 26px; flex: 1; min-height: 0; padding: 0 34px 26px; }
.vw-roster {
  width: 380px; overflow-y: auto; padding-right: 8px;
}
.vw-roster::-webkit-scrollbar { width: 8px; }
.vw-roster::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 4px; }
.vw-role-group h3 {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; letter-spacing: 2.5px; font-weight: 900; margin: 16px 0 8px;
}
.vw-role-group h3 svg { width: 16px; height: 16px; }
.vw-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.vw-hero-card {
  background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 9px 9px 8px; text-align: center; color: #dfeef6;
  transition: border-color 100ms, background 100ms;
}
.vw-hero-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }
.vw-card-name { display: block; margin-top: 7px; font-weight: 900; letter-spacing: 1.6px; font-size: 14.5px; }
.vw-card-real { display: block; color: #8fa8b5; font-size: 11px; margin-top: 1px; }
.vw-hero-card:hover { border-color: rgba(127,222,255,.5); background: rgba(127,222,255,.08); }
.vw-hero-card.active { border-color: var(--gold); background: rgba(255,209,102,.10); box-shadow: 0 0 0 1px var(--gold) inset; }

.vw-detail { flex: 1; overflow-y: auto; }
.vw-detail-empty { color: #7d97a5; font-size: 15px; padding-top: 60px; text-align: center; }
.vw-dossier-head { display: flex; gap: 18px; align-items: center; }
.vw-dossier-head img { width: 92px; height: 92px; border-radius: 10px; border: 2px solid rgba(255,209,102,.7); }
.vw-dossier-head h3 { color: #f6fbfd; font-size: 31px; font-weight: 900; letter-spacing: 3px; }
.vw-dossier-sub { font-weight: 800; letter-spacing: 2px; font-size: 13px; }

.vw-stepper {
  list-style: none; display: flex; gap: 8px; margin: 22px 0 14px;
}
.vw-stepper li {
  display: flex; align-items: center; gap: 7px; padding: 7px 16px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; cursor: pointer;
  color: #9fb4bf; font-size: 12.5px; font-weight: 800; letter-spacing: 1.5px;
  user-select: none;
}
.vw-stepper li i { font-style: normal; background: rgba(255,255,255,.12); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-variant-numeric: tabular-nums; }
.vw-stepper li.done { color: #d9efe8; border-color: rgba(24,197,180,.55); }
.vw-stepper li.done i { background: rgba(24,197,180,.35); color: #c9fff4; }
.vw-stepper li.on { color: #06251f; background: #18c5b4; border-color: #18c5b4; }
.vw-step-body {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 22px 26px; color: #dbe9f0; line-height: 1.55; font-size: 14.5px;
  min-height: 240px;
}
.vw-quote { color: var(--gold); font-style: italic; font-weight: 700; margin-bottom: 10px; }
.vw-statlist { list-style: none; margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px; }
.vw-statlist li { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); padding: 4px 0; font-variant-numeric: tabular-nums; }
.vw-statlist b { color: #93aab8; font-weight: 700; }
.vw-ab-list { display: flex; flex-direction: column; gap: 12px; }
.vw-ab-row { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: start; border-bottom: 1px solid rgba(255,255,255,.07); padding-bottom: 11px; }
.vw-key {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 5px 8px; text-align: center; border-radius: 5px; font-weight: 900; font-size: 12px; letter-spacing: 1px;
}
.vw-key.ult { border-color: var(--gold); color: var(--gold); }
.vw-ab-row b { display: block; color: #fff; margin-bottom: 2px; }
.vw-tips { list-style: decimal; padding-left: 22px; display: flex; flex-direction: column; gap: 11px; }
.vw-tip-personality { list-style: none; color: var(--gold); }
.vw-step-actions { display: flex; align-items: center; margin-top: 18px; }

/* utilitarian single-column screens (settings & controls) */
.vw-util-col {
  justify-content: center;
  background: rgba(9, 13, 17, 0.9);
  align-items: center;
}
.vw-util-col h2 { color: #f2f7fa; letter-spacing: 5px; font-size: 24px; font-weight: 900; margin-bottom: 20px; }
.vw-setting-list, .vw-controls-list {
  width: min(520px, 92vw);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 20px 26px;
}
.vw-set-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 2px; border-bottom: 1px solid var(--line);
  color: #dce8ee; font-size: 14.5px; font-weight: 600; gap: 16px;
}
.vw-set-row input[type=range] { flex: 1; max-width: 220px; accent-color: #18c5b4; }
.vw-set-row b { min-width: 64px; text-align: right; color: #9fe8ff; font-variant-numeric: tabular-nums; font-weight: 800; }
.vw-controls-list hr, .vw-setting-list hr { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 10px 0; }
.vw-controls-table { width: 100%; border-collapse: collapse; }
.vw-controls-table th {
  text-align: right; padding: 7px 16px 7px 0; white-space: nowrap;
  color: #9fe8ff; font-size: 13px; letter-spacing: 1px; width: 128px;
}
.vw-controls-table td { color: #dbe9f0; font-size: 14px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.vw-controls-note { color: #8aa0ac; font-size: 12.5px; margin-top: 14px; line-height: 1.5; }
.vw-set-actions { display: flex; gap: 14px; margin-top: 20px; }

/* pause */
.vw-pause-card {
  background: rgba(12, 18, 24, 0.9); border-radius: 10px; padding: 34px 46px;
  text-align: center; border: 1px solid rgba(127,222,255,.22);
}
.vw-pause-card h2 { color: #f2f7fa; letter-spacing: 6px; margin-bottom: 22px; }

/* match end */
.vw-end-scr { background: rgba(8, 12, 16, 0.8); }
.vw-end-scr.win .vw-end-title { color: var(--gold); text-shadow: 0 0 40px rgba(255, 209, 102, .4); }
.vw-end-scr.lose .vw-end-title { color: #ff5a63; }
.vw-end-title { font-size: 71px; font-weight: 900; letter-spacing: 16px; }
.vw-end-sub { color: #bcd9e6; margin: 10px 0 26px; font-size: 16px; }
.vw-sb-end { margin-bottom: 30px; max-height: 44vh; overflow-y: auto; }
.vw-end-actions { display: flex; gap: 16px; }

/* narrow viewport intentional notice */
#narrowNote {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; background: rgba(12, 20, 27, 0.95); color: #dceefa;
  border: 1px solid rgba(127, 222, 255, .4); border-radius: 8px;
  padding: 12px 16px; font-size: 13px; line-height: 1.5; pointer-events: none;
}
@media (max-width: 820px), (max-height: 480px) {
  #narrowNote { display: block; }
}

/* compact menu scale for narrow viewports (intentional desktop-first layout) */
@media (max-width: 820px) {
  .vw-title-card { padding: 30px 20px 22px; max-width: 94vw; }
  .vw-logo { font-size: clamp(30px, 8.5vw, 48px); letter-spacing: 4px; }
  .vw-menu { min-width: min(280px, 84vw); }
}
