@font-face{font-family:"Voyage WenKai";src:url("assets/fonts/lxgw-wenkai-500.woff2") format("woff2");font-style:normal;font-weight:500;font-display:swap}
:root{color-scheme:light;--ink:#253e41;--muted:#76877d;--cream:#f4f1df;--journal-ink:#182f55;--journal-muted:#715c45;--journal-hand:"Voyage WenKai","Kaiti SC","STKaiti",serif;font-family:"Microsoft YaHei","PingFang SC",sans-serif}
*{box-sizing:border-box}
body{margin:0;overflow:hidden;background:#edf0e6;color:var(--ink);height:100vh;height:100dvh}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
button:focus-visible,a:focus-visible{outline:2px solid #b78137;outline-offset:5px}
[hidden]{display:none!important}
#ocean{position:fixed;inset:0;width:100%;height:100%;touch-action:pan-y}
.paper{position:fixed;inset:0;pointer-events:none;opacity:.028;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23253835' filter='url(%23n)' opacity='.65' d='M0 0h180v180H0z'/%3E%3C/svg%3E");z-index:3}
.masthead{position:absolute;top:36px;left:48px;right:48px;display:flex;align-items:flex-start;justify-content:space-between;z-index:5}
.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);opacity:.72;transition:opacity .2s}
.brand:hover{opacity:1}
.brand svg{width:30px;height:35px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.brand span{font-size:15px;letter-spacing:3px;font-weight:500}
.brand small{display:block;font:7px/1.8 Georgia,serif;letter-spacing:2px;margin-top:4px}
.time-control{position:fixed;left:50%;bottom:26px;z-index:4;width:min(440px,calc(100vw - 46px));padding:10px 14px 8px;border:1px solid #f3edd33b;border-radius:7px;color:#365551;background:#edf0e6a6;box-shadow:0 8px 35px #18343912;backdrop-filter:blur(8px);transition:color 1.2s,background 1.2s,border-color 1.2s;transform:translateX(-50%)}
.time-control-heading{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;font-size:8px;letter-spacing:1.5px}
.time-control-heading>span{font-family:"Songti SC","SimSun",serif}
.time-control output{font:12px/1 Georgia,serif;font-variant-numeric:tabular-nums;letter-spacing:.8px}
#time-live{padding:3px 7px;border:1px solid currentColor;border-radius:10px;font-size:7px;letter-spacing:.7px;opacity:.58;transition:opacity .2s,background .2s}
#time-live:hover,#time-live:not(.is-live){opacity:1}
#time-live.is-live{background:#496d625e}
#time-slider{display:block;width:100%;height:12px;margin:8px 0 3px;appearance:none;background:transparent;cursor:ew-resize;accent-color:#f0bf70}
#time-slider::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:linear-gradient(90deg,#1b2949 0 18%,#b97873 23%,#d8e5d9 33% 65%,#efbb73 72%,#8c667b 80%,#1b2949 88% 100%)}
#time-slider::-webkit-slider-thumb{appearance:none;width:11px;height:11px;margin-top:-4px;border:2px solid #f4eed7;border-radius:50%;background:#b7773d;box-shadow:0 1px 8px #17343c66}
#time-slider::-moz-range-track{height:3px;border-radius:3px;background:linear-gradient(90deg,#1b2949 0 18%,#b97873 23%,#d8e5d9 33% 65%,#efbb73 72%,#8c667b 80%,#1b2949 88% 100%)}
#time-slider::-moz-range-thumb{width:8px;height:8px;border:2px solid #f4eed7;border-radius:50%;background:#b7773d;box-shadow:0 1px 8px #17343c66}
.time-marks{display:grid;grid-template-columns:repeat(5,1fr);font-size:6px;letter-spacing:.7px;opacity:.55}.time-marks span:nth-child(2),.time-marks span:nth-child(3),.time-marks span:nth-child(4){text-align:center}.time-marks span:last-child{text-align:right}
.header-right{display:flex;align-items:flex-start;gap:25px}
.anchor-dock{position:relative;width:74px;text-align:center;margin-top:2px;--pull:0px}
.rope{position:absolute;left:calc(50% - 1px);top:-95px;width:3px;height:calc(107px + var(--pull));background:repeating-linear-gradient(35deg,#9a8054 0 3px,#c0a77b 3px 6px);pointer-events:none}
.anchor-button{position:relative;display:block;width:55px;height:65px;margin:0 auto;padding:0;transform:translateY(var(--pull));touch-action:none;cursor:grab;filter:drop-shadow(0 4px 2px #213c3612)}
.anchor-button:active{cursor:grabbing}
.sprite{position:absolute;display:block;width:140%;height:140%;left:-20%;top:-20%;background-image:url('../wallpaper/themes/Blacktide%20Craw/elements.png');background-size:800% 700%;background-repeat:no-repeat}
#anchor-art{background-position:42.857143% 33.333333%}
#boat-art{position:absolute;inset:0;background:url('assets/ship-clean.png') center bottom / contain no-repeat}
.boat[data-rendered="true"] #boat-art{visibility:hidden}
.boat[data-rendered="true"]{will-change:auto}
#anchor-hint{display:block;font-size:9px;letter-spacing:1px;color:#758478;margin-top:12px;transform:translateY(var(--pull));white-space:nowrap;opacity:0;transition:opacity .3s}
body[data-state="idle"] #anchor-hint,.anchor-dock:hover #anchor-hint,.anchor-dock:focus-within #anchor-hint{opacity:.75}
.anchor-dock.releasing .anchor-button,.anchor-dock.releasing #anchor-hint{transition:transform .65s cubic-bezier(.2,1.7,.4,1),opacity .3s}
.anchor-dock.releasing .rope{transition:height .65s cubic-bezier(.2,1.7,.4,1)}
.journal-button{display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px 3px;color:#53665a}
.journal-button svg{width:28px;height:34px;stroke:currentColor;stroke-width:1.3;fill:#f3f1df80;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.journal-button:hover svg{transform:rotate(-5deg)}
.journal-button span{font-size:9px;letter-spacing:1.5px}
.journal-button img{width:92px;height:92px;object-fit:contain;margin-top:-12px;transform:rotate(17deg);transition:transform .2s}
.journal-button:hover img{transform:rotate(17deg) scale(1.04)}
body[data-weather="storm"] .brand,body[data-weather="storm"] .journal-button,body[data-weather="storm"] #anchor-hint,body[data-weather="heavy"] .brand,body[data-weather="heavy"] .journal-button{color:#f1ead5}
.brand{transition:opacity .2s,color 3s}.journal-button{transition:color 3s}#anchor-hint{transition:opacity .3s,color 3s}
body[data-period="night"] .brand,body[data-period="night"] .journal-button,body[data-period="night"] #anchor-hint,body[data-period="predawn"] .brand,body[data-period="predawn"] .journal-button,body[data-period="predawn"] #anchor-hint,body[data-period="dusk"] .brand,body[data-period="dusk"] .journal-button,body[data-period="dusk"] #anchor-hint{color:#eee7d0}
body[data-period="night"] .paper,body[data-period="predawn"] .paper{opacity:.045}
body[data-period="night"] .time-control,body[data-period="predawn"] .time-control,body[data-period="dusk"] .time-control{color:#e7e1cb;background:#142a3d8f;border-color:#d9e5db21;box-shadow:0 8px 40px #07182b45}
body[data-period="sunset"] .time-control,body[data-period="golden"] .time-control{color:#5d423d;background:#eee5d0a8}
.boat{position:absolute;left:0;top:0;width:clamp(155px,16vw,210px);height:clamp(155px,16vw,210px);transform-origin:50% 98%;pointer-events:none;z-index:2;will-change:transform}
dialog{color:var(--ink);border:1px solid #c5ccbb;background:#f3f2e5;box-shadow:0 20px 90px #132f3530}
dialog::backdrop{background:#193d401a}
.journal{position:fixed;inset:28px 28px 28px auto;margin:0;width:min(604px,calc(100vw - 56px));height:calc(100dvh - 56px);max-width:none;max-height:none;overflow:visible;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;opacity:1;transform:translateX(0);transition:transform .46s cubic-bezier(.22,.75,.2,1),opacity .32s ease}
.journal::backdrop{background:#10282f18;transition:background .32s ease}.journal[data-motion="entering"],.journal[data-motion="closing"]{opacity:0;transform:translateX(44px);pointer-events:none}.journal[data-motion="closing"]{transition-duration:.34s}.journal[data-motion="entering"]::backdrop,.journal[data-motion="closing"]::backdrop{background:#10282f00}
.journal-book{--paper:#f2e9d4;position:relative;height:100%;margin-left:84px;border:1px solid #ddd4bd;border-radius:7px;box-shadow:0 18px 64px #0c222f38;color:#385047;background-color:var(--paper);background-image:url('assets/journal/paper-grain.svg'),linear-gradient(90deg,#8066440d,transparent 14%,transparent 96%,#8066440b),radial-gradient(ellipse at 20% 0,#fffdf05e,transparent 75%);background-size:192px 192px,100% 100%,100% 100%;background-repeat:repeat,no-repeat,no-repeat;display:flex;flex-direction:column}
.ui-icon{display:block;width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.journal-tabs{position:absolute;right:100%;top:40px;display:flex;flex-direction:column;align-items:flex-end;gap:8px;width:84px;padding:0;z-index:1}
.journal-tab{display:flex;align-items:center;justify-content:center;gap:6px;width:70px;min-height:52px;padding:12px 6px;border:1px solid #897b5947;border-radius:6px 0 0 6px;border-right:0;background:#dfd3b8;color:#73715d;font-size:14px;letter-spacing:0;position:relative;z-index:0;transition:width .24s cubic-bezier(.22,.75,.2,1),background-color .2s,color .2s,box-shadow .2s}
.journal-tab.selected{width:84px;z-index:2;color:#355b4b;background:var(--paper);background-image:url('assets/journal/paper-grain.svg');background-size:192px 192px;font-weight:400;box-shadow:1px 0 var(--paper),-3px 3px 8px #142b3220}
.journal-tab:hover{color:#355b4b;background-color:#e9dec3}.journal-tab .ui-icon{width:19px;height:19px}
.close-button{position:absolute;z-index:10;top:20px;right:14px;display:grid;place-items:center;width:32px;height:32px;border-radius:4px;color:#6f7d69}.close-button:hover{background:#4e695213}.close-button .ui-icon{width:18px;height:18px}
.journal-spread{display:block;position:relative;flex:1;min-height:0;overflow-y:auto;padding:48px 30px 30px;scrollbar-width:thin;scrollbar-color:#a4ad9855 transparent}
.book-page{min-width:0;padding:0;overflow:visible}
.journal-spread[data-journal-panel="log"]{display:flex;align-items:center;justify-content:center}
.journal-spread[data-journal-panel="log"] .book-page{width:100%}
.focus-panel{text-align:center;padding:28px 0}
.timer{font-variant-numeric:tabular-nums;color:#38564b;line-height:1.1;letter-spacing:3px}
.timer span{display:inline-block;transform:translateY(-3px);font-size:.72em;padding:0 3px;opacity:.45}
.focus-actions{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:42px}
.focus-action{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;flex:1;max-width:164px;padding:12px 15px;border:1px solid #6b80645e;border-radius:5px;background:#4b705b08;color:#42654f;font-size:13px;letter-spacing:1px}
.focus-action:hover:not(:disabled){background:#6f8b6520;border-color:#56734c}.focus-action .ui-icon{width:22px;height:22px}
.finish-action{color:#84654d;border-color:#94744f5c}.finish-action:hover:not(:disabled){background:#b28e5b14;border-color:#94744f}
.focus-action:disabled{opacity:.35;cursor:default}
.focus-duration-setting{border:0;border-bottom:1px dashed #81785b4d;padding:0 0 20px;margin:0 0 6px}.focus-duration-setting legend{font-size:12px;color:#5d6d56}.focus-duration-setting .duration-picker{justify-content:flex-start;gap:9px;margin-top:12px}.duration-picker button:disabled{opacity:.45;cursor:default}
.duration-picker{display:flex;flex-wrap:wrap;gap:3px;justify-content:center;margin-top:9px}
.duration-picker button{border:1px solid transparent;padding:5px 7px;border-radius:20px;font-size:9px;color:#756f5d;white-space:nowrap}
.duration-picker button.selected{background:#95a98542;border-color:#8294756e;color:#314f44}
.duration-picker button:hover{background:#aebc9f45}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:2px 0 12px;border-bottom:1px solid #81785b47}
.page-heading h3{margin:6px 0 0;font-size:clamp(20px,2.1vw,29px);letter-spacing:3px;color:var(--journal-ink)}
.page-heading>.ui-icon{width:25px;height:25px;opacity:.7}
.ledger-explainer{margin:14px 1px 10px;color:#756f5e;font:9px/1.8 "Songti SC","SimSun",serif}
.voyage-ledger{display:grid;grid-template-columns:1fr 1fr;border:1px solid #827b6040;background:#87967b0d}
.voyage-ledger>div{padding:11px 12px;border-bottom:1px solid #827b6038}
.voyage-ledger>div:nth-child(odd){border-right:1px solid #827b6038}.voyage-ledger>div:nth-last-child(-n+2){border-bottom:0}
.voyage-ledger span{display:block;margin-bottom:5px;color:#81806c;font-size:7px;letter-spacing:1.2px}
.voyage-ledger strong{font:normal 10px Georgia,serif;color:#4a594b}.voyage-ledger b{font-size:20px;font-weight:normal;color:#294b46;margin-right:3px}
.recent-log{margin-top:15px}
.section-rule{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding-bottom:7px;border-bottom:1px solid #81785b3d}
.section-rule h4{margin:0;font:normal 12px "Songti SC","SimSun",serif;letter-spacing:1.3px}.section-rule span{font-size:7px;color:#928b73}
.recent-log ol{list-style:none;margin:0;padding:0}
.recent-log li{display:grid;grid-template-columns:68px 1fr auto;gap:8px;align-items:center;padding:8px 3px;border-bottom:1px dashed #81785b33;font-size:8px;color:#667367}
.recent-log time{font:9px Georgia,serif;color:#626451}.recent-log strong{font:normal 9px Georgia,serif;color:#35534c}.recent-log .empty-log{display:block;padding:18px 3px;color:#8c8773;text-align:center;font-family:"Songti SC","SimSun",serif}
.settings-page{padding-top:1%}.settings-page .weather-panel{margin-top:24px}.settings-note{margin:24px 4px 0;padding-top:15px;border-top:1px dashed #81785b4d;color:#817c69;font:10px/1.9 "Songti SC","SimSun",serif}
.weather-cycle{margin:12px 0 20px;padding:12px;border:1px solid #8a896751;border-radius:4px;background:#d2d3af25;color:#475b4b;font:12px/1.6 "Songti SC","SimSun",serif}.cycle-toggle{display:flex;align-items:center;gap:8px;font-weight:bold;cursor:pointer}.weather-cycle input[type=checkbox]{accent-color:#4b6c57;width:16px;height:16px}.control-help{font-size:10px;line-height:1.8;color:#7b7c65;margin:8px 0}.cycle-durations{display:grid;gap:9px;margin:12px 0}.cycle-durations label,.weather-overrides label,.cloud-mode{display:flex;align-items:center;justify-content:space-between;gap:8px}.weather-cycle input[type=number]{box-sizing:border-box;width:66px;padding:4px 5px;border:1px solid #88907880;border-radius:3px;color:#3f5a46;background:#fff8df96;font-family:inherit;font-size:12px}.weather-overrides summary{cursor:pointer;font-size:11px;padding:5px 0}.weather-overrides label{margin:7px 0;font-size:11px}.cycle-status{font-size:11px;color:#406148;margin:10px 0 0;border-top:1px dashed #87937760;padding-top:8px}.cloud-mode{font:12px/1.6 "Songti SC","SimSun",serif;color:#58634f}.cloud-mode select{max-width:65%;padding:5px;border:1px solid #88907880;color:#3f5a46;background:#fff8df96;border-radius:3px}.cloud-mode[hidden]{display:none}.weather-cycle input:focus-visible,.cloud-mode select:focus-visible{outline:2px solid #59745a;outline-offset:2px}
.footer-label{display:block;font-size:9px;letter-spacing:2px;color:#819079;margin-bottom:12px}
.weather-options{display:flex;gap:5px;padding:4px;border:1px solid #b8c3ad70;border-radius:6px;background:#c8d3be20}
.weather-options button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;padding:9px 7px;border-radius:3px;font-size:10px;letter-spacing:1px;color:#6e7d6e;transition:background .3s,color .3s}
.weather-mark{font:16px/1 Georgia,serif}
.weather-options button.selected{background:#dce4d2;color:#325b53}
.weather-options button:hover:not(.selected){background:#dce4d266}
.rain-levels{display:flex;gap:7px;margin-top:10px}
.rain-levels button{flex:1;padding:7px 5px;font-size:10px;border:1px solid #b8c3ad70;border-radius:4px;color:#7c8f7c}
.wind-levels{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:10px}
.wind-levels button{display:grid;gap:2px;justify-items:center;padding:7px 3px 6px;border:1px solid #b8c3ad70;border-radius:4px;color:#7c8f7c}
.wind-levels button span{font-size:10px}.wind-levels button small{font:7px Georgia,serif;letter-spacing:.5px;opacity:.72}
.rain-levels button.selected,.wind-levels button.selected{background:#465e58;color:#f5f0da;border-color:#465e58}
.cloud-picker{margin-top:17px;padding-top:14px;border-top:1px dashed #81785b4d}.cloud-picker .footer-label{margin-bottom:8px}
.cloud-options{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.cloud-options button:last-child:nth-child(odd){grid-column:1/-1}
.cloud-options button{display:grid;gap:3px;padding:9px 7px 8px;border:1px solid #b8c3ad70;border-radius:4px;color:#718170;text-align:left}
.cloud-options button span{font-size:10px;letter-spacing:.8px}.cloud-options button small{font:7px "Songti SC","SimSun",serif;letter-spacing:.5px;opacity:.72}
.cloud-options button:hover:not(.selected){background:#dce4d266}.cloud-options button.selected{background:#465e58;color:#f5f0da;border-color:#465e58}
.shipboard-settings{margin-top:18px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 3px;border-bottom:1px dashed #81785b4d}.setting-row .footer-label{margin:0 0 5px}.setting-row p{margin:0;color:#837d69;font:9px "Songti SC","SimSun",serif}.round-setting{display:grid;place-items:center;width:42px;height:42px;border:1px solid #78876e70;border-radius:50%;background:#a8b89b26;color:#3e5d52;font-size:19px}.round-setting:hover,.round-setting[aria-pressed="true"]{background:#8fa4824d}
.volume-control{display:flex;gap:12px;align-items:center;padding:18px 3px;font-size:9px;color:#737c6b;border-bottom:1px dashed #81785b4d}
.volume-control input{flex:1;min-width:60px;accent-color:#56796b;height:14px;cursor:pointer}
.volume-control output{width:30px;text-align:right;font-variant-numeric:tabular-nums}
.foreground-control{margin:0;padding:16px 3px;border:0;border-bottom:1px dashed #81785b4d;color:#737c6b}.foreground-control legend{padding:0;font-size:9px;letter-spacing:2px;color:#819079}.foreground-control>p{margin:5px 0 10px;color:#837d69;font:9px "Songti SC","SimSun",serif}
.foreground-options{display:grid;grid-template-columns:1fr 1fr;gap:7px}.foreground-options label{display:flex;align-items:center;gap:7px;padding:8px;border:1px solid #b8c3ad70;border-radius:4px;font-size:9px;cursor:pointer}.foreground-options input{accent-color:#465e58}.foreground-options label:has(input:checked){background:#dce4d2;color:#325b53}
.foreground-frequency{display:grid;grid-template-columns:auto 1fr 42px;align-items:center;gap:9px;margin-top:12px;font-size:9px}.foreground-frequency input{min-width:70px;accent-color:#56796b;cursor:pointer}.foreground-frequency output{text-align:right;font:8px Georgia,serif;font-variant-numeric:tabular-nums}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.fps-debug{font:11px/1.6 Consolas,monospace;color:#f3f0dfb0;background:#172c395e;padding:5px 9px;border:1px solid #e4eadb18;border-radius:4px;pointer-events:auto;font-variant-numeric:tabular-nums}
.masthead{top:27px;left:28px;right:28px}.header-right{gap:22px}
.desktop-tools{position:fixed;z-index:5;bottom:30px;left:28px;display:flex;align-items:center;gap:10px;color:#edf0e0}
.desktop-tools button{min-height:36px;padding:7px 11px;border:1px solid #f2efdd25;border-radius:5px;background:#172f3a50;font-size:10px;letter-spacing:1px}
.desktop-tools button:hover{background:#172f3a90}.desktop-tools button[aria-pressed="true"]{color:#ffdc9b}.desktop-tools button>span:first-child{margin-right:7px}
.focus-dock{position:fixed;z-index:5;left:50%;bottom:25px;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;gap:25px;min-width:370px;padding:12px 21px;border:1px solid #e8e8d22b;border-radius:9px;color:#f2efdb;background:#18313c9c;box-shadow:0 6px 30px #122a3318}
.focus-dock>div{display:grid;gap:5px}.focus-dock #focus-caption{font-size:9px;letter-spacing:1.3px;color:#eee9d9ad}.focus-dock output{font:25px/1 Georgia,serif;font-variant-numeric:tabular-nums;letter-spacing:2px}

.time-control{bottom:116px}
.arrival-note{position:fixed;z-index:4;left:50%;bottom:127px;transform:translateX(-50%);width:min(420px,calc(100vw - 40px));text-align:center;color:#f8f2db;text-shadow:0 1px 8px #153443;background:linear-gradient(90deg,transparent,#18333d88 25% 75%,transparent);padding:16px 22px;pointer-events:none}
.arrival-note h2{font:21px var(--journal-hand);letter-spacing:3px;margin:0 0 8px}.arrival-note p{font-size:11px;line-height:1.8;margin:0;color:#edead8d9}
.sound-check{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:#78816f;padding:12px 0}.sound-check button{white-space:nowrap;padding:7px 10px;border:1px solid #87947866;border-radius:4px;color:#426358}.sound-check button:hover{background:#dce4d2}
body:has(#journal[open]) .focus-dock,body:has(#journal[open]) .desktop-tools,body:has(#journal[open]) .time-control{visibility:hidden}
.journal .timer{font:normal clamp(64px,8vw,92px)/1.1 Georgia,serif;font-variant-numeric:tabular-nums;letter-spacing:3px;margin:0}.journal .duration-picker button{font-size:12px;padding:7px 10px}
.journal .page-heading h3{font:24px var(--journal-hand);color:#324e50}.journal .page-heading>.ui-icon{width:25px;height:25px;opacity:.65}.journal .ledger-explainer{font-size:12px;line-height:1.9;margin:18px 0}.journal .voyage-ledger>div{padding:20px 16px}.journal .voyage-ledger span{font-size:11px}.journal .voyage-ledger b{font-size:28px}.journal .recent-log{margin-top:28px}.journal .recent-log li{font-size:11px;padding:14px 0}.journal .recent-log time,.journal .recent-log strong{font-size:11px}.journal .section-rule h4{font-size:14px}.journal .section-rule span{font-size:9px}
.journal .settings-page+.settings-page{margin-top:34px;padding-top:24px;border-top:1px solid #81785b47}.journal .control-help,.journal .setting-row p,.journal .settings-note{font-size:12px;line-height:1.8}.journal .footer-label,.journal .setting-row>span,.journal .volume-control,.journal .foreground-control legend{font-size:12px}.journal .weather-options button,.journal .rain-levels button,.journal .wind-levels button span,.journal .cloud-options button span,.journal .foreground-options label{font-size:12px}.journal .wind-levels button small,.journal .cloud-options button small{font-size:10px}.journal .foreground-control>p{font-size:11px}.journal .foreground-frequency{font-size:11px}.journal .volume-control output{width:36px}
@media(max-width:700px){.masthead{top:18px;left:16px;right:12px}.header-right{gap:12px}.anchor-dock{width:48px}.anchor-button{width:40px;height:48px}#anchor-hint{font-size:8px}.journal-button img{width:76px;height:76px}.journal-button span{font-size:8px}.journal{inset:12px;width:calc(100vw - 24px);height:calc(100dvh - 24px)}.journal-book{margin-left:62px}.journal-tabs{width:62px;gap:6px;top:36px}.journal-tab{width:50px;flex-direction:column;padding:11px 6px;gap:6px;min-height:68px;font-size:12px}.journal-tab.selected{width:62px}.journal-tab .ui-icon{width:18px;height:18px}.close-button{top:18px;right:10px}.journal-spread{padding:48px 18px 24px}.journal .timer{font-size:66px}.focus-actions{gap:12px;margin-top:34px}.focus-action{padding:11px 9px;font-size:12px}.desktop-tools{bottom:108px;left:15px;gap:6px}.desktop-tools button{font-size:9px;padding:6px 8px}.desktop-tools #quick-sound-label{display:none}.desktop-tools button>span:first-child{margin:0}.focus-dock{left:auto;right:15px;bottom:16px;transform:none;width:calc(100vw - 30px);min-width:0;gap:14px;padding:12px 15px}.focus-dock output{font-size:22px}.focus-dock #focus-caption{font-size:8px}.focus-dock .voyage-readout{gap:8px}.focus-dock #weather-current{font-size:11px;max-width:95px}.focus-dock #sailed-distance{font-size:15px}.time-control{bottom:155px}.arrival-note{bottom:155px}.boat{width:160px;height:160px}}
@keyframes breathe{50%{opacity:.3}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.boat{will-change:auto}}

.shipboard-settings .setting-row select{font:inherit;color:#534b39;background:#f7e6bd;border:1px solid #9c805b;border-radius:4px;padding:5px 8px}

.focus-dock .voyage-readout{padding-left:20px;border-left:1px solid #f1e6c326;gap:9px}.voyage-readout>span{font-size:9px;letter-spacing:1.3px;color:#eee9d9ad}.focus-dock #weather-current{font:13px/1.4 "Microsoft YaHei","PingFang SC",sans-serif;letter-spacing:1px;max-width:118px}.focus-dock #sailed-distance{font:18px/1.4 Georgia,serif;letter-spacing:.6px;white-space:nowrap}
@media(max-width:700px){.focus-dock .voyage-readout{padding-left:12px}.focus-dock #weather-current{font-size:11px;max-width:95px}.focus-dock #sailed-distance{font-size:15px}}

@media(max-width:420px){.focus-action{gap:7px;padding:11px 6px;font-size:11px}.focus-action .ui-icon{width:20px;height:20px}}

/* Task pages keep the paper and ink system; selection means focus, not completion. */
.focus-task-name{max-width:100%;margin:0 0 24px;color:#6e7058;font:16px/1.7 var(--journal-hand);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.task-form{display:flex;gap:10px;margin:26px 0 20px;border-bottom:1px solid #81785b66;padding-bottom:10px}
.task-form input{flex:1;min-width:0;border:0;background:transparent;color:#385047;font:inherit;font-size:14px;line-height:1.7;padding:8px 2px;outline-offset:3px}
.task-form input::placeholder{color:#89856b}.task-form input:focus-visible{outline:1px solid #56734c;outline-offset:3px}
.task-form>button{display:grid;place-items:center;flex:none;width:36px;min-height:36px;border:1px solid #6b80645e;border-radius:4px;background:#4b705b08;color:#42654f}
.task-selection{font-size:12px;line-height:1.8;color:#7e7d64;margin:0 0 8px}
.task-empty{padding:30px 0;font:15px/1.9 var(--journal-hand);color:#8b856d;text-align:center}
.task-list{list-style:none;margin:0;padding:0}.task-row{display:flex;align-items:center;gap:10px;min-height:62px;padding:12px 0;border-bottom:1px dashed #81785b38}
.task-name{display:flex;align-items:flex-start;gap:11px;flex:1;min-width:0;color:#40564a;font-size:14px;line-height:1.7;cursor:pointer}
.task-name>span{overflow-wrap:anywhere;min-width:0}.task-name input{flex:none;margin:4px 0 0;width:17px;height:17px;accent-color:#4c7058;cursor:pointer}.task-name input:disabled{cursor:default;opacity:.6}
.task-row:has(input:checked) .task-name{color:#294f40}.task-row-actions{display:flex;gap:3px;flex:none}.task-row-actions button{display:grid;place-items:center;width:30px;height:34px;padding:6px;border-radius:4px;color:#858269}.task-row-actions button:hover:not(:disabled){background:#6f8b651c;color:#355b4b}.task-row-actions .ui-icon{width:17px;height:17px}.task-row-actions button:disabled{opacity:.25;cursor:default}
.task-done-group{margin-top:26px;color:#8b856d}.task-done-group summary{font-size:12px;cursor:pointer;padding:8px 0}.task-row.is-done .task-name{color:#94907b;text-decoration:line-through;cursor:default}
.task-footer{position:sticky;bottom:-30px;margin-top:28px;padding:18px 0 4px;background:var(--paper);border-top:1px solid #81785b38}.task-footer .task-start{width:100%;max-width:none;min-height:46px;background:#4b705b0d}
.task-status{font-size:11px;line-height:1.8;color:#8b765a;margin:8px 0 0}.task-status:empty{display:none}.task-undo{display:block;margin:8px auto 0;padding:4px 10px;color:#56734c;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.focus-dock>div:first-child{min-width:0;max-width:200px}.focus-dock #focus-caption{display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:700px){.task-form{gap:8px}.task-row{gap:5px}.task-name{gap:8px;font-size:13px}.task-row-actions{gap:0}.task-row-actions button{width:28px}.task-footer{bottom:-24px}.focus-dock>div:first-child{max-width:115px}.focus-dock #focus-caption{max-width:115px}}
@media(max-height:480px){.journal-tabs{top:24px;gap:4px}.journal-tab{min-height:44px;padding-top:6px;padding-bottom:6px}.journal-tab .ui-icon{width:17px;height:17px}}
