@font-face{font-family:Nunito;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/nunito-latin-600-normal-Br8yIETf.woff2)format("woff2"),url(/assets/nunito-latin-600-normal-Cd0eNu1l.woff)format("woff")}@font-face{font-family:Nunito;font-style:normal;font-display:swap;font-weight:800;src:url(/assets/nunito-latin-800-normal-Dz8SOQK_.woff2)format("woff2"),url(/assets/nunito-latin-800-normal-D-J0wlBY.woff)format("woff")}@font-face{font-family:Nunito;font-style:normal;font-display:swap;font-weight:900;src:url(/assets/nunito-latin-900-normal-BVB1fGs6.woff2)format("woff2"),url(/assets/nunito-latin-900-normal-CVn49sIn.woff)format("woff")}@font-face{font-family:PianoMusic;src:url(/assets/music-glyphs-DXdRTZyd.woff2)format("woff2");font-display:block}:root{--paper:#fff6e6;--ink:#2a2350;--coral:#f2765a;--sun:#ffc94a;--sun-pale:#ffe7a8;--line-soft:#d8cdb8;--outline:3px solid var(--ink);--shadow:0 4px 0 var(--ink);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--ink);background:var(--paper);font:600 18px/1.5 Nunito,system-ui,sans-serif}body{margin:0}h1,h2{font-weight:900}button{font:inherit;color:inherit;cursor:pointer}.screen{box-sizing:border-box;flex-direction:column;gap:16px;max-width:1100px;min-height:100dvh;margin:0 auto;padding:16px 32px 20px;display:flex}.top-bar{justify-content:space-between;align-items:center;gap:16px;display:flex}.top-bar-middle{flex:1;justify-content:center;display:flex}.icon-space{width:64px}.icon-button{border:var(--outline);width:64px;height:64px;box-shadow:var(--shadow);background:#fff;border-radius:22px;flex:none;justify-content:center;align-items:center;padding:0;display:flex}.icon-button svg{fill:none;stroke:currentColor;stroke-width:2.5px;stroke-linecap:round;stroke-linejoin:round;width:30px;height:30px}.icon-button.go{background:var(--coral)}.icon-button:active,.lesson-card:active{box-shadow:none;transform:translateY(4px)}.icon-button:disabled{opacity:.3;cursor:default;box-shadow:var(--shadow);transform:none}.dots{align-items:center;gap:10px;margin:0;padding:0;list-style:none;display:flex}.dots li{box-sizing:border-box;border:3px solid var(--line-soft);background:#fff;border-radius:50%;width:22px;height:22px}.dots li.done{border-color:var(--ink);background:var(--sun)}.dots li.now{border-color:var(--coral);width:30px;height:30px}.home h1{margin:0;font-size:48px;line-height:1.1}.home h2{margin:8px 0 0;font-size:30px}.lesson-list{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px;margin:0;padding:0;list-style:none;display:grid}.lesson-card{border:var(--outline);width:100%;min-height:96px;box-shadow:var(--shadow);text-align:left;background:#fff;border-radius:24px;align-items:center;gap:16px;padding:12px 20px;font-size:24px;font-weight:800;display:flex}.lesson-number{border:var(--outline);background:var(--sun);border-radius:50%;flex:none;justify-content:center;align-items:center;width:56px;height:56px;font-weight:900;display:flex}.staff-card{box-sizing:border-box;border:var(--outline);width:min(100%,720px);box-shadow:0 6px 0 var(--ink);background:#fff;border-radius:32px;align-self:center;padding:4px 24px}.lesson-row{align-items:center;gap:20px;display:flex}.lesson-text{text-align:center;flex:1;margin:0;font-size:clamp(22px,3.4vw,34px);font-weight:900;line-height:1.2}.keys-frame{border:var(--outline);background:var(--coral);box-shadow:0 6px 0 var(--ink);border-radius:28px;margin-top:auto;padding:12px}.staff{touch-action:manipulation;width:100%;height:min(28vh,220px);display:block}.staff.grand{height:min(32vh,260px)}.glyph{fill:currentColor;font-family:PianoMusic}.staff-note{cursor:pointer;outline:none}.staff-note.selected{color:var(--coral)}.staff-note:focus-visible .hit{fill:#f2765a26}.note-label{fill:var(--ink);pointer-events:none;font-size:13px;font-weight:900}.piano{touch-action:manipulation;width:100%;height:min(30vh,260px);display:block}.white-key{cursor:pointer;outline:none}.white-key rect{fill:#fff;stroke:var(--ink);stroke-width:2px}.white-key text{fill:var(--ink);pointer-events:none;font-size:18px;font-weight:900}.white-key.mark rect{fill:var(--sun-pale)}.white-key.highlight rect,.white-key:focus-visible rect{fill:var(--sun)}.middle-c-mark{fill:var(--sun);stroke:var(--ink);stroke-width:2px;pointer-events:none}.black-key{fill:var(--ink)}.black-key.group-2{fill:#7a4fd0}.black-key.group-3{fill:#1f8a8a}.game-list{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px;display:grid}.game-card{border:var(--outline);background:var(--coral);min-height:112px;box-shadow:var(--shadow);border-radius:24px;flex-direction:column;justify-content:center;align-items:flex-start;gap:10px;padding:16px 24px;font-size:28px;font-weight:900;display:flex}.game-card:active,.letter-button:active,.text-button:active{box-shadow:none;transform:translateY(3px)}.level-dots{gap:8px;display:inline-flex}.level-dots span{box-sizing:border-box;border:var(--outline);background:#fff;border-radius:50%;width:18px;height:18px}.level-dots span.on{background:var(--sun)}.stars{gap:2px;display:inline-flex}.star{fill:#fff;stroke:var(--ink);stroke-width:1.6px;stroke-linejoin:round}.star.on{fill:var(--sun)}.game-progress{align-items:center;gap:12px;display:flex}.game-progress progress{appearance:none;border:var(--outline);background:#fff;border-radius:999px;width:min(40vw,360px);height:22px;overflow:hidden}.game-progress progress::-webkit-progress-bar{background:#fff}.game-progress progress::-webkit-progress-value{background:var(--sun)}.game-progress progress::-moz-progress-bar{background:var(--sun)}.game-count{white-space:nowrap;font-weight:900}.game-text{text-align:center;margin:0;font-size:clamp(22px,3.4vw,34px);font-weight:900;line-height:1.2}.letter-buttons{grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin-top:auto;display:grid}.letter-button{border:var(--outline);min-height:96px;box-shadow:0 6px 0 var(--ink);background:#fff;border-radius:24px;font-size:clamp(32px,5vw,48px);font-weight:900}.letter-button.show{background:var(--sun)}.run-chip{border:var(--outline);background:var(--sun);white-space:nowrap;border-radius:999px;margin-left:12px;padding:2px 12px;font-weight:900}.record-line{font-size:18px;font-weight:800}.game-end{text-align:center;align-items:center}.game-end .top-bar{align-self:stretch}.game-end .stars svg{max-width:22vw}.practice{flex-direction:column;align-items:center;gap:8px;width:100%;display:flex}.practice p{margin:0;font-size:24px;font-weight:800}.round-buttons{gap:20px;margin-top:auto;display:flex}.text-button{border:var(--outline);min-height:64px;box-shadow:var(--shadow);background:#fff;border-radius:22px;padding:0 32px;font-size:24px;font-weight:900}.text-button.go{background:var(--coral)}.rotate-hint{text-align:center;color:var(--ink);margin:0;padding:24px 8px;font-size:22px;font-weight:900;display:none}@media (orientation:portrait) and (width<=600px){.rotate-hint{display:block}.piano{display:none}}.record-form{flex-direction:column;align-items:center;gap:8px;display:flex}.record-form label{font-size:20px;font-weight:800}.record-row{gap:12px;display:flex}.record-row input{box-sizing:border-box;border:var(--outline);width:min(60vw,320px);min-height:56px;color:var(--ink);font:inherit;background:#fff;border-radius:18px;padding:0 16px;font-size:24px;font-weight:800}.record-row input:focus-visible{outline:3px solid var(--coral);outline-offset:2px}@media (width<=600px),(height<=500px){.screen{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));gap:10px}.icon-button{border-radius:18px;width:56px;height:56px}.icon-space{width:56px}.top-bar{gap:8px}.top-bar-middle{flex-wrap:wrap;align-items:center;gap:6px;min-width:0}.game-progress{flex:1;gap:6px;min-width:0}.game-progress progress{flex:1;width:auto;min-width:40px;max-width:360px;height:18px}.run-chip{margin-left:0;font-size:16px}.staff-card{border-radius:24px;padding:4px 12px}.keys-frame{border-radius:20px;padding:8px}.lesson-text,.game-text{font-size:20px}.home h1{font-size:36px}.home h2{font-size:24px}.lesson-list,.game-list{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}.lesson-card{min-height:72px;font-size:20px}.game-card{min-height:96px;font-size:24px}}@media (width<=600px) and (orientation:portrait){.letter-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}.letter-button{min-height:72px}.lesson-row{flex-wrap:wrap;justify-content:space-between}.lesson-text{flex-basis:100%;order:-1}.staff,.staff.grand{height:auto}.dots li{width:16px;height:16px}.dots li.now{width:22px;height:22px}}@media (orientation:landscape) and (height<=500px){.screen.game,.screen.lesson{grid-template-rows:auto auto minmax(0,1fr);grid-template-columns:minmax(0,1fr) minmax(0,40%);align-items:center;column-gap:16px;height:100dvh;min-height:0;display:grid}.screen>.top-bar{grid-column:1/-1}.screen>.staff-card{grid-column:1;width:100%}.game-text,.lesson-row{grid-column:2}.lesson:not(:has(.staff-card)) .lesson-row{grid-column:1/-1}.lesson-text{font-size:18px}.staff,.staff.grand{height:min(24vh,200px)}.keys-frame,.letter-buttons{grid-column:1/-1;margin-top:0}.keys-frame{box-sizing:border-box;flex-direction:column;align-self:stretch;min-height:0;display:flex}.keys-frame .piano{flex:1;height:auto;min-height:0}.letter-buttons{align-self:end}.letter-button{min-height:64px}}.sticker{display:inline-flex;position:relative}.sticker svg{filter:drop-shadow(0 3px #2a235059);display:block}.sticker.new{animation:.6s cubic-bezier(.3,1.6,.5,1) both sticker-pop}.reward-stickers .tip-wrap:nth-child(2) .sticker.new{animation-delay:.35s}.reward-stickers .tip-wrap:nth-child(3) .sticker.new{animation-delay:.7s}.reward-stickers .tip-wrap:nth-child(4) .sticker.new{animation-delay:1.05s}@keyframes sticker-pop{0%{opacity:0;transform:scale(.2)rotate(-25deg)}to{opacity:1;transform:scale(1)rotate(0)}}.sticker-count{border:2px solid var(--ink);background:var(--sun);border-radius:12px;padding:0 7px;font-size:15px;font-weight:900;position:absolute;bottom:-4px;right:-6px}.sticker-slot{box-sizing:border-box;border:3px dashed var(--line-soft);border-radius:50%;width:72px;height:72px;display:inline-block}.sticker-slot.gold{border-color:var(--sun)}.sticker-slot.small{width:40px;height:40px}.reward-stickers{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.chips{flex-wrap:wrap;justify-content:center;align-items:center;gap:16px;display:inline-flex}.notes-chip{border:var(--outline);background:#fff;border-radius:999px;padding:4px 14px;font-size:18px;font-weight:900}.confetti{pointer-events:none;z-index:10;position:fixed;inset:0;overflow:hidden}.confetti span{opacity:0;border-radius:3px;width:10px;height:16px;animation:2s ease-in forwards confetti-fall;position:absolute;top:-20px}@keyframes confetti-fall{0%{opacity:1;transform:translateY(0)rotate(0)}85%{opacity:1}to{opacity:0;transform:translateY(105vh)rotate(540deg)}}@media (prefers-reduced-motion:reduce){.confetti{display:none}.sticker.new{animation:none}}.album-card{background:var(--sun)}.album-preview{gap:6px;display:inline-flex}.sticker-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));justify-items:center;gap:16px;margin:0;padding:0;list-style:none;display:grid}.sticker-grid li{flex-direction:column;align-items:center;gap:4px;display:flex}.sticker-label{text-align:center;font-size:14px;font-weight:800}.album-text{margin:0;font-size:20px;font-weight:800}.album-notes{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;display:grid}.staff-note.known{color:var(--coral)}.staff-note.faded{opacity:.3}.sticker .twinkle{transform-box:fill-box;transform-origin:50%;animation:1.6s ease-in-out infinite twinkle}.sticker .twinkle.late{animation-delay:.8s}@keyframes twinkle{50%{opacity:.6;transform:scale(.5)}}@media (prefers-reduced-motion:reduce){.sticker .twinkle{animation:none}}.goal-chip{border:var(--outline);background:var(--sun-pale);border-radius:999px;align-items:center;gap:10px;padding:6px 16px 6px 8px;font-size:18px;font-weight:900;display:inline-flex}.goal-text{flex-direction:column;align-items:flex-start;gap:2px;display:flex}.goal-text progress{appearance:none;border:2px solid var(--ink);background:#fff;border-radius:999px;width:120px;height:12px;overflow:hidden}.goal-text progress::-webkit-progress-bar{background:#fff}.goal-text progress::-webkit-progress-value{background:var(--coral)}.goal-text progress::-moz-progress-bar{background:var(--coral)}.sticker-pages{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;display:grid}.sticker-page{border:var(--outline);box-shadow:var(--shadow);background:#fff;border-radius:24px;padding:12px 16px 16px}.sticker-page.done{background:var(--sun-pale)}.sticker-page h3{align-items:center;gap:10px;margin:0 0 10px;font-size:22px;display:flex}.page-ribbon{border:2px solid var(--ink);background:var(--coral);border-radius:999px;padding:2px 12px;font-size:15px}.page-grid{grid-template-columns:repeat(4,1fr);justify-items:center;gap:8px;margin:0;padding:0;list-style:none;display:grid}.page-grid .sticker svg,.page-grid .sticker-slot{width:min(64px,17vw);height:min(64px,17vw)}.sticker-slot.gold{justify-content:center;align-items:center;display:inline-flex}.slot-progress{font-size:15px;font-weight:900}.tip-wrap{cursor:help;background:0 0;border:0;border-radius:50%;padding:0}.tip-wrap:focus-visible{outline:3px solid var(--coral);outline-offset:3px}.tip{left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:20;border:var(--outline);max-width:440px;box-shadow:var(--shadow);color:var(--ink);text-align:center;pointer-events:none;background:#fff;border-radius:18px;margin:0 auto;padding:12px 18px;font-size:20px;font-weight:800;display:none;position:fixed}.tip-wrap:hover .tip,.tip-wrap:focus .tip{display:block}
