/* SORISUP V2 · Kid-first presentation only.
   App state, song data, audio playback, event handlers and game logic remain unchanged.
   De-emphasize to emphasize: one large action and one short label per choice. */
:root{
 --v2-ink:#263345;
 --v2-muted:#667388;
 --v2-primary:#556bd7;
 --v2-primary-dark:#354db9;
 --v2-canvas:#f7f9fd;
 --v2-line:#e7ecf5;
 --v2-card:#ffffff;
 --v2-shadow:0 7px 24px rgba(34,49,87,.07);
 color:var(--v2-ink);
 background:var(--v2-canvas);
}
html{scroll-behavior:smooth}
body{color:var(--v2-ink)}
.app{background:var(--v2-canvas);overflow-x:clip}
button{user-select:none;-webkit-user-select:none}
button:focus-visible{outline:4px solid #f5a82c;outline-offset:3px}
button:active{transform:scale(.97)}
.topbar{
 height:70px;padding:0 clamp(16px,3vw,36px);
 background:#fff;border-bottom:1px solid var(--v2-line);box-shadow:none;
 position:sticky;top:0;z-index:10;
}
.top-logo{color:var(--v2-ink);font-size:clamp(22px,2.3vw,28px);letter-spacing:-.6px}
.top-logo b{color:var(--v2-primary)}
.logo-flower{font-size:24px;color:#efa944;text-shadow:none}
.header-right{gap:12px}
.header-right .page-name{display:none}
.home-button,.top-icon{
 width:50px;height:50px;display:grid;place-items:center;
 background:#f1f4ff;color:var(--v2-primary);
 border-radius:17px;font-size:26px;box-shadow:none;
 border:1px solid #e8edff;
}
.home-button{display:none}
.top-icon[aria-pressed=true]{color:#778092;background:#ecedf0}
.main-content{width:min(1180px,100%);padding:clamp(17px,2.5vw,30px) clamp(16px,3.5vw,38px) 30px}
.screen.active{animation:v2-enter .19s ease-out}
@keyframes v2-enter{from{opacity:.7;transform:translateY(5px)}to{opacity:1;transform:none}}

/* The four modes are the entire home navigation. No competing hero artwork. */
.hero-row{display:block;min-height:0;max-width:none;margin:0 0 21px}
.hero-copy{padding:0}
.eyebrow,.hero-pills,.hero-scene,.home-tip{display:none}
.hero-copy h1{
 font-family:'Jua','Malgun Gothic',sans-serif;
 font-size:clamp(34px,4vw,47px);font-weight:400;letter-spacing:-.7px;
 line-height:1.2;margin:0 0 5px;
}
.hero-copy h1 em{color:var(--v2-primary)}
.hero-copy>p{font-size:14px;margin:0;color:var(--v2-muted);font-weight:800}
.mode-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0}
.mode-card{
 min-height:305px;display:flex;align-items:center;justify-content:center;
 flex-direction:column;gap:12px;text-align:center;overflow:hidden;
 padding:24px 12px 20px;border-radius:28px;border:2px solid var(--v2-line);
 box-shadow:var(--v2-shadow);color:var(--v2-ink);transition:transform .14s ease,border-color .14s ease;
}
.mode-card:hover{box-shadow:0 9px 26px rgba(34,49,87,.1);transform:translateY(-2px);border-color:#c9d3e8}
.mode-card:active{transform:scale(.975)}
.mode-card.pink{background:#fff3f4;border-color:#f9dfe3}
.mode-card.yellow{background:#fff9e9;border-color:#f7e6bb}
.mode-card.sky{background:#ebf8fa;border-color:#ceeef2}
.mode-card.lilac{background:#f2f0fd;border-color:#e0dafa}
.mode-art{
 background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.95);
 display:grid;place-items:center;width:112px;height:112px;border-radius:32px;
 font-size:65px;line-height:1;filter:none;transform:none!important;transition:transform .14s ease;
}
.mode-card:hover .mode-art{transform:scale(1.035)!important}
.mode-text{margin:0;display:flex;align-items:center;gap:3px}
.mode-text strong{font-family:'Jua','Malgun Gothic',sans-serif;font-size:clamp(23px,2.4vw,30px);color:var(--v2-ink);white-space:nowrap}
.mode-text small{font-size:13px;color:var(--v2-muted);font-weight:700;line-height:1.35;max-width:100%}
.round-arrow{display:none}
.footer{font-size:10px;color:#8f99a9;font-weight:700;line-height:1.5;padding:14px 12px}
.footer span{color:#b0b9ca}
.footer a{color:#7d899f}

/* Work surfaces: child-readable headings with no labels competing for attention. */
.section-heading{margin-bottom:12px}
.section-heading h2{font-size:clamp(29px,3vw,37px);letter-spacing:-.6px;color:var(--v2-ink)}
.section-heading .heading-dot,.section-heading .overline,.section-heading p:not(.overline),.section-sticker{display:none}
.instrument-list,.song-list,.category-tabs,.game-list{gap:9px;margin:0 0 15px}
.pick,.song-pick,.category-pick,.game-pick{
 background:#fff;color:#4f6076;border:2px solid var(--v2-line);
 box-shadow:none;border-radius:18px;min-height:54px;
 padding:9px 17px;font-size:17px;white-space:nowrap;
}
.pick .pick-art,.game-pick .pick-art{font-size:25px}
.pick.selected,.song-pick.selected,.category-pick.selected,.game-pick.selected{
 background:var(--v2-primary);border-color:var(--v2-primary-dark);
 box-shadow:0 3px 0 var(--v2-primary-dark);color:white
}
.pick:focus-visible,.song-pick:focus-visible,.game-pick:focus-visible,.category-pick:focus-visible{outline-offset:3px}
.stage{background:#fff;border:2px solid var(--v2-line);box-shadow:var(--v2-shadow);border-radius:24px;padding:clamp(14px,2vw,23px)}
.stage-header{margin-bottom:12px}
.stage-title>span,.song-message>span{
 background:#f2f5ff;border-radius:16px;width:47px;height:47px;font-size:29px;
}
.stage-title strong,.song-message strong{font-size:clamp(18px,2vw,23px);color:var(--v2-ink)}
.stage-title small,.song-message small{font-size:12px;color:var(--v2-muted)}
.stage-actions{gap:7px}
.small-control{min-width:46px;min-height:46px;border-radius:15px;background:#eaf0ff;color:var(--v2-primary);font-size:25px}
.octave-label{color:#59657a;min-width:65px}
.stage-footer{margin-top:13px;min-height:30px;color:var(--v2-muted);font-size:15px}
.stage-footer>span:first-child{max-width:80%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.last-note{font-size:26px;color:var(--v2-primary)}
.instrument-stage .stage-footer>span:first-child{display:none}
.key-helper{font-size:11px;color:#8793a4;margin:12px 0}
.orientation-hint{font-size:12px;color:var(--v2-muted)}
.keyboard.piano-keyboard{
 border:4px solid #a6b8db;
 background:#dee8f9;border-radius:17px;
 box-shadow:0 5px 0 #b6c8e4, inset 0 2px 0 rgba(255,255,255,.75);
 padding:6px 5px 9px;height:clamp(190px,25vw,320px)
}
.piano-black-layer{top:6px;bottom:9px;left:5px;right:5px}
.keyboard.piano-keyboard .key.piano-white{border-color:#d7dfed;background:linear-gradient(#fff 73%,#f1f5fc);color:#43536c}
.keyboard.piano-keyboard .key.piano-black{background:linear-gradient(110deg,#4a5364,#1e293c 72%);border-color:#233248}
.keyboard.piano-keyboard .key.piano-white .piano-key-label{font-size:clamp(12px,1.65vw,20px)}
.keyboard.piano-keyboard .key.piano-white.pressed{
 background:linear-gradient(#e9fcf3,#b4f2d4);border-color:#7bd2a6;
 box-shadow:inset 0 0 0 2px #76d3aa
}
.keyboard.piano-keyboard .key.piano-black.pressed{background:#607fbb;box-shadow:inset 0 0 0 2px #a7f4d8}
.keyboard.piano-keyboard .key.highlight{box-shadow:inset 0 0 0 4px #f8bd47;animation:v2-glow 1.1s ease-in-out infinite}
.keyboard.piano-keyboard .key.piano-white.highlight{background:linear-gradient(#fff7d8,#ffdf89)}
.keyboard.piano-keyboard .key.piano-black.highlight{background:linear-gradient(#657cc3,#4059a8)}
.keyboard.piano-keyboard .key.highlight::after{content:'★';color:#bb7921;text-shadow:none}
@keyframes v2-glow{50%{filter:brightness(1.09)}}
.progress-track{height:14px;background:#edf1fa;margin:13px 0 17px}
.progress-fill{background:linear-gradient(90deg,#86c8d7,#627ce5)}
.song-buttons{gap:9px}
.action-button{
 min-height:47px;border-radius:14px;padding:10px 16px;
 background:var(--v2-primary);box-shadow:0 3px 0 var(--v2-primary-dark);
 font-size:14px;font-weight:900
}
.action-button.secondary{background:#fff3cf;color:#6d5524;box-shadow:0 3px 0 #e1c77f;border:1px solid #e8cf90}
.song-tempo-controls{background:transparent;border:1px solid #e9edf4;border-radius:18px;padding:12px 14px;margin:12px 0;box-shadow:none}
.song-tempo-controls label{color:#667388}
.song-tempo-controls input[type=range]{accent-color:var(--v2-primary)}
.song-score-panel{border:1px solid var(--v2-line);box-shadow:var(--v2-shadow)}
.sound-grid{gap:14px}
.sound-card{
 background:var(--sound-bg);border:2px solid rgba(255,255,255,.9);
 box-shadow:0 4px 0 rgba(39,53,81,.08);border-radius:23px;
 min-height:170px;
}
.sound-card:active{transform:scale(.95)}
.sound-emoji{font-size:65px;filter:none}
.sound-label{color:var(--v2-ink);font-size:24px}
.sound-feedback{
 background:#eaf3ff;color:#40599b;max-width:400px;
 font-size:18px;border-radius:17px;padding:10px 15px;margin:17px auto
}
.game-stage{min-height:0}
.game-question{margin:0 0 18px}
.game-question .question-top,.game-question p{display:none}
.game-question h3{margin:0 0 5px;font-size:clamp(23px,3vw,33px)}
.game-question #colorFeedback,.game-question #memoryFeedback{
 display:block!important;font-size:18px;color:var(--v2-primary);margin:7px 0 0
}
.game-panel{min-height:0}
.color-choices{gap:14px}
.color-choice{width:clamp(88px,13vw,145px);height:clamp(88px,13vw,145px);border-radius:24px}
.memory-card{border-radius:18px;background:#e8f1ff}
.memory-card.matched{opacity:1;background:#dcf8e9;box-shadow:0 3px 0 #92d8b5;animation:v2-reward .4s ease-out}
@keyframes v2-reward{50%{transform:scale(1.08)}}
.drum-pads{margin:16px auto}
.palette-swatch{width:49px;height:49px}
.palette-swatch.selected{outline-color:var(--v2-primary)}
.drawing-canvas{background:#fffefb;border:3px solid #e9edf4}
.toast{background:#253a66;border-radius:18px;font-size:17px;max-width:90vw;white-space:normal;text-align:center;box-shadow:var(--v2-shadow)}
@media(max-width:1000px){
 .mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mode-card{min-height:205px}
 .mode-art{width:90px;height:90px;font-size:52px;border-radius:25px}
 .sound-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:600px){
 .topbar{height:61px;padding:0 14px}
 .top-logo{font-size:22px}
 .logo-flower{font-size:22px}
 .home-button,.top-icon{width:46px;height:46px}
 .main-content{padding:16px 13px 20px}
 .hero-row{margin-bottom:17px}
 .hero-copy h1{font-size:35px}
 .hero-copy>p{font-size:13px}
 .mode-grid{gap:10px}
 .mode-card{min-height:188px;padding:15px 8px;border-radius:22px;gap:11px}
 .mode-art{width:79px;height:79px;font-size:48px;border-radius:23px}
 .mode-text strong{font-size:24px}
 .mode-text small{font-size:11px;max-width:145px}
 .section-heading{margin-bottom:11px}
 .section-heading h2{font-size:29px}
 .instrument-list,.song-list,.category-tabs,.game-list{
   flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;
   margin:0 -13px 10px;padding:1px 13px 6px
 }
 .pick,.song-pick,.game-pick{min-height:50px;padding:8px 13px;font-size:16px}
 .category-pick{min-height:50px}
 .stage{padding:11px;border-radius:19px}
 .stage-header{align-items:center}
 .stage-title>span{width:42px;height:42px;font-size:25px}
 .stage-title strong,.song-message strong{font-size:17px}
 .stage-title small,.song-message small{font-size:10px}
 .small-control{min-width:44px;min-height:44px}
 .octave-label{min-width:51px;font-size:10px}
 .keyboard.piano-keyboard{height:230px;padding:5px 3px 7px;border-width:3px}
 .piano-black-layer{top:5px;bottom:7px;left:3px;right:3px}
 .keyboard.piano-keyboard .key.piano-white .piano-key-label{font-size:11px}
 .song-progress{flex-wrap:wrap;gap:7px}
 .song-message>span{width:41px;height:41px;font-size:25px}
 .song-buttons{width:100%;justify-content:space-between}
 .song-buttons .action-button{flex:1}
 .stage-footer{font-size:13px;margin-top:12px}
 .sound-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .sound-card{min-height:150px}
 .sound-emoji{font-size:54px}
 .sound-label{font-size:22px}
 .song-tempo-controls{padding:9px;margin:10px 0}
 .color-choices{gap:10px}
 .color-choice{width:clamp(88px,25vw,130px);height:clamp(88px,25vw,130px)}
 .game-question h3{font-size:25px}
 .footer{font-size:9px;padding:8px 15px 15px}
}
@media(max-width:350px){
 .mode-card{min-height:167px}
 .mode-art{width:66px;height:66px;font-size:41px}
 .mode-text strong{font-size:21px}
 .mode-text small{font-size:10px}
}
@media(orientation:landscape) and (max-height:540px){
 .topbar{height:50px}
 .main-content{padding:9px 12px 12px}
 .hero-row{margin-bottom:9px}
 .hero-copy h1{font-size:28px;margin:0}
 .hero-copy>p{display:none}
 .mode-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
 .mode-card{min-height:205px;padding:12px 5px;gap:8px;border-radius:19px}
 .mode-art{width:70px;height:70px;font-size:40px;border-radius:17px}
 .mode-text strong{font-size:20px}
 .mode-text small{font-size:10px}
 .section-heading{margin-bottom:5px}
 .section-heading h2{font-size:24px}
 .instrument-list,.song-list,.game-list,.category-tabs{margin-bottom:5px;padding-bottom:3px}
 .pick,.song-pick,.game-pick,.category-pick{min-height:42px;padding:5px 12px;font-size:14px;border-radius:13px}
 .stage{padding:8px;border-radius:15px}
 .stage-header{margin-bottom:5px}
 .stage-title>span{width:34px;height:34px;font-size:22px;border-radius:11px}
 .stage-title strong,.song-message strong{font-size:16px}
 .stage-title small,.song-message small{display:none}
 .small-control{min-height:37px;min-width:40px}
 .keyboard.piano-keyboard{height:clamp(124px,34vh,185px);padding:4px 4px 7px;border-width:3px}
 .piano-black-layer{top:4px;bottom:7px;left:4px;right:4px}
 .keyboard.piano-keyboard .key.piano-white .piano-key-label{font-size:11px;bottom:8px}
 .keyboard.piano-keyboard .key.piano-black .piano-key-label{font-size:9px;bottom:5px}
 .progress-track{margin:7px 0;height:10px}
 .stage-footer{margin:6px 0 0;min-height:21px;font-size:12px}
 .song-progress{flex-wrap:nowrap;gap:8px}
 .song-message>span{width:35px;height:35px;font-size:21px}
 .song-buttons{width:auto}
 .song-buttons .action-button{flex:0 0 auto}
 .action-button{min-height:38px;padding:7px 11px;font-size:12px}
 .song-tempo-controls{margin:7px 0;padding:7px 10px}
 .footer{padding:5px;font-size:8px}
}
@media(orientation:landscape) and (min-width:900px) and (min-height:541px){
 .mode-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .mode-card{min-height:300px}
 .keyboard.piano-keyboard{height:clamp(210px,30vh,315px)}
}
@media(prefers-reduced-motion:reduce){
 .screen.active,.mode-card,.mode-art,.keyboard.piano-keyboard .key.highlight,.memory-card.matched{animation:none;transition:none}
}

/* Taller choices on large phones, without making compact devices scroll. */
@media(max-width:600px) and (min-height:740px){.home-screen .mode-card{min-height:clamp(202px,27vh,252px)}}
