:root {
  color-scheme: dark;
  --bg: #050506;
  --text: #f7f8fb;
  --muted: #a9adb8;
  --line: rgba(255, 255, 255, 0.15);
  --line-strong: rgba(255, 255, 255, 0.26);
  --cyan: #7cf6ff;
  --rose: #ff5f8f;
  --gold: #f6c453;
  --violet: #b68cff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 260px),
    linear-gradient(145deg, rgba(124, 246, 255, 0.065), transparent 38%),
    linear-gradient(35deg, rgba(255, 95, 143, 0.06), transparent 48%),
    var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 6, 0.84);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 max(16px, calc((100vw - 1160px) / 2));
}

.brand,
.nav nav,
.actions,
.transport-actions,
.presets,
.choices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand small,
.nav a,
.eyebrow,
.meta-grid span,
.master span,
.experience-path span,
.mail-interface span,
.transport span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 10px;
}

.nav nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero,
.shell,
.letter,
.signup-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 98px);
  padding: clamp(32px, 6vw, 78px) 0 42px;
  display: grid;
  grid-template-columns: minmax(330px, 1.08fr) minmax(280px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.cover-wrap {
  position: relative;
}

.cover-wrap::before {
  content: "";
  position: absolute;
  inset: 8% -4% -4% 10%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.cover-wrap::after {
  content: "";
  position: absolute;
  inset: -7%;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 8%, rgba(255, 255, 255, 0.1) 50%, transparent 84%),
    linear-gradient(180deg, transparent, rgba(124, 246, 255, 0.12), transparent);
  mix-blend-mode: screen;
  opacity: 0.62;
}

.cover-wrap img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 850;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.94;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 7.6rem);
}

h2 {
  font-size: clamp(2.2rem, 4.6vw, 4.8rem);
}

.lead,
.section-head p,
.signup-shell p {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  max-width: 680px;
  margin: 20px 0 0;
  font-size: clamp(1.02rem, 1.8vw, 1.24rem);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.meta-grid div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.meta-grid strong {
  display: block;
  margin-top: 5px;
}

.primary,
.secondary,
.preset,
.stem-row button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 850;
}

.primary {
  border-color: var(--text);
  background: var(--text);
  color: #050506;
}

.play-preview-cta {
  min-height: 52px;
  padding: 0 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 18px 50px rgba(124, 246, 255, 0.16);
}

.primary:disabled,
.secondary:disabled,
.preset:disabled,
.stem-row button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.secondary,
.preset,
.stem-row button {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.preset.active,
.stem-row button.active {
  background: rgba(124, 246, 255, 0.16);
  border-color: rgba(124, 246, 255, 0.58);
}

.master {
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(280deg, rgba(124, 246, 255, 0.1), transparent 44%),
    rgba(255, 255, 255, 0.065);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  padding: clamp(18px, 2.4vw, 26px);
  display: grid;
  gap: 16px;
}

.master strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  line-height: 1.1;
}

.master audio {
  width: 100%;
  height: 58px;
  accent-color: var(--cyan);
}

.experience-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.experience-path a {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.experience-path a:hover {
  border-color: rgba(124, 246, 255, 0.5);
  background: rgba(124, 246, 255, 0.08);
}

.experience-path strong {
  font-size: 0.88rem;
  line-height: 1.18;
}

.band {
  border-top: 1px solid var(--line);
  padding: clamp(46px, 7vw, 86px) 0;
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 26px;
}

.mixer {
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 34%),
    rgba(8, 9, 12, 0.9);
  box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 26px);
}

.transport,
.game-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.transport strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.progress {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 18px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
}

.presets {
  margin-bottom: 18px;
}

.stems {
  display: grid;
  gap: 10px;
}

.stem-row {
  display: grid;
  grid-template-columns: minmax(126px, 0.75fr) minmax(160px, 1.6fr) 54px auto auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 0 2px;
}

.stem-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.stem-name i {
  width: 10px;
  height: 26px;
  border-radius: 999px;
}

.stem-row span {
  color: var(--muted);
  text-align: right;
}

.stem-row button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.status {
  min-height: 20px;
  color: var(--muted);
}

.visual-band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 46%),
    #040405;
}

.visual-details {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

.visual-details summary {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.visual-details summary::-webkit-details-marker {
  display: none;
}

.visual-details summary strong {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 0.82rem;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
  padding: 0 14px 14px;
}

.visual-panel {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #050506;
}

.visual-panel img,
.visual-panel video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
  background: #020203;
}

.visual-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.74)),
    linear-gradient(90deg, rgba(124, 246, 255, 0.08), transparent 32%, rgba(255, 95, 143, 0.12));
  pointer-events: none;
}

.visual-panel > div {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 1;
}

.visual-panel h3 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.25rem, 2.3vw, 2.1rem);
  line-height: 1.02;
}

.cover-motion-panel {
  aspect-ratio: 1;
}

.anime-motion-panel {
  aspect-ratio: 16 / 9;
}

.game-band {
  background:
    linear-gradient(180deg, rgba(124, 246, 255, 0.045), transparent 38%),
    #060607;
}

.game-stage {
  position: relative;
  min-height: clamp(600px, 78vw, 820px);
  border: 1px solid var(--line-strong);
  background: #020205;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.game-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text);
  background: #020205;
  cursor: pointer;
}

.game-loader img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  filter: saturate(0.9) contrast(1.08);
}

.game-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 2, 5, 0.18), rgba(2, 2, 5, 0.82)),
    linear-gradient(90deg, rgba(124, 246, 255, 0.15), transparent, rgba(255, 95, 143, 0.14));
}

.game-loader span,
.game-loader small {
  position: relative;
  z-index: 1;
}

.game-loader span {
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  background: rgba(255, 255, 255, 0.92);
  color: #050506;
  font-size: clamp(1rem, 2.8vw, 1.28rem);
  font-weight: 900;
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.08),
    0 24px 62px rgba(124, 246, 255, 0.22);
}

.game-loader small {
  display: block;
  margin-top: 76px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game-stage.is-loaded .game-loader {
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.game-frame {
  width: 100%;
  height: clamp(600px, 78vw, 820px);
  display: block;
  border: 0;
  background: #020205;
}

.letter-band {
  background: #ededee;
  color: #111114;
  padding: clamp(46px, 7vw, 86px) 0;
}

.letter .eyebrow {
  color: #31545a;
}

.letter-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 74px);
  margin-top: 34px;
}

.letter p {
  margin: 0 0 18px;
  color: #303037;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.85;
}

.letter strong {
  color: #050506;
}

.signup-band {
  background:
    linear-gradient(100deg, rgba(246, 196, 83, 0.1), transparent 38%),
    linear-gradient(280deg, rgba(124, 246, 255, 0.08), transparent 42%),
    #050506;
}

.signup-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
}

.mail-interface {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.045);
  padding: 16px;
  display: grid;
  gap: 8px;
}

.mail-interface a {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 850;
}

.mail-interface small {
  color: var(--muted);
  line-height: 1.55;
}

.signup {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 24px);
  display: grid;
  gap: 12px;
}

.signup label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signup input:not([type="checkbox"]) {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.34);
  color: var(--text);
  padding: 0 12px;
}

.choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.choices input {
  accent-color: var(--cyan);
}

@media (max-width: 920px) {
  .hero,
  .signup-shell,
  .letter-columns {
    grid-template-columns: 1fr;
  }

  .cover-wrap {
    max-width: 520px;
    margin: 0 auto;
  }

  .stem-row {
    grid-template-columns: 1fr 1fr;
  }

  .stem-name,
  .stem-row input,
  .stem-row span {
    grid-column: span 2;
  }

  .stem-row span {
    text-align: left;
  }

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

  .visual-panel {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .nav {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 12px;
  }

  .nav a {
    font-size: 0.66rem;
  }

  .hero {
    width: min(100% - 24px, 1160px);
    min-height: 0;
    padding-top: 24px;
  }

  h1 {
    font-size: clamp(2.9rem, 17vw, 4.7rem);
  }

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

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

  .transport,
  .game-head {
    align-items: stretch;
    flex-direction: column;
  }

  .transport-actions,
  .transport-actions button,
  .game-head a,
  .signup button {
    width: 100%;
  }

  .game-stage,
  .game-frame {
    min-height: min(82svh, 720px);
    height: min(82svh, 720px);
  }

  .visual-details summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .visual-details summary strong {
    width: 100%;
  }

  .visual-grid {
    padding: 0 10px 10px;
  }

  .visual-panel video {
    max-height: 78svh;
  }
}
