:root {
  color-scheme: dark;
  --ink: #fffaf0;
  --muted: #d8d5e6;
  --panel: rgba(18, 19, 34, 0.76);
  --line: rgba(255, 250, 240, 0.2);
  --black: #080914;
  --red: #ff4f79;
  --gold: #ffd84d;
  --teal: #35e7cf;
  --blue: #59a6ff;
  --lime: #b8ff4f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(8, 9, 20, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.contact-band,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
}

.nav-links {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  overflow: hidden;
  padding: 128px clamp(20px, 5vw, 72px) 64px;
  align-items: center;
  background:
    linear-gradient(135deg, #080914 0%, #181032 42%, #082631 100%);
}

#stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 20, 0.88), rgba(8, 9, 20, 0.24) 62%, rgba(8, 9, 20, 0.08)),
    linear-gradient(0deg, rgba(8, 9, 20, 0.68), transparent 45%);
  pointer-events: none;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  width: min(740px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(4.4rem, 16vw, 11rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 10px 0 rgba(255, 79, 121, 0.32);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

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

.hero-copy {
  max-width: 640px;
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.34);
}

.button.primary {
  background: var(--gold);
  color: var(--black);
}

.button.secondary {
  background: rgba(8, 9, 20, 0.48);
  color: var(--ink);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero-panel {
  width: min(360px, calc(100vw - 40px));
  margin-top: 56px;
  padding: 18px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
}

.hero-panel span,
.hero-panel strong {
  display: block;
}

.panel-label {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  margin: 6px 0;
  font-size: 1.1rem;
}

.hero-panel span:last-child,
.section p,
.game-card p,
.principles p {
  color: var(--muted);
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.two-column,
.platform-layout,
.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.intro {
  background: #12132a;
}

.games {
  background: #0b1f28;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

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

.single-game {
  grid-template-columns: minmax(0, 860px);
}

.game-card {
  min-width: 0;
  overflow: hidden;
  background: #15172b;
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 0 rgba(0, 0, 0, 0.18);
}

button.game-card {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

button.game-card:hover,
button.game-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 216, 77, 0.72);
}

.game-art {
  min-height: 220px;
  background-color: #101225;
  background-size: 36px 36px, 100% 100%;
}

.featured-game .game-art {
  min-height: 320px;
}

.pulse-a {
  background-image:
    linear-gradient(90deg, rgba(255, 250, 240, 0.2) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 79, 121, 0.98), rgba(255, 216, 77, 0.94) 42%, rgba(53, 231, 207, 0.9));
}

.pulse-b {
  background-image:
    linear-gradient(0deg, rgba(246, 242, 232, 0.13) 1px, transparent 1px),
    linear-gradient(135deg, rgba(69, 119, 255, 0.92), rgba(240, 68, 68, 0.78) 46%, rgba(246, 242, 232, 0.72));
}

.pulse-c {
  background-image:
    linear-gradient(45deg, rgba(246, 242, 232, 0.15) 1px, transparent 1px),
    linear-gradient(135deg, rgba(32, 198, 180, 0.92), rgba(24, 32, 38, 0.85) 42%, rgba(240, 186, 69, 0.82));
}

.game-copy {
  padding: 22px;
}

.studio {
  background: #181032;
}

.rhythm-overlay {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(12px, 3vw, 28px);
  overflow: auto;
  background:
    linear-gradient(135deg, rgba(8, 9, 20, 0.94), rgba(24, 16, 50, 0.96)),
    #080914;
}

.rhythm-overlay[hidden] {
  display: none;
}

body.game-open {
  overflow: hidden;
}

.rhythm-game {
  width: min(1120px, 100%);
  min-width: 0;
  max-height: calc(100vh - clamp(24px, 6vw, 56px));
  overflow: auto;
  background: #fff7de;
  color: #19110e;
  border: 3px solid #19110e;
  border-radius: 8px;
  box-shadow: 0 18px 0 rgba(0, 0, 0, 0.28);
}

.rhythm-topline,
.rhythm-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.rhythm-topline {
  background: #35e7cf;
  border-bottom: 3px solid #19110e;
}

.rhythm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.rhythm-topline strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.rhythm-topline .panel-label {
  color: #19110e;
}

.icon-button {
  min-width: 104px;
  min-height: 46px;
  border: 3px solid #19110e;
  border-radius: 8px;
  background: #ffd84d;
  color: #19110e;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 5px 0 rgba(25, 17, 14, 0.35);
}

.icon-button[aria-pressed="true"] {
  background: #ff4f79;
  color: #fffaf0;
}

.close-game {
  background: #fffaf0;
}

.rhythm-stage {
  position: relative;
  display: grid;
  gap: 22px;
  padding: clamp(18px, 4vw, 34px);
  background:
    linear-gradient(90deg, rgba(25, 17, 14, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(25, 17, 14, 0.08) 1px, transparent 1px),
    #fff7de;
  background-size: 44px 44px;
}

.beat-track {
  display: grid;
  grid-template-columns: repeat(8, minmax(24px, 1fr));
  gap: 10px;
  min-height: 14px;
}

.beat-track span {
  border-radius: 999px;
  background: rgba(25, 17, 14, 0.18);
}

.beat-track span.is-current {
  background: #ff4f79;
  box-shadow: 0 0 0 5px rgba(255, 79, 121, 0.18);
}

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

.performer {
  --track-color: #ff4f79;
  --track-ink: #fffaf0;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 148px;
  padding: 14px 10px;
  border: 3px solid #19110e;
  border-radius: 8px;
  background: #f3e8c0;
  color: #19110e;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 7px 0 rgba(25, 17, 14, 0.28);
}

.performer:nth-child(2) {
  --track-color: #ffd84d;
  --track-ink: #19110e;
}

.performer:nth-child(3) {
  --track-color: #35e7cf;
  --track-ink: #19110e;
}

.performer:nth-child(4) {
  --track-color: #59a6ff;
  --track-ink: #fffaf0;
}

.performer.active {
  background: var(--track-color);
  color: var(--track-ink);
}

.performer.is-hit {
  transform: translateY(5px) scale(1.03);
  box-shadow: 0 2px 0 rgba(25, 17, 14, 0.28);
}

.performer-face {
  display: grid;
  place-items: center;
  width: min(96px, 100%);
  aspect-ratio: 1;
  border: 3px solid #19110e;
  border-radius: 50% 50% 44% 44%;
  background: color-mix(in srgb, var(--track-color) 24%, #fffaf0);
  color: #19110e;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  letter-spacing: 0;
}

.performer-face svg {
  width: 68%;
  height: 68%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.performer:nth-child(2) .performer-face {
  border-radius: 42% 50% 42% 50%;
}

.performer:nth-child(3) .performer-face {
  border-radius: 50%;
}

.performer:nth-child(4) .performer-face {
  border-radius: 50% 42% 50% 42%;
}

.performer-name {
  font-size: 0.86rem;
  text-transform: uppercase;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(24px, 1fr));
  gap: 10px;
}

.step {
  aspect-ratio: 1;
  min-width: 0;
  border: 3px solid #19110e;
  border-radius: 8px;
  background: rgba(25, 17, 14, 0.08);
  cursor: pointer;
  box-shadow: inset 0 -5px 0 rgba(25, 17, 14, 0.1);
}

.step.on {
  background: #ff4f79;
}

.step:nth-child(n + 9):nth-child(-n + 16).on {
  background: #ffd84d;
}

.step:nth-child(n + 17):nth-child(-n + 24).on {
  background: #35e7cf;
}

.step:nth-child(n + 25):nth-child(-n + 32).on {
  background: #59a6ff;
}

.step.is-current {
  outline: 4px solid #ff4f79;
  outline-offset: 2px;
}

.rhythm-controls {
  flex-wrap: wrap;
  background: #19110e;
  color: #fffaf0;
}

.rhythm-controls label {
  display: grid;
  grid-template-columns: auto minmax(160px, 280px) auto;
  align-items: center;
  gap: 12px;
  min-width: min(100%, 460px);
  font-weight: 900;
}

.rhythm-controls input {
  width: 100%;
  accent-color: #35e7cf;
}

.rhythm-controls .button {
  min-height: 42px;
  border-color: #fffaf0;
  box-shadow: none;
  cursor: pointer;
}

.principles {
  display: grid;
  gap: 24px;
}

.principles div {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.platform {
  background: #101225;
}

.platform-layout p {
  max-width: 620px;
}

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

.spec-list span {
  min-height: 58px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.07);
  font-weight: 800;
}

.spec-list span:nth-child(1),
.spec-list span:nth-child(4) {
  border-color: rgba(255, 216, 77, 0.62);
}

.spec-list span:nth-child(2),
.spec-list span:nth-child(5) {
  border-color: rgba(53, 231, 207, 0.62);
}

.spec-list span:nth-child(3),
.spec-list span:nth-child(6) {
  border-color: rgba(255, 79, 121, 0.62);
}

.contact {
  background: #12132a;
}

.contact-band {
  align-items: center;
}

.footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding-top: 116px;
  }

  .two-column,
  .platform-layout,
  .contact-band,
  .game-grid,
  .performers {
    grid-template-columns: 1fr;
  }

  .game-art {
    min-height: 180px;
  }

  .performer {
    grid-template-columns: 72px 1fr;
    align-items: center;
    justify-items: start;
    min-height: 104px;
    text-align: left;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(4rem, 22vw, 6rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .rhythm-topline,
  .rhythm-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .rhythm-actions {
    justify-content: stretch;
  }

  .rhythm-actions .icon-button {
    flex: 1 1 120px;
  }

  .rhythm-controls label {
    grid-template-columns: 1fr;
  }

  .step-grid,
  .beat-track {
    gap: 7px;
  }

  .step {
    border-width: 2px;
  }
}
