:root {
  color-scheme: dark;
  --ink: #f6f7f2;
  --muted: #aab4b9;
  --dim: #77838a;
  --night: #07090c;
  --deep: #0d1217;
  --panel: #12191f;
  --panel-strong: #18212a;
  --line: rgba(255, 255, 255, 0.14);
  --acid: #c8ff36;
  --cyan: #36d7ff;
  --red: #ff3d32;
  --amber: #ffc247;
  --paper: #f5f4ec;
  --paper-ink: #101419;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 61, 50, 0.08), transparent 22rem),
    var(--night);
}

body.no-scroll {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

button,
input,
textarea,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px clamp(18px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.96), rgba(14, 20, 25, 0.88)),
    rgba(7, 9, 12, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

.brand-lockup {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-mark,
.brand-logo {
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--night);
  background: var(--acid);
  box-shadow: 0 0 30px rgba(200, 255, 54, 0.24);
}

.brand-logo {
  width: clamp(300px, 34vw, 620px);
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 18px rgba(200, 255, 54, 0.16));
}

.brand-subline {
  margin-left: 4px;
  color: var(--muted);
  font: 800 0.66rem/1 "Space Grotesk", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong,
.brand-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy span {
  color: var(--muted);
  font: 700 0.72rem/1 "Space Grotesk", Arial, sans-serif;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topbar-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.035);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  border-color: rgba(200, 255, 54, 0.42);
  background: rgba(200, 255, 54, 0.09);
  outline: none;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.language-switcher button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.language-switcher small {
  display: none;
}

.language-switcher button.is-active {
  color: #071009;
  border-color: var(--acid);
  background: var(--acid);
}

.language-switcher button:focus-visible {
  outline: 2px solid rgba(200, 255, 54, 0.4);
  outline-offset: 2px;
}

.hero {
  position: relative;
  min-height: 800px;
  display: block;
  overflow: hidden;
  padding: 138px clamp(18px, 5vw, 64px) 42px;
  border-bottom: 1px solid var(--line);
  background: #07090c;
}

.hero-media {
  cursor: pointer;
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img,
.hero-media video {
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.2) contrast(1.1) brightness(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 46%, transparent 0 26%, rgba(7, 9, 12, 0.18) 58%, rgba(7, 9, 12, 0.58) 100%),
    linear-gradient(180deg, rgba(7, 9, 12, 0.18), transparent 42%, rgba(7, 9, 12, 0.52));
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.88) 0%, rgba(7, 9, 12, 0.42) 44%, rgba(7, 9, 12, 0.04) 100%),
    linear-gradient(180deg, rgba(7, 9, 12, 0.02) 0%, rgba(7, 9, 12, 0.52) 92%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    linear-gradient(120deg, transparent 0%, rgba(200, 255, 54, 0.11) 42%, transparent 56%),
    linear-gradient(68deg, rgba(255, 61, 50, 0.18), transparent 30%);
  mix-blend-mode: screen;
  opacity: 0.42;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.65fr);
  align-items: end;
  gap: 18px;
}

.hero-layout.no-rail {
  grid-template-columns: minmax(0, 960px);
}

.hero-copy {
  max-width: 790px;
}

.lead-story,
.hero-news-rail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 17, 22, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.lead-story {
  padding: clamp(22px, 4vw, 34px);
  border-left: 5px solid var(--acid);
}

.lead-story {
  padding: 0 0 0 clamp(16px, 2vw, 24px);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: clamp(3.2rem, 9vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  overflow-wrap: normal;
  word-break: normal;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.72);
}

h2 {
  margin: 0;
  font-size: clamp(1.95rem, 4vw, 2.85rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: #d9e0e2;
  font-size: clamp(1.05rem, 1.7vw, 1.36rem);
  line-height: 1.62;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
}

.hero-news-rail {
  display: grid;
  align-content: start;
  gap: 1px;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(12, 17, 22, 0.84);
}

.hero-news-rail .eyebrow {
  margin: 0 0 10px;
}

.hero-news-item {
  display: grid;
  gap: 7px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.hero-news-item span {
  color: var(--acid);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-news-item strong {
  line-height: 1.25;
}

.hero-actions,
.program-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.button.primary {
  color: #071009;
  background: var(--acid);
  border-color: var(--acid);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.09);
}

.hero-meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.hero-meta span {
  min-width: 0;
  padding: 16px;
  background: rgba(18, 25, 31, 0.72);
  color: #dbe4e6;
  font-weight: 700;
  text-align: center;
}

.ticker {
  display: flex;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker:empty {
  display: none;
}

[data-render="news"]:empty,
[data-render="tutorials"]:empty,
[data-render="program"]:empty {
  display: none;
}

.ticker span {
  flex: 1 1 220px;
  min-width: 220px;
  padding: 16px 18px;
  color: var(--night);
  background: var(--acid);
  font-weight: 700;
  text-align: center;
}

.section,
.program-strip {
  padding: 78px clamp(18px, 5vw, 64px);
}

.section-head {
  max-width: 860px;
  margin-bottom: 32px;
}

.section-head p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.news-section {
  background:
    radial-gradient(circle at 0% 4%, rgba(255, 61, 50, 0.14), transparent 30%),
    linear-gradient(180deg, #07090c 0%, #0d1217 100%);
}

.news-grid,
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.news-grid {
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(220px, 0.8fr));
}

.news-card,
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.news-card.featured,
.game-card.featured {
  grid-column: span 2;
  grid-row: span 1;
}

.media-mask {
  position: relative;
  overflow: hidden;
  background: #05080c;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 38px) 100%, 0 100%);
}

.media-mask::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(200, 255, 54, 0.18), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 44%);
  mix-blend-mode: screen;
  opacity: 0.28;
}

.news-card img,
.game-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #05080c;
  transform: scale(1.01);
}

.news-card.featured img,
.game-card.featured img {
  min-height: 330px;
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--dim);
  font-size: 0.82rem;
  font-weight: 700;
}

.tag {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(200, 255, 54, 0.28);
  border-radius: 999px;
  color: var(--acid);
  background: rgba(200, 255, 54, 0.08);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tag.live {
  color: #071009;
  background: var(--acid);
  border-color: var(--acid);
}

.games-section {
  background:
    radial-gradient(circle at 100% 10%, rgba(54, 215, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #0d1217 0%, #10161b 100%);
}

.play-arena {
  --game-theme: var(--acid);
  --game-theme-soft: rgba(200, 255, 54, 0.16);
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.play-arena[data-active-theme="speed"] {
  --game-theme: #ff3d32;
  --game-theme-soft: rgba(255, 61, 50, 0.18);
}

.play-arena[data-active-theme="ece"] {
  --game-theme: #36d7ff;
  --game-theme-soft: rgba(54, 215, 255, 0.18);
}

.play-arena[data-active-theme="crystal"] {
  --game-theme: #9f7bff;
  --game-theme-soft: rgba(159, 123, 255, 0.2);
}

.play-arena[data-active-theme="nebula"] {
  --game-theme: #ff65c8;
  --game-theme-soft: rgba(255, 101, 200, 0.18);
}

.play-arena[data-active-theme="kids"] {
  --game-theme: #ffc247;
  --game-theme-soft: rgba(255, 194, 71, 0.22);
}

.play-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.58fr);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--game-theme) 58%, var(--line));
  border-left: 8px solid var(--game-theme);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42), 0 0 42px var(--game-theme-soft);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.play-arena.is-changing .play-stage {
  transform: translateY(-3px);
}

.play-arena.is-changing .play-stage-media img {
  animation: stageSlideIn 360ms ease both;
}

@keyframes stageSlideIn {
  0% {
    opacity: 0.72;
    transform: translateX(18px) scale(1.035);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.play-stage-media {
  position: relative;
  min-height: 520px;
  background: #05080c;
}

.play-stage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.play-stage-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 60%, rgba(7, 9, 12, 0.54)),
    linear-gradient(0deg, rgba(7, 9, 12, 0.34), transparent 48%);
}

.play-stage-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 0 0, var(--game-theme-soft), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--panel-strong);
  transition: background 220ms ease;
}

.play-stage-copy .tag.live,
.play-stage-copy .button.primary {
  color: #071009;
  background: var(--game-theme);
  border-color: var(--game-theme);
}

.play-stage-copy h3 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.98;
}

.play-stage-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero.is-glitching .hero-media video,
.hero.is-glitching .hero-media img {
  animation: heroGlitch 520ms steps(2, end);
}

@keyframes heroGlitch {
  0% {
    transform: translate3d(0, 0, 0) scale(1.01);
    filter: saturate(1.12) contrast(1.08);
  }

  18% {
    transform: translate3d(10px, -4px, 0) scale(1.025);
    filter: saturate(1.6) contrast(1.35) hue-rotate(12deg);
  }

  36% {
    transform: translate3d(-12px, 5px, 0) scale(1.018);
    filter: saturate(1.2) contrast(1.2) hue-rotate(-10deg);
  }

  62% {
    transform: translate3d(6px, 2px, 0) scale(1.03);
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1.01);
    filter: saturate(1.12) contrast(1.08);
  }
}

.play-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.play-tile {
  --tile-theme: rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  height: 132px;
  min-height: 132px;
  padding: 8px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--tile-theme);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tile-theme) 20%, transparent), transparent 44%),
    rgba(255, 255, 255, 0.05);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.play-tile.is-active {
  border-color: color-mix(in srgb, var(--game-theme) 78%, white 0%);
  border-left-color: var(--game-theme);
  background: var(--game-theme-soft);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), inset 0 0 0 1px var(--game-theme);
}

.play-tile.theme-orbyths {
  --tile-theme: #c8ff36;
}

.play-tile.theme-speed {
  --tile-theme: #ff3d32;
}

.play-tile.theme-ece {
  --tile-theme: #36d7ff;
}

.play-tile.theme-crystal {
  --tile-theme: #9f7bff;
}

.play-tile.theme-nebula {
  --tile-theme: #ff65c8;
}

.play-tile.theme-kids {
  --tile-theme: #ffc247;
}

.play-tile .tag {
  color: #071009;
  background: var(--tile-theme);
  border-color: var(--tile-theme);
}

.play-thumb {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #05080c;
}

.play-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-info {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  gap: 6px;
}

.play-info strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.35em;
  line-height: 1.16;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.play-info small {
  align-self: end;
  color: var(--acid);
  font-weight: 700;
}

.experiment-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
  margin-top: 28px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(54, 215, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(54, 215, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    #0b1117;
  box-shadow: var(--shadow);
}

.experiment-head {
  display: grid;
  align-content: center;
  gap: 12px;
}

.experiment-head h3 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
}

.experiment-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.experiment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.experiment-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  min-height: 150px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.experiment-card:hover,
.experiment-card:focus-visible {
  border-color: rgba(54, 215, 255, 0.55);
  background: rgba(54, 215, 255, 0.08);
  outline: none;
}

.experiment-media {
  overflow: hidden;
  border-radius: 6px;
  background: #05080c;
}

.experiment-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experiment-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.experiment-copy strong {
  font-size: 1.05rem;
  line-height: 1.08;
}

.experiment-copy span:not(.tag) {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.experiment-copy small {
  align-self: end;
  color: var(--cyan);
  font-weight: 800;
}

.compact-games {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-games .game-card.featured {
  grid-column: auto;
  grid-row: auto;
}

.compact-games .game-card.featured img {
  min-height: 0;
}

.tutorial-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 194, 71, 0.12), transparent 26%),
    #10161b;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tutorial-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.tutorial-card:nth-child(2) {
  border-color: rgba(54, 215, 255, 0.3);
}

.tutorial-card:nth-child(3) {
  border-color: rgba(255, 194, 71, 0.34);
}

.tutorial-card:nth-child(4) {
  border-color: rgba(255, 61, 50, 0.32);
}

.module-number {
  color: var(--dim);
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.tutorial-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.program-strip {
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 24% 18%, rgba(54, 215, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 72% 86%, rgba(200, 255, 54, 0.1), transparent 28rem),
    linear-gradient(180deg, #10161b 0%, #07090c 100%);
  border-top: 1px solid var(--line);
}

.program-strip .eyebrow {
  color: var(--cyan);
}

.program-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.app-icon {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36), 0 0 22px rgba(54, 215, 255, 0.18);
}

.program-copy > p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.store-status {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(200, 255, 54, 0.38);
  border-radius: 8px;
  color: var(--acid);
  background: rgba(200, 255, 54, 0.08);
  font-weight: 700;
}

.program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.program-tags span {
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #dce9ec;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.88rem;
  font-weight: 800;
}

.program-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.76fr) minmax(120px, 0.44fr);
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  min-height: 560px;
}

.program-phone-main,
.program-phone-stack img {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: #05080c;
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.48);
}

.program-phone-main {
  transform: rotate(-2deg);
}

.program-phone-main img,
.program-phone-stack img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
}

.program-phone-stack {
  display: grid;
  gap: 14px;
  transform: translateY(18px);
}

.program-phone-stack img {
  aspect-ratio: 9 / 13;
}

.program-phone-stack img:nth-child(2) {
  transform: translateX(-20px);
}

.program-floating-icon {
  position: absolute;
  right: 19%;
  bottom: 6%;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: #05080c;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.5), 0 0 24px rgba(54, 215, 255, 0.2);
}

.phone-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}

.phone-wall img {
  width: 100%;
  aspect-ratio: 9 / 18;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #05080c;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.phone-wall img:nth-child(2) {
  transform: translateY(-28px);
}

.app-page {
  background:
    radial-gradient(circle at 85% 10%, rgba(54, 215, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 8% 24%, rgba(200, 255, 54, 0.12), transparent 28rem),
    var(--night);
}

.app-page .brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  padding: 6px;
  background: #05080c;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 80px);
  padding: clamp(52px, 7vw, 96px) clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.app-hero-copy {
  max-width: 760px;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}

.app-title h1 {
  margin: 0;
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.button.store.disabled {
  color: var(--acid);
  border-color: rgba(200, 255, 54, 0.42);
  background: rgba(200, 255, 54, 0.08);
}

.device-stage {
  position: relative;
  min-width: 0;
}

.phone-row,
.mini-phone-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(10px, 2vw, 18px);
}

.phone-shot,
.mini-phone-wall img {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: #05080c;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.44);
}

.phone-shot img,
.mini-phone-wall img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
}

.phone-shot.offset-up {
  transform: translateY(-34px);
}

.phone-shot.offset-down {
  transform: translateY(28px);
}

.app-section,
.app-proof,
.privacy-content {
  padding: 78px clamp(18px, 5vw, 64px);
}

.app-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.app-feature {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    var(--panel);
}

.app-feature h3 {
  margin: 12px 0;
  font-size: clamp(1.15rem, 1.5vw, 1.55rem);
}

.app-feature p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.app-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 34px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 194, 71, 0.14), transparent 32%),
    linear-gradient(180deg, #10161b 0%, #07090c 100%);
}

.app-proof p:not(.eyebrow),
.privacy-content p,
.privacy-content li {
  color: var(--muted);
  line-height: 1.75;
}

.app-proof h2,
.privacy-content h1 {
  max-width: 860px;
}

.privacy-content {
  max-width: 980px;
  margin: 0 auto;
}

.privacy-content h1 {
  margin: 12px 0 10px;
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

.privacy-content h2 {
  margin: 34px 0 10px;
  color: var(--ink);
}

.privacy-content a {
  color: var(--acid);
  font-weight: 800;
}

.privacy-meta {
  margin: 4px 0;
}

.privacy-summary {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid rgba(200, 255, 54, 0.28);
  border-radius: 8px;
  background: rgba(200, 255, 54, 0.07);
}

.privacy-summary p {
  margin: 0;
  color: #e8f0e5;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: var(--muted);
  background: #07090c;
}

.footer p {
  margin: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  color: #fff;
  font-weight: 700;
}

.announcement {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
}

.announcement.is-open {
  display: flex;
}

.language-gate {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
}

.language-panel {
  width: min(620px, 100%);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0 0, rgba(200, 255, 54, 0.12), transparent 38%),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.language-panel h2 {
  margin-bottom: 12px;
}

.language-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.language-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.language-options button {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-align: left;
}

.language-options button.is-active {
  color: #071009;
  border-color: var(--acid);
  background: var(--acid);
}

.language-options strong {
  font-size: 1.2rem;
}

.language-options span {
  font-size: 0.86rem;
  font-weight: 700;
}

.announcement-panel {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.announcement-image {
  min-height: 360px;
  background: #05080c;
  clip-path: polygon(0 0, 100% 0, calc(100% - 34px) 100%, 0 100%);
}

.announcement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.announcement-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 32px;
}

.announcement-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.announcement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.close-button {
  color: #071009;
  background: var(--acid);
  border-color: var(--acid);
  cursor: pointer;
}

.loading {
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 40px;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .app-hero,
  .app-proof {
    grid-template-columns: 1fr;
  }

  .app-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-layout,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .game-grid,
  .tutorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .play-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experiment-panel {
    grid-template-columns: 1fr;
  }

  .program-strip,
  .play-stage,
  .announcement-panel {
    grid-template-columns: 1fr;
  }

  .program-visual {
    min-height: 500px;
  }

  .play-stage-media {
    min-height: 320px;
  }

  .play-tile {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .announcement-image {
    min-height: 260px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 38px) 100%, 0 100%);
  }
}

@media (max-width: 900px) {
  .play-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
  }

  .topbar-tools {
    justify-content: flex-start;
    width: 100%;
  }

  .brand-logo {
    width: min(420px, 86vw);
  }

  .hero {
    min-height: 720px;
    padding-top: 72px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  .hero-media {
    clip-path: polygon(0 0, 100% 0, 100% 82%, 72% 100%, 0 92%);
  }

  .hero-media img,
  .hero-media video {
    object-position: center 70%;
  }

  .lead {
    font-size: 1.04rem;
  }

  .hero-meta,
  .hero-layout,
  .news-grid,
  .game-grid,
  .tutorial-grid,
  .phone-wall,
  .app-feature-grid {
    grid-template-columns: 1fr;
  }

  .app-hero,
  .app-section,
  .app-proof,
  .privacy-content {
    padding: 58px 16px;
  }

  .app-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .app-title h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .phone-row,
  .mini-phone-wall {
    gap: 8px;
  }

  .phone-shot,
  .mini-phone-wall img {
    border-radius: 16px;
  }

  .phone-shot.offset-up,
  .phone-shot.offset-down {
    transform: none;
  }

  .play-stage-media {
    min-height: 240px;
  }

  .play-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .play-tile {
    grid-template-columns: 108px minmax(0, 1fr);
    height: 118px;
    min-height: 118px;
  }

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

  .news-card.featured,
  .game-card.featured {
    grid-column: auto;
    grid-row: auto;
  }

  .news-card.featured img,
  .game-card.featured img {
    min-height: 260px;
  }

  .section,
  .program-strip {
    padding: 58px 16px;
  }

  .program-visual {
    grid-template-columns: minmax(0, 0.92fr) minmax(92px, 0.38fr);
    min-height: auto;
  }

  .program-phone-main,
  .program-phone-stack img {
    border-radius: 18px;
  }

  .program-phone-stack {
    gap: 8px;
    transform: none;
  }

  .program-phone-stack img:nth-child(2) {
    transform: none;
  }

  .program-floating-icon {
    right: 10px;
    bottom: -10px;
    width: 62px;
    height: 62px;
    border-radius: 16px;
  }

  .phone-wall img {
    aspect-ratio: 16 / 11;
  }

  .phone-wall img:nth-child(2) {
    transform: none;
  }

  .announcement-copy {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .language-options {
    grid-template-columns: 1fr;
  }

  .play-strip {
    grid-template-columns: 1fr;
  }

  .play-tile {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .experiment-card {
    grid-template-columns: 116px minmax(0, 1fr);
  }
}
