/* HMC refine 20261201. Livehouse night: gold #F5B041, blue #38BDF8, ground #080A0F.
   One solid gold path. Two quieter blue paths. Reduced motion keeps weight and contrast. */

:root {
  --hmc-refine-gold: #F5B041;
  --hmc-refine-blue: #38BDF8;
  --hmc-refine-ink: #080A0F;
  --hmc-refine-paper: #F3EDE2;
}

html {
  background: #080A0F;
}

body.is-guest,
body {
  background-color: #080A0F;
}

.hmc-brand__zh,
.hmc-hero-title,
.hmc-path--primary .hmc-path__title {
  text-wrap: balance;
}

.landing-page,
.hero-section,
.hmc-paths,
.hmc-capabilities,
.hmc-roadmap,
.pricing-cards,
.feature-grid,
.site-footer,
.hmc-guest-dock,
.wrap,
main {
  max-width: 100%;
  min-width: 0;
}

img,
svg,
video,
canvas,
iframe,
table {
  max-width: 100%;
}

p,
h1,
h2,
h3,
li,
.hmc-path__body,
.hmc-path-strip__body,
.step-desc {
  overflow-wrap: break-word;
}

.hmc-guest-dock {
  width: 100%;
  box-sizing: border-box;
  padding-left: max(8px, env(safe-area-inset-left));
  padding-right: max(8px, env(safe-area-inset-right));
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.hmc-topbar,
.hmc-topbar__left {
  min-width: 0;
}

#landingCtaStart {
  background: transparent;
  color: #38BDF8;
  border: 1px solid #38BDF8;
  box-shadow: none;
}

.hmc-path--primary .hmc-cta--primary,
a.hmc-cta--primary.hmc-path--primary,
.hmc-path--primary a.hmc-cta--primary {
  background: #F5B041;
  color: #1A1208;
  border: 1px solid #F5B041;
}

.hmc-path-strip {
  border-color: rgba(56, 189, 248, 0.55);
}

.hmc-path-strip .hmc-path-strip__eyebrow {
  color: #38BDF8;
}

button.primary,
a.primary,
#go,
#beatStart,
#replayNext,
#songNext,
#resultNext,
#lessonPlay,
#warmupGo {
  background: #F5B041;
  color: #1A1208;
  border: 1px solid #F5B041;
}

[data-level="listen"] {
  background: #F5B041;
  color: #1A1208;
  border: 1px solid #F5B041;
}

button.choice[data-level="listen"] {
  background: #F5B041;
  color: #1A1208;
  border: 1px solid #F5B041;
}

button.choice[data-level="play"],
button.choice[data-level="write"],
[data-level="play"],
[data-level="write"],
a.quiet {
  background: transparent;
  color: #38BDF8;
  border: 1px solid #38BDF8;
}

.hmc-piano-container {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.hmc-piano-keyboard {
  width: max-content;
  min-width: 580px;
  max-width: none;
}

:focus-visible {
  outline: 2px solid #F5B041;
  outline-offset: 3px;
}

@media (max-width: 390px) {
  .hmc-hero-title,
  h1 {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
    line-height: 1.35;
  }

  .pricing-cards,
  .feature-grid,
  .hmc-paths,
  .map-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  canvas#starfield,
  .nebula,
  .grain,
  .spot,
  .vignette,
  .slit {
    display: none !important;
  }

  .hmc-path--primary {
    border: 2px solid #F5B041;
    background: rgba(245, 176, 65, 0.14);
    box-shadow: none;
  }

  .hmc-path-strip {
    border: 1px solid #38BDF8;
    background: rgba(56, 189, 248, 0.08);
    box-shadow: none;
  }

  .hmc-path--primary .hmc-cta--primary,
  button.primary,
  a.primary,
  #go,
  [data-level="listen"] {
    background: #F5B041 !important;
    color: #1A1208 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  [data-level="play"],
  [data-level="write"],
  #landingCtaStart,
  a.quiet {
    background: transparent !important;
    color: #38BDF8 !important;
    border: 1px solid #38BDF8 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .hmc-hero-title,
  .hmc-path--primary .hmc-path__title,
  #resultName,
  h1 {
    font-weight: 700;
  }
}
