/* A single aqua / coral / sunshine system across every game surface. */
:root{--app-bg:#087d8b;--app-surface:#b5f0df;--app-text:#064d58;--app-text-sub:#155f69;--app-text-muted:#247781;--app-line:#50cbbb;--app-blue:#ff7251;--app-blue-pressed:#d64b31;--app-blue-light:#ffe8a5;--hot:#ff7951;--hot-d:#d64b31;--hot-l:#ffb266;--ink:#064d58;--ink-d:#064d58;--dim:#155f69;--paper:#b5f0df;--sky1:#20bebb;--sky2:#057988;--line:#57c9bc;--font-cute:Jua,system-ui,sans-serif}
html{background:#067986 url('art/studio/bg-bath.png') center/cover fixed}
body{background:linear-gradient(90deg,#005563b3,transparent 40%,transparent 60%,#005563b3);font-family:Jua,"Apple SD Gothic Neo",sans-serif}
#app{max-width:500px;background:#079699;box-shadow:0 0 80px #00455490;isolation:isolate}
button{touch-action:manipulation;font-family:inherit;cursor:pointer}
[hidden]{display:none!important}
button:focus-visible{outline:3px solid #fff1a0;outline-offset:4px}
#stage{touch-action:none;overscroll-behavior:none;margin:0 8px;border:3px solid #79e8d5;border-radius:24px;overflow:hidden;box-shadow:0 4px 0 #045e6b,0 0 0 3px #057a81}
#cv{touch-action:none}
#hud{margin:8px 10px;padding:9px 12px 7px;background:linear-gradient(#0c9f9d,#066c7c);color:#e2fff1;border:2px solid #57d9bd;border-radius:21px;box-shadow:0 4px 0 #004f63,inset 0 2px 0 #b0f6d34d}
#hud .row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;margin-bottom:6px;gap:6px}
#stagenum,#stagenum.hell{background:linear-gradient(#ffe78a,#ffc54b);border:0;border-radius:10px;color:#705016;box-shadow:0 3px 0 #cd8b29;font-size:15px;padding:6px 10px}
#leftbox{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;background:none;border:0;box-shadow:none;color:#cefff1;font-size:10px;padding:0;white-space:normal;line-height:1.3}
#leftbox b{color:#fff4bd;font-size:14px}
#recenter,#mute,#pause-control{display:grid;place-items:center;flex:0 0 40px;padding:0;line-height:1;background:#045669;color:#d9ffeb;border:1px solid #36b9b1;border-radius:12px;min-width:40px;width:40px;height:40px;min-height:40px;box-shadow:0 2px 0 #004352;font-size:21px}
#pause-control{color:#ffe98e}
#growth-hud{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0;color:#e1fff2;font-size:12px}
#growth-pips{display:flex;flex:0 0 auto;gap:6px}
#growth-pips i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-style:normal;background:#035a6a;color:#81c8c2;border:1px solid #24aaa5}
#growth-pips i.active{background:#ffe478;color:#7f4a12;box-shadow:0 2px 0 #d49523,0 0 12px #ffdf7860;border-color:#ffedbb}
#growth-pips i.done{background:#7fffbd;color:#086953}
#gauge{height:40px!important;margin:2px 0 0}
#hud.boss-mode #leftbox{visibility:hidden}
#hud.boss-mode #growth-pips{display:none}
#hud.boss-mode #growth-hud{min-height:34px;color:#ffe0a0;font-size:15px}
#app.boss-round #slots,#app.boss-round #fxbar{visibility:hidden;pointer-events:none}
#adbar:has(.ad-tag){display:none!important}
#slots{padding:8px 12px 12px;background:linear-gradient(#079699,#046878);gap:8px}
#slots button{background:linear-gradient(#9eeada,#45bcaa);border:2px solid #87ecd4;box-shadow:0 4px 0 #005f70;border-radius:17px;color:#064d58}
#fxbar{padding:4px 10px;color:#edfff6;min-height:18px}
#fxbar .fx{background:#075a69;color:#fff1a5;border:1px solid #3dbcb5;border-radius:10px}
.ov,.ov.on,#title-screen.on,#event-screen.on{background:linear-gradient(#04697b70,#005c7599),url('art/studio/bg-bath.png') center/cover;color:#e5fff1;padding:20px 18px;overflow-y:auto;overscroll-behavior:contain}
.ov>.card{background:linear-gradient(#c8f5df,#82dccb);border:2px solid #e4ffd0;border-radius:30px;padding:23px 20px;box-shadow:0 8px 0 #036378,0 20px 40px #00485660;color:#064d58}
.card h1,.card h2,.card h3,.card .lead,.lead,.note,.dex-foot,.dex-sub{color:#075263}
.card h1,.card h2{font-family:Jua,system-ui,sans-serif}
.go,#title-screen .row-go #play{background:linear-gradient(#ffab6a 0%,#ff8353 40%,#fb6949 100%);border:2px solid #ffd294;border-radius:20px;color:#fff8d9;font-family:Jua,sans-serif;font-size:24px;text-shadow:0 2px 0 #b84a2b;box-shadow:0 6px 0 #be422e,0 10px 20px #014e6050,inset 0 2px 0 #ffdcaa;min-height:62px;animation:none;padding:13px 20px}
.go:hover{filter:brightness(1.06)}
.go:active,#title-screen .row-go #play:active{transform:translateY(4px);box-shadow:0 2px 0 #be422e}
.go small,#title-screen .row-go #play small{color:#fff1ce;font-size:14px;text-shadow:none}
.go:after,#title-screen .row-go #play:after{display:none}
.ghost,.go.ghost{background:#097987;color:#edffdd;border:1px solid #46bbb5;border-radius:13px;box-shadow:0 3px 0 #045464;text-shadow:none;font-size:14px}
#title-screen.on{padding:calc(16px + env(safe-area-inset-top)) 20px calc(14px + env(safe-area-inset-bottom));overflow-y:auto}
#title-screen>.card{height:auto;min-height:0;max-width:440px;flex:0 0 auto;margin:auto 0;padding:0;background:none;box-shadow:none;border:none;gap:10px;justify-content:flex-start;align-items:stretch;color:#eaffed}
#title-screen>.card>*{flex-shrink:0}
#title-screen #logo{display:none!important}
.studio-brand{font-family:Jua,sans-serif;font-size:56px;line-height:.92;letter-spacing:-3px;text-align:center;color:#ffe784;text-shadow:0 4px 0 #cc8a36,0 7px 0 #056274,0 9px 15px #00445770;transform:rotate(-4deg);padding-top:6px}
.studio-brand span{color:#d2ffe6;text-shadow:0 4px 0 #51bca9,0 7px 0 #056274,0 9px 15px #00445770}
.studio-brand small{display:block;font-size:16px;letter-spacing:5px;margin-top:14px;color:#e5fff1;text-shadow:0 2px 0 #076473}
.studio-hero{width:clamp(96px,17dvh,148px);height:clamp(96px,17dvh,148px);object-fit:contain;align-self:center;filter:drop-shadow(0 10px 8px #005c7960);animation:float-drop 3s ease-in-out infinite;margin:0}
#title-tagline{font-size:14px;color:#e3ffed;text-shadow:0 2px 3px #035d78;margin:0}
#title-screen .row2{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));order:4;margin:4px 0 0;gap:8px;width:100%;max-width:none;flex-shrink:0}
#title-screen .pill{flex:1;min-width:0;min-height:61px;padding:5px 0;background:linear-gradient(#92e4cb,#54bdad);border:1px solid #b7fce0;border-radius:16px;box-shadow:0 4px 0 #065f70;gap:0}
#title-screen .pill .pico{width:31px;height:31px}
#title-screen .pill span{display:block;color:#07515e;font-size:12px;line-height:1.4}
#title-screen #sound{position:relative;inset:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;width:auto;height:auto}
#title-screen #sound span{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}
#title-screen #sound .pico{width:31px;height:31px;margin:0 auto 2px}
#title-screen #sound.off::after{top:20px;left:50%;transform:translateX(-50%) rotate(-35deg)}
#title-screen #menu{order:2;margin:8px 0 4px;width:100%;flex-shrink:0}
#title-screen .row-go{display:flex;flex-direction:row;max-width:none;gap:10px}
#title-screen .row-go #play{flex:1 1 0;min-width:0;width:auto;max-width:none;min-height:62px}
#title-screen .row-go #fresh{flex:0 0 92px;width:92px;min-height:62px;max-width:none;background:#086d7d;color:#b4f8dc;border:1px solid #45c6b5;border-radius:15px;padding:8px;font-size:12px}
#title-screen #morning-ad{max-width:none}
#journey{width:100%;min-width:0;background:#045e73dc;border:1px solid #40bdb8;border-radius:21px;padding:11px 14px;box-shadow:inset 0 2px 0 #87f5cd25,0 4px 0 #00495850;order:3}
.journey-top{display:flex;justify-content:space-between;font-size:14px;color:#e4fff0}
.journey-top span{font-size:11px;letter-spacing:1px;color:#a2e7d8}
.journey-track{display:flex;justify-content:space-between;position:relative;padding:10px 8px 0;background:linear-gradient(#42b8ad,#42b8ad) center 28px/calc(100% - 55px) 4px no-repeat}
.journey-stop{display:flex;flex-direction:column;gap:4px;align-items:center;color:#92d3cb;font-size:10px}
.journey-stop b{display:grid;place-items:center;border-radius:50%;background:#0b7b85;width:35px;height:35px;border:2px solid #42b8ad;font-size:17px}
.journey-stop.current b{background:linear-gradient(#ffe48a,#ffc449);color:#745023;border-color:#fff0ad;box-shadow:0 3px 0 #c58b23,0 0 14px #ffcb4d40;transform:scale(1.12)}
.journey-stop.current small{color:#ffe997}
#journey p{font-size:12px;color:#dcffde;margin-top:8px}
.journey-place{display:flex;align-items:center;gap:8px}
.journey-place-image{display:block;width:36px;height:36px;flex:0 0 36px;border-radius:9px;background-position:center;background-size:cover;box-shadow:inset 0 0 0 1px #a2e7d8}
.journey-top .journey-place-name{color:#e4fff0;font-size:14px}
.journey-boss{display:flex;align-items:center;gap:8px;margin-top:8px;color:#ffe997;font-size:11px}
.journey-boss img{width:38px;height:38px;object-fit:contain}
#title-screen #daily-note{order:5;display:block;width:100%;max-width:none;color:#d6fff0;background:transparent;border:0;box-shadow:none;font-size:12px;line-height:1.4;margin:0;padding:10px 6px;min-height:44px}
#tiltmode{display:none}
#clear-art{display:none}
#clear-screen.on{justify-content:flex-start}
#clear-screen>.card{flex:0 0 auto;max-height:none;overflow:visible;margin:auto 0}
#clear-screen>.card>*{flex-shrink:0}
#clear-screen .card:before{content:"";display:block;flex:0 0 88px;width:88px;height:88px;align-self:center;margin:0 auto;background:url('art/studio/reward-pearl.png') center/contain no-repeat}
#clear-screen #clear-rank{max-height:none;overflow:visible}
#clear-screen .crow{display:flex;gap:8px}
#clear-screen .crow>.ghost{min-height:44px;max-width:none}
.crank .cname{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
.crank .cname input,.crank .cname button{height:44px;min-height:44px}
.bd-me{grid-template-columns:auto minmax(0,1fr) auto}
#bd-name{min-width:0;height:44px}
#bd-save{display:grid;place-items:center;min-height:44px;height:44px;padding:0 12px}
#clear-n{font-size:28px;margin:4px 0 8px}
#clear-kicker{color:#127a78;font-size:13px}
#next-preview{display:flex;text-align:left;align-items:center;gap:12px;border-radius:19px;background:#076e7b;color:#dcffec;padding:11px;margin:16px 0}
.next-art{width:72px;height:88px;flex-shrink:0;border-radius:13px;background-position:center;background-size:cover;overflow:hidden;display:grid;place-items:center}
.next-art img{width:68px;height:68px;object-fit:contain}
#next-preview small{color:#ffdb76;font-size:10px;letter-spacing:1px}
#next-preview h3{color:#eaffdf;font-size:18px;margin:5px 0}
#next-preview p{font-size:11px;color:#b0e5d8;line-height:1.5}
.best-combo{display:block;margin-top:7px;font-size:12px;color:#ffdc7c}
#next-preview>div:last-child{min-width:0;overflow-wrap:anywhere}
#next{margin-top:12px;width:100%}
.wave-pop #stage{animation:wave-border .65s ease-out}
.wave-pop #growth-hud{animation:wave-scale .5s ease-out}
#level-note{background:#055f73;color:#fff0a2;border:2px solid #80dfcd;box-shadow:0 5px 0 #033f51}
#help-screen>.card{flex:0 0 auto;height:auto;min-height:0;margin:auto 0}
#gesture-demo{position:relative;height:230px;margin:18px 0;border:2px solid #39bdae;border-radius:24px;overflow:hidden;background:linear-gradient(#087d8b,#27bcb3);touch-action:none;cursor:ew-resize}
.gesture-path{position:absolute;left:12%;right:12%;top:58%;display:flex;justify-content:space-between;border-bottom:3px dashed #ccffe480;color:#e4fff0;font-size:28px}
.gesture-catcher{position:absolute;left:50%;top:49%;width:70px;transform:translateX(-50%);animation:gesture-swipe 2.8s ease-in-out infinite}
.gesture-catcher img{display:block;width:70px;height:70px;object-fit:contain}
.gesture-hand{position:absolute;width:45px;height:59px;top:40px;left:40px;fill:#ffddb2;stroke:#936644;stroke-width:2.2;filter:drop-shadow(0 3px 2px #005c7970)}
.gesture-rain{position:absolute;left:48%;top:14%;width:22px;height:28px;border-radius:50% 50% 48% 48%;background:#d4fff0;box-shadow:inset -5px -4px #67dbcc;animation:gesture-rain 2.8s ease-in-out infinite}
.gesture-caption{position:absolute;bottom:12px;left:0;width:100%;text-align:center;color:#e4fff0;font-size:12px}
.gesture-note{font-size:13px;color:#136675;line-height:1.6}
#gesture-demo.touching .gesture-catcher{animation:none}
#help-screen .story{font-size:16px;line-height:1.6}
@keyframes gesture-swipe{0%,100%{left:28%}50%{left:72%}}
@keyframes gesture-rain{0%,100%{transform:translate(-45px,0);opacity:0}20%{opacity:1}65%{transform:translate(45px,90px);opacity:1}75%{transform:translate(45px,90px) scale(.3);opacity:0}}
@keyframes float-drop{50%{transform:translateY(-8px) rotate(3deg)}}
@keyframes wave-border{30%{box-shadow:0 0 0 5px #ffe777,0 0 35px #d9ff8a;transform:scale(1.008)}}
@keyframes wave-scale{35%{transform:scale(1.06)}}
@media(max-height:740px){#title-screen>.card{gap:7px}.studio-brand{font-size:46px}.studio-brand small{font-size:12px;margin-top:10px}.studio-hero{width:96px;height:96px}#title-screen .pill{min-height:55px}#journey{padding:8px 12px}#gesture-demo{height:180px}}
@media(max-height:600px){.studio-hero{width:80px;height:80px}#journey p{display:none}.journey-place-image{width:24px;height:24px;flex-basis:24px}.journey-boss{margin-top:4px}.journey-boss img{width:28px;height:28px}#title-screen #daily-note{min-height:32px;padding:4px 6px;font-size:11px}}
#boss-tap-cue{position:absolute;z-index:19;left:18%;right:18%;top:44%;text-align:center;pointer-events:none;color:#fff6be;text-shadow:0 3px 0 #075263,0 0 12px #033d56;font-family:Jua,sans-serif}
#boss-tap-cue b{display:block;font-size:32px;line-height:1.25;animation:tap-words .65s ease-in-out infinite alternate}
#boss-tap-cue span{display:block;font-size:14px;line-height:1.45;margin-top:7px}
.boss-tap-motion{position:relative;width:94px;height:102px;margin:0 auto 8px}
.boss-tap-motion svg{position:absolute;left:22px;top:18px;width:62px;height:78px;filter:drop-shadow(0 4px 4px #004b65);animation:boss-finger .65s ease-in-out infinite}
.boss-tap-motion i{position:absolute;left:0;top:0;width:78px;height:78px;border:5px solid #fff2a8;border-radius:50%;animation:boss-tap-ring 1.2s ease-out infinite}
.boss-tap-motion i:nth-child(2){animation-delay:.4s}.boss-tap-motion i:nth-child(3){animation-delay:.8s}
#boss-tap-cue.compact{left:23%;right:23%;top:auto;bottom:24%;background:#064f69d9;border:1px solid #a0e7cf;border-radius:15px;padding:7px}
#boss-tap-cue.compact .boss-tap-motion{display:none}
#boss-tap-cue.compact b{font-size:18px;animation:none}
#boss-tap-cue.compact span{font-size:11px;margin-top:2px}
@keyframes boss-tap-ring{0%{transform:scale(.4);opacity:1}100%{transform:scale(1.6);opacity:0}}
@keyframes boss-finger{0%,100%{transform:translate(5px,7px) rotate(-8deg)}50%{transform:translate(-2px,-5px) rotate(-8deg)}}
@keyframes tap-words{to{transform:scale(1.08)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
