:root{color-scheme:light;--ink:#325b62;--muted:#7d9998;--mint:#4d9390;--line:#d2e3db;--cream:#fffdf5;font-family:ui-rounded,"PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none;background:#eaf2eb;color:var(--ink)}*{box-sizing:border-box}body{margin:0;min-width:320px;line-height:1.7;background:radial-gradient(ellipse at 92% 8%,#cce9e880,transparent 45%),radial-gradient(ellipse at 5% 50%,#e5ebd480,transparent 45%)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;min-height:44px;padding:10px 18px;border:1px solid var(--line);border-radius:13px;color:var(--ink);background:#f9fcf4;font-size:12px;transition:background .16s,transform .16s,box-shadow .16s}button:hover:not(:disabled){background:#e8f3e9;transform:translateY(-2px)}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #b88356;outline-offset:4px}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}.primary{background:#4d9390;color:#fff;border-color:#4d9390;font-weight:700;box-shadow:0 4px 0 #387571}.primary:hover{background:#377c78!important}header{max-width:1190px;margin:auto;padding:28px 35px;display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:12px;color:#72918e}.brand{display:flex;align-items:center;gap:10px;font-weight:700}.brand span{display:grid;place-items:center;font-size:28px;background:#d4e8df;border:1px solid #b9d4c9;border-radius:11px;width:31px;height:31px;line-height:1}nav{display:flex;gap:25px}main{max-width:1080px;margin:auto;padding:0 30px 24px}.intro{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:25px 12px 29px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:2.7px;color:#84a09a;margin:0 0 12px}.intro h1{font-size:clamp(34px,5vw,54px);letter-spacing:3px;line-height:1.25;margin:0 0 18px;font-weight:850}.intro h1 span{color:#6aa5a0}.intro p:not(.eyebrow){margin:0;font-size:14px;line-height:1.9;color:#7b9996}.hero-ocean{width:320px;max-width:40%;padding-right:10px}.hero-ocean svg{display:block;width:100%;height:auto}.setup{padding:30px;border:1px solid #d5e4d7;border-radius:26px;background:#fffdf5eb;box-shadow:0 20px 45px #37665b0b}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.section-heading h2{font-size:23px;letter-spacing:1px;margin:0}.section-heading .eyebrow{margin-bottom:5px;font-size:8px}.total-stars{font-size:13px;color:#9b8652;background:#f6efdb;border-radius:24px;padding:7px 15px;font-weight:700;white-space:nowrap}.mode-tabs{display:flex;gap:5px;padding:4px;background:#ecf1e7;border-radius:12px;max-width:460px;margin:24px 0 8px}.mode-tabs button{flex:1;background:none;border:0;min-height:38px;padding:8px 12px;color:#8c9e8f;font-size:11px}.mode-tabs button[aria-pressed=true]{background:#fffdf6;box-shadow:0 3px 8px #456a4810;color:#568879;font-weight:650}.mode-note{font-size:11px;color:#8b9e90;margin:0 0 20px}.sea-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.sea-card{padding:0;overflow:hidden;border:1px solid #d5e5dc;background:#edf5ed;text-align:left;border-radius:18px;position:relative}.sea-card:nth-child(2){background:#e9f0df}.sea-card:nth-child(3){background:#e3edf0}.sea-card[aria-pressed=true]{border-color:#669f8d;box-shadow:0 0 0 3px #79aa9625}.sea-card[aria-pressed=true]:after{content:"本次目的地";position:absolute;right:11px;top:11px;background:#fffdf0e6;font-size:9px;color:#6b9382;padding:4px 8px;border-radius:15px}.sea-card svg{display:block;width:100%;height:134px}.sea-info{display:flex;flex-direction:column;padding:13px 18px 17px}.sea-number{font-size:8px;letter-spacing:2px;color:#92aaa0}.sea-info strong{font-size:20px;letter-spacing:1px;font-weight:700}.sea-info em{font-size:10px;font-style:normal;color:#839c94;margin:3px 0 8px}.sea-info small{font-size:10px;color:#6d9585}.sea-info b{font-size:17px;color:#b59a5a;letter-spacing:3px;line-height:1.6;font-weight:400}.sea-card:disabled .sea-info strong{color:#9eaca2}.setup-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px dashed #d7e3d4;padding-top:24px;margin-top:25px}.setup-footer p{font-size:11px;color:#8b9e90;margin:0}.setup-footer button{white-space:nowrap}.game-panel{border:1px solid #cddfd6;background:#fffdf5;border-radius:20px;overflow:hidden;box-shadow:0 15px 45px #4164590a}.game-top{display:flex;align-items:center;justify-content:space-between;padding:16px 19px;gap:14px}.game-top .quiet{background:none;border:0;padding:5px 0;color:#8a9e94;font-size:11px}.game-top>div:not(.top-buttons){text-align:center}.game-top span{font-size:9px;letter-spacing:2px;color:#94a99e}.game-top h2{font-size:20px;margin:0}.top-buttons{display:flex;gap:7px}.top-buttons button{font-size:10px;padding:7px 11px;min-height:35px}.mission{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:13px;margin:0 22px 15px;align-items:center}.mission>div{padding-left:18px;border-left:1px solid #e1eadd;display:flex;flex-direction:column;align-items:center}.mission>div:first-child{padding-left:0;border-left:0;align-items:flex-start}.mission span{font-size:9px;color:#8ca297}.mission strong{font-size:21px;font-variant-numeric:tabular-nums;font-weight:650}.progress{height:5px;background:#e4eddd;width:100%;border-radius:8px;overflow:hidden}.progress i{height:100%;display:block;background:#8fbaa1;width:0;transition:width .2s}.players{display:flex;gap:14px;margin:0 22px 15px}.player-stat{flex:1;min-width:0;padding:9px 13px;background:#f4eee0;border:1px solid #eee3cc;border-radius:11px}.player-stat:nth-child(2){background:#e8f2f1;border-color:#d4e6e4}.player-stat.fallen{opacity:.6}.player-label{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;font-weight:650;color:#9d855b}.player-stat:nth-child(2) .player-label{color:#6e9da3}.hearts{color:#d89886;font-size:14px;letter-spacing:2px;white-space:nowrap}.player-detail{display:flex;gap:12px;font-size:9px;color:#9f9e86;margin:2px 0 5px;justify-content:space-between}.stamina-track{height:4px;background:#e1e3d3;border-radius:4px;overflow:hidden}.stamina-track i{display:block;background:#c7ba82;width:100%;height:100%}.player-stat:nth-child(2) .stamina-track i{background:#93bdc3}.ocean-shell{position:relative;line-height:0;background:#5d9aaf}canvas{width:100%;height:auto;aspect-ratio:1000/600;display:block;object-fit:contain;touch-action:none;outline:none}.sea-toast{position:absolute;top:10%;left:0;width:100%;text-align:center;color:#fff4cd;text-shadow:0 2px 10px #325967;font-size:clamp(15px,2.8vw,28px);font-weight:750;line-height:1.4;pointer-events:none;letter-spacing:2px}.game-message{text-align:center;color:#7d9990;font-size:11px;margin:12px 13px;min-height:19px}.touch-controls{display:flex;align-items:center;justify-content:space-between;max-width:620px;padding:0 24px 20px;margin:auto;gap:23px;user-select:none;-webkit-user-select:none}.joystick{width:100px;height:100px;background:#e3ece1;border:1px solid #cbddd2;border-radius:50%;position:relative;touch-action:none;display:grid;place-items:center;flex:none;user-select:none;-webkit-user-select:none}.joystick>span{font-size:13px;color:#a1b6a4;text-align:center;line-height:1.7}.joystick i{position:absolute;width:40px;height:40px;border-radius:50%;background:#90b5a4;border:3px solid #e7f2e5;box-shadow:0 4px 5px #567d7326;pointer-events:none}.touch-hint{display:flex;flex-direction:column;text-align:center;gap:5px}.touch-hint b{font-size:12px;font-weight:500;color:#86a08f}.touch-hint span{font-size:9px;color:#a0af9c}.dash-button{flex:none;width:75px;height:75px;border-radius:50%;background:#d4e9df;border-color:#b8d8cb;font-size:25px;line-height:1.1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;touch-action:none;user-select:none;-webkit-user-select:none}.dash-button span{font-size:11px;color:#6a9585}.dash-button.held{background:#a1caba;transform:scale(.96)}.duo-hint{font-size:11px;text-align:center;color:#8b9f92;margin:10px 20px 22px}.guide{display:grid;grid-template-columns:repeat(3,1fr);gap:35px;padding:33px 10px 27px}.guide article>span{font-size:10px;color:#9aaf97;letter-spacing:1px}.guide h3{font-size:15px;margin:8px 0;font-weight:650;color:#6f9383}.guide p{font-size:11px;color:#8eaa99;line-height:1.9;margin:0}footer{border-top:1px solid #cfded2;padding-top:22px;text-align:center;font-size:10px;color:#97ae9a}footer p{font-size:12px;color:#769782;margin:0 0 8px;letter-spacing:1px}footer span{display:block}footer a{display:inline-block;margin-top:8px;color:#8ca68c}dialog{width:min(440px,calc(100% - 28px));border:1px solid #cadfd3;background:#fffdf3;border-radius:26px;padding:29px;text-align:center;color:var(--ink);box-shadow:0 30px 100px #1d4d5145}dialog::backdrop{background:#365d6266;backdrop-filter:blur(6px)}.dialog-mark{font-size:47px;background:#e4eee0;width:79px;height:79px;line-height:79px;border-radius:50%;margin:0 auto 18px;color:#8db3a2}dialog h2{font-size:24px;margin:8px 0 12px}dialog>.eyebrow{font-size:8px;letter-spacing:2px}#dialog-copy{font-size:13px;color:#8b9f8d;line-height:1.9;white-space:pre-line}.dialog-actions{display:flex;flex-direction:column;gap:10px;margin-top:24px}.result-stars{font-size:32px;letter-spacing:8px;color:#ccb16b}.help-content{text-align:left;border-top:1px dashed #d4e3d4;margin-top:17px;padding-top:7px}.help-content p{font-size:11px;color:#8b9f91;line-height:1.9;margin:10px 0}.help-content b{color:#5f8b79}.noscript{text-align:center;background:#ffe8ca;padding:20px}[hidden]{display:none!important}
@media(max-width:760px){header{padding:23px 23px}main{padding:0 20px 20px}.intro{padding:20px 5px 25px}.hero-ocean{width:260px}.intro h1{font-size:44px}.intro p:not(.eyebrow){font-size:12px}.setup{padding:22px}.sea-list{gap:12px}.sea-card svg{height:112px}.sea-info{padding:10px 12px 14px}.sea-info strong{font-size:17px}.sea-info em{font-size:9px}.sea-info small{font-size:9px}.setup-footer{gap:15px}.setup-footer p{font-size:10px}.setup-footer button{font-size:11px;padding:10px 15px}.guide{gap:23px;padding:27px 5px 23px}.guide h3{font-size:13px}.guide p{font-size:10px}.game-top{padding:13px 14px;gap:8px}.game-top h2{font-size:17px}.top-buttons{gap:5px}.top-buttons button{padding:6px 9px}.mission{margin:0 17px 13px}.players{margin:0 17px 13px}.section-heading h2{font-size:20px}.game-top .quiet{font-size:10px}}
@media(max-width:500px){header{padding:17px 15px;font-size:10px}.brand{gap:7px}.brand span{width:27px;height:27px;font-size:25px}nav{gap:15px}main{padding:0 12px 18px}.intro{padding:20px 4px 22px;gap:6px}.intro h1{font-size:35px;letter-spacing:1px;margin-bottom:13px}.intro .eyebrow{font-size:7px;letter-spacing:1.2px;margin-bottom:10px}.intro p:not(.eyebrow){font-size:10px;line-height:1.9}.hero-ocean{width:150px;max-width:37%;padding:0}.setup{padding:17px 12px;border-radius:20px}.section-heading{gap:7px}.section-heading h2{font-size:17px;letter-spacing:0}.section-heading .eyebrow{font-size:7px;letter-spacing:1.4px}.total-stars{font-size:11px;padding:5px 10px}.mode-tabs{margin:19px 0 8px}.mode-tabs button{font-size:10px;padding:8px 4px}.mode-note{font-size:9px;margin-bottom:16px}.sea-list{gap:8px}.sea-card{border-radius:12px}.sea-card svg{height:82px}.sea-info{padding:8px 7px 12px}.sea-info strong{font-size:14px;letter-spacing:0}.sea-info em{font-size:8px;line-height:1.5;min-height:25px}.sea-number{font-size:7px;letter-spacing:1px}.sea-info small{font-size:8px;line-height:1.7}.sea-info b{font-size:14px;letter-spacing:1px;margin-top:3px}.sea-card[aria-pressed=true]:after{font-size:7px;top:7px;right:6px;padding:3px 5px}.setup-footer{flex-direction:column;gap:14px;padding-top:18px;margin-top:18px}.setup-footer p{font-size:9px;text-align:center}.setup-footer button{width:100%;font-size:12px}.guide{grid-template-columns:1fr;gap:19px;padding:25px 5px}.guide article{border-left:1px solid #c6dacc;padding-left:14px}.guide h3{font-size:14px;margin:4px 0}.guide p{font-size:10px}.guide article>span{font-size:9px}.game-panel{border-radius:15px}.game-top{flex-wrap:wrap;padding:10px 11px;gap:5px}.game-top>div:not(.top-buttons){order:-1;width:100%;margin-bottom:4px}.game-top h2{font-size:17px}.game-top span{font-size:8px}.top-buttons button{font-size:9px;min-height:32px;padding:5px 9px}.mission{gap:6px;margin:0 11px 12px}.mission>div{padding-left:7px}.mission strong{font-size:16px}.mission span{font-size:8px}.players{margin:0 10px 10px;gap:7px}.player-stat{padding:7px 9px}.player-label{font-size:9px;gap:5px}.hearts{font-size:12px;letter-spacing:1px}.player-detail{font-size:8px;gap:5px}.game-message{font-size:9px;margin:10px 8px;min-height:15px}.touch-controls{padding:0 15px 15px;gap:12px}.joystick{width:83px;height:83px}.joystick i{width:34px;height:34px}.joystick>span{font-size:11px}.touch-hint b{font-size:9px}.touch-hint span{font-size:8px}.dash-button{width:62px;height:62px;font-size:22px}.dash-button span{font-size:10px}.duo-hint{font-size:9px;margin:9px 12px 16px}footer{font-size:8px}footer p{font-size:10px}.sea-toast{font-size:15px;letter-spacing:1px}dialog{padding:23px 20px}dialog h2{font-size:22px}.help-content p{font-size:10px}}
@media(max-width:350px){.intro h1{font-size:31px}.intro p:not(.eyebrow){font-size:9px}.hero-ocean{max-width:34%}.touch-hint b{font-size:8px}.touch-hint span{font-size:7px}.sea-info strong{font-size:12px}.sea-info em{font-size:7px}.sea-card svg{height:72px}.player-detail{font-size:7px}}
@media(orientation:landscape) and (max-height:520px){.game-panel canvas{max-height:64vh;width:auto;max-width:100%;margin:auto}.ocean-shell{background:#5c98ab}.game-top{padding:6px 12px}.game-top>div:not(.top-buttons){order:0;width:auto;margin:0}.mission{margin-bottom:8px}.players{margin-bottom:8px}.game-message{margin:7px}.touch-controls{padding-bottom:10px}.joystick{width:66px;height:66px}.joystick i{width:30px;height:30px}.dash-button{width:56px;height:56px}.intro{padding-top:12px}.touch-hint span{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Give the live sea the viewport instead of the surrounding introduction. */
body:has(#game-panel:not([hidden]))>header,body:has(#game-panel:not([hidden])) .intro,body:has(#game-panel:not([hidden])) .guide,body:has(#game-panel:not([hidden])) main>footer{display:none}
body:has(#game-panel:not([hidden])) main{padding-top:8px}.game-top{padding:7px 15px}.game-top h2{font-size:17px}.mission{margin-bottom:8px}.mission strong{font-size:18px}.players{margin-bottom:8px}.player-stat{padding:4px 9px}.player-detail{margin:0 0 3px}
.game-panel canvas{width:min(100%,calc((100dvh - 310px)*1.666667));height:auto;max-height:none;margin:auto}.game-message{margin:6px 8px}.touch-controls{padding-bottom:10px}.joystick{width:72px;height:72px}.dash-button{width:62px;height:62px}
@media(max-width:500px){.game-top{padding:7px 10px}.game-panel canvas{width:100%}.touch-hint{display:none}.touch-controls{padding-inline:28px}}
@media(orientation:landscape) and (max-height:520px){body:has(#game-panel:not([hidden])) main{padding:0 6px}.game-top{height:39px;padding:2px 10px}.game-top span{display:none}.game-top h2{font-size:14px}.game-top>div:not(.top-buttons){order:0;width:auto;margin:0}.top-buttons button{min-height:30px}.mission{margin:0 12px 3px}.mission span{font-size:7px}.mission strong{font-size:12px}.players{margin:0 12px 4px}.player-stat{padding:1px 8px}.player-label{font-size:8px}.player-detail{display:none}.stamina-track{height:2px}.game-panel canvas{width:min(100%,calc((100dvh - 195px)*1.666667));height:auto;max-height:none}.game-message{display:none}.touch-controls{padding:4px 20px;max-width:670px}.touch-hint{display:none}.joystick{width:62px;height:62px}.dash-button{width:54px;height:54px}.duo-hint{margin:6px;font-size:8px}}
