:root{color:#f9ebd3;background:#0b2b29;font-family:system-ui,PingFang SC,Microsoft YaHei,sans-serif;font-synthesis:none;color-scheme:dark;--cream:#faebcf;--muted:#b0c9bc;--edge:#3a5b4f}*{box-sizing:border-box}body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 16% 12%,#235046 0,transparent 65%),#0b2b29}button{font:inherit;color:inherit;cursor:pointer;border:1px solid #517161;border-radius:7px;background:#24483d;min-height:40px;transition:background .12s,border-color .12s}button:hover{background:#365a4b}button:focus-visible,canvas:focus-visible{outline:2px solid #ffba78;outline-offset:3px}button[aria-pressed=false]{opacity:.66}.harbor{width:min(1700px,100%);margin:auto;padding:30px 52px 20px}header{height:78px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border-bottom:1px solid var(--edge)}.name,.sound{display:flex;align-items:center;gap:14px}.name h1{font-size:42px;line-height:1.1;letter-spacing:.035em;margin:0;font-weight:830}.mark{display:grid;place-items:center;width:44px;height:44px;background:#efae79;color:#183329;font:700 34px Georgia,serif;border-radius:9px;line-height:1}.latin,.chart-label{font:650 12px ui-monospace,monospace;letter-spacing:.17em;color:#add5c4;white-space:nowrap}.sound button{padding:0 16px;font-size:14px}.sound button:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#afdc9f;margin-right:8px;vertical-align:2px}.sound button[aria-pressed=false]:before{background:#a99585}.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(265px,25%);align-items:start;gap:28px;margin:22px auto 0}.play{position:relative;border-radius:13px;overflow:hidden;background:#236a60;border:1px solid #72947b;box-shadow:0 22px 60px #081e1c66;min-width:0}#sea{width:100%;height:min(76vh,900px);display:block;touch-action:none;cursor:grab;outline-offset:-4px}#sea:active{cursor:grabbing}.map-key{position:absolute;bottom:14px;left:15px;display:flex;align-items:center;gap:13px;padding:8px 11px;background:#153c35e8;color:#f4ead3;border-radius:6px;font-size:12px;pointer-events:none}.map-key span{white-space:nowrap}.sample{display:inline-block;width:9px;height:9px;background:#e6ca8b;border-radius:50%;vertical-align:0;margin-right:2px}.sample.pin{background:#ffa967}.sample.goal{border:1px dashed #b9edb8;border-radius:2px;background:transparent}.log{border-top:3px solid #e6ab76;padding:18px 4px;min-width:0}.chart-label{margin:4px 0 9px;letter-spacing:.08em;font-family:inherit}h2{margin:0;font-size:clamp(23px,2.5vw,42px);line-height:1.15;letter-spacing:.04em}.hint{color:var(--muted);font-size:15px;line-height:1.55;margin:10px 0 20px}.readings{border-top:1px solid var(--edge);border-bottom:1px solid var(--edge);padding:12px 0 8px}.line-title,dl>div{display:flex;justify-content:space-between;align-items:center;gap:6px}.line-title span,dt{font-size:14px;color:#c7d6c6}.line-title strong{font:700 23px ui-monospace,monospace;color:#ffe1ac}.line-title strong:after{content:" m";font-size:13px}.gauge{background:#264b3e;border-radius:9px;height:7px;margin:7px 0 12px;overflow:hidden}.gauge span{display:block;height:100%;width:0;background:#b3d69c;border-radius:9px}.gauge.danger span{background:#ffab79}dl{margin:0}dl>div{margin:6px 0}dd{margin:0;font-size:15px;font-weight:730;color:#ffe2b4}.station{display:flex;align-items:center;gap:9px;min-height:48px;color:#f9d4a0;font-size:14px}.station p{margin:0}.lamp{background:#ebae75;width:8px;height:8px;border-radius:50%;box-shadow:0 0 11px #f2a76f67;flex:none}.result{background:#334f3e;border:1px solid #a0b283;border-radius:9px;padding:12px 14px;margin-bottom:12px;display:grid;grid-template-columns:auto 1fr;gap:5px 11px;align-items:center}.result[hidden]{display:none}.result #stars{color:#ffd591;letter-spacing:2px}.result #score{font-size:12px;color:#d6e3ca;grid-column:1/-1}.result button{grid-column:1/-1;margin-top:3px;background:#efd5a2;color:#193a30;font-weight:760}.reset{width:100%;font-size:14px}#save-note{margin:6px 0;color:#f5c699;font-size:12px}nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0 8px}nav button{padding:4px 3px;white-space:nowrap;font-size:13px}nav button[aria-current=true]{background:#f3ba82;color:#173b30;border-color:#f3ba82;font-weight:750}.instructions{font-size:13px;line-height:1.65;color:#b8cabe;margin:12px 0 0}@media(min-width:1000px)and (min-height:850px){.log{padding:32px 9px}.station{min-height:62px}.readings{padding:18px 0 12px}.hint{margin-bottom:28px}.layout{gap:36px}.instructions{margin-top:24px}.chart-label{margin-bottom:15px}.sound{margin-top:6px}}@media(max-width:800px){.harbor{padding:10px 12px 18px}header{height:50px;align-items:flex-start}.name,.sound{gap:7px}.name h1{font-size:27px}.mark{width:32px;height:32px;font-size:26px}.latin{display:none}.sound button{font-size:12px;padding:0 8px;min-height:36px}.sound button:before{margin-right:4px}.layout{display:flex;flex-direction:column;gap:10px;margin-top:8px}.play,.log{width:100%}#sea{height:auto;aspect-ratio:720/650}.map-key{font-size:9px;padding:5px 6px;left:6px;bottom:6px;gap:7px}.sample{width:6px;height:6px}.log{display:grid;grid-template-columns:1.1fr 1fr;gap:5px 12px;padding:8px 2px 0;border-top-width:2px}.chart-label{font-size:10px;margin:0 0 4px}.hint{font-size:11px;margin:4px 0 0}.readings{padding:2px 0 0;border:0}.line-title span,dt,dd{font-size:11px}.line-title strong{font-size:17px}.gauge{margin:3px 0 2px;height:5px}dl>div{margin:2px 0}.station{grid-column:1/-1;min-height:31px;font-size:12px;line-height:1.15}.result{grid-column:1/-1;margin:0;padding:7px 8px;grid-template-columns:auto 1fr auto}.result #score{grid-column:1/3;grid-row:2}.result button{grid-column:3;grid-row:1/3;padding:0 8px;margin:0;font-size:12px}.actions{align-self:center}.reset,nav button{min-height:40px}.reset{font-size:12px}.instructions{grid-column:1/-1;margin:1px 0 0;font-size:11px}.instructions br{display:none}nav{margin:0;gap:3px}nav button{font-size:10px}}@media(prefers-reduced-motion:reduce){button{transition:none}}
