:root{font-family:var(--jke-font-ui),system-ui,-apple-system,"Segoe UI",sans-serif;color:#173b4f;background:#e4f6f0;--mission-progress:8.33%}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 8% 4%,#fff3bd 0,transparent 24%),radial-gradient(circle at 95% 90%,#b5e6dc 0,transparent 27%),linear-gradient(150deg,#e4f7ee,#e6f3f7)}button{font:inherit;cursor:pointer;border:0;touch-action:none}button:focus-visible{outline:4px solid #ed8757;outline-offset:3px}button:disabled{cursor:default}.shell{max-width:1190px;margin:auto;padding:18px 14px 28px}.hero{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 22px;margin-bottom:14px;border-radius:24px;background:linear-gradient(115deg,#164d64,#197b82);color:white;box-shadow:0 12px 28px #16475c30}.eyebrow{margin:0;color:#137986;font-size:.76rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.hero .eyebrow{color:#c8f5e6}.hero h1{margin:1px 0;font-size:clamp(1.8rem,4vw,2.7rem);letter-spacing:-.05em;color:white}.hero p:last-child{margin:2px 0 0;color:#dcf6ee}.pill{min-width:132px;padding:11px 13px 16px;border:1px solid #ffffff88;border-radius:30px;background:#ffffffee;color:#155e70;font-weight:700;text-align:center;white-space:nowrap;box-shadow:0 4px 12px #0d3e5040;position:relative;overflow:hidden}.pill:after{content:"";position:absolute;left:0;bottom:0;height:5px;width:var(--mission-progress);background:#ee9868}.layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:14px}.play{min-width:0}.card{background:#fffffff0;border:2px solid white;border-radius:20px;box-shadow:0 9px 28px #16475c24}.mission{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:167px;padding:16px 19px;margin-bottom:11px;border-left:7px solid #efaa70;background:radial-gradient(circle at 100% 0,#fff1c8 0,transparent 42%),#fffefa}.mission-copy{min-width:0}.route{display:flex;align-items:center;width:112px;margin-top:8px;gap:5px}.route span{display:grid;place-items:center;flex:0 0 27px;height:27px;border:2px solid #b5d8d4;border-radius:50%;background:#edf7f3;color:#5b7e83;font-size:.78rem;font-weight:700}.route i{flex:1;height:4px;border-radius:4px;background:#cfdfdc}.route[data-leg="0"] span:first-child,.route[data-leg="1"] span,.route[data-leg="2"] span{border-color:#198780;background:#198780;color:white}.route[data-leg="1"] i,.route[data-leg="2"] i{background:#198780}#clue{max-width:58ch;margin:9px 0 7px;color:#143b50;font-size:clamp(1.08rem,2.6vw,1.4rem);line-height:1.3;font-weight:700;letter-spacing:-.015em}#feedback{min-height:2em;margin:0;color:#426b7d;font-weight:700}.guide{flex:0 0 105px;text-align:center;color:#176878;font-weight:700;font-size:.78rem}.guide figure{height:104px;margin:0;display:grid;place-items:center}.guide img{max-width:100%;max-height:100%;object-fit:contain}.guide figure[hidden]{display:none}.pond-frame{position:relative;overflow:hidden;border:7px solid white;border-radius:23px;background:#388fa5;box-shadow:0 0 0 2px #7fc9c9,0 14px 30px #16475c2f}canvas{display:block;width:100%;height:auto;aspect-ratio:10/7}.controls{display:grid;grid-template-columns:1fr 1fr 1.2fr 1.2fr 1.15fr;gap:7px;margin-top:11px;padding:8px;border:1px solid #c7e5df;border-radius:19px;background:#f5fcf8e8;box-shadow:0 7px 19px #16475c16}.control{min-height:66px;padding:7px 5px;border:1px solid #d6e7e4;border-radius:14px;background:white;color:#174d62;font-weight:700;box-shadow:0 4px 0 #afccca,0 5px 10px #174d6219;user-select:none;-webkit-user-select:none}.control strong{display:block;font-size:1.45rem;line-height:1.1}.control span{font-size:.76rem}.control:not(:disabled):hover{filter:brightness(1.035)}.control:disabled{opacity:.58;background:#edf3f1;color:#597079;box-shadow:0 3px 0 #c9d7d4}.control:not(:disabled):active,.control.down{transform:translateY(3px);box-shadow:0 1px 0 #afccca}.control.forward{background:#fff0ac}.control.check{background:#b9ebdd}.control.retrieve{background:#ffb27c}body[data-mode="aim"] .control.check,body[data-mode="sail"] .control.forward,body[data-mode="retrieve"] .control.retrieve{outline:3px solid #e58c5c;outline-offset:2px}aside{display:grid;gap:11px;align-content:start}aside .card{padding:15px;border-top:5px solid #a8dbd4}h2{margin:0 0 9px;color:#164e62;font-size:1rem}.compass{position:relative;width:172px;height:172px;margin:10px auto;border:8px solid #9fd7d1;border-radius:50%;background:linear-gradient(90deg,transparent 49%,#c2dddc 49%,#c2dddc 51%,transparent 51%),linear-gradient(transparent 49%,#c2dddc 49%,#c2dddc 51%,transparent 51%),#eefaf6;box-shadow:inset 0 3px 13px #225a6930,0 5px 13px #225a691a}.mark{position:absolute;z-index:2;color:#285a68;font-weight:700}.n{top:4px;left:50%;transform:translateX(-50%);color:#df6448}.e{right:7px;top:50%;transform:translateY(-50%)}.s{bottom:4px;left:50%;transform:translateX(-50%)}.w{left:7px;top:50%;transform:translateY(-50%)}.needle{position:absolute;left:calc(50% - 5px);top:calc(50% - 59px);width:10px;height:59px;border-radius:5px;background:#ea704d;transform-origin:50% 100%}.needle:before{content:"";position:absolute;top:-13px;left:-10px;border-left:15px solid transparent;border-right:15px solid transparent;border-bottom:24px solid #ea704d}.hub{position:absolute;z-index:3;left:50%;top:50%;width:16px;height:16px;transform:translate(-50%,-50%);border:4px solid white;border-radius:50%;background:#246b7b}#heading{width:fit-content;min-width:155px;margin:4px auto 6px;padding:7px 14px;border-radius:30px;background:#e6f6f0;color:#15596d;font-size:1.3rem;font-weight:700;text-align:center;font-variant-numeric:tabular-nums}#goal{min-height:2.3em;color:#507688;font-size:.9rem;font-weight:700;text-align:center}.degree-key{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:10px}.degree-key span{padding:7px 3px;border:1px solid #dceeea;border-radius:8px;background:#edf7f4;font-size:.78rem;font-weight:700;text-align:center}.help-card p{color:#577586;font-size:.88rem;line-height:1.42}.row{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.secondary{padding:9px 10px;border:1px solid #cce5df;border-radius:10px;background:#e6f4f1;color:#176878;font-weight:700}.secondary:hover:not(:disabled){background:#d4ede6}.book{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.book-slot{display:grid;place-items:center;min-height:35px;border:1px solid #d6e8e5;border-radius:8px;background:#e9f2f1;color:#91a9ac;font-size:1.3rem}.book-slot.found{border-color:#f0d686;background:#fff1b4;color:#304e55;box-shadow:inset 0 -3px 0 #ebd98f}.modal{position:absolute;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;padding:18px;background:#103d55bd}.modal[hidden]{display:none}.modal-inner{width:min(370px,100%);padding:24px;border:5px solid #ffe7b2;border-radius:22px;background:#fffdf2;text-align:center;box-shadow:0 20px 40px #092c3c55}.modal-icon{font-size:3rem}.modal-inner h2{font-size:1.5rem}.next{width:100%;padding:13px;border-radius:12px;background:#ffad7b;color:#493426;font-weight:700;box-shadow:0 4px 0 #dc895b}.next:active{transform:translateY(3px);box-shadow:0 1px 0 #dc895b}.reduce-motion *, .reduce-motion *:before,.reduce-motion *:after{animation-duration:.01ms!important;transition-duration:.01ms!important}@media(max-width:850px){.layout{grid-template-columns:1fr}aside{grid-template-columns:1fr 1fr}.book-card{grid-column:1/-1}}@media(max-width:620px){.shell{padding:9px}.hero{flex-wrap:wrap;gap:9px;padding:14px;border-radius:17px}.hero h1{font-size:1.75rem}.hero p:last-child{font-size:.82rem}.pill{min-width:125px;font-size:.76rem}.mission{padding:12px;gap:7px}.guide{flex-basis:70px}.guide figure{height:70px}#feedback{font-size:.91rem}.controls{position:sticky;bottom:4px;z-index:6;gap:5px;padding:6px;border-radius:14px;background:#f4fbf6f2;backdrop-filter:blur(8px)}.control{min-height:62px;padding:5px 2px;border-radius:11px}.control strong{font-size:1.2rem}.control span{font-size:.66rem}aside{grid-template-columns:1fr}.book-card{grid-column:auto}}
:root .theo-art{flex:0 0 76px;height:83px;margin:0;display:grid;place-items:center}.theo-art img{max-width:100%;max-height:100%;object-fit:contain}@media(max-width:620px){.theo-art{display:none!important}}

/* Game presentation refinements shared by the three device layouts. */
.hero{min-height:124px;isolation:isolate;position:relative;overflow:hidden;padding:20px 24px;background:linear-gradient(120deg,#124961 0%,#126b78 60%,#18888a 100%)}
.hero::before{content:"";position:absolute;z-index:-1;width:260px;height:260px;right:13%;top:-170px;border:32px solid #ffffff13;border-radius:50%}
.hero-copy{flex:1;min-width:0}
.hero .eyebrow{font-size:.72rem;letter-spacing:.15em}
.hero h1{line-height:1.04;margin:5px 0 7px;text-shadow:0 2px 8px #092d4560}
.hero p:last-child{font-size:.92rem;line-height:1.35}
.hero .theo-art{flex:0 0 80px;width:80px;height:80px;border:3px solid #ffffff88;border-radius:50%;background:#ffffffed;box-shadow:0 5px 16px #0a40554d;overflow:hidden}
.hero .theo-art img{width:100%;height:100%;object-fit:cover}
.pill{align-self:center;padding-top:12px;padding-bottom:17px;box-shadow:0 5px 14px #0b3a4d45}
.mission{min-height:166px;border-left-width:6px}
.mission-copy{flex:1}
.guide{flex:0 0 96px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;align-self:stretch;color:#145c69;font-size:.78rem}
.guide figure{width:82px;height:82px;min-height:82px;margin:0;overflow:hidden;display:grid;place-items:center;border:3px solid #cdebe1;border-radius:50%;background:linear-gradient(#fffdf2,#e1f6ef);box-shadow:0 3px 10px #275c6b22}
.guide figure img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center 28%}
.guide span{display:block;white-space:nowrap}
.pond-frame{border-width:6px;background:#348da4}
.pond-frame::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:15px;box-shadow:inset 0 0 0 1px #e9fff366,inset 0 0 34px #0e496022}
.map-hud{position:absolute;z-index:2;right:15px;top:15px;min-width:118px;padding:8px 11px;border:1px solid #d7fff4a8;border-radius:13px;background:#f3fff0e9;color:#164d62;text-align:center;box-shadow:0 4px 13px #16475c35;backdrop-filter:blur(6px)}
.map-hud-label{display:block;font-size:.57rem;font-weight:700;letter-spacing:.15em;line-height:1.1;color:#2d7a79}
.map-hud strong{display:block;margin-top:2px;font-size:1.2rem;line-height:1.1;font-variant-numeric:tabular-nums}
.control{transition:transform .12s ease,box-shadow .12s ease,filter .12s ease}
.control:not(:disabled){border-color:#a8cfc9}
.control:disabled{opacity:.68;color:#476672}
.secondary{min-height:39px}
.compass{background:radial-gradient(circle,#ffffff 0,#eaf9f4 64%,#d9f3eb 100%);border-color:#90d2ce}
.compass::before,.compass::after{content:"";position:absolute;background:#c2dddc}
.compass::before{left:calc(50% - 1px);top:0;width:2px;height:100%}
.compass::after{top:calc(50% - 1px);left:0;height:2px;width:100%}
.mark{z-index:3}
.needle{z-index:2}
.hub{z-index:4}
.book-slot{font-weight:700}
@media(max-width:850px){aside{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"compass help" "compass book";align-items:start}.compass-card{grid-area:compass}.help-card{grid-area:help}.book-card{grid-area:book;grid-column:auto}}
@media(max-width:620px){.hero{display:grid;grid-template-columns:minmax(0,1fr) 66px;gap:8px;min-height:0;padding:14px 15px}.hero-copy{grid-column:1;grid-row:1}.hero .eyebrow{font-size:.61rem}.hero h1{font-size:1.78rem}.hero p:last-child{font-size:.78rem}.hero .theo-art{display:grid!important;grid-column:2;grid-row:1;width:62px;height:62px;align-self:center}.hero .pill{grid-column:1/-1;grid-row:2;justify-self:start;min-width:0;padding:7px 12px 12px}.mission{min-height:0;padding:12px 12px 13px}.guide{flex-basis:69px;gap:4px;font-size:.65rem}.guide figure{width:59px;height:59px;min-height:59px;border-width:2px}#clue{font-size:1.04rem}#feedback{font-size:.84rem}.map-hud{right:7px;top:7px;min-width:74px;padding:5px 6px;border-radius:8px}.map-hud-label{font-size:.46rem}.map-hud strong{font-size:.9rem}.controls{gap:4px;padding:5px}.control{min-height:64px}.control strong{font-size:1.35rem}.control span{font-size:.71rem}aside{grid-template-columns:1fr;grid-template-areas:"compass" "help" "book"}.book-card{grid-column:auto}}
@media(max-width:360px){.hero{grid-template-columns:minmax(0,1fr) 53px}.hero h1{font-size:1.55rem}.hero .theo-art{width:51px;height:51px}.guide{flex-basis:56px}.guide figure{width:48px;height:48px;min-height:48px}.guide span{font-size:.58rem}.control span{font-size:.63rem}}
@media(min-width:1000px) and (max-height:1050px){.shell{padding-top:10px}.hero{min-height:100px;padding-top:10px;padding-bottom:10px}.hero .theo-art{width:65px;height:65px;flex-basis:65px}.hero h1{font-size:2.2rem}.mission{min-height:138px;padding-top:10px;padding-bottom:10px}.guide figure{width:68px;height:68px;min-height:68px}.controls{margin-top:8px}.control{min-height:60px}}
body[data-area="1"]{background:radial-gradient(circle at 8% 5%,#f8e9c8 0,transparent 26%),linear-gradient(150deg,#e8f3ed,#dceafa)}
body[data-area="1"] .hero{background:linear-gradient(120deg,#244f6a,#336d91 64%,#5b91a4)}
body[data-area="1"] .mission{border-left-color:#d5ae7f;background:radial-gradient(circle at 100% 0,#f6ead2 0,transparent 44%),#fffefa}
body[data-area="2"]{background:radial-gradient(circle at 90% 5%,#f8e3bd 0,transparent 27%),linear-gradient(150deg,#e4f1e9,#d8e7ec)}
body[data-area="2"] .hero{background:linear-gradient(120deg,#304d61,#547b85 65%,#827968)}
body[data-area="2"] .mission{border-left-color:#b98962;background:radial-gradient(circle at 100% 0,#f8e9d2 0,transparent 44%),#fffefa}
body[data-area="3"]{background:radial-gradient(circle at 8% 5%,#dce1fa 0,transparent 26%),linear-gradient(150deg,#dfeeea,#dce5f7)}
body[data-area="3"] .hero{background:linear-gradient(120deg,#273858,#345473 65%,#556887)}
body[data-area="3"] .mission{border-left-color:#a9a1db;background:radial-gradient(circle at 100% 0,#ece8fb 0,transparent 44%),#fffefa}

/* Bonus dives live beside the regular controls and keep the story book intact. */
.dive-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px;padding-top:12px;border-top:1px solid #d8e9e4}
.dive-actions .secondary{flex:1 1 110px;padding-inline:5px;background:#ffebbd;border-color:#edcb87;color:#6e4d28;font-size:.8rem;white-space:nowrap}
.dive-actions .secondary:hover:not(:disabled){background:#ffdfa0}
.dive-actions #story{background:#e7f4f0;border-color:#cce5df;color:#176878}
.dive-actions #story[hidden]{display:none}
.dive-status{margin:7px 0 0!important;padding:8px 10px;border-radius:9px;background:#f0f8f3;color:#296375!important;font-size:.8rem!important;font-weight:700;line-height:1.35!important}
@media(max-width:620px){.dive-actions{margin-top:10px}.dive-actions .secondary{min-height:42px}.dive-status{font-size:.76rem!important}}

/* Theo is actively piloting in the new illustration. */
.theo-art img{width:100%;height:auto;max-height:170px;object-fit:contain;border-radius:12px}.theo-art{width:210px;max-width:34vw}
