@font-face{font-family:Nunito;src:local('Nunito')}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;color:#102642;font-family:Nunito,'Trebuchet MS',Arial,sans-serif}body{background:#15adc0 url('/assets/ocean.webp') center/cover fixed;overflow:hidden}button,input,select{font:inherit}button,a,select,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:4px solid #f6bb27;outline-offset:3px}button{transition:filter .15s,transform .15s}button:hover:not(:disabled){filter:brightness(1.06)}button:active:not(:disabled){transform:translateY(1px)}h1,h2,h3,p{margin:0}a{color:inherit;text-decoration:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}svg.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:none}.shell{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.topbar{height:64px;flex:none;background:#fffdf2;box-shadow:0 3px 0 #006d7340;display:flex;align-items:center;padding:8px clamp(12px,2.5vw,38px);gap:18px;z-index:2}.brand{font-size:27px;font-weight:1000;letter-spacing:-1.2px;color:#112949;display:flex;align-items:center;gap:8px}.brand b{color:#00875d;font-size:31px}.top-title{font-weight:900;font-size:clamp(16px,2vw,24px);border-left:1px solid #c6d4cb;padding-left:20px}.top-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.icon-btn{width:44px;height:44px;background:#e7f4e9;color:#057452;border-radius:14px;display:grid;place-items:center}.badge{background:#fff0ab;border-radius:20px;padding:6px 12px;font-size:13px;font-weight:800;white-space:nowrap}.home{flex:1;min-height:0;display:grid;grid-template-rows:minmax(105px,1fr) auto minmax(0,1.65fr) auto;gap:clamp(8px,1.5vh,16px);padding:clamp(10px,2vh,24px) clamp(16px,4vw,64px);max-width:1500px;width:100%;align-self:center}.hero{position:relative;overflow:hidden;border-radius:26px;display:flex;align-items:center;padding:15px 26px;background:#fffdf0;isolation:isolate;box-shadow:0 5px 18px #005e7030}.hero::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#fffdf5 0%,#fffdf5 35%,#fffdf500 61%),url('/assets/banner.webp') right center/auto 100%;z-index:-1}.hero h1{font-size:clamp(30px,4vw,55px);line-height:1.03;font-weight:1000;letter-spacing:-1.8px}.hero p{margin-top:9px;font-size:clamp(14px,1.6vw,19px);font-weight:700}.hero .badge{display:inline-block;margin-top:10px;background:#ffdb64}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.tabs{display:flex;background:#fffdf2;border:3px solid white;border-radius:18px;padding:4px;gap:3px;box-shadow:0 4px 10px #005e7030}.tabs button{padding:11px 20px;border-radius:13px;color:#235048;background:transparent;font-size:18px;font-weight:900;display:flex;gap:8px;align-items:center;min-height:44px}.tabs button.active{color:white;background:#008b61;box-shadow:inset 0 -3px 0 #006b44}.level-select{background:#fffdf2;border:2px solid white;padding:9px 14px;border-radius:15px;display:flex;align-items:center;gap:10px}.level-select label{font-size:12px;font-weight:900;color:#4f6d69}.level-select select{max-width:235px;background:transparent;color:#102642;font-weight:800;border:0;padding:6px;min-height:34px}.cards{min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.adventure-card{background:#fffdf4;border:4px solid white;border-radius:24px;box-shadow:0 7px 0 #007b8733,0 12px 22px #006a7922;display:flex;flex-direction:column;overflow:hidden;min-height:0}.card-art{min-height:0;flex:1;background:linear-gradient(145deg,#dcffff66,#4dd7ddaa),url('/assets/ocean.webp') center/cover;position:relative;display:grid;place-items:center;overflow:hidden}.card-art::after{content:'';position:absolute;width:140px;height:14px;background:#00557922;border-radius:50%;bottom:12px;filter:blur(6px)}.sprite{display:inline-block;aspect-ratio:1;background:url('/assets/sprites.webp') left center/300% 100% no-repeat;flex:none;width:80px}.sprite.lighthouse{background-position:50% center}.sprite.boat{background-position:100% center}.card-art .sprite{height:100%;width:auto;max-height:200px;position:relative;z-index:1;filter:drop-shadow(0 8px 8px #005a6d33)}.card-copy{padding:12px 17px 15px;display:flex;flex-direction:column;gap:8px}.card-copy h2{font-size:clamp(19px,2vw,26px);letter-spacing:-.6px}.card-copy p{font-size:15px;line-height:1.35;color:#425a65;min-height:40px}.primary,.secondary{min-height:46px;padding:10px 20px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:900;font-size:17px;text-align:center}.primary{background:linear-gradient(#08a95f,#00844e);color:white;box-shadow:inset 0 -3px 0 #00653755}.secondary{background:#fffdf4;border:2px solid #078165;color:#087359}.footer-bar{background:#fffdf2;border:3px solid white;border-radius:18px;display:flex;align-items:center;justify-content:space-between;padding:8px 17px;gap:12px}.progress-summary{display:flex;align-items:center;gap:13px;font-weight:900}.progress-summary small{color:#546c6a;font-weight:600}.stars{color:#d28a00;letter-spacing:4px;font-size:25px}.footer-bar .secondary{min-height:42px;font-size:15px}.game{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;padding:14px clamp(14px,3vw,46px) 16px}.mission{background:#fffdf1;border:3px solid white;border-radius:20px;display:flex;justify-content:space-between;align-items:center;padding:10px 22px;gap:15px;box-shadow:0 3px 0 #007c8233;min-height:64px}.mission h1{font-size:clamp(20px,2.4vw,32px);letter-spacing:-.5px}.mission small{font-size:13px;font-weight:800;color:#496a60}.step-progress{display:flex;gap:5px}.step-progress i{width:10px;height:10px;background:#d8e6db;border-radius:50%}.step-progress i.done{background:#00a369}.play-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) clamp(290px,30vw,380px);gap:20px}.map-wrap{min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;position:relative}.map-board{border-radius:24px;background:#dffaf0e8;box-shadow:0 8px 30px #006f7550,inset 0 0 0 4px #ffffff;aspect-ratio:1;max-width:100%;max-height:100%;display:block;touch-action:manipulation}.map-board text{font-family:Nunito,'Trebuchet MS',Arial,sans-serif;font-weight:900;paint-order:stroke;stroke:#f4fff9;stroke-width:5;stroke-linejoin:round;pointer-events:none}.map-board .grid-line{stroke:#3c9ba4;stroke-opacity:.3;stroke-width:1.5}.map-board .axis-x{stroke:#1760cf;stroke-width:4}.map-board .axis-y{stroke:#d5424e;stroke-width:4}.map-board .tick-x{fill:#1756b8}.map-board .tick-y{fill:#c33445}.map-board .grid-point{fill:#1d7a82;opacity:.24}.map-board .hit-point{fill:transparent;cursor:crosshair}.map-board .hit-point:hover{fill:#ffcf6380}.map-board .route-line{stroke:#eaa916;stroke-width:7;fill:none;stroke-linecap:round;stroke-linejoin:round}.map-board .hint-line{stroke:#eeac10;stroke-width:5;fill:none;stroke-dasharray:10 7;animation:dash 1.4s linear infinite}.marker{animation:pop .25s ease-out}.side-panel{background:#fffef5;border:3px solid white;border-radius:23px;padding:clamp(12px,1.8vh,22px);min-height:0;display:flex;flex-direction:column;gap:clamp(6px,1.1vh,12px);box-shadow:0 6px 20px #00596a30;overflow:auto}.side-panel h2{font-size:clamp(22px,2.4vw,31px);letter-spacing:-.7px}.eyebrow{font-size:12px;font-weight:900;letter-spacing:1.7px;color:#52816d;text-transform:uppercase}.coord-display{font-size:clamp(36px,5vw,66px);font-weight:1000;letter-spacing:1px;text-align:center;line-height:1.2;padding:5px 0}.x-color{color:#175cd1}.y-color{color:#d64050}.tip{background:#fff0b5;padding:10px 13px;border-radius:13px;font-size:14px;font-weight:700;line-height:1.45}.help-lines{display:grid;gap:7px;font-size:15px;line-height:1.4}.help-lines p{padding:10px;border-radius:12px;background:#e5f0ff;color:#184f9c}.help-lines p+p{background:#ffebe8;color:#a83343}.hint-btn{font-size:14px;min-height:42px;padding:7px 13px}.feedback{font-size:15px;line-height:1.35;min-height:40px;padding:9px 12px;border-radius:12px;background:#edf6ee;color:#31594b}.feedback.good{background:#d5f5dd;color:#08633a;font-weight:800}.feedback.wrong{background:#fff0cd;color:#815313}.actions{display:grid;gap:7px;margin-top:auto}.answer-fields{display:flex;justify-content:center;align-items:end;gap:12px;font-size:28px}.field{display:grid;gap:4px;text-align:center;font-size:16px;font-weight:1000;min-width:0}.field input{width:95px;max-width:100%;border:2px solid #b6cdbd;border-radius:12px;background:white;height:52px;text-align:center;font-size:30px;color:#102642;font-weight:900}.field input.selected{border-color:#008e63;background:#edf9ee;box-shadow:0 0 0 2px #008e631a}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.keypad button{min-height:42px;border-radius:10px;background:#ecf3e5;border:1px solid #bfd3b6;color:#193a3b;font-size:23px;font-weight:800;box-shadow:0 2px 0 #bfd3b6}.keypad button[data-key='back']{font-size:17px}.read-tip{font-size:13px;color:#587169;text-align:center}.cursor-tools{display:flex;justify-content:center;gap:5px}.cursor-tools button{width:44px;height:44px;border-radius:11px;background:#e7f4e9;color:#08614a;font-weight:1000;font-size:22px}.selection-note{font-size:14px;text-align:center;font-weight:800;color:#496b64}.route-list{display:flex;gap:6px;flex-wrap:wrap;max-height:130px;overflow:auto;padding:3px}.route-chip{background:#eef3e5;padding:7px 10px;border-radius:9px;font-weight:800;font-size:14px}.route-chip.current{background:#ffdf78;outline:2px solid #deb448}.route-chip.done{background:#d7f1dc;color:#117044}.learn-body{font-size:17px;line-height:1.5}.learn-step{display:flex;align-items:center;gap:10px}.learn-step b{background:#ffdf78;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:none}.learn-choices{display:flex;gap:6px;flex-wrap:wrap}.learn-choices button{background:#edf4e6;border:2px solid transparent;border-radius:10px;padding:10px;font-weight:800}.learn-choices button.active{border-color:#00875d}.sound-note{font-size:12px;color:#5c726a}.map-hint{position:absolute;left:50%;bottom:3px;transform:translateX(-50%);background:#fffdf4;padding:4px 12px;border-radius:20px;white-space:nowrap;font-size:12px;font-weight:700}.result-screen{margin:auto;max-width:660px;width:90%;background:#fffdf3;border:5px solid white;padding:clamp(20px,4vh,42px);border-radius:30px;text-align:center;box-shadow:0 20px 50px #00596855;display:flex;flex-direction:column;gap:14px;align-items:center}.result-screen .sprite{width:clamp(90px,16vh,150px)}.result-screen h1{font-size:clamp(28px,4vw,44px)}.result-screen p{line-height:1.5}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;width:100%}.result-stats div{background:#edf5e7;border-radius:15px;padding:12px 8px}.result-stats b{font-size:30px;display:block;color:#008457}.result-stats span{font-size:12px;font-weight:800}.result-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}.share-output{width:100%;border:1px solid #b5cbbc;padding:10px;border-radius:10px;font-size:13px}.editor-tools{display:flex;gap:6px}.editor-tools button{flex:1;font-size:14px;padding:8px}.modal-backdrop{position:fixed;inset:0;background:#082d3b99;z-index:5;display:grid;place-items:center;padding:16px}.modal{max-width:500px;background:#fffef6;padding:24px;border:4px solid white;border-radius:24px;display:grid;gap:16px;box-shadow:0 20px 60px #003c5055}.modal h2{font-size:28px}.modal p{line-height:1.6}.modal .row{display:flex;gap:10px;justify-content:flex-end}.isolation-notice{font-size:11px;color:#4f6c63}.check-confetti{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 20% 20%,#ffcf33 0 4px,transparent 5px),radial-gradient(circle at 80% 30%,#ff897b 0 5px,transparent 6px),radial-gradient(circle at 30% 80%,#0bba91 0 5px,transparent 6px);animation:pop .3s ease-out}.full-width{width:100%}.mini-status{font-size:12px;font-weight:800;color:#567666}.mode-tag{color:#076a4b;background:#d9f0c4;padding:6px 12px;border-radius:18px;font-weight:900;font-size:14px}.mobile-only{display:none}
@keyframes dash{to{stroke-dashoffset:-34}}@keyframes pop{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-height:700px) and (min-width:750px){.topbar{height:54px}.game{padding:9px 20px;gap:8px}.mission{min-height:52px;padding:7px 18px}.side-panel{gap:6px;padding:12px}.side-panel h2{font-size:23px}.coord-display{font-size:45px}.tip{padding:7px 10px;font-size:13px}.help-lines p{padding:7px}.feedback{font-size:14px;min-height:33px;padding:7px 10px}.keypad{gap:4px}.keypad button{min-height:38px}.field input{height:44px}.answer-fields{gap:8px}.side-panel .primary{min-height:42px}.side-panel .hint-btn{min-height:38px}.side-panel .read-tip{display:none}.home{gap:8px;padding:10px 32px;grid-template-rows:minmax(90px,.8fr) auto minmax(0,1.8fr) auto}.hero h1{font-size:36px}.hero p{margin-top:5px}.hero .badge{margin-top:7px}.tabs button{font-size:16px;padding:7px 15px}.card-copy{padding:8px 13px;gap:5px}.card-copy p{font-size:13px;min-height:34px}.card-copy h2{font-size:21px}.card-copy .primary{min-height:40px}.footer-bar{padding:5px 12px}.learn-body{font-size:15px}.side-panel .eyebrow{font-size:11px}.route-list{max-height:90px}}
@media(max-width:1000px){.topbar{gap:10px}.top-title{padding-left:12px}.cards{gap:12px}.play-layout{gap:12px;grid-template-columns:minmax(0,1fr) 295px}.home{padding-left:20px;padding-right:20px}.toolbar{gap:8px}.tabs button{padding:9px 13px}.level-select{gap:3px;padding:6px}.level-select label{display:none}.level-select select{font-size:14px}.hero::before{background:linear-gradient(90deg,#fffdf5 0%,#fffdf5 38%,#fffdf500 70%),url('/assets/banner.webp') right center/auto 100%}.topbar .badge{display:none}.brand{font-size:23px}.card-copy p{font-size:14px}.footer-bar small{display:none}}
@media(max-width:700px),(orientation:portrait){body{overflow:auto;background-attachment:fixed}.shell{height:auto;min-height:100dvh;overflow:visible}.topbar{padding:7px 12px;height:58px;gap:8px}.brand{font-size:21px}.brand b{font-size:25px}.top-title{font-size:16px;padding-left:10px}.top-actions{gap:5px}.top-actions .fullscreen{display:none}.mode-tag{display:none}.home{display:flex;flex-direction:column;padding:12px;gap:12px}.hero{min-height:180px;padding:20px}.hero h1{font-size:36px}.hero p{font-size:14px;max-width:180px}.hero::before{background:linear-gradient(90deg,#fffdf5 0%,#fffdf5 30%,#fffdf500 95%),url('/assets/banner.webp') center/auto 100%}.toolbar{flex-direction:column;align-items:stretch}.tabs{justify-content:center}.tabs button{flex:1;justify-content:center;padding:10px 7px;font-size:15px;gap:5px}.tabs svg{width:18px}.level-select{justify-content:space-between;padding:6px 10px}.level-select label{display:block}.cards{grid-template-columns:1fr;gap:14px}.adventure-card{display:grid;grid-template-columns:35% 1fr;min-height:170px}.card-art .sprite{width:95%;height:auto}.card-copy h2{font-size:23px}.card-copy p{min-height:0;font-size:14px}.card-copy{padding:12px}.footer-bar{padding:8px;gap:7px}.progress-summary{font-size:13px;gap:8px}.stars{font-size:17px;letter-spacing:1px}.footer-bar .secondary{font-size:13px;padding:7px}.game{padding:10px;gap:10px}.mission{padding:10px 14px;min-height:60px;align-items:flex-start}.mission h1{font-size:21px}.mission small{font-size:11px}.step-progress{display:none}.play-layout{display:flex;flex-direction:column;gap:12px;min-height:0}.map-wrap{height:auto;width:100%;aspect-ratio:1;max-height:none}.map-board{width:100%!important;height:auto!important;max-height:none}.side-panel{overflow:visible;padding:15px;gap:10px}.side-panel h2{font-size:26px}.coord-display{font-size:43px}.keypad{grid-template-columns:repeat(3,1fr)}.keypad button{min-height:44px}.side-panel .actions{margin-top:5px}.result-screen{margin:30px auto}.result-stats{gap:7px}.result-actions{flex-direction:column;width:100%}.map-hint{bottom:1px;font-size:10px}.read-tip{display:block}.game .tip{font-size:14px}.cursor-tools button{flex:1}.isolation-notice{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:380px){.topbar .brand{display:none}.top-title{border-left:0;padding-left:0;flex:1;min-width:0;font-size:16px}.answer-fields{gap:6px}.field input{width:75px}.progress-summary{gap:4px}.footer-bar{flex-wrap:wrap;justify-content:center}}
@media(max-height:700px) and (min-width:750px){.side-panel:has(.learn-body) .help-lines{display:none}.side-panel:has(.learn-body) .learn-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.side-panel:has(.learn-body) .learn-choices button{padding:7px 3px;min-height:44px;font-size:13px}}
