:root{font-family:"Trebuchet MS",system-ui,sans-serif;color:#174e74;background:#e7f6f8;--ink:#174e74;--teal:#007f95;--aqua:#47aabd;--line:#a4dce8;--paper:#f7fcfd;--shadow:0 3px 4px #1d5e6f2c}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at 50% 8%,#f8ffff,#c7ebf2 90%);min-height:100dvh}
button,input,textarea,select{font:inherit}
button{color:inherit;cursor:pointer;border:1px solid transparent;background:#e9f8fc;border-radius:999px;min-height:42px;padding:8px 15px}
button:hover{filter:brightness(.96)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #087b95;outline-offset:3px}
button:disabled{cursor:default;opacity:.5}
.app{position:relative;isolation:isolate;width:min(100%,480px);margin:auto;min-height:100dvh;background:#bceaf4 url(assets/explorebg.png) center top/auto 100% no-repeat;box-shadow:0 0 65px #2b798b25}
.app[data-page=home],.app[data-page=tasks]{background-image:url(assets/sea.png);background-position:72% 25%;background-size:auto max(100%,980px)}
.app[data-page=closet]{background-image:url(assets/closetbg.png);background-position:42% 58%;background-size:auto 135%}
.app[data-page=shop]{background-image:url(assets/shopbg.png),url(assets/closetbg.png);background-position:50% 68%;background-size:auto 135%}
.app[data-page=focus]{background-image:url(assets/focusbg.png);background-position:center center;background-size:cover}
.app[data-page=welcome]{background-image:url(assets/welcome-bg.png);background-position:center center;background-size:cover}
main{min-height:100dvh;padding:32px 20px 102px}
h1,h2,h3,p{margin-top:0}
h1,.display{font-family:"Titan One","Arial Rounded MT Bold",system-ui,sans-serif;color:var(--teal);font-weight:900;line-height:1.06;letter-spacing:-.025em}
h1{font-size:clamp(2rem,9vw,2.8rem);margin:0}
h2{font-size:1.27rem;margin-bottom:12px;color:#006577}
h3{font-size:1rem;margin-bottom:5px}
p{line-height:1.45}
.small,small{color:#41617a;font-size:.87rem}
.header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;position:relative;z-index:2}
.header-actions{display:grid;gap:8px;justify-items:end;flex:none}
.balance{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;color:#112e3d;background:#fbfeffd9;box-shadow:var(--shadow);border-radius:999px;min-height:30px;font-weight:bold}
.balance img,.price img{width:21px;height:21px;object-fit:contain}
.greeting{font-family:inherit;font-size:1.7rem;font-weight:750;color:var(--ink)}
.scene{height:274px;position:relative;overflow:visible;margin:0 -20px}
.ground{position:absolute;width:95%;height:100%;object-fit:contain;bottom:-5%;left:4%}
.bubble{position:absolute;left:50%;top:48%;width:42%;height:auto;aspect-ratio:183/226;transform:translate(-50%,-50%)}
.bubble>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.bubble>.wear{inset:auto;height:auto;left:50%;transform:translateX(-50%);pointer-events:none}
.bubble>.captain{width:84%;top:0;left:55%;transform:translateX(-50%) rotate(9deg)}
.bubble>.glasses{width:69%;top:43%}
.bubble>.bow{width:31%;top:66%}
.bubble>.bag{width:31%;top:76%;left:78%}
.bubble>.pack{width:35%;top:67%;left:18%}
.bubble>.skirt{width:79%;top:77%}
.bubble>.bottle,.bubble>.shell,.bubble>.bucket{width:33%;top:76%;left:89%}
.closet-scene{height:258px}
.closet-scene .ground{height:46%;bottom:1%;left:7%;width:86%}
.closet-scene .bubble{width:44%;top:45%}
.welcome{text-align:center;display:grid;min-height:calc(100dvh - 90px);align-content:center;gap:10px}
.welcome h1{font-size:clamp(3.5rem,15vw,5.3rem);color:#49aabc;text-shadow:0 3px #fff,0 6px 6px #16567265;line-height:.95}
.welcome p{color:var(--teal);font-weight:900;font-size:1.6rem;margin-bottom:4px}
.welcome .scene{margin:17px -16px 0;height:clamp(240px,39vh,355px)}
.welcome .ground{height:100%}
.welcome .bubble{width:46%}
.welcome .primary{justify-self:center;font-size:1.18rem;min-width:56%}
.card{background:var(--paper);border:1px solid #c3e5eb;border-radius:23px;box-shadow:var(--shadow);padding:18px 21px;margin-bottom:15px}
.card h2{color:#328da5}
.stat{font-size:1.6rem;font-weight:750;color:#263e59}
.chart{display:flex;gap:8px;align-items:end;height:83px;border-bottom:1px solid #c8dfe6;margin:3px 0 10px}
.bar{flex:1;text-align:center;border-radius:7px 7px 0 0;background:#58b9c9;min-height:3px}
.chart-labels{display:flex;justify-content:space-around;font-size:.73rem;color:#41617a}
.row,.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.row.spread{justify-content:space-between}
.primary{background:#087e93;color:white;font-weight:bold}
.secondary{background:#9adce7;font-weight:bold}
.plain{background:#f8fcfd;border-color:var(--line)}
.link{background:transparent;text-decoration:underline;padding-inline:4px}
.section{margin:19px 0 10px}
.tabs{display:flex;gap:5px;margin:0 0 14px;padding:4px;background:#e7f7fade;border-radius:22px}
.tabs button{flex:1;min-height:36px;padding:5px 8px;background:transparent}
.tabs button[aria-pressed=true],.chip[aria-pressed=true]{background:#2e9fb0;color:white}
.chips{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 12px}
.chip{background:#f8fcfd;min-height:33px;padding:4px 11px;font-size:.82rem}
.task{display:grid;align-items:center;grid-template-columns:40px minmax(0,1fr) auto;gap:6px;background:#fbfeff;border:1px solid #c2eaf0;border-radius:17px;padding:8px;margin:9px 0}
.done-toggle{height:36px;width:36px;min-height:36px;border:1px solid #86d8e7;background:white;padding:0}
.done-toggle[aria-pressed=true]{background:#0c8295;color:white}
.task-name{background:none;text-align:left;padding:4px;min-width:0;overflow-wrap:anywhere}
.task-name span,.task-name small{display:block}
.task[data-done=true] .task-name span{text-decoration:line-through}
.task .play{width:42px;padding:0;background:#e1f5fa}
.task-hero{height:142px;margin-top:-4px}
.task-hero .ground{left:39%;width:64%}
.task-hero .bubble{left:66%;top:45%;width:27%}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.shop-grid,.explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.tile{background:#ecf9fddd;border:1px solid #91d9e8;box-shadow:var(--shadow);border-radius:22px;display:grid;justify-items:center;align-content:center;gap:4px;padding:9px 4px;min-height:112px;text-align:center;line-height:1.08}
.tile img{width:93%;height:67px;object-fit:contain}
.tile .name{font-size:.83rem;font-weight:700}
.tile small{font-size:.75rem}
.tile[aria-pressed=true]{border:2px solid #087b95;background:#f6fcfd;padding:8px 3px}
.shop-grid .tile,.explore-grid .tile{min-height:151px;padding:9px 8px}
.shop-grid .tile img,.explore-grid .tile img{height:90px}
.price{display:inline-flex;gap:4px;align-items:center;font-variant-numeric:tabular-nums}
.price img{height:17px!important;width:17px}
.focus-title{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:10px 0}
.focus-stage{height:400px;position:relative;margin:0 -15px}
.ring{position:absolute;top:7px;left:50%;width:min(80%,330px);aspect-ratio:1;transform:translateX(-50%);border-radius:50%;background:conic-gradient(#43a9bc var(--progress,100%),#bae3ed 0);display:grid;place-items:center}
.ring::before{content:"";position:absolute;inset:8%;border-radius:50%;background:#d7f3fa}
#clock{z-index:1;color:#174e74;font-size:clamp(2.6rem,12vw,4.2rem);font-weight:bold;align-self:start;margin-top:28%;font-variant-numeric:tabular-nums}
.focus-stage .scene{position:absolute;inset:auto 0 0;height:243px;margin:0}
.focus-stage .ground{height:77%;bottom:0;width:85%;left:8%}
.focus-stage .bubble{width:46%;top:45%}
.focus-actions{justify-content:center;margin:16px 0;gap:13px}
.focus-actions button{min-width:83px}
.bottle-action{position:absolute;right:18px;bottom:7px;background:#d8f4f8;border-color:#72c2d2;font-size:.82rem}
.presets{display:flex;gap:7px;margin:5px 0 12px}
.presets button{flex:1;padding-inline:5px}
#nav{position:sticky;bottom:0;margin-top:-76px;display:flex;gap:8px;justify-content:center;padding:8px 14px max(13px,env(safe-area-inset-bottom));z-index:4;pointer-events:none}
#nav:empty{display:none}
.nav-inner{display:flex;gap:5px;flex:1;border-radius:19px;background:#f1fbfbed;box-shadow:var(--shadow);padding:5px;pointer-events:auto}
.nav-inner button{flex:1;min-width:0;display:grid;justify-items:center;align-content:center;gap:2px;padding:3px;background:#bfe9f4;color:#145c72;font-size:.69rem}
.nav-inner button[aria-current=page]{background:#288ba2;color:white}
.icon{height:19px;width:19px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.add{border:1px solid #23899c;box-shadow:var(--shadow);background:#58b8c8;color:#fff;font-weight:bold;align-self:center;pointer-events:auto;width:46px;height:46px;padding:0;display:grid;place-items:center}
.add .icon{width:25px;height:25px}
dialog{width:min(calc(100% - 24px),442px);max-height:90dvh;overflow:auto;border:1px solid #a2dbe5;border-radius:24px;background:#f5fcfd;color:var(--ink);padding:20px;box-shadow:0 16px 70px #123c5960}
dialog::backdrop{background:#143b5866}
dialog header{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:12px}
dialog header h2{margin:6px 0}
dialog header button{padding:0;width:40px;min-height:40px}
label{display:grid;gap:4px;font-size:.9rem;font-weight:700;margin-bottom:11px}
input,textarea,select{width:100%;border:1px solid #8ac5d2;border-radius:10px;padding:9px;background:white;color:#174e74}
textarea{min-height:78px;resize:vertical}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.form-grid>*{min-width:0}
.empty{text-align:center;padding:24px 12px;color:#315872}
#notice{position:fixed;bottom:80px;left:50%;transform:translateX(-50%);z-index:5;background:#164e65;color:white;padding:9px 15px;border-radius:16px;width:max-content;max-width:88vw;pointer-events:none}
#notice:empty{display:none}
.detail-art{display:block;max-width:100%;width:140px;height:100px;object-fit:contain;margin:0 auto 14px}
.milestone{display:flex;align-items:center;justify-content:space-between;gap:10px}
@media(min-width:520px){.app{min-height:100dvh} main{padding-top:37px}}
@media(max-width:350px){main{padding-inline:14px}.grid{gap:6px}.scene{margin-inline:-14px}.tile{min-height:99px}.focus-stage{height:345px}.focus-stage .scene{height:190px}}
.bottle-action img{display:block;width:36px;height:42px;object-fit:contain;margin:0 auto 1px}
.dialog-notice:not(:empty){margin-top:12px;color:#096879;font-weight:700}
.app[data-page=support],.app[data-page=company],.app[data-page=preferences]{background:#bceaf4 url(assets/welcome-bg.png) center/cover no-repeat}
.app[data-page=pace]{background:#c4eff9 url(assets/focusbg.png) center/cover no-repeat}
.app[data-page=voice]{background:#bceaf4 url(assets/voice-bg.png) center/cover no-repeat}
.app[data-page=map]{background:#aee5f2 url(assets/mapbg.png) center/cover no-repeat}
:is(.app[data-page=support],.app[data-page=pace],.app[data-page=company],.app[data-page=preferences],.app[data-page=voice]) main{padding-bottom:40px}
.onboarding{display:flex;flex-direction:column;min-height:calc(100dvh - 85px)}
.welcome-controls{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:4px;font-size:.86rem}
.welcome-controls button{justify-self:start;text-decoration:none}
.welcome-controls button:last-child{justify-self:end}
.step-track{display:flex;justify-content:center;gap:6px;margin:1px 0 21px}
.step-track span{width:27px;height:4px;border-radius:10px;background:#fff}
.step-track .filled{background:#0b879e}
.onboarding h1{margin:6px 0}
.onboarding>p{font-size:.93rem;margin-bottom:16px}
.onboarding>.primary,.welcome>.primary{align-self:center;justify-self:center;margin-top:22px;width:min(75%,245px);min-height:56px;border:2px solid white;background:linear-gradient(#65c8db,#1ca2b8);font-size:1.19rem;text-transform:uppercase}
.welcome-companion{display:flex;align-items:center;gap:13px;margin:3px 0 15px}
.welcome-companion img{width:37%;height:130px;object-fit:contain}
.welcome-companion .card{padding:13px;margin:0;box-shadow:none}
.welcome-companion p{margin:5px 0 0;font-size:.87rem}
.answers{display:grid;gap:9px}
.answer-row{grid-auto-flow:column;grid-auto-columns:1fr}
.answer{display:grid;text-align:left;gap:3px;background:#f6fcfd;border:2px solid transparent;border-radius:20px;padding:12px;min-height:65px}
.answer[aria-pressed=true],button[data-action=sound-choice][aria-pressed=true]{border-color:#0b7188;background:#e3f7fb}
.answer img{display:block;width:100%;height:85px;object-fit:contain;margin:0 0 7px}
.answer small:empty{display:none}
.pace-dial{display:grid;place-content:center;text-align:center;gap:5px;width:min(215px,66vw);aspect-ratio:1;border:7px solid #47aabd;border-radius:50%;margin:22px auto 28px;background:#ddf7fcbd}
.pace-dial strong{font-size:2.65rem;font-variant-numeric:tabular-nums}
.pace-dial span{font-size:.9rem}
.pace-hint{text-align:center;margin-top:18px}
.welcome-scene{height:225px}
.preference-list{display:grid;gap:7px}
.preference-row{background:#f6fcfd;border-radius:20px;padding:7px 11px 7px 15px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.preference-row small,.preference-row strong{display:block}
.preference-row small{text-transform:uppercase;font-size:.73rem}
.preference-row strong{font-weight:500}
.support-cue{margin:-10px 0 12px;text-align:center;font-size:.88rem}
.voice-page .scene{height:240px}
.voice-page form{background:#f6fcfdeb;border:1px solid #a8dce7;padding:15px;border-radius:22px}
.voice-controls{display:grid;justify-items:center;gap:8px;text-align:center}
.voice-controls p{margin:0 0 10px}
.mic{display:grid;place-items:center;width:76px;height:76px;border:8px solid #ace6ef;background:#399fb3;color:white;padding:0;margin:4px auto}
.mic .icon{width:28px;height:28px}
.mic[data-listening=true]{background:#08677f;border-color:#7ad1e1;box-shadow:0 0 0 5px #9addeda0}
.route-progress{background:#effcfeec;border-radius:17px;padding:8px 11px;font-size:.88rem;margin:10px 0 4px}
.map-stops{display:grid;gap:0}
.map-stop{position:relative;display:flex;align-items:center;justify-content:start;text-align:left;padding:0;background:transparent;min-height:105px}
.map-stop img{width:66%;height:135px;object-fit:contain}
.map-stop span{background:#f0fbfcee;box-shadow:var(--shadow);border-radius:12px;padding:8px;width:max-content;max-width:48%;margin-left:-13%}
.map-stop:nth-child(3) img{order:1;margin-left:-13%}
.map-stop:nth-child(3) span{margin-left:7%;z-index:1}
.map-stop:nth-child(1) img{height:162px;width:75%}
.map-stop:nth-child(4) img{height:153px}
.map-stop strong,.map-stop small{display:block}
.island-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.island-tabs{margin-top:20px}
.island-card{position:relative}
.island-card .tile{width:100%;min-height:148px;padding:15px 5px 8px}
.island-card .tile img{height:86px;width:100%}
.island-card.locked .tile img{filter:grayscale(.85);opacity:.68}
.island-card .favorite{position:absolute;right:4px;top:3px;width:40px;min-height:39px;padding:0;border:0;background:#edfaffd9;color:#086e84;font-size:1.3rem}
progress{width:100%;accent-color:#168ca1}
