.play-launch {
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.58);
  font-family: 'Syncopate', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
}

.play-launch:hover {
  border-color: rgba(228,210,171,0.5);
  color: rgba(255,255,255,0.88);
  background: rgba(228,210,171,0.08);
  transform: translateX(-50%) translateY(-1px);
}

.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background-color: #000;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.game-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(24,35,54,0.38), rgba(0,0,0,0.94) 72%),
    linear-gradient(to bottom, rgba(0,0,0,0.24), rgba(0,0,0,0.92));
}

.game-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.game-shell {
  position: relative;
  z-index: 1;
  width: min(94vw, 520px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
  border: 1px solid rgba(255,255,255,0.12);
  background-color: rgba(3,8,14,0.34);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    0 26px 72px rgba(0,0,0,0.52),
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 96px rgba(0,0,0,0.58);
  backdrop-filter: blur(8px);
}

.game-shell::before,
.game-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.game-shell::before {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), transparent 16%, transparent 84%, rgba(255,255,255,0.08)),
    linear-gradient(to bottom, rgba(255,255,255,0.08), transparent 10%, transparent 90%, rgba(255,255,255,0.06));
  mix-blend-mode: screen;
  opacity: 0.42;
}

.game-shell::after {
  border: 1px solid rgba(255,255,255,0.1);
  inset: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 0 0 32px rgba(0,0,0,0.26);
}

.game-frame,
.game-vignette,
.game-scanlines,
.game-hud,
.game-boss,
.game-center,
.game-combo,
.game-footer,
.game-gauge-shell,
.game-controls,
.game-touch {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
}

.game-frame {
  inset: 0;
  pointer-events: none;
}

.game-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(143, 255, 210, 0.72);
  box-shadow: 0 0 16px rgba(70, 255, 200, 0.28);
}

.game-corner-top-left {
  top: 14px;
  left: 14px;
  border-right: 0;
  border-bottom: 0;
}

.game-corner-top-right {
  top: 14px;
  right: 14px;
  border-left: 0;
  border-bottom: 0;
}

.game-corner-bottom-left {
  bottom: 14px;
  left: 14px;
  border-right: 0;
  border-top: 0;
}

.game-corner-bottom-right {
  bottom: 14px;
  right: 14px;
  border-left: 0;
  border-top: 0;
}

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

.game-vignette {
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 36%, rgba(0,0,0,0.14) 62%, rgba(0,0,0,0.52) 100%),
    linear-gradient(to bottom, rgba(4,8,15,0.1), rgba(2,5,12,0.28));
}

.game-scanlines {
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100% 4px;
  mix-blend-mode: screen;
}

.game-hud {
  top: 10px;
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 8px;
  padding: 0 12px;
  pointer-events: none;
}

.game-hud-panel {
  position: relative;
  min-height: 54px;
  padding: 10px 12px 9px;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 4px 16px rgba(0,0,0,0.7);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.01)),
    linear-gradient(135deg, rgba(14,20,29,0.78), rgba(4,7,13,0.62));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 18px rgba(255,255,255,0.03),
    0 6px 18px rgba(0,0,0,0.18);
}

.game-hud-panel::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 10px;
  border-radius: 999px;
  background: rgba(61, 255, 208, 0.9);
  box-shadow: 0 0 10px rgba(61, 255, 208, 0.44);
}

.game-hud-panel-left {
  clip-path: polygon(0 16%, 88% 0, 100% 100%, 0 100%);
}

.game-hud-panel-left::before {
  left: 10px;
  background: rgba(255, 172, 74, 0.9);
  box-shadow: 0 0 10px rgba(255, 172, 74, 0.44);
}

.game-hud-panel-center {
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  text-align: center;
}

.game-hud-panel-center::before {
  left: calc(50% - 4px);
}

.game-hud-panel-right {
  clip-path: polygon(12% 0, 100% 16%, 100% 100%, 0 100%);
  text-align: right;
}

.game-hud-panel-right::before {
  right: 10px;
}

.game-hud-label {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.62;
}

.game-hud-value {
  display: block;
  margin-top: 4px;
  font-family: 'Syncopate', sans-serif;
  font-size: clamp(12px, 1.6vw, 17px);
  letter-spacing: 1px;
}

.game-hud-value-main {
  font-size: clamp(13px, 1.8vw, 18px);
}

.game-boss {
  top: 72px;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.game-boss.visible {
  opacity: 1;
  transform: translateY(0);
}

.game-boss-label {
  display: block;
  margin-bottom: 6px;
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  text-align: center;
}

.game-boss-track {
  display: block;
  width: 100%;
  height: 6px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.32);
  overflow: hidden;
}

.game-boss-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 166, 108, 0.9), rgba(255, 229, 123, 0.88));
  box-shadow: 0 0 18px rgba(255, 185, 95, 0.44);
}

.game-center {
  top: 48%;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.game-message {
  min-width: 180px;
  max-width: min(72%, 280px);
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.84);
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.22);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.game-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.game-message-title {
  font-family: 'Syncopate', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.game-message-copy {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.72);
}

.game-combo {
  top: 102px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.game-combo.visible {
  opacity: 1;
  transform: translateY(0);
}

.game-combo-pill {
  padding: 5px 10px;
  border: 1px solid rgba(61,255,208,0.18);
  background: rgba(3, 17, 20, 0.2);
  color: rgba(150,255,240,0.9);
  font-family: 'Syncopate', sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.game-footer {
  bottom: 92px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 18px;
  pointer-events: none;
}

.game-footer-stat {
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.14);
  color: rgba(255,255,255,0.78);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

.game-gauge-shell {
  right: 8px;
  left: auto;
  bottom: 10px;
  width: 116px;
  height: 66px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.9;
}

.game-gauge {
  --gauge-fill: 270deg;
  position: absolute;
  right: 0;
  bottom: -48px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background:
    conic-gradient(
      from 135deg,
      rgba(61,255,208,0.94) 0deg,
      rgba(61,255,208,0.94) var(--gauge-fill),
      rgba(255,255,255,0.08) var(--gauge-fill),
      rgba(255,255,255,0.08) 270deg,
      transparent 270deg
    );
  box-shadow:
    0 0 18px rgba(61,255,208,0.14),
    inset 0 0 20px rgba(255,255,255,0.06);
}

.game-gauge::before,
.game-gauge::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.game-gauge::before {
  inset: 10px;
  background:
    radial-gradient(circle at center, rgba(10,16,24,0.96), rgba(5,8,14,0.98)),
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 18px rgba(0,0,0,0.42);
}

.game-gauge::after {
  inset: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.game-gauge-inner {
  position: absolute;
  left: 22px;
  right: 14px;
  top: 22px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.game-gauge-label {
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}

.game-gauge-value {
  margin-top: 4px;
  font-family: 'Syncopate', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.92);
}

.game-controls {
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}

.game-button {
  pointer-events: auto;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.26);
  color: rgba(255,255,255,0.72);
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  touch-action: manipulation;
}

.game-button:hover {
  border-color: rgba(228,210,171,0.5);
  color: #fff;
  background: rgba(228,210,171,0.08);
}

.game-button:disabled {
  border-color: rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.12);
  color: rgba(255,255,255,0.34);
  box-shadow: none;
}

.game-touch {
  bottom: 58px;
  display: none;
  justify-content: flex-end;
  align-items: center;
  padding: 0 14px;
  pointer-events: none;
  z-index: 4;
}

.game-button-pulse {
  min-width: 84px;
  padding-inline: 10px;
  border-radius: 16px;
  font-family: 'Syncopate', sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
  background: rgba(18, 16, 6, 0.26);
}

.game-button-pulse.ready {
  border-color: rgba(61,255,208,0.36);
  background: rgba(7, 22, 18, 0.34);
  color: rgba(220,255,246,0.92);
  box-shadow: 0 0 18px rgba(61,255,208,0.18);
}

.game-touch-hint {
  position: absolute;
  left: 14px;
  right: 112px;
  bottom: 18px;
  color: rgba(255,255,255,0.44);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: left;
  pointer-events: none;
  text-shadow: 0 8px 18px rgba(0,0,0,0.4);
}

@media (max-width: 600px) {
  .play-launch {
    bottom: 70px;
    font-size: 9px;
    letter-spacing: 3px;
  }

  .game-shell {
    width: min(96vw, 400px);
  }

  .game-hud {
    top: 8px;
    gap: 6px;
    padding: 0 10px;
  }

  .game-hud-panel {
    min-height: 46px;
    padding: 8px 9px 7px;
  }

  .game-hud-label,
  .game-boss-label,
  .game-gauge-label {
    letter-spacing: 1px;
  }

  .game-hud-value {
    font-size: 11px;
  }

  .game-boss {
    top: 58px;
    padding: 0 12px;
  }

  .game-combo {
    top: 84px;
  }

  .game-footer {
    bottom: 82px;
    padding: 0 12px;
  }

  .game-footer-stat {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .game-gauge-shell {
    left: 10px;
    right: auto;
    bottom: 12px;
    width: 74px;
    height: 42px;
    opacity: 0.62;
  }

  .game-gauge {
    width: 74px;
    height: 74px;
    bottom: -28px;
  }

  .game-gauge-inner {
    left: 15px;
    right: 8px;
    top: 13px;
    bottom: 14px;
  }

  .game-gauge-label {
    font-size: 7px;
  }

  .game-gauge-value {
    font-size: 9px;
  }

  .game-touch {
    display: flex;
    bottom: 46px;
    padding: 0 10px;
  }

  .game-touch-hint {
    display: none;
  }

  .game-button-pulse {
    min-width: 88px;
    height: 40px;
    font-size: 8px;
  }
}
