/* The world owns the screen. Tools and teaching copy open on demand. */
.story-card.ready p,.story-card.ready small{color:#c7e4e6;opacity:1}
.stories-open{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 13px;border-radius:12px;font-size:12px;font-weight:700}.stories-open>span:first-child{font-size:22px;color:#ffdb78}.sound-controls{margin:14px 0;padding:12px;border:1px solid #8dc9d744;border-radius:12px;display:grid;gap:10px;min-width:0}.sound-controls legend{font-size:12px;color:#b9d9df;padding:0 5px}.sound-controls button{min-height:40px;border-radius:9px}.sound-controls label{display:flex;justify-content:space-between;font-size:12px}.sound-controls input{width:100%;accent-color:#ffd346;min-height:30px}.story-exit{width:100%;min-height:44px;border-radius:10px}.stories-dialog{width:760px}.stories-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.story-card{text-align:left;border:1px solid #88b8bd55;border-radius:14px;background:#eef2dd;color:#184653;padding:18px;display:flex;flex-direction:column;gap:8px;min-width:0}.story-card.ready{background:#153f50;color:#f1f9ea;border-color:#d0b75b}.story-card-icon{font-size:38px;line-height:1.1;color:#d9ae43}.story-card strong{font-size:18px;line-height:1.35}.story-card small{font-size:11px;opacity:.75}.story-card p{font-size:12px;line-height:1.6;margin:0}.story-card b{font-size:12px;color:#ffdb78;margin-top:8px}.story-card.planned{opacity:.75}.story-mission ul{padding-left:22px;line-height:2;font-size:14px}.story-mission p{line-height:1.7}.story-mission h2{margin-right:36px;font-size:27px}#story-clue{font-size:12px;opacity:.8}@media(max-width:600px){.brand>div{display:none}.stories-open{width:52px;min-width:52px;padding:3px;gap:0;flex-direction:column;font-size:10px}.stories-open>span:first-child{font-size:18px}.stories-list{grid-template-columns:1fr}.story-card{padding:15px}.stories-dialog h2{font-size:25px;margin-right:35px}}
/* A status message has one vertical anchor. top + bottom stretched it into a panel. */
#toast{position:fixed;top:auto;right:auto;bottom:calc(114px + env(safe-area-inset-bottom));left:50%;width:max-content;max-width:min(420px,calc(100vw - 32px));height:auto;min-height:0;max-height:none;white-space:normal;overflow-wrap:anywhere;text-align:center;font-size:12px;line-height:1.45;padding:11px 16px;background:#123749f2;color:#edf9f6;border:1px solid #98d5df66;box-shadow:0 6px 24px #06283e33;transition:opacity .18s ease,transform .18s ease}
.treasure-menu{display:block;width:100%;text-align:left;background:#f6c74d18;border:1px solid #ecc15d66;border-radius:12px;color:#ffe4a0;padding:13px 14px;margin:38px 0 18px;font-size:16px;font-weight:700;cursor:pointer}.treasure-menu small{display:block;font-size:11px;font-weight:400;margin-top:5px;color:#c3dce0}.treasure-progress{position:absolute;top:80px;left:max(12px,env(safe-area-inset-left));z-index:5;min-height:44px;border:1px solid #f0cc7977;border-radius:24px;padding:8px 16px;background:#123749e8;color:#ffde85;font-weight:700;cursor:pointer}.treasure-dialog{text-align:center}.treasure-dialog h2{margin:8px 20px 16px;font-size:28px}.treasure-dialog p{line-height:1.7}.treasure-emblem{font-size:58px;color:#e8b33d}.treasure-buttons{display:flex;flex-direction:column;gap:10px;margin-top:20px}.treasure-buttons button{min-height:48px}.treasure-dialog #treasure-hint{font-size:13px;opacity:.8}.treasure-progress[hidden],.treasure-buttons [hidden]{display:none}@media(max-width:600px){.treasure-progress{top:68px}}@media(max-height:500px){.treasure-progress{top:58px}.treasure-emblem{font-size:32px}.treasure-dialog h2{font-size:24px}.treasure-dialog p{margin:8px 0}.treasure-buttons{margin-top:12px}}
html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}#game{height:100vh;height:100dvh;min-height:0;width:100%;isolation:isolate}#scene{inset:0}.topbar{height:70px;padding:12px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));gap:8px}.brand{gap:8px}.brand>img{width:50px;height:36px}.brand>div>span{display:none}.brand h1{font-size:21px;margin:0}.trident{font-size:23px;margin-left:4px}.header-tools{gap:6px}.header-tools .round{width:44px;height:44px;display:grid;place-items:center;font-size:20px}.header-tools .book-open{min-height:44px}.header-tools .book-open>span:nth-child(2){display:none}.vignette{background:linear-gradient(#08253918,transparent 18%)}.mask-caption{display:none}
.launch-actions{position:absolute;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;gap:10px;max-width:calc(100% - 24px)}.launch-actions button{min-width:120px;min-height:48px;font-size:14px}.launch-actions .secondary{background:#12394ef2}.tool-menu{width:360px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:24px;overflow:auto;margin:auto;border-radius:18px;color:#edf9f6;background:#123749;border:1px solid #a0d8df55}.tool-menu h2{font-size:22px;margin:0 40px 18px 0}.tool-menu .region-field{margin-bottom:12px}.tool-menu .region-field select{max-width:none;width:100%;font-size:14px;min-height:44px}.tool-menu .shore-panel,.tool-menu .exploration,.tool-menu .actions,.tool-menu .camera-tools,.tool-menu .location{position:static;left:auto;right:auto;top:auto;bottom:auto;transform:none;width:100%;max-width:100%;margin:14px 0;padding:0;box-shadow:none;backdrop-filter:none;border:0;background:transparent;pointer-events:auto}.tool-menu .location{display:flex;flex-wrap:wrap;gap:6px}.tool-menu .location small{font-size:10px}.tool-menu .team-intro{display:block}.tool-menu .team-heroes,.tool-menu .team-promise,.tool-menu .team-intro h2,.tool-menu .team-intro p{display:none}.tool-menu .team-logo{width:90px;margin-bottom:12px}.tool-menu .suits{grid-template-columns:repeat(4,1fr);gap:6px}.tool-menu .suit{height:72px}.tool-menu .suit-label{font-size:9px}.tool-menu .actions{display:grid;grid-template-columns:1fr;gap:8px}.tool-menu .actions button{font-size:12px;min-height:44px}.tool-menu .actions kbd{display:none}.tool-menu .camera-tools{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.tool-menu .camera-tools>span{display:none}.tool-menu .camera-tools button{width:100%;height:44px;background:#ffffff0d;border-radius:8px}.tool-menu .mission{margin-top:12px}.menu-status{font-size:11px;line-height:1.6;color:#acd1d8}.tool-menu .text-button{min-height:44px}.tool-menu .shore-panel>.primary,.tool-menu .shore-panel>.secondary{width:100%;margin-top:8px}
.navigation{top:76px;right:12px;bottom:auto;max-width:calc(100vw - 24px);width:390px;max-height:calc(100dvh - 100px);overflow:auto;padding:14px;border-radius:14px}#mini-map{width:100%;height:auto}.destinations{max-height:190px;overflow:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.destinations button{min-height:44px;font-size:11px;white-space:normal}.recall-panel{top:80px;bottom:auto;left:50%;transform:translateX(-50%);max-width:calc(100% - 28px);width:auto;padding:10px 14px}.recall-panel .eyebrow,.recall-wave{display:none}.recall-panel strong{font-size:12px}
dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto}.book,.help,.quiz,.discovery[open],.tool-menu{max-width:calc(100vw - 24px);overflow-wrap:break-word}.book{width:1000px;padding:24px}.book-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}.book-filters{flex-wrap:wrap;gap:8px}.book-filters label{min-width:0;flex:1 1 200px}.book-filters input{width:100%;min-width:0}.book-filters select{max-width:100%;min-height:44px}.close{min-width:44px;min-height:44px;z-index:3}.discovery{width:760px;display:grid;grid-template-columns:1fr 1.15fr;padding:0}.discovery:not([open]){display:none}.discovery-art{min-height:0;padding:16px;display:grid;place-items:center}.discovery-copy{padding:26px}.help{width:650px;padding:24px}.help dl{grid-template-columns:110px 1fr;gap:12px}.help dt,.help dd{font-size:12px;min-width:0}.quiz{padding:24px}.marine-photo figcaption{overflow-wrap:anywhere}.card-actions{flex-wrap:wrap}
.touch-controls{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));width:auto;pointer-events:none;justify-content:space-between;align-items:flex-end;z-index:5}.touch-controls button{pointer-events:auto;width:52px;height:48px;min-width:48px;min-height:44px;font-size:24px;border-radius:14px;background:#103d55bb;border:1px solid #c1e3e87a;box-shadow:none;touch-action:none;user-select:none;-webkit-user-select:none}.touch-controls .steering{display:flex;flex-direction:column;align-items:center;gap:6px}.touch-controls .steering>div{display:flex;gap:6px}.touch-controls .swim-control{width:76px;height:46px;font-size:21px}.touch-controls .vertical{display:flex;flex-direction:column;gap:6px;margin:0}.touch-controls small{display:none}
@media(pointer:coarse){.touch-controls{display:flex}.glass,dialog::backdrop,.discovery::backdrop{backdrop-filter:none}.mask-rim{box-shadow:inset 0 0 0 8px #0c2b3b,inset 0 0 22px #001d37aa}.tool-menu .shore-panel{max-height:none}.camera-tools{bottom:auto}}
@media(max-width:600px){.topbar{height:62px;padding-top:8px;padding-bottom:8px}.brand>img{width:38px;height:32px}.brand h1{font-size:17px}.trident{font-size:19px}.header-tools{gap:4px}.header-tools .book-open{width:44px;padding:10px;justify-content:center}.book-open b{display:none}.header-tools .round{width:44px}.brand{gap:5px}.discovery{grid-template-columns:1fr}.discovery-art{padding:14px 20px 4px}.discovery-copy{padding:14px 22px 20px}.discovery-copy h2{font-size:25px}.discovery-copy p{font-size:13px;line-height:1.55}.discovery .habitat{margin:12px 0}.discovery .card-actions{gap:8px}.discovery-art .marine-photo img,#discovery-art .marine-photo img{height:190px;max-height:27dvh}.discovery-art .marine-photo figcaption{font-size:9px}.book{padding:20px 14px}.book h2{font-size:25px;margin-right:34px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.book-item{min-width:0;padding:10px}.book-item strong{font-size:12px}.book-item .marine-photo img{height:95px}.help dl{grid-template-columns:85px 1fr}.help{padding:22px 18px}.tool-menu{padding:20px}.navigation{top:66px}.launch-actions{bottom:calc(18px + env(safe-area-inset-bottom))}}
@media(max-height:500px){.topbar{height:54px;padding-top:5px;padding-bottom:5px}.brand>img{height:30px}.navigation{top:58px;max-height:calc(100dvh - 70px)}.touch-controls{bottom:calc(6px + env(safe-area-inset-bottom))}.touch-controls button{width:46px;height:44px}.touch-controls .swim-control{height:44px}.touch-controls .steering,.touch-controls .vertical{gap:4px}.discovery{grid-template-columns:1fr 1.2fr}.discovery-art .marine-photo img,#discovery-art .marine-photo img{height:180px;max-height:55dvh}.discovery-copy{padding:18px}.discovery-copy p{margin:8px 0}.launch-actions{bottom:12px}}

/* Story field notes stay inside the optional mission popup. */
#story-symbols li{margin:.65rem 0;line-height:1.45}#story-symbols li small{display:block;font-size:.82rem;font-weight:400;opacity:.85;margin:.28rem 0 .65rem 1.1rem}#story-symbols .recorded{color:#206a67}
.story-mission .secondary{background:#e5eee2;color:#234f56;border:1px solid #a8c5b7;border-bottom:3px solid #96b5a9}.story-mission .secondary:hover{background:#d7e6d8}.story-mission .text-button{color:#28585c;min-height:44px}.story-mission .text-button:hover{color:#143e44}.story-mission>.eyebrow{padding-right:46px}

.swim-speed{position:fixed;z-index:7;right:max(12px,env(safe-area-inset-right));top:80px;min-width:112px;padding:8px 12px;border:1px solid #80bbc7;border-radius:22px;background:#0c354bea;color:#eff8dd;font:700 11px Segoe UI,sans-serif;box-shadow:0 4px 12px #00334433}.stamina-track{display:block;height:3px;margin-top:5px;background:#7395a144;border-radius:4px;overflow:hidden}.stamina-track>span{display:block;width:100%;height:100%;background:#83e7b9;transition:width .2s linear}.swim-speed.tired{color:#ffdda1}.swim-speed.tired .stamina-track>span{background:#f3bb67}@media(max-width:540px){#story-progress,#treasure-progress{max-width:calc(100vw - 158px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.swim-speed{min-width:112px;max-width:136px;font-size:10px}}

.sea-open{position:fixed;z-index:6;left:max(12px,env(safe-area-inset-left));top:80px;max-width:calc(100vw - 24px);padding:10px 15px;border-radius:24px;background:#0b3b51ed;border:1px solid #7acac9;color:#e6f8eb;font:700 12px Segoe UI,sans-serif;text-align:left}.sea-preview{background:#123f50;border:1px solid #78b6b85c;border-radius:12px;padding:14px;margin-bottom:16px}.sea-preview strong{color:#ffe193;font-size:15px}.sea-preview p{font-size:12px;line-height:1.6;color:#e5f2e9;margin:8px 0}.sea-preview small{display:block;color:#99ded2;font-size:11px;line-height:1.7}.sea-preview>span{display:block;color:#e8f3e5;font-size:11px;margin-top:8px}

#mini-map{aspect-ratio:600/500;touch-action:manipulation}.taxi-confirm{display:grid;gap:9px;padding:10px 0 14px;color:#fff1b9}.taxi-confirm strong{font-size:12px}.pickup-choice .primary,.pickup-choice .secondary{width:100%;margin-top:12px}.pickup-choice .secondary{background:#e5eee2;color:#234f56;border:1px solid #a8c5b7}.pickup-choice p{line-height:1.7}
.navigation{z-index:12}
body:has(#navigation:not([hidden])) #swim-speed,body:has(#navigation:not([hidden])) #treasure-progress{visibility:hidden}

/* Quick actions stay on the game; information opens in small nonmodal panels. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.header-tools{min-width:0}.header-tools .sea-open{position:static;display:flex;align-items:center;justify-content:space-between;gap:8px;max-width:220px;min-width:110px;min-height:44px;padding:9px 12px;border-radius:12px;box-shadow:none;font-size:12px}.sea-open #sea-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-tools .book-open{width:44px;padding:10px;justify-content:center}.header-tools .book-open b{display:none}
.audio-toolbar{display:flex;align-items:center;gap:6px;min-height:44px;padding:6px 10px;border-radius:12px;border:1px solid #9edce340}.audio-toolbar>span{display:flex}.audio-toolbar svg{width:18px;height:18px}.audio-toolbar input{width:70px;min-width:0;height:30px;accent-color:#ffd65b;cursor:pointer}.audio-toolbar output{min-width:28px;font-size:10px;color:#e4f3ee;font-variant-numeric:tabular-nums}
.header-tools .quick-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border-radius:12px;width:50px;min-width:44px;height:44px;padding:3px;border:1px solid #9edce340}.quick-button>span{font-size:21px;line-height:24px}.quick-button svg{height:25px;width:25px}.quick-button small{font-size:8px;line-height:10px;color:#e5f4ed}.quick-button:disabled{opacity:.45;cursor:default}#suit-open{border-bottom:3px solid var(--outfit-color,#eaff24)}
.compact-popover{position:fixed;inset:76px 12px auto auto;margin:0;width:350px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 90px);overflow:auto;padding:22px;border:1px solid #8cc8cf80;border-radius:16px;background:#103b50fa;color:#edf8ee;box-shadow:0 12px 35px #001f4099;font:14px Segoe UI,sans-serif;overscroll-behavior:contain}.compact-popover::backdrop{background:transparent}.compact-popover>.eyebrow{margin:0 40px 8px 0;font-size:9px;letter-spacing:1px;color:#9ad9d7}.compact-popover h2{font-size:20px;margin:0 38px 18px 0;color:#fff0ba}.compact-popover .close{top:10px;right:10px}.compact-popover .region-field{margin:0 0 12px}.compact-popover .region-field>[data-icon]{display:none}.compact-popover .region-field select{max-width:none;width:100%;min-width:0;min-height:44px;font-size:12px}.compact-popover .sea-preview{margin-bottom:10px}.popover-note{font-size:11px;line-height:1.6;color:#b5d8da;margin-bottom:0}.suit-info{width:380px}.suit-info .suit-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px}.suit-info .suit-heading strong{font-size:12px;color:#ffde85}.suit-info .suits{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:12px 0 18px}.suit-info .suit{height:94px}.suit-info .suit-label{font-size:9px;min-height:26px}.color-heading{font-size:12px;margin:8px 0 10px}.color-heading span{color:#a8d9d9;font-size:11px;margin-left:6px}.suit-colors{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}.suit-color{height:44px;min-width:0;border-radius:8px;border:1px solid #9edce340;display:grid;place-items:center;background:transparent}.suit-color>span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--swatch);color:#163b4e;font-size:15px;font-weight:900}.suit-color[aria-pressed=true]{border-color:#fff2b4;background:#8cd2d22b}.suit-color:focus-visible,.suit:focus-visible,.header-tools button:focus-visible{outline:2px solid #ffeb99;outline-offset:2px}
.suit-info .suits{display:grid;overflow:visible;padding:0}.suit-info .suit{min-width:0;width:auto}.suit-info .suit-label{white-space:normal;overflow-wrap:anywhere}
@media(max-width:1100px){.topbar .brand>div{display:none}.header-tools .sea-open{max-width:190px}.topbar{gap:8px}.audio-toolbar input{width:60px}.stories-open{padding:7px 9px}.header-tools{gap:5px}}
@media(max-width:760px){.topbar{height:112px;padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));display:block}.topbar .brand{display:none}.header-tools{display:grid;width:100%;gap:4px;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-areas:'sea sea sea stories book menu' 'sound sound sound buoy map help'}.header-tools>*{min-width:0!important;width:100%!important;max-width:none!important;height:44px!important;margin:0}.header-tools #sea-open{grid-area:sea;font-size:12px}.header-tools #stories-open{grid-area:stories;padding:3px;flex-direction:column;font-size:9px;gap:0}.header-tools #stories-open>span:first-child{font-size:18px;line-height:22px}.header-tools #book-open{grid-area:book}.header-tools .audio-toolbar{grid-area:sound;padding:5px 7px;gap:5px}.audio-toolbar input{width:100%;flex:1}.audio-toolbar output{display:none}.header-tools #buoy-open{grid-area:buoy}.header-tools #map-open{grid-area:map}.header-tools #menu-open{grid-area:menu}.header-tools #help-open{grid-area:help}.compact-popover{inset:116px 12px auto auto;max-height:calc(100dvh - 128px);padding:18px}.navigation{top:116px;max-height:calc(100dvh - 128px)}.recall-panel{top:116px}.swim-speed{top:116px}.treasure-progress,#story-progress{top:116px}}

.compact-popover[hidden],.setup-dialog [hidden]{display:none!important}
.compact-popover{z-index:20}
#voyage-fade{position:fixed;inset:0;z-index:1000;background:#021826;color:#d9eee8;display:grid;place-items:center;pointer-events:auto;font:14px Segoe UI,sans-serif}#voyage-fade[hidden]{display:none}#voyage-caption{margin-top:34px;letter-spacing:.6px}.shop-greeting{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid #8dc9c644;background:#24545c55;border-radius:12px;margin-bottom:18px}.shop-greeting>span{font-size:34px}.shop-greeting strong{font-size:14px;color:#ffe29e}.shop-greeting p{font-size:12px;line-height:1.55;color:#d1e8e7;margin:5px 0 0}.touch-controls.land .vertical button[hidden]{display:none}.touch-controls.land .swim-control{font-size:24px}.touch-controls.land .steering>div button{font-size:23px}@media(max-width:600px){.shop-greeting{padding:10px;margin-bottom:14px;gap:9px}.shop-greeting p{font-size:11px}.shop-greeting strong{font-size:12px}}
@media(pointer:coarse){body[data-mode=beach] .launch-actions{bottom:calc(136px + env(safe-area-inset-bottom))}}
.quick-boat-dive{position:fixed;z-index:6;bottom:24px;left:50%;transform:translateX(-50%);min-height:46px;padding:12px 22px}.quick-boat-dive[hidden]{display:none}
.setup-dialog{width:820px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:28px;border:1px solid #9bd1d770;border-radius:20px;background:#10394ded;color:#edf8ef;box-shadow:0 20px 80px #001d4080;overflow:auto}.setup-dialog::backdrop{background:#04243855;backdrop-filter:none}.setup-dialog>.eyebrow{font-size:10px;color:#9fdcda;margin:0 0 9px}.setup-dialog h2{font-size:28px;color:#ffe09b;margin:0 0 18px}.setup-steps{display:flex;gap:8px;margin-bottom:16px}.setup-steps span{padding:8px 14px;border:1px solid #7eb1be44;border-radius:20px;font-size:12px;color:#a7cdd4}.setup-steps .active{background:#7ac9c51e;border-color:#ffd45f;color:#ffe193}.setup-dialog .suit-info{width:auto;max-width:540px;margin:auto}.setup-dialog .suit-info>p{font-size:13px;line-height:1.5;color:#d8ece8}.setup-dialog #setup-next{width:100%;margin-top:18px;min-height:46px}.setup-dialog #setup-harbor>p{font-size:13px;margin:0 0 18px}.dock-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dock-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;min-width:0;padding:15px;border:1px solid #83bdc44a;border-radius:14px;background:#123e51;color:#e8f5ec;border-top:4px solid var(--dock-color)}.dock-card[aria-pressed=true]{outline:2px solid #ffd66b;background:#25565b}.dock-card-number{font-size:9px;letter-spacing:1.5px;color:var(--dock-color)}.dock-card strong{font-size:15px;line-height:1.4;min-height:42px}.dock-card b{font-size:13px;color:#ffdf97}.dock-card>span:not(.dock-card-number):not(.dock-boat-art){font-size:11px;color:#d2e8e9}.dock-card small{font-size:10px;color:#92d6cc}.dock-boat-art{width:100%;height:54px}.dock-boat-art svg{width:100%;height:100%}.setup-buttons{display:flex;gap:10px;margin-top:20px;justify-content:space-between}.setup-buttons button{min-height:46px}.setup-dialog button:focus-visible{outline:2px solid #ffecb5;outline-offset:3px}.launch-actions #dock-change{min-width:0;font-size:12px;padding:10px 14px}
@media(max-width:600px){.setup-dialog{padding:20px 16px}.setup-dialog h2{font-size:23px}.setup-steps span{padding:7px 10px;font-size:11px}.dock-list{gap:8px}.dock-card{padding:10px}.dock-card strong{font-size:12px;min-height:50px}.dock-card b{font-size:11px}.dock-card>span:not(.dock-card-number):not(.dock-boat-art){font-size:10px}.dock-boat-art{height:46px}.setup-buttons{gap:8px}.setup-buttons button{font-size:11px;padding:10px}.setup-dialog .suit-info .suit{height:88px}.setup-dialog .suit-info .suit-label{font-size:8px}.launch-actions{gap:6px}.launch-actions button{min-width:0;flex:1;padding:10px;font-size:12px}.launch-actions #dock-change{font-size:10px}}
@media(max-height:500px){.setup-dialog{padding:16px 20px}.setup-dialog h2{font-size:22px;margin-bottom:10px}.setup-steps{margin-bottom:10px}.setup-dialog .suit-info{max-width:none}.setup-dialog .suit-info .suits{grid-template-columns:repeat(8,minmax(0,1fr));margin:8px 0}.setup-dialog .suit-info .suit{height:84px}.setup-dialog #setup-next{margin-top:8px}.setup-dialog>.eyebrow{font-size:8px}}

/* Both beach houses have equal, touch-friendly launch actions. */
.launch-actions{flex-wrap:wrap;justify-content:center;max-width:calc(100vw - 24px)}.launch-actions .myth-launch{background:#654d8eea;border:1px solid #d9b8ed;color:#fff0c9}.launch-actions button{min-height:44px}body[data-mode="beach"] .launch-actions{gap:8px}@media(max-width:540px){body[data-mode="beach"] .launch-actions{width:calc(100vw - 24px);display:flex;bottom:calc(170px + env(safe-area-inset-bottom))}body[data-mode="beach"] .launch-actions button{font-size:11px;padding:10px 12px;flex:1 1 auto}body[data-mode="beach"] .launch-actions #quick-board{flex-basis:100%}}@media(max-height:500px) and (pointer:coarse){body[data-mode="beach"] .launch-actions{left:auto;right:12px;transform:none;bottom:12px;width:210px;max-width:42vw}}

.header-tools .home-open{color:#ffe1a0;border-color:#edcb8d88}@media(max-width:760px){.header-tools #home-open{grid-area:stories}.header-tools #home-open small{font-size:8px}}

.dialog-home{position:absolute;right:62px;top:10px;z-index:3;width:44px;height:44px;border:1px solid #8db9bd88;border-radius:50%;background:#17475b;color:#ffe4a3;font-size:26px;cursor:pointer}.travel-home{position:absolute;right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));min-height:44px;padding:8px 14px;background:#17475b;color:#ffe4a3;border:1px solid #b4c9bc;border-radius:12px;cursor:pointer}.setup-dialog>.eyebrow{padding-right:100px}#stories-outfit{min-height:44px;margin-bottom:12px}


/* A readable, nonmodal story book; the sea remains visible and interactive beside it. */
.sea-info.story-reading-open{width:600px;max-width:calc(100vw - 24px);background:#fcf5df;color:#234857;border-color:#e2c987;padding:22px 26px;scrollbar-color:#689d9e #f3ead0;z-index:32}
.sea-info.story-reading-open>.eyebrow{color:#527d83}.sea-info.story-reading-open h2{color:#214b5c;margin-bottom:12px}.sea-info.story-reading-open>.close{position:sticky;float:right;top:0;right:auto;margin:-10px -13px 0 10px;background:#e7dcc1;color:#234857;z-index:2;min-width:44px;min-height:44px}.sea-info.story-reading-open .sea-preview{background:transparent;border:0;padding:0;box-shadow:none}.sea-info.story-reading-open #sea-title{font-size:24px;line-height:1.2;color:#234857}.sea-info.story-reading-open #sea-copy{color:#466974;font-size:13px;line-height:1.65}.sea-info.story-reading-open #sea-species,.sea-info.story-reading-open #sea-count,.sea-info.story-reading-open #sea-change-note{display:none}
.story-reading{font-size:15px;line-height:1.75;overflow-wrap:anywhere}.reading-kind{display:inline-block;border-radius:20px;background:#dceddf;color:#286f66;font-size:11px;font-weight:700;padding:3px 10px}.story-reading .reading-intro{font-size:16px;line-height:1.75;color:#244d5c;margin:14px 0 18px}.story-reading h3{font-size:18px;line-height:1.35;color:#1c6470;margin:24px 0 8px}.story-reading p{margin:8px 0 14px;color:#355967}.story-reading a{color:#176e85;text-decoration:underline;text-underline-offset:3px}.reading-refs{white-space:nowrap;font-size:11px}.reading-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 22px}.reading-facts>div{background:#f0e7ce;border-radius:10px;padding:11px}.reading-facts dt{font-size:10px;color:#5b7375;font-weight:600}.reading-facts dd{font-size:12px;font-weight:750;margin:4px 0 0;line-height:1.5}.reading-timeline{list-style:none;padding:0 0 0 12px;border-left:2px solid #94bdb3}.reading-timeline li{display:grid;grid-template-columns:105px 1fr;gap:12px;padding:8px 0 8px 10px;line-height:1.55}.reading-timeline strong{color:#226e75;font-size:12px}.reading-timeline span{font-size:13px}.reading-words>div{margin:0 0 10px}.reading-words dt{font-weight:750;color:#2c5c65}.reading-words dd{margin:0;font-size:13px}.reading-game{border-left:3px solid #d1a448;background:#f1e8ce;padding:1px 14px 7px;border-radius:0 10px 10px 0}.reading-game h3{margin-top:14px}.reading-think,.reading-sources{border-top:1px solid #d8cfb7;padding:12px 0}.story-reading summary{cursor:pointer;font-size:13px;font-weight:700;min-height:44px;padding:9px 0;color:#2b626a}.story-reading details p{font-size:13px}.reading-sources ol{padding-left:20px;font-size:12px}.reading-sources li{margin:10px 0}.reading-sources small{display:block;font-size:10px;color:#5b7477;line-height:1.6}#story-reading-mission{width:100%;min-height:44px;margin:12px 0 4px;background:#19596b;color:#fff5d2}.story-learn{width:100%;min-height:48px;margin:2px 0 18px}
@media(max-width:760px){.sea-info.story-reading-open{padding:18px;max-height:calc(100dvh - 140px)}.reading-facts{grid-template-columns:1fr}.reading-facts>div{display:grid;grid-template-columns:110px 1fr;gap:8px;padding:9px 12px}.reading-facts dd{margin:0}.reading-timeline li{grid-template-columns:80px 1fr;gap:7px}.story-reading{font-size:14px}.story-reading .reading-intro{font-size:15px}.sea-info.story-reading-open #sea-title{font-size:22px}}
@media(max-height:520px){.sea-info.story-reading-open{top:66px;max-height:calc(100dvh - 78px)}}
