:root {
  color-scheme: dark;
  --bg: #0e0f13;
  --bg-2: #14111a;
  --surface: #1a1620;
  --surface-2: #241d2a;
  --line: rgba(247, 238, 246, 0.15);
  --line-strong: rgba(247, 238, 246, 0.34);
  --text: #fbf3fa;
  --muted: #afa3ad;
  --subtle: #776b78;
  --pink: #f45b98;
  --pink-soft: rgba(244, 91, 152, 0.16);
  --cyan: #2bdce4;
  --cyan-soft: rgba(43, 220, 228, 0.13);
  --gold: #f2b134;
  --green: #65d79a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 10%, rgba(244, 91, 152, 0.13), transparent 27rem),
    linear-gradient(rgba(247, 238, 246, 0.044) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 238, 246, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #15111c 0, #0e0f13 36rem, #101118 100%);
  background-size: auto, 76px 76px, 76px 76px, auto;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.4rem;
  padding: 0.85rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 12, 17, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.72rem;
  align-items: center;
  min-width: 0;
}

.brand span:last-child {
  display: grid;
  gap: 0.16rem;
}

.brand strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.08rem;
  line-height: 1;
  letter-spacing: 0;
}

.brand small,
.eyebrow {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.18rem;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0.3rem;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  background: #111018;
}

.mark i {
  border-radius: 2px;
}

.mark i:nth-child(1) { background: var(--pink); }
.mark i:nth-child(2) { background: var(--cyan); }
.mark i:nth-child(3) { background: var(--green); }
.mark i:nth-child(4) { background: var(--gold); }

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

nav a,
.secondary,
.primary,
.download-row b {
  min-height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 900;
}

nav a,
.secondary {
  padding: 0 0.9rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(26, 22, 32, 0.62);
}

nav a:hover,
.secondary:hover {
  color: var(--text);
  border-color: rgba(43, 220, 228, 0.36);
  background: var(--cyan-soft);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0 4rem;
}

.hero {
  min-height: calc(100svh - 7.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.98fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 1.25rem;
  min-width: 0;
  max-width: 39rem;
}

h1,
h2 {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(3.8rem, 10vw, 7.2rem);
  line-height: 0.86;
}

h2 {
  font-size: clamp(2.1rem, 6vw, 4.8rem);
  line-height: 0.9;
}

p {
  margin: 0;
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.24rem);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  padding-top: 0.45rem;
}

.primary {
  padding: 0 1.05rem;
  color: #170c12;
  background: var(--pink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 12px 34px rgba(244, 91, 152, 0.2);
}

.primary:hover,
.download-row:hover b {
  filter: brightness(1.08);
}

.stage {
  position: relative;
  min-height: 36rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 24.8%, rgba(247,238,246,0.15) 25%, transparent 25.3%, transparent 49.8%, rgba(247,238,246,0.15) 50%, transparent 50.3%, transparent 74.8%, rgba(247,238,246,0.15) 75%, transparent 75.3%),
    linear-gradient(180deg, rgba(244, 91, 152, 0.12), rgba(26, 22, 32, 0.84) 42%, rgba(14, 15, 19, 0.95));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.health {
  position: absolute;
  top: 1rem;
  left: 50%;
  z-index: 2;
  width: min(17rem, calc(100% - 2rem));
  min-height: 3.2rem;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  color: var(--pink);
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(18, 18, 26, 0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 900;
}

.health::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.42rem;
  height: 0.28rem;
  background: var(--pink);
}

.lanes {
  position: absolute;
  inset: 6.2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(247, 238, 246, 0.14);
  border-right: 1px solid rgba(247, 238, 246, 0.14);
}

.lanes span {
  border-right: 1px solid rgba(247, 238, 246, 0.18);
}

.lanes span:last-child {
  border-right: 0;
}

.notes {
  position: absolute;
  inset: 4.2rem 1rem 1rem;
  width: calc(100% - 2rem);
  height: calc(100% - 5.2rem);
}

.note,
.receptor {
  stroke: #fff;
  stroke-width: 6;
  stroke-linejoin: round;
}

.note-a { fill: rgba(43, 220, 228, 0.58); animation: fall-a 3.8s linear infinite; }
.note-b { fill: rgba(244, 91, 152, 0.58); animation: fall-b 4.5s linear infinite; }
.note-c { fill: rgba(242, 177, 52, 0.58); animation: fall-c 4.2s linear infinite; }
.note-d { fill: rgba(101, 215, 154, 0.52); animation: fall-d 5s linear infinite; }
.receptor { fill: rgba(247, 238, 246, 0.08); opacity: 0.9; }

.judgement,
.combo {
  position: absolute;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(43, 220, 228, 0.25);
}

.judgement {
  top: 46%;
  color: var(--cyan);
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.combo {
  top: calc(46% + 4.1rem);
  color: var(--text);
  font-size: 1.2rem;
}

.release-section,
.release-meta {
  margin-top: 3rem;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem 1rem;
  align-items: end;
  padding-bottom: 1.1rem;
  border-bottom: 3px solid var(--pink);
}

.section-head .eyebrow {
  grid-column: 1 / -1;
}

.section-head span {
  color: var(--muted);
  font-weight: 800;
}

.downloads {
  display: grid;
}

.download-row {
  display: grid;
  grid-template-columns: minmax(13rem, 0.55fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 6.4rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.download-row:hover {
  background: linear-gradient(90deg, rgba(244, 91, 152, 0.11), transparent 62%);
}

.platform {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.platform strong {
  font-size: 1.08rem;
}

.platform small {
  color: var(--muted);
  font-weight: 800;
}

.download-row code {
  color: var(--subtle);
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  line-height: 1.45;
}

.download-row b {
  padding: 0 0.95rem;
  color: #170c12;
  background: var(--pink);
}

.release-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(26, 22, 32, 0.72);
}

.release-meta a {
  display: grid;
  gap: 0.28rem;
  min-height: 6rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.release-meta a:last-child {
  border-right: 0;
}

.release-meta a:hover {
  background: var(--cyan-soft);
}

.release-meta strong {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.release-meta span {
  color: var(--muted);
  line-height: 1.4;
}

.platform-page {
  min-height: calc(100svh - 4.4rem);
  display: grid;
  align-items: center;
}

.platform-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.platform-panel .hero-copy {
  max-width: 46rem;
}

.package {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(26, 22, 32, 0.72);
}

.package dl {
  display: grid;
  gap: 0.72rem;
  margin: 0;
}

.package div {
  display: grid;
  gap: 0.24rem;
}

.package dt {
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.package dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

@keyframes fall-a {
  from { transform: translateY(-120px); opacity: 0; }
  16%, 82% { opacity: 1; }
  to { transform: translateY(140px); opacity: 0; }
}

@keyframes fall-b {
  from { transform: translateY(-150px); opacity: 0; }
  18%, 78% { opacity: 1; }
  to { transform: translateY(155px); opacity: 0; }
}

@keyframes fall-c {
  from { transform: translateY(-130px); opacity: 0; }
  18%, 76% { opacity: 1; }
  to { transform: translateY(160px); opacity: 0; }
}

@keyframes fall-d {
  from { transform: translateY(-180px); opacity: 0; }
  18%, 82% { opacity: 1; }
  to { transform: translateY(170px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

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

  nav {
    justify-content: flex-start;
  }

  .hero,
  .platform-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .stage {
    min-height: 30rem;
  }

  .download-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .download-row b {
    width: max-content;
  }

  .release-meta {
    grid-template-columns: 1fr;
  }

  .release-meta a,
  .release-meta a:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .release-meta a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 24px, 1180px);
    padding-top: 1.6rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.2rem);
  }

  .stage {
    min-height: 24rem;
  }

  .judgement {
    top: 43%;
  }

  .combo {
    top: calc(43% + 3.2rem);
  }
}
