.go-shell {
  box-sizing: border-box;
  --go-night: #050a16;
  --go-panel: rgba(9, 20, 36, 0.92);
  --go-line: #24435d;
  --go-ice: #a7e9f4;
  --go-mint: #6fffd3;
  --go-gold: #ffc963;
  --go-red: #ff715f;
  --go-muted: #8ca7ba;
  width: 100%;
  max-width: 980px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 14px 24px;
  overflow-x: hidden;
  color: #e6f5f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.go-shell *,
.go-shell *::before,
.go-shell *::after {
  box-sizing: border-box;
}

.go-modal,
.go-modal * {
  box-sizing: border-box;
}

.go-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

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

.go-stat {
  min-width: 68px;
  padding: 7px 9px;
  border: 1px solid var(--go-line);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(17, 35, 52, 0.92), rgba(8, 19, 32, 0.92));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.go-stat span,
.go-flight-strip span,
.go-meter span,
.go-vector span {
  display: block;
  color: var(--go-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.go-stat strong {
  display: block;
  margin-top: 3px;
  color: #f0fbfc;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
}

.go-btn,
.go-close,
.go-key {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #31506a;
  border-radius: 11px;
  background: linear-gradient(180deg, #142a3e, #0b1b2c);
  color: #e6f5f8;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, opacity 120ms ease;
}

.go-btn:hover,
.go-close:hover,
.go-key:hover {
  transform: translateY(-1px);
  border-color: var(--go-mint);
}

.go-btn:active,
.go-close:active,
.go-key:active,
.go-key[aria-pressed="true"] {
  transform: translateY(1px);
  border-color: var(--go-gold);
  background: linear-gradient(180deg, #24435b, #102539);
}

.go-btn:focus-visible,
.go-close:focus-visible,
.go-key:focus-visible,
.go-canvas:focus-visible {
  outline: 3px solid rgba(167, 233, 244, 0.72);
  outline-offset: 3px;
}

.go-btn {
  padding: 0 14px;
}

.go-icon {
  display: inline-grid;
  padding: 0;
  place-items: center;
  font-size: 18px;
}

.go-sound {
  font-size: 9px;
  letter-spacing: 0.05em;
}

.go-flight-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 132px;
  gap: 1px;
  overflow: hidden;
  margin-bottom: 9px;
  border: 1px solid var(--go-line);
  border-radius: 10px;
  background: #0a1727;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.go-route,
.go-timer,
.go-distance {
  min-width: 0;
  padding: 8px 10px;
  background: rgba(12, 28, 43, 0.9);
}

.go-route {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c6e8ed;
  font-size: 12px;
  font-weight: 700;
}

.go-route i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--go-mint);
  box-shadow: 0 0 12px var(--go-mint);
}

.go-timer strong,
.go-distance strong {
  display: block;
  margin-top: 3px;
  color: #f1fbfc;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.go-timer {
  border-left: 1px solid rgba(94, 141, 168, 0.22);
  border-right: 1px solid rgba(94, 141, 168, 0.22);
}

.go-timer {
  background: rgba(35, 28, 22, 0.92);
}

.go-timer strong {
  color: #ffe3a2;
  text-shadow: 0 0 10px rgba(255, 201, 99, 0.2);
}

.go-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 430px;
  aspect-ratio: 16 / 9;
  border: 1px solid #2a4a64;
  border-radius: 17px;
  background: var(--go-night);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(128, 221, 238, 0.08);
  touch-action: none;
  user-select: none;
}

.go-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  cursor: crosshair;
  touch-action: none;
}

.go-glass {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(8, 18, 38, 0.08), transparent 42%, rgba(2, 7, 18, 0.24)),
    radial-gradient(circle at 20% 18%, rgba(53, 202, 211, 0.09), transparent 31%),
    radial-gradient(circle at 82% 72%, rgba(102, 86, 202, 0.1), transparent 37%),
    radial-gradient(circle at 50% 46%, transparent 32%, rgba(1, 4, 12, 0.38) 100%);
  box-shadow: inset 0 0 78px rgba(4, 12, 28, 0.44), inset 0 0 0 1px rgba(111, 255, 224, 0.045);
  pointer-events: none;
}

.go-glass::after {
  position: absolute;
  inset: 0;
  content: '';
  background: repeating-linear-gradient(180deg, transparent 0, transparent 3px, rgba(141, 229, 239, 0.025) 4px);
  mix-blend-mode: soft-light;
  opacity: 0.7;
}

.go-shell[data-state="playing"] .go-stage {
  border-color: rgba(72, 174, 194, 0.62);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 34px rgba(42, 186, 190, 0.07), inset 0 0 0 1px rgba(128, 221, 238, 0.08);
}

.go-shell[data-boosting="true"] .go-glass {
  box-shadow: inset 0 0 92px rgba(69, 255, 222, 0.18), inset 0 0 0 1px rgba(167, 255, 237, 0.14);
}
.go-shell[data-impact="true"] .go-glass {
  box-shadow: inset 0 0 110px rgba(255, 91, 86, 0.3), inset 0 0 0 1px rgba(255, 173, 143, 0.2);
}

.go-feedback {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}

.go-feedback[data-kind="hit"] {
  background: radial-gradient(circle at 50% 52%, rgba(255, 221, 182, 0.2), rgba(255, 73, 75, 0.16) 36%, transparent 72%);
}

.go-feedback[data-kind="pickup"] {
  background: radial-gradient(circle at 50% 48%, rgba(255, 236, 157, 0.2), rgba(111, 255, 211, 0.08) 42%, transparent 74%);
}

.go-feedback.go-feedback-active {
  animation: go-feedback-pop 420ms ease-out both;
}

.go-float-text {
  position: absolute;
  z-index: 6;
  color: var(--go-gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 14px currentColor;
  transform: translate(-50%, -50%);
  animation: go-float-up 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.go-float-text[data-kind="hit"] {
  color: #ff9a83;
}

.go-scene-hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.go-target-readout {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  gap: 3px;
  min-width: 112px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 201, 99, 0.38);
  border-radius: 9px;
  background: rgba(5, 15, 28, 0.78);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  text-align: right;
  backdrop-filter: blur(7px);
}

.go-target-readout span {
  color: var(--go-muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
}

.go-target-readout strong {
  color: #ffe3a2;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.go-reticle {
  position: absolute;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid var(--go-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 201, 99, 0.08), 0 0 18px rgba(255, 201, 99, 0.36);
  opacity: 0;
  transform: scale(0.76);
  transition: opacity 140ms ease, transform 140ms ease;
}

.go-reticle::before,
.go-reticle::after {
  position: absolute;
  content: '';
  background: currentColor;
  opacity: 0.8;
}

.go-reticle::before {
  top: 17px;
  left: 7px;
  width: 20px;
  height: 1px;
}

.go-reticle::after {
  top: 7px;
  left: 17px;
  width: 1px;
  height: 20px;
}

.go-reticle[data-visible="true"] {
  opacity: 1;
  transform: scale(1);
}
.go-reticle[data-near="true"] {
  animation: go-reticle-pulse 900ms ease-in-out infinite;
}

.go-reticle[data-kind="station"] {
  color: var(--go-mint);
  border-color: var(--go-mint);
  box-shadow: 0 0 0 4px rgba(111, 255, 211, 0.08), 0 0 18px rgba(111, 255, 211, 0.32);
}

.go-reticle[data-edge="true"] {
  opacity: 0.82;
  transform: scale(0.9);
  border-style: dashed;
  box-shadow: 0 0 0 4px rgba(167, 233, 244, 0.1), 0 0 16px rgba(167, 233, 244, 0.34);
}

.go-meters {
  position: absolute;
  top: 13px;
  left: 14px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.go-meter {
  width: 92px;
}

.go-meter i {
  display: block;
  height: 5px;
  margin-top: 5px;
  overflow: hidden;
  border: 1px solid rgba(162, 224, 236, 0.35);
  border-radius: 999px;
  background: rgba(1, 7, 15, 0.68);
}

.go-meter b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4aaac7, var(--go-mint));
  box-shadow: 0 0 9px var(--go-mint);
  transition: width 120ms linear;
}

.go-meter i[data-low="true"] b {
  background: linear-gradient(90deg, #c95048, var(--go-red));
  box-shadow: 0 0 9px var(--go-red);
  animation: go-pulse 700ms ease-in-out infinite alternate;
}

.go-vector {
  min-width: 55px;
  padding: 6px 8px;
  border: 1px solid rgba(117, 205, 226, 0.28);
  border-radius: 8px;
  background: rgba(4, 13, 25, 0.62);
}

.go-vector strong {
  display: block;
  margin-top: 3px;
  color: var(--go-ice);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.go-card {
  border: 1px solid rgba(126, 220, 233, 0.4);
  background:
    linear-gradient(145deg, rgba(17, 47, 65, 0.95), rgba(6, 15, 31, 0.95)),
    var(--go-panel);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.58), 0 0 38px rgba(50, 200, 198, 0.07), inset 0 0 35px rgba(111, 255, 211, 0.05);
  backdrop-filter: blur(10px);
}

.go-start,
.go-result {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: grid;
  gap: 11px;
  width: min(88%, 430px);
  padding: 24px;
  border-radius: 17px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.go-shell[data-state="won"] .go-result,
.go-shell[data-state="lost"] .go-result {
  top: 44%;
  max-height: calc(100% - 116px);
  overflow: auto;
}

.go-eyebrow {
  color: var(--go-mint);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.go-card h1,
.go-card h2,
.go-modal-card h2 {
  margin: -2px 0 0;
  color: #f1fbfc;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.go-card h1 {
  font-size: clamp(34px, 7vw, 56px);
}

.go-card h2 {
  font-size: 30px;
}

.go-card p {
  margin: 0;
  color: #a8c2cf;
  font-size: 14px;
  line-height: 1.5;
}

.go-card small {
  color: #7697a9;
  font-size: 11px;
  line-height: 1.4;
}

.go-primary {
  min-height: 48px;
  border-color: transparent;
  background: linear-gradient(135deg, #79f3d5, #4bb7c8);
  color: #06131e;
  box-shadow: 0 12px 30px rgba(76, 215, 196, 0.2);
}

.go-final {
  color: var(--go-gold);
  font-size: 38px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.go-best {
  color: #d5e9ed !important;
  font-size: 12px !important;
  font-weight: 800;
}

.go-result-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 3px;
}

.go-banner {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 4;
  min-width: min(76%, 330px);
  padding: 9px 14px;
  border: 1px solid rgba(255, 201, 99, 0.5);
  border-radius: 999px;
  background: rgba(12, 21, 31, 0.82);
  color: #ffe3a2;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 201, 99, 0.09);
  transform: translateX(-50%);
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.go-touch {
  opacity: 0.9;
}

.go-touch {
  position: absolute;
  bottom: 14px;
  z-index: 4;
  display: none;
  gap: 7px;
  align-items: flex-end;
}

.go-touch-left {
  left: 14px;
}

.go-touch-right {
  right: 14px;
}

.go-key {
  width: 56px;
  height: 56px;
  padding: 0 5px;
  font-size: 23px;
  background: linear-gradient(180deg, rgba(26, 54, 73, 0.92), rgba(6, 18, 31, 0.9));
  backdrop-filter: blur(7px);
}

.go-key[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(60, 130, 139, 0.94), rgba(15, 57, 65, 0.94));
  box-shadow: 0 0 20px rgba(111, 255, 211, 0.18);
}

.go-key-thrust {
  width: 70px;
  border-color: rgba(111, 255, 211, 0.46);
  color: var(--go-mint);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.go-key-boost {
  border-color: rgba(255, 201, 99, 0.52);
  color: var(--go-gold);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.go-key-brake {
  font-size: 8px;
  letter-spacing: 0.06em;
}

.go-route-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  margin-top: 8px;
  padding: 0 4px;
  color: var(--go-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.go-route-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.go-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.go-dot-parcel {
  background: var(--go-gold);
  box-shadow: 0 0 8px rgba(255, 201, 99, 0.65);
}

.go-dot-station {
  background: var(--go-mint);
  box-shadow: 0 0 8px rgba(111, 255, 211, 0.65);
}

.go-dot-danger {
  background: var(--go-red);
  box-shadow: 0 0 8px rgba(255, 113, 95, 0.65);
}

.go-best-inline {
  margin-left: auto;
}

.go-best-inline strong {
  color: #d5e9ed;
  font-variant-numeric: tabular-nums;
}

.go-tip {
  margin: 1px 0 0;
  color: #7697a9;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

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

.go-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  padding: 18px;
  place-items: center;
  background: rgba(2, 7, 15, 0.78);
  backdrop-filter: blur(7px);
}

.go-modal-card {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 25px;
  border: 1px solid rgba(130, 211, 228, 0.34);
  border-radius: 18px;
  background: linear-gradient(145deg, #10263a, #07121f);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.go-close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  padding: 0;
  place-items: center;
  font-size: 24px;
}

.go-modal-card h2 {
  margin: 5px 0 8px;
  font-size: 32px;
}

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

@keyframes go-pulse {
  from { opacity: 0.65; }
  to { opacity: 1; }
}
@keyframes go-feedback-pop {
  0% { opacity: 0; }
  16% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes go-float-up {
  0% { opacity: 0; transform: translate(-50%, -35%) scale(0.8); }
  18% { opacity: 1; transform: translate(-50%, -55%) scale(1.08); }
  100% { opacity: 0; transform: translate(-50%, -125%) scale(0.96); }
}

@keyframes go-reticle-pulse {
  0%, 100% { transform: scale(0.94); box-shadow: 0 0 0 4px rgba(255, 201, 99, 0.08), 0 0 18px rgba(255, 201, 99, 0.36); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 7px rgba(255, 201, 99, 0.12), 0 0 26px rgba(255, 201, 99, 0.56); }
}

@media (pointer: coarse) {
  .go-touch {
    display: flex;
  }
}

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

  .go-topbar {
    gap: 6px;
  }

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

  .go-stat {
    min-width: 0;
    flex: 1 1 0;
    padding: 6px 4px;
  }

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

  .go-stat strong {
    font-size: 14px;
  }

  .go-actions {
    gap: 4px;
  }

  .go-actions .go-btn:not(.go-icon) {
    display: none;
  }

  .go-icon {
    width: 44px;
    min-width: 44px;
  }

  .go-flight-strip {
    grid-template-columns: minmax(0, 1fr) 61px 102px;
  }

  .go-route,
  .go-timer,
  .go-distance {
    padding: 7px 6px;
  }

  .go-route {
    gap: 5px;
    font-size: 10px;
  }

  .go-timer strong,
  .go-distance strong {
    font-size: 10px;
  }

  .go-stage {
    min-height: 500px;
    height: min(68vh, 610px);
    aspect-ratio: auto;
    border-radius: 14px;
  }

  .go-canvas {
    min-height: 500px;
  }

  .go-meters {
    top: 10px;
    left: 10px;
    gap: 5px;
  }

  .go-meter {
    width: 66px;
  }

  .go-vector {
    min-width: 48px;
    padding: 6px;
  }

  .go-target-readout {
    top: 10px;
    right: 10px;
    min-width: 98px;
    padding: 6px 8px;
  }

  .go-target-readout strong {
    font-size: 11px;
  }

  .go-reticle {
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
  }

  .go-reticle::before {
    top: 15px;
    left: 6px;
    width: 18px;
  }

  .go-reticle::after {
    top: 6px;
    left: 15px;
    height: 18px;
  }

  .go-shell[data-state="won"] .go-result,
  .go-shell[data-state="lost"] .go-result {
    top: 42%;
  }

  .go-start,
  .go-result {
    width: min(90%, 390px);
    padding: 19px;
  }

  .go-start {
    top: 43%;
  }

  .go-start p {
    font-size: 13px;
  }

  .go-touch-left {
    left: 9px;
  }

  .go-touch-right {
    right: 9px;
  }

  .go-key {
    width: 52px;
    height: 52px;
  }

  .go-key-thrust {
    width: 64px;
  }

  .go-banner {
    top: 69px;
  }

  .go-route-legend {
    gap: 9px;
    overflow-x: auto;
  }

  .go-best-inline {
    margin-left: 0;
  }

  .go-tip {
    display: none;
  }
}

@media (max-width: 390px) {
  .go-sound {
    font-size: 8px;
  }


  .go-flight-strip {
    grid-template-columns: minmax(0, 1fr) 58px 94px;
  }

  .go-key {
    width: 48px;
    height: 50px;
  }

  .go-key-thrust {
    width: 60px;
  }

  .go-touch {
    gap: 5px;
  }
}

@media (max-width: 320px) {
  .go-touch-left {
    left: 4px;
  }
  .go-touch-right {
    right: 4px;
  }

  .go-touch {
    gap: 2px;
  }

  .go-key {
    width: 44px;
    height: 48px;
  }

  .go-key-thrust {
    width: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .go-btn,
  .go-close,
  .go-key,
  .go-meter b {
    transition: none;
  }

  .go-meter i[data-low="true"] b {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .go-feedback.go-feedback-active,
  .go-float-text,
  .go-reticle[data-near="true"] {
    animation: none;
  }
}
