@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@300;400;500;600&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#123f48;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#55c7d8;touch-action:none;-webkit-user-select:none;user-select:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0}button:focus-visible,a:focus-visible{outline:3px solid #fff;outline-offset:5px}button:hover{filter:brightness(1.07)}button:active{transform:scale(.97)}[hidden]{display:none!important}#world{position:fixed;inset:0;width:100%;height:100%}.grain{pointer-events:none;position:fixed;inset:0;opacity:.12;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.55' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}.vignette{pointer-events:none;position:fixed;inset:0;background:linear-gradient(90deg,#e8fbec30,transparent 55%,#00374416)}header{position:fixed;top:0;left:0;right:0;padding:32px 4.5%;display:flex;align-items:center;justify-content:space-between;z-index:5}.wordmark{font-family:Outfit,sans-serif;font-size:39px;font-weight:500;letter-spacing:-2.5px;color:inherit;text-decoration:none}.wordmark span{font:11px 'DM Sans',sans-serif;letter-spacing:1px;margin-left:20px;opacity:.65}.top-actions{display:flex;gap:10px}.round{position:relative;width:40px;height:40px;border:1px solid #17454a35;border-radius:50%;background:#d4faf529;font-size:18px;backdrop-filter:blur(8px)}.slash{position:absolute;width:18px;height:1px;background:#123f48;transform:rotate(-45deg);left:11px;top:20px}.round.enabled .slash{display:none}#pause{display:none}#landing{position:absolute;left:9%;top:28%;z-index:2;max-width:650px}.eyebrow{font-size:10px;letter-spacing:2.7px;font-weight:600;display:flex;align-items:center;gap:10px}.eyebrow span{display:block;width:6px;height:6px;border-radius:50%;background:#226c6e}h1{font-family:Outfit,sans-serif;font-weight:400;font-size:clamp(52px,6vw,88px);line-height:1.07;letter-spacing:-4px;margin:27px 0 24px}h1 em{font-family:Georgia,serif;font-weight:400}#landing>p{font-size:15px;line-height:1.9;color:#285d61;margin:0 0 34px}.primary{background:#173f46;color:#f0f7e7;border-radius:40px;padding:18px 27px;min-width:188px;display:flex;justify-content:space-between;align-items:center;gap:32px;font-size:14px;box-shadow:0 6px 20px #1a69772a}.primary span{font-size:22px}.start-note{font-size:9px;letter-spacing:2px;margin:16px 0 0 20px;opacity:.58}#intro-bottom{position:fixed;bottom:31px;left:4.5%;right:4.5%;display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.6px;opacity:.7}.location{position:absolute;top:117px;left:4.5%}.location>span,.tiny{font-size:9px;letter-spacing:2px;font-weight:600}.location h2{font:400 29px Outfit,sans-serif;letter-spacing:-.7px;margin:8px 0 5px}.location p{font-size:11px;opacity:.65;margin:0}.collection{position:fixed;right:4.5%;top:114px;display:flex;align-items:center;gap:12px;padding:12px 18px;border:1px solid #ffffff45;border-radius:30px;background:#e2faf34d;backdrop-filter:blur(12px);font-size:12px}.pearl-icon{font-size:22px}.divider{width:1px;height:20px;background:#1a54562a}.collection button{background:none;padding:0;font-size:14px}.collection button span{margin-left:8px;font-size:11px}.quest{position:fixed;left:4.5%;top:220px;display:flex;align-items:center;gap:13px;border-top:1px solid #17454a25;padding-top:18px}.quest-symbol{font-size:30px}.quest p{font-size:12px;margin:7px 0;max-width:230px}.quest .tiny{font-size:8px;opacity:.6}.quest #quest-arrow{font-size:20px;padding:0 10px}.stillness{position:fixed;left:50%;bottom:98px;transform:translateX(-50%);text-align:center;pointer-events:none}.stillness>span{font-size:30px}.stillness p{font-size:11px;letter-spacing:.7px;margin:5px 0 12px}.still-track{height:2px;background:#154c4820;width:110px;margin:auto}.still-track i{display:block;height:100%;background:#eaffdc;width:0}.dive{position:fixed;bottom:99px;right:6%;height:94px;width:94px;border:1px solid #e7ffecb0;border-radius:50%;background:#e1fbeb80;backdrop-filter:blur(12px);box-shadow:0 7px 30px #134b5422;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px}.dive>span{font-size:26px;font-weight:300}.dive b{font-size:12px;font-weight:500}.dive small{font-size:5px;letter-spacing:1px}.bottom-actions{position:fixed;bottom:max(25px,env(safe-area-inset-bottom));left:4.5%;right:4.5%;display:flex;justify-content:space-between}.bottom-actions button{background:none;font-size:11px;letter-spacing:.5px;padding:10px 0}#control-hint{position:fixed;bottom:38px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:8px;letter-spacing:1.3px;opacity:.55}#control-hint span{padding:0 13px}#oxygen{position:fixed;left:50%;top:110px;transform:translateX(-50%);display:none;align-items:center;gap:9px;font-size:8px;letter-spacing:1px}#oxygen>div{width:130px;height:4px;background:#163d4f44;border-radius:4px}#oxygen i{height:100%;display:block;background:#e2ffe8;border-radius:4px}#joystick{display:none;position:fixed;pointer-events:none;border:1px solid #ffffff88;border-radius:50%;width:100px;height:100px;background:#ffffff15}#joystick i{position:absolute;width:36px;height:36px;left:31px;top:31px;border-radius:50%;border:1px solid #fff8;background:#e4fff655}#toast{position:fixed;left:50%;top:32%;transform:translate(-50%,-10px);background:#123f48e8;color:#f3f9e9;border:1px solid #efffeb33;padding:14px 23px;border-radius:30px;z-index:20;opacity:0;transition:.4s;pointer-events:none;text-align:center;font-size:12px;max-width:90vw;width:max-content}#toast.show{opacity:1;transform:translate(-50%,0)}#modal{position:fixed;inset:0;background:#082e4266;backdrop-filter:blur(12px);z-index:30;display:grid;place-items:center;padding:20px}.modal-card{position:relative;width:min(480px,100%);max-height:85dvh;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;border-radius:25px;background:#f0f5e9;color:#21464b;padding:38px;box-shadow:0 30px 100px #052b4466}.close{position:absolute;right:17px;top:12px;background:none;font-size:27px;opacity:.6}.modal-card h2{font:400 35px Outfit,sans-serif;letter-spacing:-1px;margin:12px 0}.modal-card p{font-size:13px;line-height:1.8;opacity:.8}.modal-card .eyebrow{font-size:8px}.modal-card .primary{margin-top:24px;width:100%}.instructions{display:grid;gap:15px;margin-top:25px}.instructions div{display:flex;gap:15px;align-items:center;font-size:12px;line-height:1.7}.instructions b{font-size:23px;font-weight:400;min-width:30px}.upgrade{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid #16404722}.upgrade>span{font-size:25px}.upgrade div{flex:1}.upgrade h3{font-size:13px;margin:0 0 5px}.upgrade p{font-size:10px;margin:0;line-height:1.4}.upgrade button{border-radius:20px;background:#1b5354;color:#f0f5e9;padding:10px 14px;font-size:11px}.upgrade button:disabled{opacity:.4;cursor:default}.memory-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:22px}.memory-card{border:1px solid #16404720;border-radius:12px;padding:16px;font-size:11px;line-height:1.7}.memory-card>span{display:block;font-size:24px;margin-bottom:7px}.memory-card.locked{opacity:.4}.zone{width:100%;text-align:left;padding:20px;border:1px solid #17444b22;border-radius:15px;background:#fff5;margin-top:12px}.zone b{display:block;font:22px Outfit,sans-serif;margin-bottom:5px}.zone small{font-size:11px}.zone:disabled{opacity:.4;cursor:default}body.dream{color:#e7f4e8}body.dream .round,body.dream .wordmark{color:#e7f4e8}body.dream .quest,body.dream .collection{background:#d4e7ff22}body.dream .collection button,body.dream .bottom-actions button{color:#e7f4e8}body.dream .dive{color:#1e4751}body.dream .location p{color:#effff6}.memory-scene{text-align:center;padding:16px}.memory-scene .scene-art{font-size:65px;padding:28px 0;background:radial-gradient(ellipse,#8edbd790,transparent 70%);animation:bob 4s ease-in-out infinite}@keyframes bob{50%{transform:translateY(-8px)}}
@media(max-width:600px){header{padding:23px 23px}.wordmark{font-size:34px}.wordmark span{display:none}.round{width:35px;height:35px;font-size:16px}.slash{left:9px;top:17px}#landing{left:8%;top:19%;right:6%}.eyebrow{font-size:7px;letter-spacing:1.9px;gap:7px}h1{font-size:53px;letter-spacing:-2.5px;margin:23px 0 17px}#landing>p{font-size:12px;line-height:1.8;margin-bottom:25px}.primary{padding:15px 22px;min-width:168px;font-size:12px}.start-note{font-size:7px;margin:13px 0 0 14px}#intro-bottom{bottom:25px;left:8%;right:8%;font-size:7px}.made{display:none}.location{top:100px;left:24px}.location h2{font-size:25px}.location p{font-size:9px;max-width:180px}.location>span{font-size:8px}.collection{top:101px;right:22px;padding:8px 12px;gap:7px}.collection button span{margin-left:3px;font-size:10px}.quest{left:24px;top:195px;max-width:300px;padding-top:12px}.quest p{font-size:11px}.quest-symbol{font-size:25px}.dive{right:25px;bottom:100px;width:78px;height:78px}.dive small{font-size:4px}.stillness{bottom:118px;left:40%}.stillness p{font-size:9px}.bottom-actions{left:25px;right:25px;bottom:max(21px,env(safe-area-inset-bottom))}.bottom-actions button{font-size:9px}#control-hint{bottom:75px;font-size:6px;letter-spacing:1px}#control-hint span{padding:0 6px}#oxygen{top:164px;left:auto;right:23px;transform:none;font-size:6px}#oxygen>div{width:75px}.modal-card{padding:31px 24px}.modal-card h2{font-size:29px}.modal-card p{font-size:12px}.memory-card{padding:12px}#toast{top:37%;font-size:11px;max-width:85vw}}@media(max-height:580px) and (min-width:601px){#landing{top:20%}h1{font-size:48px;margin:18px 0}#landing>p{margin-bottom:20px}.location{top:95px}.quest{top:186px}.stillness{bottom:75px}.dive{bottom:75px}}
.ocean-map{padding:23px;border:1px solid #175e6330;border-radius:18px;text-align:center;background:radial-gradient(ellipse at 30% 40%,#a4d8c1,transparent 35%),repeating-radial-gradient(ellipse at 50% 50%,#a2d9d660 0 20px,#d2e9d650 22px 40px)}.ocean-map span,.ocean-map small{display:block;font-size:10px}.ocean-map b{display:block;font-size:60px;font-weight:300;margin:10px}.location{max-width:55%}.location>span{display:block;max-width:260px;line-height:1.7}.location h2{line-height:1.12}.quest{max-width:85%}@media(max-width:600px){.location h2{font-size:23px;max-width:205px}.location>span{font-size:7px;max-width:200px}.quest p{max-width:235px}}
.inventory-tabs{display:flex;border-bottom:1px solid #1b57592a;margin-top:20px}.inventory-tabs button{flex:1;padding:13px;background:none;font-size:13px}.inventory-tabs button[aria-selected=true]{border-bottom:2px solid #1b5759;font-weight:600}.inventory-tabs span{opacity:.55;margin-left:8px}.inventory-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.inventory-item{position:relative;padding:16px 10px;border:1px solid #1b575921;border-radius:15px;text-align:center}.inventory-item h3{font-size:12px;margin:5px 0 10px}.inventory-item button{display:block;width:100%;padding:9px 4px;border-radius:15px;margin-top:5px;font-size:10px;background:#d4e6d8}.inventory-item .quiet-button{background:none;color:#637975}.item-quantity{position:absolute;right:10px;top:10px;font-size:10px}.inventory-notice{font-size:11px!important;min-height:36px}.empty-bag{padding:28px 10px;text-align:center;font-size:12px;line-height:1.8;grid-column:1/-1;opacity:.7}.bag-footnote{font-size:10px!important;line-height:1.7}.text-link{display:block;background:none;padding:12px 0;font-size:11px;text-decoration:underline}.letter-card{display:flex;align-items:center;gap:10px;border-bottom:1px solid #1a555528;padding:14px 0}.letter-card div{flex:1;min-width:0}.letter-card h3{font-size:12px;margin:0}.letter-card p{font-size:10px;margin:5px 0;overflow-wrap:anywhere}.letter-card button,.mail-pending button{border-radius:14px;padding:9px 12px;background:#d4e6d8;font-size:11px}.note-label{display:block;font-size:12px;margin:20px 0 8px}#sea-note{width:100%;resize:vertical;border:1px solid #497a6f55;border-radius:12px;padding:15px;font:14px/1.7 Georgia,serif;color:#31514e;background:#fbf7e9;user-select:text;touch-action:auto}.paper-letter{white-space:pre-wrap;overflow-wrap:anywhere;background:#fbf5e5;padding:26px 20px;border-radius:12px;font:16px/1.9 Georgia,serif;user-select:text;touch-action:auto}.mail-pending{padding:15px;border:1px solid #ab91604d;border-radius:12px;font-size:12px;line-height:1.7;margin-bottom:15px}
.level-label{font-size:8px;letter-spacing:1.6px;margin-top:5px;opacity:.7}.location h2{margin-top:5px}@media(max-width:600px){.location p{font-size:8px;line-height:1.5}.location h2{font-size:22px}}
.level-label{overflow-wrap:anywhere;max-width:210px}
.account-button{border:1px solid #17454a35;background:#d4faf529;padding:8px 12px;border-radius:22px;font-size:10px;backdrop-filter:blur(8px)}#cloud-form input{width:100%;border:1px solid #497a6f55;border-radius:9px;padding:12px;background:#fbf7ed;font:14px inherit;user-select:text;touch-action:auto}.recovery-key{font-family:monospace;font-size:14px;overflow-wrap:anywhere}.top-actions{gap:7px}body.dream .account-button{color:#e7f4e8}@media(max-width:600px){.account-button{font-size:9px;padding:7px 10px}.top-actions{gap:6px}}

/* Bilingual branding and compact controls retain room for the ocean. */
.wordmark{font-size:28px;letter-spacing:-1px;white-space:nowrap}.wordmark span{margin-left:13px}
.language-button{color:inherit;display:flex;align-items:center;padding:7px 9px;border:1px solid #17454a35;border-radius:22px;text-decoration:none;font-size:11px;white-space:nowrap;background:#d4faf529}
#landing h1{font:500 24px Outfit,"Microsoft YaHei",sans-serif;letter-spacing:.2px;margin:20px 0 15px}.landing-tagline{font:400 clamp(45px,6vw,80px)/1.08 Outfit,"Microsoft YaHei",sans-serif;letter-spacing:-3px;margin-bottom:24px}.landing-tagline em{font-family:Georgia,serif}.guide-link{display:inline-block;margin-top:20px;font-size:11px;color:inherit;text-underline-offset:4px}.noscript-note{position:fixed;bottom:70px;left:8%;right:8%;padding:15px;background:#eef7e7;border-radius:12px;z-index:10}
html[lang^="zh"]{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif}html[lang^="zh"] .wordmark,html[lang^="zh"] h1,html[lang^="zh"] h2{letter-spacing:1px}html[lang^="zh"] .landing-tagline{font-family:"PingFang SC","Microsoft YaHei",sans-serif;letter-spacing:0;font-size:clamp(40px,5vw,67px);line-height:1.35}html[lang^="zh"] .landing-tagline em{font-style:normal;font-family:inherit}html[lang^="zh"] .dive small{font-size:9px;letter-spacing:0}html[lang^="zh"] .tiny,html[lang^="zh"] .eyebrow{letter-spacing:1px}
@media(max-width:600px){header{padding:18px 16px;gap:8px}.wordmark{font-size:19px;letter-spacing:-.7px}.top-actions{gap:4px;align-items:center}.round{width:29px;height:29px;font-size:14px}.slash{left:6px;top:14px}.account-button{font-size:8px;padding:7px 8px}.language-button{font-size:10px;padding:7px}.landing-tagline{font-size:48px;letter-spacing:-2px;margin-bottom:19px}#landing{top:17%}#landing h1{font-size:21px;margin:16px 0 12px}#landing>p{font-size:11px}.guide-link{font-size:10px;margin-top:18px}html[lang^="zh"] .landing-tagline{font-size:40px}html[lang^="zh"] .dive small{font-size:7px}}
@media(max-width:360px){.wordmark{font-size:16px}.top-actions{gap:3px}.account-button{padding:7px 6px}.language-button{padding:6px}.round{width:27px;height:27px}header{padding:16px 12px}.landing-tagline{font-size:41px}html[lang^="zh"] .landing-tagline{font-size:35px}}
@media(max-height:600px){#landing{top:18%}#landing h1{font-size:18px;margin:5px 0 10px}.landing-tagline,html[lang^="zh"] .landing-tagline{font-size:37px;margin-bottom:14px}#landing>p{margin-bottom:15px}.guide-link{margin-top:10px}}

@media(min-width:601px) and (max-height:700px){#landing{top:19%}#landing h1{font-size:20px;margin:14px 0 12px}.landing-tagline{font-size:54px;margin-bottom:18px}#landing>p{font-size:13px;line-height:1.7;margin-bottom:20px}.guide-link{margin-top:12px}.start-note{margin-top:12px}}

.google-signin{padding:8px 0 12px;border-bottom:1px solid #123f4822;margin-bottom:10px;min-height:100px}.google-signin [data-google-button]{min-height:40px}.google-signin [data-google-status]:empty{display:none}

#landing>.start-legal{font-size:9px;line-height:1.6;max-width:340px;margin:12px 0 0;color:#24545a}a{color:inherit}.account-legal,.message-safety{font-size:10px!important;line-height:1.7!important}.message-safety{background:#e0e9d9;border-radius:10px;padding:12px}.start-legal a,.account-legal a,.message-safety a{text-underline-offset:3px}@media(max-height:700px) and (min-width:601px){#landing>.start-legal{margin-top:8px;font-size:9px}}@media(max-width:600px){#landing>.start-legal{font-size:8px;max-width:270px}}

#turtle-shop{display:flex;align-items:center;justify-content:center;min-width:32px;min-height:32px}#turtle-shop svg{display:block}.collection{gap:10px}@media(max-width:600px){.collection{top:70px;right:16px;gap:7px}.location{top:132px;max-width:70%}.quest{top:235px}#oxygen{top:207px}}

#google-link-password{width:100%;border:1px solid #497a6f55;border-radius:9px;padding:12px;background:#fbf7ed;font:inherit;user-select:text;touch-action:auto}

/* Phone HUD: compact edge bands leave the central ocean clear. */
@media(max-width:600px){
 header{padding:calc(10px + env(safe-area-inset-top)) 12px 8px;gap:8px}.wordmark{font-size:16px}.top-actions{gap:4px;align-items:center}.round{width:36px;height:36px;font-size:16px}.slash{left:9px;top:17px}.language-button{min-height:36px;min-width:36px;justify-content:center;padding:7px;font-size:10px}.account-button{min-height:36px;min-width:48px;max-width:76px;padding:7px;font-size:9px}
 body.playing .wordmark{display:none}body.playing header{justify-content:flex-end}body.playing .top-actions{gap:7px}body.playing .round{width:40px;height:40px}body.playing .slash{left:11px;top:20px}body.playing .language-button,body.playing .account-button{min-height:40px}
 .collection{top:calc(64px + env(safe-area-inset-top));right:12px;padding:4px 10px;gap:6px;border-radius:20px;height:42px}.collection .divider{height:18px}.collection .pearl-icon{font-size:19px}.collection strong{font-size:11px}.collection #journal{min-height:34px}.collection #journal span{font-size:10px;margin-left:2px}#turtle-shop{min-width:34px;min-height:34px}
 .location{left:14px;top:calc(64px + env(safe-area-inset-top));max-width:none;width:calc(100% - 212px);pointer-events:none}.location #chapter,.location #mood{display:none}.location .level-label{font-size:9px;margin:0 0 3px;letter-spacing:.7px;max-height:14px;overflow:hidden}.location h2{font-size:15px;margin:0;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:0}
 .quest{top:calc(116px + env(safe-area-inset-top));left:12px;right:12px;max-width:none;padding:8px 12px;border:1px solid #f4fff333;border-radius:14px;background:#dbf6ed40;gap:9px;pointer-events:none}.quest-symbol{font-size:22px}.quest>div{flex:1;min-width:0}.quest .tiny{font-size:7px;letter-spacing:.8px}.quest p{font-size:11px;line-height:1.4;margin:3px 0 0;max-width:none}.quest #quest-arrow{font-size:18px;padding:0 3px}
 #toast{top:auto;bottom:calc(163px + env(safe-area-inset-bottom));left:50%;max-width:calc(100vw - 32px);font-size:10px;padding:10px 15px;border-radius:16px;line-height:1.5;transform:translate(-50%,8px)}#toast.show{transform:translate(-50%,0)}
 #control-hint{display:none}.bottom-actions{left:16px;right:16px;bottom:calc(8px + env(safe-area-inset-bottom));gap:20px}.bottom-actions button{min-height:40px;font-size:10px;padding:8px 0}.dive{right:16px;bottom:calc(65px + env(safe-area-inset-bottom));width:72px;height:72px}.dive small{display:none}.dive b{font-size:11px}.dive>span{font-size:22px}
 .stillness{left:16px;bottom:calc(78px + env(safe-area-inset-bottom));transform:none;text-align:left;max-width:calc(100% - 125px)}.stillness>span{font-size:20px}.stillness p{font-size:10px;letter-spacing:0;margin:4px 0 8px;line-height:1.4}.still-track{width:85px;margin:0}
 #oxygen{top:auto;bottom:calc(144px + env(safe-area-inset-bottom));left:auto;right:16px;transform:none;font-size:8px;gap:5px}#oxygen>span:first-child{display:none}#oxygen>div{width:65px}
 #landing{top:calc(76px + env(safe-area-inset-top));left:24px;right:24px;max-width:none}#landing>.eyebrow,#landing>.start-note{display:none}#landing h1{font-size:15px;line-height:1.3;margin:0 0 12px;letter-spacing:0}.landing-tagline,html[lang^="zh"] .landing-tagline{font-size:clamp(30px,5.5dvh,43px);line-height:1.1;letter-spacing:-1px;margin:0 0 15px}html[lang^="zh"] .landing-tagline{letter-spacing:0;line-height:1.25}#landing>p{font-size:11px;line-height:1.6;margin:0 0 16px}#landing .primary{padding:12px 20px;min-height:44px;font-size:12px}#landing .guide-link{font-size:11px;margin:12px 0 0;line-height:1.4}#landing>.start-legal{font-size:9px;line-height:1.5;max-width:100%;margin:8px 0 0}#intro-bottom{bottom:calc(15px + env(safe-area-inset-bottom));left:24px;right:24px;font-size:7px}
}

.memory-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.memory-pagination button{min-height:40px;padding:10px 18px;border-radius:20px;background:#d4e6d8;font-size:12px}.memory-pagination button:disabled{opacity:.4;cursor:default}.memory-pagination span{font-size:12px}#shop-notice:not(:empty){padding:12px;border-radius:12px;background:#e4e8cd;color:#40552e;opacity:1}#shop-notice:empty{display:none}
.memory-pagination{position:sticky;bottom:0;padding:10px 0;background:#f0f5e9;box-shadow:0 -8px 15px #f0f5e9;z-index:1}

.creature-select{width:100%;padding:12px;border:1px solid #bfd3c8;border-radius:12px;background:#f5f6ec;color:#214b50;font:inherit}.creature-entry canvas{display:block;width:100%;height:auto;max-height:190px;object-fit:contain;background:#dcece580;border-radius:16px;margin-top:18px}.creature-entry h3{margin:18px 0 8px}

.report-options{border:1px solid #c8d9cd;border-radius:12px;margin:18px 0;padding:12px}.report-options label,.report-confirm{display:flex;align-items:flex-start;gap:10px;font-size:13px;margin:12px 0}.report-options input,.report-confirm input{width:18px!important;height:18px;flex-shrink:0;margin:0;accent-color:#245b60}

.letter-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.letter-actions .primary{width:100%;min-width:0;padding:16px 10px;font-size:13px;justify-content:center}.letter-stats{display:flex;align-items:center;gap:20px;margin:18px 0;font-size:13px}.letter-stats button{font:inherit}.letter-card small{display:block;font-size:10px;opacity:.7;margin:5px 0}

.letter-stats button{border:1px solid #b9d0c4;border-radius:24px;padding:10px 16px;min-height:40px;background:#e4eee2;color:#214c50}.letter-stats button:disabled{opacity:.65;cursor:default}

/* Keep scrolling within the rounded dialog, with a quiet inset thumb. */
.modal-card{overflow:hidden}
#modal-content{max-height:calc(85dvh - 76px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#9bb8aa transparent;padding:4px 10px 4px 2px;margin-right:-10px}
#modal-content::-webkit-scrollbar{width:6px}
#modal-content::-webkit-scrollbar-track{background:transparent}
#modal-content::-webkit-scrollbar-thumb{background:#9bb8aa;border-radius:8px}
#modal-content::-webkit-scrollbar-thumb:hover{background:#789b8c}
#current-sense.enabled{background:#e1f8dc88;border-color:#477c7066}
@media(max-width:600px){#modal-content{max-height:calc(85dvh - 62px)}body.playing .top-actions{gap:5px}}

#modal.bag-open{padding:clamp(12px,2vw,28px);place-items:stretch}
#modal.bag-open .modal-card{width:100%;height:100%;max-height:100%;min-height:0;padding:32px;border-radius:24px}
#modal.bag-open #modal-content{height:100%;max-height:100%;display:flex;flex-direction:column;padding-right:14px}
.bag-open .inventory-tabs{position:sticky;top:0;background:#f0f5e9;z-index:2;flex-shrink:0;margin-top:10px}
.bag-open .inventory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.bag-open .inventory-item{padding:20px 16px}.bag-open .inventory-item>img,.bag-open .inventory-item>canvas{width:72px;height:72px}
.bag-open .memory-grid{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:8px}
.bag-open .memory-card{min-height:130px;text-align:center;background:#e6eee080}
.bag-open .memory-pagination{margin-top:auto;padding-top:18px;flex-shrink:0}
.bag-open .letter-card{min-height:90px}.bag-open .letter-card p{font-size:12px}
@media(max-width:600px){#modal.bag-open{padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}#modal.bag-open .modal-card{padding:30px 16px 16px}.bag-open .inventory-grid,.bag-open .memory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bag-open .inventory-item{padding:12px 8px}.bag-open .inventory-tabs button{padding:12px 3px;font-size:11px}.bag-open .inventory-tabs span{margin-left:4px;font-size:10px}.bag-open .memory-card{min-height:110px}}

/* Locale controls and bidirectional text, without mirroring the game world. */
select.language-button{max-width:105px;min-width:64px;padding:8px;border:1px solid #285d6130;border-radius:24px;background:#d1eeee70;color:inherit;font:inherit;font-size:11px}
[dir="rtl"] .modal-card,[dir="rtl"] .landing-copy{direction:rtl;text-align:right}
[dir="rtl"] .eyebrow,[dir="rtl"] .note-label{letter-spacing:normal}
[dir="rtl"] input[type="email"],[dir="rtl"] input[type="password"]{direction:ltr;text-align:left}
[translate="no"]{unicode-bidi:plaintext}

.letter-translate{margin:12px 0 20px;padding:12px 0;border-bottom:1px solid #bacfc660}.letter-translate summary{cursor:pointer;font-size:13px}.letter-translate label{display:block;margin:14px 0 6px;font-size:12px}.letter-translate select{max-width:100%;padding:9px;border:1px solid #b7ccc4;border-radius:10px;background:#f7f6e9;color:inherit;margin-inline-end:8px}.letter-translate button{margin-top:10px}

/* Avoid recompositing live ocean pixels through multiple glass controls on touch screens. */
@media(pointer:coarse){.round,.collection,.dive,.account-button{backdrop-filter:none;-webkit-backdrop-filter:none}.collection,.dive{background:#c0ebe5dc}}

.loading-status{width:min(290px,100%);margin:14px 0 0;color:#20555b;font-size:11px;line-height:1.5}.loading-status progress{display:block;appearance:none;width:100%;height:5px;border:0;border-radius:8px;margin-top:7px;overflow:hidden;background:#17454a20}.loading-status progress::-webkit-progress-bar{background:#17454a20;border-radius:8px}.loading-status progress::-webkit-progress-value{background:#286c71;border-radius:8px;transition:width .2s}.loading-status progress::-moz-progress-bar{background:#286c71;border-radius:8px}.loading-status.ready{opacity:.8}

#performance-recording{position:fixed;left:50%;top:70px;transform:translateX(-50%);z-index:25;border-radius:20px;padding:10px 16px;background:#16474e;color:#f0f5e9;font-size:12px;box-shadow:0 3px 12px #1234}

/* Journey and creature discovery book. */
.modal-card:has(.journey-view),.modal-card:has(.creature-journal-view){width:min(860px,100%)}
.journey-creatures{display:flex;width:100%;align-items:center;justify-content:space-between;text-align:start;padding:22px 24px;margin:22px 0 16px;background:#d4e8df;border:1px solid #9ebfb44d;border-radius:18px}.journey-creatures strong{font-size:19px}.journey-creatures small{display:block;margin-top:8px;opacity:.7}.journey-creatures>b{font-size:28px}
.journey-level{font-size:12px;letter-spacing:1px;opacity:.7}.journey-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0 24px}.journey-stats>div{padding:18px 10px;border:1px solid #aac6bb66;border-radius:14px;text-align:center}.journey-stats strong{display:block;font-size:23px;font-weight:500}.journey-stats span{display:block;font-size:11px;margin-top:6px;opacity:.7}
.discovery-progress{display:block;width:100%;height:6px;accent-color:#367c77;margin:0 0 22px;border:0;border-radius:8px;overflow:hidden}.discovery-progress::-webkit-progress-bar{background:#dbe7de}.discovery-progress::-webkit-progress-value{background:#367c77}
.creature-browse{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:22px}.creature-index{display:flex;gap:8px;align-items:center;text-align:start;padding:12px;border-radius:12px;background:transparent;border:1px solid #aec6bc77;font-size:12px}.creature-index[aria-pressed="true"]{background:#214f53;color:#f0f5e9}.creature-index.unseen:not([aria-pressed="true"]){opacity:.65}
.creature-journal-view .creature-entry{margin-top:18px}.creature-journal-view #creature-picture{display:block;width:100%;height:240px;background:linear-gradient(135deg,#91d9dd,#bddfd5);border-radius:18px}.creature-journal-view .creature-entry h3{font:500 25px Outfit,sans-serif;margin:20px 0 8px}
@media(max-width:600px){.modal-card:has(.journey-view),.modal-card:has(.creature-journal-view){padding:30px 20px;max-height:90dvh}.creature-browse{grid-template-columns:repeat(2,minmax(0,1fr))}.journey-stats strong{font-size:20px}}
.creature-journal-view .memory-pagination{position:static;box-shadow:none}.creature-journal-view label[for="creature-entry"],.creature-journal-view #creature-entry{display:none}

/* The header already displays the game title on the landing page. */
#landing h1{display:none}

header>.top-actions{display:none}
#preferences-button{position:fixed;left:4.5%;bottom:max(25px,env(safe-area-inset-bottom));z-index:10;width:44px;height:44px;border-radius:50%;border:1px solid #366c7050;background:#d7eee5;color:#214f53;font-size:25px}
.preferences-overlay{position:fixed;inset:0;z-index:35;background:#082e4266;backdrop-filter:blur(12px);display:grid;place-items:center;padding:20px}
#preferences-controls .top-actions{display:flex;flex-direction:column;gap:0}.preference-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #aec6bc66;font-size:14px}.preference-row:has(>[hidden]),.preference-row:has(>#pause[style*="none"]){display:none}.preference-row .round,.preference-row .account-button{backdrop-filter:none}.bottom-actions{justify-content:flex-end}
body:not(.playing) .preference-row:has(>#pause){display:none}

.sound-settings{margin-top:24px}.sound-setting{padding:14px 0;border-bottom:1px solid #aec6bc66}.sound-setting label{display:flex;align-items:center;gap:10px;font-size:14px}.sound-setting>div{display:flex;gap:14px;align-items:center;margin-top:12px}.sound-setting input[type=range]{flex:1;min-width:0;accent-color:#367c77;touch-action:pan-x}.sound-setting input[type=checkbox]{accent-color:#367c77;width:18px;height:18px}.sound-setting output{width:42px;font-size:12px;text-align:end}

/* Reclaim the mobile row formerly occupied by the top settings controls. */
@media(max-width:600px){
 body.playing header{display:none}
 body.playing .collection,body.playing .location{top:calc(12px + env(safe-area-inset-top))}
 body.playing .quest{top:calc(64px + env(safe-area-inset-top))}
 #landing{top:calc(52px + env(safe-area-inset-top))}
}

/* Compact bottom navigation, with Dive clear of the icon pair. */
.bottom-actions{inset:auto;position:static}
.bottom-actions #map-button{position:fixed;left:calc(4.5% + 54px);bottom:max(25px,env(safe-area-inset-bottom));width:44px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;border-radius:50%;border:1px solid #366c7050;background:#d7eee5;color:#214f53;z-index:10}
body.playing .dive{right:4.5%;bottom:max(25px,env(safe-area-inset-bottom));width:84px;height:84px}
@media(max-width:600px){
 body.playing .dive{right:16px;bottom:calc(18px + env(safe-area-inset-bottom));width:76px;height:76px}
 #preferences-button,.bottom-actions #map-button{bottom:calc(18px + env(safe-area-inset-bottom))}
 #preferences-button{left:16px}.bottom-actions #map-button{left:70px}
 .stillness{bottom:calc(82px + env(safe-area-inset-bottom))}
 #oxygen{bottom:calc(103px + env(safe-area-inset-bottom))}
}

/* Settings has its own bounded scroll area, including touch scrolling. */
.preferences-overlay{padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));touch-action:pan-y;overflow:hidden}
.preferences-overlay>.modal-card{width:min(760px,100%);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;padding:30px;scrollbar-width:thin;scrollbar-color:#8aaea5 transparent;scrollbar-gutter:stable}
.preferences-overlay>.modal-card::-webkit-scrollbar{width:6px}.preferences-overlay>.modal-card::-webkit-scrollbar-thumb{background:#8aaea5;border-radius:6px}
#preferences-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start}
#preferences-controls .top-actions{min-width:0}.preference-row{padding:13px 0;gap:10px;min-width:0}.preference-row>span{font-size:13px;flex:1;min-width:0}.preference-row select{max-width:145px;min-width:0}.preference-row .account-button{max-width:140px}
#preferences-controls .sound-settings{margin:0;min-width:0}#preferences-controls .sound-settings h3{font-size:15px;margin:0 0 5px}.sound-setting{padding:12px 0}.sound-setting label{font-size:13px}.sound-setting>div{margin-top:8px}.sound-setting input[type=range]{width:100%;min-height:30px}
@media(max-width:600px){.preferences-overlay>.modal-card{padding:24px 20px;border-radius:20px}#preferences-controls{grid-template-columns:1fr;gap:20px}#preferences-controls .top-actions{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.preference-row{flex-wrap:wrap;align-content:start;gap:8px;min-height:78px}.preference-row>span{flex-basis:100%;font-size:12px}.preference-row select{width:100%;max-width:100%}.sound-setting{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:center;gap:10px}.sound-setting>div{margin:0;gap:8px}.sound-setting label{line-height:1.4}.sound-setting output{width:34px;font-size:11px}}

.scene-clock{grid-column:1/-1;padding:14px;background:#dce9df;border-radius:12px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
body[data-day-phase="night"],body[data-day-phase="midnight"]{color:#e1eee6}body[data-day-phase="night"] .location p,body[data-day-phase="midnight"] .location p{color:inherit}body[data-day-phase="night"] .collection,body[data-day-phase="midnight"] .collection{color:#214f53}

/* Guest milestone reminder, clear of the lower-left navigation. */
#guest-save-hint{position:fixed;z-index:35;left:max(16px,env(safe-area-inset-left));bottom:calc(80px + env(safe-area-inset-bottom));width:min(340px,calc(100vw - 32px));box-sizing:border-box;padding:20px 34px 18px 20px;border:1px solid #bdd4ce;border-radius:20px;background:#f0f5e8;color:#194c53;box-shadow:0 8px 30px #16434c22;font-size:14px;line-height:1.5}
#guest-save-hint p{margin:8px 0 14px}#guest-save-hint button{cursor:pointer;border:0;border-radius:22px;padding:9px 15px;background:#d5e6d8;color:#194c53;font:inherit}#guest-save-hint .guest-hint-close{position:absolute;right:5px;top:5px;background:transparent;padding:4px 10px;font-size:22px}

#journal{display:inline-flex;align-items:center;justify-content:center;gap:5px}#journal .drift-bag-icon{display:block;flex:none;width:27px;height:30px}#journal #memory-count{white-space:nowrap}

.ocean-sound-mode{display:grid;gap:8px;margin-top:18px;font-size:12px}.ocean-sound-mode select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;padding:10px;border:1px solid #b8cec4;border-radius:12px;background:#f5f7ed;color:#214f53;font:inherit}

#game-update-status{position:fixed;z-index:100;bottom:calc(20px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:65vw;box-sizing:border-box;padding:10px 16px;border-radius:16px;background:#edf4e8;color:#214f53;box-shadow:0 3px 15px #163e4930;font-size:12px;text-align:center;pointer-events:none}

.scene-time-control{display:grid;gap:8px;font-size:12px;margin-top:16px;min-width:0}.scene-time-control select{width:100%;min-width:0;box-sizing:border-box;padding:11px;border:1px solid #b8cec4;border-radius:12px;background:#f5f7ed;color:#214f53;font:inherit}

#idle-tip{position:fixed;z-index:5;bottom:calc(105px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(390px,65vw);font-size:11px;line-height:1.7;text-align:center;color:inherit;opacity:0;transition:opacity .7s;pointer-events:none}#idle-tip.visible{opacity:.85}.showing-idle-tip .stillness,.showing-idle-tip #control-hint{visibility:hidden}@media(max-width:600px){#idle-tip{bottom:calc(115px + env(safe-area-inset-bottom));width:72vw}}

.memory-card.locked{opacity:1;cursor:default;color:#64777a}.memory-card.locked>span{filter:brightness(0);opacity:.8}.memory-card.locked:hover{filter:none}.memory-card.locked:active{transform:none}

#landing-account{margin:0 0 16px}#landing-account>div{display:flex;gap:10px}#landing-account button{border:1px solid #21464b50;border-radius:24px;background:#e9f5eaaa;padding:10px 20px;font-size:12px;min-height:40px}#landing-account p{font-size:11px;line-height:1.5;margin:7px 0 0;color:#285d61}
@media(max-width:600px){#landing-account{margin-bottom:12px}#landing-account button{padding:8px 18px}#landing-account p{font-size:10px}}

.upgrade button.purchase-success:disabled{opacity:1;background:#38796b;color:#fff;animation:purchase-pop .55s ease-out;cursor:default}@keyframes purchase-pop{0%{transform:scale(.92);box-shadow:0 0 0 0 #9ce6bc88}50%{transform:scale(1.08)}100%{transform:scale(1);box-shadow:0 0 0 12px #9ce6bc00}}@media(prefers-reduced-motion:reduce){.upgrade button.purchase-success{animation:none}}

#dive>span{display:flex;align-items:center;justify-content:center;width:44px;height:36px;line-height:1}#dive>span svg{width:44px;height:36px;display:block}#dive{gap:3px}#dive[data-mode="surface"]{background:#c3e6e6cf;border-color:#eafff4}#dive b{font-weight:600}#dive small{letter-spacing:.65px}
@media(max-width:600px){#dive>span,#dive>span svg{width:36px;height:30px}}

.bag-title{display:flex;align-items:center;gap:12px}.bag-title .drift-bag-icon{width:38px;height:42px;flex:0 0 auto}.bag-title>span{min-width:0}@media(max-width:600px){.bag-title{gap:10px}.bag-title .drift-bag-icon{width:32px;height:36px}}

/* Text over the night sea needs its own palette; cream panels keep dark ink. */
body:is([data-day-phase="night"],[data-day-phase="midnight"]) :is(#landing>p,#landing-account p,.loading-status,#landing .guide-link,#landing .start-note,#intro-bottom,#control-hint,.stillness,.location,.quest,#oxygen){color:#e5f2ef;opacity:1}
body:is([data-day-phase="night"],[data-day-phase="midnight"]) :is(.location p,.quest .tiny){color:#d4e8e7;opacity:1}
body:is([data-day-phase="night"],[data-day-phase="midnight"]) #landing .eyebrow span{background:#b9e6dc}
body:is([data-day-phase="night"],[data-day-phase="midnight"]) #landing-account button{color:#173f46;background:#e4f1e9;border-color:#d2e9e2}
body:is([data-day-phase="night"],[data-day-phase="midnight"]) .loading-status progress{background:#cfebe633}
body:is([data-day-phase="night"],[data-day-phase="midnight"]) .loading-status progress::-webkit-progress-bar{background:#cfebe633}
body:is([data-day-phase="night"],[data-day-phase="midnight"]) .loading-status progress::-webkit-progress-value{background:#a9dbcf}
body:is([data-day-phase="night"],[data-day-phase="midnight"]) .loading-status progress::-moz-progress-bar{background:#a9dbcf}
body:is([data-day-phase="night"],[data-day-phase="midnight"]) .still-track{background:#d1ece744}
body:is([data-day-phase="night"],[data-day-phase="midnight"]) .quest{border-color:#cfebe64d;background:#12303cbb}
body:is([data-day-phase="night"],[data-day-phase="midnight"]) .collection{background:#dcefe9ed;color:#214f53}

body:is([data-day-phase="night"],[data-day-phase="midnight"]) #dive{color:#194951;background:#d5eee8ed}

.keepsake-pagination .page-dots{display:none}
@media(max-width:600px){
 .bag-open .keepsake-pagination{justify-content:center;margin-top:auto;padding:6px 0;gap:0}
 .keepsake-pagination>button,.keepsake-pagination>.page-counter{display:none}
 .keepsake-pagination .page-dots{display:flex;justify-content:center;flex-wrap:wrap;gap:2px}
 .keepsake-pagination .page-dots button{display:grid;place-items:center;min-height:32px;width:32px;padding:0;background:transparent}
 .page-dots i{display:block;width:7px;height:7px;border-radius:50%;background:#a8c3ba}
 .page-dots [aria-current="page"] i{width:20px;border-radius:5px;background:#205b5c}
}

#modal.chart-open{padding:20px}#modal.chart-open .modal-card{width:100%;height:calc(100dvh - 40px);max-height:none;background:#eee0bd;padding:28px 36px;color:#60492e}#modal.chart-open #modal-content{height:100%}.sea-chart{height:100%;display:flex;flex-direction:column}.sea-chart h2{font-family:Georgia,serif;font-style:italic}.sea-chart p{margin:4px 0 12px}.sea-chart-paper{flex:1;min-height:300px}.sea-chart-paper svg{width:100%;height:100%;display:block}@media(max-width:600px){#modal.chart-open{padding:12px}#modal.chart-open .modal-card{height:calc(100dvh - 24px);padding:32px 16px 16px}.sea-chart-paper{overflow:auto;touch-action:pan-x pan-y}.sea-chart-paper svg{min-width:740px;min-height:590px}}

@media(min-width:601px){
 .quest{padding:14px 16px;border:1px solid #245d6126;border-radius:16px;background:#e2f4eb80;gap:12px;max-width:min(360px,85vw)}
 .quest-symbol{font-size:24px;line-height:1;flex:0 0 24px;text-align:center}
 .quest>div{min-width:0;flex:1}
 .quest .tiny{font-size:8px;line-height:1.5;letter-spacing:1.2px}
 .quest p{margin:5px 0 0;line-height:1.5}
 .quest #quest-arrow{flex:0 0 auto;padding:0 0 0 4px;font-size:19px}
}

#seaweed-boost-status{position:fixed;bottom:155px;left:50%;transform:translateX(-50%);padding:8px 14px;border-radius:20px;background:#e5f2dfed;color:#24534b;font-size:11px;pointer-events:none;white-space:nowrap}@media(max-width:600px){#seaweed-boost-status{bottom:175px;font-size:10px}}

.navigation-compass{display:none;position:absolute;width:190%;height:190%;max-width:none;left:-45%;top:-45%;pointer-events:none;color:#21535a;overflow:visible}.has-compass .navigation-compass{display:block}body.playing #dive.has-compass{right:calc(48px + env(safe-area-inset-right));bottom:calc(48px + env(safe-area-inset-bottom));overflow:visible}body:is([data-day-phase="night"],[data-day-phase="midnight"]) .navigation-compass{color:#e3f4ed}@media(max-width:600px){body.playing #dive.has-compass{right:calc(43px + env(safe-area-inset-right));bottom:calc(43px + env(safe-area-inset-bottom))}}

#dive.nearby-dive-find[data-mode="dive"] .depth-direction-arrow{animation:nearby-dive-arrow 1.5s ease-in-out infinite}
@keyframes nearby-dive-arrow{0%,100%{transform:translateY(-2px);opacity:.75}55%{transform:translateY(3px);opacity:1}}
@media(prefers-reduced-motion:reduce){#dive.nearby-dive-find[data-mode="dive"] .depth-direction-arrow{animation:none;stroke-width:3.3}}
