@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700;900&family=Orbitron:wght@600;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-deep: #05070f;
  --bg-mid: #0b1226;
  --bg-accent: #1b3c6d;
  --shell-border: rgba(160, 220, 255, 0.24);
  --shell-glow: rgba(77, 170, 255, 0.45);
  --surface-top: rgba(20, 32, 58, 0.88);
  --surface-bottom: rgba(7, 12, 28, 0.94);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background:
    radial-gradient(1200px 600px at 14% -6%, rgba(0, 209, 255, 0.16), transparent 60%),
    radial-gradient(900px 520px at 88% 110%, rgba(80, 134, 255, 0.2), transparent 60%),
    repeating-linear-gradient(135deg, rgba(120, 200, 255, 0.05) 0 1px, transparent 1px 48px),
    linear-gradient(135deg, var(--bg-deep), var(--bg-mid) 52%, #050913 100%);
  color: #fff;
  font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -12%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(600px 360px at 20% 18%, rgba(108, 225, 255, 0.14), transparent 70%),
    radial-gradient(680px 380px at 78% 22%, rgba(92, 130, 255, 0.14), transparent 72%);
  animation: shellFloat 14s ease-in-out infinite alternate;
}

body::after {
  background:
    linear-gradient(90deg, transparent 0, rgba(255,255,255,0.035) 50%, transparent 100%);
  transform: skewY(-8deg) translateX(-35%);
  opacity: 0.5;
}



.game-wrapper {
  position: relative;
  z-index: 1;
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(150deg, var(--surface-top), var(--surface-bottom));
  border: 1px solid var(--shell-border);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 50px var(--shell-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  isolation: isolate;
  animation: shellBreath 7s ease-in-out infinite;
}

.game-wrapper::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.game-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(255,255,255,0.14), transparent 24%, transparent 76%, rgba(144,219,255,0.08));
  pointer-events: none;
}



#game {
  display: block;
  background: #02050d;
  border-radius: 12px;
  border: 1px solid rgba(170, 225, 255, 0.3);
  box-shadow:
    0 0 40px rgba(0,0,0,0.9),
    0 0 30px rgba(31,170,255,0.32),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

@keyframes shellFloat {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, 1.5%, 0) scale(1.04);
  }
}

@keyframes shellBreath {
  0%, 100% {
    box-shadow:
      0 30px 60px rgba(0, 0, 0, 0.55),
      0 0 50px var(--shell-glow),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 36px 72px rgba(0, 0, 0, 0.62),
      0 0 72px rgba(77, 170, 255, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
}



@media (max-width: 1200px), (max-height: 750px) {
  #game {
    max-width: 100vw;
    max-height: 100vh;
  }

  .game-wrapper {
    padding: 8px;
    border-radius: 10px;
    box-shadow:
      0 0 24px rgba(0,0,0,1),
      0 0 32px rgba(0,200,255,0.25);
  }
}



.game-meta {
  position: fixed;
  bottom: 10px;
  right: 14px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  pointer-events: none;
}



.notice {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(0,200,255,0.7);
  color: rgba(220,240,255,0.9);
  backdrop-filter: blur(8px);
}

.help-launch-button {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font: 900 28px "Orbitron", "Rajdhani", sans-serif;
  color: #f4fbff;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.28), transparent 28%),
    linear-gradient(180deg, rgba(76,176,255,0.95), rgba(21,89,208,0.95));
  border: 1px solid rgba(190,235,255,0.9);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(61, 171, 255, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.help-launch-button:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(61, 171, 255, 0.75),
    inset 0 1px 0 rgba(255,255,255,0.38);
  filter: brightness(1.06);
}
