:root {
  color-scheme: dark;
  --bg: #05070b;
  --panel: #0d1118;
  --panel-strong: #111825;
  --text: #f3f7fb;
  --muted: #a8b3c4;
  --cyan: #19f7ff;
  --pink: #ff3cc8;
  --lime: #b7ff46;
  --amber: #ffb84d;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(5, 7, 11, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(25, 247, 255, 0.68);
  background: #07151b;
  color: var(--cyan);
  box-shadow: 0 0 22px rgba(25, 247, 255, 0.28);
}

.nav-links {
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 60, 200, 0.18), transparent 24%),
    radial-gradient(circle at 78% 22%, rgba(25, 247, 255, 0.16), transparent 26%),
    linear-gradient(145deg, #05070b 0%, #08151a 44%, #170817 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 78%, transparent);
}

.grid-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
  transform: rotate(-12deg);
}

.line-a {
  top: 24%;
  left: -10%;
  width: 70%;
}

.line-b {
  top: 52%;
  right: -16%;
  width: 76%;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
}

.line-c {
  bottom: 18%;
  left: 18%;
  width: 48%;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
}

.pulse-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  color: var(--cyan);
  box-shadow: 0 0 28px currentColor;
}

.dot-a {
  top: 28%;
  left: 18%;
}

.dot-b {
  top: 46%;
  right: 24%;
  color: var(--pink);
}

.dot-c {
  bottom: 24%;
  left: 62%;
  color: var(--lime);
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 118px 0 56px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(58px, 11vw, 150px);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(25, 247, 255, 0.32);
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--cyan);
  color: #001013;
  box-shadow: 0 0 28px rgba(25, 247, 255, 0.36);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.game-section,
.content-band,
.contact-band {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow),
.contact-band p,
.feature-grid p {
  color: var(--muted);
}

.game-shell {
  overflow: hidden;
  border: 1px solid rgba(25, 247, 255, 0.44);
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow), 0 0 38px rgba(25, 247, 255, 0.18);
}

.game-privacy-note {
  max-width: 860px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.game-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  background: var(--panel-strong);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 14px;
}

.game-toolbar a {
  margin-left: auto;
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}

.status-light {
  width: 10px;
  height: 10px;
  background: var(--lime);
  box-shadow: 0 0 16px var(--lime);
}

iframe {
  display: block;
  width: 100%;
  height: min(72vw, 760px);
  min-height: 520px;
  border: 0;
  background: #000;
}

.content-band {
  border-top: 1px solid var(--line);
}

.compact {
  margin-bottom: 22px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
}

.contact-band div {
  max-width: 680px;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

footer a,
.legal-content a {
  color: var(--text);
  text-decoration: none;
}

.legal-main {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 72px;
}

.legal-hero {
  padding-bottom: 28px;
}

.legal-hero h1{
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.98;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.legal-intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.legal-language-note{
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 760px;
  margin-top: 14px;
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.legal-card h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 36px);
}

.legal-card p {
  color: var(--muted);
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.public-doc-content .legal-card {
  overflow-x: auto;
}

.public-doc-content h2,
.public-doc-content h3,
.public-doc-content h4,
.public-doc-content h5,
.public-doc-content h6 {
  margin: 28px 0 12px;
  line-height: 1.1;
}

.public-doc-content h2:first-child,
.public-doc-content h3:first-child {
  margin-top: 0;
}

.public-doc-content h2 {
  color: var(--text);
  font-size: clamp(28px, 4vw, 46px);
}

.public-doc-content h3 {
  color: var(--cyan);
  font-size: clamp(21px, 2.4vw, 30px);
}

.public-doc-content h4 {
  color: var(--lime);
  font-size: 18px;
}

.public-doc-content code {
  padding: 2px 5px;
  border: 1px solid rgba(25, 247, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.public-doc-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 96vh;
  }

  .hero-inner {
    padding-top: 160px;
  }

  .button {
    width: 100%;
  }

  iframe {
    height: 620px;
    min-height: 620px;
  }

  .feature-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .contact-band,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .nav-links {
    font-size: 13px;
  }

  h1 {
    font-size: 56px;
  }

  iframe {
    height: 560px;
    min-height: 560px;
  }

  .game-toolbar {
    flex-wrap: wrap;
  }

  .game-toolbar a {
    width: 100%;
    margin-left: 0;
  }
}
