.piano-page{max-width:1240px;margin:20px auto;padding:0 16px;color:#173849;font-family:'Zen Maru Gothic',sans-serif}.page-heading{padding:8px 4px 18px}.page-heading h1{font-size:34px;margin:0 0 6px}.page-heading p{margin:0}.parent-note{max-width:950px;margin:32px auto;padding:24px;background:#f9f0dc;line-height:1.9}.parent-note h2{font-size:23px}
#host{--cream:#ffedc7;--gold:#d3a55b;--dark:#132a42;--apricot:#f6b573;position:relative;isolation:isolate;container-type:size;height:740px;max-width:1200px;margin:auto;overflow:hidden;background:#15283f url('./assets/background.webp') center/cover;border:2px solid #193449;border-radius:12px;color:var(--cream);font-family:'Zen Maru Gothic',sans-serif}#host *{box-sizing:border-box}#host [hidden]{display:none!important}#host button{font:800 16px/1.2 'Zen Maru Gothic',sans-serif;min-width:0;min-height:42px;border:1px solid var(--gold);border-radius:9px;background:#17394ee8;color:var(--cream);padding:10px 14px;cursor:pointer;touch-action:manipulation}#host button:disabled{opacity:.4;cursor:default}#host button:focus-visible,#host input:focus-visible{outline:3px solid #fff1a7;outline-offset:3px}#host button:hover:enabled{filter:brightness(1.12)}#host button.primary{background:var(--apricot);border-color:#ffddb0;color:#462b27;box-shadow:0 3px 0 #885632}#host button[aria-pressed=true]{background:var(--cream);color:#442f26;box-shadow:inset 0 -3px 0 #d99b52}#host input{accent-color:#dfa34e}#host .theatre-top{height:60px;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 18px;background:#102840cf;border-bottom:1px solid #d5a66260}#host .theatre-top strong{font-size:16px;white-space:nowrap}#host nav{display:flex;gap:7px}#host nav button{font-size:12px;padding:7px 10px;min-height:33px}#base{height:calc(100% - 60px)}#cover{height:100%;display:grid;grid-template-columns:1fr 1.15fr;gap:35px;align-items:center;padding:35px 75px}.invitation{display:flex;flex-direction:column;align-items:flex-start;gap:22px}.invitation h2{font-size:clamp(32px,5cqw,61px);line-height:1.28;margin:0;letter-spacing:.025em}.invitation h2 em{color:var(--apricot);font-style:normal}.invitation p{font-size:18px;line-height:1.8;margin:0}.invitation small{font-size:12px}.keyart{width:100%;min-width:0;max-height:100%;object-fit:contain;border-radius:44% 44% 3% 3%;box-shadow:0 12px 25px #07182766;border:1px solid #dcb87c70}#host #start{font-size:22px;min-height:54px;width:100%;max-width:340px}#ready-note{font-size:11px}
#play{height:100%;display:grid;grid-template-rows:auto minmax(60px,1fr) minmax(140px,42%) auto;gap:14px;padding:22px 42px 20px}.controls{max-width:800px;justify-self:center;width:100%;display:flex;flex-direction:column;gap:12px}#timbres{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:5px;background:#603a26;border:1px solid var(--gold);border-radius:14px;box-shadow:0 5px 9px #0004}#timbres button{background:#54382c;border-color:transparent}#timbres button[aria-pressed=true]{background:var(--cream)}.options{display:flex;justify-content:center;gap:28px}.choice{display:flex;border-radius:8px;padding:3px;background:#fff1d520;border:1px solid #d7ad7470;gap:3px}.choice button{font-size:13px;min-height:33px;padding:7px 19px;border:0;background:transparent}#range-note{text-align:center;color:#f3dcb5;font-size:11px}.note-display{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;min-height:0}#note-now{font-size:clamp(24px,7cqh,59px);line-height:1.05;font-weight:900;color:#ffcf7a;text-shadow:0 3px 15px #f4b16340}#ribbon{display:flex;justify-content:center;gap:6px;min-height:28px;max-width:100%;overflow:hidden;padding:5px 18px;background:#f7e5c8;color:#503728;clip-path:polygon(0 0,100% 0,98% 50%,100% 100%,0 100%,2% 50%)}#ribbon span{font-size:14px;white-space:nowrap}#prompt{font-size:12px;margin:0;color:#fff0cd}.instrument{background:linear-gradient(#854d2d,#4a2c22);border:2px solid #ba8b48;border-radius:12px;padding:12px 12px 6px;min-width:0;min-height:0;display:flex;flex-direction:column;box-shadow:0 9px 0 #1d1721,0 15px 15px #0006}#keyboard-scroll{overflow-x:auto;overflow-y:hidden;flex:1;min-height:0;scrollbar-width:thin;scrollbar-color:#c58e50 #3a2a26;overscroll-behavior:contain}#keyboard{position:relative;height:100%;min-width:500px;width:100%;user-select:none;touch-action:none}#keyboard.full{min-width:950px}#white-keys{display:flex;height:100%;gap:2px}#host #keyboard button{border-radius:0 0 6px 6px;padding:0 0 13px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px;touch-action:none;user-select:none;opacity:1;box-shadow:inset 0 -5px 0 #ccbe9f;border:1px solid #af9771;min-height:0;line-height:1.1;cursor:pointer}#keyboard .white-key{flex:1;background:linear-gradient(#fff9e9 0%,#fff5de 75%,#eaddbc);color:#513829;z-index:1}#host #keyboard button.pressed{background:linear-gradient(#e2a753,#ffd695);box-shadow:inset 0 -2px 0 #b97832;transform:translateY(3px)}#black-keys{position:absolute;inset:0;pointer-events:none}#host #keyboard .black-key{position:absolute;height:61%;z-index:2;background:linear-gradient(#151f2d,#2d2d34 70%,#101922);box-shadow:inset 0 -5px 0 #060e18;border:1px solid #8f744b;color:#fff0d5;pointer-events:auto;padding-bottom:12px;font-size:12px}#host #keyboard .black-key.pressed{background:linear-gradient(#76522e,#b47b3b);box-shadow:inset 0 -2px 0 #492c24}#keyboard .key-name{font-size:clamp(14px,2.1cqw,22px);white-space:nowrap}#keyboard .black-key .key-name{font-size:clamp(10px,1.2cqw,14px)}#keyboard .key-pc{font-size:10px;opacity:.58}#keyboard button:focus-visible{outline-offset:-4px;outline-color:#a32b13}#key-navigation{display:flex;align-items:center;gap:8px;height:35px;flex:none;padding-top:5px}#host #key-navigation button{font-size:11px;min-height:27px;padding:4px 10px;border:0;background:#2b293666;white-space:nowrap}#key-position{flex:1;min-width:0;height:27px;cursor:ew-resize}.play-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px}.play-bottom small{font-size:11px;text-shadow:0 2px 3px #000}.play-bottom button{min-width:130px}#result{height:100%;display:grid;grid-template-columns:.75fr 1.3fr;gap:38px;align-items:center;padding:45px 80px}.result-art{width:100%;border-radius:48% 48% 4px 4px;box-shadow:0 8px 20px #0005}.program{color:#513724;text-align:center;padding:32px;background:#fff0d1;border:7px double #c69752;box-shadow:8px 14px 0 #0b223160;display:flex;flex-direction:column;gap:22px}.program h2{font-size:39px;margin:0}.program>small{font-size:12px}.program p{margin:0;font-size:16px}.session-stats{display:flex;gap:20px;justify-content:center;font-size:12px}.session-stats b{font-size:22px}#result-notes{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;border-top:1px solid #c3975e;border-bottom:1px solid #c3975e;padding:18px 8px;min-height:62px}#result-notes span{font-size:22px;font-weight:bold}.result-actions{display:flex;flex-direction:column;gap:12px}
#modal{position:absolute;inset:0;z-index:50;background:#091a2cce;display:grid;place-items:center;padding:16px}#modal>section{max-height:100%;overflow:auto;width:min(650px,100%);background:#fff0d5;color:#402f29;border:6px double #ce9d59;border-radius:12px;padding:25px;box-shadow:0 10px 25px #0005}#modal header{display:flex;justify-content:space-between;align-items:center;gap:10px}#modal h2{font-size:24px;margin:0}#dialog-content{font-size:15px;line-height:1.9}#dialog-content>button{display:block;width:100%;margin-top:12px}#dialog-content label{display:flex;align-items:center;gap:12px;margin:16px 0}#dialog-content input[type=checkbox]{width:25px;height:25px}#dialog-content label:has(input[type=range]){display:block}#dialog-content input[type=range]{display:block;width:100%;height:34px}#storage-note{font-size:11px}#host:fullscreen,#host.faux-fullscreen{width:100vw;height:100dvh;max-width:none;margin:0;border:0;border-radius:0}#host.faux-fullscreen{position:fixed;inset:0;z-index:99999}
@media(max-width:700px){.piano-page{padding:0 8px}#host{height:750px}.parent-note{padding:16px;margin:24px 0}}
@media(max-height:520px) and (min-width:621px){#host{height:390px}}
@container (max-width:620px){#host .theatre-top{height:80px;display:grid;justify-content:stretch;text-align:center;padding:7px 8px;gap:7px}#host .theatre-top strong{font-size:14px}#host nav{gap:5px}#host nav button{flex:1;font-size:11px;padding:7px 3px;white-space:nowrap}#base{height:calc(100% - 80px)}#cover{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;padding:20px 32px;gap:20px}.keyart{grid-row:1;width:100%;height:100%;max-width:380px;justify-self:center}.invitation{gap:12px;align-items:center;text-align:center}.invitation h2{font-size:32px}.invitation h2 br{display:none}.invitation p{font-size:13px}.invitation>small:first-child{display:none}#host #start{min-height:46px;font-size:20px}#ready-note{font-size:10px}#play{padding:14px 10px 12px;gap:12px;grid-template-rows:auto minmax(60px,1fr) minmax(145px,39%) auto}.controls{gap:8px}#timbres{padding:3px;gap:2px}#timbres button{font-size:12px;padding:9px 2px;min-height:38px}.options{gap:7px;justify-content:space-between}.choice{gap:1px;padding:2px}.choice button{font-size:11px;padding:7px 8px;min-height:31px}#range-note{font-size:9px}.note-display{gap:10px}#note-now{font-size:43px}#ribbon{gap:5px;padding:6px 12px}#ribbon span{font-size:12px}#prompt{font-size:11px;text-align:center}.instrument{padding:8px 6px 5px;border-radius:9px}#keyboard{min-width:460px}#keyboard.full{min-width:874px}#host #keyboard button{padding-bottom:10px}.play-bottom small{display:none}.play-bottom{justify-content:flex-end}.play-bottom button{font-size:13px;min-height:36px;padding:8px 14px}#host #key-navigation button{font-size:10px;padding:4px 6px}#result{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;padding:20px 24px;gap:18px}.result-art{width:auto;max-width:100%;height:100%;max-height:260px;justify-self:center}.program{padding:20px 14px;gap:17px;box-shadow:5px 8px 0 #081d3050}.program h2{font-size:30px}.program>small{font-size:10px}.program p{font-size:13px}.session-stats{font-size:10px;gap:15px}.session-stats b{font-size:20px}#result-notes{padding:12px 2px;min-height:46px;gap:7px}#result-notes span{font-size:17px}.result-actions{gap:9px}.result-actions button{font-size:13px;min-height:38px}#modal>section{padding:17px}#modal h2{font-size:21px}#dialog-content{font-size:13px}}
@container (max-height:520px) and (min-width:621px){#host .theatre-top{height:38px;padding:4px 10px}#host .theatre-top strong{font-size:13px}#host nav button{min-height:27px;font-size:10px;padding:4px 8px}#base{height:calc(100% - 38px)}#cover{padding:18px 70px;gap:42px}.invitation{gap:12px}.invitation h2{font-size:32px}.invitation h2 br:first-child{display:none}.invitation p{font-size:12px}.invitation small{font-size:9px}#host #start{min-height:40px;font-size:19px}#play{padding:8px 30px 10px;gap:7px;grid-template-rows:auto minmax(30px,1fr) minmax(115px,47%) auto}.controls{display:grid;grid-template-columns:1.1fr 1fr;gap:4px 10px;max-width:none}#timbres{padding:2px;gap:2px}#timbres button{font-size:12px;padding:5px 3px;min-height:30px}.options{gap:7px;justify-content:flex-end}.choice{padding:2px;gap:1px}.choice button{font-size:10px;padding:6px 8px;min-height:29px}#range-note{grid-column:1/-1;font-size:9px}.note-display{flex-direction:row;gap:16px}#note-now{font-size:28px}#ribbon{gap:7px;padding:4px 14px;min-height:24px}#ribbon span{font-size:11px}#prompt{display:none}.instrument{padding:7px 7px 3px;border-radius:8px}#key-navigation{height:29px;padding-top:3px}#host #key-navigation button{font-size:9px;min-height:24px;padding:3px 8px}#key-position{height:23px}#host #keyboard button{padding-bottom:7px;gap:3px}#keyboard .key-name{font-size:16px}#host #keyboard .black-key{padding-bottom:7px}#keyboard .black-key .key-name{font-size:10px}#keyboard .key-pc{font-size:8px}.play-bottom small{font-size:9px}.play-bottom button{font-size:11px;min-height:29px;padding:6px 12px}#result{padding:18px 80px;gap:30px;grid-template-columns:.7fr 1.3fr}.result-art{max-height:100%;object-fit:contain}.program{padding:14px 22px;gap:10px}.program h2{font-size:28px}.program>small{font-size:9px}.program p{font-size:12px}#result-notes{min-height:36px;padding:8px;gap:8px}#result-notes span{font-size:18px}.session-stats{font-size:10px;gap:14px}.session-stats b{font-size:17px}.result-actions{flex-direction:row;gap:8px}.result-actions button{flex:1;font-size:11px;min-height:33px;padding:7px 5px}#modal>section{padding:14px 22px}#modal h2{font-size:21px}#dialog-content{font-size:13px;line-height:1.65}#dialog-content p{margin:9px 0}#dialog-content label{margin:8px 0}}
@container (max-width:620px) and (max-height:610px){#cover{padding:14px 26px;gap:13px}.invitation{gap:9px}.invitation h2{font-size:27px}.invitation p{font-size:11px}#ready-note{font-size:9px}#play{padding:8px;gap:6px;grid-template-rows:auto minmax(45px,1fr) minmax(135px,42%) auto}.controls{gap:5px}#timbres button{font-size:10px;min-height:32px;padding:7px 1px}.choice button{font-size:10px;min-height:29px;padding:5px 6px}.options{gap:4px}#range-note{font-size:8px}.note-display{gap:5px}#note-now{font-size:28px}#ribbon{padding:3px 10px;min-height:23px}#ribbon span{font-size:10px}#prompt{font-size:9px}.play-bottom button{min-height:30px;font-size:11px;padding:6px 10px}#result{padding:14px 20px;gap:12px}.program{padding:13px 9px;gap:10px}.program h2{font-size:26px}.program p{font-size:11px}.program>small{display:none}.result-actions button{min-height:33px;font-size:11px}#result-notes span{font-size:15px}#modal>section{padding:14px}#dialog-content{font-size:12px;line-height:1.65}}
@media(prefers-reduced-motion:reduce){#host *{transition:none!important;animation:none!important}}
#play,.controls,.options,.choice{min-width:0}#host .choice button{font-size:13px;min-height:33px;padding:7px 19px;border:0;white-space:nowrap}#host .play-bottom button{min-width:130px}
@container (max-width:620px){#host .choice button{font-size:11px;min-height:31px;padding:7px 6px}#host .play-bottom button{font-size:13px;min-height:36px;padding:8px 14px}#timbres button{white-space:nowrap}}
@container (max-height:520px) and (min-width:621px){#host .choice button{font-size:10px;min-height:29px;padding:6px 8px}#host .play-bottom button{font-size:11px;min-height:29px;padding:6px 12px}}
@container (max-width:620px) and (max-height:610px){#host .choice button{font-size:10px;min-height:29px;padding:5px 5px}#host .play-bottom button{min-height:30px;font-size:11px;padding:6px 10px}}
