.vg-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 14px 28px;
  color: #d8f4ee;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  user-select: none;
}

.vg-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.vg-stats,
.vg-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vg-stat {
  min-width: 68px;
  padding: 7px 10px;
  border: 1px solid rgba(140, 236, 214, 0.22);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(20, 54, 58, 0.9), rgba(8, 29, 38, 0.86));
  box-shadow: inset 0 1px rgba(218, 255, 244, 0.06), 0 10px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
  backdrop-filter: blur(10px);
}

.vg-stat span {
  display: block;
  color: #84a9aa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.vg-stat strong {
  display: block;
  margin-top: 2px;
  color: #d9fff3;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.vg-btn,
.vg-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(140, 236, 214, 0.3);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(24, 61, 63, 0.94), rgba(8, 30, 39, 0.92));
  color: #d9fff3;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px rgba(218, 255, 244, 0.06), 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
  backdrop-filter: blur(10px);
}

.vg-btn:hover:not(:disabled),
.vg-close:hover {
  transform: translateY(-1px);
  border-color: #75f4d4;
  background: rgba(29, 68, 72, 0.96);
}

.vg-btn:focus-visible,
.vg-close:focus-visible,
.vg-canvas:focus-visible,
.vg-fire:focus-visible,
.vg-dash:focus-visible {
  outline: 3px solid rgba(117, 244, 212, 0.62);
  outline-offset: 3px;
}

.vg-icon {
  display: inline-grid;
  padding: 0;
  place-items: center;
}

.vg-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vg-primary {
  border-color: rgba(177, 255, 229, 0.82);
  background: linear-gradient(135deg, #b7ffe7, #64d8c2);
  color: #092329;
  box-shadow: 0 10px 28px rgba(77, 216, 190, 0.22), inset 0 1px rgba(255, 255, 255, 0.58);
}

.vg-primary:hover:not(:disabled) {
  background: #a1ffe6;
  color: #092329;
}

.vg-hudline {
  position: relative;
  display: flex;
  gap: 8px;
  height: 20px;
  margin: 0 0 8px;
}
.vg-meter {
  display: grid;
  flex: 0 1 150px;
  gap: 3px;
  min-width: 94px;
}

.vg-meter > span {
  color: #84a9aa;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.vg-meter > span strong {
  color: #d9fff3;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}


.vg-healthbar,
.vg-dashbar {
  position: relative;
  overflow: hidden;
  height: 7px;
  border: 1px solid rgba(124, 226, 206, 0.22);
  border-radius: 20px;
  background: rgba(5, 17, 22, 0.86);
}

.vg-healthbar {
  width: 100%;
}

.vg-dashbar {
  width: 100%;
}

.vg-healthbar span,
.vg-dashbar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transition: width 120ms linear;
}

.vg-healthbar span {
  background: linear-gradient(90deg, #f06d88, #f5c86c, #79e5b4);
}

.vg-dashbar span {
  background: linear-gradient(90deg, #65b9e4, #7bf6d1);
}

.vg-directive {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.2fr;
  gap: 6px;
  margin: 0 0 8px;
}

.vg-directive > span {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(124, 226, 206, 0.18);
  border-radius: 8px;
  background: rgba(8, 28, 35, 0.76);
}

.vg-directive small,
.vg-directive strong {
  display: block;
}

.vg-directive small {
  color: #7fa6a5;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
}

.vg-directive strong {
  margin-top: 3px;
  color: #d9fff3;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.vg-shell[data-threat="counter"] #vg-threat {
  color: #ffe3ac;
}

.vg-shell[data-threat="safe"] #vg-threat {
  color: #8bf3c3;
}

.vg-boss {
  display: grid;
  flex: 1;
  align-items: center;
  gap: 7px;
  min-width: 0;
  grid-template-columns: auto 1fr;
  color: #f7a1b1;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: right;
}

.vg-boss > div {
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(240, 109, 136, 0.45);
  border-radius: 20px;
  background: rgba(43, 14, 31, 0.9);
}

.vg-boss i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f06d88, #b76bff);
  transition: width 120ms linear;
}

.vg-stage {
  position: relative;
  height: min(65vh, 620px);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(117, 226, 204, 0.42);
  border-radius: 15px;
  background: radial-gradient(circle at 50% 38%, #163a43, #07131f 72%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.44), inset 0 0 50px rgba(36, 101, 102, 0.1);
  isolation: isolate;
  touch-action: none;
}

.vg-stage::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 18% 8%, rgba(109, 221, 210, 0.11), transparent 28%), radial-gradient(circle at 82% 14%, rgba(239, 115, 170, 0.08), transparent 25%), linear-gradient(180deg, rgba(6, 17, 30, 0.02), rgba(3, 10, 20, 0.16));
  content: "";
  pointer-events: none;
}

.vg-stage::after {
  position: absolute;
  inset: 8px;
  z-index: 2;
  border: 1px solid rgba(173, 255, 231, 0.06);
  border-radius: 10px;
  content: "";
  pointer-events: none;
}

.vg-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.vg-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 8, 15, 0.28), transparent 22%, transparent 68%, rgba(2, 8, 15, 0.62)), radial-gradient(ellipse at 50% 44%, transparent 42%, rgba(2, 9, 14, 0.54) 100%);
}

.vg-impact {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle at 50% 52%, transparent 34%, rgba(255, 63, 105, 0.42) 100%);
  opacity: 0;
  pointer-events: none;
}

.vg-impact[data-kind="counter"] {
  background: radial-gradient(circle at 50% 52%, transparent 38%, rgba(103, 255, 215, 0.3) 100%);
}

.vg-floaters {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.vg-floater {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  color: #fff0b8;
  font-size: 14px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.85), 0 0 12px rgba(255, 216, 137, 0.5);
  white-space: nowrap;
  will-change: transform, opacity;
}

.vg-floater[data-kind="player"] {
  color: #ff9caf;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.85), 0 0 12px rgba(255, 82, 125, 0.55);
}

.vg-floater[data-kind="counter"],
.vg-floater[data-kind="reward"] {
  color: #a5ffe0;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.85), 0 0 12px rgba(83, 238, 196, 0.55);
}

.vg-crosshair {
  --vg-shot-scale: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 1px solid rgba(173, 255, 231, 0.85);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.74;
  transform: translate(-50%, -50%) scale(var(--vg-shot-scale));
}

.vg-crosshair::before,
.vg-crosshair::after,
.vg-crosshair i::before,
.vg-crosshair i::after {
  position: absolute;
  display: block;
  background: #b6ffe8;
  content: "";
}

.vg-crosshair::before,
.vg-crosshair::after {
  top: 9px;
  width: 5px;
  height: 1px;
}

.vg-crosshair::before { left: -5px; }
.vg-crosshair::after { right: -5px; }
.vg-crosshair i::before,
.vg-crosshair i::after {
  left: 9px;
  width: 1px;
  height: 5px;
}
.vg-crosshair i::before { top: -5px; }
.vg-crosshair i::after { bottom: -5px; }

.vg-touch {
  position: absolute;
  z-index: 4;
  display: none;
  touch-action: none;
}

.vg-touch-left {
  bottom: 18px;
  left: 18px;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(144, 244, 220, 0.42);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 178, 163, 0.2), rgba(6, 24, 30, 0.68));
  box-shadow: inset 0 0 0 14px rgba(109, 221, 196, 0.05), 0 8px 30px rgba(0, 0, 0, 0.32);
}

.vg-pad-ring {
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(153, 255, 229, 0.3);
  border-radius: 50%;
}

.vg-pad-knob {
  position: absolute;
  top: calc(50% - 13px);
  left: calc(50% - 13px);
  width: 26px;
  height: 26px;
  border: 2px solid rgba(213, 255, 241, 0.82);
  border-radius: 50%;
  background: rgba(83, 222, 191, 0.65);
  box-shadow: 0 0 18px rgba(97, 238, 205, 0.48);
  transition: transform 80ms linear;
}

.vg-touch-right {
  right: 18px;
  bottom: 20px;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.vg-fire,
.vg-dash {
  min-width: 76px;
  min-height: 56px;
  border: 1px solid rgba(255, 209, 145, 0.66);
  border-radius: 50%;
  background: rgba(124, 61, 68, 0.88);
  color: #fff1ca;
  font: inherit;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.35), inset 0 0 0 5px rgba(255, 215, 144, 0.09);
  touch-action: none;
}

.vg-fire:active {
  background: rgba(214, 100, 111, 0.94);
  transform: scale(0.96);
}

.vg-dash {
  min-width: 66px;
  min-height: 48px;
  border-color: rgba(137, 245, 214, 0.58);
  border-radius: 14px;
  background: rgba(25, 102, 111, 0.88);
  color: #d2fff0;
}

.vg-dash:active {
  transform: scale(0.96);
  background: rgba(41, 146, 146, 0.96);
}
.vg-fire.is-pressed,
.vg-fire:active {
  background: rgba(214, 100, 111, 0.94);
  box-shadow: 0 0 0 4px rgba(255, 209, 145, 0.18), 0 7px 22px rgba(0, 0, 0, 0.35);
  transform: scale(0.96);
}

.vg-dash.is-cooling,
.vg-dash[aria-pressed="true"] {
  border-color: rgba(245, 203, 133, 0.76);
  background: rgba(87, 73, 66, 0.92);
  color: #ffe3ac;
}

.vg-dash.is-cooling {
  opacity: 0.78;
}

.vg-result-best {
  color: #f8cb79 !important;
  font-size: 12px !important;
  font-variant-numeric: tabular-nums;
}

.vg-fire,
.vg-dash {
  min-width: 44px;
  min-height: 44px;
}


.vg-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: grid;
  gap: 11px;
  width: min(90%, 410px);
  padding: 29px 26px 24px;
  border: 1px solid rgba(143, 244, 217, 0.42);
  border-radius: 20px;
  background: radial-gradient(circle at 82% 10%, rgba(240, 109, 136, 0.12), transparent 32%), radial-gradient(circle at 12% 88%, rgba(83, 222, 191, 0.11), transparent 36%), linear-gradient(145deg, rgba(12, 43, 48, 0.95), rgba(7, 20, 35, 0.94));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58), inset 0 1px rgba(231, 255, 248, 0.08), inset 0 0 44px rgba(51, 188, 169, 0.05);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(14px) saturate(1.15);
}

.vg-start::before,
.vg-start::after {
  position: absolute;
  width: 58px;
  height: 96px;
  border: 1px solid rgba(143, 244, 217, 0.18);
  border-radius: 100% 0 100% 0;
  background: linear-gradient(145deg, rgba(83, 222, 191, 0.08), rgba(240, 109, 136, 0.04));
  content: "";
  pointer-events: none;
}

.vg-start::before {
  top: -38px;
  left: -28px;
  transform: rotate(-28deg);
}

.vg-start::after {
  right: -28px;
  bottom: -38px;
  transform: rotate(152deg);
}

.vg-card h1,
.vg-card h2,
.vg-card p {
  margin: 0;
}

.vg-card h1 {
  color: #e9fff7;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(32px, 6vw, 49px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-shadow: 0 0 28px rgba(117, 244, 212, 0.14);
}

.vg-card h2 {
  color: #e4fff4;
  font-size: clamp(24px, 5vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.vg-card p {
  max-width: 34ch;
  margin: 0 auto;
  color: #a8cfca;
  font-size: 14px;
  line-height: 1.5;
}

.vg-card small {
  color: #729a9a;
  font-size: 10px;
  line-height: 1.4;
}

.vg-eyebrow {
  color: #f4bd78;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.vg-start .vg-btn {
  justify-self: center;
  min-width: 182px;
}

.vg-banner {
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 4;
  max-width: calc(100% - 30px);
  padding: 9px 15px;
  border: 1px solid rgba(245, 203, 133, 0.5);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(33, 55, 57, 0.92), rgba(16, 30, 40, 0.9));
  color: #ffe3ac;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-shadow: 0 0 12px rgba(255, 211, 137, 0.24);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.vg-result {
  top: calc(100% + 18px);
  width: min(90%, 520px);
  transform: translateX(-50%);
}

.vg-shell[data-state="over"] .vg-stage,
.vg-shell[data-state="won"] .vg-stage {
  margin-bottom: 304px;
  overflow: visible;
}

.vg-shell[data-state="over"] .vg-touch,
.vg-shell[data-state="won"] .vg-touch,
.vg-shell[data-state="over"] .vg-tip,
.vg-shell[data-state="won"] .vg-tip {
  display: none !important;
}

.vg-result::before {
  position: absolute;
  top: -19px;
  left: 50%;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, #75f4d4, transparent);
  content: "";
  transform: translateX(-50%);
}

@media (max-width: 640px) {
  .vg-result {
    width: min(calc(100% - 20px), 420px);
  }
}

.vg-result-score {
  color: #f8cb79;
  font-size: 38px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.vg-result-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.vg-result-actions .vg-btn {
  flex: 1 1 0;
}

.vg-tip {
  min-height: 22px;
  padding: 9px 2px 0;
  color: #789a9a;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.vg-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  overflow: auto;
  padding: 20px;
  place-items: center;
  background: rgba(2, 8, 12, 0.78);
  backdrop-filter: blur(5px);
}

.vg-modal-card {
  position: relative;
  width: min(100%, 480px);
  padding: 26px 24px 24px;
  border: 1px solid rgba(123, 241, 210, 0.36);
  border-radius: 16px;
  background: #0b252c;
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.58);
}

.vg-modal-card h2 {
  margin: 0 0 16px;
  color: #e4fff4;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.vg-modal-card p {
  margin: 0 0 11px;
  color: #a1c2bf;
  font-size: 13px;
  line-height: 1.55;
}

.vg-close {
  position: absolute;
  top: 11px;
  right: 11px;
  padding: 0;
  font-size: 23px;
  line-height: 1;
}

.vg-hidden {
  display: none !important;
}

@media (pointer: coarse) {
  .vg-touch-left,
  .vg-touch-right {
    display: flex;
  }

  .vg-canvas {
    cursor: default;
  }

  .vg-crosshair {
    display: none;
  }
}

@media (pointer: fine) {
  .vg-touch-left,
  .vg-touch-right {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .vg-shell {
    padding: 0 8px 14px;
  }

  .vg-topbar {
    align-items: flex-start;
    gap: 8px;
  }

  .vg-stats {
    flex: 1 1 auto;
    gap: 4px;
  }

  .vg-stat {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 3px;
  }

  .vg-stat span {
    font-size: 8px;
  }

  .vg-stat strong {
    font-size: 15px;
  }

  .vg-actions {
    gap: 4px;
  }

  .vg-actions .vg-btn {
    padding: 0 9px;
    font-size: 11px;
  }

  .vg-actions .vg-icon {
    padding: 0;
  }

  .vg-hudline {
    gap: 4px;
  }

  .vg-directive {
    gap: 4px;
  }

  .vg-directive > span {
    padding: 5px 4px;
  }

  .vg-directive strong {
    font-size: 9px;
  }

  .vg-meter {
    flex-basis: 31%;
    min-width: 74px;
  }

  .vg-healthbar {
    width: 100%;
  }

  .vg-dashbar {
    width: 100%;
  }

  .vg-boss {
    font-size: 8px;
  }

  .vg-stage {
    height: min(56svh, 540px);
    min-height: 360px;
    max-height: 540px;
    margin-bottom: 92px;
    overflow: visible;
    border-radius: 13px;
  }

  .vg-start {
    width: min(calc(100% - 20px), 360px);
    gap: 9px;
    padding: 22px 18px 20px;
    border-radius: 18px;
  }

  .vg-start h1 {
    font-size: 32px;
  }

  .vg-shell[data-state="over"] .vg-stage,
  .vg-shell[data-state="won"] .vg-stage {
    margin-bottom: 318px;
  }

  .vg-touch-left {
    bottom: -72px;
  }

  .vg-touch-right {
    bottom: -68px;
  }

  .vg-tip {
    padding-top: 7px;
    font-size: 10px;
  }

  .vg-modal-card {
    padding: 24px 18px 20px;
  }
}

@media (max-width: 390px) {
  .vg-stat {
    padding-left: 1px;
    padding-right: 1px;
  }

  .vg-actions .vg-btn:not(.vg-icon) {
    padding: 0 7px;
  }

  .vg-touch-left {
    bottom: -72px;
    left: 12px;
    width: 98px;
    height: 98px;
  }

  .vg-touch-right {
    right: 12px;
    bottom: -68px;
  }


  .vg-fire {
    min-width: 70px;
    min-height: 52px;
  }

  .vg-dash {
    min-width: 61px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vg-btn,
  .vg-close,
  .vg-healthbar span,
  .vg-dashbar span,
  .vg-boss i,
  .vg-pad-knob,
  .vg-fire,
  .vg-dash {
    transition: none;
  }

  .vg-btn:hover:not(:disabled),
  .vg-close:hover,
  .vg-fire:active,
  .vg-dash:active,
  .vg-fire.is-pressed {
    transform: none;
  }
}
