:root{--ink:#234c49;--muted:#53716b;--paper:#f4efdc;--gold:#d5bb7d}*{box-sizing:border-box}html,body{margin:0;background:#173e44;color:var(--ink);font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,a,input{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,.dock-arrow:focus-visible{outline:3px solid #c79b42;outline-offset:3px}[hidden]{display:none!important}#world-app{width:100%;max-width:560px;height:100dvh;margin:auto;display:flex;flex-direction:column;background:linear-gradient(150deg,#f1eedb,#d6e5da);overflow:hidden}.masthead{height:calc(54px + env(safe-area-inset-top));padding:calc(5px + env(safe-area-inset-top)) 14px 5px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;z-index:4}.wordmark{font-size:12px;font-weight:650;letter-spacing:3px}.round{width:44px;height:44px;border-radius:50%;border:1px solid #a2b7a675;background:#f8f2dfad;color:var(--ink);font-size:27px;display:grid;place-items:center}.screen{flex:1;min-height:0;position:relative}h1,h2,p{margin:0}h1,h2{font-family:Georgia,serif;font-weight:400}h1{font-size:32px;line-height:1.15}h2{font-size:27px}.eyebrow{font-size:8px;letter-spacing:1.8px;font-weight:650;margin-bottom:4px}.fine{color:var(--muted);font-size:12px}.primary,.secondary,.small{border:1px solid #b3b698;border-radius:14px;min-height:44px;padding:9px 17px;color:var(--ink);background:linear-gradient(#faf5e4,#e7e4cd);box-shadow:inset 0 1px #fff8df,0 3px 9px #20493d0d}.primary{background:linear-gradient(#3b7163,#254e49);color:#fff3d9;border:1px solid #729681;font-weight:650}.text{background:none;border:0;color:var(--ink);min-height:44px;padding:7px 9px;font-size:12px}a{color:var(--ink);text-underline-offset:3px}.small{border-radius:20px;padding:7px 13px;font-size:12px}button:disabled{opacity:.5;cursor:default}footer{min-height:26px;padding:4px 15px calc(4px + env(safe-area-inset-bottom));display:flex;justify-content:space-between;font-size:9px;color:var(--muted);flex-shrink:0}#map-screen{display:flex;flex-direction:column}.map-title{position:absolute;z-index:2;top:8px;left:0;right:0;text-align:center;color:#fff9dc;text-shadow:0 2px 8px #193d42}.map-title h1{font-size:32px}.world-map{position:relative;flex:1;min-height:0;overflow:hidden;border-radius:24px 24px 0 0;margin:0 8px}.world-map>img{width:100%;height:100%;object-fit:cover;object-position:50% 50%;display:block}.routes{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.routes path{fill:none;stroke:#e8f1cb66;stroke-width:.5;stroke-dasharray:1 1.5}.routes .open-route{stroke:#fff0bc;stroke-width:.65}.map-node{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);padding:3px 6px;min-width:88px;min-height:57px;border:0;background:transparent;color:#fff6d7;display:flex;flex-direction:column;align-items:center;text-shadow:0 1px 4px #113a41,0 0 8px #123b43;line-height:1.15}.map-node>span{width:30px;height:30px;display:grid;place-items:center;background:#204f4dd9;border:1px solid #e5d19a;border-radius:50%;font-size:21px;box-shadow:0 3px 12px #183d3d55}.map-node b{font-size:12px;margin:3px 0}.map-node small{font-size:9px;background:#163d43ab;border-radius:5px;padding:2px 5px}.map-node.available>span,.map-node.selected>span{background:#f3dfac;color:#2a5148;text-shadow:none;box-shadow:0 0 0 5px #fff6c225,0 3px 14px #123a43}.map-node.future>span{background:#274c51a6;border-style:dashed}.map-node.completed>span{background:#d8bd72;color:#214d4b}.destination{padding:13px 17px 7px;display:flex;align-items:center;gap:12px;min-height:94px;background:linear-gradient(#e8ead7,#f1eddb)}.destination>div{flex:1;min-width:0}.destination h2{font-size:25px}.destination p:not(.eyebrow){font-size:12px;margin-top:4px;color:var(--muted)}.destination .primary{min-width:100px;padding:10px 12px}.destination .eyebrow{font-size:7px;letter-spacing:1.1px}.map-tools{display:flex;align-items:center;justify-content:space-evenly;min-height:38px;font-size:11px}.map-tools .text{min-height:36px}.map-tools a{padding:10px 5px}#episode{display:flex;flex-direction:column}.episode-heading{display:flex;justify-content:space-between;gap:8px;padding:5px 18px 7px;align-items:center;flex-shrink:0}.episode-heading h1{font-size:24px}.episode-heading .eyebrow{font-size:7px;letter-spacing:1px}#hearts{white-space:nowrap;font-size:17px}.scene-wrap{height:clamp(135px,25dvh,245px);flex-shrink:0;position:relative;background:#246267;overflow:hidden}#scene{width:100%;height:100%;display:block}#skip-beat,#replay-beat{position:absolute;right:10px;bottom:9px;background:#f5edd8ee;color:#254d46;box-shadow:0 2px 8px #21413b55}.scene-note{font-size:11px;text-align:center;min-height:27px;padding:6px 9px 3px;color:var(--muted)}.section-picker{display:flex;gap:4px;padding:0 10px;flex-shrink:0}.section-picker button{flex:1;min-width:0;min-height:44px;font-size:11px;border:1px solid #9eb6a5;border-radius:11px;background:#eeeeda;color:var(--ink);line-height:1.2;padding:5px 2px}.section-picker button small{display:block;font-size:8px;margin-top:2px}.section-picker button[aria-pressed=true]{background:#315f56;color:#fff4d8}.section-picker button.done{border-color:#b39a50}.section-picker button.locked{border-style:dashed}.puzzle-top{display:flex;justify-content:space-between;align-items:center;min-height:32px;padding:0 14px;font-size:10px;flex-shrink:0}.puzzle-top .text{min-height:30px;font-size:10px}#puzzle-wrap{flex:1;min-height:105px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}#puzzle{width:100%;height:100%;display:block;overflow:visible;max-width:450px}.dock-arrow{cursor:pointer;touch-action:none;outline:none;-webkit-tap-highlight-color:transparent}.dock-arrow:focus-visible .arrow-bed{stroke:#d5ac55;stroke-width:18}.arrow-bed,.arrow-ink,.arrow-highlight,.arrow-hit{fill:none;stroke-linecap:round;stroke-linejoin:round}.arrow-bed{stroke:#eef2d8;stroke-width:15}.arrow-ink{stroke:var(--arrow-ink,#214e49);stroke-width:8}.arrow-highlight{stroke:#dce9cf;stroke-width:1.3;opacity:.5;transform:translate(-.7px,-.7px)}.arrow-hit{stroke:transparent;stroke-width:28;pointer-events:stroke}.dock-arrow.hinted .arrow-bed{stroke:#f5dc8b}.dock-arrow.blocked .arrow-ink{stroke:#a45c37}#section-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#e0e8d8e8;text-align:center;padding:15px}#section-overlay p{max-width:260px;font:22px/1.3 Georgia,serif}.play-tools{display:flex;justify-content:center;gap:7px;padding:3px 10px;flex-shrink:0}.play-tools button[aria-pressed=true]{background:#315f56;color:#fff2d7}.feedback{font-size:11px;text-align:center;min-height:31px;padding:4px 15px 0;flex-shrink:0}.episode-foot{display:flex;justify-content:space-between;padding:0 17px 3px;font-size:9px;color:var(--muted);min-height:17px;flex-shrink:0}.focused .scene-wrap{height:70px}.focused .scene-note{display:none}.cinematic .scene-wrap{height:45dvh;max-height:410px}.cinematic #puzzle-wrap{opacity:.35}.cinematic .section-picker{opacity:.5;pointer-events:none}.cinematic .play-tools{visibility:hidden}.light-dust{animation:dust 6s ease-in-out infinite alternate}@keyframes dust{to{transform:translate(4px,-8px);opacity:.2}}.reduced .light-dust{animation:none}#outcome{overflow:auto;display:flex;align-items:center;justify-content:center}.outcome-copy{text-align:center;padding:20px;max-width:430px}.outcome-copy h1{font-size:39px}.outcome-crab{width:200px;max-width:65%;margin:12px auto 0}.outcome-copy>p:not(.eyebrow){margin:12px 0;color:var(--muted)}.outcome-copy button{display:block;margin:9px auto;min-width:210px}#outcome-score{font-size:12px;border-block:1px solid #acb79b;padding:9px}dialog{border:1px solid #bcbe9b;border-radius:23px;background:var(--paper);color:var(--ink);padding:24px;width:min(92vw,430px);max-height:90dvh;overflow:auto;box-shadow:0 20px 80px #0f333b5c}dialog::backdrop{background:#143b4380;backdrop-filter:blur(7px)}dialog h2{font-size:30px;margin-bottom:13px}dialog p{margin:10px 0;line-height:1.55}dialog .primary,dialog .secondary{display:block;width:100%;margin-top:12px}dialog .text{display:block;margin:4px auto}dialog .close{float:right;margin:-7px -8px 5px 8px}#paused::backdrop{background:#e2e9db}#options::backdrop{background:#dce7daef}.mode-picker{display:flex;gap:5px;margin:17px 0 10px}.mode-picker button{flex:1;min-height:57px;border:1px solid #a9b79b;background:#f7f2df;border-radius:13px;color:var(--ink)}.mode-picker small{display:block;font-size:8px}.mode-picker button[aria-pressed=true]{background:#315f56;color:#fff4dc}#options label{display:block;margin:13px 0}#options output{float:right;font-size:12px}#options input[type=range]{display:block;width:100%;accent-color:#35695b}#options .toggle{display:flex;justify-content:space-between;align-items:center;min-height:34px}#options .toggle input{width:22px;height:22px;accent-color:#35695b}#options a{font-size:12px}.studio-brand{display:block;width:210px;max-width:90%;margin:20px auto 0}#places-list button{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:52px;border:0;border-bottom:1px solid #b9c2a8;background:transparent;color:var(--ink)}#places-list small{font-size:10px}.tutorial-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.tutorial-heading h2{margin:0;font-size:27px}#how-to-play{padding:18px;width:min(94vw,560px)}#tutorial-video,#tutorial-still{width:100%;aspect-ratio:3/2;object-fit:contain;border-radius:15px;margin:14px 0 8px;background:#e9eadb}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-height:700px){.episode-heading h1{font-size:20px}.scene-wrap{height:135px}.episode-heading{padding:3px 13px 5px}.scene-note{font-size:10px}.feedback{font-size:10px;min-height:27px}.map-title h1{font-size:27px}.map-title .eyebrow{font-size:7px}.destination{min-height:80px;padding:8px 13px 3px}.destination h2{font-size:22px}.map-node{min-width:75px}.map-node b{font-size:10px}.map-node small{font-size:8px}.map-node>span{width:24px;height:24px;font-size:17px}.outcome-copy h1{font-size:31px}.outcome-crab{width:150px}}@media(min-width:800px){#world-app{max-width:1000px}.world-map{max-width:720px;width:100%;margin:auto}.destination{max-width:720px;width:100%;margin:auto}.map-tools{max-width:720px;width:100%;margin:auto}}@media(orientation:landscape) and (min-width:600px) and (max-height:600px){#world-app{max-width:1100px}.masthead{height:44px;padding:0 10px}.masthead .round{height:36px;width:36px}.world-map{width:65%;height:100%;margin-left:0;border-radius:15px;max-width:none}.map-title{left:65%;top:15px}.map-title h1{color:#264e4b;text-shadow:none;font-size:27px}.map-title .eyebrow{color:#53716b;text-shadow:none;font-size:7px}.destination{position:absolute;left:65%;right:0;bottom:50px;width:35%;display:block;text-align:center}.destination .primary{margin-top:12px}.destination h2{font-size:23px}.map-tools{position:absolute;left:65%;right:0;bottom:0;width:35%;gap:1px;flex-wrap:wrap}.map-tools a,.map-tools .text{font-size:10px}.map-node{min-height:48px}.map-node>span{width:21px;height:21px;font-size:15px}.map-node small{display:none}.map-node b{font-size:10px}.map-node{min-width:70px}#episode{display:grid;grid-template-columns:52% 48%;grid-template-rows:42px 30px 44px 1fr 48px 28px}.episode-heading{grid-column:1;grid-row:1;padding:0 12px}.episode-heading h1{font-size:19px}.scene-wrap{grid-column:1;grid-row:2/6;height:100%;min-height:0}.scene-note{grid-column:1;grid-row:6;font-size:10px;padding:3px}.section-picker{grid-column:2;grid-row:1/3;align-self:center}.puzzle-top{grid-column:2;grid-row:3}.puzzle-top .text{min-height:30px}#puzzle-wrap{grid-column:2;grid-row:4;min-height:0}.play-tools{grid-column:2;grid-row:5;align-self:center}.play-tools .small{min-height:36px;font-size:10px;padding:5px 10px}.feedback{grid-column:2;grid-row:6;font-size:9px;padding:2px;min-height:0}.episode-foot{display:none}.focused .scene-wrap,.cinematic .scene-wrap{height:100%;max-height:none}.focused .scene-note{display:block}#focus-board{display:none}.outcome-copy{max-width:750px;padding:10px 30px 10px 280px;position:relative}.outcome-crab{position:absolute;left:40px;top:40px;width:200px}.outcome-copy h1{font-size:27px}.outcome-copy p{font-size:11px;margin:5px 0!important}.outcome-copy button{min-height:36px;margin:5px auto}.outcome-copy .text{font-size:10px}footer{min-height:22px;padding:2px 12px}}@media(prefers-reduced-motion:reduce){.light-dust{animation:none}}

/* Keep the map title clear of the first landmark and the action beat tightly framed. */
.map-title h1{font-size:27px}.map-title .eyebrow{font-size:7px}.cinematic .scene-wrap{height:min(66vw,34dvh);max-height:330px}#replay-beat{min-height:36px;font-size:10px;padding:6px 10px}#skip-beat{min-height:44px}.scene-wrap{background:#25666b}.map-node[data-place=shallows]{--y:16%!important}@media(orientation:landscape) and (min-width:600px) and (max-height:600px){.cinematic .scene-wrap{height:100%;max-height:none}.map-node[data-place=shallows]{--y:16%!important}}

/* Give the playable lanes more height on a landscape phone. */
@media(orientation:landscape) and (min-width:600px) and (max-height:600px){#episode{grid-template-rows:44px 26px 1fr 40px 20px}.section-picker{grid-row:1}.puzzle-top{grid-row:2;min-height:26px}.scene-wrap{grid-row:2/5}#puzzle-wrap{grid-row:3}.play-tools{grid-row:4}.feedback,.scene-note{grid-row:5}.section-picker button{min-height:40px}.puzzle-top .text{min-height:26px}}

/* The accepted three-face cube is the default; face buttons enlarge geometry, never give hints. */
.face-picker{display:flex;gap:4px;justify-content:center;padding:0 10px 3px;flex-shrink:0;min-height:35px}.face-picker button{font:11px inherit;border:1px solid #b8b99a;border-radius:12px;background:#f1edda;color:var(--ink);min-width:54px;min-height:32px;padding:4px 9px}.face-picker button[aria-pressed=true]{background:#315f56;color:#fff5dc}.dock-arrow .arrow-light{fill:none;stroke:#e6edcf;stroke-width:1.3;opacity:.45;transform:translate(-.7px,-.7px)}.dock-arrow .arrow-hit{stroke-width:30}.scene-wrap{height:clamp(115px,20dvh,210px)}#puzzle{max-width:560px}.focused #puzzle-wrap{min-height:200px}
/* Landmark coordinates and trails share the painting's coordinate system. */
.world-map{background:#174b52;border:1px solid #a8c2af80;border-radius:22px;box-shadow:0 4px 17px #153b3c24;isolation:isolate}.map-art{display:block;width:100%;height:100%}.map-title{position:static;color:var(--ink);text-shadow:none;padding:0 10px 9px;flex-shrink:0}.map-title h1{font-size:25px}.map-title .eyebrow{font-size:7px;margin:0 0 2px}.journey-trails{pointer-events:none;fill:none;stroke-linecap:round;stroke-linejoin:round}.trail-shadow{stroke:#154a49;stroke-width:10;opacity:.18}.trail-open{stroke:#fff0b9;stroke-width:5;opacity:.85}.trail-next{stroke:#ffe9a1;stroke-width:4;opacity:.58;stroke-dasharray:2 13}.trail-later{stroke:#d6e6cf;stroke-width:3;opacity:.36;stroke-dasharray:2 16}.map-landmark{cursor:pointer;outline:none}.landmark-hit{fill:transparent;stroke:none}.landmark-name{text-anchor:middle;font:36px Georgia,serif;fill:#fff4ce;stroke:#16474b;stroke-width:5px;paint-order:stroke;stroke-linejoin:round}.landmark-note,.where-label{text-anchor:middle;font:600 20px system-ui;letter-spacing:2px;fill:#f9eab8;stroke:#194a4b;stroke-width:4px;paint-order:stroke}.where-label{font-size:22px;fill:#fff4be}.landmark-glow{fill:none;stroke:#fff3b6;stroke-width:9;opacity:0;filter:url(#landmarkHalo);pointer-events:none}.map-landmark.selected .landmark-glow{opacity:1}.map-landmark:focus-visible .landmark-hit{stroke:#ffeab3;stroke-width:5;stroke-dasharray:8 5}.map-landmark.selected .landmark-name{fill:#fff9df}.map-landmark.future .landmark-name{font-size:32px}.map-landmark.future .landmark-note{font-size:19px;fill:#e2e6cd}.sr-map-status{opacity:0;pointer-events:none}.traveller-crab{pointer-events:none}.map-scroll-note{display:none}.docks-complete .trail-next{opacity:.85;stroke:#fff2bf}.destination{background:transparent;min-height:85px;padding-top:9px}.map-tools{min-height:38px}
@media(orientation:landscape) and (min-width:600px){#world-app{max-width:1200px}.map-title{position:absolute;left:65%;right:0;top:20px;padding:0 14px}.map-title h1{font-size:27px}.world-map{width:64%;height:100%;margin:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b2c6aa #1e535a;border-radius:16px}.map-art{height:auto;width:100%;min-height:100%}.destination{position:absolute;left:65%;right:0;bottom:58px;width:35%;display:block;text-align:center;padding:14px}.destination .primary{margin-top:14px}.destination h2{font-size:27px}.map-tools{position:absolute;left:65%;right:0;bottom:4px;width:35%;gap:2px;flex-wrap:wrap}.map-tools .text,.map-tools a{font-size:11px}.map-scroll-note{display:block;position:sticky;bottom:5px;width:max-content;margin:0 auto 6px;padding:3px 12px;border-radius:12px;color:#f7efd4;background:#164a4bd9;font-size:10px;pointer-events:none}#episode{display:grid;grid-template-columns:50% 50%;grid-template-rows:44px 35px 1fr 42px 24px}.episode-heading{grid-column:1;grid-row:1;padding:0 12px}.episode-heading h1{font-size:21px}.scene-wrap{grid-column:1;grid-row:2/5;height:100%;min-height:0}.scene-note{grid-column:1;grid-row:5;padding:3px;font-size:10px}.section-picker{grid-column:2;grid-row:1;align-self:center}.puzzle-top{display:none}.face-picker{grid-column:2;grid-row:2;align-self:center}#puzzle-wrap{grid-column:2;grid-row:3;min-height:0}.play-tools{grid-column:2;grid-row:4;align-self:center}.feedback{grid-column:2;grid-row:5;min-height:0;font-size:10px;padding:3px}.episode-foot{position:absolute;left:10px;bottom:26px;display:flex;gap:12px;pointer-events:none}.focused .scene-wrap,.cinematic .scene-wrap{height:100%;max-height:none}.focused .scene-note{display:block}.focused #puzzle-wrap{min-height:0}.play-tools .small{min-height:36px;padding:5px 10px}#focus-board{display:none}}
@media(max-width:360px) and (orientation:portrait){.scene-wrap{height:112px}.face-picker{min-height:30px}.face-picker button{min-height:28px;font-size:10px}.episode-heading h1{font-size:18px}.scene-note{min-height:22px;padding:3px}.puzzle-top{min-height:27px}.feedback{min-height:24px}.masthead{height:48px}.map-title{padding-bottom:5px}.map-title h1{font-size:23px}}

/* Center visible icon ink independently of platform font baselines. */
.round{padding:0;line-height:1;display:grid;place-items:center}.round svg{display:block;width:24px;height:24px;flex-shrink:0;pointer-events:none}.round:active,.round[aria-expanded=true]{background:#dbe4cd;border-color:#9cae8f}.face-picker button{font:inherit;font-size:11px}

/* Default solving view returns the visual lead to the original cube. */
.scene-wrap{height:104px}.scene-note{display:none}.cinematic .scene-note{display:block}.puzzle-top{min-height:45px;padding:0 15px}.puzzle-top #puzzle-goal{font-size:12px}.puzzle-top .view-control{display:grid;width:40px;height:40px;min-height:40px}.play-tools .small{min-height:42px}#puzzle-views .face-picker{margin-top:16px}#puzzle-views .face-picker button{min-height:44px}#puzzle-views .section-picker{padding:0;flex-wrap:wrap}#puzzle-views .section-picker button{min-width:40%;min-height:50px;font-size:13px}#puzzle-views .section-picker button small{font-size:10px}#puzzle-views #focus-board{display:block;margin:14px auto 0}#puzzle{max-width:560px}.landmark-label{fill:#17494b;fill-opacity:.9;stroke:#dfd2a2;stroke-opacity:.6;stroke-width:1.5}.landmark-name,.landmark-note,.where-label{stroke:none}.map-landmark.selected .landmark-label{fill:#f4e5bf;fill-opacity:.96;stroke:#fff2c8}.map-landmark.selected .landmark-name,.map-landmark.selected .where-label{fill:#234e48}.map-landmark.future .landmark-label{fill-opacity:.84}.landmark-note{font-size:19px}.map-landmark.future .landmark-note{font-size:19px}.map-landmark:focus-visible .landmark-label{stroke:#fff9d6;stroke-width:5}
@media(max-width:360px) and (orientation:portrait){.scene-wrap{height:78px}.puzzle-top{min-height:40px}.puzzle-top #puzzle-goal{font-size:11px}}
@media(orientation:landscape) and (min-width:600px){#episode{grid-template-rows:44px 1fr 44px 24px}.episode-heading{grid-row:1}.scene-wrap{grid-row:2/4;height:100%}.scene-note{display:block;grid-row:4}.puzzle-top{display:flex;grid-column:2;grid-row:1;padding:0 15px}#puzzle-wrap{grid-row:2}.play-tools{grid-row:3}.feedback{grid-row:4}.episode-foot{display:none}.focused .scene-wrap{height:100%}}

.map-landmark.selected .landmark-note{fill:#31564e}

/* A single review entrance; normal play remains unchanged. */
.unlocked-tour .map-title #play-anything{min-height:44px;padding:9px 22px;font-size:14px;margin:8px 0 0}.unlocked-tour .map-title h1{font-size:26px}#unlocked-picker section{margin:20px 0}#unlocked-picker h3{font:600 23px Georgia,serif;margin:0 0 8px}#unlocked-picker a.secondary{display:block;text-align:center;text-decoration:none}#unlocked-picker .secondary{width:100%;margin:5px 0;min-height:44px}#unlocked-picker details{margin-top:12px}#unlocked-picker summary{padding:12px 0;cursor:pointer}#unlocked-picker [aria-pressed=true]{background:#315e59;color:#fff5d9}

.map-tools{flex-wrap:wrap;row-gap:0}.map-tools a,.map-tools button{min-height:32px;display:inline-flex;align-items:center;justify-content:center}

#map-screen .map-tools{flex-wrap:wrap}#aquarium{width:min(94vw,580px)}.tank-water{position:relative;aspect-ratio:1.35;background:center/cover url(glass/reveal-coral.webp);border:4px ridge #baa776;border-radius:16px;box-shadow:inset 0 4px 18px #123e4488}.tank-spot{position:absolute;min-width:60px;height:34%;width:22%;border:0;background:transparent;color:white;text-shadow:0 1px 3px black}.tank-spot span{position:absolute;bottom:0;left:0;right:0;background:#153f43cc;border-radius:12px;font-size:10px;padding:3px}.tank-spot img{position:absolute;inset:3% 5%;width:90%;height:76%;object-fit:contain;filter:drop-shadow(1px 4px 3px #153c3c99)}.spot-0{left:37%;bottom:3%}.spot-1{left:5%;bottom:23%}.spot-2{right:5%;bottom:16%}.tank-spot:disabled{visibility:hidden}

@media(orientation:portrait) and (min-height:690px){#episode:not(.focused) .scene-wrap{height:min(22dvh,46vw);max-height:225px;background:#236366 url(assets/setting.webp) center/cover}#episode.cinematic .scene-wrap{height:38dvh;max-height:400px}}#reward-tank img{vertical-align:middle;margin-right:6px}
#practice-glass{display:block;width:100%;aspect-ratio:2.4;border:2px solid #d7c49b;border-radius:13px;background:#b9d8cb;touch-action:manipulation;user-select:none;-webkit-user-select:none}#practice-glass.magnified{border-color:#8e7544}#practice-glass [role=button]{cursor:pointer}#precision-instruction{min-height:2.5em}

#tank-close{display:grid;place-items:center;padding:0;line-height:1}
#tank-close:not([hidden])::before{position:static;display:block;margin:0;align-self:center;justify-self:center}
#tank-water{aspect-ratio:1;background-size:100% 100%;border:0;outline:3px solid #aa9875;overflow:hidden;isolation:isolate}
#tank-water.placing{cursor:crosshair}
#tank-shell{position:absolute;width:17%;aspect-ratio:280/187;height:auto;min-width:0;min-height:0;touch-action:none;user-select:none;transform:translate(-50%,-87.7%);padding:0;border:none;background:none;box-shadow:none;cursor:grab}
#tank-shell:active{cursor:grabbing}
#tank-shell img{position:relative;width:100%;height:100%;display:block;pointer-events:none}
#tank-shell::before{content:'';position:absolute;left:24%;width:55%;bottom:7%;height:17%;background:radial-gradient(ellipse,#233e38aa,transparent 72%);transform:rotate(-5deg)}
#tank-shell[hidden],#aquarium [hidden]{display:none!important}
.world-map svg.map-art{aspect-ratio:1024/2050;height:auto}

body[data-region="depths"] .waiting-arrow{opacity:.13}body[data-region="depths"] .gate-touched{opacity:.75}

.world-map{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}

.map-landmark{-webkit-tap-highlight-color:transparent}
#tank-close:not([hidden])::before{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%)}
body[data-region="depths"] #maze-picture{aspect-ratio:1500/844;background-size:cover!important;background-position:center!important}

#aquarium #tank-close::before{content:none;display:none}#tank-close img{display:block;position:static;margin:0;width:26px;height:26px;pointer-events:none}

#world-app[hidden],#home-cover[hidden]{display:none}body.at-home{overflow:auto;background:#e2e9dd}
#home-cover{margin:auto;max-width:680px;background:#f8f4e7;color:#193f3e;min-height:100svh;display:flex;flex-direction:column}
#home-cover header,#home-cover nav{display:flex;align-items:center;justify-content:space-between;padding:.65rem 1rem;gap:.4rem;flex-wrap:wrap}
#home-cover header span{font:600 .9rem Georgia,serif;letter-spacing:.22em}
#home-art{min-height:150px;height:clamp(155px,47svh,460px);background-size:cover}
#home-cover article{padding:clamp(16px,4vw,28px)}#home-cover h1{font:normal clamp(29px,6vw,46px) Georgia,serif;margin:.25em 0}
#home-steps{width:68px;height:6px;accent-color:#92733f;vertical-align:middle}
#home-cover nav{border-top:1px solid #bbbea8;justify-content:flex-start}
#home-cover button:not(.primary),#home-cover nav a{background:transparent;border:0;color:#19433e;box-shadow:none;padding:.55em .7em;min-height:40px}
#home-cover dialog button[aria-pressed=true]{background:#dbe6da}#journey-player{position:fixed;inset:0;width:100%;height:100%;border:0;z-index:15;background:#eff0de}

#home-art{height:clamp(178px,34svh,360px)}#home-cover nav{gap:.1rem .55rem}
#home-modes button[data-home-mode]{width:100%;display:grid;text-align:left;gap:.2rem;padding:.65rem .8rem;border-radius:9px}
#home-modes small{font-size:.85rem}

#home-cover>header{display:grid;grid-template-columns:1fr auto 1fr}
#home-cover #home-title{text-align:center;margin:0 0 .45em}
#home-settings{grid-column:3;justify-self:end}#home-art{display:block;width:100%;object-fit:cover;object-position:50% 52%}
.player-credit{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:.75rem;margin-top:auto;color:#465a53;font:12px/1.4 system-ui,sans-serif}
.player-credit img{width:122px;max-height:40px}

#home-art{height:auto;min-height:0;max-height:none;aspect-ratio:1.45;object-position:center 27%}
@media (orientation:landscape) and (max-height:500px){#home-art{height:40svh;object-fit:contain;background:#dfe4d7}}

/* Seabed cover: the art, title and actions share one vertical composition. */
#home-cover{position:relative;isolation:isolate;min-height:100svh;max-width:640px;justify-content:flex-end;background:#f4efe1}
#home-cover>header{position:absolute;z-index:2;inset:0 0 auto;padding:max(.8rem,env(safe-area-inset-top)) 1rem;display:flex;justify-content:flex-end}
#home-cover #home-settings{background:#f7f3e7 url(assets/controls.webp) no-repeat;background-size:400% 300%;background-position:0 50%;border:8px solid #f7f3e7;border-radius:50%;width:44px;height:44px;min-height:44px;padding:0;box-shadow:0 1px 6px #193e3836}
#home-cover #home-art{position:absolute;inset:0;z-index:-2;height:79%;width:100%;object-fit:cover;object-position:center 41%;mask-image:linear-gradient(#000 69%,transparent 100%)}
#home-cover article{display:grid;justify-items:center;text-align:center;padding:0 6% 1.1rem;width:100%;box-sizing:border-box}
#home-cover #home-title{margin:0 0 .24em;font:normal clamp(38px,9vw,58px)/1.12 Georgia,serif;color:#163f3a;text-shadow:0 1px 8px #fffbea}
#home-cover:not(.returning) #home-mode,#home-cover:not(.returning) article p{display:none}
#home-cover article p{margin:.2em 0 .65em;font-size:12px}
#home-play{width:100%;min-height:50px;border-radius:14px;margin:.3rem 0 .6rem}
#home-cover #home-mode-open,#home-cover #home-modes nav>*{display:inline-flex;align-items:center;justify-content:center;border:1px solid #b5baaa;background:#f8f5e9;color:#294a41;border-radius:12px;min-height:44px;padding:.5rem 1.2rem;text-decoration:none}
#home-cover .player-credit{margin:0;min-height:8svh;justify-content:center;padding-bottom:max(1rem,env(safe-area-inset-bottom))}
#home-modes{width:min(91vw,420px);box-sizing:border-box}#home-modes nav{display:grid;grid-template-columns:1fr 1fr;padding:.9rem 0 0;margin-top:.8rem}
#home-modes button[data-home-mode]{margin:.35em 0;background:#f8f5e9;border:1px solid #c2c6b4}
#home-cover #home-modes [hidden]{display:none}
@media(orientation:landscape) and (max-height:550px){#home-cover{min-height:100svh;max-width:none;padding-left:50%;box-sizing:border-box;justify-content:center}#home-cover #home-art{height:100%;width:56%;object-fit:cover;mask-image:linear-gradient(to right,#000 76%,transparent)}#home-cover article{padding:44px 7% 0}}

:is(#pair-pause,#paused,#pair-finish,#outcome)>.primary{display:flex;width:100%;justify-content:center;min-height:44px;margin:.6em auto}
:is(#pair-pause,#paused,#density-paused)>h2{font-weight:normal}
#home-modes form{float:right}#home-modes button[aria-label="Close"]{min-width:44px}

.player-credit img{width:clamp(165px,48vw,220px);max-height:52px;object-fit:contain}.player-credit span{font-size:10px}

#home-modes .pressure-choice{display:grid;text-align:left;font-size:13px;padding:.55em .25em}#home-modes .pressure-choice select{border:1px solid #b5baaa;background:#faf7e9;color:#244a42;min-height:42px;border-radius:10px;padding:.4em}
