:root {
  --bg: #04050b;
  --bg-2: #0b0d1c;
  --panel: #111428;
  --line: #262b45;
  --text: #eaf0f8;
  --muted: #9aa3bd;
  --accent: #f2c14e;
  --violet: #8b7cf6;
  --gutter: 16px;
  --wide: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px / 1.6 "Inter",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Звёзды: три слоя точек градиентами, без картинок. */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff8, transparent 60%),
    radial-gradient(1px 1px at 28% 72%, #fff6, transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 34%, #fffa, transparent 60%),
    radial-gradient(1px 1px at 63% 12%, #fff7, transparent 60%),
    radial-gradient(1px 1px at 71% 58%, #fff5, transparent 60%),
    radial-gradient(1.5px 1.5px at 86% 26%, #f2c14e99, transparent 60%),
    radial-gradient(1px 1px at 92% 80%, #fff6, transparent 60%),
    radial-gradient(1px 1px at 8% 90%, #fff5, transparent 60%),
    radial-gradient(1px 1px at 52% 88%, #fff4, transparent 60%),
    radial-gradient(1.5px 1.5px at 35% 8%, #8b7cf699, transparent 60%),
    radial-gradient(60% 50% at 75% 30%, #2a1f5a55, transparent 70%),
    radial-gradient(50% 60% at 15% 80%, #3a1a2a44, transparent 70%);
  background-size:
    420px 420px,
    380px 380px,
    520px 520px,
    300px 300px,
    460px 460px,
    560px 560px,
    340px 340px,
    400px 400px,
    480px 480px,
    600px 600px,
    100% 100%,
    100% 100%;
  background-repeat:
    repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, no-repeat,
    no-repeat;
}

/* Шапка */
.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: 15px;
}

.logo svg {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* Hero главной */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 96px 0 64px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  overflow: hidden;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  margin: 0 0 32px;
  max-width: 34em;
  color: var(--muted);
  font-size: 18px;
}

.globe-home {
  margin: 0 auto;
  width: min(340px, 70vw);
  aspect-ratio: 1;
}

.hint {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.button {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid #c8cfe0aa;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.button:hover {
  background: #ffffff12;
  border-color: var(--text);
}

.button.solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #141006;
}

.button.solid:hover {
  background: #ffd36b;
}

/* Секции */
section {
  padding: 80px 0;
}

.label {
  margin: 0 0 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.label::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 12px;
  background: var(--accent);
}

/* Карточка игры */
.game-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.game-card:hover {
  border-color: #4a5280;
  transform: translateY(-2px);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card .body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 32px;
}

.game-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.game-card .sub {
  margin: 0;
  color: var(--accent);
  font-weight: 500;
}

.game-card .soon {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.game-card .button {
  align-self: flex-start;
  margin-top: 8px;
}

/* Страница игры */
.game-hero {
  position: relative;
  padding: 120px 0 56px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  overflow: hidden;
}

.game-hero .wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
}

.game-hero .icon {
  width: 132px;
  height: 132px;
  flex: none;
  border-radius: 28px;
  box-shadow: 0 12px 48px #8b7cf633;
}

.game-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 800;
}

.game-hero .sub {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #000;
  cursor: default;
}

.store svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.store small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.store b {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

section.about {
  padding-bottom: 0;
}

.about p {
  max-width: 46em;
  margin: 0 0 16px;
  font-size: 18px;
  color: #c9d0e2;
}

.shots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.shots img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #000;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.features b {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.features span {
  color: var(--muted);
  font-size: 15px;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.legal a {
  color: var(--muted);
}

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

/* Подвал */
.foot {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: #020308;
  color: var(--muted);
  font-size: 14px;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.foot a {
  color: var(--muted);
}

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

.foot .links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Шар поверх всей страницы: ловит палец только в своём круге (`.globe-hit`). */
.globe-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  pointer-events: none;
}

.globe-hit {
  position: fixed;
  z-index: 21;
  border-radius: 50%;
  touch-action: none;
  cursor: grab;
}

.globe-hit:active {
  cursor: grabbing;
}

@media (max-width: 860px) {
  .hero {
    min-height: 0;
    padding-top: 88px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero .globe-cell {
    order: -1;
  }
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .globe-home {
    width: min(240px, 62vw);
  }
  .game-card {
    grid-template-columns: 1fr;
  }
  .game-card .body {
    padding: 24px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .game-hero {
    padding-top: 96px;
  }
  .game-hero .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .game-hero .icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }
  .shots {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
  }
  .shots::-webkit-scrollbar {
    display: none;
  }
  .shots img {
    flex: none;
    width: 62vw;
    max-width: 260px;
    scroll-snap-align: start;
  }
  section {
    padding: 56px 0;
  }
  .nav {
    gap: 16px;
  }
}
