/* Bright-room theme. Keep the advertising band and instrument colors distinct. */
:root {
  color-scheme: light;
  --bg: #f3f5f9;
  --panel: #fff;
  --line: #d8dde7;
  --text: #191e2e;
  --muted: #535d70;
  --lime: #d4ff62;
  --green: #426400;
  --purple: #6230c5;
  --orange: #ffd7bc;
}
.site-header { background: var(--bg); }
.icon-button { background: white; border-color: #b9c2d0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline-color: var(--purple); }
.eyebrow, .instruction-list li:before { color: var(--purple); }
.home-heading { align-items: start; }
h1 { font-weight: 700; }
.home-heading h1 { font-size: clamp(34px,4vw,52px); letter-spacing: -1.6px; }
.station-heading h1 { margin-bottom: 0; }
.station-card { box-shadow: 0 6px 22px #18234005; }
.station-card:hover { border-color: var(--purple); }
.station-card h2 { font-weight: 700; }
.wave { color: var(--green); }
.mini-piano i { background: #faf9ff; border: 1px solid #b5aec8; box-shadow: inset 0 -4px #ddd7e9; }
.mini-piano i.active { background: var(--purple); border-color: var(--purple); box-shadow: inset 0 -4px #402084; }
.mini-piano b { background: #252030; }
.piano-card .card-action, .button.purple { color: white; }
.button.secondary { background: white; border-color: #b9c2d0; }
.instruction-list li { font-size: 16px; line-height: 1.5; }
.instruction-list strong { font-size: 17px; margin-bottom: 4px; }
.notice { background: #f3f5f9; font-size: 14px; }
.notice:empty, .guide-description:empty { display: none; }
.safety-note { background: #fff9e9; border-color: #e3d5aa; color: #67510d; }
.status { color: var(--green); font-weight: 600; font-size: 14px; }
.hearing-age { font-size: 22px; }
.hearing-age strong { display: block; color: var(--green); font-size: 38px; }
.kiosk .hearing-age strong { font-size: 46px; }
.sweep-track { background: #e2e8d9; }
.sweep-progress { background: #628b19; }
input[type=range] { accent-color: var(--green); }
.device-status.connected { color: var(--green); }
select { background: white; border-color: #b9c2d0; }
.song-header h2 { font-weight: 700; line-height: 1.25; margin: 0; }
.song-progress { background: #e8e3f2; }
.next-note { color: white; }
.guide-title { font-size: 28px; font-weight: 700; }
.guide-description { font-size: 16px; }
.note-chip { background: #ede8f7; color: #503978; }
.note-chip small { opacity: 1; font-size: 12px; }
.note-chip.current { color: white; border-color: #351273; }
.key.white { background: white; color: var(--text); border: 1px solid #a6afbf; box-shadow: inset 0 -5px #d7dce6; font-size: 20px; }
.key.black { background: #252330; color: white; border-color: white; }
.key.white.expected { background: var(--purple); color: white; border-color: #351273; box-shadow: inset 0 -5px #40188e; }
.key.white.expected small { color: white; }
.key.pressed { background: var(--lime) !important; color: #203000 !important; }
.key.wrong { background: var(--orange) !important; color: #522503 !important; }
.key small { color: var(--muted); font-size: 12px; }
.success-panel .celebration { color: var(--green); }
.staff-controls { border-color: #c2984d; background: #fff8e8; }
.staff-controls>span { color: #67510d; font-weight: 700; }
.kiosk .header-right { display: none !important; }
.kiosk.staff-open .header-right { display: flex !important; }
footer { border-top: 1px solid #b8de52; box-shadow: 0 -5px 20px #17210009; }
.ad-copy>strong { font-size: 15px; font-weight: 800; }
.ad-copy p { font-size: 17px; }
.setup-note { line-height: 1.5; }
@media (min-width:1001px) and (max-height:900px) {
  .kiosk .guide-title { font-size: 26px; }
  .kiosk .hearing-age { margin-top: 8px; }
  .kiosk .hearing-age strong { font-size: 36px; }
  .kiosk .instruction-list li { font-size: 15px; }
  .kiosk .instruction-list strong { font-size: 16px; }
  .home-heading h1 { font-size: 38px; }
}
@media (max-width:800px) {
  body { padding-bottom: 125px; }
  .ad-copy>strong { font-size: 13px; }
  .ad-copy p { font-size: 14px; }
}
@media (max-width:650px) {
  .home-heading h1 { font-size: 33px; letter-spacing: -1px; }
  .guide-title { font-size: 25px; }
  .hearing-age { font-size: 21px; }
  .hearing-age strong, .kiosk .hearing-age strong { font-size: 37px; }
  .key.white { font-size: 18px; }
}

/* The whole keyboard shows middle C at its physical centre. */
main { display: flex; flex-direction: column; }
main > * { flex-shrink: 0; }
.instrument-scroll { overflow-x: auto; padding-bottom: 6px; }
.instrument { min-width: 640px; }
.keyboard { gap: 4px; }
.key.black { width: 4.3%; transform: translateX(-50%); }
.key.black.pressed { transform: translate(-50%, 2px); }
.key.white { font-size: 18px; }
.key.middle-c { border-bottom: 6px solid var(--purple); }
.key.middle-c small { font-size: 10px; font-weight: 700; }
.piano-guide { min-height: 78px; padding-bottom: 12px; gap: 16px; }
.next-note { width: 58px; height: 58px; font-size: 34px; border-radius: 12px; }
.guide-title { font-size: 26px; margin-bottom: 2px; }
.preview-caption { align-self: end; margin: 0 0 8px auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.note-preview { --note-height: 40px; height: 144px; position: relative; z-index: 3; pointer-events: none; background: linear-gradient(180deg, #fff 0%, #f7f4ff 100%); border-bottom: 2px solid #d9c7fa; border-radius: 12px 12px 0 0; }
.falling-note { position: absolute; top: 0; left: 0; width: 42px; height: var(--note-height); border: 1px solid #b297df; background: #ede3ff; color: #52269b; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 20px; font-weight: 800; transition: transform 340ms cubic-bezier(.2,.75,.3,1), background-color 200ms; box-shadow: 0 3px 8px #40188e12; }
.falling-note small { font-size: 10px; font-weight: 700; }
.falling-note.current { background: var(--purple); color: white; border-color: #431e85; flex-direction: column; gap: 0; }
.falling-note.current small { font-size: 9px; line-height: 10px; }
.falling-note.arrived { background: #d4ff62; border-color: #89af30; color: #304806; z-index: 4; }
.piano-stage .notice { min-height: 42px; padding: 9px 12px; margin-top: 8px; }
.piano-stage .notice:empty { display: block; visibility: hidden; }
.piano-sidebar { display: flex; flex-direction: column; }
.middle-c-map { position: relative; display: flex; gap: 3px; height: 96px; max-width: 205px; width: 100%; margin: auto auto 0; padding-top: 8px; }
.middle-c-map span { flex: 1; border: 1px solid #abb1bd; border-radius: 0 0 5px 5px; display: flex; align-items: end; justify-content: center; padding-bottom: 9px; }
.middle-c-map .map-c { background: var(--purple); color: white; border-color: var(--purple); font-weight: 800; }
.middle-c-map b { position: absolute; background: #252330; height: 56%; width: 12%; left: 33.5%; top: 8px; border-radius: 0 0 4px 4px; }
.middle-c-map b:last-child { left: 54%; }
.middle-c-caption { text-align: center; color: var(--purple); font-weight: 700; font-size: 13px; margin: 10px 0 0; }
.success-panel { min-height: 410px; display: flex; flex-direction: column; justify-content: center; }
.brand-showcase { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 14px; margin-top: auto; padding-top: 24px; }
.showcase-brand, .service-tile { min-height: clamp(118px,13vh,156px); border: 1px solid #ddd4ec; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.showcase-brand { background: white; flex-direction: column; gap: 9px; padding: 12px; }
.showcase-brand img { width: 190px; max-width: 90%; height: auto; border-radius: 7px; }
.showcase-brand > strong { font-size: 12px; color: #4d3a6d; }
.service-tile { background: #eee7fa; color: #532798; flex-direction: column; gap: 10px; padding: 15px 8px; }
.service-tile svg { height: 49px; width: 68px; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.service-tile strong { font-size: clamp(18px,1.8vw,25px); text-align: center; letter-spacing: -.4px; }
.service-tile small { display: block; margin-top: 5px; font-weight: 500; font-size: 13px; letter-spacing: 0; }
.service-tile:nth-child(3) { background: #e8edff; color: #34489b; }
.service-tile:nth-child(4) { background: #eaf1dc; color: #436314; }
footer { min-height: 119px; padding-top: 17px; padding-bottom: 17px; gap: 24px; }
.ad-copy p { font-size: 14px; }
.ad-contact { display: flex; gap: 26px; margin-top: 10px; font-size: 16px; font-weight: 750; color: #263117; }
body { padding-bottom: 125px; }
main { min-height: calc(100vh - 247px); }
@media (min-width:1600px) {
  main { max-width: 1664px; padding-top: 38px; }
  .site-header { max-width: 1664px; }
  .station-layout { grid-template-columns: minmax(0,1fr) 305px; }
  .keyboard { height: 202px; }
  .note-preview { height: 156px; }
  .brand-showcase { gap: 20px; }
  .service-tile { flex-direction: row; gap: 18px; }
  .service-tile strong { text-align: left; }
}
.kiosk .site-header { padding-top: 14px; padding-bottom: 14px; }
.kiosk .brand-logo { width: 156px; max-height: 71px; }
.kiosk main { padding-top: 22px; padding-bottom: 20px; min-height: calc(100vh - 225px); }
.kiosk .station-heading { margin-bottom: 18px; }
.kiosk .station-heading h1 { font-size: 36px; margin: 8px 0; }
.kiosk .piano-stage { padding: 24px; }
.kiosk .song-progress { margin: 16px 0; }
.kiosk .piano-guide { min-height: 66px; padding-bottom: 8px; }
.kiosk .note-preview { height: 134px; }
.kiosk .keyboard { height: 176px; }
.kiosk .hearing-stage { padding-top: 26px; padding-bottom: 26px; }
.kiosk .hearing-stage .frequency { font-size: 110px; }
.kiosk .hearing-stage .wave { height: 70px; }
@media (min-width:1001px) and (max-height:900px) {
  .kiosk .site-header { padding-top: 7px; padding-bottom: 7px; }
  .kiosk .brand-logo { max-height: 48px; width: 106px; }
  .kiosk main { padding-top: 12px; padding-bottom: 16px; min-height: calc(100vh - 188px); }
  .kiosk .station-heading { margin-bottom: 12px; }
  .kiosk .station-heading h1 { font-size: 28px; }
  .kiosk .station-heading .eyebrow { display: none; }
  .kiosk .panel { padding: 16px; }
  .kiosk .hearing-stage .frequency { font-size: 84px; }
  .kiosk .hearing-stage .wave { height: 62px; }
  .kiosk .song-header h2 { font-size: 19px; }
  .kiosk .song-progress { margin: 10px 0; }
  .kiosk .piano-guide { min-height: 48px; padding-bottom: 6px; }
  .kiosk .next-note { width: 42px; height: 42px; font-size: 28px; }
  .kiosk .guide-title { font-size: 23px; }
  .kiosk .guide-description { font-size: 13px; }
  .kiosk .note-preview { --note-height: 26px; height: 94px; }
  .kiosk .falling-note { width: 37px; font-size: 17px; border-radius: 6px; }
  .kiosk .falling-note.current { font-size: 15px; line-height: 16px; }
  .kiosk .keyboard { height: 123px; }
  .kiosk .key.white { padding-bottom: 10px; }
  .kiosk .piano-stage .notice { margin-top: 5px; padding: 2px 9px; min-height: 25px; font-size: 12px; }
  .kiosk .middle-c-map { height: 70px; max-width: 165px; }
  .kiosk .success-panel { min-height: 333px; }
  .brand-showcase { gap: 12px; padding-top: 16px; }
  .showcase-brand, .service-tile { min-height: 96px; padding: 10px; border-radius: 13px; }
  .showcase-brand { gap: 4px; }
  .showcase-brand img { width: 138px; max-height: 58px; object-fit: contain; }
  .showcase-brand > strong { font-size: 10px; }
  .service-tile { flex-direction: row; gap: 9px; }
  .service-tile svg { height: 36px; width: 45px; flex-shrink: 0; }
  .service-tile strong { font-size: 18px; text-align: left; }
  .service-tile small { font-size: 11px; }
  footer { min-height: 112px; }
  footer a { font-size: 26px; }
  .ad-copy p { font-size: 13px; }
  .ad-contact { font-size: 15px; margin-top: 7px; }
}
@media (max-width:1200px) {
  .station-layout:has(.piano-stage) { grid-template-columns: minmax(0,1fr); }
  .piano-sidebar { padding: 16px; }
  .piano-sidebar h2, .piano-sidebar .middle-c-map, .piano-sidebar .middle-c-caption { display: none; }
  .piano-sidebar .instruction-list { grid-template-columns: 1.4fr 1fr 1fr; margin: 0; gap: 15px; }
  .piano-sidebar .instruction-list li { font-size: 13px; }
  .piano-sidebar .instruction-list strong { font-size: 15px; }
  footer { align-items: start; }
  footer a { font-size: 24px; padding-top: 19px; }
}
@media (max-width:800px) {
  .brand-showcase { grid-template-columns: repeat(2,1fr); }
  .showcase-brand, .service-tile { min-height: 118px; }
  .service-tile strong { font-size: 20px; }
  .ad-contact { gap: 20px; font-size: 14px; margin-top: 7px; }
  footer a { padding: 0; font-size: 22px; }
  footer { min-height: 144px; gap: 6px; padding-top: 12px; padding-bottom: 12px; }
  .ad-copy p { font-size: 12px; }
  body { padding-bottom: 161px; }
  .preview-caption { display: none; }
  .piano-sidebar .instruction-list { grid-template-columns: 1fr; }
  .success-panel { min-height: 390px; }
}
@media (prefers-reduced-motion:reduce) {
  .falling-note { transition: none; }
}
