/* Pianistech Piano — cozy pastel skin (matches homepage) */
.pt-piano-page {
  margin: 0;
  background: #fff6f0;
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  color: #4a3a32;
}

/* Remap SPA theme tokens */
.pt-piano-page {
  --bg-deep: #fff6f0;
  --bg-stage: #fff8f3;
  --piano-body: #f3e6dc;
  --piano-body-light: #faf3ed;
  --piano-edge: rgba(120, 90, 70, 0.18);
  --text-primary: #4a3a32;
  --text-muted: #9a8476;
  --accent-avocado: #7eb8a2;
  --accent-avocado-glow: rgba(126, 184, 162, 0.4);
  --accent-avocado-deep: #5a9a82;
  --accent-avocado-soft: rgba(126, 184, 162, 0.18);
  --font-sans: "Nunito", ui-rounded, system-ui, sans-serif;
}

.pt-piano-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: rgba(255, 248, 243, 0.9);
  border-bottom: 1px solid rgba(120, 90, 70, 0.12);
  backdrop-filter: blur(14px);
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
}

.pt-piano-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4a3a32;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 18px;
}

.pt-piano-brand img { display: none; }

.pt-piano-brand .brand-mark {
  font-weight: 900;
  letter-spacing: -0.6px;
}
.pt-piano-brand .bm-a { color: #e89a8c; }
.pt-piano-brand .bm-b { color: #7eb8a2; }

.pt-piano-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
}

.pt-piano-nav a {
  color: #7a6558;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 999px;
}

.pt-piano-nav a:hover {
  color: #4a3a32;
  background: rgba(232, 154, 140, 0.14);
}

.pt-piano-lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #fffaf7;
  border: 1px solid rgba(120, 90, 70, 0.14);
}

.pt-piano-lang button {
  border: 0;
  background: transparent;
  color: #9a8476;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.pt-piano-lang button.is-active {
  background: #e89a8c;
  color: #fff;
}

/* Keep SPA backdrop inside #root — fixed inset:0 was covering ads + topbar */
.pt-piano-page .app__backdrop {
  position: absolute !important;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 480px at 12% -6%, rgba(247, 217, 200, 0.85), transparent 58%),
    radial-gradient(820px 440px at 92% 4%, rgba(228, 243, 236, 0.75), transparent 52%),
    linear-gradient(168deg, #fff8f3 0%, #fff3eb 42%, #f9efe8 100%) !important;
}

.pt-piano-ad {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 24px);
  flex: 0 0 auto;
}

.pt-piano-page .pt-ad:empty,
.pt-piano-page .pt-ad.is-placeholder {
  display: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.pt-piano-page #root {
  position: relative;
  z-index: 1;
  min-height: auto;
  background: transparent;
}

.pt-piano-page .app {
  position: relative;
  min-height: calc(100vh - 260px);
  background: transparent;
}

.pt-piano-seo {
  max-width: 820px;
  margin: 8px auto 0;
  padding: 8px 20px 4px;
  color: #7a6558;
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.pt-piano-seo h1 {
  color: #4a3a32;
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.pt-piano-seo p {
  margin: 0 0 10px;
}

/* Soft wood piano case (overrides hard-coded dark body) */
.pt-piano-page .piano-body {
  background: linear-gradient(175deg, #faf3ed 0%, #f0e2d6 40%, #e8d5c6 100%) !important;
  border-color: rgba(120, 90, 70, 0.16) !important;
  box-shadow: 0 18px 40px rgba(120, 80, 60, 0.1) !important;
}

.pt-piano-page .piano-body__surface {
  background: linear-gradient(90deg, #efe0d4, #f7ebe3, #efe0d4) !important;
  border-bottom-color: rgba(120, 90, 70, 0.12) !important;
}

.pt-piano-page .grille-slot {
  background: linear-gradient(180deg, #d8c4b4, #e8d7c8) !important;
  box-shadow: inset 0 1px 2px rgba(80, 50, 30, 0.15) !important;
}

.pt-piano-page .piano-body__speaker {
  background: #e4d2c4 !important;
  box-shadow: inset 0 2px 6px rgba(80, 50, 30, 0.12) !important;
}

.pt-piano-page .speaker-mesh {
  background: repeating-linear-gradient(
    45deg,
    #dcc9ba,
    #dcc9ba 1px,
    #ead9cc 1px,
    #ead9cc 3px
  ) !important;
}

.pt-piano-page .keyboard-velvet {
  background: linear-gradient(
    180deg,
    #e89a8c,
    #f0b4a8 30%,
    #e89a8c 70%,
    #d47868
  ) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35), inset 0 -1px 3px rgba(120, 60, 40, 0.2) !important;
}

.pt-piano-page .keyboard-fallboard {
  background: linear-gradient(180deg, #e8d5c6, #dcc4b2) !important;
  border-top-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: inset 0 2px 4px rgba(80, 50, 30, 0.08) !important;
}

.pt-piano-page .keyboard-lip {
  background: linear-gradient(180deg, #d4bfae, #c8b09e) !important;
}

.pt-piano-page .start-overlay {
  background: rgba(255, 246, 240, 0.82) !important;
}

.pt-piano-page .brand-logo__icon {
  color: #fff !important;
}

/* Control chrome */
.pt-piano-page .control-panel {
  border-bottom-color: rgba(120, 90, 70, 0.12) !important;
}

.pt-piano-page .btn-secondary,
.pt-piano-page .btn-record {
  border-color: rgba(120, 90, 70, 0.16) !important;
  background: #fffaf7 !important;
  color: #4a3a32 !important;
  border-radius: 999px !important;
}

.pt-piano-page .btn-secondary:hover,
.pt-piano-page .btn-record:hover {
  background: rgba(232, 154, 140, 0.14) !important;
}

/* Chord recognition — high contrast on cozy light bg */
.pt-piano-page .piano-header {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(120, 90, 70, 0.1);
}

.pt-piano-page .chord-display__label {
  color: #5a9a82 !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}

.pt-piano-page .chord-display__primary {
  color: #3a2e28 !important;
  background: none !important;
  -webkit-text-fill-color: #3a2e28 !important;
  filter: none !important;
  font-weight: 900 !important;
}

.pt-piano-page .chord-display__secondary {
  color: #6b5648 !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

.pt-piano-page .chord-display__alternatives {
  background: #fff !important;
  border: 1px solid rgba(120, 90, 70, 0.18) !important;
  box-shadow: 0 8px 24px rgba(120, 80, 60, 0.08) !important;
}

.pt-piano-page .chord-display__alt-label {
  color: #5a9a82 !important;
  font-weight: 800 !important;
}

.pt-piano-page .chord-display__alt-chip {
  border: 1px solid rgba(90, 154, 130, 0.4) !important;
  background: rgba(126, 184, 162, 0.22) !important;
  color: #2f5c4a !important;
  font-weight: 700 !important;
}

.pt-piano-page .chord-display__alt-chip:hover {
  background: rgba(232, 154, 140, 0.28) !important;
  border-color: rgba(212, 120, 104, 0.5) !important;
  color: #4a3a32 !important;
}

@media (max-width: 720px) {
  .pt-piano-nav {
    width: 100%;
    margin-left: 0;
    order: 3;
  }
  .pt-piano-lang {
    margin-left: auto;
  }
}
