@import url('https://fonts.googleapis.com/css2?family=Jua&family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');
:root{color-scheme:light;--ink:#244943;--teal:#347c74;--coral:#ed8267;--cream:#fff9e8;--line:#234f421d;font-family:'Noto Sans KR',sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;background:#dfede6;color:var(--ink);height:100dvh;display:flex;align-items:center;justify-content:center;gap:4vw;overflow:hidden;background-image:radial-gradient(#b8d2c64d 1px,transparent 1px);background-size:22px 22px}button,input{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #e39e4b;outline-offset:4px}button:disabled{opacity:.55;cursor:wait}button{touch-action:manipulation;color:var(--ink)}[hidden]{display:none!important}#stage{height:min(900px,100dvh - 32px);width:min(450px,calc((100dvh - 32px)*.57));min-width:340px;position:relative;overflow:hidden;border-radius:27px;background:#d5e9df;box-shadow:0 30px 90px #234b4226;isolation:isolate}#game-canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;background:#d7ebe1 url('assets/seaside-background.webp') center/cover}#shade{position:absolute;inset:0;background:linear-gradient(#fff7e0b3,transparent 35%,transparent 60%,#fff9e8f5);pointer-events:none}header{position:absolute;top:env(safe-area-inset-top,0);left:0;right:0;z-index:7;padding:18px 22px;display:flex;align-items:center;justify-content:space-between}#brand{font-weight:900;font-size:13px;letter-spacing:1.6px;text-decoration:none;color:var(--ink)}#brand span{color:var(--coral)}header>div{display:flex;gap:7px}header button{width:37px;height:37px;min-width:37px;border:1px solid #315b4626;background:#fffef8bb;border-radius:50%;font-size:20px;box-shadow:0 2px 5px #345c3410}.view{position:absolute;inset:0}.home-top{position:absolute;left:25px;right:25px;top:12%;text-align:center}.tag{font-weight:800;letter-spacing:2.5px;font-size:10px;color:#57867b}h1{font-family:Jua,sans-serif;font-weight:400;font-size:50px;line-height:1.05;letter-spacing:-2px;margin:17px 0 12px;transform:rotate(-3deg);text-shadow:0 3px 0 #fff6}h1 span{color:#e98162;font-size:49px}h1+p{font-size:13px;color:#5a7c70;margin:0}.home-hero{position:absolute;top:34%;left:0;right:0;height:28%;display:flex;align-items:center;justify-content:center;pointer-events:none}.home-hero img{width:190px;max-height:100%;object-fit:contain;filter:drop-shadow(0 10px 8px #2f574926)}.speech{position:absolute;top:2%;right:13%;font-family:Jua;font-size:16px;transform:rotate(9deg);padding:11px 16px;border-radius:20px 20px 20px 4px;background:#fffbed;box-shadow:0 5px 15px #36574813;color:#d47761}.home-bottom{position:absolute;bottom:3%;left:25px;right:25px}.live-record{font-size:11px;display:flex;justify-content:center;align-items:center;gap:7px;margin-bottom:14px}.live-dot{width:6px;height:6px;border-radius:50%;background:#459884;box-shadow:0 0 0 4px #5f9f7413;display:inline-block;flex-shrink:0}.name-field{display:flex;align-items:center;justify-content:space-between;background:#fffdf3c9;border:1px solid var(--line);border-radius:12px;padding:9px 13px;min-height:47px;margin-bottom:10px}.name-field>span{font-size:11px;color:#678378}.name-field input{background:none;border:0;outline:0;width:56%;font-weight:700;font-size:14px;text-align:right;color:var(--ink);min-width:0}.name-field input::placeholder{font-size:11px;font-weight:400;color:#8a9e91}.primary{border:0;border-bottom:4px solid #25665f;background:var(--teal);color:#fffbea;border-radius:15px;min-height:58px;width:100%;font-weight:800;font-size:17px;padding:13px 22px;display:flex;align-items:center;justify-content:center;gap:25px;box-shadow:0 6px 15px #244d4720}.primary:active{transform:translateY(2px);border-bottom-width:2px}.primary span{font-size:14px}.quiet{border:0;background:none;color:#50796c;font-size:12px;display:block;min-height:40px;margin:auto}.home-meta{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#8a9b85}.home-meta button{border:0;background:none;padding:6px 0;color:inherit;font-size:9px}.desktop-note{width:230px;flex-shrink:0}.wordmark{font-size:12px;font-weight:900;letter-spacing:3px;color:#5f9180}.desktop-note h2{font-family:Jua;font-size:40px;font-weight:400;line-height:1.3;letter-spacing:-1px;margin:23px 0}.desktop-note p{color:#779082;font-size:14px;line-height:1.9}.desktop-note>small{font-size:10px;color:#82978a}.desktop-keys{font-size:11px;color:#6c897b;line-height:2.9;margin:40px 0 10px}kbd{font-family:inherit;font-size:10px;padding:4px 8px;border:1px solid #8ea79877;border-radius:5px;margin-right:5px;background:#eaf4ee}.desktop-rank{width:240px;align-self:center}.ranking-heading{display:flex;gap:11px;align-items:center}.ranking-heading h2{font-family:Jua;font-size:23px;font-weight:400;margin:0}.desktop-rank>p{font-size:12px;color:#7a9285;margin:8px 0 20px}.desktop-rank ol{padding:0;margin:0;list-style:none}.rank-row{display:grid;grid-template-columns:27px 1fr auto;gap:10px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}.rank-row .place{font-family:Jua;font-size:19px;color:#c08c46}.rank-row .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rank-row .points{font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}.rank-row.me{color:#257b67}.empty-rank{font-size:13px;line-height:1.9;color:#728e80;padding:28px 0}.desktop-rank>small{display:block;font-size:10px;color:#7f9689;margin-top:16px}.howto-card{margin-top:38px;border-top:1px solid var(--line);padding-top:24px}.howto-card b{font-size:13px}.howto-card p{font-size:12px;line-height:1.9;color:#7b9386}.howto-card span{font-size:10px;color:#7b9386}.run-top{position:absolute;top:77px;left:23px;right:23px;display:flex;justify-content:space-between;align-items:start;pointer-events:none}.label{display:block;font-size:9px;letter-spacing:2px;font-weight:800;color:#678a7a}#score{display:block;font-size:35px;font-weight:900;letter-spacing:-1px;line-height:1.2;font-variant-numeric:tabular-nums}.run-right{text-align:right}#time{font-size:17px;font-weight:800;letter-spacing:1px;font-variant-numeric:tabular-nums}#hearts{color:#e8897d;letter-spacing:2px;font-size:19px;margin-top:3px}.heart-empty{color:#afc8b9}.route{position:absolute;top:139px;left:23px;right:23px;height:4px;border-radius:5px;background:#315b4622;overflow:hidden}.route i{display:block;width:0;height:100%;background:#edb467}.chapter-line{position:absolute;top:155px;left:23px;right:23px;display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#5a7f6c}#combo{position:absolute;top:27%;left:23px;line-height:1;text-align:center;color:#df8462;opacity:0;transform:rotate(-6deg);pointer-events:none}#combo b{display:block;font-family:Jua;font-size:35px;font-weight:400}#combo span{font-size:9px;letter-spacing:2px;font-weight:800}.fever-meter{position:absolute;bottom:147px;left:24px;right:24px;display:flex;align-items:center;gap:10px;font-size:10px;font-weight:700}.fever-meter>div{height:7px;flex:1;background:#fff8df88;border:1px solid #cba4604d;border-radius:20px;overflow:hidden}.fever-meter i{display:block;height:100%;width:0;background:linear-gradient(90deg,#f4ba57,#f3826c)}.fever-meter b{font-size:9px;color:#ab8156}.touch-controls{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:24px;right:24px;display:flex;justify-content:space-between;align-items:center;touch-action:none}.touch-controls>button{touch-action:none;user-select:none;-webkit-user-select:none;width:100px;height:100px;border-radius:50%;border:2px solid #fff9df;background:#fff9e8f0;box-shadow:0 5px 0 #adc4ad,0 12px 20px #2e594b1c;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px}.touch-controls>button:active,.touch-controls>button.active{transform:translateY(4px);box-shadow:0 1px 0 #adc4ad;background:#ecf3d5}.touch-controls button span{font-size:35px;line-height:.8}.touch-controls button b{font-size:13px;margin-top:7px}.touch-controls button small{font-size:8px;color:#7d9a83;margin-top:3px}#jump{background:#377c70;color:#fffae6;box-shadow:0 5px 0 #256056,0 12px 20px #2e594b1c}#jump small{color:#c5dbc6}.controls-middle{font-size:9px;color:#688775;text-align:center;line-height:1.9}.controls-middle span,.controls-middle small{display:block;font-size:9px}#banner{position:absolute;top:39%;left:20px;right:20px;text-align:center;font-family:Jua;font-size:25px;color:#c0734d;pointer-events:none;opacity:0;text-shadow:0 2px 0 #fff9}.banner-on{opacity:1!important}#overlay{position:absolute;inset:0;z-index:20;background:#35544855;backdrop-filter:blur(9px);display:flex;align-items:center;justify-content:center;padding:22px;overflow:auto}#dialog{width:100%;max-height:92%;overflow:auto;border:2px solid #fffaf0;background:#fff9e9;border-radius:24px;padding:28px 23px;box-shadow:0 15px 60px #233c4a33;text-align:center}#dialog h2{font-family:Jua;font-size:29px;font-weight:400;line-height:1.25;margin:13px 0;color:var(--ink)}#dialog .tag{font-size:10px;letter-spacing:2px}#dialog p{font-size:13px;line-height:1.85;color:#6c8775}#dialog .primary{margin-top:20px;font-size:15px;min-height:52px}#dialog .quiet{font-size:12px;min-height:44px}#dialog .big-score{font-family:Jua;font-size:52px;color:#e08b60;margin:15px 0 0}.result-stats{display:flex;justify-content:space-around;margin:20px 0;font-size:11px;color:#748d79}.result-stats b{display:block;font-size:20px;color:var(--ink)}.rank-list{list-style:none;padding:0;text-align:left;margin:20px 0}.rank-list .rank-row{padding:12px 0}.tutorial-cards{display:flex;gap:10px;margin:20px 0}.tutorial-cards>div{flex:1;border:1px solid var(--line);padding:16px 8px;border-radius:14px;font-size:12px;line-height:1.8}.tutorial-cards b{display:block;font-size:22px;color:#4d8974}.tutorial-cards small{display:block;font-size:10px;color:#7f977f}.connection-error{background:#ffe6d9;border:1px solid #eaba9a;padding:12px;border-radius:10px;color:#946645!important;font-size:12px!important}.credit-link{display:block;font-size:12px;line-height:1.9;color:#4f8472}.sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}a{color:#488775}
@media(max-width:1100px){.desktop-note{display:none}body{gap:6vw}.desktop-rank{width:230px}}@media(max-width:740px){body{display:block;background:#daeade}#stage{width:100%;min-width:0;height:100dvh;max-width:520px;border-radius:0;margin:auto;box-shadow:none}.desktop-rank{display:none}}@media(max-height:730px){.home-top{top:11%}h1{font-size:42px;margin:12px 0 8px}h1 span{font-size:41px}.home-hero{top:33%;height:26%}.home-hero img{width:160px}.home-bottom{bottom:2%}.live-record{margin-bottom:9px;font-size:10px}.primary{min-height:52px;font-size:15px}.name-field{min-height:41px;padding:7px 12px}.quiet{min-height:35px}.tag{font-size:9px}.home-top p{font-size:11px}.speech{font-size:13px;padding:9px 12px}.touch-controls>button{width:85px;height:85px}.fever-meter{bottom:126px}}@media(max-width:360px){header{padding:16px 19px}.home-bottom{left:20px;right:20px}h1{font-size:40px}h1 span{font-size:39px}.home-top{left:18px;right:18px}.home-hero{top:32%;height:24%}.home-hero img{width:140px}.home-meta{font-size:8px}.home-meta button{font-size:8px}.home-bottom{bottom:2%}.touch-controls{left:19px;right:19px}.touch-controls>button{width:80px;height:80px}.controls-middle{max-width:100px}.run-top{top:72px}.route{top:132px}.chapter-line{top:146px;font-size:9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

#shade.in-game{background:linear-gradient(#fff9e9b3,transparent 25%,transparent 73%,#fff9e8ee)}.fever-meter{transition:filter .3s}.fever .fever-meter{filter:drop-shadow(0 0 8px #ffe28d)}.tutorial-cards>div{text-align:left;background:#f3eedb;border-radius:12px;padding:12px;margin:8px 0}.tutorial-cards>div b{font-size:14px}.tutorial-cards>div p{font-size:11px!important;margin:4px 0 0}.home-hero img[hidden]{display:none}

.audio-settings label{display:grid;grid-template-columns:1fr auto;gap:12px;text-align:left;padding:15px 0;font-size:13px}.audio-settings label b{color:#c68150}.audio-settings input{grid-column:1/-1;width:100%;height:28px;accent-color:#347c74;touch-action:pan-x}.audio-settings p{font-size:11px!important}

/* Comfortable phone controls and legible, single-column onboarding. */
header button{width:44px;height:44px;min-width:44px}header{padding-top:13px;padding-bottom:13px}
.tutorial-cards{display:block;text-align:left;margin:14px 0}.tutorial-cards>div{padding:11px 14px;margin:8px 0}.tutorial-cards>div b{font-size:15px}.tutorial-cards>div p{font-size:13px!important;line-height:1.65!important}.tutorial-cards>p{font-size:13px!important;margin-bottom:0}
#coach{position:absolute;top:25%;left:24px;right:24px;padding:16px 18px;border:2px solid #fff8df;border-radius:18px;background:#fff8eaf5;box-shadow:0 8px 25px #264d4422;text-align:center;pointer-events:none;color:#28594e}#coach b{font-size:12px;letter-spacing:1px;color:#b97842}#coach p{font-size:17px;font-weight:700;line-height:1.6;margin:7px 0}#coach small{font-size:12px;color:#779182}.coaching #banner{opacity:0!important}.coaching #combo{opacity:0!important}.coach-target{outline:4px solid #f2b551;outline-offset:7px;animation:coach-pulse 1.2s ease-in-out infinite}.result-progress{font-size:12px;color:#769082;margin-top:8px}.just-hit #hearts{animation:heart-hit .42s ease-out}.touch-controls>button:disabled{opacity:.65;cursor:default}
@keyframes coach-pulse{50%{outline-offset:11px;filter:brightness(1.13)}}@keyframes heart-hit{30%{transform:scale(1.28);color:#c74938}100%{transform:scale(1)}}
@media(max-height:680px){#coach{top:30%;padding:10px 12px}#coach p{font-size:15px;margin:5px 0}#coach small{font-size:11px}#dialog{padding:19px 19px}#dialog h2{font-size:26px;margin:8px 0}.tutorial-cards>div{padding:8px 11px}.tutorial-cards>div p{font-size:12px!important}#dialog .primary{margin-top:12px}.audio-settings label{padding:10px 0;gap:6px}}
@media(prefers-reduced-motion:reduce){.coach-target,.just-hit #hearts{animation:none}}

@supports(padding:env(safe-area-inset-top)){.run-top{top:calc(77px + env(safe-area-inset-top))}.route{top:calc(139px + env(safe-area-inset-top))}.chapter-line{top:calc(155px + env(safe-area-inset-top))}.home-bottom{bottom:max(3%,env(safe-area-inset-bottom))}.fever-meter{bottom:calc(147px + env(safe-area-inset-bottom))}.touch-controls{bottom:calc(22px + env(safe-area-inset-bottom))}}
@media(max-height:730px){.fever-meter{bottom:calc(126px + env(safe-area-inset-bottom))}}

@media(max-height:620px){#overlay{padding:14px}#dialog{padding:15px 16px;max-height:96%}#dialog h2{font-size:24px;margin:8px 0}.tutorial-cards{margin:8px 0}.tutorial-cards>div{padding:7px 10px;margin:5px 0}.tutorial-cards>div b{font-size:13px}.tutorial-cards>div p{font-size:12px!important;line-height:1.4!important}.tutorial-cards>p{font-size:12px!important;line-height:1.5!important}#dialog .primary{min-height:46px;margin-top:10px}#dialog .quiet{min-height:40px}}

/* One thumb: both actions stay together; handedness mirrors the whole cluster. */
.touch-controls{left:auto;right:18px;width:202px;justify-content:flex-end;gap:12px;align-items:flex-end}.touch-controls>#jump{width:100px;height:100px;flex-shrink:0}.touch-controls>#slide{width:90px;height:90px;flex-shrink:0}.touch-controls button small{font-size:9px;line-height:1.35;max-width:78px}.touch-controls button b{font-size:14px}.left-hand .touch-controls{left:18px;right:auto;flex-direction:row-reverse}.run-footer{position:absolute;left:20px;bottom:calc(30px + env(safe-area-inset-bottom));max-width:120px;display:flex;flex-direction:column;gap:7px;color:#537a6b}.run-footer>span{font-size:9px;line-height:1.6}.left-hand .run-footer{left:auto;right:20px;text-align:right;align-items:flex-end}.hand-switch{min-height:44px;border:1px solid #7ea28b70;border-radius:12px;background:#fff8e9cc;padding:7px 10px;font-size:12px;font-weight:700;touch-action:manipulation}.home-meta .hand-switch{font-size:11px;padding:4px 9px;border:1px solid #7ea28b70;background:#fff8e9b0;color:#487363;min-height:36px}.home-meta{margin-top:3px}.practice-options{display:flex;justify-content:center;gap:8px}.practice-options button{flex:1;font-size:12px;min-height:42px}.practice-options button+button{border-left:1px solid #71977e33}.home-bottom{bottom:max(2%,env(safe-area-inset-bottom))}#rhythm-label{position:absolute;top:180px;right:23px;font-size:11px;font-weight:800;letter-spacing:1px;color:#966947}#slide.airborne{background:#e8bb67;border-color:#fff0b4;color:#684523}#slide.airborne small{color:#79582d}.result-stats{flex-wrap:wrap;gap:12px}.result-stats>div{min-width:42%}.fever-meter.cooling{opacity:.65}
@media(max-width:360px){.touch-controls{right:14px;width:183px;gap:9px}.touch-controls>#jump{width:92px;height:92px}.touch-controls>#slide{width:82px;height:82px}.left-hand .touch-controls{left:14px;right:auto}.run-footer{left:14px;max-width:100px}.left-hand .run-footer{right:14px}.run-footer>span{font-size:8px}.hand-switch{font-size:11px;padding:7px 8px}.home-meta .hand-switch{min-height:32px}.practice-options button{min-height:37px}.home-hero .speech{right:9%}}
@media(max-height:650px){.touch-controls>#jump{width:88px;height:88px}.touch-controls>#slide{width:80px;height:80px}.touch-controls{width:180px;gap:12px}.home-top{top:12%}.home-top p{font-size:11px}.home-meta .hand-switch{min-height:30px}.home-bottom .name-field{margin-bottom:7px}.home-bottom .live-record{margin-bottom:7px}.practice-options button{min-height:35px}#rhythm-label{top:174px;font-size:10px}}

.coaching #rhythm-label{opacity:0}
@media(max-height:650px){.home-hero .speech{top:25%;right:5%}#coach{top:178px;padding:8px 12px}#coach p{font-size:14px;line-height:1.4;margin:5px 0}#coach small{display:none}}
@media(max-height:650px){#coach{left:36%;right:14px;width:auto;padding:9px}#coach b{font-size:10px;letter-spacing:0}#coach p{font-size:13px;line-height:1.5}.fever-meter{bottom:calc(112px + env(safe-area-inset-bottom))}}
