:root{font-family:'DM Sans',system-ui,sans-serif;color:#193e3b;--green:#184b43;--cream:#fbf8ed;--gold:#f4c16d;--line:#dce4d9}*{box-sizing:border-box}body{margin:0;background:#88b8b0;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0;color:inherit;min-height:52px;border-radius:14px;padding:12px 22px;font-weight:700;touch-action:manipulation;transition:background .2s,transform .2s}button:active{transform:scale(.97)}button:focus-visible,a:focus-visible{outline:4px solid #efad3e;outline-offset:4px}button:disabled{cursor:default;opacity:.65}[hidden]{display:none!important}#world,#shade{position:fixed;inset:0;width:100%;height:100%;touch-action:none}#shade{pointer-events:none;background:linear-gradient(90deg,rgba(242,243,224,.92),rgba(242,243,224,.64) 30%,transparent 62%)}header{position:fixed;z-index:8;inset:30px 42px auto;display:flex;justify-content:space-between;align-items:center;pointer-events:none}header>*{pointer-events:auto}#brand{color:#193e3b;text-decoration:none;display:flex;gap:11px;align-items:center;font-size:11px;letter-spacing:2px;line-height:1.45}#brand b{font-size:19px;letter-spacing:4px}.brand-icon{background:var(--green);color:#f5d390;border-radius:50%;font-size:31px;width:48px;height:48px;text-align:center;line-height:48px}#toolbar{display:flex;gap:10px}.glass{background:#fff9e6c9;backdrop-filter:blur(12px);box-shadow:0 3px 20px #16493a0b}.icon{font-size:24px;padding:10px;width:54px}.home{position:absolute;left:8%;top:23%;width:470px}.eyebrow{font-size:11px;letter-spacing:3px;font-weight:800;display:flex;align-items:center;gap:9px}.eyebrow>span{height:7px;width:7px;border-radius:50%;background:#538d67}h1{font-family:Manrope,system-ui,sans-serif;font-size:clamp(48px,5.7vw,88px);line-height:1.08;letter-spacing:-5px;font-weight:800;margin:22px 0}h1 em{font-style:normal;color:#487b67}.home p{font-size:17px;line-height:1.7;color:#53736b;margin:22px 0 30px}.primary{background:var(--green);color:#fffdf2;font-size:18px;padding:18px 26px;min-width:245px;box-shadow:0 8px 24px #153e3a20}.primary span{float:right;margin-left:45px;color:#f3cb87}.home-links{display:flex;gap:10px;margin-top:12px}.home-links button{background:transparent;padding:12px 10px;font-size:14px}.home-links span{margin-left:13px;color:#648775}.unit-note{margin-top:38px;font-weight:700;font-size:16px;letter-spacing:2px}.unit-note i{font-style:normal;color:#91a595;padding:0 12px}.unit-note small{display:block;font-weight:400;font-size:11px;letter-spacing:.3px;margin-top:12px;color:#768f80}#lake-label{position:fixed;bottom:35px;right:42px;color:white;text-shadow:0 2px 12px #174f50}#lake-label span{font-size:11px;letter-spacing:2px;font-weight:700}#lake-label small{display:block;margin-top:9px;font-size:13px;opacity:.8}dialog{border:0;border-radius:28px;padding:30px;background:var(--cream);color:var(--green);width:min(760px,94vw);max-height:90dvh;box-shadow:0 20px 100px #133b3a50}dialog::backdrop{background:#102d3a66;backdrop-filter:blur(6px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-head h2{margin:0;font-size:30px;letter-spacing:-1px}.close{background:#e6eadf;font-size:22px;min-width:52px;padding:8px}.setting{margin:22px 0}.setting h3{font-size:13px;text-transform:uppercase;letter-spacing:1.5px;margin:0 0 10px}.choices{display:flex;flex-wrap:wrap;gap:8px}.choices button{background:#e8ecdf;flex:1;padding:12px 14px;white-space:nowrap;min-height:52px}.choices button.active{background:#205c4e;color:white;box-shadow:inset 0 0 0 2px #205c4e}.chips button{flex:0 1 auto}.muted{color:#6c847b;font-size:14px;line-height:1.55}.dialog-footer{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:24px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:30px 0}.step{background:#e8ecdf;border-radius:20px;padding:24px 14px;text-align:center}.step .emoji{font-size:44px;margin-bottom:16px}.step h3{font-size:18px}.step p{font-size:14px;line-height:1.5}.hud{position:fixed;top:105px;left:32px;right:32px;display:flex;justify-content:space-between;gap:14px;pointer-events:none}.scorebox{background:#fffbedeb;border-radius:18px;padding:14px 20px;display:flex;gap:25px;align-items:center;box-shadow:0 8px 30px #1747420d}.scorebox b{font-size:24px;display:block}.scorebox small{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#668075}.team-strip{display:flex;gap:8px}.team-chip{background:#fff9e5ba;border:3px solid transparent;border-radius:15px;padding:8px 13px;max-width:200px}.team-chip.active{background:#fffbed;border-color:var(--team);box-shadow:0 4px 20px #173c3a30}.team-chip b{font-size:17px}.team-chip small{display:block;font-size:11px;margin-top:4px}.timer{font-size:26px;font-variant-numeric:tabular-nums}.instruction{position:fixed;bottom:32px;left:50%;transform:translateX(-50%);text-align:center;background:#fffbedeb;padding:15px 25px;border-radius:18px;max-width:90%;box-shadow:0 8px 30px #17474220}.instruction b{display:block;font-size:20px}.instruction small{display:block;margin-top:5px;color:#628175}.fish-tag{position:fixed;transform:translate(-50%,-50%);background:#fff8e9e8;border:1px solid #ffffff99;padding:7px 14px;min-height:48px;min-width:94px;border-radius:16px;box-shadow:0 4px 15px #23554b18;pointer-events:auto;white-space:nowrap;font-size:13px}.fish-tag small{display:block;color:#ab7733;letter-spacing:2px;font-size:11px;margin-top:2px}.fish-tag.rare{background:#ffe6a5}.battle{position:fixed;left:32px;right:32px;bottom:25px;display:grid;grid-template-columns:minmax(220px,300px) 1fr;gap:18px;align-items:end}.battle-info{background:#fff9e9ed;border-radius:23px;padding:22px}.battle-info h2{font-size:26px;margin:4px 0}.stars{color:#ad792f;letter-spacing:3px}.bar{height:12px;background:#dce3d1;border-radius:10px;overflow:hidden;margin-top:9px}.bar>i{display:block;background:#478c6b;height:100%;transition:width .6s;border-radius:10px}.bar.danger>i{background:#d38c51}.bar-label{font-size:12px;display:flex;justify-content:space-between;margin-top:18px}.question{border-radius:25px;background:#fffdf1f2;padding:24px 28px;box-shadow:0 12px 40px #133f4320}.question .overline{font-size:11px;letter-spacing:2px;font-weight:800;color:#648073}.question h2{font-size:clamp(27px,3vw,43px);letter-spacing:-1px;margin:10px 0 18px}.answers{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.answer{min-height:76px;background:#e9eddf;border:2px solid transparent;font-size:clamp(19px,2vw,28px);padding:15px 8px;white-space:nowrap}.answer:hover{border-color:#648f71}.answer.correct{background:#448568;color:white}.answer.wrong{background:#efd4b3;border-color:#d9a36c}.feedback{font-size:16px;color:#517362;min-height:26px;margin-top:12px}.catch{position:fixed;top:19%;left:50%;transform:translateX(-50%);text-align:center;background:#fff9e8ee;border-radius:28px;padding:30px 45px;min-width:360px;box-shadow:0 20px 80px #1c514638}.catch .medal{font-size:52px}.catch h2{font-size:40px;letter-spacing:-1px;margin:8px}.catch h3{font-size:25px;margin:14px}.catch .weight{font-size:28px}.catch .points{font-size:22px;color:#46835e;margin:15px}.catch button{margin-top:14px}#toast{position:fixed;z-index:30;top:26px;left:50%;transform:translateX(-50%);background:#fff6dd;border-radius:14px;padding:14px 25px;box-shadow:0 6px 30px #123c3820;opacity:0;pointer-events:none;transition:opacity .2s;max-width:80vw}.team-row{display:flex;align-items:center;gap:10px;margin:8px 0}.team-row button{min-width:56px}.team-row .name{flex:1;text-align:left}.swatch{border:3px solid white!important}.result-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.result-card{padding:20px;background:#e5ecdf;border-radius:20px;border-top:5px solid var(--team)}.result-card h3{margin:0 0 10px}.result-card strong{font-size:32px}.result-card p{font-size:14px;line-height:1.8;margin:8px 0 0}.session-note{text-align:center;font-size:15px;margin-bottom:20px}.quiet-button{background:#e5e9dc}.catalog{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.catalog>div{padding:12px;background:#e9edde;border-radius:13px;font-size:14px}.catalog small{display:block;color:#77907e;margin-top:6px}@media(min-width:1500px){button{min-height:60px}.question{padding:28px 36px}.answer{min-height:90px}.fish-tag{font-size:17px}.battle{bottom:40px;left:50px;right:50px}}@media(max-width:850px){header{inset:20px 22px auto}.home{left:7%;top:24%;width:85%}h1{font-size:64px;letter-spacing:-3px}.home p{font-size:16px}.hud{left:16px;right:16px;top:91px}.battle{left:15px;right:15px;bottom:15px;grid-template-columns:1fr;gap:8px}.battle-info{padding:12px 18px;display:grid;grid-template-columns:1fr 1fr;gap:2px 20px}.battle-info h2{font-size:21px}.battle-info .bar-label{margin-top:4px}.question{padding:18px}.question h2{font-size:30px;margin:8px 0 14px}.answer{font-size:23px;min-height:65px}.team-chip{padding:7px;max-width:145px}.team-chip b{font-size:14px}.scorebox{padding:10px 15px;gap:16px}.team-strip{gap:3px}.home-links{margin-top:7px}.unit-note{margin-top:25px}#lake-label{right:20px;bottom:22px}}@media(max-width:550px){header{inset:14px 15px auto}.brand-icon{width:40px;height:40px;line-height:40px}#brand{font-size:9px}#brand b{font-size:15px}.icon{width:48px;min-height:48px}.home{top:23%}h1{font-size:54px}.home p{max-width:275px}#shade{background:linear-gradient(90deg,#edf0daef,#edf0da88 65%,transparent)}#lake-label{display:none}.answers{grid-template-columns:repeat(2,1fr)}.answer{min-height:59px;font-size:24px}.question h2{font-size:28px}.feedback{font-size:14px;margin-top:8px}.battle-info{padding:10px 15px}.battle-info h2{font-size:19px}.hud{top:78px;gap:6px;flex-wrap:wrap}.scorebox b{font-size:20px}.team-strip{width:100%;order:2}.team-chip{flex:1}.team-chip b{font-size:12px}.steps{grid-template-columns:1fr;margin:18px 0}.step{padding:14px;display:grid;grid-template-columns:55px 1fr;align-items:center;text-align:left}.step .emoji{grid-row:span 2;margin:0;font-size:34px}.step h3,.step p{margin:4px}.catch{min-width:90%;padding:22px}.catch h2{font-size:34px}dialog{padding:22px}.dialog-head h2{font-size:25px}.dialog-footer{flex-direction:column}.dialog-footer button{width:100%}.result-grid{grid-template-columns:1fr}.catalog{grid-template-columns:repeat(2,1fr)}.instruction{bottom:20px;width:90%}.instruction b{font-size:18px}.home .unit-note small{display:none}.home .unit-note{margin-top:22px}}@media(max-height:650px) and (min-width:700px){.home{top:20%}h1{font-size:54px}.home p{margin:12px 0}.unit-note{display:none}.battle{grid-template-columns:210px 1fr;bottom:12px}.battle-info{display:block}.question{padding:16px}.question h2{font-size:28px}.answer{min-height:60px}.hud{top:85px}.catch{top:14%;padding:20px}.catch .medal{font-size:30px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Parallel expeditions retain the lake palette and original menu. */
body.playing{--panel-height:345px;background:#eef1e2}body.playing #world{height:calc(100dvh - var(--panel-height));bottom:auto}body.playing header{inset:16px 24px auto}body.playing #brand{font-size:9px}body.playing #brand b{font-size:15px}body.playing .brand-icon{width:38px;height:38px;line-height:38px;font-size:25px}body.playing .icon{width:46px;min-height:44px;height:44px;font-size:22px}body.playing header{z-index:12}.duel-hud{position:fixed;top:70px;left:24px;right:24px;display:grid;grid-template-columns:1fr auto 1fr;gap:18px;pointer-events:none}.player-score{justify-self:start;border-left:4px solid var(--team);background:#fbfaebeb;padding:9px 15px;border-radius:14px;min-width:175px;box-shadow:0 5px 25px #2d554714}.player-score.right{justify-self:end}.player-score>span{font-weight:800;font-size:14px}.player-score>b{display:block;font-size:23px;line-height:1.2;margin-top:4px}.player-score>b small{font-size:12px;font-weight:500}.player-score>small{font-size:10px;color:#617f6d}.expedition{text-align:center;background:#f7f8e9dd;border-radius:15px;padding:9px 18px;align-self:start}.expedition span{font-size:12px;letter-spacing:.5px;display:block;font-weight:700}.expedition b{font-size:18px;display:block;margin:4px}.expedition small{font-size:10px;color:#617f6d}.duel-panels{height:var(--panel-height);position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#b5c5b3;border-top:1px solid #d9e0ca;box-shadow:0 -10px 32px #2047360a;z-index:6}.lane{background:#fbf9ed;padding:15px 22px 12px;overflow-y:auto;overscroll-behavior:contain;border-top:4px solid var(--team);position:relative;scrollbar-width:thin}.lane-name{font-size:12px;letter-spacing:.4px;font-weight:800;color:var(--team)}.ready h2{font-size:24px;margin:14px 0 9px;letter-spacing:-.6px}.ready p{font-size:14px;color:#668072;line-height:1.5;max-width:430px;margin:0 0 12px}.choose-fish{min-height:48px;background:#e9edde;font-size:13px;padding:10px 16px}.upgrade-strip{border-top:1px solid #dfe5d4;margin-top:14px;padding-top:9px;display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;align-items:center}.upgrade-strip>span{font-size:11px;font-weight:700}.upgrade-strip>small{font-size:10px;color:#6b8374;grid-column:1/-1}.upgrade-strip>button{background:var(--team);color:#fffdf1;grid-column:1/-1;min-height:46px;font-size:13px}.mini-progress{height:7px;background:#e0e7d8;border-radius:10px;overflow:hidden}.mini-progress i{display:block;height:100%;transition:width .5s;border-radius:10px}.tension i{background:#c89658}.duel-battle-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.duel-battle-top strong{font-size:17px}.duel-battle-top strong small{color:#ad843d;font-size:10px;letter-spacing:1px}.duel-battle-top>span{font-size:11px;color:#607967;text-align:right}.battle-meters{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:7px}.battle-meters small{font-size:10px;color:#697f70;display:block;margin-bottom:4px}.math-question{font-size:clamp(21px,2.1vw,30px);letter-spacing:-.5px;line-height:1.2;min-height:38px;margin:10px 0}.duel-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.duel-answers .answer{min-height:53px;font-size:clamp(18px,1.7vw,24px);padding:9px 8px;white-space:normal;line-height:1.2;border-radius:12px}.duel-answers .answer:disabled{opacity:.82}.duel-answers .answer.correct{opacity:1}.lane-feedback{font-size:12px;line-height:1.3;margin:8px 0 6px;color:#557661;min-height:16px}.hint-actions{display:flex;gap:8px}.hint-actions button{min-height:46px;padding:9px 14px;background:#e9eddb;font-size:13px}.hint-actions button:last-child:not(:first-child){background:var(--team);color:white}.hint{background:#f5e5b7;color:#665329;border-radius:10px;margin-top:7px;padding:12px;font-size:17px;font-weight:700;line-height:1.5}.lane:has(.duel-answers) .upgrade-strip{margin-top:9px;padding-top:7px}.lane-celebration{padding:22px 0 8px;min-height:175px}.lane-celebration>span{font-size:14px;letter-spacing:1px;color:var(--team);font-weight:800}.lane-celebration h2{font-size:30px;letter-spacing:-1px;margin:14px 0}.lane-celebration p{font-size:20px;margin:10px 0}.lane-celebration b{color:var(--team);margin-left:18px}.lane-celebration small{font-size:13px;color:#6c8271}.fish-caption{position:fixed;transform:translate(-50%,-100%);pointer-events:none;font-size:11px;line-height:1.1;color:#204d43;text-shadow:0 1px 3px #f5ffe8,0 0 5px #f5ffe8;white-space:nowrap;z-index:3;text-align:center}.fish-caption small{display:block;color:#8d712f;letter-spacing:1px;font-size:8px;margin-top:2px}.fish-caption span{background:#f7f8e438;padding:1px 3px;border-radius:4px}.boat-handle{position:fixed;transform:translate(-50%,-50%);background:#fcf9e8db;border:2px solid var(--team);color:var(--team);border-radius:18px;min-height:49px;min-width:90px;padding:5px 10px;touch-action:none;z-index:4;box-shadow:0 4px 15px #23483a15}.boat-handle:active{transform:translate(-50%,-50%)}.boat-handle span{font-size:19px}.boat-handle small{display:block;font-size:10px}.fish-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:9px}.fish-choices button{min-height:48px;font-size:12px;padding:7px;background:#e5ebd9}.fish-choices small{display:block;font-size:9px;color:#987841}.boat-path{font-size:13px;background:#e8eddb;padding:14px;border-radius:14px}.duration-step{align-items:center;margin-top:8px}.duration-step span{flex:2;text-align:center;font-size:14px}.duration-step button{flex:1}.result-title{text-align:center}.result-title>span{font-size:42px}.result-title h2{font-size:30px;letter-spacing:-1px;margin:10px}.result-title p{font-size:14px;color:#6b8272}
@media(min-width:1500px){body.playing{--panel-height:410px}.lane{padding:20px 32px}.duel-answers .answer{min-height:66px;font-size:28px}.math-question{font-size:32px}.hint-actions button{min-height:54px;font-size:16px}.lane-feedback{font-size:15px}.duel-battle-top strong{font-size:22px}.ready h2{font-size:30px}.ready p{font-size:17px}.fish-caption{font-size:13px}.fish-caption small{font-size:9px}.boat-handle{min-width:112px;min-height:60px}.boat-handle small{font-size:12px}.player-score>span{font-size:18px}.player-score b{font-size:28px}}
@media(max-width:850px){body.playing{--panel-height:350px}.lane{padding:11px 13px}.duel-hud{top:68px;left:12px;right:12px;gap:6px}.player-score{padding:8px 10px;min-width:125px}.player-score>span{font-size:12px}.player-score b{font-size:20px}.expedition{padding:7px 10px}.expedition small{max-width:150px;display:block}.duel-battle-top{display:block}.duel-battle-top>span{display:block;text-align:left;margin-top:3px;font-size:10px}.duel-battle-top strong{font-size:15px}.math-question{font-size:23px;min-height:50px}.duel-answers .answer{font-size:20px;min-height:52px}.ready h2{font-size:23px}.fish-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.hint{font-size:15px}.lane-celebration h2{font-size:25px}.lane-celebration p{font-size:18px}}
@media(max-width:550px){body.playing{--panel-height:360px}body.playing header{inset:10px 12px auto}body.playing #toolbar{gap:5px}body.playing .icon{width:39px;min-height:40px;height:40px;font-size:20px}body.playing #brand span:not(.brand-icon){display:none}.duel-hud{top:58px;left:8px;right:8px;grid-template-columns:1fr 1fr;gap:5px}.player-score{min-width:0;width:100%;padding:7px 9px}.player-score>span{font-size:11px}.player-score b{font-size:18px}.player-score>small{font-size:8px}.expedition{position:absolute;top:-45px;left:45px;right:135px;padding:2px;background:transparent;text-align:left}.expedition span{font-size:9px;max-width:135px}.expedition b{font-size:13px;margin:1px 0}.expedition small{display:none}.lane{padding:9px 8px}.ready h2{font-size:20px;margin:10px 0}.ready p{font-size:12px;line-height:1.4}.choose-fish{font-size:12px;padding:8px}.duel-battle-top strong{font-size:13px}.duel-battle-top strong small{font-size:8px}.duel-battle-top>span{font-size:9px;min-height:22px}.battle-meters{gap:6px}.battle-meters small{font-size:8px}.math-question{font-size:19px;min-height:48px}.duel-answers{gap:5px}.duel-answers .answer{font-size:16px;min-height:52px;padding:7px 4px;border-radius:9px;overflow-wrap:anywhere}.hint-actions{gap:4px;flex-wrap:wrap}.hint-actions button{font-size:12px;min-height:46px;padding:8px;flex:1}.lane-feedback{font-size:11px}.hint{font-size:13px;padding:9px}.upgrade-strip{grid-template-columns:1fr;gap:4px}.upgrade-strip>span{font-size:10px}.upgrade-strip>small{font-size:8px}.upgrade-strip>button{font-size:11px;padding:8px}.lane-celebration{min-height:165px}.lane-celebration h2{font-size:23px}.lane-celebration p{font-size:16px}.lane-celebration b{display:block;margin:6px 0}.lane-celebration small{font-size:11px}.fish-caption{font-size:9px}.fish-caption small{font-size:7px}.boat-handle{min-width:73px;min-height:45px;padding:4px 7px}.boat-handle small{font-size:9px}.fish-choices{grid-template-columns:1fr}.result-grid{grid-template-columns:1fr}}
@media(max-height:620px) and (min-width:700px){body.playing{--panel-height:290px}.lane{padding:8px 16px}.math-question{min-height:28px;font-size:22px;margin:7px 0}.duel-answers .answer{min-height:48px;font-size:18px}.lane-feedback{margin:5px 0}.hint-actions button{min-height:44px;padding:7px}.duel-hud{top:60px}.player-score{padding:7px 10px}.player-score b{font-size:18px}.player-score>small{display:none}.expedition small{display:none}.battle-meters{margin-top:5px}.ready h2{margin:9px 0}.upgrade-strip{margin-top:8px}}

/* Single expedition: world first, compact controls, touch-sized choices. */
body.playing{--panel-height:305px}.duel-panels{grid-template-columns:1fr;max-width:1100px;left:50%;width:calc(100% - 32px);transform:translateX(-50%)}.lane{border:0!important}.duel-hud{grid-template-columns:1fr 1fr 1fr;align-items:start}.adventure-nav{display:flex;gap:6px;justify-content:end}.adventure-nav button{background:#f7f5e8eb;font-size:13px;padding:10px 14px}.duel-answers{grid-template-columns:repeat(4,1fr)}.upgrade-strip{display:flex;justify-content:space-between;gap:8px;margin-top:8px}.ready h2{margin:8px 0}.ready p{margin:5px 0}.album-grid,.equipment-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.album-grid article,.equipment-grid article{background:#eef1e4;padding:16px;border-radius:18px}.album-grid svg{width:130px;height:60px}.album-grid h3{margin:0}.album-grid p{font-size:14px}.equipment-grid p{font-size:14px;min-height:40px}.equipment-grid button{background:#d9e5ca;width:100%}.lake-map{display:grid;gap:12px;background:linear-gradient(130deg,#bed7ae,#8fbab6);padding:20px;border-radius:20px}.lake-map button{display:flex;align-items:center;gap:15px;text-align:left;background:#fbf8ed}.lake-map button span{font-size:30px}.lake-map button small{margin-left:auto}.lake-map .active{outline:3px solid #577f63}.fish-caption{font-size:10px}.lane .math-question{font-size:clamp(19px,2.1vw,27px)}
@media(max-width:750px){body.playing{--panel-height:365px}.duel-panels{width:100%;bottom:0;border-radius:20px 20px 0 0}.duel-hud{grid-template-columns:1fr 1fr;gap:5px;top:78px}.adventure-nav{grid-column:1/-1;justify-content:center}.adventure-nav button{min-height:42px;padding:6px 14px}.expedition{font-size:11px}.duel-answers{grid-template-columns:repeat(2,1fr)}.upgrade-strip{font-size:11px}.album-grid,.equipment-grid{grid-template-columns:1fr}.lake-map button{flex-wrap:wrap}.lake-map button small{margin-left:0}.lane{padding:12px 16px}.lane .ready h2{font-size:23px}.fish-choices{max-height:100px;overflow:auto}}

body.playing:not(.in-battle){--panel-height:220px}.boat-handle{padding:5px 10px;min-height:36px;font-size:11px}.boat-handle span{display:none}@media(max-width:750px){body.playing:not(.in-battle){--panel-height:245px}}

.expedition{padding:8px 12px;max-width:320px;justify-self:center}.expedition b{font-size:14px}.expedition small{font-size:10px}.fish-choices{max-height:95px;overflow:auto}.ready{padding:0}.duel-battle-top{min-height:22px}

.boat-handle{background:#fff9d93b!important;border:0!important;box-shadow:none!important;padding:3px 7px!important;min-height:36px!important;min-width:44px!important}.boat-handle small{font-size:11px!important;font-weight:500}.boat-handle.learned{opacity:.22}.boat-handle.dragging{opacity:0;pointer-events:none}
.shop-dialog{width:min(980px,96vw);max-width:980px}.shop-balance{position:sticky;top:-28px;z-index:2;background:#fbf8ed;padding:14px 0;display:flex;justify-content:space-between;gap:15px;align-items:center}.shop-balance strong{font-size:22px;white-space:nowrap}.shop-balance span{font-size:14px;max-width:400px}.shop-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 18px}.shop-tabs button{padding:10px 15px;background:#e8ede0;min-height:46px}.shop-tabs button[aria-pressed=true]{background:#24554b;color:white}.shop-items{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.shop-item{border:1px solid #d6dfd0;background:#f3f4e9;border-radius:18px;overflow:hidden}.shop-item.equipped{border:2px solid #4c7a5d}.shop-item img{width:100%;height:150px;object-fit:contain;background:#e6eddf}.shop-item>div{padding:15px}.shop-item h3{margin:7px 0;font-size:19px}.shop-item p{font-size:14px;line-height:1.5;min-height:42px}.shop-item small{font-size:12px}.shop-actions{display:flex;gap:8px;margin-top:12px}.shop-actions button{padding:10px 16px;background:#d2e1c7;flex:1}.shop-actions button:disabled{opacity:.6}.battle-clock{display:flex;align-items:center;gap:12px;font-size:12px;min-height:20px}.battle-clock[hidden]{display:none}.battle-clock progress{height:7px;width:100px;accent-color:#688879}.battle-clock.near-end{color:#986b2c}.battle-clock.near-end progress{accent-color:#bc9047}.location-notice{position:fixed;z-index:12;top:23%;left:50%;transform:translateX(-50%);background:#fbf8edf0;box-shadow:0 15px 55px #173e3a33;border-radius:20px;padding:22px 32px;text-align:center;pointer-events:none;animation:notice-in .5s ease}.location-notice small,.location-notice strong,.location-notice span{display:block}.location-notice strong{font-size:28px;margin:9px 0}.location-notice small{font-weight:800;letter-spacing:1px}.location-notice span{font-size:14px}.lake-map .new-zone{outline:3px solid #cfab55;animation:map-pulse 1.8s 3}@keyframes notice-in{from{opacity:0;translate:0 15px}to{opacity:1;translate:0 0}}@keyframes map-pulse{50%{background:#efdfa6}}body.playing.in-battle{--panel-height:335px}.lane{overflow:auto}.duel-battle-top span{font-size:12px}.lane .math-question{margin:8px 0} @media(max-width:750px){body.playing.in-battle{--panel-height:400px}.shop-items{grid-template-columns:1fr}.shop-balance{display:block;top:-20px}.shop-balance span{display:block;margin-top:8px}.shop-tabs{gap:5px}.shop-tabs button{padding:8px 11px;font-size:14px}.location-notice{width:90%;top:26%;padding:18px}.location-notice strong{font-size:24px}}

/* The HUD itself lets gestures pass through; its navigation remains clickable. */
.adventure-nav,.adventure-nav button{pointer-events:auto}.adventure-nav{position:relative;z-index:10}

.shop-message:empty{display:none}.shop-message{padding:12px 16px;border-radius:12px;background:#e1efda;color:#234e39;font-weight:650}.shop-actions button:not(:disabled){background:#315f4c;color:#fff;pointer-events:auto;min-height:46px}

#bait-dock{position:fixed;right:14px;top:165px;z-index:5;width:195px;background:#f7f5e8ed;border:1px solid #e5dfbc;border-radius:17px;padding:10px;box-shadow:0 4px 20px #30583b22}#bait-dock[hidden]{display:none}#bait-dock>strong{font-size:13px}#bait-dock button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;margin:5px 0;padding:9px;min-height:48px;border:1px solid #dab765;background:#fff5d5;box-shadow:0 0 9px #f5d66a44}#bait-dock button>span:first-child{font-size:23px}#bait-dock b,#bait-dock small{display:block;font-size:11px}#bait-dock .bait-active{background:#dbeccd;border-color:#6b9a53;opacity:1;color:#2c5036}#bait-dock>small{font-size:10px;line-height:1.3}@media(max-width:750px){#bait-dock{top:auto;bottom:calc(var(--panel-height,245px) + 8px);right:6px;width:157px;padding:6px}#bait-dock button{padding:5px;gap:4px;margin:3px 0;min-height:40px}#bait-dock button>span:first-child{font-size:18px}#bait-dock>small{display:none}}

#bait-dock{max-height:calc(100dvh - var(--panel-height,220px) - 185px);overflow-y:auto}@media(max-width:750px){#bait-dock{max-height:calc(100dvh - var(--panel-height,245px) - 170px)}}

.practice-group{border:1px solid #cbd9bd;border-radius:14px;padding:14px;margin:14px 0}.practice-group legend{font-weight:750;padding:0 7px}.practice-group .muted{font-size:13px}.all-units{margin-top:10px;font-size:12px}.question-domain{display:block;font-size:12px;font-weight:600;margin-bottom:6px;color:#537765}

/* Learning tools keep the existing lake palette and large touch targets. */
.number-answer{margin:12px 0}.number-answer label,.journal-task label{display:block;font-weight:700;margin-bottom:6px}.number-answer>div,.table-entry{display:flex;align-items:center;gap:10px}.number-answer input,.table-entry input{width:0;min-width:0;flex:1;border:2px solid #789a84;border-radius:12px;padding:12px;background:#fffdf2;color:#213f38;font:inherit;font-size:23px;font-weight:700}.number-answer input:focus,.table-entry input:focus{outline:3px solid #e3b65b;outline-offset:2px}.number-answer small{display:block;margin-top:7px;color:#4c6358}.practice-note{background:#e4edcc;padding:8px 12px;border-radius:10px;font-size:13px;color:#345b45}.hint p{margin:6px 0}.hint small{display:block;margin-top:8px}.hint button{padding:7px 10px}.catch-table-wrap{overflow:auto;margin:16px 0}.catch-table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}.catch-table caption{text-align:left;font-weight:700;padding:10px 0}.catch-table th,.catch-table td{text-align:left;padding:12px 10px;border-bottom:1px solid #c6d1bb}.catch-table thead{background:#e1e9d5}.catch-table tbody th{font-weight:600}.catch-table td:nth-child(2){text-align:center}.table-highlight{background:#ecf0cf}.journal-task{padding:18px;border:1px solid #b6c9aa;border-radius:16px;background:#f2f4e6;margin-bottom:18px}.journal-task h3{margin:8px 0 16px}.journal-task small{color:#486451}.empty-journal{padding:30px 10px;line-height:1.7}.table-entry{max-width:400px}.number-answer input:disabled{opacity:1;background:#ebeedf}.hint{max-height:220px;overflow:auto}@media(max-width:600px){.number-answer>div,.table-entry{gap:6px}.number-answer button{padding:12px}.catch-table th,.catch-table td{padding:10px 6px;font-size:13px}.journal-task{padding:12px}.hint{max-height:170px}}

.number-answer .primary,.table-entry .primary{min-width:105px;padding:12px 18px}.lane .math-question{position:sticky;top:-15px;z-index:2;background:#fbf9ed;padding:8px 0;box-shadow:0 5px 8px #fbf9ed}.hint-actions button{scroll-margin-top:90px}@media(max-width:750px){.lane .math-question{top:-12px;font-size:19px}.number-answer .primary,.table-entry .primary{min-width:84px;padding:12px;font-size:15px}}

/* Tablet controls: an inline keypad, never an OS keyboard covering the task. */
.game-keypad{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px!important;margin-top:8px}.game-keypad button{min-width:0;min-height:46px;padding:8px 4px;font-size:21px;background:#e1e9d5;border:1px solid #c7d5bc;border-radius:10px;touch-action:manipulation}.game-keypad button[data-digit=backspace],.game-keypad button[data-digit=clear]{background:#f1e3c5}.number-answer input[readonly],.table-entry input[readonly]{caret-color:transparent;cursor:default;user-select:none;-webkit-user-select:none}.number-answer{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}.number-answer>label{margin:0}.number-answer>small{margin:2px 0}.number-answer>div:not(.game-keypad){min-width:0}.number-answer .game-keypad{margin:2px 0}.journal-task .game-keypad{max-width:440px}body.playing.in-battle.has-number-answer{--panel-height:min(480px,calc(100dvh - 145px))}.has-number-answer .lane{scroll-padding-top:100px}.has-number-answer .math-question{font-size:clamp(18px,2vw,25px)}.has-number-answer .practice-note{margin:4px 0}.has-number-answer .upgrade-strip{margin-top:6px}.has-number-answer .number-answer{margin:6px 0}.has-number-answer .battle-meters{margin-top:4px}#world{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.boat-handle{touch-action:manipulation!important}
@media(min-width:760px){.number-answer{grid-template-columns:minmax(250px,1fr) minmax(320px,.85fr);column-gap:18px}.number-answer>.game-keypad{grid-column:2;grid-row:1 / span 3}.number-answer>label,.number-answer>small,.number-answer>div:not(.game-keypad){grid-column:1}body.playing.in-battle.has-number-answer{--panel-height:min(415px,calc(100dvh - 145px))}}
@media(max-width:370px){.game-keypad{grid-template-columns:repeat(4,minmax(0,1fr))}body.playing.in-battle.has-number-answer{--panel-height:min(550px,calc(100dvh - 125px))}}

.score-summary{text-align:center;padding:16px;background:#e9efdc;border-radius:18px}.score-summary h2{font-size:40px;margin:12px}.score-summary progress{width:min(100%,400px);accent-color:#477e62}.adventure-nav{flex-wrap:wrap}.player-score>small{display:block}
