:root {
  --bg: #07091f;
  --bg-soft: #11153a;
  --card: rgba(255, 255, 255, 0.08);
  --text: #f7f8ff;
  --muted: #bbc1e8;
  --accent: #6cf0ff;
  --accent-2: #a66cff;
  --danger: #ff6b9d;
  --good: #7dffb2;
  --border: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(108, 240, 255, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(166, 108, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #07091f 0%, #10143b 55%, #050615 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  padding: 22px;
}

.nav {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(14px);
}

.logo {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  width: min(1180px, 100%);
  margin: 62px auto 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(108, 240, 255, 0.35);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(108, 240, 255, 0.08);
}

.hero h1,
.section-title h2 {
  margin: 18px 0 14px;
  font-size: clamp(2.15rem, 5vw, 4.7rem);
  line-height: 1;
}

.hero p,
.section-title p,
.info-grid p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.cta,
.game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  border: 0;
  color: #06101e;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent), var(--good));
  box-shadow: 0 14px 36px rgba(108, 240, 255, 0.22);
}

.hero-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.18), transparent 4%),
    radial-gradient(circle at 26% 24%, rgba(255, 255, 255, 0.18), transparent 3%),
    radial-gradient(circle at 70% 76%, rgba(108, 240, 255, 0.22), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.planet {
  position: absolute;
  width: 170px;
  height: 170px;
  right: 42px;
  bottom: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffca6c, #ff6b9d 55%, #a66cff);
  box-shadow: 0 0 80px rgba(255, 107, 157, 0.36);
}

.ship-preview {
  position: absolute;
  left: 42%;
  top: 42%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 70px;
  filter: drop-shadow(0 0 20px rgba(108, 240, 255, 0.8));
  transform: rotate(90deg);
  animation: floatShip 2.4s ease-in-out infinite;
}

.asteroid-preview {
  position: absolute;
  border-radius: 45% 55% 50% 50%;
  background: linear-gradient(135deg, #9a806c, #53423a);
  box-shadow: inset -8px -8px 18px rgba(0, 0, 0, 0.25);
}

.asteroid-preview.one {
  width: 64px;
  height: 58px;
  left: 74px;
  top: 82px;
}

.asteroid-preview.two {
  width: 84px;
  height: 76px;
  right: 118px;
  top: 98px;
}

.asteroid-preview.three {
  width: 52px;
  height: 48px;
  left: 96px;
  bottom: 94px;
}

@keyframes floatShip {
  0%, 100% { transform: translateY(0) rotate(90deg); }
  50% { transform: translateY(-16px) rotate(90deg); }
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.game-section,
.info-grid article {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 28px;
  backdrop-filter: blur(12px);
}

.game-section {
  padding: clamp(18px, 4vw, 34px);
}

.section-title {
  text-align: center;
  margin-bottom: 24px;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.game-shell {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #06081a;
}

.game-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.06);
}

.score-box {
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
}

.score-box strong {
  color: var(--text);
}

#gameCanvas {
  display: block;
  width: 100%;
  aspect-ratio: 900 / 520;
  background: #050716;
  touch-action: none;
}

.mobile-controls {
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-controls button {
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.1);
}

.vertical-controls {
  display: grid;
  gap: 12px;
}

.info-grid {
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-grid article {
  padding: 24px;
}

.info-grid h3 {
  margin: 0 0 10px;
  color: var(--accent);
}


footer {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
  }

  .hero {
    margin-top: 34px;
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 300px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .mobile-controls {
    display: grid;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 12px;
  }

  main {
    width: min(100% - 20px, 1180px);
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .game-topbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .game-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero h1 {
    font-size: 2.15rem;
  }
}
