:root{color:#eceddb;font-synthesis:none;--gold:#efc477;--ink:#123c48;background:#061e28;font-family:Microsoft YaHei,PingFang SC,sans-serif}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button{cursor:pointer;color:inherit;background:#153d47;border:1px solid #ffffff26;border-radius:5px;padding:10px 17px;transition:background .15s,transform .1s,border-color .15s}button:hover{background:#28606a;border-color:#92c9c4}button:active{background:#367b80;transform:translateY(2px)}button:disabled{opacity:.4;cursor:default}button.primary{background:var(--gold);color:#183945;border-color:var(--gold);font-weight:700}button.primary:hover{background:#ffdfa2}button.small{padding:6px 11px;font-size:12px}a{color:inherit;text-decoration:none}#app{max-width:1600px;margin:auto;padding:0 36px}header{border-bottom:1px solid #c7e3dc22;justify-content:space-between;align-items:center;height:88px;display:flex}.brand{color:var(--gold);align-items:center;gap:12px;font-size:25px;display:flex}.brand b{letter-spacing:4px;font-size:20px}.brand span{letter-spacing:2px;color:#95b2b6;margin-left:10px;font-size:9px}nav{align-items:center;gap:16px;font-size:12px;display:flex}#day-label{color:#acc0be;margin-right:20px}nav button{background:0 0;border:0;padding:8px}#stage{aspect-ratio:12/7;background:#0c4657;border:1px solid #4a788075;border-radius:8px;width:100%;max-height:calc(100dvh - 136px);margin:20px auto 0;position:relative;overflow:hidden}#game,#hud,#panels,#touch{position:absolute;inset:0}canvas{image-rendering:pixelated;display:block;width:100%!important;height:100%!important}#hud,#panels,#touch{pointer-events:none}#panels>*,#hud button,#touch>*{pointer-events:auto}footer{color:#718e96;letter-spacing:1px;justify-content:space-between;align-items:center;height:38px;font-size:10px;display:flex}footer i{background:#91ba8a;border-radius:50%;width:5px;height:5px;margin-right:7px;display:inline-block}.panel{background:#0a2c37f2;border:1px solid #83aaa25c;border-radius:7px;padding:26px;position:absolute;box-shadow:0 16px 50px #03192366}.morning{width:36%;max-width:470px;top:13%;left:5%}.eyebrow{letter-spacing:3px;color:#efc477;margin:0 0 20px;font-size:10px}h1{letter-spacing:5px;margin:0 0 17px;font-size:clamp(28px,4.2vw,60px);line-height:1.2}h2{letter-spacing:2px;margin:0 0 14px;font-size:27px}p{color:#a7c5c7;font-size:13px;line-height:1.9}.morning .lead{color:#d2e1d8;font-size:14px}.rule{background:#76a4a434;height:1px;margin:22px 0}.meta{color:#a6c4c5;justify-content:space-between;align-items:center;margin:12px 0;font-size:12px;display:flex}.meta strong{color:#f0deaa;font-weight:400}.actions{flex-wrap:wrap;gap:8px;margin-top:20px;display:flex}.ship-label{text-align:right;pointer-events:none;position:absolute;bottom:9%;right:7%}.ship-label strong{letter-spacing:4px;font-size:24px}.ship-label p{font-size:11px}.hud-top{justify-content:space-between;align-items:start;display:flex;position:absolute;top:20px;left:22px;right:22px}.status{background:#062c39d9;border:1px solid #8ac6bd33;border-radius:5px;min-width:215px;padding:13px 18px}.status small{color:#9ec3c6;letter-spacing:2px;font-size:9px}.status b{color:#edf3dd;font-size:24px}.status p{margin:5px 0;font-size:11px}.meter{background:#37616b;height:5px;margin-top:9px}.meter>i{background:#a8dfcf;width:100%;height:100%;transition:width .15s;display:block}.hud-right{text-align:right;align-items:start;gap:10px;display:flex}.depth{background:#052f3ed9;border-radius:5px;padding:11px 18px}.depth b{color:#eff2d9;font-size:25px}.depth span{color:#a7c3c5;font-size:10px;display:block}.hint{text-align:center;white-space:nowrap;color:#c3d9d5;background:#082e3dcf;border:1px solid #62949c66;border-radius:4px;padding:11px 20px;font-size:11px;position:absolute;bottom:22px;left:50%;transform:translate(-50%)}.hint kbd{color:#fff;background:#335560;border-radius:3px;margin:0 4px;padding:3px 6px}.area-label{text-align:center;letter-spacing:4px;color:#e5efdf;font-size:12px;position:absolute;top:23px;left:50%;transform:translate(-50%)}.area-label small{letter-spacing:2px;color:#9dcccc;margin-top:7px;font-size:9px;display:block}#toast{color:#173d47;opacity:0;pointer-events:none;z-index:8;background:#f1d49a;border-radius:5px;padding:12px 22px;font-size:13px;transition:opacity .2s;position:absolute;top:20%;left:50%;transform:translate(-50%)}#toast.show{opacity:1}.wide{inset:7% 8%;overflow:auto}.grid{grid-template-columns:repeat(5,1fr);gap:12px;display:grid}.card{background:#153d47;border:1px solid #759b9955;border-radius:5px;padding:16px}.card h3{font-size:15px}.card p{font-size:11px}.card .number{color:#efd79a;font-size:28px}.card.selected{background:#2d514f;border-color:#efc477}.summary{gap:30px;padding:12px 0 20px;display:flex}.summary b{color:#efcf8a;font-size:30px;display:block}.summary span{color:#9bb8b9;font-size:11px}table{border-collapse:collapse;width:100%;font-size:12px}td,th{text-align:left;border-bottom:1px solid #83a8a72b;padding:10px}th{color:#a6c0bf;font-weight:400}select{color:#e5e9d7;background:#173e47;border:1px solid #718f8a;border-radius:4px;padding:5px}#modal:empty{display:none}#modal{z-index:20;background:#021721b5;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.dialog{background:#0b303d;border:1px solid #8aaba380;border-radius:8px;width:min(850px,95vw);max-height:90dvh;padding:28px;overflow:auto}.dialog-head{justify-content:space-between;align-items:center;display:flex}.journal{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}.journal article{background:#123e49;padding:15px}.journal h3{font-size:14px}.journal p{margin:6px 0;font-size:12px}.locked{opacity:.4}.setting{justify-content:space-between;gap:15px;margin:18px 0;display:flex}.joystick{touch-action:none;background:#0b324a66;border:2px solid #b9dedb66;border-radius:50%;width:110px;height:110px;position:absolute;bottom:22px;left:24px}.joystick i{pointer-events:none;background:#d5e6d788;border-radius:50%;width:42px;height:42px;position:absolute;top:32px;left:32px}.touch-actions{gap:12px;display:flex;position:absolute;bottom:22px;right:24px}.touch-actions button{touch-action:none;background:#134856cc;border-radius:50%;min-width:62px;height:62px}.touch-aim{touch-action:none;background:0 0;width:48%;height:52%;position:absolute;top:17%;right:0}.low{color:#ffc985!important}.service-hud{justify-content:space-between;display:flex;position:absolute;top:20px;left:25px;right:25px}.service-hud div{background:#382e2de0;border:1px solid #bc986655;border-radius:5px;padding:12px 18px;font-size:13px}.service-hud b{color:#f0ce87;font-size:23px}.tea{background:#293e3f;border:1px solid #e7c07e;width:25%;padding:15px;position:absolute;bottom:95px;left:38%}.tea-track{background:linear-gradient(90deg,#73584a 60%,#9ecb88 60% 82%,#73584a 82%);height:18px;position:relative}.tea-track i{background:#fff;width:4px;height:22px;position:absolute;top:-2px}.tiny-note{color:#91aeae;font-size:10px}.portrait-note{display:none}@media (width<=900px){#app{padding:0 10px}header{height:50px}.brand span,#day-label,footer{display:none}.brand b{font-size:15px}.brand{font-size:20px}nav{gap:4px}#stage{max-height:calc(100dvh - 62px);margin:6px auto}.panel{padding:18px}.morning{width:40%;top:6%;left:3%}h1{font-size:30px}.eyebrow{margin-bottom:10px}.morning p{font-size:11px}.rule{margin:12px 0}.meta{margin:7px 0;font-size:10px}.actions{margin-top:12px}button{padding:8px 12px;font-size:11px}.grid{gap:7px}.card{padding:10px}.card h3{font-size:12px}.wide{inset:4%}.hint{font-size:9px;bottom:12px}.status{min-width:165px;padding:9px}.hud-top{top:12px;left:12px;right:12px}.status b,.depth b{font-size:20px}.summary b,h2{font-size:22px}.ship-label strong{font-size:18px}.journal{grid-template-columns:1fr}}@media (pointer:coarse){.hint{white-space:normal;max-width:40%;font-size:10px;bottom:14px}.hud-top{pointer-events:none}.hud-right button{pointer-events:auto}}@media (orientation:portrait) and (width<=700px){#stage{aspect-ratio:12/10;margin-top:15vh}.morning{width:55%;top:3%}.morning h1{font-size:24px}.morning .lead,.morning .rule,.morning .meta:nth-of-type(2),.ship-label{display:none}.grid{grid-template-columns:repeat(2,1fr)}body:after{content:"请横屏，海面会更宽阔。";text-align:center;color:#efcf8a;width:100%;font-size:13px;position:fixed;top:80px;left:0}}#stage{width:min(100%,171.429dvh - 233.143px);max-height:none}@media (width<=1100px),(height<=650px){#app{padding:0 8px}header{height:44px}.brand span,#day-label,footer{display:none}.brand b{font-size:14px}.brand{font-size:19px}nav{gap:3px}#stage{width:min(100%,171.429dvh - 92.5714px);margin:5px auto}.panel{padding:16px}.morning{width:43%;max-height:90%;top:5%;left:3%;overflow:auto}.morning h1{font-size:29px}.eyebrow{margin-bottom:10px;font-size:8px}.morning p{font-size:11px}.rule{margin:10px 0}.meta{margin:7px 0;font-size:10px}.actions{margin-top:12px}button{padding:8px 11px;font-size:11px}.wide{padding:17px;inset:3%}.wide h2{font-size:20px}.wide>p{margin:7px 0;font-size:11px}.grid{gap:7px}.card{padding:9px}.card h3{font-size:11px}.card p{font-size:9px}.card .number{font-size:23px}.card button{padding:7px;font-size:9px}.summary{gap:18px;padding:7px 0}.summary b{font-size:22px}.summary span{font-size:9px}.status{min-width:140px;padding:8px 10px}.status b{font-size:19px}.status p{font-size:9px}.status small{font-size:8px}.hud-top{top:10px;left:10px;right:10px}.depth{padding:8px 10px}.depth b{font-size:20px}.area-label{letter-spacing:2px;font-size:10px;top:12px}.area-label small{font-size:8px}.joystick{width:88px;height:88px;bottom:15px;left:15px}.joystick i{top:21px;left:21px}.touch-actions{gap:7px;bottom:15px;right:14px}.touch-actions button{min-width:48px;height:48px;padding:7px;font-size:10px}.service-hud{top:10px;left:10px;right:10px}.service-hud div{padding:8px 10px;font-size:10px}.service-hud b{font-size:18px}.hint{white-space:normal;max-width:43%;padding:7px;font-size:9px;bottom:12px}.ship-label{bottom:8%;right:5%}.ship-label strong{font-size:16px}.ship-label p{font-size:9px}#toast{text-align:center;max-width:75%;padding:8px 12px;font-size:11px}.wide .actions{z-index:2;background:#0a2c37;margin-bottom:0;padding:9px 0;position:sticky;bottom:-17px}.tea{width:40%;padding:10px;bottom:75px;left:30%}.tea p{font-size:10px}}.card select{width:100%;max-width:100%;padding:5px 2px;font-size:11px}@media (width<=1100px),(height<=650px){.card select{font-size:9px}}
