@font-face{font-family:Baloo;src:url(assets/baloo.woff2) format('woff2');font-display:swap}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:Arial,sans-serif;color:#184e50;background:#117a88}button{font:700 16px/1.15 Arial,sans-serif;border:0;cursor:pointer;min-height:46px;padding:12px 20px;border-radius:24px;color:#164f51;background:#fff8e6;touch-action:manipulation}button:focus-visible,[role=button]:focus-visible,input:focus-visible{outline:4px solid #ffce56;outline-offset:4px}button:hover{filter:brightness(.97)}button:disabled{opacity:.5;cursor:default}[hidden]{display:none!important}.toolbar{position:fixed;inset:0 0 auto;z-index:4;display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:linear-gradient(#083e49b8,transparent);pointer-events:none}.toolbar>*{pointer-events:auto}.brand{background:#fff6e3;border:2px solid #167f7b;border-radius:16px;padding:5px 15px 7px;box-shadow:0 3px 10px #06464e3d;line-height:1.05}.brand-name{display:block;font:700 25px/1 Baloo,sans-serif;color:#167f7b}.brand-title{font-size:11px;font-weight:700;letter-spacing:.6px;color:#795f43}nav{display:flex;gap:8px;align-items:center}nav button{width:46px;padding:10px;background:#fff8e7;border:2px solid #167f7b;font-size:22px}nav .sound-control{width:auto;font-size:14px;padding:11px 17px}.sound-control[aria-pressed=true]{background:#176f73;color:#fff7dc;border-color:#ffdb80}.world,#scene-mount,.scene{position:fixed;inset:0;width:100%;height:100%}.world{background:#0b7886 url(assets/lagoon-clean.png) center/cover no-repeat}.world:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#05444a14 0%,transparent 32%,transparent 62%,#02383fbd 100%);pointer-events:none;z-index:1}.scene{z-index:1}body[data-chapter='1'] .world{background:#198fa2}body[data-chapter='2'] .world{background:#e1bc89}#story-cue{position:fixed;z-index:3;top:82px;left:50%;transform:translateX(-50%);width:min(960px,94%);display:flex;align-items:center;gap:10px}.guide-portrait{width:120px;height:120px;object-fit:contain;filter:drop-shadow(0 4px 3px #084e4c60);align-self:center}.speech{position:relative;flex:1;border:2px solid #78a795;border-radius:22px;padding:16px 24px;background:#fff9e9ed;box-shadow:0 8px 28px #073d4c30}.speech:before{content:'';position:absolute;left:-13px;top:42%;width:22px;height:22px;background:#fff9e9;border-left:2px solid #78a795;border-bottom:2px solid #78a795;transform:rotate(45deg)}.eyebrow{font-size:11px;line-height:1.3;letter-spacing:.8px;text-transform:uppercase;margin:0 0 6px;font-weight:700;color:#61745c}.guide-name{float:right;color:#a86438}h2{font-family:Baloo,Arial,sans-serif;font-size:clamp(27px,2.8vw,40px);line-height:1.08;font-weight:700;margin:0}#cue-detail,#clue-text{font-size:clamp(15px,1.45vw,20px);line-height:1.3;margin:8px 0 0}#clue-text{color:#735329}h2:focus{outline:none}.grown-up{position:fixed;z-index:3;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(930px,94%);text-align:center;color:#fff9e9}.grown-up p{font-size:14px;line-height:1.35;margin:0 0 10px;text-shadow:0 1px 3px #00333e}.grown-up .actions{display:flex;gap:10px;justify-content:center;align-items:center}.primary{background:#ffdc8b;color:#174c4d;box-shadow:0 4px 0 #ac8547,0 6px 14px #013d5055}.secondary{background:#0b5664f2;color:#fffbee;border:1px solid #c4fff0b3}body[data-step=choose] .grown-up{display:grid;grid-template-columns:1fr auto;column-gap:12px;align-items:center}body[data-step=choose] #adult-instruction{grid-column:1/-1}.choice-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.choice-card{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;border:3px solid #76a89a;border-radius:19px;padding:8px 14px;background:#fff9e9;color:#184f50;box-shadow:0 5px 0 #2d6d6c;min-height:86px;font-size:18px}.choice-picture{display:block;flex:0 0 72px;height:62px}.choice-picture img,.choice-picture svg{display:block;width:100%;height:100%;object-fit:contain}.choice-number{background:#176f73;color:#fff6d3;font:700 19px Baloo,sans-serif;width:29px;height:29px;border-radius:50%;display:grid;place-items:center;position:absolute;left:6px;top:6px;border:2px solid #fff3cd}.choice-card:focus-visible,.choice-card:hover{border-color:#d69c3c}.choice-card:active{transform:translateY(2px);box-shadow:0 3px 0 #2d6d6c}#goodbye{margin:10px 0 0;font-size:12px}.scene [role=button]{cursor:pointer}.object-focus{fill:#fff6cd08;stroke:transparent;stroke-width:5;pointer-events:none}.scene [role=button]:focus-visible{outline:none}.scene [role=button]:focus-visible .object-focus{stroke:#fff1a2;stroke-width:8}.scene [role=button][aria-disabled=true]{cursor:default}.target-badge{display:none;pointer-events:none}.target-badge circle,.route-badge circle{fill:#fff2bf;stroke:#176f73;stroke-width:4}.target-badge text,.route-badge text{font:700 23px Baloo,sans-serif;fill:#145960;text-anchor:middle}.scene [aria-disabled=false] .object-focus{stroke:#fff2bf;stroke-dasharray:9 6}.scene [aria-disabled=false] .target-badge{display:inline}.route-line{fill:none;stroke:#f9edb6;stroke-width:9;stroke-dasharray:17 11;stroke-linecap:round;opacity:.8}.route-hit{fill:none;stroke:transparent;stroke-width:44}.route-badge{opacity:.8}.scene [aria-disabled=false] .route-badge{opacity:1}.scene [role=button]:focus-visible .route-line{stroke:#fffad8;stroke-width:14}.scene-label{font-family:Baloo,Arial,sans-serif;font-weight:700;fill:#fff9e5;paint-order:stroke;stroke:#0a4b55;stroke-width:5px;stroke-linejoin:round;font-size:23px}.scene-small{font-family:Arial,sans-serif;font-weight:700;fill:#fff9e5;font-size:16px;paint-order:stroke;stroke:#0a4b55;stroke-width:4px}dialog{width:min(670px,94vw);max-height:88dvh;overflow:auto;border:2px solid #8cb4a7;background:#fff9eb;color:#17494c;padding:28px;border-radius:22px;box-shadow:0 20px 90px #002d40a0}dialog::backdrop{background:#00373fb0}dialog h2{font-size:30px}dialog p,dialog li{font-size:16px;line-height:1.5}dialog li+li{margin-top:12px}dialog ol{padding-left:22px}.dialog-heading{display:flex;gap:15px;align-items:center;justify-content:space-between}.dialog-heading button{border:1px solid #8ba69b;font-size:24px;padding:8px 15px}.settings{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.settings button{border:1px solid #658f80}.settings button[aria-pressed=true]{background:#154e51;color:white}.small{font-size:13px!important;color:#415f5e}.safety{padding:14px;background:#e5edda;border-radius:12px}.lead{font-weight:700}.volume-label{display:flex;gap:10px;align-items:center;font-size:15px;font-weight:700}input[type=range]{accent-color:#167f7b;min-height:44px;max-width:150px}#pause-dialog{text-align:center;width:min(410px,92vw)}#pause-dialog button{display:block;margin:16px auto 0}.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-width:650px){.toolbar{padding:9px 10px}.brand{padding:6px 10px}.brand-name{font-size:22px}.brand-title{font-size:9px}nav{gap:5px}nav button{width:42px;min-height:44px;padding:8px;font-size:20px}nav .sound-control{font-size:12px;padding:10px}#story-cue{top:80px;width:96%;gap:0}.guide-portrait{width:60px;height:76px;margin-right:-2px}.speech{padding:12px;border-radius:17px}.speech:before{left:-8px;width:13px;height:13px}.eyebrow{font-size:9px;letter-spacing:.3px}.guide-name{display:none}h2{font-size:25px}#cue-detail,#clue-text{font-size:14px;margin-top:6px}.grown-up{bottom:max(12px,env(safe-area-inset-bottom));width:94%}.grown-up p{font-size:12px;margin-bottom:8px}body[data-step=choose] .grown-up{display:block}.choice-cards{gap:9px;margin-bottom:10px}.choice-card{min-height:72px;font-size:14px;padding:7px 8px;gap:6px}.choice-picture{flex-basis:48px;height:50px}.choice-number{font-size:15px;width:24px;height:24px;left:3px;top:3px}.grown-up button{font-size:14px}.grown-up .secondary{min-height:44px;padding:10px 18px}dialog{padding:20px}dialog h2{font-size:26px}#goodbye{font-size:11px}}
@media(max-width:350px){h2{font-size:22px}#cue-detail,#clue-text{font-size:13px}.guide-portrait{width:52px;height:65px}.speech{padding:10px}.choice-card{font-size:12px;min-height:64px}.choice-picture{flex-basis:39px;height:44px}.grown-up p{font-size:11px}.brand-name{font-size:19px}.brand-title{font-size:8px}nav .sound-control{font-size:11px;padding:8px}nav{gap:3px}.grown-up button{font-size:13px}}
@media(max-height:500px) and (orientation:landscape){.toolbar{padding:5px 10px}.brand{padding:3px 10px;border-radius:12px}.brand-name{font-size:18px}.brand-title{font-size:8px}nav button{min-height:40px;width:42px;font-size:19px}nav .sound-control{font-size:12px;padding:8px 12px}#story-cue{top:48px;width:90%;max-width:790px;gap:2px}.guide-portrait{width:63px;height:68px}.speech{padding:8px 14px;border-radius:15px}.speech:before{width:14px;height:14px;left:-9px}.eyebrow{display:none}h2{font-size:23px}#cue-detail,#clue-text{font-size:13px;margin-top:4px}.grown-up{bottom:8px}.grown-up p{font-size:11px;margin-bottom:5px}.grown-up button{font-size:13px;min-height:44px;padding:9px 14px}body[data-step=choose] .grown-up{display:grid;grid-template-columns:1fr auto;column-gap:9px}.choice-cards{gap:8px;margin:0}.choice-card{min-height:58px!important;font-size:12px!important;padding:5px 7px!important;gap:5px}.choice-picture{flex-basis:45px;height:44px}.choice-number{width:21px;height:21px;font-size:14px;left:1px;top:1px}#goodbye{font-size:10px;margin-top:6px}.grown-up .secondary{padding:8px 12px;font-size:12px;max-width:110px}}
body[data-step=outcome] .route-badge,body[data-step=chapterdone] .route-badge,body[data-step=done] .route-badge{display:none}
.scene[data-layout=portrait] .route-hit{stroke-width:84}.scene[data-layout=portrait] .route-badge text{font-size:32px}
body[data-chapter='1'] .world{background:#198fa2 url(assets/v09/reef-cove-clear.png) center/cover no-repeat}body[data-chapter='2'] .world{background:#8ccdc4 url(assets/v09/rockpool.png) center/cover no-repeat}body[data-chapter='3'] .world{background:#d5c29b url(assets/v09/shore.png) center/cover no-repeat}body[data-chapter='4'] .world{background:#0f8b94 url(assets/v09/seagrass-home.png) center/cover no-repeat}.fish-count{display:flex;align-items:center;height:100%;justify-content:center}.fish-count img{width:38%;height:80%;margin-left:-5px}.grass-icon{display:block;font-size:32px;line-height:.7;color:#3b8c58;transform:rotate(90deg);font-weight:bold}.scene-label{pointer-events:none}
.wait-icon{font:700 48px/1 Baloo,Arial,sans-serif;color:#176f73;display:block;text-align:center}body[data-step=celebrate] .guide-portrait{filter:drop-shadow(0 5px 8px #ffefbd99)}

/* A complete local copy is ready before any story action begins. */
.welcome{position:fixed;inset:0;z-index:15;display:grid;place-items:center;padding:24px;overflow:auto;background:linear-gradient(90deg,rgba(8,68,72,.22),rgba(8,68,72,.42)),url(assets/lagoon-clean.png) center/cover}
.welcome-card{width:min(620px,100%);max-height:calc(100dvh - 28px);overflow-y:auto;background:#fff8e8;border:2px solid #e4dba7;border-radius:28px;padding:32px 38px;text-align:center;box-shadow:0 15px 60px #063b4c55;position:relative}
.welcome-glee{height:110px;width:125px;object-fit:contain;margin:-10px auto 2px;display:block}
.welcome h1{font:700 clamp(29px,5vw,44px)/1.08 Baloo,Arial,sans-serif;margin:8px 0 12px;color:#184e50}
.welcome-intro{font-size:18px;line-height:1.45;margin:12px 0 20px}
.welcome #ready-status{font-size:15px;font-weight:700;min-height:20px}
.welcome-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:16px 0}
.welcome .small{font-size:13px;line-height:1.5;margin:10px 0 0;color:#52645c}
@media(max-width:500px){.welcome{padding:14px}.welcome-card{padding:22px 18px}.welcome-glee{height:88px}.welcome-intro{font-size:16px}.welcome-actions{flex-direction:column}.welcome-actions button{width:100%}}
@media(max-height:500px) and (min-width:501px){.welcome{padding:12px}.welcome-card{width:min(770px,100%);padding:16px 26px 16px 145px}.welcome-glee{position:absolute;left:20px;top:32px;height:135px;width:110px}.welcome h1{font-size:28px}.welcome h1 br{display:none}.welcome-intro{font-size:15px;margin:5px 0}.welcome .small{font-size:12px;margin:5px 0}.welcome-actions{margin:8px 0}.welcome #ready-status{margin:8px 0}.welcome .eyebrow{margin:0}}

/* Private visual adult guide. Game flow and source artwork unchanged. */
#guide{width:min(1000px,94vw);max-width:1000px;max-height:90dvh;overflow:auto;padding:clamp(16px,3vw,28px)}
#guide .dialog-heading{position:sticky;top:-1px;background:#fff;z-index:3;padding:8px 0}
#guide .guide-storyboard{display:block;width:100%;height:auto;border-radius:18px;margin:16px 0}
#guide .guide-strip{display:flex;gap:8px;flex-wrap:wrap}#guide .guide-strip span{background:#e2f8f3;border-radius:24px;padding:8px 14px;font-weight:700}
#guide .guide-short{font-size:1.2rem;font-weight:700}#guide .guide-note{max-width:70ch}
#guide details{padding:16px 0;border-top:1px solid #c9e6e6}#guide summary{cursor:pointer;font-weight:700;min-height:32px;font-size:1.1rem}
#guide video{display:block;width:100%;max-height:65dvh;background:#052b47;border-radius:16px;margin-top:16px}#guide h3{margin:20px 0 10px}

body[data-speaker="crab"] #story-cue .speech{background:#fff6df;border-color:#e0ae54}body[data-speaker="crab"] #story-cue .guide-portrait{object-fit:contain}

#guide[data-prestart="true"] .settings,#guide[data-prestart="true"] #comfort-title{display:none}
#before-start-guide{min-height:44px}
