:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --muted: #aab7c6;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(8, 15, 25, 0.72);
  --panel-strong: #101b2a;
  --green: #63d471;
  --cyan: #5cc8ff;
  --yellow: #ffd166;
  --red: #ff6b6b;
  --bg: #07111d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(92, 200, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 90% 30%, rgba(99, 212, 113, 0.14), transparent 24rem),
    linear-gradient(135deg, #06101b 0%, #0d1722 46%, #07111d 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 29, 0.82);
  backdrop-filter: blur(16px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #06101b;
}

nav {
  gap: clamp(0.75rem, 3vw, 1.6rem);
  color: var(--muted);
  font-size: 0.95rem;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 4.1rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(4rem, 15vw, 10rem);
  line-height: 0.86;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
}

.lede {
  max-width: 39rem;
  color: #d6e1ed;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-weight: 800;
}

.primary {
  background: var(--green);
  color: #06101b;
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.hero-art {
  position: absolute;
  inset: 0;
  opacity: 0.86;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.orbit-one {
  right: -8rem;
  top: 8rem;
  width: min(52vw, 38rem);
  aspect-ratio: 1;
}

.orbit-two {
  right: 10vw;
  bottom: -10rem;
  width: min(44vw, 31rem);
  aspect-ratio: 1;
}

.tile,
.token {
  position: absolute;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.tile {
  width: clamp(7rem, 16vw, 13rem);
  aspect-ratio: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(135deg, rgba(92, 200, 255, 0.28), rgba(99, 212, 113, 0.16));
  background-size: 20px 20px, 20px 20px, auto;
}

.tile-a {
  right: 12vw;
  top: 20vh;
  transform: rotate(12deg);
}

.tile-b {
  right: 32vw;
  bottom: 14vh;
  transform: rotate(-10deg);
}

.tile-c {
  right: 4vw;
  bottom: 22vh;
  transform: rotate(7deg);
}

.token {
  width: clamp(2rem, 5vw, 4rem);
  aspect-ratio: 1;
  border-radius: 50%;
}

.token-a {
  right: 25vw;
  top: 27vh;
  background: var(--red);
}

.token-b {
  right: 9vw;
  top: 53vh;
  background: var(--yellow);
}

.token-c {
  right: 42vw;
  top: 65vh;
  background: var(--cyan);
}

.section,
.about-section {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.game-card {
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.playable-card:hover {
  border-color: rgba(99, 212, 113, 0.62);
  background: rgba(12, 25, 38, 0.92);
  transform: translateY(-4px);
}

.game-art {
  position: relative;
  height: 14rem;
  overflow: hidden;
  background: var(--panel-strong);
}

.game-art span {
  position: absolute;
  display: block;
}

.map-runner {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    #112235;
  background-size: 24px 24px;
}

.map-runner span {
  border-radius: 999px;
}

.map-runner span:nth-child(1) {
  left: 14%;
  top: 28%;
  width: 56%;
  height: 12px;
  background: var(--green);
  transform: rotate(-18deg);
}

.map-runner span:nth-child(2) {
  left: 55%;
  top: 43%;
  width: 28%;
  height: 12px;
  background: var(--cyan);
  transform: rotate(24deg);
}

.map-runner span:nth-child(3),
.map-runner span:nth-child(4) {
  width: 2.3rem;
  aspect-ratio: 1;
  border: 8px solid var(--yellow);
  background: #07111d;
}

.map-runner span:nth-child(3) {
  left: 13%;
  top: 22%;
}

.map-runner span:nth-child(4) {
  right: 14%;
  bottom: 22%;
}

.flag-stack {
  background: #16222e;
}

.flag-stack span {
  left: 14%;
  width: 72%;
  height: 2.7rem;
  border-radius: 6px;
}

.flag-stack span:nth-child(1) {
  top: 18%;
  background: linear-gradient(90deg, var(--cyan) 33%, var(--yellow) 33% 66%, var(--red) 66%);
}

.flag-stack span:nth-child(2) {
  top: 40%;
  background: linear-gradient(90deg, var(--green) 50%, #ffffff 50%);
}

.flag-stack span:nth-child(3) {
  top: 62%;
  background: linear-gradient(90deg, var(--red) 25%, var(--cyan) 25% 75%, var(--yellow) 75%);
}

.flag-stack span:nth-child(4) {
  left: 9%;
  top: 14%;
  width: 4px;
  height: 72%;
  background: rgba(255, 255, 255, 0.58);
}

.city-sprint {
  background:
    linear-gradient(180deg, rgba(92, 200, 255, 0.18), transparent),
    #111f2d;
}

.city-sprint span {
  bottom: 0;
  width: 16%;
  background: linear-gradient(180deg, var(--cyan), #223447);
}

.city-sprint span:nth-child(1) {
  left: 12%;
  height: 42%;
}

.city-sprint span:nth-child(2) {
  left: 32%;
  height: 66%;
}

.city-sprint span:nth-child(3) {
  left: 52%;
  height: 52%;
}

.city-sprint span:nth-child(4) {
  left: 72%;
  height: 78%;
}

.game-body {
  padding: 1.1rem;
}

.game-body p,
.about-section p {
  color: var(--muted);
  line-height: 1.55;
}

.status {
  display: inline-flex;
  margin-top: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  color: #dce8f5;
  font-size: 0.8rem;
  font-weight: 700;
}

.status.live {
  border-color: rgba(99, 212, 113, 0.5);
  background: rgba(99, 212, 113, 0.12);
  color: #c9ffd1;
}

.about-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.about-section p {
  max-width: 47rem;
  font-size: 1.1rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem clamp(1rem, 5vw, 4rem);
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 44rem;
  }

  .hero-art {
    opacity: 0.42;
  }

  .game-grid,
  .about-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 4.4rem;
  }

  .game-art {
    height: 12rem;
  }
}
