/* ================================================================
   GLOBAL AMBIENCE AND SURFACE POLISH
   ================================================================ */
body.bg-background {
  background:
    radial-gradient(circle at 12% 8%, rgba(212, 175, 55, 0.09), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(94, 62, 191, 0.16), transparent 36%),
    radial-gradient(circle at 50% 86%, rgba(255, 181, 156, 0.08), transparent 38%),
    #131125;
  caret-color: transparent;
}

input,
textarea,
select,
[contenteditable="true"] {
  caret-color: auto;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.18;
}

body::after {
  background: radial-gradient(circle at 50% -15%, rgba(242, 202, 80, 0.14), transparent 52%);
  mix-blend-mode: screen;
}

main,
footer {
  position: relative;
  z-index: 1;
}

/* Header uses Tailwind .fixed; only layer/dropdown overrides here. */
header {
  z-index: 50;
  overflow: visible;
}

/* ================================================================
   GLOBAL SCROLLBAR
   ================================================================ */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 202, 80, 0.55) rgba(255, 255, 255, 0.06);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(242, 202, 80, 0.9), rgba(212, 175, 55, 0.75));
  border-radius: 999px;
  border: 2px solid rgba(19, 17, 37, 0.7);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 224, 136, 0.95), rgba(242, 202, 80, 0.85));
}

body.intro-lock {
  overflow: hidden;
}

.welcome-intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.welcome-intro.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.welcome-intro__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(212, 175, 55, 0.14), transparent 35%),
    radial-gradient(circle at 84% 20%, rgba(94, 62, 191, 0.2), transparent 42%),
    rgba(8, 8, 20, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.welcome-intro__content {
  position: relative;
  z-index: 1;
  width: min(92vw, 940px);
  min-height: 200px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.welcome-intro__welcome,
.welcome-intro__school {
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.welcome-intro__welcome {
  position: absolute;
  font-family: Newsreader, serif;
  font-style: italic;
  font-size: clamp(2.1rem, 7vw, 4.8rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #fff4cb;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.welcome-intro__school {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.welcome-intro__logo {
  width: clamp(92px, 12vw, 138px);
  height: auto;
  filter: drop-shadow(0 0 20px rgba(242, 202, 80, 0.45));
}

.welcome-intro__school-name {
  margin: 0;
  font-family: Newsreader, serif;
  font-size: clamp(1.8rem, 5.3vw, 3.2rem);
  line-height: 1.1;
  color: #f2ca50;
}

.welcome-intro__school-subtitle {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(0.95rem, 2.1vw, 1.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(228, 223, 252, 0.8);
}

.welcome-intro.show-welcome .welcome-intro__welcome {
  opacity: 1;
}

.welcome-intro.show-school .welcome-intro__school {
  opacity: 1;
}



@media (max-width: 640px) {
  .welcome-intro__content {
    min-height: 180px;
    padding: 18px;
  }

  .welcome-intro__school {
    gap: 10px;
  }
}

.glass-panel {
  background: rgba(19, 17, 37, 0.4);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-panel,
.event-card,
.achievement-card,
.teacher-card {
  position: relative;
  overflow: hidden;
}

/* Apply form: list is portaled to <body>; clip card so shine/button stay inside */
#apply .glass-panel {
  overflow: hidden;
  clip-path: inset(0 round 1.5rem);
  -webkit-clip-path: inset(0 round 1.5rem);
  isolation: isolate;
}

#apply .glass-panel.ambient-glow-primary {
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#apply .glass-panel::before {
  z-index: 0;
  border-radius: inherit;
}

#apply .glass-panel > * {
  position: relative;
  z-index: 1;
}

#apply .admission-submit-wrap {
  overflow: hidden;
  width: 100%;
  padding-bottom: 0.75rem;
}

#apply #admission-submit-btn {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.38);
}

#apply #admission-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  filter: brightness(1.06);
}

.glass-panel::before,
.event-card::after,
.achievement-card::before,
.teacher-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glass-panel::before,
.teacher-card::after {
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 46%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.glass-panel:hover::before,
.teacher-card:hover::after {
  transform: translateX(120%);
}

.event-card::after {
  background: radial-gradient(circle at 80% -10%, rgba(242, 202, 80, 0.16), transparent 56%);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.event-card:hover::after {
  opacity: 1;
}

.guitar-pick-btn {
  background: radial-gradient(circle at 50% 0%, rgba(242, 202, 80, 1) 0%, rgba(212, 175, 55, 0.8) 100%);
  box-shadow: 0 0 20px rgba(242, 202, 80, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.5);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.guitar-pick-btn:hover {
  box-shadow: 0 0 40px rgba(242, 202, 80, 0.6), inset 0 2px 10px rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

.ambient-glow-primary {
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
}

.soundwave-bg {
  background-image: radial-gradient(ellipse at center, rgba(35, 0, 92, 0.2) 0%, transparent 70%), linear-gradient(180deg, rgba(19, 17, 37, 0) 0%, rgba(19, 17, 37, 1) 100%);
}

.etched-line {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admission-form input,
.admission-form select,
.admission-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e4dffc;
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  width: 100%;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.admission-form input:focus,
.admission-form textarea:focus,
.admission-form select:focus {
  border-color: #f2ca50;
  outline: none;
  box-shadow: 0 0 0 1px #f2ca50;
}

/* Custom select: hide native control only after JS wraps it (see site.js) */
.admission-form .custom-select-wrapper select {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.custom-select-wrapper {
  position: relative;
  width: 100%;
}
.custom-select-trigger {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e4dffc;
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  width: 100%;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.custom-select-wrapper.open .custom-select-trigger,
.custom-select-trigger:focus {
  border-color: #f2ca50;
  outline: none;
  box-shadow: 0 0 0 1px #f2ca50;
}
.custom-select-trigger::after {
  content: '';
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  transition: transform 0.3s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.custom-select-wrapper.open .custom-select-trigger::after {
  transform: rotate(225deg);
}
.custom-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #1f1d32;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 100;
  max-height: 250px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-overflow-scrolling: touch;
}

.custom-options.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-wrapper.open .custom-options:not(.custom-options--portal) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Portaled list (admission form): escapes glass-panel overflow/stacking */
.custom-options.custom-options--portal {
  position: fixed;
  top: auto;
  left: auto;
  right: auto;
  z-index: 10000;
}

.custom-options.custom-options--portal.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.custom-option {
  padding: 10px 16px;
  color: #e4dffc;
  font-family: Manrope, sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.custom-option:last-child {
  border-bottom: none;
}
.custom-option:hover, .custom-option.selected {
  background: rgba(242, 202, 80, 0.12);
  color: #f2ca50;
}

.admission-form .errorlist {
  color: #ffb4ab;
  font-size: 12px;
  margin-top: 4px;
  list-style: none;
  padding: 0;
}

.icon-filled {
  font-variation-settings: "FILL" 1;
}

.cta-compact {
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.hero-orb {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  z-index: -1;
}

.hero-orb-gold {
  top: 0;
  left: 25%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
}

.hero-orb-purple {
  bottom: 0;
  right: 25%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(83, 0, 145, 0.18) 0%, transparent 70%);
}

.hero-title-gradient {
  background: linear-gradient(140deg, #ffe8a0 0%, #f2ca50 35%, #fff9ee 65%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(2.4rem, 7vw, 72px);
}

.staff-line-pos-18 { top: 18%; }
.staff-line-pos-34 { top: 34%; }
.staff-line-pos-50 { top: 50%; }
.staff-line-pos-66 { top: 66%; }
.staff-line-pos-82 { top: 82%; }

.staff-note-s7-d0 { animation-duration: 7s; animation-delay: 0s; }
.staff-note-s7-d2 { animation-duration: 7s; animation-delay: 2s; }
.staff-note-s8-d0 { animation-duration: 8s; animation-delay: 0s; }
.staff-note-s8-d4 { animation-duration: 8s; animation-delay: 4s; }
.staff-note-s9-d0 { animation-duration: 9s; animation-delay: 0s; }
.staff-note-s9-d5 { animation-duration: 9s; animation-delay: 5s; }
.staff-note-s10-d2 { animation-duration: 10s; animation-delay: 2s; }
.staff-note-s10-d3 { animation-duration: 10s; animation-delay: 3s; }
.staff-note-s11-d1 { animation-duration: 11s; animation-delay: 1s; }
.staff-note-s11-d2 { animation-duration: 11s; animation-delay: 2s; }
.staff-note-s12-d4 { animation-duration: 12s; animation-delay: 4s; }
.staff-note-s13-d1 { animation-duration: 13s; animation-delay: 1s; }
.staff-note-s13-d5 { animation-duration: 13s; animation-delay: 5s; }
.staff-note-s14-d6 { animation-duration: 14s; animation-delay: 6s; }
.staff-note-s15-d0 { animation-duration: 15s; animation-delay: 0s; }

.stat-card {
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.stat-value-main {
  font-size: clamp(2.2rem, 6vw, 56px);
}

.event-day-num {
  font-size: 40px;
}

.event-location-icon {
  font-size: 16px;
}

.track-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
}

.track-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-3px);
}

.track-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  color: #d4af37;
  font-family: Newsreader, serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.instrument-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  color: #d0c5af;
  transition: border-color 0.2s, color 0.2s;
}

.instrument-tag:hover {
  border-color: rgba(212, 175, 55, 0.4);
  color: #f2ca50;
}

.teacher-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s;
}

.teacher-row:last-child {
  border-bottom: none;
}

.teacher-row:hover {
  background: rgba(212, 175, 55, 0.04);
}

.dept-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  filter: blur(2px);
  pointer-events: none;
}

.dept-hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #131125 40%, transparent 100%), linear-gradient(to top, #131125 0%, transparent 60%);
}

.dept-hero-orb {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
}

.dept-hero-title {
  font-size: clamp(36px, 6vw, 64px);
}

.dept-apply-glow {
  background: radial-gradient(ellipse at 50% 110%, rgba(212, 175, 55, 0.12) 0%, transparent 65%);
}

/* ================================================================
   CURSOR TRAIL
   ================================================================ */
.cursor-trail-note {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  color: rgba(212, 175, 55, 0.85);
  animation: noteFloat 1.4s ease-out forwards;
  will-change: transform, opacity;
  font-family: serif;
  line-height: 1;
  user-select: none;
}
@keyframes noteFloat {
  0%   { opacity: 1; transform: translateY(0)  scale(1)   rotate(-8deg); }
  100% { opacity: 0; transform: translateY(-70px) scale(0.4) rotate(18deg); }
}

/* ================================================================
   NOTE PARTICLES (piano key burst)
   ================================================================ */
.note-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  color: #f2ca50;
  animation: noteParticle 1.1s ease-out forwards;
  will-change: transform, opacity;
  font-family: serif;
  line-height: 1;
}
@keyframes noteParticle {
  0%   { opacity: 1; transform: translateY(0)   scale(1);   }
  100% { opacity: 0; transform: translateY(-90px) scale(0.2) rotate(25deg); }
}

/* ================================================================
   PIANO KEYBOARD
   ================================================================ */
.piano-wrap {
  overflow-x: auto;
  padding: 0 16px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-content: center;
}
.piano-wrap::-webkit-scrollbar        { height: 4px; }
.piano-wrap::-webkit-scrollbar-track  { background: transparent; }
.piano-wrap::-webkit-scrollbar-thumb  { background: rgba(212, 175, 55, 0.3); border-radius: 2px; }

.piano-keyboard {
  position: relative;
  display: flex;
  height: 190px;
  width: 692px; /* 14 × 48px + 2×16px padding */
  flex-shrink: 0;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #18152e 0%, #0e0c1f 100%);
  padding: 0 16px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(212, 175, 55, 0.2),
    inset 0 -4px 12px rgba(0, 0, 0, 0.6);
}

/* ── White keys ── */
.piano-key.white {
  width: 48px;
  height: 180px;
  background: linear-gradient(180deg, #f0ece0 0%, #ffffff 55%, #edeae0 100%);
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 0 0 9px 9px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  box-shadow: 2px 5px 14px rgba(0, 0, 0, 0.55), inset 0 -3px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.07s, transform 0.07s, box-shadow 0.07s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}
.piano-key.white:hover {
  background: linear-gradient(180deg, #fffbe8 0%, #ffffff 55%, #fffbe8 100%);
}
.piano-key.white.pressed {
  background: linear-gradient(180deg, #d4af37 0%, #f2ca50 50%, #d4af37 100%);
  transform: translateY(5px);
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(212, 175, 55, 0.5);
}
.piano-key.white.octave-2 {
  border-left: 2px solid rgba(212, 175, 55, 0.35);
}
.key-label {
  font-family: Manrope, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.35);
  letter-spacing: 0.08em;
  transition: color 0.07s;
}
.piano-key.white.pressed .key-label { color: rgba(0, 0, 0, 0.65); }

/* ── Black keys (positioned absolutely) ── */
.piano-key.black {
  position: absolute;
  width: 30px;
  height: 118px;
  background: linear-gradient(180deg, #1e1e1e 0%, #111 65%, #2d2d2d 100%);
  border: 1px solid #000;
  border-radius: 0 0 5px 5px;
  cursor: pointer;
  z-index: 2;
  top: 0;
  box-shadow:
    2px 8px 14px rgba(0, 0, 0, 0.9),
    inset 0 -2px 4px rgba(255, 255, 255, 0.04),
    inset 1px 0 0 rgba(255, 255, 255, 0.04);
  transition: background 0.07s, transform 0.07s, box-shadow 0.07s;
  user-select: none;
  -webkit-user-select: none;
}
.piano-key.black:hover {
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 65%, #383838 100%);
}
.piano-key.black.pressed {
  background: linear-gradient(180deg, #7a5c0a 0%, #d4af37 100%);
  transform: translateY(5px);
  box-shadow: 1px 3px 6px rgba(0, 0, 0, 0.9), 0 0 18px rgba(212, 175, 55, 0.4);
}

/* Black key absolute positions (white key = 48px, left offset from keyboard left padding = 16px) */
.bk-cs4 { left:  48px; }
.bk-ds4 { left:  96px; }
.bk-fs4 { left: 192px; }
.bk-gs4 { left: 240px; }
.bk-as4 { left: 288px; }
.bk-cs5 { left: 384px; }
.bk-ds5 { left: 432px; }
.bk-fs5 { left: 528px; }
.bk-gs5 { left: 576px; }
.bk-as5 { left: 624px; }

/* ── Piano section lid (top bar) ── */
.piano-lid {
  width: 100%;
  max-width: 692px;
  height: 22px;
  background: linear-gradient(180deg, #2a2060 0%, #18152e 100%);
  border-radius: 10px 10px 0 0;
  border-top: 2px solid rgba(212, 175, 55, 0.25);
  flex-shrink: 0;
  box-shadow: 0 -4px 20px rgba(212, 175, 55, 0.08);
}

/* ================================================================
   INSTRUMENT QUIZ
   ================================================================ */
.quiz-opt {
  background: rgba(19, 17, 37, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 20px;
  cursor: pointer;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  color: #e4dffc;
  text-align: left;
  width: 100%;
  transition: all 0.22s ease;
  display: block;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.quiz-opt:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.5);
  color: #f2ca50;
  transform: translateX(7px);
}
.quiz-question-panel {
  animation: quizSlideIn 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes quizSlideIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
.quiz-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.3s, transform 0.3s;
  display: inline-block;
}
.quiz-dot.done   { background: #f2ca50; }
.quiz-dot.active { background: rgba(212, 175, 55, 0.55); transform: scale(1.4); }

.quiz-result-icon {
  font-size: 76px;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
  animation: iconBounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes iconBounce {
  0%   { transform: scale(0) rotate(-15deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.quiz-result-panel {
  animation: quizSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   DEPARTMENT CURTAIN CARDS
   ================================================================ */
a.dept-card { display: block; text-decoration: none; color: inherit; cursor: pointer; }

.dept-card .dept-curtain-left,
.dept-card .dept-curtain-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: rgba(14, 12, 28, 0.90);
  z-index: 8;
  transition: transform 0.52s cubic-bezier(0.77, 0, 0.175, 1);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.dept-card .dept-curtain-left  {
  left: 0;
  transform-origin: left center;
  justify-content: flex-end;
  padding-right: 12px;
  border-right: 1px solid rgba(212, 175, 55, 0.12);
}
.dept-card .dept-curtain-right {
  right: 0;
  transform-origin: right center;
  justify-content: flex-start;
  padding-left: 12px;
  border-left: 1px solid rgba(212, 175, 55, 0.12);
}
.dept-card:hover .dept-curtain-left  { transform: scaleX(0); }
.dept-card:hover .dept-curtain-right { transform: scaleX(0); }

.dept-detail-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(14, 12, 28, 0.95) 0%, rgba(14, 12, 28, 0.6) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease 0.22s;
}
.dept-card:hover .dept-detail-overlay { opacity: 1; }

.dept-detail-overlay--top {
  justify-content: flex-start;
  background: linear-gradient(to bottom, rgba(14, 12, 28, 0.95) 0%, rgba(14, 12, 28, 0.62) 55%, transparent 100%);
}

/* ================================================================
   MUSICAL STAFF DIVIDER
   ================================================================ */
.staff-divider {
  position: relative;
  height: 56px;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.28;
  margin: 8px 0;
}
.staff-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(212, 175, 55, 0.7) 15%,
    rgba(212, 175, 55, 0.7) 85%,
    transparent 100%
  );
}
.staff-note {
  position: absolute;
  font-size: 22px;
  color: rgba(212, 175, 55, 0.9);
  top: 50%;
  transform: translateY(-50%);
  animation: staffScroll linear infinite;
  white-space: nowrap;
  font-family: serif;
}
@keyframes staffScroll {
  from { left: -50px; }
  to   { left: calc(100% + 50px); }
}

/* ================================================================
   EVENT CARDS
   ================================================================ */
.event-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.12);
}
.event-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(to right, transparent 0%, #f2ca50 50%, transparent 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.event-card:hover::before { transform: scaleX(1); }

.event-type-badge {
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
}
.badge-konsert   { background: rgba(242, 202, 80, 0.15); color: #f2ca50; border: 1px solid rgba(242,202,80,0.3); }
.badge-festival  { background: rgba(215, 197, 255, 0.15); color: #d7c5ff; border: 1px solid rgba(215,197,255,0.3); }
.badge-korgazma  { background: rgba(255, 181, 156, 0.15); color: #ffb59c; border: 1px solid rgba(255,181,156,0.3); }
.badge-masterclass { background: rgba(212, 175, 55, 0.1); color: #ffe088; border: 1px solid rgba(255,224,136,0.3); }
.badge-tanlov    { background: rgba(255, 180, 171, 0.12); color: #ffb4ab; border: 1px solid rgba(255,180,171,0.3); }

/* Countdown */
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
}
.countdown-num {
  font-family: Newsreader, serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: #f2ca50;
  font-variant-numeric: tabular-nums;
}
.countdown-lbl {
  font-family: Manrope, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(204, 193, 175, 0.65);
  margin-top: 2px;
}
.countdown-sep {
  font-size: 22px;
  color: rgba(212, 175, 55, 0.3);
  line-height: 1;
  align-self: flex-start;
  padding-top: 2px;
}

/* ================================================================
   ACHIEVEMENT CARDS
   ================================================================ */
.achievement-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
}
.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.achievement-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top center, rgba(212,175,55,0.07) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.achievement-card:hover::after { opacity: 1; }

.place-1       { color: #FFD700; filter: drop-shadow(0 0 8px rgba(255,215,0,0.55)); }
.place-2       { color: #C0C0C0; filter: drop-shadow(0 0 6px rgba(192,192,192,0.45)); }
.place-3       { color: #CD7F32; filter: drop-shadow(0 0 6px rgba(205,127,50,0.45)); }
.place-maxsus  { color: #d7c5ff; filter: drop-shadow(0 0 6px rgba(215,197,255,0.4)); }
.place-finalist{ color: #f2ca50; filter: drop-shadow(0 0 6px rgba(242,202,80,0.45)); }

/* ================================================================
   REVEAL ANIMATIONS (scroll-driven)
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered "4/4 beat" (250 ms = 120 BPM 16th note) */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay:    0ms; opacity:1; transform:translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay:  250ms; opacity:1; transform:translateY(0); }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay:  500ms; opacity:1; transform:translateY(0); }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay:  750ms; opacity:1; transform:translateY(0); }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 1000ms; opacity:1; transform:translateY(0); }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 1250ms; opacity:1; transform:translateY(0); }

/* ================================================================
   TEACHER CARDS
   ================================================================ */
.teacher-card {
  transition: opacity 0.28s, transform 0.28s, border-color 0.25s;
  border-left: 2px solid rgba(212, 175, 55, 0.25);
}
.teacher-card:hover {
  border-left-color: #D4AF37;
  transform: translateX(3px);
}
.teacher-card.is-hidden { display: none; }

.active-filter {
  background: rgba(212, 175, 55, 0.14);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.2);
}

/* ================================================================
   HERO PARALLAX
   ================================================================ */
#hero .hero-bg-img {
  transition: transform 0.1s linear;
  transform-origin: center center;
}

.hero-crest {
  width: 98px;
  height: 98px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

@media (min-width: 640px) {
  .hero-crest {
    width: 114px;
    height: 114px;
  }
}

@media (min-width: 1024px) {
  .hero-crest {
    width: 130px;
    height: 130px;
  }
}

/* ================================================================
   SECTION HEADING UNDERLINE GLOW
   ================================================================ */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 80px;
  height: 2px;
  background: #f2ca50;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(242, 202, 80, 0.6), 0 0 24px rgba(242, 202, 80, 0.25);
}

/* ================================================================
   HERO MODERN CTA BUTTONS
   ================================================================ */
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f2ca50 0%, #D4AF37 100%);
  color: #131125;
  padding: 15px 36px;
  border-radius: 100px;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 28px rgba(242, 202, 80, 0.28), 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  text-decoration: none;
}
.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 48px rgba(242, 202, 80, 0.5), 0 8px 30px rgba(0,0,0,0.5);
}
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(242, 202, 80, 0.4);
  color: #f2ca50;
  padding: 15px 36px;
  border-radius: 100px;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(242, 202, 80, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  text-decoration: none;
}
.hero-cta-secondary:hover {
  background: rgba(242, 202, 80, 0.14);
  border-color: rgba(242, 202, 80, 0.7);
  transform: translateY(-2px);
}

.hero-cta-primary:focus-visible,
.hero-cta-secondary:focus-visible,
.filter-btn:focus-visible,
.footer-piano-key:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid rgba(242, 202, 80, 0.75);
  outline-offset: 3px;
}

/* ================================================================
   PIANO SECTION GLOW PULSE
   ================================================================ */
@keyframes pianoGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(212,175,55,0.08), 0 24px 60px rgba(0,0,0,0.85); }
  50%       { box-shadow: 0 0 55px rgba(212,175,55,0.18), 0 24px 60px rgba(0,0,0,0.85); }
}
.piano-keyboard { animation: pianoGlow 4s ease-in-out infinite; }

/* ================================================================
   MOBILE HEADER NAV
   ================================================================ */
.nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e4dffc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.nav-toggle:hover {
  background: rgba(242, 202, 80, 0.12);
  border-color: rgba(242, 202, 80, 0.6);
  color: #f2ca50;
}

.site-nav {
  position: absolute;
  top: calc(100% + 10px);
  left: 10px;
  right: 10px;
  z-index: 300;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 11, 28, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px;
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  max-height: min(72vh, calc(100dvh - 112px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: Newsreader, serif;
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  color: rgba(228, 223, 252, 0.86);
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.site-nav a:hover {
  color: #f2ca50;
  border-color: rgba(242, 202, 80, 0.3);
  background: rgba(242, 202, 80, 0.06);
}

.site-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.mobile-nav-open {
  overflow: hidden;
}

/* ================================================================
   RESPONSIVE LAYOUT POLISH
   ================================================================ */
@media (max-width: 1024px) {
  .dept-detail-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(14, 12, 28, 0.92) 0%, rgba(14, 12, 28, 0.72) 45%, rgba(14, 12, 28, 0.35) 72%, transparent 100%);
    padding: 1rem 1.15rem;
    justify-content: flex-end;
    gap: 0.15rem;
  }

  .dept-detail-overlay--top {
    background: linear-gradient(to bottom, rgba(14, 12, 28, 0.92) 0%, rgba(14, 12, 28, 0.72) 45%, rgba(14, 12, 28, 0.35) 72%, transparent 100%);
    justify-content: flex-start;
    padding-top: 1.1rem;
  }

  .dept-card .dept-curtain-left,
  .dept-card .dept-curtain-right {
    display: none;
  }

  /* Short lede duplicates the long overlay blurb on touch layouts — hides “ghost” double text */
  .dept-card-lede {
    display: none;
  }

  .dept-card-main .font-headline-md {
    font-size: clamp(1.15rem, 4.2vw, 1.5rem);
    line-height: 1.2;
  }
}

@media (max-width: 768px) {
  /* ── Stronger glass header background on mobile ── */
  header {
    background-color: rgba(19, 17, 37, 0.88) !important;
  }

  #hero {
    min-height: 75vh;
    padding-top: 48px;
    padding-bottom: 32px;
    justify-content: flex-start;
  }

  #hero h1 {
    line-height: 1.05;
  }

  .staff-divider {
    opacity: 0.2;
    margin: 4px 0;
  }

  .event-card,
  .achievement-card,
  .teacher-card {
    transform: none !important;
  }

  .countdown-num {
    font-size: 24px;
  }

  footer nav {
    height: 108px;
  }

  .footer-piano-key span {
    display: none;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  header .hero-cta-primary.cta-compact {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    white-space: nowrap;
    z-index: 3;
  }

  header .nav-toggle {
    margin-left: auto;
    position: relative;
    z-index: 4;
  }
}

@media (min-width: 1024px) {
  .nav-toggle,
  .site-nav {
    display: none;
  }
}

/* ================================================================
   REDUCED MOTION ACCESSIBILITY
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ================================================================
   INSTRUMENT PLAYGROUND — TABS
   ================================================================ */
.inst-tabs-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 36px;
}
.inst-tabs-wrap::-webkit-scrollbar { display: none; }

.inst-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 4px;
}

.inst-tab {
  padding: 9px 22px;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(19, 17, 37, 0.5);
  color: #d0c5af;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  user-select: none;
}
.inst-tab:hover {
  border-color: rgba(212, 175, 55, 0.45);
  color: #e4dffc;
  background: rgba(212, 175, 55, 0.06);
}
.inst-tab.active {
  background: rgba(212, 175, 55, 0.14);
  border-color: #f2ca50;
  color: #f2ca50;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.18);
}

/* ================================================================
   DRUM KIT
   ================================================================ */
.drum-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
}
.drum-stage-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* ── Generic drum pad button wrapper ── */
.drum-pad {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: filter 0.08s;
}
.drum-pad:hover { filter: brightness(1.12); }
.drum-pad.hit   { filter: brightness(1.9) saturate(1.3); }

/* ── Cymbal shape ── */
.cymbal-shape {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.07s;
  box-shadow: 0 6px 18px rgba(0,0,0,0.7);
}
.cymbal-crash {
  width: 110px;
  height: 38px;
  background: radial-gradient(ellipse at 45% 40%, #fff8d0 0%, #d4af37 28%, #8a6800 70%, #5a4200 100%);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.35);
}
.cymbal-ride {
  width: 130px;
  height: 44px;
  background: radial-gradient(ellipse at 45% 38%, #fff5b0 0%, #c8a820 30%, #7a5e00 72%, #4a3a00 100%);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.28);
}
.cymbal-hihat {
  width: 90px;
  height: 34px;
  background: radial-gradient(ellipse at 45% 38%, #fff0c0 0%, #c0960a 32%, #6e4c00 70%, #3a2800 100%);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.3);
}
.hihat-stack {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 22px;
  background: radial-gradient(ellipse at 45% 35%, #fff8d0 0%, #b88a00 40%, #6e4c00 100%);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0,0,0,0.6);
}
.cymbal-bell {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 19px;
  background: radial-gradient(ellipse at 40% 35%, #fffae0 0%, #e8c840 50%, #b08010 100%);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.5);
}
.cymbal-bell.small {
  width: 18px;
  height: 13px;
}
.cymbal-label,
.drum-label-face,
.kick-label {
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(228, 223, 252, 0.65);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 7px;
  text-align: center;
  pointer-events: none;
}

.drum-pad.hit .cymbal-crash,
.drum-pad.hit .cymbal-ride,
.drum-pad.hit .cymbal-hihat {
  animation: cymbalHit 0.4s ease-out;
}
@keyframes cymbalHit {
  0%   { transform: rotateX(0deg)   scale(1.0); filter: brightness(2.2); }
  18%  { transform: rotateX(-8deg)  scale(1.04); }
  55%  { transform: rotateX(4deg)   scale(1.01); }
  100% { transform: rotateX(0deg)   scale(1.0); filter: brightness(1.0); }
}

/* ── Clap pad ── */
.clap-pad {
  width: 88px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2d2462 0%, #1e1a40 100%);
  border: 2px solid rgba(242, 202, 80, 0.25);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.08s, transform 0.08s;
}
.clap-icon {
  font-size: 26px;
  line-height: 1;
}
.drum-pad.hit .clap-pad {
  background: linear-gradient(135deg, rgba(242,202,80,0.22) 0%, rgba(242,202,80,0.08) 100%);
  border-color: #f2ca50;
  transform: scale(0.93);
}

/* ── Tom drum shell ── */
.drum-shell {
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.75), inset 0 -4px 8px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.07s;
}
.tom1-shell {
  width: 110px;
  height: 80px;
  background: radial-gradient(ellipse at 45% 38%, #6655cc 0%, #3d2fa8 45%, #1e1660 100%);
  border: 3px solid #8877dd;
}
.tom2-shell {
  width: 120px;
  height: 88px;
  background: radial-gradient(ellipse at 45% 38%, #cc8844 0%, #a05e22 45%, #5a3010 100%);
  border: 3px solid #e8aa66;
}
.snare-shell {
  width: 130px;
  height: 95px;
  background: radial-gradient(ellipse at 45% 35%, #e8e8e8 0%, #aaaaaa 40%, #6a6a6a 100%);
  border: 3px solid #cccccc;
}
.drum-head-face {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 35%, rgba(255,255,255,0.18) 0%, transparent 65%);
  border: 1px solid rgba(255,255,255,0.12);
}
.snare-face {
  background: radial-gradient(ellipse at 40% 35%, rgba(255,255,255,0.35) 0%, transparent 65%);
}
.snare-wire-strip {
  position: absolute;
  bottom: 2px;
  left: 20%;
  right: 20%;
  height: 4px;
  background: repeating-linear-gradient(90deg, rgba(200,200,200,0.6) 0px, rgba(200,200,200,0.6) 2px, transparent 2px, transparent 5px);
  border-radius: 2px;
}
.drum-lug-ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  pointer-events: none;
}
.snare-ring { border-color: rgba(255,255,255,0.2); }

.drum-pad.hit .tom1-shell,
.drum-pad.hit .tom2-shell,
.drum-pad.hit .snare-shell {
  animation: drumHit 0.3s ease-out;
}
@keyframes drumHit {
  0%   { transform: scale(1.0); filter: brightness(2.0); }
  25%  { transform: scale(0.93); }
  65%  { transform: scale(1.03); }
  100% { transform: scale(1.0); filter: brightness(1.0); }
}

/* ── Kick drum ── */
.drum-pad-kick { margin-top: 4px; }
.kick-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.kick-head {
  position: relative;
  width: 180px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 45% 38%, #3a2060 0%, #1a0e38 55%, #0d0820 100%);
  border: 5px solid #4a3080;
  box-shadow: 0 12px 36px rgba(0,0,0,0.85), inset 0 2px 0 rgba(255,255,255,0.06);
  cursor: pointer;
  transition: transform 0.07s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kick-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  pointer-events: none;
}
.kick-ring-outer { inset: 10px; }
.kick-ring-mid   { inset: 30px; border-color: rgba(242,202,80,0.15); }
.kick-dot {
  width: 28px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,202,80,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.drum-pad.hit .kick-head {
  animation: kickHit 0.28s ease-out;
}
@keyframes kickHit {
  0%   { transform: scale(1.0); filter: brightness(1.0); box-shadow: 0 12px 36px rgba(0,0,0,0.85); }
  20%  { transform: scale(0.94) scaleX(1.04); filter: brightness(2.2); box-shadow: 0 4px 12px rgba(0,0,0,0.6), 0 0 40px rgba(100,60,200,0.4); }
  70%  { transform: scale(1.02) scaleX(0.99); filter: brightness(1.2); }
  100% { transform: scale(1.0); filter: brightness(1.0); box-shadow: 0 12px 36px rgba(0,0,0,0.85); }
}

/* Snare alternate pad class */
.drum-pad-snare { }

/* ================================================================
   DOIRA
   ================================================================ */
.doira-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.doira-svg {
  width: min(300px, 85vw);
  height: min(300px, 85vw);
  cursor: pointer;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.65));
}
.doira-zone {
  cursor: pointer;
  transition: filter 0.12s;
}
.doira-zone:hover { filter: brightness(1.15) saturate(1.1); }
.doira-zone.hit   { animation: doiraHit 0.35s ease-out; }
@keyframes doiraHit {
  0%   { filter: brightness(2.0); }
  100% { filter: brightness(1.0); }
}
.doira-ripple.active {
  animation: doiraRipple 0.65s ease-out forwards;
}
@keyframes doiraRipple {
  0%   { r: 5;   opacity: 1; stroke-width: 3; }
  100% { r: 130; opacity: 0; stroke-width: 1; }
}
.doira-hint {
  font-family: Manrope, sans-serif;
  font-size: 12px;
  color: rgba(208, 197, 175, 0.6);
  text-align: center;
  letter-spacing: 0.03em;
}

/* ================================================================
   GUITAR
   ================================================================ */
.guitar-wrap {
  max-width: 700px;
  margin: 0 auto;
}
.guitar-headstock {
  text-align: center;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  color: rgba(208, 197, 175, 0.7);
  margin-bottom: 8px;
}
.guitar-nut {
  height: 10px;
  background: linear-gradient(90deg, #6b4c2c, #9b7242, #6b4c2c);
  border-radius: 3px 3px 0 0;
}
.guitar-fretboard {
  position: relative;
  background: linear-gradient(180deg, #3d2510 0%, #5c3820 40%, #3d2510 100%);
  height: 210px;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7), inset 0 0 30px rgba(0,0,0,0.3);
}
.guitar-fret {
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(200,180,100,0.6), rgba(200,180,100,0.2));
  pointer-events: none;
}
.guitar-string {
  position: absolute;
  left: 0; right: 0;
  height: var(--str-w, 2px);
  background: linear-gradient(90deg, #a0a0a0, #e8e8e8 40%, #ffffff 50%, #e8e8e8 60%, #a0a0a0);
  cursor: pointer;
  transform: translateY(-50%);
  transition: filter 0.1s;
  box-shadow: 0 0 4px rgba(255,255,255,0.15);
}
.guitar-string:hover { filter: brightness(1.8) drop-shadow(0 0 6px #fff); }
.guitar-string.plucked { animation: strPluck 0.45s ease-out; }
@keyframes strPluck {
  0%   { transform: translateY(-50%);      filter: brightness(3); }
  18%  { transform: translateY(calc(-50% + 6px)) scaleY(2); }
  36%  { transform: translateY(calc(-50% - 5px)) scaleY(1.6); }
  55%  { transform: translateY(calc(-50% + 3px)) scaleY(1.2); }
  100% { transform: translateY(-50%);      filter: brightness(1); }
}
.guitar-str-label {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: Manrope, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  pointer-events: none;
  user-select: none;
}
.guitar-strum-btn-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.guitar-strum-btn {
  padding: 10px 28px;
  border-radius: 9999px;
  border: 1px solid rgba(212,175,55,0.35);
  background: rgba(212,175,55,0.08);
  color: #f2ca50;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.guitar-strum-btn:hover  { background: rgba(212,175,55,0.18); box-shadow: 0 0 16px rgba(212,175,55,0.2); }
.guitar-strum-btn:active { transform: scale(0.96); }

/* ================================================================
   ACCORDION
   ================================================================ */
.accordion-wrap {
  max-width: 760px;
  margin: 0 auto;
}

/* Panel title labels above body */
.acc-panel-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 4px;
  margin-bottom: 8px;
}
.acc-panel-label {
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(208, 197, 175, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.acc-label-treble { text-align: right; }

.accordion-body {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 18px 60px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.05);
}

/* ── Accordion side panels ── */
.accordion-side {
  background: linear-gradient(160deg, #252045 0%, #18152e 100%);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}
.accordion-left  {
  border-right: 1px solid rgba(255,255,255,0.06);
  min-width: 150px;
}
.accordion-right {
  border-left: 1px solid rgba(255,255,255,0.06);
  flex: 1;
  min-width: 0;
}

/* ── Bass buttons ── */
.acc-bass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.acc-bass-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.22);
  background: radial-gradient(circle at 35% 30%, #3a3270 0%, #211d52 55%, #141030 100%);
  color: #d7c5ff;
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.1s;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -2px 4px rgba(0,0,0,0.4);
  user-select: none;
  position: relative;
}
.acc-bass-btn::after {
  content: '';
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.acc-bass-btn:hover {
  border-color: rgba(212, 175, 55, 0.55);
  background: radial-gradient(circle at 35% 30%, #4a40a0 0%, #2e2870 55%, #1a1644 100%);
}
.acc-bass-btn.pressed,
.acc-bass-btn:active {
  transform: scale(0.9);
  background: radial-gradient(circle at 35% 30%, rgba(212,175,55,0.35) 0%, rgba(212,175,55,0.12) 100%);
  border-color: #f2ca50;
  color: #f2ca50;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5), 0 0 22px rgba(212,175,55,0.35);
}

/* ── Bellows ── */
.accordion-bellows {
  flex: 0 0 52px;
  display: flex;
  flex-direction: column;
  background: #08071a;
  position: relative;
  overflow: hidden;
}
.bellows-fold {
  flex: 1;
  position: relative;
  background: linear-gradient(90deg,
    #16123a 0%,
    #0e0c26 8%,
    rgba(212,175,55,0.1) 16%,
    rgba(212,175,55,0.04) 28%,
    #0e0c26 38%,
    #16123a 50%,
    #0e0c26 62%,
    rgba(212,175,55,0.04) 72%,
    rgba(212,175,55,0.1) 84%,
    #0e0c26 92%,
    #16123a 100%
  );
  border-top: 1px solid rgba(212,175,55,0.18);
  border-bottom: 1px solid rgba(0,0,0,0.55);
}
.bellows-fold::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.07) 20%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.07) 80%, transparent 100%);
}

/* ── Horizontal keyboard on the right ── */
.acc-keyboard-wrap {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.acc-keyboard-wrap::-webkit-scrollbar { display: none; }

.acc-keyboard {
  position: relative;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 8px;
}

/* White key row */
.acc-wk-row {
  display: flex;
  gap: 3px;
  position: relative;
  z-index: 1;
}
.acc-wkey {
  width: 36px;
  height: 96px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #f0ece0 0%, #ffffff 55%, #edeae0 100%);
  border: 1px solid rgba(0,0,0,0.22);
  cursor: pointer;
  box-shadow: 2px 5px 12px rgba(0,0,0,0.5), inset 0 -2px 5px rgba(0,0,0,0.1);
  transition: background 0.07s, transform 0.07s;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 9px;
  user-select: none;
  flex-shrink: 0;
}
.acc-wkey span {
  font-family: Manrope, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: rgba(0,0,0,0.35);
  pointer-events: none;
}
.acc-wkey-oct {
  border-left: 2px solid rgba(212,175,55,0.4);
}
.acc-wkey:hover {
  background: linear-gradient(180deg, #fffbe8 0%, #ffffff 55%, #fffbe8 100%);
}
.acc-wkey.pressed,
.acc-wkey:active {
  background: linear-gradient(180deg, #d4af37 0%, #f2ca50 50%, #d4af37 100%);
  transform: translateY(4px);
  box-shadow: 1px 2px 5px rgba(0,0,0,0.5), 0 0 18px rgba(212,175,55,0.45);
}
.acc-wkey.pressed span { color: rgba(0,0,0,0.6); }

/* Black key row (overlapping) */
.acc-bk-row {
  display: flex;
  gap: 0;
  position: relative;
  margin-top: -58px;
  z-index: 2;
  pointer-events: none; /* container pass-through; buttons handle their own events */
  padding: 0 3px;
}
.acc-bkey {
  width: 24px;
  height: 58px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, #222 0%, #111 68%, #2d2d2d 100%);
  border: 1px solid #000;
  cursor: pointer;
  box-shadow: 2px 7px 12px rgba(0,0,0,0.9), inset 0 -1px 3px rgba(255,255,255,0.04);
  transition: background 0.07s, transform 0.07s;
  font-family: Manrope, sans-serif;
  font-size: 8px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5px;
  user-select: none;
  flex-shrink: 0;
  pointer-events: auto;
  /* margin to roughly align over white key gaps (C# over C-D gap, etc.) */
  margin-left: 12px;
  margin-right: 2px;
}
.acc-bkey:hover {
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 68%, #333 100%);
}
.acc-bkey.pressed,
.acc-bkey:active {
  background: linear-gradient(180deg, #7a5c0a 0%, #d4af37 100%);
  transform: translateY(4px);
  box-shadow: 1px 3px 5px rgba(0,0,0,0.9), 0 0 14px rgba(212,175,55,0.35);
  color: rgba(0,0,0,0.5);
}
.acc-bk-spacer  { width: 24px; flex-shrink: 0; } /* before C# — half of C white key */
.acc-bk-gap     { width: 42px; flex-shrink: 0; } /* E–F gap (no black key) */
.acc-bk-end     { flex: 1; }

/* ── Mobile responsive: stack bass + bellows above keyboard ── */
@media (max-width: 620px) {
  .accordion-body {
    flex-direction: column;
  }
  .accordion-left {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 12px 12px 8px;
  }
  .acc-bass-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
  }
  .acc-bass-btn {
    width: 44px;
    height: 44px;
    font-size: 11px;
  }
  .acc-bass-btn::after { top: 4px; left: 4px; right: 4px; bottom: 4px; }
  .accordion-bellows {
    flex-direction: row;
    height: 20px;
    width: 100%;
    flex: none;
  }
  .bellows-fold {
    flex: 1;
    border-top: none;
    border-bottom: none;
    border-left: 1px solid rgba(212,175,55,0.18);
    border-right: 1px solid rgba(0,0,0,0.55);
    background: linear-gradient(180deg,
      #16123a 0%, #0e0c26 8%,
      rgba(212,175,55,0.1) 16%, rgba(212,175,55,0.04) 28%,
      #0e0c26 38%, #16123a 50%,
      #0e0c26 62%, rgba(212,175,55,0.04) 72%,
      rgba(212,175,55,0.1) 84%, #0e0c26 92%, #16123a 100%
    );
  }
  .accordion-right {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 12px 8px;
  }
  .acc-wkey { width: 36px; height: 96px; }
  .acc-bkey { width: 24px; height: 58px; }
  .acc-bk-row { margin-top: -58px; }
  .acc-bk-spacer { width: 24px; }
  .acc-bk-gap    { width: 42px; }
}

/* ================================================================
   CHANG (dulcimer / harp)
   ================================================================ */
.chang-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}
.chang-top-bar {
  width: 100%;
  height: 20px;
  background: linear-gradient(90deg, #7a4f2a, #a8743c, #c8a060, #a8743c, #7a4f2a);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}
.chang-bottom-bar {
  width: 100%;
  height: 16px;
  background: linear-gradient(90deg, #7a4f2a, #a8743c, #7a4f2a);
  border-radius: 0 0 8px 8px;
}
.chang-strings-container {
  display: flex;
  align-items: flex-end;
  width: 100%;
  background: linear-gradient(180deg, #0e0c20 0%, #1a1730 100%);
  border-left: 2px solid #7a4f2a;
  border-right: 2px solid #7a4f2a;
  height: 220px;
  padding: 8px 6px 0;
  gap: 2px;
  overflow: hidden;
}
.chang-string-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  height: 100%;
  position: relative;
}
.chang-string {
  width: 2px;
  height: var(--ch-h, 150px);
  background: linear-gradient(180deg, rgba(200,180,100,0.3) 0%, var(--ch-tint, #c8c8c8) 50%, rgba(200,180,100,0.3) 100%);
  border-radius: 1px;
  transition: filter 0.1s;
  box-shadow: 0 0 3px rgba(255,255,255,0.1);
}
.chang-string-col:hover .chang-string { filter: brightness(2.5) drop-shadow(0 0 4px rgba(242,202,80,0.6)); }
.chang-string.plucked { animation: changPluck 0.5s ease-out; }
@keyframes changPluck {
  0%   { transform: scaleX(1);   filter: brightness(4); }
  15%  { transform: scaleX(5); }
  35%  { transform: scaleX(3); }
  55%  { transform: scaleX(2); }
  100% { transform: scaleX(1);   filter: brightness(1); }
}
.chang-lbl {
  font-family: Manrope, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: rgba(200,180,100,0.5);
  padding-bottom: 4px;
  user-select: none;
}
.chang-hint {
  font-family: Manrope, sans-serif;
  font-size: 12px;
  color: rgba(208,197,175,0.5);
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.03em;
}

/* ================================================================
   METRONOME
   ================================================================ */
.metro-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 340px;
  margin: 0 auto;
}
.metro-body {
  position: relative;
  width: 120px;
  height: 210px;
  background: linear-gradient(180deg, #2a273d 0%, #1b192e 60%, #131125 100%);
  border: 1px solid rgba(255,255,255,0.08);
  clip-path: polygon(18% 0%, 82% 0%, 100% 100%, 0% 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.metro-body-base {
  position: absolute;
  bottom: -10px;
  left: -12px;
  right: -12px;
  height: 14px;
  background: linear-gradient(90deg, #1b192e, #2a273d, #1b192e);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}
.metro-pendulum-wrap {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 185px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.metro-pendulum {
  transform-origin: top center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 4px;
  height: 100%;
}
.metro-pendulum.swinging {
  animation: metroPendulum calc(var(--metro-period, 1000ms)) ease-in-out infinite;
}
@keyframes metroPendulum {
  0%   { transform: rotate(-24deg); }
  50%  { transform: rotate(24deg); }
  100% { transform: rotate(-24deg); }
}
.metro-rod {
  width: 3px;
  flex: 1;
  background: linear-gradient(180deg, rgba(153,144,124,0.6) 0%, #d0c5af 100%);
  border-radius: 2px;
}
.metro-bob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f2ca50, #d4af37 60%, #a0882a);
  box-shadow: 0 0 14px rgba(242,202,80,0.55);
  flex-shrink: 0;
  margin-top: -2px;
}
.metro-beats {
  display: flex;
  gap: 14px;
  align-items: center;
}
.metro-beat {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  transition: background 0.06s, box-shadow 0.06s, border-color 0.06s;
}
.metro-beat.accent {
  width: 20px;
  height: 20px;
  border-color: rgba(242,202,80,0.35);
}
.metro-beat.active {
  background: #f2ca50;
  border-color: #f2ca50;
  box-shadow: 0 0 10px rgba(242,202,80,0.7);
}
.metro-beat.accent.active {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 18px rgba(255,255,255,0.65);
}
.metro-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.metro-bpm-label {
  font-family: Manrope, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #f2ca50;
  letter-spacing: -0.03em;
  line-height: 1;
}
.metro-bpm-range {
  width: 100%;
  accent-color: #f2ca50;
  cursor: pointer;
  height: 4px;
}
.metro-bpm-hints {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: Manrope, sans-serif;
  font-size: 11px;
  color: rgba(208,197,175,0.45);
}
.metro-sig-wrap {
  display: flex;
  gap: 8px;
}
.metro-sig-btn {
  padding: 5px 14px;
  border-radius: 6px;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.14);
  background: transparent;
  color: #d0c5af;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.metro-sig-btn:hover { background: rgba(242,202,80,0.08); color: #f2ca50; }
.metro-sig-btn.active { background: rgba(242,202,80,0.14); border-color: rgba(242,202,80,0.5); color: #f2ca50; }
.metro-start-btn {
  padding: 10px 36px;
  border-radius: 8px;
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 700;
  background: rgba(242,202,80,0.1);
  border: 1px solid rgba(242,202,80,0.32);
  color: #f2ca50;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  letter-spacing: 0.02em;
}
.metro-start-btn:hover { background: rgba(242,202,80,0.18); }
.metro-start-btn.running { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.38); color: #f87171; }
.metro-start-btn.running:hover { background: rgba(248,113,113,0.18); }

/* ================================================================
   MOBILE ENHANCEMENTS (≤ 640px)
   ================================================================ */
@media (max-width: 640px) {
  /* ── Hero section ── */
  #hero {
    min-height: 560px;
    padding-top: 28px;
    padding-bottom: 24px;
  }
  .hero-orb-gold  { width: 260px; height: 260px; }
  .hero-orb-purple { width: 200px; height: 200px; }

  /* ── CTA buttons ── */
  .hero-cta-primary,
  .hero-cta-secondary {
    padding: 12px 24px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  /* ── Instrument tabs — nowrap + left-aligned for horizontal scroll ── */
  .inst-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  .inst-tab {
    padding: 8px 15px;
    font-size: 13px;
  }

  /* ── Piano scroll hint ── */
  #inst-piano .piano-scroll-hint {
    display: block;
  }

  .piano-wrap {
    justify-content: flex-start;
  }

  /* ── Stat values ── */
  .stat-value-main {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  /* ── Event countdown compact ── */
  .countdown-num {
    font-size: 20px;
  }
  .countdown-sep {
    font-size: 17px;
  }

  /* ── Quiz option smaller ── */
  .quiz-opt {
    padding: 11px 14px;
    font-size: 14px;
  }

  /* ── Teacher rows — allow wrapping ── */
  .teacher-row {
    flex-wrap: wrap;
  }

  /* ── Dept bento — min height so summary + overlay stack without overlap ── */
  .dept-bento-grid {
    grid-auto-rows: minmax(300px, auto) !important;
  }

  /* ── Touch targets — prevent 300ms delay ── */
  .drum-pad,
  .piano-key,
  .inst-tab,
  .filter-btn,
  .doira-zone,
  .guitar-string,
  .chang-string-col {
    touch-action: manipulation;
  }

  /* ── Glass panel padding ── */
  .glass-panel.quiz-panel-inner {
    padding: 20px;
  }

  /* ── blog article ── */
  .prose-blog {
    font-size: 15px;
    line-height: 1.7;
  }

  /* ── Gallery filter bar — smaller tags ── */
  .gallery-filter a {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* ── Map ── */
  .map-embed-wrap {
    min-height: 240px;
  }
}

/* ── Extra small (≤ 380px phones) ── */
@media (max-width: 380px) {
  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
    justify-content: center;
  }
  .hero-title-gradient {
    font-size: clamp(1.7rem, 8.5vw, 2.4rem);
  }
  .inst-tab {
    padding: 7px 13px;
    font-size: 12px;
  }
}

/* ── iOS safe-area padding ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  footer {
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
  }
  .site-nav.is-open {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

/* ================================================================
   LANGUAGE SWITCHER
   ================================================================ */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-switcher__toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.lang-switcher__toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
  color: #fff;
}

.lang-switcher__flag {
  font-size: 16px;
  line-height: 1;
}

.lang-switcher__code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* CSS chevron — no Material font (avoids literal "expand_more" if fonts/CSP block) */
.lang-switcher__chevron {
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.75;
  transform: translateY(-0.1em) rotate(45deg);
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.lang-switcher__toggle:hover .lang-switcher__chevron {
  opacity: 1;
}

.lang-switcher__toggle[aria-expanded="true"] .lang-switcher__chevron {
  transform: translateY(0.05em) rotate(-135deg);
}

.lang-switcher__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: rgba(20, 20, 28, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 1px rgba(212, 175, 55, 0.12);
  z-index: 200;
}

.lang-switcher__dropdown.open {
  display: block;
}

.lang-switcher__form {
  display: block;
  margin: 0;
  padding: 0;
}

.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.lang-switcher__option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.lang-switcher__option.active {
  color: rgb(212, 175, 55);
  background: rgba(212, 175, 55, 0.08);
  font-weight: 700;
}

.lang-switcher__option.active::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(212, 175, 55);
  margin-left: auto;
  flex-shrink: 0;
}

/* ================================================================
   PRICING CARDS & CALCULATOR
   ================================================================ */
.pricing-card {
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45), 0 0 40px rgba(212, 175, 55, 0.08);
}

.pricing-card__glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 200%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pricing-card:hover .pricing-card__glow {
  opacity: 1;
}
.pricing-card__glow--music {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
}
.pricing-card__glow--art {
  background: radial-gradient(circle, rgba(255, 181, 156, 0.08) 0%, transparent 50%);
}
.pricing-card__glow--free {
  background: radial-gradient(circle, rgba(120, 220, 160, 0.08) 0%, transparent 50%);
}

.pricing-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.pricing-card:hover .pricing-card__icon {
  transform: scale(1.08);
  border-color: rgba(212, 175, 55, 0.3);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pricing-card__amount {
  font-family: Newsreader, serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pricing-card__amount--free {
  font-size: clamp(2.4rem, 6vw, 3.2rem);
}

.pricing-card__currency {
  font-family: Manrope, sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.pricing-card__discount {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 6px 14px;
}

.pricing-card__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(120, 220, 160, 0.9);
  background: rgba(120, 220, 160, 0.08);
  border: 1px solid rgba(120, 220, 160, 0.15);
  border-radius: 100px;
  padding: 6px 14px;
}

/* ── Calculator ── */
.calc-dir-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e4dffc;
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}
.calc-dir-btn:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.08);
  color: #f2ca50;
}
.calc-dir-btn.active {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.14);
  color: #f2ca50;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.12);
}

.calc-counter-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #e4dffc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.calc-counter-btn:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.1);
  color: #f2ca50;
  transform: scale(1.1);
}
.calc-counter-btn:active {
  transform: scale(0.95);
}

.calc-counter-value {
  font-size: clamp(2rem, 5vw, 3rem);
  min-width: 48px;
  text-align: center;
  line-height: 1;
  transition: transform 0.15s ease;
}
.calc-counter-value.bump {
  animation: calcBump 0.25s ease;
}
@keyframes calcBump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Custom checkbox */
.calc-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.calc-check-visual {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.calc-checkbox:checked + .calc-check-visual {
  border-color: rgba(120, 220, 160, 0.6);
  background: rgba(120, 220, 160, 0.15);
  color: rgba(120, 220, 160, 0.9);
}
.calc-checkbox:focus-visible + .calc-check-visual {
  outline: 2px solid #f2ca50;
  outline-offset: 2px;
}

/* Result panel */
.calc-result {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.calc-result__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.calc-result__body {
  padding: 20px;
  transition: opacity 0.3s ease;
}

.calc-result__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.calc-result__label {
  font-family: Manrope, sans-serif;
  font-size: 14px;
  color: rgba(228, 223, 252, 0.7);
}

.calc-result__value {
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #e4dffc;
}
.calc-result__value small {
  font-weight: 400;
  font-size: 12px;
  color: rgba(228, 223, 252, 0.5);
  margin-left: 4px;
}

.calc-result__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.calc-result__total-value {
  font-family: Newsreader, serif;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1;
}
.calc-result__total-value small {
  font-weight: 400;
  font-size: 13px;
  color: rgba(228, 223, 252, 0.5);
  margin-left: 4px;
}

.calc-result__note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(120, 220, 160, 0.05);
  border-top: 1px solid rgba(120, 220, 160, 0.1);
}
.calc-result__note.hidden {
  display: none;
}

/* Result body when free */
.calc-result__body.is-free .calc-result__line {
  opacity: 0.3;
  text-decoration: line-through;
}
.calc-result__body.is-free .calc-result__total-value {
  color: rgba(120, 220, 160, 0.9);
}
