:root {
  --bg: #07111f;
  --bg2: #0c1728;
  --panel: rgba(15, 24, 40, 0.88);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #eef4ff;
  --muted: #9fb0c8;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);

  --red: #ff4d5e;
  --orange: #ff9a3d;
  --yellow: #ffd84d;
  --green: #4ee38a;
  --blue: #43b5ff;
  --indigo: #6e78ff;
  --violet: #c27cff;

  --radius-xl: 24px;
  --radius-lg: 18px;

  --root: #ff5f6d;
  --sacral: #ff9b5e;
  --solar: #ffd75e;
  --heart: #57e389;
  --throat: #57c7ff;
  --brow: #7f7cff;
  --crown: #d98cff;

  --root-hi: rgba(255, 95, 109, 0.34);
  --sacral-hi: rgba(255, 155, 94, 0.30);
  --solar-hi: rgba(255, 215, 94, 0.28);
  --heart-hi: rgba(87, 227, 137, 0.28);
  --throat-hi: rgba(87, 199, 255, 0.28);
  --brow-hi: rgba(127, 124, 255, 0.28);
  --crown-hi: rgba(217, 140, 255, 0.30);

  --root-hi-2: rgba(255, 95, 109, 0.18);
  --sacral-hi-2: rgba(255, 155, 94, 0.17);
  --solar-hi-2: rgba(255, 215, 94, 0.16);
  --heart-hi-2: rgba(87, 227, 137, 0.16);
  --throat-hi-2: rgba(87, 199, 255, 0.16);
  --brow-hi-2: rgba(127, 124, 255, 0.17);
  --crown-hi-2: rgba(217, 140, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top, rgba(72, 124, 255, 0.12), transparent 35%),
    linear-gradient(180deg, #07111f 0%, #091523 45%, #050c15 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
}

button,
input,
audio {
  font: inherit;
}

.page-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px;
}
/* FIX HERO HEIGHT IN STUDIO */
.page-shell .hero {
  padding: 50px 0 12px;
}
/* HEADER */
.hero {
  margin-bottom: 20px;
}

.hero-top {
  padding: 28px 32px; /* slightly larger = more important */
  border-radius: 28px;

  border: 1px solid rgba(255,255,255,0.08);

  background: linear-gradient(
    180deg,
    rgba(19, 31, 53, 0.95),
    rgba(11, 19, 34, 0.92)
  );

  box-shadow: 0 25px 70px rgba(0,0,0,0.35);
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mode-tabs {
  justify-content: center;
}

.mode-btn {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
  font-weight: 600;
}

.mode-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
}

.mode-btn.active {
  background: linear-gradient(180deg, rgba(90, 135, 255, 0.28), rgba(103, 77, 255, 0.2));
  border-color: rgba(122, 149, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(150, 170, 255, 0.08) inset;
}

/* LAYOUT */
.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.card {
  background: linear-gradient(180deg, rgba(14, 24, 40, 0.94), rgba(9, 16, 29, 0.92));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-head {
  padding: 18px 22px 0;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-body {
  padding: 20px 22px 22px;
}

.lane-area {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lane-grid {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  width: 100%;
}

/* BODY */
.body-stage.horizontal-body-stage {
  position: relative;
  width: 100%;
  min-height: 340px;
  overflow: visible;
}

.body-stage.horizontal-body-stage .body-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(96%, 1100px);
  height: 260px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(130, 190, 255, 0.10), transparent 58%),
    radial-gradient(ellipse at center, rgba(170, 120, 255, 0.06), transparent 76%);
  filter: blur(26px);
  pointer-events: none;
}

.body-figure.horizontal-body {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240px;
  height: 540px;
  margin: 0;
  overflow: visible;
  transform: translate(-50%, -50%) rotate(90deg) scale(1.22);
  transform-origin: center center;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.42));
}

.human-body,
.body-core,
.body-arms,
.body-legs,
.body-fascia {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* head */
.human-body::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 62px;
  height: 62px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(235, 241, 255, 0.18), rgba(180, 193, 220, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.08),
    inset 0 -10px 18px rgba(0, 0, 0, 0.18);
}

/* torso */
.human-body::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 76px;
  width: 172px;
  height: 208px;
  transform: translateX(-50%);
  border-radius: 42% 42% 34% 34% / 24% 24% 42% 42%;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(255, 255, 255, 0.09), transparent 46%),
    radial-gradient(ellipse at 50% 64%, rgba(140, 165, 210, 0.09), transparent 62%),
    linear-gradient(180deg, rgba(224, 232, 247, 0.10), rgba(126, 142, 172, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 12px 26px rgba(255, 255, 255, 0.03),
    inset 0 -18px 30px rgba(0, 0, 0, 0.18),
    0 0 26px rgba(120, 140, 170, 0.08);
}

/* arms */
.body-arms::before,
.body-arms::after {
  content: "";
  position: absolute;
  top: 104px;
  width: 116px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(205,220,248,0.02), rgba(216,229,250,0.12), rgba(205,220,248,0.02));
  box-shadow: 0 0 16px rgba(180,200,235,0.06);
}

.body-arms::before {
  left: calc(50% - 136px);
  transform: rotate(-24deg);
}

.body-arms::after {
  right: calc(50% - 136px);
  transform: rotate(24deg);
}

/* forearms */
.body-core::before,
.body-core::after {
  content: "";
  position: absolute;
  top: 148px;
  width: 92px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(205,220,248,0.02), rgba(216,229,250,0.10), rgba(205,220,248,0.02));
}

.body-core::before {
  left: calc(50% - 166px);
  transform: rotate(18deg);
}

.body-core::after {
  right: calc(50% - 166px);
  transform: rotate(-18deg);
}

/* legs */
.body-legs::before,
.body-legs::after {
  content: "";
  position: absolute;
  top: 278px;
  width: 24px;
  height: 150px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(220,232,250,0.10), rgba(150,170,205,0.05));
  box-shadow: 0 0 14px rgba(180,200,235,0.05);
}

.body-legs::before {
  left: calc(50% - 28px);
  transform: rotate(5deg);
}

.body-legs::after {
  right: calc(50% - 28px);
  transform: rotate(-5deg);
}

/* fascia */
.body-fascia::before,
.body-fascia::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  pointer-events: none;
}

.body-fascia::before {
  top: 54px;
  width: 8px;
  height: 380px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(140,170,220,0.18),
    rgba(255,255,255,0.05)
  );
  opacity: 0.6;
  filter: blur(0.5px);
}

.body-fascia::after {
  top: 188px;
  width: 96px;
  height: 10px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03),
    rgba(170,200,255,0.14),
    rgba(255,255,255,0.03)
  );
  opacity: 0.45;
}


/* ZONES */
.zone {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(1);
  border-radius: 999px;
  opacity: 0.18;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease;
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform, opacity, filter;
  box-shadow: 0 0 0 rgba(255,255,255,0);
  filter: saturate(0.95);
}

.zone::before,
.zone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.zone::before {
  inset: -10px;
  opacity: 0.7;
  filter: blur(18px);
}

.zone::after {
  inset: -22px;
  opacity: 0.35;
  filter: blur(34px);
}

.zone.active {
  opacity: 0.94;
  transform: translateX(-50%) scale(1.03);
  filter: saturate(1.16) brightness(1.08);
  animation: bodyPulse 700ms ease-out;
}

.zone.octave-high-active {
  opacity: 0.66;
  transform: translateX(-50%) scale(1.05);
  filter: brightness(1.14) saturate(1.02);
}

/* vertical coordinates rotated into horizontal display */
.zone.crown {
  top: 8px;
  width: 84px;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(217, 140, 255, 0.32), rgba(217, 140, 255, 0.05) 74%, transparent 100%);
}

.zone.brow {
  top: 58px;
  width: 72px;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(127, 124, 255, 0.30), rgba(127, 124, 255, 0.05) 74%, transparent 100%);
}

.zone.throat {
  top: 104px;
  width: 104px;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(87, 199, 255, 0.28), rgba(87, 199, 255, 0.05) 72%, transparent 100%);
}

.zone.heart {
  top: 158px;
  width: 150px;
  height: 38px;
  background: radial-gradient(ellipse at center, rgba(87, 227, 137, 0.28), rgba(87, 227, 137, 0.06) 70%, transparent 100%);
}

.zone.solar {
  top: 222px;
  width: 142px;
  height: 32px;
  background: radial-gradient(ellipse at center, rgba(255, 215, 94, 0.28), rgba(255, 215, 94, 0.06) 72%, transparent 100%);
}

.zone.sacral {
  top: 292px;
  width: 132px;
  height: 34px;
  background: radial-gradient(ellipse at center, rgba(255, 155, 94, 0.30), rgba(255, 155, 94, 0.06) 72%, transparent 100%);
}

.zone.root {
  top: 372px;
  width: 116px;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(255, 95, 109, 0.34), rgba(255, 95, 109, 0.06) 70%, transparent 100%);
}

.zone.root::before, .zone.root::after { background: var(--root-hi); }
.zone.sacral::before, .zone.sacral::after { background: var(--sacral-hi); }
.zone.solar::before, .zone.solar::after { background: var(--solar-hi); }
.zone.heart::before, .zone.heart::after { background: var(--heart-hi); }
.zone.throat::before, .zone.throat::after { background: var(--throat-hi); }
.zone.brow::before, .zone.brow::after { background: var(--brow-hi); }
.zone.crown::before, .zone.crown::after { background: var(--crown-hi); }

.zone.root.octave-high-active {
  background: radial-gradient(ellipse at center, var(--root-hi-2), rgba(255,95,109,0.03) 72%, transparent 100%);
}
.zone.sacral.octave-high-active {
  background: radial-gradient(ellipse at center, var(--sacral-hi-2), rgba(255,155,94,0.03) 72%, transparent 100%);
}
.zone.solar.octave-high-active {
  background: radial-gradient(ellipse at center, var(--solar-hi-2), rgba(255,215,94,0.03) 72%, transparent 100%);
}
.zone.heart.octave-high-active {
  background: radial-gradient(ellipse at center, var(--heart-hi-2), rgba(87,227,137,0.03) 72%, transparent 100%);
}
.zone.throat.octave-high-active {
  background: radial-gradient(ellipse at center, var(--throat-hi-2), rgba(87,199,255,0.03) 72%, transparent 100%);
}
.zone.brow.octave-high-active {
  background: radial-gradient(ellipse at center, var(--brow-hi-2), rgba(127,124,255,0.03) 72%, transparent 100%);
}
.zone.crown.octave-high-active {
  background: radial-gradient(ellipse at center, var(--crown-hi-2), rgba(217,140,255,0.03) 72%, transparent 100%);
}

@keyframes bodyPulse {
  0% {
    transform: translateX(-50%) scale(0.985);
    filter: saturate(1) brightness(1);
  }
  30% {
    transform: translateX(-50%) scale(1.05);
    filter: saturate(1.18) brightness(1.12);
  }
  100% {
    transform: translateX(-50%) scale(1.01);
    filter: saturate(1.08) brightness(1.04);
  }
}

/* LANES */
.note-lane,
.lane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.note-lane-label,
.lane-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-align: center;
}

.note-lane-track,
.lane-track {
  position: relative;
  width: 100%;
  max-width: 42px;
  height: 132px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.note-lane-fill,
.lane-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.2));
  transition: height 0.12s linear, opacity 0.12s linear, transform 0.12s linear;
  opacity: 0.88;
}

/* PIANO */
.piano {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  padding-top: 2px;
}

.piano-key {
  min-height: 58px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 8px 16px rgba(0,0,0,0.18);
}

.piano-key:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
}

.piano-key:active,
.piano-key.active {
  transform: translateY(1px) scale(0.985);

  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,

    /* core glow */
    0 0 28px rgba(140, 170, 255, 0.42),

    /* outer aura */
    0 0 60px rgba(194, 124, 255, 0.22),

    /* depth */
    0 12px 28px rgba(0,0,0,0.28);
}

.piano-key.octave-high {
  background: linear-gradient(180deg, rgba(166, 187, 255, 0.18), rgba(255,255,255,0.06));
  color: #f3f6ff;
  border-color: rgba(166, 187, 255, 0.18);
}

/* CONTROLS */
.panel-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.control-group.hidden {
  display: none;
}

.control-group input[type="file"] {
  width: 100%;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  padding: 10px 12px;
  border-radius: 12px;
}

.control-group button {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.15s ease;
}

.control-group button:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.control-group audio {
  width: 100%;
  margin-top: 2px;
  opacity: 0.92;
}

/* NOTE COLORS */
[data-note="C4"] .note-lane-fill,
[data-note="C4"] .lane-fill,
[data-note="C5"] .note-lane-fill,
[data-note="C5"] .lane-fill { background: linear-gradient(180deg, rgba(255,77,94,0.85), rgba(255,77,94,0.35)); }

[data-note="D4"] .note-lane-fill,
[data-note="D4"] .lane-fill,
[data-note="D5"] .note-lane-fill,
[data-note="D5"] .lane-fill { background: linear-gradient(180deg, rgba(255,154,61,0.85), rgba(255,154,61,0.35)); }

[data-note="E4"] .note-lane-fill,
[data-note="E4"] .lane-fill,
[data-note="E5"] .note-lane-fill,
[data-note="E5"] .lane-fill { background: linear-gradient(180deg, rgba(255,216,77,0.85), rgba(255,216,77,0.35)); }

[data-note="F4"] .note-lane-fill,
[data-note="F4"] .lane-fill,
[data-note="F5"] .note-lane-fill,
[data-note="F5"] .lane-fill { background: linear-gradient(180deg, rgba(78,227,138,0.85), rgba(78,227,138,0.35)); }

[data-note="G4"] .note-lane-fill,
[data-note="G4"] .lane-fill,
[data-note="G5"] .note-lane-fill,
[data-note="G5"] .lane-fill { background: linear-gradient(180deg, rgba(67,181,255,0.88), rgba(67,181,255,0.35)); }

[data-note="A4"] .note-lane-fill,
[data-note="A4"] .lane-fill,
[data-note="A5"] .note-lane-fill,
[data-note="A5"] .lane-fill { background: linear-gradient(180deg, rgba(110,120,255,0.9), rgba(110,120,255,0.35)); }

[data-note="B4"] .note-lane-fill,
[data-note="B4"] .lane-fill,
[data-note="B5"] .note-lane-fill,
[data-note="B5"] .lane-fill { background: linear-gradient(180deg, rgba(194,124,255,0.9), rgba(194,124,255,0.35)); }

[data-note="C5"] .note-lane-fill,
[data-note="C5"] .lane-fill,
[data-note="D5"] .note-lane-fill,
[data-note="D5"] .lane-fill,
[data-note="E5"] .note-lane-fill,
[data-note="E5"] .lane-fill,
[data-note="F5"] .note-lane-fill,
[data-note="F5"] .lane-fill,
[data-note="G5"] .note-lane-fill,
[data-note="G5"] .lane-fill,
[data-note="A5"] .note-lane-fill,
[data-note="A5"] .lane-fill,
[data-note="B5"] .note-lane-fill,
[data-note="B5"] .lane-fill {
  filter: brightness(1.16) saturate(1.05);
  opacity: 0.96;
}

/* HARD LAYOUT FIX */
#laneGrid.lane-grid {
  display: grid !important;
  grid-template-columns: repeat(14, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: end !important;
  width: 100% !important;
  min-height: 170px !important;
}

#laneGrid .note-lane,
#laneGrid .lane {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
  width: 100% !important;
}

#laneGrid .note-lane-track,
#laneGrid .lane-track {
  width: 100% !important;
  max-width: 42px !important;
  height: 132px !important;
}

#piano.piano {
  display: grid !important;
  grid-template-columns: repeat(14, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  align-items: stretch !important;
}

#piano .piano-key {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
}

.card-body.lane-area > * {
  width: 100% !important;
}

.note-lane {
  width: 100%;
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .body-stage.horizontal-body-stage {
    min-height: 300px;
  }

  .body-figure.horizontal-body {
    transform: translate(-50%, -50%) rotate(90deg) scale(1.02);
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 18px, 1000px);
    padding-top: 14px;
  }

  .hero-top {
    padding: 18px;
  }

  .card-body {
    padding: 16px;
  }

  .lane-grid,
  #laneGrid.lane-grid,
  .piano,
  #piano.piano {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }

  .body-stage.horizontal-body-stage {
    min-height: 240px;
  }

  .body-figure.horizontal-body {
    transform: translate(-50%, -50%) rotate(90deg) scale(0.74);
  }
}

@media (max-width: 520px) {
  .brand h1 {
    font-size: 1.45rem;
  }

  .mode-tabs {
    width: 100%;
  }

  .mode-btn {
    flex: 1 1 100%;
  }

  .body-stage.horizontal-body-stage {
    min-height: 190px;
  }

  .body-figure.horizontal-body {
    transform: translate(-50%, -50%) rotate(90deg) scale(0.56);
  }

  .note-lane-track,
  .lane-track {
    height: 104px;
  }

  .piano-key {
    min-height: 50px;
    font-size: 0.8rem;
  }
}
.zone {
  box-shadow: 0 0 24px rgba(255,255,255,0.02);
}

.zone.active {
  box-shadow:
    0 0 26px rgba(255,255,255,0.08),
    0 0 52px rgba(255,255,255,0.04);
}

.note-lane-fill {
  transition:
    height 0.16s ease-out,
    opacity 0.16s ease-out,
    transform 0.16s ease-out;
}
/* =========================================
   BOOST BASE OCTAVE (C4–B4)
========================================= */

[data-note="C4"] .note-lane-fill,
[data-note="D4"] .note-lane-fill,
[data-note="E4"] .note-lane-fill,
[data-note="F4"] .note-lane-fill,
[data-note="G4"] .note-lane-fill,
[data-note="A4"] .note-lane-fill,
[data-note="B4"] .note-lane-fill {
  filter: brightness(1.2) saturate(1.15);
  opacity: 1;
}

/* slightly stronger body glow for base octave */
.zone.active:not(.octave-high-active) {
  filter: saturate(1.2) brightness(1.1);
}
/* =========================================
   BODY MAP — MORE ENERGETIC
========================================= */

/* stronger resting glow */
.zone {
  opacity: 0.2;
  filter: saturate(1.02) brightness(1.02);
}

/* more alive when active */
.zone.active {
  opacity: 0.98 !important;
  filter: saturate(1.28) brightness(1.16) !important;
  box-shadow:
    0 0 34px rgba(255,255,255,0.10),
    0 0 68px rgba(255,255,255,0.06) !important;
}

/* upper octave still lighter, but more visible */
.zone.octave-high-active {
  opacity: 0.78 !important;
  filter: saturate(1.14) brightness(1.2) !important;
}

/* make the glow layers bloom a bit more */
.zone::before {
  opacity: 0.82;
  filter: blur(22px);
}

.zone::after {
  opacity: 0.44;
  filter: blur(40px);
}

/* subtle whole-body living energy */
.body-figure.horizontal-body {
  animation: bodyHum 3.2s ease-in-out infinite;
}

@keyframes bodyHum {
  0%, 100% {
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.42));
  }
  50% {
    filter: drop-shadow(0 18px 38px rgba(70, 110, 255, 0.18));
  }
}
/* =========================================
   FINAL POLISH — BASE OCTAVE BOOST (SUBTLE)
========================================= */

[data-note="C4"] .note-lane-fill,
[data-note="D4"] .note-lane-fill,
[data-note="E4"] .note-lane-fill,
[data-note="F4"] .note-lane-fill,
[data-note="G4"] .note-lane-fill,
[data-note="A4"] .note-lane-fill,
[data-note="B4"] .note-lane-fill {
  filter: brightness(1.1) saturate(1.08);
}
/* =========================================
   FINAL PUBLISH POLISH
========================================= */

.mode-btn,
.mobile-nav-btn {
  position: relative;
  overflow: hidden;
}

.mode-btn.active,
.mobile-nav-btn.active {
  background:
    linear-gradient(135deg, rgba(255, 77, 94, 0.28), rgba(110, 120, 255, 0.30) 55%, rgba(194, 124, 255, 0.28));
  border-color: rgba(170, 180, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 10px 24px rgba(78, 96, 255, 0.18);
  color: #ffffff;
}

.mode-btn.active::before,
.mobile-nav-btn.active::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: translateX(-100%);
  animation: activeSheen 2.8s linear infinite;
}

@keyframes activeSheen {
  to {
    transform: translateX(100%);
  }
}

.control-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

/* footer */
.studio-footer {
  margin-top: 22px;
  padding-bottom: 90px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(15, 24, 40, 0.9), rgba(8, 14, 25, 0.9));
  color: var(--muted);
  box-shadow: var(--shadow);
}

/* mobile nav */
.mobile-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(8, 14, 25, 0.88);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 36px rgba(0,0,0,0.3);
  backdrop-filter: blur(16px);
  z-index: 1000;
}

.mobile-nav-btn {
  min-height: 48px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

/* stronger active body/map coupling */
.piano-key.active {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 0 22px rgba(140, 170, 255, 0.24),
    0 0 34px rgba(194, 124, 255, 0.08);
}

.zone.active {
  transform: translateX(-50%) scale(1.035);
}

.zone.active:not(.octave-high-active) {
  filter: saturate(1.24) brightness(1.14);
}

/* a little more presence for base octave lanes */
[data-note="C4"] .note-lane-fill,
[data-note="D4"] .note-lane-fill,
[data-note="E4"] .note-lane-fill,
[data-note="F4"] .note-lane-fill,
[data-note="G4"] .note-lane-fill,
[data-note="A4"] .note-lane-fill,
[data-note="B4"] .note-lane-fill {
  filter: brightness(1.12) saturate(1.08);
}

@media (max-width: 820px) {
  .desktop-mode-tabs {
    display: none;
  }

  .mobile-nav {
    display: grid;
  }

  .studio-footer {
    padding-bottom: 110px;
  }
}
.main-header {
  width: 100%;
  padding: 16px 24px;
  background: rgba(10,10,20,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text);
  opacity: 0.7;
}

.nav a.active {
  opacity: 1;
}

.main-footer {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  opacity: 0.6;
}
.zone.dominant {
  opacity: 1 !important;
  transform: translateX(-50%) scale(1.07) !important;
  filter: saturate(1.38) brightness(1.22) !important;
  box-shadow:
    0 0 38px rgba(255,255,255,0.14),
    0 0 76px rgba(255,255,255,0.08) !important;
}

.note-lane-fill {
  transition:
    height 0.12s ease-out,
    opacity 0.12s ease-out,
    transform 0.12s ease-out,
    filter 0.12s ease-out;
}
/* =========================================
   SAFE POLISH — STRONGER ACTIVE NOTE GLOW
========================================= */

.piano-key.active {
  transform: translateY(1px) scale(0.985);
  border-color: rgba(255,255,255,0.28) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 0 24px rgba(140, 170, 255, 0.30),
    0 0 42px rgba(194, 124, 255, 0.14),
    0 10px 24px rgba(0,0,0,0.24) !important;
}

/* slightly stronger body response without changing behavior */
.zone.active {
  box-shadow:
    0 0 42px rgba(255,255,255,0.18),
    0 0 90px rgba(255,255,255,0.08);

  filter: saturate(1.4) brightness(1.25);
}

/* make active lane fills feel a bit more "dominant" */
.note-lane-fill {
  transition:
    height 0.12s ease-out,
    opacity 0.12s ease-out,
    transform 0.12s ease-out,
    filter 0.12s ease-out,
    box-shadow 0.12s ease-out;
}

.note-lane-fill[style] {
  box-shadow:
    0 0 18px rgba(255,255,255,0.18),
    0 0 36px rgba(255,255,255,0.10);
}
/* =========================================
   MUSIC SYNC — HIDE NOTE BARS
========================================= */

body[data-mode="music"] #laneGrid,
body[data-mode="music"] #laneGrid.lane-grid {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}
.page-shell {
  padding-top: 100px;
  padding-bottom: 120px;
}
/* HEADER LOGO SIZE FIX */
.logo {
  height: 48px !important;
  width: auto !important;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-shell {
  position: relative;
  z-index: 1;
}
/* =========================================
   ACTIVE MODE BUTTON (NEUROSYMPHONY GRADIENT)
========================================= */

.mode-btn.active {
  background: linear-gradient(
    90deg,
    #ff6ec7,
    #ff9a44,
    #ffe66d,
    #4cd964,
    #34cfff,
    #8b5cf6
  );

  color: white;
  border: none;

  box-shadow: 
    0 0 20px rgba(255, 110, 199, 0.4),
    0 0 40px rgba(52, 207, 255, 0.2);

  transform: scale(1.05);
}
.hero {
  position: relative;
  padding: 34px 28px 26px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 120, 80, 0.14), transparent 24%),
    radial-gradient(circle at 55% 16%, rgba(120, 100, 255, 0.16), transparent 24%),
    radial-gradient(circle at 68% 44%, rgba(80, 255, 180, 0.10), transparent 20%),
    radial-gradient(circle at 86% 34%, rgba(90, 120, 255, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(8, 17, 40, 0.96), rgba(6, 12, 30, 0.94));
  box-shadow: 0 20px 60px rgba(0,0,0,0.34);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.studio-slogan-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -2px;
  margin-bottom: 2px;
}

.studio-slogan {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.88);
}

.slogan-line {
  width: 138px;
  height: 3px;
  border-radius: 999px;
  margin-top: 8px;
  margin-bottom: 2px;
  background: linear-gradient(
    90deg,
    #ff8a5b 0%,
    #ffd84d 18%,
    #73f08a 38%,
    #47d7ff 58%,
    #7c83ff 78%,
    #c86bff 100%
  );
  box-shadow: 0 0 18px rgba(120, 140, 255, 0.18);
}

.brand {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 👈 LEFT ALIGN */
  text-align: left;
}

.studio-title {
  font-family: 'Sora', sans-serif;  /* 🔥 new font */
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ns-gradient {
  background: linear-gradient(
    90deg,
    #ff6a3d 0%,     /* stronger orange */
    #ffc247 18%,    /* warmer yellow */
    #5ee27a 36%,    /* more vivid green */
    #3fd0ff 54%,    /* brighter blue */
    #6c7cff 72%,    /* deeper indigo */
    #c05cff 100%    /* richer violet */
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.studio-white {
  color: #f7f4ef;
}

.studio-eyebrow {
  margin-top: 6px;
  font-size: 0.95rem;
  color: rgba(220, 233, 255, 0.75);
  text-align: left;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.mode-btn {
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #f4efe8;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.mode-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.22);
}

.mode-btn.active {
  color: #ffffff;
  border: none;
  background: linear-gradient(
    90deg,
    #ff8a5b 0%,
    #ffd84d 18%,
    #73f08a 38%,
    #47d7ff 58%,
    #7c83ff 78%,
    #c86bff 100%
  );
  background-size: 200% 200%;
  box-shadow:
    0 10px 28px rgba(85, 120, 255, 0.22),
    0 0 22px rgba(255, 138, 91, 0.16);
  animation: gradientShift 7s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
  .hero {
    padding: 28px 18px 22px;
    border-radius: 24px;
  }
}


  .studio-eyebrow {
    font-size: 0.9rem;
  }

  .mode-btn {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
/* REMOVE GLOBAL UNDERLINE FROM SLOGAN */
.studio-slogan::after {
  display: none !important;
}
/* OUTSIDE SLOGAN */
.studio-slogan-wrap {
  text-align: center;
  margin-bottom: 10px;
}

.studio-slogan {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.slogan-line {
  width: 110px;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ff8a5b,
    #ffd84d,
    #73f08a,
    #47d7ff,
    #7c83ff,
    #c86bff
  );
}
.brand {
  display: flex;
  align-items: center;   /* 🔥 THIS fixes vertical alignment */
  gap: 10px;
}

.logo,
.brand-logo {
  height: 44px;          /* slightly smaller = better alignment */
  width: auto;
  display: block;
}

.brand-title {
  display: flex;
  align-items: center;   /* ensures text baseline aligns */
  line-height: 1;
}
/* =========================================
   FINAL HERO FIX (SAFE OVERRIDE)
========================================= */

/* Move slogan section above panel */
.studio-slogan-wrap {
  text-align: center;
  margin-bottom: 14px;
}

/* Clean slogan */
.studio-slogan {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem); /* smaller */
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

/* remove any global underline */
.studio-slogan::after {
  display: none !important;
}

/* single gradient line */
.slogan-line {
  width: 100px;
  height: 3px;
  margin: 8px auto 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ff8a5b,
    #ffd84d,
    #73f08a,
    #47d7ff,
    #7c83ff,
    #c86bff
  );
}

/* move intro text under slogan */
.studio-intro {
  font-size: 0.92rem;
  color: rgba(220,233,255,0.78);
  margin-top: 2px;
}

/* make panel feel like main object */
.hero-top {
  padding: 22px 28px 20px;
}

/* make title dominant */
.studio-title {
  font-family: 'Inter', sans-serif; /* 👈 new font */
  font-size: clamp(3.8rem, 7vw, 6.2rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.045em;
}

/* center panel content */
.brand {
  align-items: center !important;
  text-align: center !important;
  width: 100%;
}

/* buttons centered */
.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 14px;
}
/* LEFT ALIGN TITLE (SAFE) */
.brand {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  align-items: flex-start !important;
  text-align: left !important;
}

.studio-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-align: left !important;
  max-width: 700px;
  margin: 0;
}
/* MOBILE HEADER FIX */
@media (max-width: 768px) {

  .header-inner {
    justify-content: space-between !important;
  }

  .brand {
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
  }

  .brand-title {
    text-align: left !important;
  }

}
.ns-gradient {
  filter: saturate(1.15) contrast(1.05);
}
/* =========================================
   FINAL STUDIO HERO — CLEAN OVERRIDE
========================================= */

.page-shell .hero {
  padding: 42px 0 16px;
  margin-bottom: 18px;
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

/* TOP AREA */
.studio-slogan-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
}

/* pill above slogan */
.studio-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(230,235,255,0.78);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
}

/* remove any inherited h2 underline */
.studio-slogan::after {
  display: none !important;
}

/* homepage-style slogan */
.studio-slogan {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.1;
  color: rgba(238,242,255,0.92);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: rgba(238,242,255,0.92);
}

/* single centered gradient line */
.slogan-line {
  width: 145px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255,107,74,0.95),
    rgba(255,179,71,0.95),
    rgba(124,92,255,0.95)
  );
  box-shadow: 0 0 18px rgba(124,92,255,0.16);
}

/* MAIN PANEL */
.hero-top {
  display: block;
  width: 100%;
  padding: 24px 28px 22px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 120, 80, 0.14), transparent 24%),
    radial-gradient(circle at 55% 16%, rgba(120, 100, 255, 0.16), transparent 24%),
    radial-gradient(circle at 68% 44%, rgba(80, 255, 180, 0.10), transparent 20%),
    radial-gradient(circle at 86% 34%, rgba(90, 120, 255, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(19, 31, 53, 0.94), rgba(11, 19, 34, 0.92));
  box-shadow: 0 20px 60px rgba(0,0,0,0.34);
}

.studio-panel-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 18px;
}

/* TITLE */
.studio-title {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: left;
}

.ns-gradient {
  background: linear-gradient(
    90deg,
    #ff6a3d 0%,
    #ffc247 18%,
    #5ee27a 36%,
    #3fd0ff 54%,
    #6c7cff 72%,
    #c05cff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: saturate(1.15) contrast(1.05);
}

.studio-white {
  color: #f7f4ef;
}

/* BUTTONS */
.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 0;
}

.mode-btn {
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #f4efe8;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.mode-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.22);
}

.mode-btn.active {
  color: #ffffff;
  border: none;
  background: linear-gradient(
    90deg,
    #ff8a5b 0%,
    #ffd84d 18%,
    #73f08a 38%,
    #47d7ff 58%,
    #7c83ff 78%,
    #c86bff 100%
  );
  background-size: 200% 200%;
  box-shadow:
    0 10px 28px rgba(85, 120, 255, 0.22),
    0 0 22px rgba(255, 138, 91, 0.16);
  animation: gradientShift 7s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* MOBILE */
@media (max-width: 820px) {
  .page-shell .hero {
    padding: 28px 0 12px;
  }

  .studio-pill {
    font-size: 0.88rem;
    padding: 9px 14px;
    margin-bottom: 14px;
  }

  .studio-slogan {
    font-size: 0.98rem;
    letter-spacing: 0.2em;
  }

  .slogan-line {
    width: 120px;
    margin-top: 12px;
  }

  .hero-top {
    padding: 20px 18px 18px;
  }

  .studio-panel-inner {
    gap: 16px;
  }

  .studio-title {
    font-size: clamp(2.4rem, 11vw, 4rem);
    line-height: 0.94;
  }

  .mode-tabs {
    justify-content: flex-start;
  }

  .mode-btn {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}
/* =========================================
   MOBILE HEADER ALIGN FIX
========================================= */
@media (max-width: 768px) {

  /* header container */
  .header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* left side: logo + brand */
  .brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
  }

  .brand-logo,
  .logo {
    height: 38px;
    width: auto;
  }

  .brand-title {
    text-align: left !important;
    line-height: 1;
  }

}
/* =========================================
   REFINED PILL + SLOGAN SCALE
========================================= */

/* pill (smaller + tighter) */
.studio-pill {
  font-size: 0.82rem;
  padding: 8px 14px;
  letter-spacing: 0.01em;
}

/* slogan (slightly smaller + cleaner) */
.studio-slogan {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  letter-spacing: 0.22em;
}
/* =========================================
   HEADER BRAND ALIGNMENT FIX
========================================= */

/* Only affect the global header, not the Studio hero */
#site-header .header__inner,
#site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#site-header .brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  text-align: left !important;
}

#site-header .logo,
#site-header .brand-logo {
  display: block;
  width: auto;
  height: 42px;
  flex: 0 0 auto;
}

#site-header .brand-title {
  display: block !important;
  margin: 0 !important;
  line-height: 1 !important;
  text-align: left !important;
  white-space: nowrap;
}

/* mobile */
@media (max-width: 768px) {
  #site-header .brand {
    gap: 10px;
  }

  #site-header .logo,
  #site-header .brand-logo {
    height: 36px;
  }

  #site-header .brand-title {
    font-size: 1.1rem;
  }
}
/* =========================================
   CURSOR GLOW (HOMEPAGE STYLE)
========================================= */

.cursor-glow {
  --glow-x: 50vw;
  --glow-y: 50vh;
  --glow-scale: 1;
  --glow-opacity: 0.22;
  --glow-blur: 46px;

  position: fixed;
  left: var(--glow-x);
  top: var(--glow-y);
  width: 620px;
  height: 620px;
  pointer-events: none;
  z-index: 0;

  background: radial-gradient(
    circle,
    rgba(120, 140, 255, 0.22) 0%,
    rgba(80, 200, 255, 0.16) 22%,
    rgba(140, 80, 255, 0.12) 42%,
    transparent 72%
  );

  transform: translate(-50%, -50%) scale(var(--glow-scale));
  opacity: var(--glow-opacity);
  filter: blur(var(--glow-blur));
}
.page-shell {
  position: relative;
  z-index: 2;
}

#site-header {
  position: relative;
  z-index: 3;
}
/* =========================================
   CURSOR GLOW (HOMEPAGE STYLE)
========================================= */

.cursor-glow {
  position: fixed;
  left: 50vw;
  top: 50vh;
  width: 620px;
  height: 620px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(120, 140, 255, 0.22) 0%,
    rgba(80, 200, 255, 0.16) 22%,
    rgba(140, 80, 255, 0.12) 42%,
    transparent 72%
  );
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.22;
  filter: blur(46px);
  transition:
    left 0.08s linear,
    top 0.08s linear,
    transform 0.12s ease-out,
    opacity 0.12s ease-out,
    filter 0.18s ease-out,
    background 0.18s ease-out;
}

.page-shell {
  position: relative;
  z-index: 2;
}

#site-header {
  position: relative;
  z-index: 3;
}
body[data-mode="music"] #laneGrid,
body[data-mode="music"] #laneGrid.lane-grid,
body[data-mode="music"] #piano,
body[data-mode="music"] #piano.piano,
body[data-mode="flow"] #laneGrid,
body[data-mode="flow"] #laneGrid.lane-grid,
body[data-mode="flow"] #piano,
body[data-mode="flow"] #piano.piano {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}