/* A single first-person world, with controls kept readable above the scenery. */
.gamegrid{display:block}.world{width:100%}.scene{height:auto;min-height:780px;isolation:isolate;overflow:hidden;background:#133c49}.scene .landscape{position:absolute;width:150%;max-width:none;height:100%;left:-25%;top:0;object-fit:cover;object-position:var(--heading,50%) 40%;transition:object-position .6s ease,transform .8s ease;transform:translateX(calc((var(--pan,0))*1%))}.scene .practice{position:relative;z-index:6;margin:90px 24px 30px;width:410px;max-width:calc(100% - 48px);padding:20px;background:#f6f6eaf5;border:1px solid #fff6;box-shadow:0 12px 35px #08283140}.scene .practice article{min-height:0}.scene .practice .cardtitle{margin-top:14px;font-size:25px}.scene .practice h2{font-size:25px}.scene .practice .listen{width:68px;height:68px;margin:12px auto}.scene .practice .sub{font-size:14px}.scene-top{z-index:8}.scene-caption{z-index:2;left:auto;right:24px;top:95px;bottom:auto;max-width:35%;text-shadow:0 2px 8px #082831}.scene-caption h2{font-size:27px}.scene-caption .eyebrow{display:none}.scene-caption p{font-size:14px}.boat-foreground{position:absolute;z-index:2;inset:auto 0 0;width:100%;height:auto;pointer-events:none}.water-motion{position:absolute;inset:40% -20% 0;z-index:1;pointer-events:none;opacity:.1;background:repeating-radial-gradient(ellipse at center,#d8f6ed55 0 2px,transparent 3px 30px);transform:scaleY(.35)}.sailing.steering .water-motion{animation:wake .85s ease}.sailing.steering .landscape{transform:translateX(-3%) scale(1.04)}.scene-status{z-index:10;bottom:30px;max-width:90%}.rod-action{position:absolute;z-index:5;right:-2%;bottom:0;width:40%;height:75%;padding:0;border:0;background:none;transform-origin:90% 95%;touch-action:none;transition:transform .35s;cursor:pointer}.rod-action img{width:100%;height:100%;object-fit:contain;object-position:right bottom;pointer-events:none}.rod-action:disabled{opacity:1;filter:none}.rod-action .equipment-label{position:absolute;bottom:22%;right:10%;background:#c8ed9a;color:#244437;padding:12px 18px;border-radius:18px;font-weight:700;white-space:nowrap}.rod-action:disabled .equipment-label{display:none}.line-taut .rod-action{transform:rotate(-5deg)}.line-taut .rod-action.pull-left{transform:rotate(7deg)}.fishing-line{position:absolute;right:32%;top:34%;height:30%;width:1px;background:#e4eee1a8;transform:rotate(20deg);transform-origin:top;z-index:3;pointer-events:none}.line-taut .fishing-line{transform:rotate(28deg);background:#fff;box-shadow:0 0 3px #fff}.water-target{position:absolute;right:12%;top:38%;width:140px;height:70px;border:2px solid #f8ffdf;border-radius:50%;box-shadow:0 0 0 10px #f8ffdf33,0 0 0 24px #f8ffdf16;color:#fff;background:#143b4480;z-index:7;font-weight:700}.camera-action{position:absolute;z-index:5;right:10%;bottom:15%;display:grid;gap:10px;place-items:center;background:#173e49dd;border:1px solid #c8ed9a;color:#eff8df;border-radius:18px;padding:18px}.camera-body{font-size:85px}.camera-action:disabled{opacity:.65}.leaf-target{position:absolute;z-index:7;right:5%;top:40%;width:230px;max-width:40%;padding:36px 14px;border-radius:70% 20%;background:linear-gradient(30deg,#244c30,#6a9254);color:#fff;border:3px solid #a7bc72;touch-action:pan-y}.steering-controls{margin:14px 0}.steer-pad{display:flex;align-items:center;justify-content:space-between;background:#dce7d4;color:#244737;padding:12px;border-radius:12px;touch-action:pan-y;user-select:none;min-height:48px}.steer-buttons{display:flex;gap:6px;margin-top:8px}.steer-buttons .primary{flex:1;min-width:0;padding:10px;font-size:14px}.steer-buttons .secondary{min-width:44px;padding:10px}.word-options{display:flex;flex-wrap:wrap;gap:7px;justify-content:center}.word-option{min-width:56px;padding:10px;font-size:17px;flex:1 0 26%;min-height:44px}.word-option.steer-selected{outline:3px solid #4e8055;outline-offset:1px;background:#e3efd7}.boss-buttons{display:flex;gap:8px;margin-top:15px;flex-wrap:wrap}.boss-buttons button{flex:1;min-height:48px}#bossDirection{font-size:16px;font-weight:700}#bossProgress{width:100%;accent-color:#527c43;height:18px}#messageText{width:100%;font:inherit;padding:12px;border:1px solid #9bb495;border-radius:10px;font-size:18px;resize:vertical}#messageForm .primary{margin:12px 0}#messageFeedback{font-size:14px}#messageFeedback button{display:block}#messageExample{padding:12px;background:#e5eddc;border-radius:10px}#sceneAction{display:contents}.level-controls{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:10px 0}.level-controls button{min-width:44px;min-height:44px;border-radius:8px;border:1px solid #b7cab0;background:#e7efdf;color:#33553d;font-size:18px}.level-controls span{font-size:12px}body[data-mode=choose] .rod-action,body[data-mode=choose] .fishing-line{display:none}body[data-adventure=forest] .boat-foreground,body[data-adventure=forest] .fishing-line,body[data-adventure=forest] .water-motion{display:none}body[data-adventure=forest] .scene .landscape{filter:none}.scene[data-phase=message] .scene-caption{display:block}.discovery-pop{position:absolute;right:12%;bottom:25%;z-index:9;width:150px;height:150px;display:grid;place-items:center;border-radius:50%;background:#f5efdccc;box-shadow:0 0 40px #eaf8cc;font-size:90px;pointer-events:none}.discovery-pop img{width:130px;height:130px;object-fit:contain}.science-copy{max-width:800px;margin:40px auto;line-height:1.7}.science-copy a{color:#bfe6a1}.science-copy h2{font-size:25px}.science-copy h3{font-size:18px}.science-copy p{color:#d5e4db}.science-copy summary{cursor:pointer;font-size:18px}.science-copy li{margin-bottom:12px;font-size:13px;color:#d5e4db}.tripstrip,.shop-entry{max-width:none}.kindnote{font-size:12px}.scene .mode-tabs{margin-bottom:14px}.scene .audioRow{margin:8px 0}.scene .feedback{margin:12px 0}.scene .kindnote{margin-bottom:0}#check:disabled{opacity:.5}.scene .practice .round-heading{gap:10px}.scene .practice .trip-progress{margin:10px 0}.scene .practice .actions{gap:8px}.scene .practice .actions button{font-size:14px;padding:12px}.scene .practice .tiny{font-size:12px}
@keyframes wake{50%{transform:translateY(9px) scaleY(.4)}}
@media(max-width:780px){.scene{min-height:1000px}.scene .practice{margin:78px 12px 330px;width:auto;max-width:none;padding:18px}.scene .landscape{height:100%;width:180%;left:-40%;object-position:50% 50%}.scene-caption{display:none}.boat-foreground{width:150%;max-width:none;left:-25%;bottom:0}.rod-action{height:350px;width:58%;right:-2%}.rod-action .equipment-label{right:5%;font-size:14px;padding:10px;bottom:12%}.fishing-line{top:auto;bottom:195px;right:43%;height:130px}.scene .practice .cardtitle{font-size:23px}.scene .mode-tabs button{font-size:13px}.water-target{top:auto;bottom:230px;right:32%;width:100px;height:50px}.camera-action{bottom:80px;right:22%}.leaf-target{top:auto;bottom:230px;right:20%;max-width:65%;width:230px}.scene[data-phase=message] .scene-caption{display:none}.discovery-pop{width:100px;height:100px;right:35%;bottom:170px}.discovery-pop img{width:90px;height:90px}.scene-status{bottom:20px;font-size:13px}.science-copy{margin:28px 4px}.shop-entry{flex-wrap:wrap}.tripstrip{flex-wrap:wrap}.scene .practice .round-heading{font-size:11px}.steer-buttons .primary{font-size:12px}.scene .practice .listen{margin:8px auto}.welcome{margin-bottom:16px}}
@media(prefers-reduced-motion:reduce){.scene .landscape,.rod-action{transition:none}.sailing.steering .landscape{transform:none}.water-motion{animation:none!important}}
.scene .scene-status{top:auto;bottom:22px;height:auto;min-height:0;width:max-content;max-width:90%;white-space:normal;text-align:center;transform:translateX(-50%);animation:none}.scene .scene-status.show{opacity:1}.scene .practice{background:#f5f6eefa}
@media(min-width:1100px){.scene{container-type:inline-size}.scene .word-options{position:absolute;left:calc(100% + 30px);top:210px;width:calc(100cqw - 488px);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.scene .word-option{min-width:0;overflow-wrap:anywhere;background:#e6d2a0;border:3px solid #a58a59;color:#334b38;box-shadow:0 5px 0 #705d3d;font-size:18px;padding:12px 6px;position:relative}.scene .word-option:after{content:'';position:absolute;left:48%;top:100%;height:28px;width:7px;background:#8f7449;z-index:-1}.scene .word-option.steer-selected{background:#d2eba8;outline-color:#e1f7b9}.scene .word-option.correct-choice{background:#c3e9a0}}
.science-copy summary{color:#c8ed9a}.scene .fishing-line{right:24%;top:27%;height:22%;transform:rotate(-36deg)}.scene.line-taut .fishing-line{transform:rotate(-36deg)}.scene[data-phase=cast] .fishing-line{display:none}
@media(min-width:781px){body[data-adventure=fishing] .scene:not(.panorama-views) .landscape{height:140%;top:-40%}}
@media(max-width:780px){.scene .fishing-line{top:auto;bottom:215px;right:43%;height:95px;transform:rotate(-36deg)}}
.camera-action{width:300px;background:none;border:0;box-shadow:none}.camera-action .camera-body{display:block;width:100%;height:auto;pointer-events:none}.camera-action .equipment-label{background:#c8ed9a;color:#244437;border-radius:12px;padding:12px 16px;font-weight:700}.camera-action:disabled .equipment-label{display:none}.camera-action:disabled{opacity:1}.camera-action .camera-body{filter:drop-shadow(0 12px 18px #08283160)}
@media(max-width:780px){.camera-action{width:240px;right:calc(50% - 120px);bottom:25px}}
.animal-sighting{position:absolute;z-index:4;right:14%;top:38%;width:160px;height:150px;display:grid;place-items:center;font-size:110px;filter:drop-shadow(0 10px 10px #092f3640)}.animal-sighting img{max-width:100%;max-height:100%}.discovery-pop{animation:land-discovery 1.6s ease both}.scene[data-phase=pull] .fishing-line{animation:cast-line .45s ease-out}.scene[data-phase=photo] .camera-action{filter:drop-shadow(0 0 12px #d1f1af80)}
@keyframes land-discovery{0%{opacity:0;transform:translateY(-70px) scale(.45)}25%,75%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(35px) scale(.8)}}
@keyframes cast-line{from{transform:rotate(-36deg) scaleY(0)}to{transform:rotate(-36deg) scaleY(1)}}
@media(max-width:780px){.animal-sighting{top:auto;bottom:225px;right:calc(50% - 70px);width:140px;height:120px;font-size:90px}}

@media(min-width:1100px){.scene .word-option:last-child{grid-column:auto}}
/* Keep heading and forward progress rather than resetting the camera each word. */
.scene .landscape,.sailing.steering .landscape{transform:translateX(calc(var(--pan,0)*1%)) scale(var(--travel-scale,1));transition:transform 1.1s ease,object-position 1.1s ease}
.boat-foreground{transform-origin:50% 80%;animation:boat-idle 5s ease-in-out infinite}
.sailing .boat-foreground{animation:boat-row 2.8s ease-in-out infinite}
.sailing .water-motion,.sailing.steering .water-motion{opacity:.22;animation:water-flow 2.8s linear infinite}
@keyframes boat-idle{50%{transform:translateY(4px) rotate(.35deg)}}
@keyframes boat-row{0%,100%{transform:translateY(5px) rotate(-.5deg)}50%{transform:translateY(-5px) rotate(.6deg)}}
@keyframes water-flow{from{transform:translateY(-15px) scale(.85,.3)}to{transform:translateY(45px) scale(1.2,.45)}}
.scene .connected-line{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none;overflow:visible}
.scene.auto-catch .rod-action{animation:lift-catch 1s ease-in-out both}
@keyframes lift-catch{0%{transform:rotate(0)}35%{transform:rotate(-12deg)}70%{transform:rotate(-7deg)}100%{transform:rotate(0)}}
.scene.auto-catch:after{content:'';position:absolute;z-index:4;left:66%;top:48%;width:45px;height:14px;border:3px dotted #e6fcff;border-radius:50%;animation:catch-splash 1s ease-out both;pointer-events:none}
@keyframes catch-splash{0%,20%{opacity:0;transform:scale(.2)}40%{opacity:1}100%{opacity:0;transform:scale(3) translateY(-12px)}}
.scene .horizon-words{position:absolute;z-index:7;left:36%;top:28%;width:61%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0;transform:translateX(calc(var(--pan,0)*-.15%));transition:transform 1s}
.scene .horizon-words .word-option{background:#f8f3ddd9;border:1px solid #fff8;box-shadow:0 3px 12px #143c4140;font-size:18px;padding:8px 4px;min-height:44px;border-radius:30px;grid-column:auto}
.scene .horizon-words .word-option:after{display:none}
.scene .horizon-words .steer-selected{background:#d2eba8;outline:3px solid #527c43}
.scene .level-controls{margin:18px 0 0;border-top:1px solid #dce3d5;padding-top:8px;justify-content:center;gap:10px;opacity:.8}.scene .level-controls button{background:transparent;border:0;font-size:17px}.scene .level-controls span{font-size:11px}
.arrival-foreground{position:absolute;z-index:3;right:0;bottom:0;width:85%;pointer-events:none;animation:arrival-in .9s ease both}
.arrival-foreground>img{display:block;width:100%}.board-writing{position:absolute;left:55%;top:13%;width:35%;height:22%;color:#3a2414;text-align:center;font-size:clamp(14px,1.7vw,25px);overflow-wrap:anywhere;overflow:hidden;line-height:1.4;text-shadow:0 1px #f6d39370}.board-writing strong{font-size:.75em}.board-writing p{margin:8px 0;white-space:pre-wrap}.arrival-foreground.posted .board-writing{animation:ink-in .6s ease}
.scene[data-phase=message] .boat-foreground,.scene[data-phase=message] .water-motion{display:none}.scene[data-phase=message] .landscape{filter:brightness(.8);transform:scale(1.12)}
@keyframes arrival-in{from{opacity:0;transform:translateY(60px)}to{opacity:1;transform:none}}
@keyframes ink-in{50%{opacity:.4}}
@media(max-width:1099px){.scene .horizon-words{left:3%;width:94%;top:auto;bottom:240px}.scene .horizon-words .word-option{font-size:15px}.scene .practice{margin-bottom:380px}.arrival-foreground{width:130%;right:0}.board-writing{font-size:16px}.scene[data-phase=message] .practice{margin-bottom:380px}.scene.auto-catch:after{top:auto;bottom:230px}}
@media(prefers-reduced-motion:reduce){.scene .boat-foreground,.scene .water-motion,.scene.auto-catch .rod-action,.scene.auto-catch:after,.arrival-foreground{animation:none!important}.scene .landscape,.sailing.steering .landscape{transition:none}.scene .horizon-words{transition:none}}
.scene .practice .textbutton{color:#426540}.scene .practice .eyebrow{color:#536e59}
/* One wide coastline with a persistent viewpoint for each Fyrrevigen location. */
.scene.panorama-views .landscape,.scene.panorama-views.sailing.steering .landscape{width:300%;max-width:none;height:100%;top:0;left:0;object-fit:fill;transform:translateX(calc(var(--view,0)*-.666667%));transition:transform 1.8s ease}
.scene.panorama-views.sailing .landscape{transform:translateX(clamp(-66.6667%,calc(var(--view,0)*-.666667% + var(--pan,0)*.12%),0%))}
.scene .water-motion,.scene.sailing .water-motion,.scene.sailing.steering .water-motion{inset:44% -8% -10%;background:none;opacity:1;transform:none;animation:none;overflow:hidden;mask-image:linear-gradient(transparent,#000 24%);pointer-events:none}
.water-motion:before,.water-motion:after{content:'';position:absolute;inset:-20%;background:url('assets/water-ripples.svg') repeat;background-size:510px 115px;opacity:.15;animation:lake-drift 16s linear infinite;transform:perspective(500px) rotateX(30deg)}
.water-motion:after{background-size:680px 150px;opacity:.1;animation:lake-cross 23s linear infinite}
.sailing .water-motion:before{animation-duration:5s;opacity:.24}.sailing .water-motion:after{animation-duration:8s;opacity:.16}
@keyframes lake-drift{from{background-position:0 0}to{background-position:510px 115px}}
@keyframes lake-cross{from{background-position:680px 0}to{background-position:0 150px}}
.spot-card{flex-wrap:wrap}.location-map{position:relative;display:flex;justify-content:space-around;gap:8px;width:100%;padding:20px 4px;background:radial-gradient(ellipse at 50% 120%,#80b9ba 0 60%,#c4d6ac 61% 74%,#89a66e 75%);border-radius:60% 45% 16px 16px;margin-top:12px}.location-map:before{content:'';position:absolute;left:8%;right:8%;top:48%;border-bottom:2px dashed #f8f4da}.map-location{position:relative;display:grid;gap:6px;justify-items:center;flex:1;max-width:150px;padding:10px 5px;color:#234a42;background:#f4f1dbe8;border:2px solid transparent;border-radius:14px;font:inherit;font-size:13px}.map-location span{font-size:24px}.map-location small{font-size:10px}.map-location.current{border-color:#315f4d;background:#d4e9b8}.map-location:disabled{opacity:.5}
@media(max-width:780px){.scene.panorama-views .landscape{width:400%;transform:translateX(calc(var(--view,0)*-.75%))}.scene.panorama-views.sailing .landscape{transform:translateX(clamp(-75%,calc(var(--view,0)*-.75% + var(--pan,0)*.12%),0%))}.map-location{font-size:11px}.location-map{gap:4px}.map-location small{font-size:9px}}
@media(prefers-reduced-motion:reduce){.water-motion:before,.water-motion:after{animation:none!important}.scene.panorama-views .landscape{transition:none}}
/* Illustrated atlas, compact travel controls and forward approach. */
.landscape-camera{position:absolute;inset:0;overflow:hidden;z-index:0;transform:scale(var(--approach,1));transform-origin:var(--look,50%) 43%;transition:transform 1.4s ease,transform-origin .5s ease}
.scene.panorama-views .landscape{height:100%;top:0;transition:transform .65s ease;filter:saturate(1.08)}
.scene.panorama-views.sailing .landscape{transform:translateX(clamp(-66.6667%,calc(var(--view,0)*-.666667% + var(--pan,0)*.32%),0%))}
.mini-map{position:absolute;z-index:12;right:18px;top:78px;width:190px;height:156px;border:3px solid #eddda1;border-radius:16px;background-size:260%;box-shadow:0 5px 20px #092e3766;padding:0;overflow:hidden;color:white;cursor:pointer}.mini-map svg{width:100%;height:100%;background:#123d4333}.mini-title,.mini-caption{position:absolute;left:0;right:0;background:#123b48df;font-size:11px;padding:5px;z-index:1}.mini-title{top:0}.mini-caption{bottom:0}.route-dot{fill:#fff4ce;stroke:#173e46;stroke-width:.8}.route-dot.done{fill:#a7f36a;stroke:#224d3d}.map-player{fill:#ffdf65;stroke:white;stroke-width:1.5}
.scene-caption{top:250px;right:24px}.scene .mode-tabs button[aria-pressed=true]{display:none}.scene .mode-tabs button{flex:1;background:#d7edb5;color:#244f43}.scene .mode-tabs{display:flex}
.scene.navigation{min-height:760px}.scene.navigation .practice{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);margin:0;width:620px;max-width:calc(100% - 30px);padding:12px 16px;background:#143f48e8;border:1px solid #a7d2c466;border-radius:20px;box-shadow:0 8px 30px #12394466;color:#eaf5db}.navigation .round-heading,.navigation .trip-progress,.navigation .level-controls,.navigation .kindnote,.navigation .cardtitle,.navigation #card>.sub{display:none}.navigation #card{display:grid;grid-template-columns:64px 1fr;gap:4px 12px;align-items:center}.navigation .steering-controls{grid-column:2;grid-row:1/3;margin:0}.navigation #listen{grid-column:1;grid-row:1;width:54px;height:54px;margin:0;background:#dcedce}.navigation .audioRow{grid-column:1;grid-row:2;margin:0}.navigation .audioRow button{font-size:10px;color:#e4f4d7}.navigation .mode-tabs{position:absolute;left:0;bottom:calc(100% + 12px);width:190px;margin:0}.navigation .feedback,.navigation .audioerror{grid-column:1/-1;font-size:13px;color:#eff8df;margin:0}.navigation .feedback:empty,.navigation .audioerror:empty{display:none}.navigation #choiceNext{display:none}.scene.navigation .horizon-words{top:35%;left:10%;width:80%;gap:18px}.scene.navigation .horizon-words .word-option{font-size:22px;min-height:52px;background:#fff6d6ed;box-shadow:0 4px 14px #163e4466}.scene.navigation .scene-caption{top:85px;left:24px;right:auto;max-width:55%}.navigation .boat-foreground{filter:saturate(1.12)}
.world-atlas{position:relative;aspect-ratio:3/2;border-radius:18px;overflow:hidden;background:#326c7c}.world-atlas>img{width:100%;height:100%;object-fit:cover}.area-pin{position:absolute;transform:translate(-50%,-50%);display:grid;justify-items:center;background:#f7efd7ed;border:2px solid #ad8f56;color:#254d40;padding:8px 12px;border-radius:14px;min-width:105px;box-shadow:0 3px 12px #193d4566;font:inherit}.area-pin span{font-size:22px}.area-pin b{font-size:13px}.area-pin small{font-size:10px}.area-pin.selected{outline:3px solid #d8f89a}.area-pin.locked{filter:grayscale(.65);background:#d4dfd6eb}.atlas-detail{padding:14px 0}.atlas-detail h3{margin:0}.atlas-detail .location-map{margin:0 0 12px}.atlas-detail>p{font-size:13px}
@media(max-width:780px){.scene.navigation{height:680px;min-height:680px}.scene.navigation .practice{bottom:12px;padding:10px;width:calc(100% - 20px);max-width:none}.navigation #card{grid-template-columns:48px 1fr;gap:4px 8px}.navigation #listen{width:44px;height:44px}.navigation .mode-tabs{width:160px}.scene.navigation .horizon-words{top:43%;left:3%;width:94%;gap:5px;bottom:auto}.scene.navigation .horizon-words .word-option{font-size:15px;padding:8px 2px;min-width:0;min-height:46px}.mini-map{width:132px;height:112px;right:12px;top:66px}.mini-title,.mini-caption{font-size:9px;padding:4px}.scene.navigation .scene-caption{display:block;left:15px;top:88px;max-width:49%}.scene.navigation .scene-caption h2{font-size:20px}.scene.navigation .scene-caption p{font-size:12px}.scene:not(.navigation) .mini-map{top:auto;bottom:20px}.scene.panorama-views.sailing .landscape{transform:translateX(clamp(-75%,calc(var(--view,0)*-.75% + var(--pan,0)*.32%),0%))}.area-pin{min-width:72px;padding:5px;max-width:100px}.area-pin b{font-size:10px}.area-pin small{font-size:9px}.area-pin span{font-size:16px}.world-atlas{aspect-ratio:1.15}.world-atlas>img{object-fit:fill}}
@media(prefers-reduced-motion:reduce){.landscape-camera{transition:none;transform:none}.scene.panorama-views .landscape{transition:none}}
.world-atlas>img{pointer-events:none}.area-pin{z-index:2}
.atlas-detail .location-map{height:300px;padding:0;border-radius:16px;background-size:260%;overflow:hidden}.atlas-detail .location-map:before{display:none}.atlas-detail .map-location{position:absolute;transform:translate(-50%,-50%);width:135px;min-height:75px;box-shadow:0 3px 15px #123b4866}.navigation .steer-buttons .secondary{background:#e5efd7;color:#285346}.navigation .steer-buttons .primary:disabled{background:#b6c7bc;color:#294e45;opacity:1}
@media(max-width:780px){.atlas-detail .location-map{height:260px}.atlas-detail .map-location{width:80px;min-height:70px;font-size:10px;padding:5px 3px}.atlas-detail .map-location span{font-size:18px}.atlas-detail .map-location small{font-size:9px}}
/* Map pins must keep their anchor during pointer-down; the generic button press
   translation would move the target away before pointer-up. */
.area-pin:active:not(:disabled),.atlas-detail .map-location:active:not(:disabled){transform:translate(-50%,-50%)}
@media(max-width:780px){.scene:not(.navigation) .mini-map{bottom:350px}.scene[data-phase=cast] .mini-map,.scene[data-phase=pull] .mini-map,.scene[data-phase=photo] .mini-map{display:none}}

/* Keep travel choices compact, including intermediate viewport widths. */
.scene.navigation>.mode-tabs{left:auto;bottom:auto;right:18px;top:244px;width:190px;z-index:12;padding:0;background:none;border:0}
.scene.navigation>.mode-tabs button{font-size:14px;min-height:44px}
.scene.navigation .horizon-words{top:42%;bottom:auto;left:16%;width:68%;gap:12px;align-items:start}
.scene.navigation .horizon-words .word-option{font-size:18px;min-height:44px;padding:8px 6px;overflow-wrap:anywhere}
.scene.navigation .practice{width:460px}
.navigation .steer-pad{justify-content:center;gap:12px;background:transparent;color:#eff8df;cursor:ew-resize;padding:10px;min-height:48px}
.navigation .steer-pad:focus-visible{outline:3px solid #e0acff;outline-offset:2px}
.navigation .steer-buttons:has([hidden]){display:none}
.navigation .steer-buttons .primary[hidden]{display:none}
@media(max-width:780px){
 .scene.navigation>.mode-tabs{right:12px;top:188px;width:132px}
 .scene.navigation>.mode-tabs button{font-size:12px;padding:8px}
 .scene.navigation .horizon-words{left:3%;width:94%;gap:5px}
 .scene.navigation .horizon-words .word-option{font-size:14px;padding:7px 3px}
 .scene.navigation .practice{width:calc(100% - 20px)}
}

/* Status panels retain dark text on their light backgrounds during travel. */
.scene.navigation .audioerror{color:#713e1c;background:#fff0d8}
.scene.navigation .feedback{color:#294d36;background:#e9efdf}

/* Route camera values are interpolated once, independently of word rendering. */
.scene.voyaging .landscape-camera{transition:none;transform-origin:50% 43%}
.scene.voyaging.panorama-views .landscape{transition:none}
.voyage-depth{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
@media(prefers-reduced-motion:reduce){.scene.voyaging .landscape-camera{transform:none}}

/* The selected direction must read clearly over both forest and water. */
.scene.navigation .horizon-words .word-option.steer-selected{background:#542d83;color:#fff;outline:3px solid #fff;outline-offset:2px;box-shadow:0 0 0 6px #542d83,0 5px 16px #122b43aa;font-weight:800}
/* Identical camera transform before, during and after answer feedback. */
.scene.voyaging.panorama-views .landscape,
.scene.voyaging.panorama-views.sailing.steering .landscape{transition:none;transform:translateX(clamp(-66.6667%,calc(var(--view,0)*-.666667% + var(--pan,0)*.32%),0%))}
@media(max-width:780px){.scene.voyaging.panorama-views .landscape,.scene.voyaging.panorama-views.sailing.steering .landscape{transform:translateX(clamp(-75%,calc(var(--view,0)*-.75% + var(--pan,0)*.32%),0%))}}

/* Readable hand-lettered writing, with room for a longer voluntary message. */
.board-writing{font-family:'Chalkboard SE','Comic Sans MS','Trebuchet MS',sans-serif;font-size:clamp(23px,2.3vw,34px);font-weight:600;line-height:1.2;height:26%;top:11%;overflow:auto;pointer-events:auto;scrollbar-width:thin}
.board-writing strong{font-family:'Trebuchet MS',sans-serif;font-size:.65em}
.board-writing p{line-height:1.2;margin:5px 0}
@media(max-width:1099px){.board-writing{font-size:23px}}

/* A separate carved plank crowns the message board. */
.board-nameplate{position:absolute;left:54%;top:0;width:38%;min-height:9%;display:flex;align-items:center;justify-content:center;padding:10px 22px;border:3px solid #633b1e;border-radius:12px 18px 10px 14px;background:repeating-linear-gradient(2deg,transparent 0 7px,#63381b26 8px,transparent 10px 16px),linear-gradient(175deg,#e9bb74,#ba7b3c 48%,#d6a15a 52%,#a96b30);box-shadow:inset 0 3px 1px #ffe3a39c,inset 0 -4px 2px #71401e80,0 6px 8px #25170d66;text-align:center;transform:rotate(-1deg);color:#38200f;text-shadow:0 1px 1px #ffe1a1}
.board-nameplate strong{font-family:'Chalkboard SE','Trebuchet MS',sans-serif;font-size:clamp(20px,2.5vw,36px);font-weight:800;line-height:1.12;overflow-wrap:anywhere}
.board-nameplate:before,.board-nameplate:after{content:'';position:absolute;top:50%;width:7px;height:7px;border-radius:50%;background:#503c2d;box-shadow:inset 1px 1px #ad9270,0 1px #efd098}
.board-nameplate:before{left:8px}.board-nameplate:after{right:8px}
.scene[data-phase=message] .scene-caption{display:none}
@media(max-width:780px){.board-nameplate{padding:8px 15px;border-width:2px}.board-nameplate strong{font-size:20px}}

.waterway-routes{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.waterway-routes polyline{fill:none;stroke:#fff0b4;stroke-width:.65;stroke-dasharray:1.3 1.5;vector-effect:non-scaling-stroke;stroke-width:2}
.atlas-detail .waterway-map .map-location{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;background:#fff0c9;color:#234a42;border:2px solid #59462b;display:grid;place-items:center;font-size:18px}
.atlas-detail .waterway-map .map-location.current{background:#d8edaa;outline:3px solid white}
.destination-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.destination-list button{text-align:left;font-size:13px;padding:10px}
.waterway-mini .mini-title,.waterway-mini .mini-caption{pointer-events:none}.waterway-mini .route-dot{r:1.6}.waterway-mini .map-player{r:2.5}
/* Travel needs an open-water view; keep the boat low and avoid scaling it
   indefinitely with a wide desktop viewport. Fishing retains its framing. */
@media(min-width:781px){
 .scene.navigation .boat-foreground{width:100%;max-width:1150px;left:0;right:0;margin-inline:auto;bottom:-18%}
}

/* Forest travel stays on dry land. One camera approach belongs to the whole walk. */
.scene.forest-path.panorama-views .landscape,
.scene.forest-path.panorama-views.sailing .landscape,
.scene.forest-path.panorama-views.sailing.steering .landscape{
 width:130%;height:100%;left:-15%;top:0;object-fit:cover;object-position:50% 50%;
 transform:translateX(calc(var(--pan,0)*.23% + (var(--view,50) - 50)*-.06%));transition:none;
}
.scene.forest-path .landscape-camera{transform-origin:50% 48%}
.scene.forest-path .camera-action{right:6%;bottom:4%;padding:0;border:0;background:none;box-shadow:none;pointer-events:none}
.scene.forest-path .camera-action:not(:disabled){pointer-events:auto}
.scene.forest-path .camera-action:disabled{opacity:1}
.scene.forest-path .camera-action:disabled .equipment-label{display:none}
.scene.forest-path .camera-body{width:150px;height:125px;object-fit:contain}
.scene.forest-path .animal-sighting{width:230px;height:230px;top:45%;right:16%;animation:animal-reveal .35s ease-out both}
.scene.forest-path.auto-catch:after{left:auto;right:6%;top:auto;bottom:12%;width:90px;height:90px;border:0;background:radial-gradient(circle,#fffde5a0,transparent 70%);animation:photo-glow 1s ease both}
.scene.forest-path.auto-catch .camera-action{animation:camera-ready 1s ease both}
.scene.forest-path .discovery-pop{border:8px solid #fff9e3;border-bottom-width:30px;border-radius:5px;background:#d4dec8;box-shadow:0 8px 25px #14291860;width:190px;height:190px}
.scene.forest-path .discovery-pop img{width:100%;height:100%}
@keyframes photo-glow{0%,55%,100%{opacity:0}65%{opacity:.65}}
@keyframes camera-ready{0%,100%{transform:translateY(0)}35%,75%{transform:translateY(-10px) rotate(-3deg)}}
@keyframes animal-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:780px){.scene.forest-path .camera-body{width:110px;height:90px}.scene.forest-path .animal-sighting{top:auto;bottom:150px;right:calc(50% - 95px);width:190px;height:190px}.scene.forest-path .discovery-pop{width:150px;height:150px;right:calc(50% - 75px)}}
@media(prefers-reduced-motion:reduce){.scene.forest-path.auto-catch:after{display:none}.scene.forest-path .animal-sighting,.scene.forest-path .camera-action{animation:none!important}}
/* A trail noticeboard replaces the waterside landing in the forest. */
.scene.forest-path .arrival-foreground>img{visibility:hidden}
.scene.forest-path .board-writing{background:repeating-linear-gradient(0deg,#b98244 0 32px,#8f5f30 33px,#c18c4b 35px);border:7px solid #754b29;border-radius:8px;padding:14px;box-shadow:inset 0 0 14px #5f3d2560,0 6px 18px #14251560;overflow:auto;height:34%}
.scene.forest-path .arrival-foreground:before,.scene.forest-path .arrival-foreground:after{content:'';position:absolute;z-index:-1;top:40%;bottom:0;width:3%;background:linear-gradient(90deg,#5a3a20,#976b3c,#684827);border-radius:4px}
.scene.forest-path .arrival-foreground:before{left:58%}.scene.forest-path .arrival-foreground:after{left:83%}
.scene.forest-path .animal-sighting:after{content:'';position:absolute;z-index:-1;bottom:0;left:12%;width:76%;height:12%;background:radial-gradient(ellipse,#16321c55,transparent 70%)}
@media(max-width:780px){
 .scene.forest-path .arrival-foreground{width:100%;height:320px}
 .scene.forest-path .board-writing{left:8%;top:20%;width:84%;height:55%}
 .scene.forest-path .board-nameplate{left:8%;top:0;width:84%}
 .scene.forest-path .arrival-foreground:before{left:18%;top:65%;width:5%}
 .scene.forest-path .arrival-foreground:after{left:77%;top:65%;width:5%}
 .scene.forest-path[data-phase=message] .mini-map{display:none}
}

/* The fishing encounter uses the same open scene and drag vocabulary as travel. */
.scene.fishing-boss{min-height:760px;height:760px}
.scene.fishing-boss .practice{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);margin:0;width:430px;max-width:calc(100% - 28px);padding:14px 18px;border-radius:20px;background:#173e43f5;border:1px solid #8cb8a8;color:#f6f6df;box-shadow:0 8px 25px #072e3440}
.fishing-boss .round-heading,.fishing-boss .trip-progress,.fishing-boss .level-controls,.fishing-boss .kindnote,.fishing-boss .mode-tabs,.fishing-boss .scene-caption,.fishing-boss .mini-map{display:none!important}
.scene.fishing-boss[data-phase=cast] .practice{width:auto;padding:6px 15px}
.scene.fishing-boss[data-phase=photo] .practice{display:none}
.scene.fishing-boss .boat-foreground{width:100%;max-width:1150px;left:0;right:0;margin-inline:auto;bottom:-18%}
.fishing-boss .rod-action{pointer-events:none;transition:transform .15s ease;right:-2%;width:32%;height:64%}
.fishing-boss .rod-action .equipment-label{display:none}
.boss-intro{position:absolute;z-index:7;top:85px;left:12px;right:12px;text-align:center;pointer-events:none;color:#fffbea;text-shadow:0 2px 10px #12322b}
.boss-badge{display:inline-block;padding:6px 14px;border-radius:30px;background:#f8dd85;color:#52381f;font-size:12px;font-weight:800;letter-spacing:1.5px;text-shadow:none}
.boss-intro h2{margin:10px 0 5px;font-size:clamp(23px,4vw,32px)}.boss-intro p{margin:0;font-size:15px}
.boss-cast-target,.boss-water-mark{position:absolute;z-index:5;left:var(--boss-x,55%);top:var(--boss-y,62%);width:160px;height:85px;transform:translate(-50%,-50%);border:0;background:none;padding:0;color:#143b37}
.boss-cast-target{cursor:pointer}.boss-water-mark{pointer-events:none}
.boss-cast-target:disabled{opacity:1;filter:none}
.boss-ripple{position:absolute;inset:25px 15px;border-radius:50%;border:2px solid #e7fff4;box-shadow:0 2px 2px #16483e70;animation:boss-rings 2.4s ease-out infinite;pointer-events:none}
.boss-ripple:nth-child(2){animation-delay:-.8s}.boss-ripple:nth-child(3){animation-delay:-1.6s}
.boss-cast-label{position:absolute;top:-36px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:9px 15px;border-radius:12px;background:#fff4c9;box-shadow:0 4px 15px #143c3a40;font-size:15px;font-weight:800}
.boss-cast-label:after{content:'';position:absolute;top:100%;left:calc(50% - 7px);border:7px solid transparent;border-top-color:#fff4c9}
.boss-fish-direction{position:absolute;left:50%;top:46%;transform:translateX(-50%);z-index:5;padding:8px 15px;background:#153f43ef;border:1px solid #f8dc8e;border-radius:30px;color:#fff2c3;font-size:16px;font-weight:700;white-space:nowrap}
.scene .boss-pull-controls h3{font-size:19px;color:#fff4cb;text-align:center;margin:0 0 10px}
.boss-pull-track{position:relative;height:58px;background:#0d3037;border-radius:35px;overflow:hidden}
.boss-pull-zone{position:absolute;top:5px;bottom:5px;left:5px;width:35%;border-radius:30px;background:#7044a0;display:grid;place-items:center;font-size:25px;transition:left .25s;color:#fff9ed}
.boss-pull-zone.right{left:calc(65% - 5px)}
#bossPull{position:relative;z-index:2;appearance:none;-webkit-appearance:none;background:transparent;width:100%;height:58px;margin:0;padding:0 7px;border:0;cursor:grab;touch-action:none}
#bossPull::-webkit-slider-runnable-track{background:transparent;height:48px}
#bossPull::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:48px;height:48px;border-radius:50%;border:4px solid #fff7dd;background:#d6a65e;box-shadow:0 2px 9px #082b32a0}
#bossPull::-moz-range-thumb{width:40px;height:40px;border-radius:50%;border:4px solid #fff7dd;background:#d6a65e}#bossPull::-moz-range-track{background:transparent}
#bossPullHint{text-align:center;font-size:12px;margin:9px 0;color:#e2e8d9;min-height:18px}
.boss-progress-label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:6px}.fishing-boss #bossProgress{height:8px;margin:0;display:block;accent-color:#d9ec9e}
.scene.fishing-boss .practice #skipBoss{display:block;margin:8px auto 0;color:#d3e5cf;min-height:34px;font-size:12px;padding:6px}
.boss-landed{position:absolute;z-index:5;top:38%;left:50%;transform:translateX(-50%);width:230px;height:230px;display:grid;place-items:center;background:radial-gradient(ellipse,#f5efdcc0,transparent 70%)}.boss-landed img{width:100%;height:100%;object-fit:contain}
.boss-casting .rod-action{animation:boss-cast .65s ease both}
@keyframes boss-rings{0%{transform:scale(.5);opacity:0}15%{opacity:.9}100%{transform:scale(1.4);opacity:0}}
@keyframes boss-cast{40%{transform:rotate(-16deg)}100%{transform:rotate(0)}}
@media(max-width:780px){.scene.fishing-boss{height:700px;min-height:700px}.scene.fishing-boss .boat-foreground{width:150%;left:-25%;bottom:-55px}.fishing-boss .rod-action{width:46%;height:380px;bottom:80px}.boss-intro{top:75px}.boss-intro p{font-size:13px;max-width:300px;margin:auto}.boss-fish-direction{top:39%;font-size:14px}.scene.fishing-boss .practice{bottom:12px;padding:12px 14px}.boss-landed{width:190px;height:190px}}
@media(prefers-reduced-motion:reduce){.boss-ripple{animation:none;opacity:.7}.boss-ripple:first-child{transform:scale(.6)}.boss-ripple:nth-child(3){transform:scale(1.4)}.boss-pull-zone,.fishing-boss .rod-action{transition:none}.boss-casting .rod-action{animation:none}}
.boss-casting .connected-line path{stroke-dasharray:1200;animation:boss-line-cast .65s ease-out both}
@keyframes boss-line-cast{from{stroke-dashoffset:1200}to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){.boss-casting .connected-line path{animation:none;stroke-dasharray:none}}
/* Keep the ripple hit area still through the shared button press/disabled styles. */
.scene .boss-cast-target:active:not(:disabled),.scene .boss-cast-target:disabled{transform:translate(-50%,-50%)}

.fishing-boss #bossProgress{appearance:none;border:0;border-radius:8px;overflow:hidden;background:#ffffff24}
.fishing-boss #bossProgress::-webkit-progress-bar{background:#ffffff24;border-radius:8px}
.fishing-boss #bossProgress::-webkit-progress-value{background:#d9ec9e;border-radius:8px}
.fishing-boss #bossProgress::-moz-progress-bar{background:#d9ec9e;border-radius:8px}
