:root { color-scheme: light; --ink:#20313a; --muted:#66757d; --blue:#2b6f89; --blue-dark:#1f5368; --paper:#fffdf7; --green:#397150; font-family:ui-rounded,"SF Pro Rounded","Avenir Next",system-ui,sans-serif; }
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
[hidden] { display:none !important; }
html,body { margin:0; width:100%; height:100%; overflow:hidden; }
body { background:#f7f1e3; color:var(--ink); touch-action:manipulation; -webkit-text-size-adjust:100%; }
button { font:inherit; cursor:pointer; touch-action:manipulation; }
button:disabled { cursor:default; opacity:.45; }
button:focus-visible { outline:3px solid #e6b947; outline-offset:3px; }
.music-shell { display:grid; grid-template-rows:auto minmax(0,1fr); width:min(1120px,100%); height:100vh; height:100dvh; margin:auto; padding:max(10px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
h1 { margin:0; font-size:38px; } h2 { margin:0; font-size:32px; }
.profile-summary { display:flex; align-items:center; gap:12px; font-weight:800; flex:0 0 auto; }
.quiet-button { min-height:44px; padding:7px 13px; border:2px solid #b8c6ca; border-radius:12px; background:var(--paper); color:var(--blue-dark); font-weight:800; }
.activity-link { min-height:32px; padding:0; border:0; background:none; color:var(--blue-dark); font-size:14px; font-weight:800; }
.setup-card,.practice-card,.finish-card { min-height:0; border:3px solid white; border-radius:24px; background:var(--paper); box-shadow:0 7px 22px rgb(69 67 57 / 14%); }
.setup-card { align-self:center; padding:20px 28px; }
.eyebrow { margin:0 0 4px; color:var(--blue-dark); font-size:13px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.piano-choice { display:grid; justify-items:center; gap:5px; width:min(400px,100%); margin:16px auto; padding:12px 22px; border:3px solid var(--blue); border-radius:20px; background:#e9f5f8; color:var(--ink); }
.piano-choice svg { width:100%; max-height:125px; } .piano-choice strong { font-size:29px; } .piano-choice span { font-size:18px; } .piano-choice small { min-height:18px; color:var(--green); font-weight:800; }
.save-note,.privacy-note { margin:8px 0; color:var(--muted); font-size:14px; line-height:1.4; } .credits-link { color:var(--muted); font-size:12px; }
.primary-button,.secondary-button { min-height:58px; min-width:145px; padding:10px 18px; border-radius:15px; font-size:21px; font-weight:800; }
.primary-button { border:0; background:var(--blue); color:white; box-shadow:0 3px 0 var(--blue-dark); }
.secondary-button { border:2px solid var(--blue); background:white; color:var(--blue-dark); }
.practice-card { display:grid; grid-template-rows:auto minmax(0,1fr); padding:12px 18px 18px; }
.practice-top { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:48px; border-bottom:1px solid #d9d5c9; }
.parent-tools { display:flex; gap:14px; } .parent-tools button { min-height:44px; min-width:52px; padding:8px; border:0; border-radius:8px; background:transparent; color:var(--muted); font-size:13px; font-weight:600; }
.piano-layout { display:grid; grid-template-columns:minmax(0,1fr) 265px; gap:18px; min-height:0; padding-top:14px; }
.staff-area { display:grid; grid-template-rows:minmax(0,1fr) 52px; align-items:center; min-height:0; padding:14px; border-radius:18px; background:white; }
#staff-picture { min-height:0; } .piano-staff { display:block; width:100%; max-height:400px; }
.staff-lines,.ledger-line { stroke:#20313a; stroke-width:3; fill:none; }
.staff-note { fill:var(--blue-dark); stroke:var(--blue-dark); stroke-width:5; } .is-correct .staff-note { fill:var(--green); stroke:var(--green); }
#note-name { margin:0; text-align:center; font-size:32px; color:var(--blue-dark); font-weight:800; }
.piano-controls { display:flex; flex-direction:column; justify-content:center; align-items:stretch; gap:16px; min-height:0; padding:18px; border:2px solid #d4e1e4; border-radius:18px; background:#f8fcfd; text-align:center; }
.piano-controls h2 { font-size:30px; } .piano-feedback { min-height:60px; margin:0; font-size:23px; font-weight:800; color:var(--muted); } .piano-feedback.is-correct { color:var(--green); } .microphone-status { min-height:36px; margin:0; font-size:14px; line-height:1.3; color:var(--muted); }
.piano-journey { position:relative; display:flex; align-items:center; justify-content:space-around; width:min(430px,55vw); height:42px; }
.piano-journey::before { content:""; position:absolute; right:15px; left:15px; height:6px; border-radius:99px; background:#cad4d7; }
.journey-step { z-index:1; width:18px; height:18px; border:4px solid #91a5ab; border-radius:50%; background:var(--paper); } .journey-step.is-complete { border-color:var(--green); background:var(--green); } .journey-finish { z-index:1; font-size:23px; }
.journey-traveler { position:absolute; z-index:2; left:var(--journey-position,5.5%); top:3px; display:grid; place-items:center; width:34px; height:34px; border:2px solid white; border-radius:10px; background:#fff5cd; font-size:21px; transform:translateX(-50%); transition:left 450ms ease; }
.finish-card { align-self:center; padding:38px; text-align:center; } .finish-card h2 { font-size:62px; } .finish-card p { font-size:23px; } .finish-card>div { display:flex; justify-content:center; gap:20px; }
dialog { max-width:min(560px,90vw); border:3px solid white; border-radius:22px; padding:24px; background:var(--paper); color:var(--ink); } dialog::backdrop { background:rgb(32 49 58 / 40%); } dialog p { line-height:1.5; } dialog>div { display:flex; gap:12px; justify-content:flex-end; }
.rotate-message { display:none; position:fixed; z-index:200; inset:0; place-items:center; padding:25px; background:#f7f1e3; text-align:center; font-size:25px; }
.has-active-task-list .practice-card { padding-bottom:78px; }
@media(max-height:700px) and (orientation:landscape) { .music-shell { padding-top:5px; padding-bottom:6px; } .setup-card { padding:14px 24px; } .piano-choice { margin:10px auto; padding:7px 18px; } .piano-choice svg { max-height:95px; } .practice-card { padding-top:6px; } .piano-layout { padding-top:8px; } .piano-controls { gap:10px; padding:12px; } .piano-feedback { min-height:50px; } }
@media(max-width:850px) and (orientation:landscape) { .piano-layout { grid-template-columns:minmax(0,1fr) 230px; gap:12px; } .staff-area { padding:6px; } .piano-controls h2 { font-size:27px; } }
@media(orientation:portrait) and (max-width:850px) { .music-shell { display:none !important; } .rotate-message { display:grid; } }
@media(prefers-reduced-motion:reduce) { .journey-traveler { transition:none; } }
.emet-motion-disabled .journey-traveler { transition:none; }
