:root {
  color-scheme: dark;
  --bg: #070b14;
  --ink: #e8f6ff;
  --muted: #93a4b8;
  --lime: #7cff4f;
  --cyan: #2fd8ff;
  --pink: #ff5fc8;
  --warm: #ffb020;
  --line: rgba(232, 246, 255, 0.14);
  --card: rgba(12, 20, 36, 0.72);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: Bahnschrift, "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.glow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: drift 32s ease-in-out infinite alternate;
}

.blob-a { background: #1d6b32; top: -12vw; left: -8vw; }
.blob-b { background: #0c4e68; right: -10vw; top: 20vh; animation-duration: 40s; }
.blob-c { background: #5a2450; left: 30vw; bottom: -18vw; animation-duration: 36s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vw, 4vh, 0) scale(1.15); }
}

body.is-versus .glow { display: none; }

main, footer { position: relative; z-index: 1; }

.hero, .cards, .strip, .cta, footer {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero { padding: 4.5rem 0 1.5rem; }

.kicker {
  margin: 0 0 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--cyan);
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.cards {
  display: grid;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1.35rem;
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-og { border-color: rgba(255, 176, 32, 0.45); box-shadow: inset 0 0 0 1px rgba(255, 176, 32, 0.12); }
.card-v2 { border-color: rgba(47, 216, 255, 0.4); box-shadow: inset 0 0 0 1px rgba(255, 95, 200, 0.12); }

.card-head h2 { margin: 0; font-size: 1.8rem; letter-spacing: -0.03em; }
.card-og h2 { color: var(--warm); }
.card-v2 h2 { color: var(--cyan); }
.card-head p { margin: 0.2rem 0 1rem; color: var(--muted); }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
}

.stats div {
  min-width: 5.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.stats dt {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats dd {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.modules { margin: 0 0 0.85rem; color: #c5d4e4; font-size: 0.95rem; }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}

.pills li {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: #d5e6f5;
}

.card-og .pills li { border-color: rgba(255, 176, 32, 0.35); }
.card-v2 .pills li { border-color: rgba(124, 255, 79, 0.28); }

.play, button {
  font: inherit;
  cursor: pointer;
}

.play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: #071018;
  font-weight: 700;
}

.play-og { background: linear-gradient(180deg, #ffe08a, var(--warm)); }
.play-v2 { background: linear-gradient(90deg, var(--lime), var(--cyan)); }

.strip {
  padding: 0.4rem 0 1.4rem;
}

.strip h2 { margin: 0 0 0.8rem; font-size: 1.15rem; }

.strip ol {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.strip li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.strip li span {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(124, 255, 79, 0.15);
  color: var(--lime);
  font-size: 0.85rem;
}

.strip p { margin: 0.15rem 0 0; }

.cta { padding-bottom: 2.5rem; }

#play-versus {
  width: min(100%, 420px);
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  color: #061018;
  font-weight: 800;
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--lime), var(--cyan) 55%, var(--pink));
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

footer p { margin: 0; }

footer a { color: var(--cyan); }

.versus {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  background: #05080f;
}

.versus[hidden] { display: none; }

.bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  background: rgba(7, 11, 20, 0.94);
  border-bottom: 1px solid var(--line);
}

.bar-sides {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.side-meta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  font-size: 0.82rem;
}

.side-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-meta a { color: var(--lime); white-space: nowrap; }

.side-meta[data-side="og"] { order: 1; }
#swap-sides { order: 2; }
.side-meta[data-side="v2"] { order: 3; }

#back, #swap-sides, #dismiss-hint {
  border: 1px solid var(--line);
  background: #10192a;
  color: var(--ink);
  border-radius: 999px;
  min-height: 36px;
  padding: 0.25rem 0.75rem;
}

.hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: #10182a;
  color: #d5e7f6;
  font-size: 0.85rem;
}

.hint[hidden] { display: none; }
.hint p { margin: 0; }

.split {
  flex: 1;
  display: flex;
  min-height: 0;
}

.pane {
  flex: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
}

.pane[data-side="og"] { order: 1; }
.pane[data-side="v2"] { order: 2; }

.pane.is-hot { box-shadow: inset 0 0 0 2px rgba(124, 255, 79, 0.75); }

.frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #070b14;
}

body.is-swapped .side-meta[data-side="og"],
body.is-swapped .pane[data-side="og"] { order: 3; }

body.is-swapped .side-meta[data-side="v2"],
body.is-swapped .pane[data-side="v2"] { order: 1; }

@media (min-width: 880px) {
  .cards { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .strip ol { grid-template-columns: 1fr 1fr; }
}

@media (orientation: portrait) {
  .split { flex-direction: column; }
  .bar { flex-wrap: wrap; }
  .bar-sides { flex-basis: 100%; flex-wrap: wrap; }
  .side-meta { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .glow { display: none; }
  .blob { animation: none; }
}
