:root{color-scheme:dark;--ink:#f3ecd3;--muted:#a8c2b5;--gold:#efd197;--edge:#3e625f}*{box-sizing:border-box}body{margin:0;background:#102e39;color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif;overscroll-behavior:none}button{font:inherit;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.48;cursor:default}button:focus-visible{outline:3px solid #ffe5a1;outline-offset:3px}.app{max-width:1240px;margin:auto;padding:0 24px}header{display:flex;justify-content:space-between;align-items:center;padding:18px 0 14px;border-bottom:1px solid var(--edge)}.brand{display:flex;gap:12px;align-items:center}.brand-icon{color:var(--gold);font-size:32px}.brand p{font-size:9px;letter-spacing:3px;margin:0;color:var(--muted)}h1{font-size:22px;letter-spacing:-1px;margin:3px 0 0}h1 span{font-weight:400;color:var(--gold);margin-left:7px}.head-actions{display:flex;gap:8px}.quiet{background:transparent;color:#bdd0bf;border:1px solid #4c6b65;padding:8px 11px;border-radius:5px;font-size:11px}.dashboard{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0}.harvest{display:flex;gap:14px;align-items:center}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted)}.harvest .eyebrow{letter-spacing:0;max-width:100px;word-break:keep-all}.harvest strong{font-size:28px;color:var(--gold);font-weight:500;white-space:nowrap}.harvest b{font-weight:600}.harvest small{font-size:13px;margin-left:4px}.counts{display:flex;gap:18px;align-items:center}.count{display:flex;gap:5px;align-items:center;font-size:12px}.count b{font-size:17px;color:var(--gold)}.count canvas{width:28px;height:28px;image-rendering:pixelated}.carry{display:grid;grid-template-columns:1fr auto;gap:2px 12px;font-size:11px;color:var(--muted);padding-left:18px;border-left:1px solid var(--edge)}.carry strong{font-size:16px;color:var(--ink);font-variant-numeric:tabular-nums}.carry small{grid-column:1/-1;font-size:9px}.game-wrap{width:min(100%,calc((100dvh - 356px)*1.66667));min-width:0;margin:auto}.stage{position:relative;border:1px solid #678b81;box-shadow:0 18px 60px #00192344;overflow:hidden;background:#155975}#game{display:block;width:100%;aspect-ratio:5/3;image-rendering:pixelated;touch-action:none;outline:none}.stage-top{position:absolute;left:15px;right:15px;top:14px;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none}.location{display:grid;gap:4px;background:#0e3443d6;padding:10px 13px;border:1px solid #75978c66;border-radius:4px;backdrop-filter:blur(5px)}.location span{font-size:10px;color:#c3d6c6}.location strong{font-size:20px;color:#fff1ce}.location small{font-size:10px;color:#c3d6c6}.map-toggle{pointer-events:auto;background:#0e3443d9;border:1px solid #75978c77;border-radius:4px;color:#d9e4cf;font-size:10px;padding:7px 10px}.map-panel{position:absolute;right:15px;top:49px;width:162px;background:#0e3040d9;border:1px solid #75978c77;border-radius:3px;padding:6px}.map-panel canvas{width:100%;display:block;image-rendering:pixelated}.map-panel span{font-size:8px;text-align:center;display:block;color:#bad0bf;margin-top:3px}.home-guide{position:absolute;right:15px;bottom:66px;background:#0c3042c9;color:#f7dda6;padding:7px 10px;font-size:11px;border-radius:3px}.notice{position:absolute;bottom:13px;left:50%;transform:translateX(-50%);text-align:center;font-size:12px;color:#f6edcf;background:#0e3042e0;border:1px solid #68877b88;border-radius:4px;padding:9px 15px;max-width:calc(100% - 30px);width:max-content;pointer-events:none}.overlay{position:absolute;inset:0;background:#082f42a6;display:flex;justify-content:center;align-items:center;backdrop-filter:blur(3px)}.intro-card{background:#123b46ed;border:1px solid #8aa48b;max-width:460px;width:calc(100% - 32px);max-height:calc(100% - 24px);overflow:auto;text-align:center;padding:25px 30px;box-shadow:8px 8px 0 #06263370}.intro-card h2{font-size:26px;color:#f8dca4;margin:12px 0}.intro-card p{font-size:13px;line-height:1.9;color:#c0d4c2}.steps{border-block:1px solid #496b64;padding:12px;display:grid;gap:8px;font-size:12px;text-align:left}.steps b{color:var(--gold);margin-right:12px}.intro-card .fine{font-size:10px;color:#a6c1b1;line-height:1.8}.primary{background:var(--gold);border:1px solid #fff0c7;color:#173b42;padding:12px 25px;font-weight:800;margin-top:4px;border-radius:3px}.loading{position:absolute;inset:0;background:#123c49;display:grid;place-items:center;color:#efd197;z-index:4;font-size:14px}.controls{display:flex;justify-content:space-between;gap:14px;align-items:center;background:#102e39f7;position:sticky;bottom:0;z-index:5;padding:12px 0 max(12px,env(safe-area-inset-bottom))}.dpad{display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,30px);gap:4px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.dpad button{background:#244b53;border:1px solid #60847a;color:#e9e6c6;border-radius:4px;touch-action:none;-webkit-touch-callout:none}.dpad button.pressed,.dpad button:active{background:#668f7a}.dpad [data-dir=up]{grid-column:2;grid-row:1}.dpad [data-dir=left]{grid-column:1;grid-row:2}.dpad [data-dir=right]{grid-column:3;grid-row:2}.dpad [data-dir=down]{grid-column:2;grid-row:3}.control-caption{display:grid;gap:6px;font-size:11px;max-width:330px;text-align:center;color:var(--muted)}.control-caption strong{font-size:12px;font-weight:500;color:#d2dfc9}.control-caption span{font-size:9px}.action-buttons{display:flex;gap:8px;align-items:center}.action-buttons button{border-radius:4px}.collect{min-width:120px;background:#edcc8e;color:#173d42;border:1px solid #ffe6af;font-weight:800;padding:13px 17px}.collect small{display:block;font-size:8px;letter-spacing:2px;margin-top:3px}.secondary{background:#27515a;border:1px solid #65877c;color:#d9e2c9;padding:12px;font-size:12px}.finish{background:none;color:#a6c1b2;font-size:10px;border:1px solid #42675f;padding:10px 8px}footer{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #42675f;padding:10px 0 15px;color:#8dab9d;font-size:9px}.hidden{display:none!important}.result-counts{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;font-size:12px;color:#d8e1c8}.result-counts b{color:var(--gold);margin-left:5px}@media(max-width:800px){.counts{gap:8px}.count{font-size:10px}.count b{font-size:14px}.count canvas{width:22px;height:22px}.control-caption{display:none}.carry small{display:none}.app{padding:0 14px}.game-wrap{width:100%}.harvest{gap:6px}.harvest .eyebrow{font-size:9px}.dashboard{gap:8px}.carry{padding-left:8px;gap:2px 6px}}@media(max-width:560px){header{padding:12px 0 10px}.brand-icon{font-size:23px}.brand{gap:7px}h1{font-size:17px}.brand p{font-size:7px;letter-spacing:2px}.quiet{font-size:9px;padding:7px}.head-actions{gap:4px}.dashboard{flex-wrap:wrap;padding:9px 0}.counts{order:3;justify-content:space-between;width:100%;gap:4px}.carry small{display:block}.harvest .eyebrow{max-width:none}.harvest strong{font-size:24px}.carry{font-size:9px}.carry strong{font-size:13px}.carry small{font-size:8px}.game-wrap{width:100%}.stage-top{left:8px;right:8px;top:8px}.location{padding:6px 8px;gap:2px}.location strong{font-size:14px}.location span,.location small{font-size:8px}.map-toggle{font-size:8px;padding:5px}.map-panel{width:100px;top:35px;right:8px;padding:4px}.map-panel span{display:none}.notice{font-size:9px;padding:6px 9px;bottom:7px}.home-guide{right:8px;bottom:42px;font-size:8px;padding:4px 6px}.controls{gap:7px;padding-top:8px}.dpad{grid-template-columns:repeat(3,34px);grid-template-rows:repeat(3,27px);gap:3px}.action-buttons{gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:230px}.collect{min-width:88px;padding:10px;font-size:12px}.secondary{font-size:10px;padding:10px 8px}.finish{font-size:9px;padding:7px 8px}.intro-card{padding:14px 16px}.intro-card h2{font-size:20px}.intro-card p{font-size:11px;margin:8px 0}.intro-card .eyebrow{font-size:8px}.steps{padding:7px;font-size:10px;gap:4px}.intro-card .fine{font-size:9px}.primary{padding:10px 17px;font-size:12px}footer{font-size:8px}}

.round-hud{display:flex;align-items:center;gap:22px;padding:10px 14px;margin:0 0 12px;background:#1b414b;border:1px solid #527267;border-radius:4px;font-size:12px}.round-hud>strong{color:#eacf99;font-size:14px}.round-hud>div{display:flex;align-items:center;gap:10px}.round-hud span{color:#adc6b7;font-size:10px}.round-hud b{font-size:17px;color:#f4dfac;font-variant-numeric:tabular-nums}.round-hud b.urgent{color:#f6a889}.round-hud .boost-state{margin-left:auto;color:#acd9c5}.round-reward{background:#28544f;border:1px solid #6e9781;padding:12px;color:#f7d99e;font-size:17px;margin-bottom:12px}.round-reward:empty{display:none}#roundMessage{white-space:pre-line}@media(max-width:650px){.round-hud{gap:8px;padding:8px;flex-wrap:wrap;font-size:10px}.round-hud>strong{font-size:12px}.round-hud>div{gap:5px}.round-hud span{font-size:9px}.round-hud b{font-size:14px}.round-hud .boost-state{width:100%;margin:0}.round-hud{margin-bottom:8px}}

.round-hud{flex-wrap:wrap;gap:12px 20px}.round-hud .dive-clock{border-left:1px solid #557c73;padding-left:15px}.round-hud .dive-clock b{color:#b8eadb}.round-hud .dive-clock b.urgent{color:#f6a889}.round-reward{line-height:1.8;font-size:15px}@media(max-width:650px){.round-hud{gap:8px 10px}.round-hud .dive-clock{padding-left:8px}}

.rank-celebration .intro-card,.rank-card{border:2px solid #e6c687;box-shadow:0 0 48px #edcf8b35}.rank-celebration h2{color:#ffe2a0;font-size:clamp(24px,3.2vw,36px)}.challenge-actions{display:flex;justify-content:center;gap:14px;margin-top:24px}.challenge-actions button{min-width:110px}.round-reward{line-height:1.8}
