:root {
  color-scheme: dark;
  --bg: #070b14;
  --surface: rgba(16, 23, 40, 0.72);
  --surface-strong: #10182a;
  --line: rgba(148, 180, 255, 0.14);
  --text: #f6f8ff;
  --muted: #94a3bd;
  --blue: #3183ff;
  --cyan: #5ee7ff;
  --green: #68f0b0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 50% -20%, #14264a 0, transparent 42%),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.025), transparent 2px);
  background-size: 5px 100%;
  opacity: 0.16;
  content: "";
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button,
a {
  outline: none;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(94, 231, 255, 0.45);
  outline-offset: 4px;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.16;
}

.page-glow--one {
  top: 6%;
  right: -180px;
  background: var(--blue);
}

.page-glow--two {
  bottom: 6%;
  left: -220px;
  background: var(--cyan);
}

.header,
.main,
.footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.header {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand__mark {
  display: block;
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 8px 22px rgba(129, 140, 248, 0.25));
}

.brand__name {
  background: linear-gradient(90deg, #a78bfa, #818cf8 52%, #38bdf8);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.header__status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(104, 240, 176, 0.08), 0 0 18px rgba(104, 240, 176, 0.55);
}

.main {
  padding: 92px 0 72px;
}

.hero {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 72px;
}

.hero__copy {
  min-width: 0;
}

.eyebrow,
.section-label {
  color: #82c8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  line-height: 1.5;
}

.eyebrow__spark {
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(94, 231, 255, 0.7));
}

h1 {
  max-width: 720px;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 820;
  letter-spacing: -0.075em;
  line-height: 0.96;
}

.gradient-text {
  display: block;
  background: linear-gradient(105deg, #ffffff 2%, #8bd8ff 48%, #5588ff 96%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(135deg, #2778ff, #3b94ff);
  box-shadow: 0 16px 42px rgba(37, 119, 255, 0.25), inset 0 1px rgba(255,255,255,0.2);
  color: white;
}

.button--primary:hover {
  box-shadow: 0 20px 50px rgba(37, 119, 255, 0.34), inset 0 1px rgba(255,255,255,0.2);
}

.button--ghost {
  border-color: var(--line);
  background: rgba(255,255,255,0.035);
  color: #d9e2f5;
}

.button--ghost:hover {
  border-color: rgba(94, 231, 255, 0.28);
  background: rgba(94, 231, 255, 0.06);
}

.facts {
  display: flex;
  gap: 28px;
  margin: 46px 0 0;
}

.fact {
  display: grid;
  gap: 3px;
}

.fact dt {
  font-size: 25px;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.fact dd {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.orbit-card {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 50%, rgba(49, 131, 255, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  box-shadow: inset 0 1px rgba(255,255,255,0.08), 0 40px 100px rgba(0,0,0,0.28);
  transform: perspective(1000px) rotateY(var(--tilt-x, -3deg)) rotateX(var(--tilt-y, 2deg));
  transition: transform 180ms ease-out;
}

.orbit-card::before {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,0.035);
  border-radius: 25px;
  content: "";
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(112, 177, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit--outer {
  width: 75%;
  height: 75%;
  animation: orbit-spin 14s linear infinite;
}

.orbit--inner {
  width: 49%;
  height: 49%;
  border-style: dashed;
  animation: orbit-spin-reverse 10s linear infinite;
}

.orbit__satellite {
  position: absolute;
  top: 9%;
  left: 9%;
  width: 12px;
  height: 12px;
  border: 3px solid #bcefff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 24px var(--cyan);
}

.orbit-card__core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 142px;
  height: 142px;
  place-content: center;
  border: 1px solid rgba(117, 202, 255, 0.3);
  border-radius: 50%;
  background: rgba(9, 16, 30, 0.86);
  box-shadow: 0 0 70px rgba(49, 131, 255, 0.22), inset 0 0 30px rgba(49, 131, 255, 0.08);
  text-align: center;
  transform: translate(-50%, -50%);
}

.orbit-card__core strong {
  margin: 4px 0;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.orbit-card__small,
.orbit-card__online {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.orbit-card__online {
  color: var(--green);
}

.orbit-card__note {
  position: absolute;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 14, 26, 0.7);
  color: var(--muted);
  font-size: 10px;
  backdrop-filter: blur(12px);
}

.orbit-card__note--top {
  top: 15%;
  right: 7%;
}

.orbit-card__note--bottom {
  bottom: 13%;
  left: 8%;
}

.game-card {
  margin-top: 120px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(16, 25, 44, 0.9), rgba(10, 16, 29, 0.75));
  box-shadow: inset 0 1px rgba(255,255,255,0.055), 0 30px 80px rgba(0,0,0,0.18);
}

.game-card__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 4px 4px 26px;
}

.game-card h2,
.note h2 {
  margin: 7px 0 0;
  font-size: clamp(25px, 4vw, 38px);
  letter-spacing: -0.045em;
}

.game-card__header p,
.note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.score {
  display: flex;
  min-width: 116px;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 10px;
}

.score strong {
  color: var(--cyan);
  font-size: 25px;
}

.arena {
  position: relative;
  height: 330px;
  overflow: hidden;
  border: 1px solid rgba(99, 151, 255, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 50%, rgba(49, 131, 255, 0.08), transparent 46%),
    #080e1a;
}

.arena__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(93, 145, 224, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 145, 224, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle, black, transparent 75%);
}

.spark {
  position: absolute;
  z-index: 2;
  top: 46%;
  left: 46%;
  display: grid;
  width: 56px;
  height: 56px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(162, 226, 255, 0.6);
  border-radius: 50%;
  background: rgba(49, 131, 255, 0.2);
  box-shadow: 0 0 0 12px rgba(49, 131, 255, 0.055), 0 0 44px rgba(49, 131, 255, 0.6);
  cursor: pointer;
  transition: top 280ms cubic-bezier(.22,.8,.25,1), left 280ms cubic-bezier(.22,.8,.25,1), transform 120ms ease;
}

.spark:hover {
  transform: scale(1.08);
}

.spark:active {
  transform: scale(0.9);
}

.spark span {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #c6f4ff;
  box-shadow: 0 0 16px white, 0 0 32px var(--cyan);
}

.spark.is-complete {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(1.15);
  cursor: default;
}

.game-message {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: rgba(190, 204, 230, 0.58);
  font-size: 11px;
  text-align: center;
  pointer-events: none;
}

.note {
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  margin-top: 24px;
  padding: 25px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.024);
}

.note__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: rgba(49, 131, 255, 0.1);
  color: var(--cyan);
  font-size: 24px;
}

.note h2 {
  font-size: 20px;
}

.note a {
  color: #8edbff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.footer {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #6f7f9b;
  font-size: 11px;
}

@keyframes orbit-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbit-spin-reverse {
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@media (max-width: 860px) {
  .main {
    padding-top: 64px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .orbit-card {
    width: min(100%, 520px);
    justify-self: center;
  }

  .game-card {
    margin-top: 72px;
  }
}

@media (max-width: 600px) {
  .header,
  .main,
  .footer {
    width: min(100% - 28px, 1160px);
  }

  .header {
    min-height: 72px;
  }

  .header__status span:last-child {
    display: none;
  }

  .main {
    padding: 48px 0;
  }

  h1 {
    font-size: clamp(40px, 12.5vw, 58px);
    line-height: 1.02;
  }

  .hero__lead {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .fact {
    min-width: 0;
  }

  .fact dd {
    font-size: 9px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .orbit-card {
    border-radius: 25px;
  }

  .game-card {
    padding: 16px;
    border-radius: 22px;
  }

  .game-card__header {
    align-items: flex-start;
  }

  .game-card__header p {
    max-width: 220px;
  }

  .score {
    min-width: 78px;
    flex-wrap: wrap;
  }

  .score span:first-child {
    width: 100%;
    text-align: center;
  }

  .arena {
    height: 360px;
  }

  .note {
    align-items: start;
    grid-template-columns: auto 1fr;
    padding: 20px;
  }

  .note a {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
