:root{font-family:system-ui,-apple-system,sans-serif;color:#162f3a;background:#eef3f3;line-height:1.5;--ink:#153d4b;--muted:#486674;--line:#c8d6dc}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;overflow-wrap:anywhere}header,main,footer{max-width:1440px;margin:auto;padding:20px}header{display:flex;justify-content:space-between;gap:20px;align-items:center}h1{font-family:Georgia,serif;font-size:clamp(1.8rem,4vw,2.9rem);line-height:1.1;margin:4px 0}h2{font-size:1.3rem;margin:0 0 10px}h3{font-size:1.05rem;margin:20px 0 8px}p{margin:8px 0 16px;overflow-wrap:anywhere}.eyebrow{text-transform:uppercase;letter-spacing:.1em;font-size:.75rem;margin:0}.connection{text-align:right;font-size:.9rem;flex-shrink:0}.connection span{display:block}a{color:#08606d}button,input,select{font:inherit;max-width:100%;min-width:0}button{background:#164c5c;color:white;border:1px solid #164c5c;border-radius:7px;padding:10px 14px;cursor:pointer;line-height:1.35;white-space:normal;overflow-wrap:anywhere}button:disabled{background:#e5ebed;color:#526875;border-color:#bdcbd1;cursor:default}button:hover:enabled{background:#0b6375}input,select{background:white;color:var(--ink);border:1px solid #9dafb9;border-radius:5px;padding:9px;width:100%}input[type=checkbox]{width:auto;min-height:20px;min-width:20px;margin-left:7px;vertical-align:middle}label{display:block;font-size:.9rem;min-width:0}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #ef9e30;outline-offset:3px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:18px;min-width:0}.entry-fields,.controls{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.entry-fields label{flex:1 1 200px}.controls label{flex:1 1 170px;max-width:100%}#feedback{color:#275565;min-height:1.5em}.room-heading,.section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.identity{background:#e0edf0;padding:12px;border-radius:6px;font-weight:650}.next-action{border-left:4px solid #de9d35;padding:10px 14px;background:#fff7e6;font-weight:600}#play-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,320px);gap:18px;align-items:start}.board-panel{position:sticky;top:12px}#board{position:relative;width:100%;aspect-ratio:7318375/9144000;overflow:hidden;background:#f6f6f6;border:1px solid var(--line)}#board-art{position:absolute;max-width:none}#pieces,#board-markers{position:absolute;inset:0;pointer-events:none}.space-anchor{position:absolute;width:0;height:0}.piece{position:absolute;display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:color-mix(in srgb,var(--piece-color) 20%,transparent);color:#102e3b;font-size:12px;font-weight:800;text-shadow:0 0 2px white,0 0 2px white;box-shadow:0 1px 3px #0009;border:2px solid var(--piece-color);transform:translate(calc(-50% + var(--offset-x,0px)),calc(-50% + var(--offset-y,0px)));pointer-events:auto;z-index:2}.piece.mine{outline:3px solid white;box-shadow:0 0 0 4px #163748}.piece.current{z-index:3}.anchor-dot{position:absolute;background:#163748;border:1px solid white;width:4px;height:4px;border-radius:50%;transform:translate(-50%,-50%)}.closed-marker{position:absolute;color:#ae1f36;background:white;border:1px solid #ae1f36;border-radius:3px;font-weight:bold;font-size:13px;transform:translate(-50%,-50%);padding:0 2px}.legend{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:8px 14px;margin:14px 0}.legend li{font-size:.9rem;display:flex;align-items:center;gap:6px;overflow-wrap:anywhere}.swatch{display:inline-flex;width:22px;height:22px;border-radius:50%;justify-content:center;align-items:center;color:white;background:var(--piece-color);font-size:12px;font-weight:750;flex-shrink:0}.small{font-size:.85rem;color:var(--muted)}#player-summaries{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}.player-card{padding:14px;border:1px solid var(--line);border-radius:8px}.player-card h3{margin:0 0 8px}.player-card.mine{border:2px solid #146175}.player-card dl{display:grid;grid-template-columns:1fr 1fr;margin:8px 0;gap:5px 12px}.player-card dt{color:var(--muted)}.player-card dd{margin:0;font-weight:650}.player-card ul{padding-left:20px;font-size:.9rem}#purchase-options>div{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:8px}#purchase-options span{font-size:.85rem}#landing-controls{align-items:center}#landing-info{white-space:pre-line}#turn>section{border-top:1px solid var(--line);padding-top:6px;margin-top:18px}#space-info{background:#edf4f5;padding:12px;border-radius:6px}details summary{cursor:pointer;font-weight:650}#help:target{outline:3px solid #de9d35}.help-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:0 28px}.help-grid p{font-size:.93rem}.debug pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:400px;overflow:auto;font-size:.75rem}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:.95rem}th,td{text-align:left;padding:10px;border-bottom:1px solid var(--line);vertical-align:top}#result-winners{font-size:1.3rem;font-weight:750;color:#146175}.winner-row{background:#edf5ed}footer{font-size:.8rem;color:var(--muted)}@media(max-width:950px){#play-layout{grid-template-columns:minmax(0,1fr)}.board-panel{position:static}#board{max-width:680px;margin:auto}}@media(max-width:520px){header,main,footer{padding:12px}header{align-items:start;gap:10px;flex-wrap:wrap}.connection{text-align:left}.connection span{display:inline;margin-right:12px}.panel{padding:14px}.room-heading,.section-heading{flex-wrap:wrap}#room-code{font-size:1.1rem}.entry-fields label{flex-basis:100%}.controls button{flex:1 1 130px}.piece{width:19px;height:19px;font-size:11px}#turn-info{font-size:.95rem}th,td{padding:8px 6px;font-size:.85rem}}

/* Hidden debug JSON must not be laid out one character per line as history grows. */
.debug:has(details:not([open])) pre{display:none}

#play-nav{display:flex;flex-wrap:wrap;gap:18px;margin:0 0 16px}#space-info{white-space:pre-line}

/* The approved source-pixel geometry scales with the same board image. */
.legal-space-overlay{position:absolute;max-width:none;pointer-events:none;z-index:4}
.legal-space-overlay .choice-marker{cursor:pointer;touch-action:manipulation}
.legal-space-overlay .choice-marker[aria-disabled=true]{cursor:default}
.legal-space-overlay .choice-marker:focus-visible{outline:3px solid #ef9e30;outline-offset:3px}

.board-viewport{overflow:auto;max-width:100%;min-width:0}.board-panel.expanded{position:fixed;inset:12px;z-index:100;top:12px;margin:0;display:flex;flex-direction:column;overflow:hidden}.board-panel.expanded .board-viewport{flex:1;min-height:0;overscroll-behavior:contain}.board-panel.expanded #board{width:1100px;max-width:none;margin:auto}.board-panel.expanded #board-note{font-size:.85rem;margin:4px 0 8px}.board-panel.expanded .legend,.board-panel.expanded>p.small{display:none}body.board-expanded{overflow:hidden}@media(max-width:520px){.board-panel.expanded{inset:4px;padding:10px}.board-panel.expanded #board{width:900px}.board-panel.expanded .section-heading{gap:6px}.board-panel.expanded h2{margin:0}.board-panel.expanded #season-info{font-size:.85rem}}

/* Approved cosmetic boat artwork. The anchor and movement overlays stay unchanged. */
.boat-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:12px;margin-top:12px}.boat-option{display:flex;flex-direction:column;align-items:center;gap:5px;background:#f4f8fa;color:#163748;padding:12px;border:2px solid #c8d6dc;min-width:0}.boat-option:hover:enabled{background:#e2f0f3}.boat-option[aria-pressed=true]{border-color:#096a54;background:#edf8f2;box-shadow:0 0 0 2px #096a54}.boat-option:disabled{background:#f1f3f4;color:#526875}.boat-option img{width:100%;height:140px;object-fit:contain;opacity:1}.boat-option strong,.boat-option span{text-align:center}.boat-option span{font-size:.85rem}.boat-availability{font-weight:650}.legend-boat{width:44px;height:38px;object-fit:contain;flex-shrink:0}.piece-fallback{margin:12px 0}.boat-token{position:absolute;width:58.44px;height:52.88px;object-fit:contain;bottom:6px;left:50%;transform:translateX(-50%);pointer-events:none;opacity:1;filter:drop-shadow(0 1px 1px #0009)}.piece.boat-piece{font-size:10px}.piece.boat-piece.mine .boat-token{filter:drop-shadow(0 0 2px white) drop-shadow(0 0 2px #163748)}@media(max-width:520px){.boat-options{grid-template-columns:repeat(2,minmax(0,1fr))}.boat-option{padding:8px}.boat-option img{height:115px}.boat-token{width:50.09px;height:44.53px}}

.gameplay-notice{border:2px solid #b36305;border-radius:8px;background:#fff4d9;padding:14px;margin:12px 0;font-weight:650}.gameplay-notice[hidden]{display:none}

#collision-video-dialog{max-width:min(90vw,780px);max-height:90vh;overflow:auto;border:2px solid #164c5c;border-radius:12px}#collision-video-dialog::backdrop{background:#000a}#collision-video{display:block;width:100%;max-height:55vh}#collision-choice{border:2px solid #b36305}

/* Collapsible inventories preserve the original board geometry and styles. */
.player-card details{margin-top:8px}.player-card summary,#boat-picker-details>summary,#cannery-directory-details>summary{padding:10px 4px;min-height:44px}#final-assets details{margin:12px 0}#final-assets dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}#final-assets dd{margin:0}

.purchase-group>summary{padding:10px 4px;min-height:44px}.purchase-group .purchase-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:8px}.purchase-group .purchase-row span{font-size:.85rem}

/* Introduction is independent of gameplay video and the original board layout. */
#game-intro{background:linear-gradient(145deg,#102c39,#1c4b59);color:#f8f5ea;border:1px solid #d6af61;border-radius:16px;padding:clamp(18px,4vw,44px);margin-bottom:28px;text-align:center;box-shadow:0 12px 32px #102c3920}
#game-intro[hidden]{display:none}#intro-title{font-family:Georgia,serif;font-size:clamp(2rem,5vw,3.8rem);color:#e4c47c;margin:12px 0}#intro-video{display:block;width:100%;max-width:1000px;max-height:60vh;margin:22px auto;background:#081c24;border-radius:8px;aspect-ratio:2166/962}#game-intro .eyebrow{color:#e4c47c}.intro-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.intro-actions button{min-height:48px;padding:12px 24px}#intro-play{background:#e4c47c;color:#122f3b}#intro-skip{background:transparent;color:#fff;border:1px solid #b8ccd3}#intro-status{font-size:.95rem}#intro-replay{font-size:.85rem;margin-top:8px;padding:8px 12px;min-height:44px}
header .connection:has(#intro-replay){max-width:100%;min-width:0}#intro-replay{display:block;margin-left:auto}@media(max-width:520px){#intro-replay{margin-left:0}}

/* Board-first wheelhouse: presentation only; the authoritative board stays intact. */
:root{--ink:#183a4a;--muted:#526d78;--line:#b8ced5;--gold:#d2ac63;--sea:#123c50;--green:#346b62;background:#e7eff0;color:var(--ink)}
body{background:linear-gradient(135deg,#dbe9ed,#eff3eb)}
header{max-width:1700px;background:linear-gradient(110deg,#123448,#1a5267 66%,#346b62);color:#f7efda;border-bottom:3px solid var(--gold);padding:18px 28px;box-shadow:0 5px 18px #173c4a18}
header h1{color:#f5dfad;font-size:clamp(1.8rem,3vw,3rem);letter-spacing:.015em}header .eyebrow{color:#d9e6e6;font-size:.68rem}header a{color:#f0d599}header .connection{font-size:.8rem;max-width:290px}#intro-replay{background:transparent;border-color:#9ebbc2;color:#f4e8c8}
main{max-width:1700px;padding:20px 24px}footer{max-width:1700px;text-align:center}
.panel{border-color:#afc9d1;box-shadow:0 2px 6px #153c4c0b;background:#fbfdfd;border-radius:10px}
button{min-height:44px;background:#1a5167;border-color:#1a5167}button:hover:enabled{background:#286e80}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ba8325;outline-offset:2px}
body.playing header{padding:10px 24px;min-height:78px}body.playing header h1{font-size:1.8rem}body.playing header .eyebrow{display:none}body.playing header .connection{display:flex;gap:14px;align-items:center;max-width:none}body.playing #intro-replay{margin:0}body.playing main{padding-top:12px}body.playing #feedback:empty{display:none}body.playing #feedback{margin:0 0 8px;font-size:.85rem;min-height:0}
#play-layout{grid-template-columns:minmax(0,65fr) minmax(340px,35fr);gap:16px;align-items:start}
.board-panel{top:12px;padding:14px;height:calc(100dvh - 120px);display:flex;flex-direction:column;background:linear-gradient(155deg,#d5e7e9,#eef3ed);border:2px solid #829fa7;box-shadow:inset 0 0 0 3px #f6edce80}
.board-panel .section-heading{flex-wrap:wrap;gap:8px;margin-bottom:8px}.board-panel h2{font-family:Georgia,serif;color:#214858;margin:0;font-size:1.35rem}#season-info{font-size:.82rem;color:#436267}#expand-board{margin-left:auto;background:#335f5a;border-color:#335f5a;font-size:.85rem}
.board-tools{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:7px 0 9px;font-size:.78rem;flex-shrink:0}.board-tools button{font-size:.83rem;padding:6px 12px}.board-tools output{min-width:45px;text-align:center;font-variant-numeric:tabular-nums}.board-tools span{color:var(--muted);margin-left:auto}.board-tools #board-zoom-in,.board-tools #board-zoom-out{font-size:1.25rem;min-width:44px}
.board-viewport{flex:1;min-height:0;position:relative;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding:16px;background:#d3e4e6;border-radius:4px}#board{margin:0 auto;flex:none;max-width:none}#board-art{max-width:none}.board-panel>p.small{margin:8px 0 0;font-size:.73rem}.board-guide{font-size:.8rem;flex-shrink:0}.board-guide>summary{padding:5px 0;min-height:30px}.board-guide[open]{max-height:180px;overflow:auto}.board-guide #board-note{font-size:.8rem;margin:4px 0}.piece-fallback{margin:4px 0 8px;font-size:.8rem}
#helm{min-width:0;max-height:calc(100dvh - 120px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding:12px;padding-right:3px}#helm>.panel{padding:12px;margin-bottom:10px}#helm h2{font-size:.96rem;margin-bottom:8px}#helm h3{font-size:.87rem;margin:12px 0 7px}#helm p{font-size:.8rem;margin:6px 0 9px}#helm .controls{gap:6px}#helm button{font-size:.8rem;padding:8px 10px}#helm input,#helm select{font-size:.85rem;min-height:44px}#helm label{font-size:.8rem}
#game-status{background:linear-gradient(135deg,#e3f2f5,#f1f8f5);border-top:5px solid #355b65}#game-status .eyebrow{font-size:.63rem;color:#446873}#room-toolbar .room-heading{flex-wrap:wrap;justify-content:flex-start;gap:6px}#room-toolbar .room-heading>div{flex:1 1 100%;display:flex;justify-content:space-between;gap:6px;align-items:center}#room-code{font-size:.85rem;margin:4px 0;font-family:monospace}#game-status #status,#game-status #play-nav{display:none}#game-status #identity{font-size:.77rem;background:transparent;padding:0;margin:6px 0;font-weight:600}#game-status .gameplay-notice{font-size:.75rem;padding:7px;margin:6px 0;border-width:1px}#helm-season{font-weight:750;color:#345f58}#helm-connection{font-size:.72rem;color:#547178}#helm-actor{font-weight:700;border-top:1px solid #bdd5db;padding-top:7px}#helm-actor.your-turn{color:#1d6a49}
#turn-info{font-size:.78rem!important;line-height:1.45;color:#486471}.next-action{font-size:.85rem;border-left-color:#c89d43;padding:9px 10px;margin:8px 0!important}#turn-action{width:100%;background:#236281}#movement-choices{margin-top:8px}#movement-choices button{flex:1 1 120px;background:#285e77}#turn>section{margin-top:10px;padding-top:3px}
#resource-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0}#resource-cards>div{min-width:0;border:1px solid #c4d6dc;background:#f1f6f6;border-radius:5px;padding:8px}#resource-cards dt{font-size:.68rem;color:#496674}#resource-cards dd{font-weight:750;font-size:.96rem;margin:3px 0 0;font-variant-numeric:tabular-nums}
.action-nav{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.action-nav a{flex:1 1 70px;text-align:center;font-size:.74rem;text-decoration:none;padding:9px 5px;background:#e3edf0;border:1px solid #b7cdd6;border-radius:4px;color:#24485b}.action-nav a:focus-visible{outline:3px solid var(--gold)}#space-info{font-size:.78rem;padding:9px}#economy-info,#fishing-info{color:#526d78}#finance-help{font-size:.73rem!important}#bank-details>summary,#crew-inventory>summary{font-size:.82rem;min-height:44px;padding:11px 5px}#bank-details .controls{margin:6px 0}#crew-inventory{margin:0 0 10px;background:#fbfdfd;border:1px solid #afc9d1;border-radius:8px;padding:4px 9px}#resources.panel{padding:0;margin:0;box-shadow:none;border:0}#resources>h2{display:none}#player-summaries{grid-template-columns:minmax(0,1fr);gap:6px}.player-card{padding:8px}.player-card dl{font-size:.75rem;gap:3px 7px}.player-card h3{font-size:.8rem!important}.player-card details>summary{padding:6px 0;font-size:.78rem;min-height:36px}#supplies{font-size:.72rem!important}
#crew-panel{background:#f5f4ea!important}#piece-legend{display:block;margin:0}#piece-legend li{padding:7px 0;border-top:1px solid #d4ddd9;font-size:.75rem;gap:6px}#piece-legend li:first-child{border:0}.legend-boat{width:32px;height:28px}.swatch{flex-shrink:0;width:20px;height:20px;font-size:10px}
#game-messages{list-style:none;padding:0;margin:0;max-height:145px;overflow:auto;font-size:.75rem}#game-messages li{padding:7px 0;border-top:1px solid #d5e1e4}#game-messages li:first-child{border-top:0}#messages-panel>p{font-size:.7rem}
#help-links{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}#help-links a{font-size:.8rem;padding:10px 12px;background:#f5f7f1;border:1px solid #b4c9ce;border-radius:6px;color:#244e60;text-decoration:none}#help summary{min-height:44px;padding:5px 0}.printed-rules{display:block;max-width:100%;height:auto;margin-top:8px}#full-rules{grid-column:1/-1}#full-rules details{margin:8px 0}
.board-panel.expanded{height:auto;position:fixed;inset:10px;z-index:100;padding:14px;background:#e3eef0;max-height:none}.board-panel.expanded .board-viewport{flex:1;min-height:0}.board-panel.expanded #board{max-width:none}.board-panel.expanded .board-tools{display:flex}.board-panel.expanded .board-guide{display:none}.board-panel.expanded #expand-board{background:#94651d;border-color:#94651d;color:#fff;font-weight:700}.board-panel.expanded #board-note{display:none}
@media(max-width:950px){#play-layout{grid-template-columns:minmax(0,1fr)}.board-panel{height:auto;position:static;min-height:0}.board-viewport{flex:none;max-height:75dvh;scrollbar-gutter:auto}#helm{max-height:none;overflow:visible;padding:0;scrollbar-gutter:auto}body.playing header{padding:12px 18px}body.playing header h1{font-size:1.7rem}body.playing header .connection{flex-wrap:wrap;justify-content:flex-end;gap:8px}body.playing main{padding:12px 18px}#helm>.panel{padding:14px}.board-panel.expanded{position:fixed;height:auto}.board-panel.expanded .board-viewport{flex:1;max-height:none}#resource-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){header,body.playing header{padding:12px;gap:8px}header h1,body.playing header h1{font-size:1.5rem}header .connection,body.playing header .connection{justify-content:flex-start;text-align:left;font-size:.73rem}header #intro-replay{font-size:.75rem;padding:6px 10px}main,body.playing main{padding:10px}.board-panel{padding:10px}.board-panel h2{font-size:1.05rem}.board-tools span{display:none}.board-tools{gap:5px}#expand-board{font-size:.78rem}.board-panel .section-heading{gap:6px}.board-panel #season-info{font-size:.7rem}.board-panel.expanded{inset:4px;padding:9px}.board-panel.expanded #expand-board{max-width:160px}#resource-cards{grid-template-columns:repeat(2,minmax(0,1fr))}#help-links{gap:5px}#help-links a{flex:1 1 140px;text-align:center;padding:10px 7px}#helm .controls button{flex:1 1 120px}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background-color .12s ease}}
#game-status>.eyebrow{display:none}#game-status #identity{font-weight:500;font-size:.73rem}#game-status .room-heading>div{flex-basis:100%}#game-status #helm-connection{font-size:.7rem}

/* Full-viewport presentation of the unchanged approved collision clip. */
#collision-video-dialog{position:fixed;inset:0;margin:0;width:100dvw;height:100dvh;max-width:none;max-height:none;overflow:hidden;border:0;border-radius:0;padding:16px 20px;background:#06131bf5;color:#f5f1e5;box-shadow:none}
#collision-video-dialog[open]{display:flex;flex-direction:column;align-items:center;gap:8px}
#collision-video-dialog::backdrop{background:#02090df5}
#collision-video-dialog h2{font-family:Georgia,serif;color:#e5c77e;font-size:clamp(1rem,2.3vw,1.5rem);margin:0;flex-shrink:0;text-align:center}
#collision-video-dialog>p{font-size:.8rem;line-height:1.3;margin:0;text-align:center;max-width:780px;flex-shrink:0}
#collision-video{flex:1;min-height:0;display:block;width:100%;height:100%;max-height:none;object-fit:contain;background:#02070a}
#collision-video-dialog button{flex-shrink:0;min-height:44px;background:#163f51;border-color:#9cb6bf}
#collision-video-skip{position:absolute;right:20px;top:12px;z-index:1;background:#eeddb1!important;color:#193849;border-color:#eeddb1!important;font-weight:700}
#collision-video-dialog h2{padding-right:170px;padding-left:170px;width:100%}
@media(max-width:600px){#collision-video-dialog{padding:12px 8px;gap:6px}#collision-video-dialog h2{padding:0 145px 0 0;text-align:left;font-size:1rem}#collision-video-skip{right:8px;top:8px;font-size:.8rem;padding:8px 10px}#collision-video-dialog>p{font-size:.72rem}#collision-video-play{font-size:.85rem}}

/* Complete mockup footer, with space reserved above it for the whole board. */
#game-footer{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}#game-footer #help-links{margin:0}#footer-room-actions{display:flex;gap:8px;align-items:center}#end-game{background:#a12d3a;border-color:#a12d3a}#end-game:hover:enabled{background:#812331}
@media(min-width:951px){body.playing main{padding-bottom:100px}body.playing #game-footer{position:fixed;bottom:10px;left:24px;right:24px;z-index:30;max-width:1652px;margin:auto;background:linear-gradient(110deg,#123448,#1a5267);border-top:2px solid #d2ac63;border-radius:7px;padding:10px 12px;box-shadow:0 3px 14px #15394b40}body.playing #game-footer #help-links{gap:8px;flex:1}body.playing #game-footer a{color:#eaf2ee;background:transparent;border-color:#72969f;font-size:.76rem;padding:10px;min-height:44px}body.playing #footer-room-actions button{font-size:.8rem}body.playing #leave-room{background:#2c605b;border-color:#8aafa4}.board-panel{height:calc(100dvh - 205px)}#helm{max-height:calc(100dvh - 205px)}}
@media(max-width:950px){#game-footer{margin-top:12px}#game-footer #help-links{flex:1}#footer-room-actions{display:none}}
.footer-icon{display:inline-block;min-width:17px;margin-right:4px;font-size:1.05em;font-weight:750;text-align:center;vertical-align:middle}#help-links a{display:inline-flex;align-items:center;justify-content:center}

/* One shared camera transform frames the original circle; no spaces are redrawn. */
body.circular-board{background:radial-gradient(ellipse at 20% 10%,#26586b,#102f42 80%);color:#e7efe9}body.circular-board main{max-width:1800px}body.circular-board header{max-width:1800px;background:linear-gradient(105deg,#092638,#184b62);border-bottom-color:#c6a567}body.circular-board #feedback{color:#cbdedc}body.circular-board footer{color:#b6cdcf}
.circular-board .board-panel{padding:9px;background:radial-gradient(ellipse at center,#27566c,#103348 80%);border-color:#c4a263;box-shadow:inset 0 0 0 2px #5f775d40}.circular-board .board-panel h2{color:#ead29f;font-size:1.1rem}.circular-board .board-panel #season-info{display:none}.circular-board .board-panel .section-heading{gap:6px;margin-bottom:5px}.circular-board .board-tools{margin-left:auto;padding:0;gap:4px}.circular-board .board-tools span{display:none}.circular-board .board-tools button{padding:5px 9px;min-height:40px}.circular-board .board-tools output{color:#e7efe9;min-width:38px}.circular-board #expand-board{margin-left:0;min-height:40px;border-color:#bda166;background:#345b55}.circular-board .board-panel>p.small{font-size:.7rem;color:#c7dbd9;margin-top:5px}.circular-board .board-viewport{background:transparent;scrollbar-gutter:auto;overflow:auto}
#circular-stage{position:relative;overflow:hidden;min-width:0;margin:auto}#board-world{position:absolute;transform-origin:0 0;overflow:clip;overflow-clip-margin:440px}#board-world #board{position:absolute;border:0;background:transparent;overflow:visible;margin:0;max-width:none}#board-world #board-art{filter:drop-shadow(0 0 2px #d4b16e)}
#cannery-signs{position:absolute;inset:0;pointer-events:none}.cannery-sign{position:absolute;background:linear-gradient(145deg,#10364e,#092435);border:1px solid #d7b675;border-radius:5px;box-shadow:0 2px 5px #0005;display:flex;flex-direction:column;justify-content:center;text-align:center;color:#f3dfb4;padding:3px;overflow:hidden}.cannery-sign strong{font-family:Georgia,serif;font-size:11px;line-height:1.2;white-space:nowrap}.cannery-sign span{font-size:9px;line-height:1.4;color:#bfd5ce}.cannery-sign.closed{border-color:#c6896d}.cannery-sign.closed span{color:#f0c6a0}
#compact-canneries{color:#f1deba;font-size:.8rem;margin-top:6px}#compact-canneries>summary{min-height:44px;padding:9px 0}#cannery-signs.compact{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;pointer-events:auto}#cannery-signs.compact .cannery-sign{position:static!important;min-height:44px;min-width:0}.circular-board #helm>.board-guide{color:#284d5c;background:#f1f7f7;border:1px solid #b8ccd2;border-radius:5px;padding:4px 9px;margin-bottom:8px}
.circular-board .board-panel.expanded{background:radial-gradient(ellipse at center,#27566c,#092637);border:1px solid #c9ad73}.circular-board .board-panel.expanded .board-viewport{max-height:none}.circular-board .board-panel.expanded #expand-board{background:#aa7f2f}
@media(max-width:950px){.circular-board .board-viewport{max-height:none;min-height:260px}.circular-board .board-panel.expanded .board-viewport{min-height:0}.circular-board .board-panel .section-heading{flex-wrap:wrap}.circular-board .board-tools{margin-left:0}.circular-board .board-panel h2{margin-right:auto}.circular-board .board-panel>p.small{display:none}}
@media(max-width:600px){.circular-board .board-panel h2{font-size:.95rem}.circular-board .board-tools button{min-height:44px}.circular-board #expand-board{min-height:44px}.circular-board .board-panel .section-heading{gap:5px}}
.circular-board #helm,.circular-board .panel:not(.board-panel){color:var(--ink)}
@media(min-width:601px) and (max-width:950px){.cannery-sign strong{font-size:10px;white-space:normal;line-height:1.1}}
.circular-board #game-status .room-heading>div{flex-wrap:nowrap;align-items:center}.circular-board #game-status #copy-room{flex-shrink:0;padding:6px 9px}.circular-board #game-status #identity{font-size:.72rem;margin:3px 0}.circular-board #helm-season,.circular-board #helm-connection{display:inline-block;font-size:.72rem;margin:3px 8px 3px 0}.circular-board #helm-actor{font-size:.79rem;margin:5px 0 0;padding-top:5px}.circular-board #game-status{padding:9px 12px}.circular-board #game-status #room-code{font-size:.8rem}

/* Nautical refinement: upright narrow signs and server-state dice. */
.cannery-sign{border:2px solid #e7b65a;border-radius:8px;box-shadow:0 2px 8px #0007,inset 0 0 0 1px #70572d;padding:5px}.cannery-sign strong{font-size:12px;white-space:normal}.cannery-sign.vertical strong{font-size:12px;line-height:1.25}.cannery-sign.vertical::before{content:"⚓";font-size:24px;color:#efc577;line-height:1.2;margin-bottom:4px}.cannery-sign span{font-size:10px}
#movement-dice{display:flex;align-items:center;justify-content:center;gap:18px;padding:7px 0}.red-die{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:5px;width:58px;height:58px;padding:8px;background:linear-gradient(140deg,#e42b22,#9d090b);border:2px solid #7e1111;border-radius:8px;box-shadow:inset 2px 2px 2px #ff9c8f,0 2px 4px #0003;color:white;align-items:center;justify-items:center;font-size:24px}.pip{width:9px;height:9px;border-radius:50%;background:#fff7e9;box-shadow:0 1px 1px #6118}.pip.empty{visibility:hidden}.dice-plus{font-size:28px;font-weight:700;color:#153d4b}.movement-summary{text-align:center;font-weight:700;margin:3px 0 7px}.circular-board #turn-info{font-size:.75rem;color:#496774;margin:4px 0}.circular-board header h1{color:#efc36e;text-shadow:0 2px 2px #0008}.circular-board .panel:not(.board-panel){background:linear-gradient(140deg,#f4ffff,#e7f3f5);border:2px solid #78a1aa;border-radius:10px}.circular-board #turn{padding:12px}.circular-board #turn h2{background:#063950;color:#f5fbff;font-size:1rem;padding:7px 10px;border-radius:5px}.circular-board .action-nav a{background:#074663;color:white;font-weight:600}.circular-board #resource-cards{gap:5px}.circular-board #resource-cards>div{padding:7px}.circular-board #resource-cards dd{font-size:1.05rem}
@media(min-width:951px){body.circular-board #play-layout{grid-template-columns:minmax(0,57fr) minmax(390px,43fr);gap:12px}.circular-board .board-panel{padding:7px}.circular-board #helm{scrollbar-gutter:stable}}
@media(max-width:600px){.red-die{width:52px;height:52px}.cannery-sign strong{font-size:11px}.circular-board #movement-dice{gap:15px}}

#active-player{padding:10px 13px}#active-player h2{font-size:.9rem;color:#075272;margin-bottom:4px}#captain-name{font-size:1.05rem;font-weight:750;margin:3px 0}#captain-boat,#captain-position{font-size:.76rem;margin:3px 0}.circular-board #game-status #identity{display:none}.circular-board #space-info{border:1px solid #9bbec8;border-radius:6px;background:#edf8fb;padding:8px;margin-bottom:8px}.circular-board #turn>h3{margin-top:12px}.circular-board #turn .next-action{margin-bottom:8px}.circular-board #turn .action-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.circular-board #turn .action-nav a{padding:9px 5px;min-height:44px;text-align:center}.circular-board #turn .action-nav a:last-child{grid-column:auto}

/* Reserve more height for the circle and compact the wheelhouse. */
@media(min-width:951px){body.circular-board header{padding-top:10px;padding-bottom:10px}.circular-board #feedback{margin:4px 0 6px}.circular-board .board-panel{height:calc(100dvh - 175px)}.circular-board #helm{max-height:calc(100dvh - 175px)}}
#active-player{padding:8px 12px}#active-player h2{display:none}#active-player p{line-height:1.3;margin:2px 0}#captain-name{font-size:.95rem}.circular-board #game-status{padding:8px 12px}.circular-board #helm-actor{display:inline-block;font-size:.75rem;margin:2px 0;padding:0;border:0}.circular-board #helm-season,.circular-board #helm-connection{margin:2px 8px 2px 0}.circular-board #turn h2{padding:5px 9px;margin-bottom:4px}.circular-board #movement-dice{padding:4px 0}.circular-board #turn-info{margin:2px 0;font-size:.7rem}.circular-board .movement-summary{margin:2px 0 4px;font-size:.82rem}.circular-board #turn>h3{margin:8px 0 4px;font-size:.85rem}.circular-board #resource-cards dt{font-size:.7rem}.circular-board #resource-cards dd{font-size:1rem}.circular-board #resource-cards>div{padding:5px 8px}

@media(min-width:601px) and (max-width:1400px){.cannery-sign strong,.cannery-sign.vertical strong{font-size:11px}.cannery-sign.vertical::before{font-size:18px;margin-bottom:2px}.cannery-sign span{font-size:9px}}

#captain-picture{float:left;width:58px;height:58px;object-fit:contain;margin:0 12px 0 0}#active-player{min-height:76px;display:flow-root}.circular-board header h1{text-transform:uppercase;letter-spacing:.015em;font-size:clamp(1.4rem,2.8vw,3rem)}.circular-board header{border:1px solid #d4ae60;border-bottom-width:3px;border-radius:0 0 12px 12px}

@media(min-width:951px){.circular-board #helm{max-height:calc(100dvh - 205px)}}

/* Separate generated scenery, approved by the owner; never intercepts board input. */
body.circular-board{position:relative;isolation:isolate;background:#123f55}body.circular-board::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(#07344622,#092a3b33),url('/nautical-background.png') center top / cover no-repeat}.circular-board .board-panel,.circular-board .board-panel.expanded{background:transparent;box-shadow:inset 0 0 0 1px #d7b86d44}.circular-board header{background:linear-gradient(100deg,#052b3ef2,#074a60d9)}.circular-board #feedback{color:#fff;text-shadow:0 1px 3px #000}.circular-board .board-panel>p.small{color:#fff;text-shadow:0 1px 3px #000}.circular-board .board-panel.expanded{background:linear-gradient(#082b3a22,#082b3a44),url('/nautical-background.png') center / cover no-repeat}

.circular-board .board-panel .section-heading{background:#07374ae8;border-radius:6px}.circular-board .board-panel h2{padding-left:7px}.circular-board .board-tools output{background:#07374a;border-radius:4px;padding:3px;color:#fff}

/* Palette sampled from the reference-derived scenery; original board remains untouched. */
body.circular-board{--nautical-navy:#0a364b;--nautical-ink:#12374a;--nautical-ocean:#268ec0;--nautical-water:#55b8dd;--nautical-gold:#d5b45c;--nautical-cream:#fff4dd;--ink:var(--nautical-ink);background:var(--nautical-navy)}
body.circular-board::before{background:linear-gradient(#0a364b08,#0a364b18),url('/approved-reference-scenery.png') center top / cover no-repeat}.circular-board .board-panel.expanded{background:linear-gradient(#0a364b08,#0a364b18),url('/approved-reference-scenery.png') center / cover no-repeat}
body.circular-board[data-scenery="plain"]::before{background:none}body.circular-board[data-scenery="plain"] .board-panel{background:radial-gradient(ellipse at center,#27566c,#103348 80%)}body.circular-board[data-scenery="plain"] .board-panel.expanded{background:var(--nautical-navy)}
.circular-board header,.circular-board .board-panel .section-heading{background:var(--nautical-navy)}.circular-board header{border-color:var(--nautical-gold)}.circular-board header h1,.circular-board .board-panel h2{color:var(--nautical-gold)}.circular-board .board-panel{border-color:var(--nautical-gold)}.circular-board .panel:not(.board-panel){background:var(--nautical-cream);border:1px solid var(--nautical-gold);color:var(--nautical-ink)}.circular-board #turn h2{background:var(--nautical-navy);color:var(--nautical-cream)}.circular-board .cannery-sign{background:var(--nautical-navy);border-color:var(--nautical-gold);color:var(--nautical-cream)}.circular-board .cannery-sign strong,.circular-board .cannery-sign span{color:var(--nautical-cream)}.circular-board .cannery-sign.vertical::before{color:var(--nautical-gold)}.circular-board .cannery-sign.closed{border-style:dashed}.circular-board .action-nav a,.circular-board #movement-choices button,.circular-board #turn-action{background:var(--nautical-navy);color:var(--nautical-cream);border-color:var(--nautical-navy)}.circular-board #resource-cards>div,.circular-board #space-info{background:#fffaf0;border-color:#d5b45c88}.circular-board #game-status{border-top:3px solid var(--nautical-gold)}.circular-board #game-footer{background:var(--nautical-navy);border-color:var(--nautical-gold)}#scenery-toggle{font-size:.76rem;min-height:44px;border-color:#d5b45c;color:#fff4dd;background:#0a364b}.circular-board #movement-total,.circular-board #turn-info{color:var(--nautical-ink)}
.circular-board #feedback{width:fit-content;max-width:100%;padding:0 6px;border-radius:4px;background:var(--nautical-navy);color:var(--nautical-cream);text-shadow:none}.circular-board .board-panel>p.small,.circular-board #compact-canneries>summary{background:var(--nautical-navy);color:var(--nautical-cream);text-shadow:none;border-radius:4px}.circular-board #game-status,.circular-board #game-status #room-toolbar{background:var(--nautical-navy);color:var(--nautical-cream)}.circular-board #game-status #room-code,.circular-board #game-status #helm-season,.circular-board #game-status #helm-connection{color:var(--nautical-cream)}.circular-board #game-status #helm-actor{color:#c7e4ca}.circular-board #game-status #copy-room{border-color:var(--nautical-gold);background:var(--nautical-navy);color:var(--nautical-cream)}

.circular-board .cannery-sign.vertical::before{content:"";display:block;width:25px;height:20px;align-self:center;background:url('/cannery-sign.svg') center / contain no-repeat;flex-shrink:0;margin-bottom:2px}.circular-board .cannery-sign:not(.vertical){padding-left:30px;background:var(--nautical-navy) url('/cannery-sign.svg') 4px center / 23px 22px no-repeat}.circular-board .cannery-sign:not(.vertical) strong{font-size:11px}

.circular-board #turn>#crew-panel,.circular-board #turn>#messages-panel{padding:10px 12px;margin:10px 0;border-color:var(--nautical-gold)}.circular-board #turn>#crew-panel h2,.circular-board #turn>#messages-panel h2{font-size:.85rem}.circular-board #turn>#crew-panel{margin-top:12px}
.circular-board .cannery-sign:not(.vertical){padding-top:2px;padding-bottom:2px}.circular-board .cannery-sign.vertical{padding-top:2px;padding-bottom:2px}@media(min-width:601px) and (max-width:950px){.circular-board .cannery-sign.vertical strong{font-size:10px;line-height:1.1}.circular-board .cannery-sign.vertical::before{height:18px}}
.circular-board #movement-choices button:disabled,.circular-board #turn-action:disabled{background:#e5ebed;color:#526875;border-color:#bdcbd1;cursor:default}

/* November-only Solo setup, displayed only when the server enables it. */
#solo-choice{margin:12px 0 18px;padding:12px;border:1px solid #d5b45c;border-radius:6px;background:#fff4dd;color:#12374a}#solo-choice h3{margin:0 0 6px}#solo-choice p{margin:6px 0 10px}#solo-choice .small{margin-bottom:0}#solo-choice .controls label{max-width:280px}#create-solo{border-color:#d5b45c;background:#0a364b;color:#fff4dd}

.solo-setup-preview #room-toolbar{padding:12px;border:1px solid #d5b45c;border-radius:8px;background:#0a364b;margin-bottom:10px;color:#fff4dd}.solo-setup-preview #room-code,.solo-setup-preview #status{color:#fff4dd}.solo-setup-preview #solo-room-label{margin:0 0 8px;color:#d5b45c}.solo-setup-preview #identity{background:#fff4dd;color:#12374a;border:1px solid #d5b45c}
/* Expanded view uses both viewport edges, without the normal board's height cap. */
.circular-board .board-panel.expanded{height:auto}
/* Short desktop windows may scroll; fixed-size Dock signs must not shrink the circle. */
@media(min-width:951px) and (max-height:700px){
 .circular-board .board-panel:not(.expanded){height:600px;position:relative;top:auto}
 body.circular-board.playing #game-footer{position:static;margin-top:12px}
}
/* Let controls continue down the page instead of clipping them inside a second scroller. */
.circular-board #helm{max-height:none;overflow:visible;overscroll-behavior:auto;scrollbar-gutter:auto}

/* Counter-rotate token faces only; their registered anchor positions rotate with the board. */
#board.digital-board-season1-top .piece{transform:translate(calc(-50% + var(--offset-x,0px)),calc(-50% + var(--offset-y,0px))) rotate(180deg)}

/* The legend stays upright and uses readable screen-size type outside the board. */
#board-symbol-legend{box-sizing:border-box;background:#fffdf3;color:#153c4b;border:2px solid #d9ad45;border-radius:12px;padding:16px;margin:14px 0 0;max-width:100%;text-align:left}#board-symbol-legend h3{font-size:18px;line-height:1.25;margin:0 0 12px}#board-symbol-legend ul{list-style:none;padding:0;margin:0}#board-symbol-legend li{display:flex;align-items:center;gap:10px;min-height:36px;font-size:15px;font-weight:600;line-height:1.25;margin:0}#board-symbol-legend svg{width:29px;height:29px;flex:0 0 29px}#board-symbol-legend p{font-size:12px;line-height:1.4;margin:12px 0 0}#board-symbol-legend.legend-floating{position:absolute;width:280px;margin:0;z-index:2}

#board-symbol-legend{border-radius:6px;padding:14px}#board-symbol-legend li{align-items:center;min-height:0;font-weight:400;margin:0 0 7px}#board-symbol-legend li:last-child{margin-bottom:0}#board-symbol-legend strong{display:block;font-size:14.5px;line-height:1.25}#board-symbol-legend .symbol-meaning{display:block;font-size:13px;line-height:1.3;margin-top:2px}#board-symbol-legend svg{width:30px;height:30px;flex-basis:30px}

/* Cosmetic outlines preserve the exact legal hit regions and visible symbols. */
.legal-space-overlay .choice-marker{fill:#00aeba;fill-opacity:.06;stroke:#007f91;stroke-width:3;paint-order:stroke fill;filter:drop-shadow(0 0 1px #fff);vector-effect:non-scaling-stroke}
.legal-space-overlay .choice-marker:hover,.legal-space-overlay .choice-marker:focus-visible{fill-opacity:.13;stroke:#00495d;stroke-width:4;outline:none}
#current-space-outline{fill:none;stroke:#ffd34d;stroke-width:3;stroke-dasharray:6 3;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 1px #082f44)}

/* A clear turn invitation; animation never supplies or changes dice results. */
#captain-turn-banner{padding:14px;border:2px solid #c59a3e;border-radius:9px;background:#fff9e8;margin:8px 0 12px}
#captain-turn-banner h3{font-family:Georgia,serif;font-size:1.35rem;margin:0;color:#123c50}
#captain-turn-banner .next-action{background:transparent;border:0;padding:0;margin:7px 0 12px;font-weight:500}
#captain-turn-banner button{min-height:48px;width:100%;font-weight:750;background:#075667;border-color:#075667}
#captain-turn-banner.captain-active{border-color:#c19528;box-shadow:inset 4px 0 #efc95e}
#captain-turn-banner.captain-waiting{border-color:#b1c3c7;background:#edf4f3}
#dice-label{text-align:center;margin:6px 0;color:#496774}
.dice-rolling .red-die{animation:captain-roll .36s ease-in-out infinite alternate}
.dice-rolling .red-die:nth-of-type(3){animation-delay:-.18s}
.dice-reveal:not(.dice-rolling) .red-die{animation:captain-settle .42s ease-out}
@keyframes captain-roll{from{transform:translateY(-3px) rotate(-12deg)}to{transform:translateY(3px) rotate(12deg)}}
@keyframes captain-settle{0%{transform:scale(.88) rotate(-7deg)}65%{transform:scale(1.06) rotate(2deg)}100%{transform:none}}
@media(prefers-reduced-motion:reduce){.dice-rolling .red-die,.dice-reveal:not(.dice-rolling) .red-die{animation:none}}

#captain-turn-banner.quota-filled{background:#fff4d5;border-color:#c58a22;box-shadow:inset 4px 0 #e5ab35}
#quota-filled-note{font-size:.94rem;line-height:1.5;margin:8px 0 12px;color:#563d15}

#captain-turn-banner.boats-full{background:#fff4d5;border-color:#c58a22;box-shadow:inset 4px 0 #e5ab35}
#boat-full-note{font-size:.94rem;line-height:1.5;margin:8px 0 12px;color:#563d15}

#chance-card-notice{margin:12px 0;padding:14px;background:#fffdf4;border:2px solid #cb9d39;border-radius:8px;box-shadow:0 2px 5px #123b4c12;color:#153d4b}
#chance-card-notice .eyebrow{color:#a52c40;font-weight:750;letter-spacing:.12em}
#chance-notice-title{font-family:Georgia,serif;font-size:1.15rem;line-height:1.35;margin:6px 0 10px}
#chance-notice-text{line-height:1.55;margin:0 0 10px}
#chance-notice-status{font-size:.85rem;color:#496774;margin:0}

#boat-travel-layer{position:absolute;inset:0;pointer-events:none;z-index:6}
.boat-in-transit{position:absolute;pointer-events:none}.boat-in-transit .piece{pointer-events:none}
#catch-celebration{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);z-index:200;max-width:calc(100vw - 24px);width:390px;padding:16px 18px;background:#fff8df;border:3px solid #d7ad43;border-radius:12px;box-shadow:0 6px 24px #082e4c55;color:#123c50}
#catch-celebration strong{font-family:Georgia,serif;font-size:1.25rem}#catch-celebration p{font-weight:650;margin:8px 0}#catch-celebration button{padding:6px 12px;min-height:44px}

#season-introduction{border:2px solid #cfa63f!important;padding:14px;overflow:auto}#season-introduction svg{float:left;width:90px;height:75px;margin-right:12px}#season-introduction h2{font-family:Georgia,serif}#season-introduction p{font-size:.85rem}#season-introduction button{min-height:44px}
#jim-commentary{border-top:1px solid #66838b;margin-top:10px;padding-top:9px;font-size:.85rem}#jim-commentary p{margin:5px 0;color:#fff3cc}
#sea-sounds{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-top:1px solid #66838b;padding-top:10px;margin-top:10px}#sea-sounds button{min-height:44px}#sea-sounds label{flex:1 1 120px}#sea-sounds input{padding:0;min-height:32px}#sea-sound-status{width:100%;font-size:.75rem}
#voyage-journal{margin-top:16px;border-top:1px solid #cba95a;padding-top:12px}#voyage-journal summary{min-height:44px}.journal-filters,.journal-pages{display:flex;gap:10px;flex-wrap:wrap}.journal-filters label{flex:1 1 140px}#journal-entries{padding-left:22px;max-height:520px;overflow:auto}#journal-entries li{padding:9px 4px;border-bottom:1px solid #d7d2b9}#journal-entries p{font-size:.85rem;margin:4px 0}.journal-pages button{min-height:44px}#journal-count{font-size:.8rem;color:#496774}.recap-fleet{border:1px solid #c6aa60;border-radius:8px;padding:12px;margin:12px 0}#voyage-recap{margin-top:24px;border-top:2px solid #c6aa60;padding-top:14px}

#sale-celebration{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);z-index:201;width:410px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 120px);overflow:auto;padding:18px;background:linear-gradient(135deg,#fff8df,#fffdf3);border:3px solid #d7ad43;border-radius:12px;box-shadow:0 6px 24px #082e4c55;color:#123c50}
#sale-celebration>strong{font-family:Georgia,serif;font-size:1.3rem}#sale-celebration .sale-captain{font-weight:750;margin:10px 0 6px}#sale-celebration dl{display:grid;grid-template-columns:1fr auto;gap:7px 16px;margin:8px 0 14px}#sale-celebration dd{margin:0;font-weight:700;text-align:right}#sale-celebration dt:last-of-type,#sale-celebration dd:last-of-type{border-top:1px solid #cba54b;padding-top:9px;font-size:1.05rem}#sale-celebration button{min-height:44px}

#fleet-dashboard{margin:16px 0;padding:12px;border:1px solid #c4a252;border-radius:8px;background:#fffaf0}#fleet-heading{font-size:1.05rem;min-height:36px;color:#123c50}#fleet-totals{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;font-size:.86rem}#fleet-totals dd{margin:0;font-weight:700}#fleet-boat-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}.fleet-boat-card{padding:12px;border:2px solid #81a99b;border-radius:9px;background:#f7fcf8;min-width:0}.fleet-boat-heading{display:flex;align-items:center;gap:10px}.fleet-boat-heading img{object-fit:contain}.fleet-boat-heading h4{font-size:1.05rem;margin:0}.fleet-status{font-weight:750;margin:6px 0!important}.fleet-boat-card meter{width:100%;height:20px}.fleet-boat-card dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;font-size:.85rem;margin:8px 0 0}.fleet-boat-card dd{margin:0;font-weight:650;text-align:right}.fleet-near,.fleet-quota{background:#fff6d9;border-color:#d3a33a}.fleet-full{background:#fff0e6;border-color:#be6b3e}.fleet-neutral{background:#f0f3f4;border-color:#9aaeb3}.fleet-boat-card>p:last-child:not(.fleet-status){font-size:.8rem}#fleet-quota-note{border-left:3px solid #c69426;padding-left:9px;color:#664515;font-size:.85rem}#fleet-links{font-size:.85rem;margin:12px 0 0}#fleet-links span{display:block;margin-top:6px;color:#496774}

#turn-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
}
#voyage-guide-toggle {
  max-width: 100%;
  min-height: 32px;
  margin: 0;
  padding: 5px 8px;
  font-size: .72rem;
  background: #eaf5f4;
  color: #123c50;
  border-color: #9ab9bb;
}
#first-voyage-guide{border:2px solid #76a5b0;border-radius:8px;padding:12px;background:#edf8fb;color:#123c50;margin:10px 0}#first-voyage-guide h3{margin:5px 0;font-family:Georgia,serif;font-size:1.15rem}#first-voyage-guide .eyebrow{font-size:.7rem;color:#456e7d}#first-voyage-text{font-size:.9rem;line-height:1.5;margin:8px 0}.first-voyage-buttons{display:flex;gap:7px;flex-wrap:wrap}.first-voyage-buttons button{font-size:.8rem;padding:8px 10px;min-height:44px}#first-voyage-got-it,#first-voyage-skip{background:#fffaf0;color:#123c50;border-color:#9ab9bb}
#season-summary{border:1px solid #c4a252;border-radius:8px;padding:12px;margin:16px 0;background:#fffaf0}#season-summary-heading{min-height:36px;color:#123c50}#season-summary-status{font-size:.85rem;color:#496774}#season-summary-captains{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}.season-captain{border:1px solid #c7b985;border-radius:8px;padding:12px;background:#fffdf6}.season-captain.mine{border:2px solid #447b8a}.season-captain h4{margin:0 0 10px;font-size:1rem}.season-captain dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;font-size:.85rem}.season-captain dd{margin:0;text-align:right;font-weight:700}.season-captain>p{color:#785519;font-size:.85rem;margin:8px 0 0}

#solo-rematch{margin:18px 0;padding:16px;border:2px solid #c4a252;border-radius:9px;background:#fff8df;color:#123c50}#solo-rematch h3{font-family:Georgia,serif;font-size:1.2rem;margin-top:0}#solo-rematch-button{min-height:48px;font-weight:750}#solo-rematch-status{font-size:.9rem}#rematch-origin{padding:12px}#rematch-origin p{font-size:.9rem}#rematch-view-previous{min-height:44px}

/* Chance reveal is decorative: the authoritative instructions remain readable. */
#chance-card-notice{position:relative;overflow:visible;border-radius:14px;box-shadow:3px 4px 0 #e5d7b3,6px 8px 0 #123b4c16;padding-right:76px}
#chance-deck{position:absolute;right:15px;top:18px;width:38px;height:52px;border:2px solid #f4d478;border-radius:6px;background:repeating-linear-gradient(45deg,#153d4b 0 6px,#23566a 6px 8px);box-shadow:3px 3px 0 #fffdf4,5px 5px 0 #153d4b;display:grid;place-items:center;color:#ffdf7d;pointer-events:none}
#chance-deck span{font:bold 32px Georgia,serif}
#chance-reveal-skip{font-size:.8rem;padding:5px 8px;min-height:32px;margin:2px 0 8px}
#chance-card-notice.chance-revealing{border-color:#ad7820}
@media(max-width:480px){#chance-card-notice{padding-right:64px}#chance-deck{right:12px;width:30px;height:44px}}
@media(prefers-reduced-motion:reduce){#chance-card-notice,#chance-deck{transform:none!important}}

#season-clock{border:2px solid #d1a33c}#season-clock h2{font-size:1.05rem;margin-top:0}#season-clock-captains{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px}#season-clock dl{margin:0;padding:10px;border:1px solid #cad7d9;border-radius:8px;background:#fffdf4}#season-clock dt{font-weight:700}#season-clock dd{margin:5px 0 0;font-variant-numeric:tabular-nums;font-size:1.15rem}#season-clock .clock-running{border:2px solid #276e60;background:#edf8ef}#season-clock .clock-used{background:#f4ead6;color:#685b45}#season-clock-note{font-size:.85rem;line-height:1.5;margin-bottom:0}

#game-status .gameplay-notice{color:#153d4b}

#voyage-length-setup{max-width:520px;background:#fffaf0;border:1px solid #d5b45c;border-radius:10px;padding:14px;margin-bottom:18px}#voyage-length-setup label{font-weight:750;margin-bottom:5px}#voyage-length-summary{margin:8px 0}#voyage-length-setup .small{margin-bottom:0}#helm-voyage-length{font-size:.8rem;margin:4px 0;color:inherit}

.voyage-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px;margin:18px 0}.captain-name{max-width:400px}.voyage-choices #solo-choice,.voyage-choices #human-choice{margin:0;padding:18px;border:2px solid #d5b45c;border-radius:12px;background:#fff4dd;color:#12374a}.voyage-choices h3{font-size:1.3rem;margin:6px 0 12px}.voyage-choices #human-choice{border-color:#639ea9;background:#edf7f7}.voyage-choices .entry-fields{margin-top:18px}#human-invitation{margin:18px 0;padding:16px;border:1px solid #639ea9;border-radius:10px;background:#edf7f7}#human-invitation h3{margin-top:0}#human-invitation button{margin:10px 0}#invitation-link{font-size:.9rem}

/* Readable next-action instructions after returning from the enlarged board. */
#captain-turn-banner #turn-pending{font-size:1.05rem;line-height:1.4;font-weight:600;color:#153d4b}#captain-turn-banner #turn-action,#captain-turn-banner #captain-next{font-size:1.05rem;line-height:1.3;min-height:48px;padding:10px 14px}#captain-turn-banner h3{font-size:1.35rem}#turn #landing-info,#turn #fishing-info,#turn #chance-notice-text{font-size:1.125rem;line-height:1.65}

.board-tools .boat-follow-option{display:flex;align-items:center;gap:6px;white-space:normal;font-size:.85rem}.board-tools .boat-follow-option input{margin:0;flex-shrink:0}

.board-tools{min-width:0;max-width:100%}.board-tools .boat-follow-option{min-width:0;max-width:100%}

#turn>#fishing{margin-top:10px;padding-top:8px;border-top:2px solid #d1a33c}#turn>#fishing h3{margin-top:0}#collision-notice{width:min(92vw,580px);max-height:88dvh;overflow:auto;border:3px solid #d1a33c;border-radius:14px;padding:24px;background:#fff4dd;color:#153d4b;box-shadow:0 16px 60px #0006}#collision-notice::backdrop{background:#062c40aa}#collision-notice h2{font-family:Georgia,serif;font-size:1.5rem;margin:0 0 16px}#collision-notice p{font-size:1.125rem;line-height:1.5}#collision-notice-boat,#collision-notice-charge{font-weight:750}#collision-notice button{min-height:48px;width:100%;font-weight:750}

/* Turn controls use the full page height; no short inner scrolling window. */
.circular-board #helm{max-height:none;overflow:visible;overscroll-behavior:auto;scrollbar-gutter:auto}

/* Compact the turn summary and guide without shrinking board symbols. */
#captain-turn-banner{padding:10px;margin:5px 0 8px}
#captain-turn-banner .next-action{margin:5px 0 8px}
#first-voyage-guide{padding:9px;margin:7px 0}
#helm #first-voyage-guide h3{font-size:1.05rem;margin:3px 0}
#helm #first-voyage-guide p{margin:4px 0 6px}
#helm #first-voyage-text{font-size:.85rem;line-height:1.4}
#helm .first-voyage-buttons button{font-size:.8rem;padding:7px 9px;min-height:44px}

/* Moving tokens are never browser scroll anchors. Keep the animation control
   from changing toolbar height when a boat starts or stops moving. */
#board-viewport{overflow-anchor:none}
#skip-boat-motion[hidden]{display:block!important;visibility:hidden;pointer-events:none}

#dock-sale-choice{width:min(92vw,560px);max-height:85dvh;overflow:auto;border:3px solid #d1a33c;border-radius:14px;padding:22px;background:#fff4dd;color:#153d4b}#dock-sale-choice::backdrop{background:#062c40aa}#dock-sale-choice h2{font-family:Georgia,serif;font-size:1.4rem}#dock-sale-choice p{font-size:1rem;line-height:1.5}#dock-sale-choice button{min-height:48px;margin:5px}

#cannery-destination{padding:10px 12px;margin:5px 0 8px;background:#e7f5f5;border:2px solid #247180;border-left:6px solid #d0a333;border-radius:8px;color:#123c50}#cannery-destination strong,#cannery-destination span,#cannery-destination small{display:block}#cannery-destination strong{font-size:.85rem;text-transform:uppercase;letter-spacing:.03em}#cannery-destination span{font-size:1.1rem;font-weight:750;margin:3px 0}#cannery-destination small{font-size:.8rem;line-height:1.4}.cannery-sign.your-destination{outline:4px solid #ffdd5b;outline-offset:3px;box-shadow:0 0 0 8px #153d4b}.cannery-sign.your-destination span{font-weight:750;color:#ffeb9b}

#asset-sale-dialog{width:min(92vw,580px);max-height:85dvh;overflow:auto;border:3px solid #d1a33c;border-radius:14px;padding:22px;background:#fff4dd;color:#153d4b}#asset-sale-dialog::backdrop{background:#062c40aa}#asset-sale-dialog p{font-size:1rem;line-height:1.5}#asset-sale-dialog button{min-height:44px;margin:5px}#asset-sale-controls{padding:10px;border:1px solid #d1a33c;border-radius:8px;margin:10px 0}

/* Dimensional boat presentation: lighting and cast shadows, without moving
   registered board pieces or changing their hit areas. */
.boat-option{background:radial-gradient(ellipse at 42% 18%,#fffdf3 0%,#eff7f7 54%,#d3e4e8 100%);border-radius:12px;box-shadow:inset 0 2px 0 #fff,inset 0 -3px 0 #24485812,0 4px 9px #12394a18}
.boat-option img{filter:brightness(1.035) saturate(1.06) drop-shadow(0 3px 1px #18374822) drop-shadow(3px 9px 5px #12334542)}
.boat-option:hover:enabled{background:radial-gradient(ellipse at 40% 15%,#fffdf3,#d8eeed);box-shadow:inset 0 2px 0 #fff,0 6px 12px #12394a28}
.boat-option[aria-pressed=true]{background:radial-gradient(ellipse at 40% 15%,#fff9d7,#dfefeb);border-color:#b58b27;box-shadow:inset 0 2px 0 #fff,0 0 0 2px #d7b350,0 5px 12px #12394a28}
.boat-token{filter:brightness(1.035) saturate(1.06) drop-shadow(0 1px 0 #fff7) drop-shadow(2px 3px 1.5px #102735a6)}
.piece.boat-piece.mine .boat-token{filter:brightness(1.035) saturate(1.06) drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff) drop-shadow(2px 3px 1.5px #102735a6)}
.legend-boat,#captain-picture,.fleet-boat-heading img{filter:brightness(1.035) saturate(1.06) drop-shadow(2px 4px 2px #12334555)}

#season-board-overlay{position:absolute;max-width:none;pointer-events:none;z-index:3;overflow:visible}
.season-status-mask{fill:none;stroke:none}.season-status-outline{fill:none;stroke:none;stroke-width:3}
[data-season-state="open"] .season-status-outline{stroke:#e7ab00;stroke-width:3;filter:drop-shadow(0 0 3px #ffe100)}[data-season-state="open"] .season-status-mask{fill:#ffe66b;fill-opacity:.08}
.season-closed-slash{stroke:#a52f38;stroke-width:4.5;stroke-linecap:round;opacity:.95;filter:drop-shadow(0 0 1px #fff)}
[data-season-state="open"] .season-closed-slash{display:none}
[data-season-state="not-open"] .season-closed-slash{stroke:#536b76;opacity:.9}
#board-season-status{font-size:.8rem;color:#fff5d8;background:#12384b;margin:3px 0 5px;padding:3px 6px;min-height:28px;line-height:1.4}
#quick-buy-quota,#show-live-standings{min-height:44px;margin:4px 5px 6px 0}#quick-buy-quota{background:#176349;border-color:#176349;font-weight:750}
#live-standings-dialog{width:min(94vw,820px);max-height:85dvh;overflow:auto;border:3px solid #d1a33c;border-radius:12px;padding:20px;background:#fff4dd;color:#153d4b}#live-standings-dialog::backdrop{background:#062c40aa}.standings-table-wrap{overflow-x:auto}#live-standings-dialog table{width:100%;border-collapse:collapse;font-size:.9rem}#live-standings-dialog th,#live-standings-dialog td{padding:9px 7px;text-align:left;border-bottom:1px solid #cfb77e}#live-standings-dialog .standings-leader{background:#ffedb3;font-weight:750}#chance-notice-status{font-weight:750;background:#fff0bc;padding:7px;border-radius:5px}

/* Start each newly launched voyage at the board and captain instructions. */
#play-layout,#captain-turn-banner{scroll-margin-top:12px}
#captain-turn-title:focus{outline:2px solid #c59a3e;outline-offset:4px}

/* Keep the timed Herring season visible with the playable captain controls. */
#turn #season-clock{margin:0 0 12px;padding:10px 12px;background:#fff9e8;border-radius:10px}
#turn #season-clock h2{font-size:1rem;margin:0 0 8px}
#turn #season-clock dl{padding:6px 8px}
#turn #season-clock dd{font-size:1.05rem;margin:3px 0 0}
#turn #season-clock summary{font-size:.8rem;cursor:pointer;margin-top:7px}

/* Opening setup polish only: retain every option and the existing intro. */
.game-subtitle{font-size:clamp(.8rem,1.2vw,1rem);line-height:1.3;margin:3px 0 0;color:#f5dfad;letter-spacing:.04em}
body:not(.playing) header{padding-top:10px;padding-bottom:10px;gap:12px}
body:not(.playing) main{padding-top:12px}
#entry{padding:14px 18px;margin-bottom:12px}
#entry h2{margin-bottom:4px}
#entry>p{margin:5px 0 10px}
#entry .voyage-choices{gap:12px;margin:10px 0}
#entry .voyage-choices>section{padding:12px}
#entry .voyage-choices h3{font-size:1.15rem;margin:2px 0 6px}
#entry .voyage-choices p{margin:5px 0 8px}
#entry .voyage-choices .small{margin-bottom:0}
#entry .entry-fields{margin-top:10px;gap:8px}
#entry .controls{gap:8px}
#entry-note{font-size:.85rem;line-height:1.4}
@media(max-width:520px){
 body:not(.playing) header{padding:10px 12px;gap:8px}
 body:not(.playing) header .connection{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
 body:not(.playing) header .connection span{flex-basis:100%;margin:0}
 body:not(.playing) header #intro-replay{margin:0}
 #entry{padding:12px}
 #entry .voyage-choices{gap:10px}
}
#entry .voyage-choices{align-items:start}
@media(min-width:951px){
 body:not(.playing) header .connection{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px 12px;max-width:420px}
 body:not(.playing) header .connection span{flex-basis:100%}
 body:not(.playing) header #intro-replay{margin:0}
}
@media(max-width:520px){#entry #solo-choice .controls label{flex-basis:100%;max-width:none}}

/* Phone dice companion sits above the board, outside the playing surface. */
#phone-board-controls{display:none}
@media(max-width:950px){
 body.playing #phone-board-controls{display:grid;grid-template-columns:116px minmax(0,1fr);gap:4px 8px;padding:8px;margin:6px 0;background:var(--nautical-cream);color:var(--nautical-ink);border:1px solid var(--nautical-gold);border-radius:8px}
 #phone-board-controls .eyebrow{font-size:.65rem;line-height:1.3;min-height:27px;margin:0}
 #phone-board-controls .phone-dice{display:flex;align-items:center;gap:6px;padding:4px 0}
 #phone-board-controls .red-die{width:44px;height:44px;padding:5px;gap:3px;font-size:20px}
 #phone-board-controls .pip{width:7px;height:7px}
 #phone-board-controls .dice-plus{font-size:18px}
 #phone-board-controls .phone-actions{display:grid;gap:5px}
 #phone-board-controls button{min-height:44px;font-size:.8rem;line-height:1.2;padding:5px 8px}
 #phone-roll-summary{grid-column:1/-1;font-size:.72rem;line-height:1.4;height:1.4em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}
}

/* Final setup: explicit steps with a compact, accessible boat gallery. */
body:not(.playing) #room-toolbar{padding:10px 14px;margin-bottom:10px}
body:not(.playing) #room-toolbar .room-heading{gap:8px;flex-wrap:wrap}
body:not(.playing) #room-toolbar .room-heading h2{margin:0}
body:not(.playing) #room-toolbar .identity{margin:6px 0 0;padding:8px}
body:not(.playing) #room-toolbar #solo-room-label{margin-bottom:4px}
#lobby{padding:14px}
#setup-steps{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
#setup-steps #voyage-length-setup,#setup-steps #boat-selection{grid-column:1/-1;max-width:none;margin:0}
#setup-steps #voyage-length-setup{padding:12px;border:2px solid #c49a36}
#season-quick-choices{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
#season-quick-choices button{min-height:44px;font-size:.85rem}
#season-quick-choices button[aria-pressed=true]{background:#fff1bd;color:#153d4b;border:2px solid #a77b13;font-weight:750}
#setup-steps #voyage-seasons{max-width:460px}
#setup-steps .herring-recommendation{font-size:.85rem;line-height:1.45;margin:6px 0}
#setup-steps h3{margin:3px 0 6px;font-size:1.05rem}
#setup-steps p{margin:5px 0 8px}
#setup-steps #boat-options{display:flex;overflow-x:auto;gap:10px;padding:4px 4px 10px;scroll-padding:4px}
#setup-steps .boat-option{flex:0 0 174px;min-width:0;padding:8px}
#setup-steps .boat-option img{height:105px}
#setup-steps .boat-option span{font-size:.75rem}
#setup-steps #boat-selection-status{font-weight:650;font-size:.85rem}
.setup-step{padding:12px;background:#fffaf0;border:1px solid #d5b45c;border-radius:10px;min-width:0}
#setup-cannery #choose{margin-top:8px}
#setup-launch #lobby-instructions,#setup-launch #start-reason{font-size:.85rem}
#lobby #players{font-size:.85rem;margin:10px 0}
@media(max-width:600px){#setup-steps{grid-template-columns:minmax(0,1fr)}#setup-steps .boat-option{flex-basis:155px}#season-quick-choices{display:grid;grid-template-columns:1fr 1fr}#season-quick-choices button{padding:8px}}

#saved-voyages{margin:8px 0;padding:8px 10px;border:1px solid #c7a65d;border-radius:7px;background:#fffaf0}
#saved-voyages summary{min-height:44px;display:flex;align-items:center}
#saved-voyages .entry-fields{margin-top:8px}
#saved-voyages select{min-height:44px}

.fishing-explainer{margin:8px 0;padding:8px 10px;border:1px solid #c8a350;border-radius:8px;background:#fff9e8;color:#153d4b;font-size:.82rem}
.fishing-explainer>strong{display:block;font-size:.9rem}
.fishing-explainer .fishing-hold-totals{font-variant-numeric:tabular-nums;margin:3px 0;font-size:.78rem}
.fishing-explainer summary{padding:6px 0;min-height:36px}
.fishing-explainer details p{margin:5px 0;line-height:1.45}
#phone-fishing-explainer{display:none}
@media(max-width:950px){body.playing #phone-fishing-explainer{display:block}#fishing-explainer{display:none}}

.fishing-explainer>.fishing-why{font-size:.8rem;line-height:1.4;margin:5px 0}

@media (min-width:951px) {
  #fishing-explainer { font-size: 1rem; line-height: 1.4; }
  #fishing-explainer > .fishing-season-status { font-size: 1.125rem; }
  #fishing-explainer .fishing-hold-totals { font-size: 1.0625rem; font-weight: 650; }
  #fishing-explainer .fishing-why { font-size: 1rem; }
}

.season-closed-label rect{fill:#a52f38;stroke:#fff;stroke-width:1}
.season-closed-label text{fill:#fff;text-anchor:middle;font-family:Arial,sans-serif;font-weight:900;font-size:8px;letter-spacing:.6px}
[data-season-state="not-open"] .season-closed-label rect{fill:#536b76}
[data-season-state="open"] .season-closed-label{display:none}

#sea-sound-settings-button{min-height:44px;white-space:nowrap}
#sea-sound-settings{width:min(92vw,480px);max-height:85dvh;overflow:auto;border:2px solid #c8a350;border-radius:12px;padding:20px;background:#fff4dd;color:#153d4b}
#sea-sound-settings::backdrop{background:#082d40aa}
#sea-sound-settings h2{font-family:Georgia,serif}
#sea-sound-settings button{min-height:44px;margin:4px}
#sea-sound-settings #sea-sounds{border-color:#c8a350}
#sea-sound-settings #sea-sound-volume{width:100%;min-height:44px}
#sea-sound-settings #sea-sound-status{line-height:1.45}

.welcome-intro-row{display:grid;grid-template-columns:minmax(240px,400px) minmax(0,1fr);gap:14px 24px;align-items:center}
@media(max-width:700px){.welcome-intro-row{grid-template-columns:minmax(0,1fr);gap:10px}}

/* Nautical welcome: presentation only, scoped away from setup and gameplay. */
#welcome-banner{display:none;height:80px;margin:-12px -24px 0;position:relative;overflow:hidden;background:url('/nautical-background.png') center 35% / cover no-repeat;border-bottom:1px solid #d5b45c}
body:has(#entry:not([hidden])):has(#game-intro[hidden]) #welcome-banner{display:block}
body[data-scenery="plain"] #welcome-banner{display:none!important}
body:has(#entry:not([hidden]))::before{background:radial-gradient(ellipse at 50% 10%,#7ba8b8,#dcebef 75%)}
body:has(#entry:not([hidden])) header h1{text-transform:none;font-size:clamp(1.65rem,3.5vw,3rem);letter-spacing:0}
body:has(#entry:not([hidden])) header .eyebrow{font-weight:800;letter-spacing:.06em}
#entry{max-width:1220px;margin:0 auto 12px;padding:16px 20px;border-radius:16px;box-shadow:0 10px 25px #123c4c22}
#entry>h2{font-family:Georgia,serif;font-size:clamp(1.6rem,2.6vw,2.1rem);line-height:1.1;margin:0 0 6px}
#entry>.welcome-objective{font-size:1rem;margin:0 0 10px}
#entry .captain-name{font-weight:750}
#entry .welcome-intro-row{gap:10px 24px}
#entry .voyage-choices{gap:16px;margin:12px 0 8px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
#entry .voyage-choices>section{padding:12px 14px;border-radius:12px}
#entry .voyage-choices h3{font-size:1.25rem;line-height:1.25;margin:4px 0 8px;font-weight:800}
#entry #solo-choice .controls{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
#entry #solo-choice .controls label{max-width:none}
#entry #create-solo{width:100%;font-weight:750}
#entry #human-choice{background:linear-gradient(140deg,#f2f9fa,#deedf1);border-color:#32687e}
#entry #create{font-weight:750;min-width:160px}
#entry #join{background:#fffaf0;color:#153d4b;font-weight:750}
#entry .entry-fields{margin-top:4px}
#entry .join-divider{display:flex;align-items:center;gap:12px;font-size:.8rem;font-weight:650;margin:10px 0 6px}
.join-divider::before,.join-divider::after{content:"";height:1px;flex:1;background:#a7bdc7}
#herring-welcome{margin-top:8px;padding:8px 10px;background:#fff0bd;border-radius:8px;font-size:.8rem;line-height:1.35}
#herring-welcome strong,#herring-welcome span{display:block}
#herring-welcome strong{font-size:.9rem;margin-bottom:2px}
@media(max-width:700px){
 #welcome-banner{height:58px;margin-left:-10px;margin-right:-10px}
 #entry{padding:14px;border-radius:12px}
 #entry .voyage-choices{grid-template-columns:minmax(0,1fr);gap:12px}
 #entry .welcome-intro-row{gap:8px}
 #entry .voyage-choices h3{font-size:1.2rem}
}

.welcome-intro-row #saved-voyages{grid-column:1/-1;margin:0}
@media(min-width:951px){
 .welcome-intro-row #saved-voyages{grid-column:2;align-self:center;justify-self:end;width:min(100%,260px)}
}

/* Cannery navigation advice; source artwork and legal movement controls stay intact. */
.cannery-guide{margin:8px 0;padding:12px;border:2px solid #cda644;border-radius:12px;background:#fff8dc;color:#153d4b}
.cannery-guide h3{font:700 1.25rem Georgia,serif;margin:0 0 6px}.cannery-guide .guide-reason{font-weight:750;margin:4px 0}.cannery-guide .guide-target{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:8px 0}.cannery-guide .guide-target strong{font-size:1.15rem}.cannery-guide .guide-distance{white-space:nowrap;background:#e7f3e8;padding:4px 7px;border-radius:6px;color:#195e40;font-weight:750}.cannery-guide button,.cannery-guide select{min-height:44px;width:100%}.cannery-guide .guide-route{font-size:.85rem;margin:8px 0 0}.cannery-guide small{display:block;margin:4px 0;color:#526d78}.cannery-guide .guide-back{margin-top:6px}.guide-target-sign{box-shadow:0 0 0 4px #ffdc51,0 0 22px #fff38b!important;border-color:#fff4b8!important}.guide-next-control{outline:3px solid #d7a900!important;outline-offset:2px}.guide-target-path{fill:#ffdc4b;fill-opacity:.08;stroke:#d6a000;stroke-width:4;stroke-dasharray:6 3;vector-effect:non-scaling-stroke;pointer-events:none}.guide-map-label{position:absolute;z-index:8;pointer-events:none;background:#153d4b;color:#fff8dd;border:2px solid #e5b93b;border-radius:7px;padding:5px 8px;font-weight:750;font-size:.75rem;width:180px;text-align:center}.guide-phone{display:none}
@media(max-width:950px){.guide-desktop{display:none}.guide-phone{display:block;padding:8px 10px}.guide-phone h3{font-size:.95rem;margin-bottom:3px}.guide-phone .guide-reason{font-size:.78rem;margin:2px 0}.guide-phone .guide-target{margin:4px 0}.guide-phone .guide-target strong{font-size:.85rem}.guide-phone .guide-distance{font-size:.75rem;padding:2px 5px}.guide-phone small,.guide-phone .guide-route{display:none}.guide-locating #phone-fishing-explainer .fishing-why,.guide-locating #phone-fishing-explainer details{display:none}}
@media(max-width:950px){.guide-locating .guide-phone h3,.guide-locating .guide-phone .guide-reason,.guide-locating .guide-phone .guide-target+select+small+button{display:none}.guide-locating .guide-phone .guide-back{min-height:36px;margin-top:0}}

.welcome-tutorial{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:6px 0 12px;font-size:.9rem}.welcome-tutorial a{font-weight:700}.welcome-tutorial span{font-size:.78rem;color:var(--muted)}

/* Upright dock names stay attached to the board on laptops and phones. */
#dock-label-leaders{position:absolute;inset:0;overflow:visible;pointer-events:none;z-index:4}
#dock-label-leaders line{stroke:#ffdd72;stroke-width:3}
#cannery-signs{z-index:5}
.circular-board #cannery-signs .cannery-sign{background:#123c50;padding:5px;border:2px solid #d4af4b;border-radius:7px;pointer-events:none;overflow:visible}
.circular-board #cannery-signs .cannery-sign strong{font:700 12px/1.2 system-ui;color:#fff8dc;white-space:normal}
.circular-board #cannery-signs .cannery-sign span{font:600 10px/1.2 system-ui;color:#fff8dc;margin-top:3px}
.circular-board #cannery-signs .cannery-sign::before{display:none}
#compact-canneries ul{padding-left:20px;margin:0 0 8px}#compact-canneries li{padding:3px 0}

#movement-choices .move-board-hint{display:block;font-size:.78em;font-weight:400;line-height:1.3;margin-top:4px}
#purchase-landing-reminder{width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:18px;background:var(--nautical-cream,#fff8e7);color:var(--nautical-ink,#153d4b);border:2px solid var(--nautical-gold,#d4af4b);border-radius:12px}#purchase-landing-reminder h2{margin:0 0 10px}#purchase-landing-reminder .controls button{flex:1;min-height:44px}#purchase-landing-reminder::backdrop{background:#061f3680}

/* Human and solo waiting rooms must remain readable over the scenic artwork. */
body:not(.playing) #room-toolbar{background:#0a364b;color:#fff4dd;border:1px solid #d5b45c;border-radius:10px}
body:not(.playing) #room-toolbar #room-code{color:#ffdc81;font-size:1.15rem;line-height:1.4;letter-spacing:.04em;font-weight:800}
body:not(.playing) #room-toolbar #status{color:#fff4dd}
body:not(.playing) #room-toolbar #identity{background:#fff4dd;color:#12374a;border:1px solid #d5b45c;border-radius:7px;font-size:.95rem;font-weight:650;line-height:1.45}
body:not(.playing) #room-toolbar #room-code{white-space:nowrap;flex-shrink:0}
@media(max-width:600px){body:not(.playing) #room-toolbar .room-heading>div{flex-wrap:wrap}body:not(.playing) #room-toolbar #room-code{flex:1 1 100%}body:not(.playing) #room-toolbar #status{flex:1 1 150px;margin:0}body:not(.playing) #room-toolbar #copy-room{flex:0 0 auto;white-space:nowrap}}

#now-what-message{position:fixed;left:50%;bottom:var(--now-what-bottom,12px);transform:translateX(-50%);width:min(540px,calc(100vw - 24px));max-height:40dvh;overflow:auto;z-index:3000;padding:12px 14px;border:2px solid #d5b45c;border-radius:10px;background:#fff4dd;color:#12374a;box-shadow:0 3px 15px #001a3366}#now-what-message p{margin:0 0 8px;font-weight:650}#now-what-message button{min-height:44px} .now-what-focus{outline:4px solid #e4b735!important;outline-offset:3px;box-shadow:0 0 0 6px #e4b73544!important}
#now-what-floating{position:fixed;right:12px;bottom:var(--now-what-bottom,12px);z-index:2999;min-height:44px;padding:10px 16px;background:#123c50;color:#fff4dd;border:2px solid #d5b45c;border-radius:24px;box-shadow:0 2px 8px #001a3355;font-weight:750}body:not(.playing) #now-what-floating{display:none}

#bycatch-notice{width:min(92vw,540px);max-height:85dvh;overflow:auto;border:3px solid #d1a33c;border-radius:14px;padding:22px;background:#fff4dd;color:#153d4b;box-shadow:0 16px 60px #0006}#bycatch-notice::backdrop{background:#062c40aa}#bycatch-notice h2{margin-top:0;font-family:Georgia,serif}#bycatch-notice p{line-height:1.5}#bycatch-notice button{min-height:48px;width:100%}

#catch-allocation #allocation-required{font-size:clamp(24px,3vw,30px);font-weight:800;color:#123c50;background:#fff0b4;padding:12px;border:2px solid #c99a20;border-radius:8px}#allocation-feedback{padding:10px 12px;font-weight:700;line-height:1.5;border-left:4px solid #bc8123;background:#fff8e9}#allocation-feedback[data-valid="true"]{border-color:#287659;background:#eef8f0}#allocate-automatically{margin:0 8px 8px 0}#allocation-boats label{display:flex;flex-direction:column;gap:5px}

#bycatch-notice #season-closed-sign{display:block;width:100%;height:auto;max-height:38dvh;object-fit:contain;border-radius:6px;margin:10px 0}

#guided-actions{margin:8px 0 12px;padding:10px;border:2px solid #c69b32;border-radius:9px;background:#fff8e7;color:#153d4b}#guided-action-buttons>button{width:100%;min-height:48px;margin-bottom:6px;font-weight:750}#guided-actions #movement-choices{margin:4px 0}#guided-actions #catch-allocation{margin:0}#guided-actions #allocation-required{margin:4px 0 8px}#guided-actions #allocation-feedback{font-size:.9rem}#guided-actions .controls{gap:7px}#guided-actions #landing-controls{margin:5px 0}#phone-board-controls>#guided-actions{grid-column:1 / -1;flex:1 1 100%;width:100%}

#guided-actions #allocate-catch{display:block;width:100%;font-weight:750;min-height:48px;margin-bottom:10px}

@media(max-width:950px){body.phone-moving #guided-actions{padding:6px;margin:4px 0}body.phone-moving #guided-action-buttons:has(>button:not([hidden])){margin-bottom:3px}body.phone-moving #movement-choices{display:flex;flex-wrap:wrap;gap:5px}body.phone-moving #movement-choices button{flex:1 1 100px;min-height:44px;padding:7px;font-size:.82rem}body.phone-moving #movement-choices .move-board-hint{display:none}}

@media(max-width:950px){body.phone-moving #movement-choices{min-height:94px;align-items:flex-start;align-content:flex-start}body.phone-moving .board-panel{overflow-anchor:none}}

/* Compact development notifications keep the dice and next action readable. */
#now-what-message,#catch-celebration{left:12px;transform:none;width:min(320px,calc(100vw - 24px));padding:9px 11px;border-width:2px;border-radius:9px;max-height:32dvh;overflow:auto;font-size:.9rem;line-height:1.35}
#now-what-message p,#catch-celebration p{margin:0 0 6px}
#catch-celebration strong{display:block;font-size:1.05rem;margin-bottom:5px}
#now-what-message button,#catch-celebration button{font-size:.85rem;min-height:44px;padding:5px 10px}
#turn #season-clock{padding:7px 9px;margin-bottom:7px}
#turn #season-clock h2{font-size:.92rem;margin-bottom:5px}
#season-clock-captains{gap:4px;grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}
#turn #season-clock dl{padding:4px 6px;min-width:0}
#turn #season-clock dt{font-size:.85rem;overflow-wrap:anywhere}
#turn #season-clock dd{font-size:.85rem;line-height:1.25;margin:2px 0 0}
#turn #season-clock summary{margin-top:4px;font-size:.75rem}
#turn #captain-turn-banner{padding:7px 9px;margin:4px 0 6px}
#turn #captain-turn-banner h3{font-size:1.1rem;line-height:1.2}
#turn #captain-turn-banner .next-action{font-size:.9rem;line-height:1.35;margin:4px 0 5px}

/* Collision results are informational; retain deliberate dismissal. */
#collision-notice{width:min(360px,calc(100vw - 24px));margin-left:12px;margin-right:auto;padding:12px 14px;border-width:2px;border-radius:10px;max-height:80dvh}
#collision-notice h2{font-size:1.15rem;line-height:1.2;margin-bottom:9px}
#collision-notice p{font-size:.9rem;line-height:1.35;margin:7px 0}
#collision-notice #collision-notice-help{font-size:.8rem;font-weight:400}
#collision-notice button{min-height:44px;font-size:.9rem;padding:7px 10px}
#collision-notice::backdrop{background:#062c4033}
/* Both sale headings share this compact layout, including full-hold sales. */
#sale-celebration{left:12px;transform:none;width:min(320px,calc(100vw - 24px));padding:9px 11px;border-width:2px;border-radius:9px;max-height:48dvh;font-size:.9rem;line-height:1.35}
#sale-celebration>strong{display:block;font-size:1.05rem;margin-bottom:5px}
#sale-celebration .sale-captain{margin:6px 0 4px}
#sale-celebration dl{gap:4px 10px;margin:5px 0 8px}
#sale-celebration dt:last-of-type,#sale-celebration dd:last-of-type{padding-top:5px;font-size:.95rem}
#sale-celebration button{font-size:.85rem;min-height:44px;padding:5px 10px}

/* Keep the active turn and the local timer visible without an expanded roster. */
#turn #season-clock h2{font-family:inherit;font-size:.95rem;line-height:1.3;background:transparent;color:#153d4b;padding:0;margin:0 0 3px}
#turn #season-clock-personal{font-size:.85rem;margin:0 0 3px;font-variant-numeric:tabular-nums}
#turn #season-clock-all>summary{font-size:.8rem;margin-top:2px;cursor:pointer}
#turn #season-clock-all[open]>#season-clock-captains{margin-top:6px}

#collision-notice-replay{margin-bottom:7px;background:#fff9e8;color:#153d4b;border:1px solid #b28a32}

/* Approved optional inline clip, anchored above the footer at lower left. */
#collision-notice{position:fixed;top:auto;bottom:var(--collision-bottom,100px);margin-top:0;margin-bottom:0;max-height:calc(100dvh - var(--collision-bottom,100px) - 12px)}

/* Board-first movement; only enabled legal destinations pulse. */
#board-movement-hint{box-sizing:border-box;background:#fff3c5;border:2px solid #d3a32f;border-radius:9px;padding:10px 12px;margin:7px 0;color:#153d4b;line-height:1.35}
#board-movement-hint strong{display:block;font-size:1rem}
#board-movement-hint p{font-size:.85rem;margin:5px 0 0}
#movement-button-options{background:#fff9e8;border:1px solid #d5b45c;border-radius:8px;color:#153d4b;padding:10px;margin:8px 0}
#movement-button-options>summary{font-weight:650;cursor:pointer;min-height:24px}
#movement-button-options #movement-choices{margin-top:8px}
#legal-space-overlay .choice-marker[aria-disabled="false"]{fill:#23bde5;stroke:#005b86;fill-opacity:.18;stroke-width:6;vector-effect:non-scaling-stroke;paint-order:stroke fill;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 1px #fff);animation:legal-space-pulse 1.8s ease-in-out infinite}
@keyframes legal-space-pulse{0%,100%{fill-opacity:.12}50%{fill-opacity:.32}}
@media(prefers-reduced-motion:reduce){#legal-space-overlay .choice-marker[aria-disabled="false"]{animation:none;fill-opacity:.32}}

.welcome-teaching{padding:10px 12px;border:1px solid #d5b45c;border-radius:8px;background:#fff3c5}.welcome-teaching a{font-weight:750;color:#174e62}.welcome-teaching span{font-size:.85rem}
#now-what-message{max-height:min(55dvh,410px)}#now-what-message>strong{display:block;margin-bottom:5px}#now-what-message label{display:block;margin-bottom:8px;font-size:.85rem}#now-what-message select{display:block;width:100%;min-height:44px;font-size:.85rem;margin-top:3px}#now-what-message button{margin-right:7px;margin-top:3px}

#chance-clip{margin:8px 0;border:1px solid #bf9c43;border-radius:7px;padding:7px;background:#fff9e8}
#chance-clip>summary{font-size:.85rem;font-weight:700;cursor:pointer;min-height:28px}
#chance-clip #chance-clip-video{display:block;width:100%;max-width:320px;height:auto;max-height:210px;background:#071c28;border-radius:5px;margin:7px 0;object-fit:contain}
#chance-clip p{font-size:.8rem;line-height:1.35;margin:5px 0}
#chance-clip #chance-clip-status:empty{display:none}
#chance-clip #chance-clip-video:fullscreen{width:100%;max-width:none;height:100%;max-height:none}

/* Movement instruction spans both phone dice-panel columns. */
@media(max-width:950px){#phone-board-controls>#board-movement-hint{grid-column:1 / -1;width:100%;min-width:0;margin:4px 0 0}}

/* Use the desktop column's available height for the board, including below long cards. */
@media(min-width:951px) and (min-height:701px){
 body.circular-board.playing .board-panel:not(.expanded){height:calc(100dvh - 24px)}
}

/* Compact desktop board chrome leaves the taller window for playing spaces. */
@media(min-width:951px){
 body.circular-board.playing .board-panel:not(.expanded)>.section-heading{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:4px}
 body.circular-board.playing .board-panel:not(.expanded)>.section-heading h2{display:none}
 body.circular-board.playing .board-panel:not(.expanded) .board-tools{margin:0;flex:1 1 auto;display:flex;flex-wrap:wrap;align-items:center;gap:4px}
 body.circular-board.playing .board-panel:not(.expanded) .section-heading:has(> #crew-chat-open:not([hidden])) > .board-tools{flex-basis:100%}
 body.circular-board.playing .board-panel:not(.expanded) #board-movement-hint{padding:6px 9px;margin:4px 0}
 body.circular-board.playing .board-panel:not(.expanded) #board-movement-hint p{display:none}
 body.circular-board.playing .board-panel:not(.expanded) #board-season-status{min-height:0;margin:2px 0;padding:2px 6px}
}

.cannery-guide.guide-compact{padding:4px 0;margin:6px 0;border:0;background:transparent}
.cannery-guide.guide-compact h3{display:none}
.cannery-guide.guide-compact>button{width:auto;min-height:36px;padding:6px 10px;font-size:.85rem}

/* Keep Chance instructions readable and their required action before old movement dice. */
#turn #chance-card-notice{margin:6px 0;padding:9px 54px 9px 10px;border-radius:9px;box-shadow:2px 3px 0 #e5d7b3}
#turn #chance-card-notice .eyebrow{font-size:.65rem;margin:0 0 3px}
#turn #chance-notice-title{font-size:1.05rem;line-height:1.3;margin:3px 0 7px}
#turn #chance-notice-text{font-size:1rem;line-height:1.4;margin:0 0 7px}
#turn #chance-notice-status{font-size:.78rem;line-height:1.35;padding:5px;margin:0}
#turn #chance-deck{right:10px;top:10px;width:29px;height:40px}
#turn #chance-deck span{font-size:25px}

/* Catch feedback is a low horizontal ribbon instead of a tall stack. */
#catch-celebration{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;width:max-content;max-width:calc(100vw - 24px);padding:6px 10px}
#catch-celebration strong{display:inline;font-size:.95rem;margin:0;white-space:nowrap}
#catch-celebration p{margin:0;font-size:.9rem;flex:0 1 auto}
#catch-celebration button{flex:none;margin:0;min-height:36px;padding:4px 9px}
@media(max-width:600px){#catch-celebration{gap:4px 8px}#catch-celebration strong{font-size:.9rem}#catch-celebration p{font-size:.85rem}#catch-celebration button{min-height:44px}}

#collision-comic-burst{position:fixed;left:50%;top:15%;transform:translateX(-50%);width:min(420px,80vw);height:240px;object-fit:contain;pointer-events:none;z-index:9999;filter:drop-shadow(0 4px 5px #0007)}
@media(max-width:600px){#collision-comic-burst{height:180px;top:12%}}

/* Explain individual Herring expiry without blocking the final turn. */
#season-clock.clock-expired{border:3px solid #b77d16}
#season-clock-expiry{background:#fff0b5;color:#153d4b;border-left:5px solid #b77d16;border-radius:6px;padding:10px 12px;margin:8px 0}
#season-clock-expiry strong{display:block;font-size:1.05rem}
#season-clock-expiry p{margin:6px 0 0;font-size:.95rem}

#season-clock-phone-summary{display:none}
@media(max-width:950px){#season-clock-phone-summary{display:block;position:fixed;top:6px;left:12px;right:12px;width:calc(100% - 24px);z-index:80;min-height:40px;padding:7px 10px;font-size:.85rem;box-shadow:0 2px 6px #0005}#season-clock.clock-expired #season-clock-phone-summary{background:#fff0b5;color:#153d4b;border:2px solid #b77d16;font-weight:750}body:has(dialog[open]) #season-clock-phone-summary{display:none}}

/* Read-only space explanations sit beside the board, without capturing movement. */
#board-space-help{position:fixed;left:20px;right:auto;top:76px;width:min(300px,calc(100vw - 24px));padding:12px 15px;border:2px solid #bd9736;border-radius:10px;background:#fff8df;color:#153d4b;box-shadow:0 3px 12px #0003;z-index:90;pointer-events:none}
#board-space-help p{margin:5px 0 0;font-size:.95rem}
#inspect-board-space[aria-pressed=true]{background:#fff0b5;color:#153d4b;border-color:#bd9736}
body:has(dialog[open]) #board-space-help{display:none}
@media(max-width:950px){#board-space-help{top:auto;bottom:92px;right:12px;left:12px;width:auto;max-height:32dvh;overflow:auto}}

#board-space-help-connector{position:fixed;inset:0;width:100vw;height:100vh;z-index:89;pointer-events:none;overflow:visible}
body:has(dialog[open]) #board-space-help-connector{display:none}

@media(max-width:950px){#inspect-board-space{display:block;width:100%;min-height:44px;margin:6px 0;border:2px solid #bd9736;font-weight:700}}

#board-space-help{pointer-events:auto;display:flow-root}
#space-descriptions-off{float:right;margin:7px 0 0 10px;min-height:36px;padding:5px 12px;font-size:.85rem}
@media(max-width:950px){#space-descriptions-off{min-height:44px}}

/* Keep the real roll action next to the dice it rolls. */
#helm-dice-row{display:flex;align-items:center;justify-content:center;gap:12px 20px;flex-wrap:wrap}
#helm-dice-action{flex:0 1 220px;min-width:140px}
#helm-dice-action>#turn-action{width:100%;min-height:48px;margin:0}
#turn #herring-first-move {
  margin: 8px 0 4px;
  color: #153d4b;
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}
@media(max-width:950px){#phone-board-controls .phone-actions{align-self:center}#phone-board-controls .phone-actions>#turn-action{width:100%;min-height:48px}}
@media(max-width:360px){#phone-board-controls .phone-actions:has(>#turn-action:not([hidden])){grid-column:1/-1}}
@media(max-width:950px){#phone-board-controls,#phone-board-controls #turn-action{scroll-margin-top:56px}}

#rematch-origin{margin-top:12px;padding:8px 12px}
#rematch-origin>summary{min-height:40px;display:list-item;align-content:center;font-weight:650}

/* Let the board toolbar take only the height its controls need. */
body.circular-board.playing .board-panel>.section-heading{flex:0 0 auto;min-height:0;align-content:flex-start}
body.circular-board.playing .board-panel .board-tools{align-content:flex-start}
@media(min-width:951px){body.circular-board.playing .board-panel .board-tools{gap:4px 6px}body.circular-board.playing .board-panel .board-tools button{min-height:44px}}

#phone-collision-details{display:inline-block;min-height:44px;margin:4px 5px 6px 0}

/* Smaller sale receipt preserves every amount while covering less of the board. */
#sale-celebration{width:min(295px,calc(100vw - 24px));padding:7px 9px;font-size:.82rem;line-height:1.25}
#sale-celebration>strong{font-size:1rem;margin:0 0 3px}
#sale-celebration .sale-captain{margin:3px 0}
#sale-celebration dl{gap:2px 10px;margin:4px 0 6px}
#sale-celebration dt:last-of-type,#sale-celebration dd:last-of-type{padding-top:3px;font-size:.88rem}
#sale-celebration button{min-height:36px;padding:4px 10px;font-size:.8rem}
@media(max-width:950px){#sale-celebration button{min-height:44px}}

/* Put dismissal beside the sale heading instead of on its own bottom row. */
#sale-celebration{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 6px;width:min(280px,calc(100vw - 24px));padding:6px 8px}
#sale-celebration>strong{grid-column:1;grid-row:1;font-size:.95rem;margin:0}
#sale-celebration>button{grid-column:2;grid-row:1;min-height:32px;margin:0;padding:4px 8px}
#sale-celebration>article{grid-column:1/-1;min-width:0}
@media(max-width:950px){#sale-celebration>button{min-height:44px}}
#sale-celebration{bottom:24px}
@media(max-width:950px){#sale-celebration{bottom:76px}}

.board-guide>.boat-follow-option{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:.9rem;min-height:44px}
.board-guide>.boat-follow-option input{margin:0;flex-shrink:0}
#catch-celebration{bottom:24px}
@media(max-width:950px){#catch-celebration{bottom:76px}}

/* Phone collision art is a small static overlay; it never moves the layout. */
#collision-comic-burst.phone-collision-burst{width:min(300px,80vw);height:min(160px,30dvh);top:8%;filter:none;pointer-events:none}

/* Approved title artwork uses its full landscape frame. */
#intro-video{aspect-ratio:16/9;object-fit:contain}

/* Static nautical warning treatment; no additional images or animation. */
#collision-notice{background:#fff3a6;color:#123448;border:3px solid #a52332;box-shadow:0 8px 24px #061c3040}
#collision-notice h2{background:#102e43;color:#ffe600;font-family:Georgia,serif;font-weight:800;text-transform:uppercase;letter-spacing:.035em;margin:-12px -14px 12px;padding:12px 14px;border-bottom:3px solid #a52332;border-radius:6px 6px 0 0}
#collision-notice h2::before{content:'⚠';display:inline-block;margin-right:.4em;color:#ffe600}
#collision-notice #collision-notice-charge{font-size:1rem;font-weight:800;margin:10px 0;background:#ffe45c;color:#123448;padding:8px 10px;border-radius:5px}
#collision-notice button{background:#123448;color:#fff5d8;border-color:#c5a05a}

@media(max-width:950px){#phone-board-controls>#board-movement-hint{padding:6px 9px}}

.cannery-guide.guide-season-closed .guide-target{margin:4px 0 6px}.cannery-guide.guide-season-closed .guide-target strong{font-size:1rem;font-weight:600}
@media(max-width:950px){.guide-phone.guide-season-closed h3{font-size:.95rem}.guide-phone.guide-season-closed .guide-target strong{font-size:.85rem}}

/* Desktop board follows the page and fills the usable height above controls. */
@media(min-width:951px){body.circular-board.playing .board-panel:not(.expanded){position:sticky;top:12px;height:calc(100dvh - var(--desktop-board-reserve,24px));min-height:0}}

#allocation-boats .allocation-boat{min-width:0}#allocation-boats .allocation-entry{margin-top:5px}
@media(max-width:950px){#allocation-boats .allocation-boat{flex:1 1 100%}#allocation-boats .allocation-entry{display:flex;align-items:center;gap:6px}#allocation-boats .allocation-entry input{width:6rem;max-width:40%;min-width:0;flex:0 1 6rem;min-height:44px}#allocation-boats .allocation-entry #allocate-automatically{flex:1 1 0;width:auto;min-width:0;min-height:44px;margin:0;padding:7px 8px}}

/* Ownership badges match numbered player colors; their touch target is 44px. */
.cannery-sign{overflow:visible}.cannery-sign .cannery-owner-badge{position:absolute;left:-18px;top:-18px;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;display:grid;place-items:center;background:transparent;border:0;box-shadow:none;pointer-events:auto;line-height:1}
.cannery-owner-badge b,.ownership-number{display:inline-grid;place-items:center;width:24px;height:24px;min-width:24px;box-sizing:border-box;border:2px solid #fff8dc;border-radius:50%;background:var(--piece-color);color:white;font:800 12px/1 system-ui;box-shadow:0 1px 4px #0006}
.ownership-located{outline:3px solid #79e6ff;outline-offset:3px}
#my-canneries-button{background:#123448;color:#fff8dc;border:0;border-radius:4px;padding:12px;min-height:44px;font-weight:750;font-size:.8rem}
#cannery-ownership{width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;background:#fff8e7;color:#123448;border:2px solid #d4af4b;border-radius:10px;padding:16px}#cannery-ownership h2{font-family:Georgia,serif}#cannery-ownership h3{display:flex;align-items:center;gap:7px;font-size:1rem;margin:0 0 7px}#cannery-ownership article{padding:10px 0;border-bottom:1px solid #d4af4b66;margin-bottom:10px}#cannery-ownership p{font-size:.9rem;margin:6px 0}#cannery-ownership button{min-height:44px}#cannery-ownership::backdrop{background:#062c4055}

#now-what-floating.help-reminder{box-shadow:0 0 0 4px #f9d75a88,0 0 20px #ffd95c99;animation:captain-help-wiggle .65s ease-in-out 1}
@keyframes captain-help-wiggle{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}50%{transform:translateX(3px)}75%{transform:translateX(-2px)}}
@media(prefers-reduced-motion:reduce){#now-what-floating.help-reminder{animation:none}}

#quota-map-note{scroll-margin-top:65px;padding:8px 12px;background:#fff1bb;color:#153d4b;border:2px solid #a34500;border-radius:10px}#quota-map-note button{min-height:44px;margin-left:8px}

#quota-help-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#captain-turn-banner #quota-help-actions button{width:auto;min-width:0;padding:10px 8px;font-size:.95rem}

#phone-next-action-strip{display:none}
@media(max-width:950px){#phone-board-controls #phone-next-action-strip:not([hidden]){display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;padding:7px 9px;border-left:4px solid #c69b32;background:#fff2c5;border-radius:6px}#phone-next-action-strip small{grid-column:1;font-size:.68rem;text-transform:uppercase;letter-spacing:.04em}#phone-next-action-strip strong{grid-column:1;font-size:1rem;line-height:1.25}#phone-next-action-strip span{grid-column:1;font-size:.85rem}#phone-next-action-strip button{grid-column:2;grid-row:1/4;align-self:center}#phone-board-controls:has(#phone-next-action-strip:not([hidden]))>#board-movement-hint{display:none}}

#phone-action-confirmation:not([hidden]){display:block;margin:6px 0;padding:7px 9px;background:#dcefdc;color:#164d36;border-radius:6px;font-size:.9rem;font-weight:650;line-height:1.35}
@media(max-width:950px){#phone-board-controls>#phone-action-confirmation:not([hidden]){display:block;grid-column:1/-1;margin:0 0 3px;padding:7px 9px;background:#dcefdc;color:#164d36;border-radius:6px;font-size:.9rem;font-weight:650;line-height:1.35}.phone-action-confirmed #quota-purchase-receipt{display:none}}

#double-catch-choice{grid-column:1/-1;padding:8px 10px;margin:5px 0;background:#fff1bb;border:1px solid #c69b32;border-radius:7px;display:flex;gap:7px;align-items:center;flex-wrap:wrap}#double-catch-choice[hidden]{display:none}#double-catch-choice strong{flex:1 1 210px;font-size:.95rem}#double-catch-choice button{min-height:44px}.held-choice-shown [data-landing-action="doubleFishing"]{display:none}

.setup-wizard-active #setup-steps{display:block}.setup-wizard-step{margin:8px 0;border:1px solid #c69b32;border-radius:10px;background:#fffaf0;scroll-margin-top:12px}.setup-wizard-step>summary{padding:11px 13px;min-height:44px;cursor:pointer}.setup-step-summary{display:block;font-size:.85rem;font-weight:400;margin:4px 0 0 18px;color:#315564}.setup-wizard-step[open]>summary{border-bottom:1px solid #e4d5b0}.setup-wizard-body{padding:10px}.setup-wizard-nav{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}.setup-wizard-nav button{min-height:44px}.setup-wizard-body #boat-selection,.setup-wizard-body #setup-cannery,.setup-wizard-body #setup-launch,.setup-wizard-body #voyage-length-setup{border:0;padding:4px;background:transparent}.setup-wizard-body #setup-name-form{margin:0}.setup-wizard-body #human-invitation{padding:8px;margin:6px 0}.setup-wizard-body #boat-picker-details{margin:0}.setup-wizard-body #boat-options .boat-option{flex-basis:135px}.setup-wizard-body #boat-options .boat-option img{height:80px}#setup-progress{font-weight:700;margin:8px 0}#setup-wizard-warning{color:#8c251c;font-weight:650}.setup-wizard-active .debug{display:none}#setup-review-summary{font-weight:650;line-height:1.5}

.setup-wizard-body #boat-selection-status{display:none}.setup-wizard-body #boat-selection>p{font-size:.85rem;line-height:1.4}

#double-price-choice{flex:1 1 100%;width:100%;padding:8px 10px;background:#fff1bb;border:1px solid #c69b32;border-radius:7px;display:flex;gap:7px;align-items:center;flex-wrap:wrap}#double-price-choice[hidden]{display:none}#double-price-choice strong{flex:1 1 240px;font-size:.95rem}#double-price-choice button{min-height:44px}

#compact-review-controls{display:contents}#compact-open-cannery{display:none}
@media(max-width:950px){#compact-review-controls:not([hidden]){display:flex;gap:6px;align-items:stretch;margin:5px 0}#compact-review-controls>button{display:block;flex:1 1 0;min-width:0;min-height:44px;margin:0;padding:7px 4px;font-size:.78rem;line-height:1.2}body .guide-phone.guide-compact{display:none}}

#connection-recovery{grid-column:1/-1;padding:8px 10px;border:2px solid #c69b32;border-radius:7px;background:#fff1bb;color:#153d4b;display:flex;align-items:center;gap:8px;flex-wrap:wrap}#connection-recovery[hidden]{display:none}#connection-recovery span{flex:1 1 200px;font-size:.9rem}#connection-recovery button{min-height:44px}

#voyage-standings{grid-column:1/-1;background:#fff8e5;border:1px solid #c69b32;border-radius:8px;margin:5px 0 9px;min-width:0;overflow:hidden}
#voyage-standings>summary{position:relative;list-style:none;padding:8px 30px 8px 10px;min-height:44px;line-height:1.3}
#voyage-standings>summary::-webkit-details-marker{display:none}
#voyage-standings>summary::after{content:'⌄';position:absolute;right:10px;top:12px;font-size:1.1rem}
#voyage-standings[open]>summary::after{content:'⌃'}
#voyage-standings .voyage-progress,#voyage-standings summary strong,#voyage-standings summary small{display:block}
#voyage-standings .voyage-progress{font-size:.8rem;font-weight:650}
@media (min-width:951px) {
  #voyage-standings .voyage-progress { font-size: 1rem; font-weight: 750; line-height: 1.1; }
}
#voyage-standings summary strong{font-size:.92rem}
#voyage-standings summary small{font-size:.7rem;color:#486674;font-weight:400}
#voyage-standings table{font-size:.85rem;table-layout:fixed}#voyage-standings caption{text-align:left;padding:6px 10px;font-weight:750}
#voyage-standings th,#voyage-standings td{padding:5px 10px}#voyage-standings th{text-align:left}#voyage-standings td,#voyage-standings thead th:last-child{text-align:right;width:38%}
#voyage-standings .voyage-standing-own{background:#dcefdc;font-weight:750}#voyage-standings>p{font-size:.72rem;margin:6px 10px 9px}

#resume-recap{grid-column:1/-1;padding:9px 11px;margin:5px 0 9px;border:1px solid #c69b32;border-radius:8px;background:#fff8e5;min-width:0}
#resume-recap h3{margin:0 0 4px;font-size:1rem}#resume-recap strong{font-size:.88rem}#resume-recap p{margin:4px 0;font-size:.85rem;line-height:1.35}#resume-recap small{display:block;font-size:.7rem;color:#486674}#resume-recap button{min-height:44px;margin-top:6px}

#season-milestone{grid-column:1/-1;padding:10px 12px;margin:6px 0 10px;background:#fff5ce;border:2px solid #c69b32;border-radius:9px;min-width:0}
#season-milestone h3{margin:0 0 7px;font-family:Georgia,serif;font-size:1.12rem}#season-milestone dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;margin:0;font-size:.88rem}#season-milestone dd{margin:0;text-align:right;font-weight:750}#season-milestone small{display:block;margin-top:7px;font-size:.7rem;color:#486674}#season-milestone p{margin:7px 0;font-weight:700;font-size:.9rem}#season-milestone button{min-height:44px}

#board-space-help .inspection-status{display:block;font-size:.72rem;font-weight:700;color:#75520b;margin-bottom:5px}
#board-space-help strong{display:block}
#legal-space-overlay .inspected-space{fill:#ffdc62;fill-opacity:.28;stroke:#9c6200;stroke-width:4;vector-effect:non-scaling-stroke;pointer-events:none}

/* Brief sale feedback; full receipts stay in the journal. */
#sale-celebration{display:block;width:min(430px,calc(100vw - 24px));max-height:24dvh;padding:8px 11px;background:#e3f2df;border:1px solid #8eaf86;border-radius:7px;box-shadow:0 2px 8px #082e4c33;pointer-events:none;color:#164d36}
#sale-celebration p{margin:0;font-size:.88rem;line-height:1.35;font-weight:650}#sale-celebration p+p{margin-top:5px}#sale-celebration small{display:block;margin-top:4px;font-size:.72rem}

#asynchronous-room-tools{grid-column:1/-1;margin:5px 0 8px;padding:7px 9px;border:1px solid #bba361;background:#edf5f2;border-radius:7px}#asynchronous-room-tools>strong{font-size:.82rem;display:block;margin-bottom:4px}#asynchronous-room-tools button{min-height:44px;font-size:.8rem}#private-return-dialog{max-width:min(520px,calc(100vw - 24px));background:#fff8e5;color:#153d4b;border:2px solid #c69b32;border-radius:9px}#private-return-dialog input{font-size:.8rem}#private-return-dialog button{margin:6px 6px 0 0;min-height:44px}#friend-play-mode{max-width:320px}

#decision-options{padding:.6rem .8rem;border:1px solid #cba02b;border-radius:10px;background:#fff9e8;color:#173c4d}#decision-options summary{font-weight:700;cursor:pointer}#decision-options ul{padding-left:1.2rem;margin:.5rem 0 0}#decision-options li+li{margin-top:.4rem}

#crew-lobby{padding:.8rem 1rem;margin:.8rem 0;border:2px solid #cba02b;border-radius:12px;background:#fff9e8;color:#173c4d}#crew-lobby h3{margin:0 0 .5rem}#crew-lobby ul{padding-left:1.2rem}#crew-lobby input{display:block;width:100%;min-width:0;margin-top:.5rem}#crew-lobby p{margin:.5rem 0}#asynchronous-room-tools p:empty{display:none}

#phone-action-confirmation.sale-celebration:not([hidden]),#phone-board-controls>#phone-action-confirmation.sale-celebration:not([hidden]){background:#fff0b3;color:#173c4d;border:1px solid #cba02b;animation:sale-gold-fade 6s ease-out both}@keyframes sale-gold-fade{0%,70%{opacity:1}100%{opacity:0}}@media(prefers-reduced-motion:reduce){#phone-action-confirmation.sale-celebration:not([hidden]),#phone-board-controls>#phone-action-confirmation.sale-celebration:not([hidden]){animation:none}}

#decision-options{grid-column:1/-1;width:100%;min-width:0;box-sizing:border-box}

#return-highlights{margin:.6rem 0;padding:.5rem 0;border-block:1px solid #d8c78d}#return-highlights small{display:block;margin-top:.3rem}#return-highlights ul{padding-left:1.2rem;margin:.4rem 0}#return-highlights li+li{margin-top:.3rem}#return-highlights details{margin-top:.4rem}

#result-winners{padding:1rem;border:2px solid #cba02b;border-radius:12px;background:#fff0b3;color:#173c4d;font-size:1.35rem;font-weight:800}#voyage-finale{padding:.8rem;border:1px solid #cba02b;border-radius:12px;background:#fff9e8;margin-bottom:1rem}#voyage-finale small{display:block}#voyage-finale li{margin:.5rem 0}#voyage-finale h3{margin:.5rem 0}#voyage-finale button{max-width:100%}

#final-scoring-details{margin:1rem 0}#final-scoring-details>summary{font-weight:700;cursor:pointer}#results .table-scroll table{min-width:640px}

#email-alert-preferences{max-width:32rem;width:calc(100% - 2rem);box-sizing:border-box;border:2px solid #cba02b;border-radius:12px;background:#fff9e8;color:#173c4d}#email-alert-preferences input[type=email]{display:block;max-width:100%;width:100%;box-sizing:border-box}#email-alert-preferences .email-consent{display:block;margin:.8rem 0}#email-alert-preferences button{margin:.3rem;max-width:100%}

/* Phone: keep the board in sight while the next real decision scrolls below it. */
@media(max-width:950px){
 #phone-play-focus{display:block;min-width:0;overflow:visible;position:relative;isolation:isolate}
 #phone-play-focus>#board-viewport{position:sticky;top:calc(44px + var(--phone-herring-roll-height, 0px));height:40dvh!important;min-height:170px;max-height:320px;flex:none;z-index:20;width:100%;border:2px solid var(--nautical-gold);box-shadow:0 3px 6px #1234}
 #phone-play-focus>#phone-board-controls{margin-top:8px}
 #phone-play-focus #guided-actions,#phone-play-focus #phone-action-confirmation,#phone-play-focus #phone-next-action-strip{grid-column:1/-1;width:100%;min-width:0;box-sizing:border-box}
 #phone-play-focus button,#phone-play-focus input,#phone-play-focus select{scroll-margin-top:calc(56px + min(40dvh,320px) + var(--phone-herring-roll-height, 0px))}
 #phone-play-focus #collision-choice,#phone-play-focus #chance-card-notice{margin:.4rem 0;padding:.6rem}
 #phone-play-focus #collision-controls{display:flex;flex-wrap:wrap;gap:6px}
 #phone-play-focus #collision-controls select{width:100%;min-width:0}
 #phone-play-focus #purchase-options{font-size:.88rem}
 .board-panel.expanded #phone-play-focus{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
 .board-panel.expanded #phone-play-focus>#board-viewport{top:0;height:40dvh!important;min-height:140px;flex:none}
}

#phone-turn-start-dock{display:none}
@media(max-width:950px){
 #phone-play-focus>#phone-turn-start-dock:not([hidden]){display:block;position:sticky;top:calc(44px + clamp(170px,40dvh,320px));z-index:21;background:#fff8e7;border:1px solid #c69b32;border-radius:0 0 8px 8px;padding:6px;margin-top:0;box-shadow:0 3px 6px #1234}
 #phone-turn-start-dock #phone-next-action-strip:not([hidden]){display:block;margin:0 0 5px;padding:4px 6px;background:#fff2c5;border-radius:5px}
 #phone-turn-start-dock #phone-next-action-strip small{display:block;font-size:.65rem;line-height:1.2}
 #phone-turn-start-dock #phone-next-action-strip strong{display:block;font-size:1rem;line-height:1.25}
 #phone-turn-start-dock #phone-next-action-strip span,#phone-turn-start-dock #phone-next-action-strip button{display:none}
 #phone-turn-start-dock>#turn-action{display:block;width:100%;min-height:48px;font-weight:750}
 .board-panel.expanded #phone-play-focus>#phone-turn-start-dock:not([hidden]){top:clamp(140px,40dvh,320px)}
}
@media(max-width:950px){#phone-play-focus>#phone-turn-start-dock:not([hidden]),#phone-turn-start-dock #phone-next-action-strip{color:#173c4d}}
/* Moored boats sit over water while the approved scenery remains around the game. */
.circular-board #board-viewport{background:#1c6688 url('/approved-reference-scenery.png') center bottom / auto 220% no-repeat}
body.circular-board[data-scenery="plain"] #board-viewport{background:transparent}

/* A large but brief flash; clicks always pass through to game controls. */
#collision-comic-burst.large-collision-burst{left:50%;top:50%;transform:translate(-50%,-50%);width:94vw;height:82dvh;max-width:1100px;max-height:800px;object-fit:contain;filter:none;pointer-events:none}

#captain-profile-open{align-self:end;max-width:100%;font-size:.82rem}#captain-profile-dialog{max-width:min(94vw,640px)}#captain-profile-dialog table{width:100%;font-size:.85rem;border-collapse:collapse;margin:12px 0}#captain-profile-dialog td,#captain-profile-dialog th{padding:7px 4px;text-align:left;border-bottom:1px solid #d8cda8}#captain-profile-dialog form{display:grid;gap:8px}#captain-profile-dialog label{max-width:none}#career-inventory{padding:8px 0}

#captain-profile-dialog{background:#fff8e4;color:#163748;border:2px solid #c69b32;border-radius:12px;padding:16px;max-height:88dvh;overflow:auto}.career-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.career-dialog-heading h2{margin:0;font-size:1.25rem}.career-dialog-heading button{flex-shrink:0}#captain-profile-dialog::backdrop{background:#09263888}

#captain-promotion-path{margin:14px 0;padding:14px 16px;border:1px solid #d8ad45;border-radius:12px;background:#fff4cf;color:#163748}#captain-promotion-path h3{margin:0 0 6px;font-size:1.1rem}#captain-promotion-path p{margin:6px 0}#captain-next-promotion{font-weight:600}#captain-promotion-path ol{list-style:none;padding:0;margin:12px 0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}#captain-promotion-path li{display:flex;flex-direction:column;gap:4px;padding:9px;border:1px solid #d8cda8;border-radius:8px;background:#fffbef;min-width:0;font-size:.78rem}#captain-promotion-path li strong{font-size:.85rem}#captain-promotion-path li.current{border:2px solid #24566b;background:#e9f3f5;padding:8px}#captain-promotion-path li.current strong::after{content:" · You are here"}@media(max-width:900px){#captain-promotion-path ol{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:500px){#captain-promotion-path ol{grid-template-columns:repeat(2,minmax(0,1fr))}}

#compact-review-controls:not([hidden]){display:flex;flex-wrap:nowrap;gap:6px;align-items:stretch;margin:5px 0;width:100%}#compact-review-controls>button{display:block;flex:1 1 0;min-width:0;min-height:44px;margin:0;padding:7px 4px;font-size:.78rem;line-height:1.2}body .guide-desktop.guide-compact,body .guide-phone.guide-compact{display:none}

.season-career-reward{margin:10px 0;padding:10px 12px;border:1px solid #bd9437;border-radius:8px;background:#fff1bb}.season-career-reward h4{margin:0 0 5px;color:#163748;font-size:1.05rem}.season-career-reward p{margin:5px 0}.season-career-reward button{margin-top:5px}
#season-milestone{max-height:80dvh;overflow:auto;overscroll-behavior:contain}
@media(max-width:950px){body:has(#season-milestone:not([hidden])) #phone-play-focus>#board-viewport{position:relative;top:auto}body:has(#season-milestone:not([hidden])) #phone-turn-start-dock{display:none!important}}

.purchase-preview{flex-basis:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:4px 12px;margin:2px 0 0;padding:10px;background:#edf5f5;border:1px solid #b7cbd1;border-radius:7px;font-size:.82rem}.purchase-preview dt{color:#486674}.purchase-preview dd{margin:0;font-weight:650}.purchase-row>small{flex-basis:100%;font-size:.75rem;color:#486674}

#allocation-boats .allocation-boat{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;flex:0 1 auto}#allocation-boats .allocation-boat label{display:inline;flex:0 1 auto;font-size:.8rem}#allocation-boats .allocation-entry{display:contents;margin:0}#allocation-boats .allocation-entry input{width:6rem;max-width:100%;flex:0 0 6rem;min-height:44px}#allocation-boats .allocation-entry #allocate-automatically{flex:0 1 auto;margin:0;min-height:44px}#catch-allocation.single-boat-catch #allocation-boats,#catch-allocation.single-boat-catch #allocate-automatically{display:none}

.purchase-row .cannery-offer{flex:1 1 220px;font-size:.82rem;padding:7px 9px;border-radius:6px;background:#e4f1e8;color:#22573e}.purchase-row .cannery-offer[data-tone=short]{background:#fff0c3;color:#6b4a10}.purchase-row .cannery-offer[data-tone=unavailable]{background:#e9edef;color:#48606c}



body.invitation-entry #entry>.welcome-objective,body.invitation-entry #entry>.welcome-tutorial,body.invitation-entry #entry>.welcome-teaching,body.invitation-entry #entry>.welcome-intro-row,body.invitation-entry #entry>.voyage-choices,body.invitation-entry #captain-promotion-path,body.invitation-entry #welcome-banner{display:none}body.invitation-entry #entry{max-width:600px;margin:0 auto 18px}#invitation-entry-form{display:grid;gap:12px}#invitation-entry-form p{margin:0}#invitation-entry-form .captain-name{width:100%;max-width:none}#invitation-entry-form #join{width:100%;min-height:52px;font-size:1.1rem;font-weight:750}

.invitation-share-actions{display:flex;flex-wrap:wrap;gap:8px}.invitation-share-actions button{min-height:44px}#share-crew-invitation{background:#176349;border-color:#176349;font-weight:750}

#resume-recap{max-height:80dvh;overflow:auto;overscroll-behavior:contain}#resume-recap #resume-turn-status{padding:7px 9px;background:#e2efee;border-left:4px solid #24566b;font-weight:750}#resume-finances{font-weight:650}#resume-recap #resume-continue{width:100%}@media(max-width:950px){body:has(#resume-recap:not([hidden])) #phone-play-focus>#board-viewport{position:relative;top:auto}body:has(#resume-recap:not([hidden])) #phone-turn-start-dock{display:none!important}}

.purchase-guidance{margin:4px 0 10px;padding:9px 11px;border-left:4px solid #c69b32;background:#fff2c9;color:#173c4d;font-size:.82rem}.purchase-guidance p{margin:4px 0 0}

#voyage-review{margin:12px 0;border:1px solid #c69b32;border-radius:8px;padding:8px 10px;background:#fff9e7}#voyage-review>summary{min-height:44px;padding:8px 0}#voyage-review dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,auto);gap:6px 12px;font-size:.85rem}#voyage-review dd{margin:0;text-align:right;font-weight:700}#voyage-review h4{margin:10px 0 6px}

@keyframes boat-turn-bob{0%,100%{transform:translateX(-50%) rotate(-2.5deg) scaleX(var(--boat-facing,1))}50%{transform:translateX(-50%) rotate(2.5deg) scaleX(var(--boat-facing,1))}}.boat-token.boat-turn-bob{animation:boat-turn-bob 3.6s ease-in-out infinite}.voyage-page-hidden .boat-turn-bob,.voyage-board-offscreen .boat-turn-bob{animation-play-state:paused}@media(prefers-reduced-motion:reduce){.boat-token.boat-turn-bob{animation:none}}

#crew-status{margin-top:8px;border-top:1px solid #c8d6dc;padding-top:5px}#crew-status>summary{min-height:44px;padding:9px 0}#crew-status ul{list-style:none;padding:0;margin:0}#crew-status li{padding:7px 0;border-bottom:1px solid #d6e0e1;font-size:.82rem}#crew-status li small{display:block;color:#486674;margin-top:3px}.crew-needs-action:not(:empty){display:inline-block;margin-left:8px;background:#fff0bb;color:#684d0f;padding:2px 6px;border-radius:4px;font-size:.75rem;font-weight:700}
@media(max-width:950px){body:has(#crew-status[open]) #phone-play-focus>#board-viewport,body:has(#crew-status[open]) #phone-play-focus>#phone-turn-start-dock{position:relative;top:auto}}

#crew-host-role{font-weight:800;color:#164c5c}#crew-ready-count{display:block;font-size:1.05rem}.crew-launch-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}.crew-launch-controls #start-reason{flex-basis:100%;margin:0}.crew-launch-controls #start{font-weight:750;background:#176349;border-color:#176349}#crew-lobby>details>summary{min-height:44px;padding:10px 0}

#fleet-feed{margin:9px 0;padding:9px 11px;border:1px solid #c8d6dc;border-radius:8px;background:#f1f7f7;color:#173c4d}#fleet-feed h3{margin:0 0 5px;font-size:.88rem}#fleet-feed ul{list-style:none;padding:0;margin:0}#fleet-feed li{font-size:.8rem;line-height:1.4;padding:4px 0;border-top:1px solid #dce6e8}#fleet-feed li:first-child{border-top:0}

#restore-player-dialog{max-width:min(94vw,580px);max-height:88dvh;overflow:auto;background:#fff8e5;color:#173c4d;border:2px solid #c69b32;border-radius:12px;padding:16px}#restore-player-dialog button{min-height:44px;margin:8px 6px 4px 0}#restore-player-dialog label{display:block;margin:10px 0}#restore-player-dialog input{width:100%;margin:8px 0}#restore-player-dialog::backdrop{background:#09263888}

#plan-next-turn{margin:8px 0;min-height:44px}#turn-planning-dialog{box-sizing:border-box;width:min(94vw,620px);max-height:88dvh;overflow:auto;background:#fff8e5;color:#173c4d;border:2px solid #c69b32;border-radius:12px;padding:16px}#turn-planning-dialog::backdrop{background:#08253699}#turn-planning-dialog button{min-height:44px;margin:4px 8px 4px 0}#turn-planning-dialog section{border-top:1px solid #d9c99c;margin-top:16px}#turn-planning-dialog h3{margin-bottom:6px}#turn-planning-dialog p{line-height:1.5;overflow-wrap:anywhere}#turn-planning-dialog .planning-route{border:1px solid #d9c99c;background:#fffdf4;border-radius:8px;padding:10px;margin:8px 0}#turn-planning-dialog .planning-route p{margin:5px 0}#turn-planning-dialog summary{cursor:pointer;min-height:32px}.planning-map-target{fill:#27c9cf55!important;stroke:#056c79!important;stroke-width:5!important;stroke-dasharray:7 4;pointer-events:none}
#turn-planning-dialog .planning-choices{display:flex;gap:6px;flex-wrap:wrap}#turn-planning-dialog .planning-choices button{flex:1 1 70px;margin:4px 0}#turn-planning-dialog .planning-choices button[aria-pressed=true]{background:#123648;outline:2px solid #bd922b;outline-offset:1px}
#chance-reader{box-sizing:border-box;width:min(92vw,560px);max-height:88dvh;overflow:auto;padding:22px;background:#fff5d9;color:#173c4d;border:3px solid #c69b32;border-radius:12px;box-shadow:0 8px 40px #08253666}#chance-reader::backdrop{background:#082536aa}#chance-reader-title{font-size:1.35rem;margin:0 0 16px}#chance-reader-text{white-space:pre-line;font-size:1.1rem;line-height:1.6}#chance-reader-status{line-height:1.5;border-top:1px solid #d5bc7d;padding-top:12px}#chance-reader-continue{width:100%;min-height:48px;margin-top:12px}
#plan-next-turn{position:fixed;left:12px;bottom:12px;z-index:2998;margin:0;max-width:calc(50vw - 18px);min-height:44px;padding:10px 14px;background:#123c50;color:#fff4dd;border:2px solid #d5b45c;border-radius:24px;box-shadow:0 2px 8px #001a3355;font-weight:750}body:not(.playing) #plan-next-turn{display:none}@media(max-width:450px){#plan-next-turn{left:8px;font-size:.8rem;padding:8px 10px}}
#waiting-plan-next-turn{min-height:44px;margin:6px 0;border:2px solid #c69b32;font-weight:700}
.waiting-planning-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin-bottom:4px}#turn .waiting-planning-heading>#season-clock-heading,.waiting-planning-heading>#captain-turn-title{flex:1 1 220px;margin:0}#turn .waiting-planning-heading>#waiting-plan-next-turn{flex:0 0 auto;margin:0;font-size:.8rem;padding:6px 10px}
#open-galley-talk{background:#765329;border-color:#765329}#galley-talk-dialog{box-sizing:border-box;width:min(94vw,560px);max-height:88dvh;overflow:auto;background:#fff8e5;color:#173c4d;border:2px solid #c69b32;border-radius:12px;padding:18px}#galley-talk-dialog::backdrop{background:#08253699}#galley-talk-dialog h2{margin:0 0 10px}#galley-talk-dialog h3{font-size:1.1rem;line-height:1.5;margin:8px 0 14px}#galley-talk-dialog p{line-height:1.5}#galley-talk-dialog button{min-height:44px;margin:5px 6px 5px 0}#galley-talk-dialog .galley-answers{display:grid;gap:6px}#galley-talk-dialog .galley-answers button{text-align:left;width:100%;margin:0}#galley-talk-dialog .galley-correct:disabled{background:#e1f1df;color:#205834;border:2px solid #43844d}#galley-talk-dialog .galley-chosen:disabled{border:2px solid #926a28}#galley-explanation:not(:empty){background:#fff0ba;padding:12px;border-radius:8px}#galley-return-turn{width:100%;font-weight:750;background:#176349}
.save-turn-goal{margin:8px 0}.save-turn-goal summary{font-weight:650}.save-turn-goal input{margin:5px 0;min-height:44px}.save-turn-goal button{min-height:44px}#saved-turn-goal{grid-column:1/-1;margin:6px 0 10px;padding:8px 10px;border:1px solid #c69b32;border-radius:8px;background:#fff0ba;color:#173c4d}#saved-turn-goal summary{cursor:pointer;font-weight:700;min-height:28px}#saved-turn-goal button{min-height:44px;margin:5px 6px 0 0}#saved-turn-goal p{line-height:1.5;margin:8px 0}
@media(max-width:950px){body:has(#saved-turn-goal[open]:not([hidden])) #phone-play-focus>#board-viewport,body:has(#saved-turn-goal[open]:not([hidden])) #phone-play-focus>#phone-turn-start-dock{position:relative;top:auto}}
#turn #captain-turn-banner.boats-full #captain-turn-title{font-size:clamp(1.25rem,2vw,1.6rem);font-weight:850;text-transform:uppercase;color:#733008}#captain-turn-banner.boats-full{border:3px solid #b96215;background:#fff0ba}#boat-full-note{white-space:pre-line;font-size:1.03rem;line-height:1.6;font-weight:750}#hold-quota-limits{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}#hold-quota-limits>div{flex:1 1 160px;background:#fffdf4;border:2px solid #b96215;border-radius:7px;padding:8px}#hold-quota-limits span,#hold-quota-limits strong{display:block}#hold-quota-limits span{font-size:.8rem;font-weight:750}#hold-quota-limits strong{font-size:1rem}.quota-hold-warning{display:block;flex:1 1 100%;padding:10px;border:2px solid #b96215;border-radius:6px;background:#fff0ba;color:#733008;font-size:1rem;font-weight:800;margin:6px 0}
#turn #captain-turn-banner.boats-full #boat-full-note{font-size:1rem;line-height:1.5}
#captain-strategy-dialog{box-sizing:border-box;width:min(94vw,650px);max-height:88dvh;overflow:auto;padding:18px;background:#fff8e5;color:#173c4d;border:2px solid #c69b32;border-radius:12px}#captain-strategy-dialog::backdrop{background:#08253699}#captain-strategy-dialog h2{margin:0 0 10px}#captain-strategy-dialog h4{margin:16px 0 5px}#captain-strategy-dialog p,#captain-strategy-dialog li{line-height:1.5}#captain-strategy-dialog button{min-height:44px;margin:4px 6px 4px 0}#captain-strategy-dialog .strategy-tabs{display:flex;flex-wrap:wrap;gap:6px}#captain-strategy-dialog .strategy-tabs button{flex:1 1 110px;margin:4px 0}#captain-strategy-dialog button[aria-pressed=true]{outline:2px solid #c69b32;outline-offset:1px;background:#123648}
#hold-quota-limits>.hold-summary{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 20px}#hold-quota-limits>.hold-summary>span{display:inline-block;white-space:nowrap;font-size:.95rem;font-weight:500}#hold-quota-limits>.hold-summary strong{display:inline;font-size:inherit}
#seat-access{background:#e9f3ef;border:1px solid #68978a;border-radius:9px;padding:12px;margin:10px 0}#seat-access strong,#seat-access span{display:block;margin-bottom:6px}#seat-access button{min-height:44px}#invitation-recovery{padding:12px;background:#fff3ce;border:1px solid #bd963d;border-radius:8px}#invitation-recovery input{min-height:44px;margin:6px 0}#invitation-entry-form .controls button{flex:1 1 180px;min-height:48px}#seat-access-dialog{box-sizing:border-box;width:min(94vw,580px);max-height:88dvh;overflow:auto;background:#fff8e5;color:#173c4d;border:2px solid #c69b32;border-radius:12px;padding:18px}#seat-access-dialog::backdrop{background:#08253699}#seat-access-dialog input{width:100%;min-height:44px}#seat-access-dialog button{min-height:44px;margin:6px 8px 0 0}
#seat-access>summary{cursor:pointer;font-weight:750;min-height:32px}#seat-access[open]>strong{margin-top:8px}

#legal-space-overlay .choice-marker.first-voyage-choice[aria-disabled="false"] {
  fill:#ffd155;
  fill-opacity:.55;
  stroke:#8f5900;
}
@media(max-width:950px) {
  body:has(#phone-herring-roll:not([hidden])):not(:has(dialog[open])) {
    --phone-herring-roll-height:24px;
  }
  #phone-herring-roll {
    display:block;
    font-size:.9rem;
    font-weight:750;
    line-height:22px;
  }
}


#herring-detour-callout {
  position:absolute;
  z-index:30;
  width:max-content;
  max-width:min(255px, calc(100% - 16px));
  margin:0;
  padding:9px 13px;
  border:3px solid #ffcf44;
  border-radius:10px;
  background:#102d3d;
  color:#fff;
  box-shadow:0 3px 12px #0009;
  font-size:clamp(1.15rem, 5vw, 1.55rem);
  font-weight:800;
  line-height:1.15;
  pointer-events:none;
}
#herring-detour-callout small {
  display:block;
  margin-top:5px;
  color:#fff0ae;
  font-size:.88rem;
  font-weight:650;
}

#crew-chat {
  width:min(440px,calc(100% - 24px));
  max-height:85dvh;
  padding:14px;
  border:2px solid #c9a34c;
  border-radius:12px;
  background:#fff8e7;
  color:#15394b;
}
#crew-chat::backdrop { background:#092a3b99; }
#crew-chat header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0; background:none; }
#crew-chat h2 { color:inherit; margin:0; }
#crew-chat button,#crew-chat-open { min-height:44px; }
#crew-chat-messages { height:min(32dvh, 240px); overflow:auto; padding:0 5px; list-style:none; }
#crew-chat-messages li { padding:7px 0; border-bottom:1px solid #d9d2be; overflow-wrap:anywhere; }
#crew-chat-messages time { font-size:.78em; color:#496572; }
#crew-chat-messages p { margin:3px 0 0; white-space:pre-wrap; }
#crew-chat-form { display:grid; gap:6px; }
#crew-chat-input { box-sizing:border-box; width:100%; resize:vertical; font:inherit; }
#crew-chat-status { margin:6px 0 0; }

#play-herring-practice {
  min-height: 50px;
  padding: 12px 18px;
  background: #ffda62;
  border-color: #93640e;
  color: #122f3b;
  font-weight: 750;
}
#play-herring-practice:hover:enabled { background: #ffe68f; }
#play-herring-practice:disabled { opacity: .7; }


#survival-entry { align-items: center; margin: 0 0 16px; }
main:has(#entry[hidden]) #survival-entry { display: none; }

#practice-catch-totals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  margin: 0;
}
#practice-catch-totals dd { margin: 0; font-weight: 650; }

#herring-boat-speech {
  position: fixed;
  z-index: 90;
  max-width: calc(100vw - 16px);
  border: 2px solid #173c4d;
  border-radius: 16px;
  padding: 6px 12px;
  background: #fff6cf;
  color: #122f3b;
  box-shadow: 0 2px 6px #122f3b40;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  pointer-events: none;
}
#herring-boat-speech::after {
  content: '';
  position: absolute;
  left: var(--speech-tail-x);
  bottom: -7px;
  width: 10px;
  height: 10px;
  background: inherit;
  border: solid #173c4d;
  border-width: 0 2px 2px 0;
  transform: translateX(-50%) rotate(45deg);
}
#herring-boat-speech.below-boat::after {
  top: -7px;
  bottom: auto;
  transform: translateX(-50%) rotate(225deg);
}
body:has(dialog[open]) #herring-boat-speech { visibility: hidden; }
#herring-boat-speech.game-callout {
  border-radius: 6px;
  background: #153d4b;
  color: white;
  border-color: white;
}
#herring-boat-speech.game-callout::after,
#herring-boat-speech.beside-boat::after { display: none; }

.practice-board-choice {
  position: absolute;
  z-index: 8;
  top: -17px;
  left: 0;
  transform: translate(-50%, -100%);
  padding: 3px 7px;
  border: 1px solid #173c4d;
  border-radius: 5px;
  background: #fff5d5;
  color: #122f3b;
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
}
.practice-board-choice-sell { background: #e2f4ed; }
#board.digital-board-season1-top .practice-board-choice {
  top: 17px;
  transform-origin: top center;
  transform: translateX(-50%) rotate(180deg);
}
#board.digital-board-season1-top .practice-board-choice-sell {
  transform: translate(-50%, 100%) rotate(180deg);
}

#herring-boat-speech.quota-burst {
  padding: 15px 22px;
  border: 0;
  background: center / 100% 100% no-repeat url("/quota-burst.svg");
  color: #122f3b;
  box-shadow: none;
  letter-spacing: .025em;
}

#turn-action.herring-routine-action { font-weight: 750; }


@media (max-width:950px) {
  #season-clock.season-turn-count #season-clock-phone-summary { display: none; }
  body:has(#season-clock.season-turn-count:not([hidden])) { --phone-herring-roll-height: 0px; }
  body:not(:has(#season-clock:not(.season-turn-count):not([hidden]))) #phone-play-focus > #board-viewport { top: 0; }
  body:not(:has(#season-clock:not(.season-turn-count):not([hidden]))) #phone-play-focus > #phone-turn-start-dock:not([hidden]) {
    top: clamp(170px, 40dvh, 320px);
  }
  .board-guide #compact-canneries { color: inherit; }
}

.board-season-compact { display: none; }
@media (max-width:950px) {
  #board-season-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin: 4px 0;
  }
  #board-season-row #inspect-board-space {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 6px 9px;
    font-size: .8rem;
    white-space: nowrap;
  }
  #board-season-row #board-season-status {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(.72rem, 3.15vw, .8rem);
  }
  .board-season-full { display: none; }
  .board-season-compact { display: inline; }
}

#season-milestone .season-net-worth-change {
  margin: 6px 0 12px;
  font-size: 1.15rem;
  font-weight: 800;
}

#herring-personal-best {
  padding: 14px clamp(12px, 3vw, 22px);
  margin-bottom: 14px;
  border: 2px solid #9c6511;
  border-radius: 10px;
  background: #ffda62;
  color: #17394b;
}
#herring-personal-best h3 {
  margin: 0;
  font-size: clamp(1.125rem, 3vw, 1.55rem);
  line-height: 1.2;
}
#herring-personal-best .herring-best-score {
  margin: 2px 0 6px;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 850;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
#herring-personal-best p { margin: 0 0 4px; }
#herring-personal-best p:last-child { margin-bottom: 0; }

#herring-next-voyage {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 4px solid #286e80;
  background: #e8f3f2;
  color: #17394b;
}
#herring-next-voyage h3 { margin: 0 0 4px; }
#herring-next-voyage p { margin: 0; }

#herring-trip{margin:10px 0 18px;padding:12px;border:1px solid #c69b32;border-radius:8px;background:#fff8e4}
#herring-trip h3{margin:0 0 6px}
#herring-trip-demo{display:grid;grid-template-columns:minmax(0,370px) minmax(0,1fr);gap:12px;margin-top:10px;align-items:start}
#herring-trip-board{position:relative;aspect-ratio:2;overflow:hidden;background:#173c50;border-radius:6px}
#herring-trip-art{position:absolute;width:303.24%;max-width:none;left:-86.49%;top:-140.54%;transform:rotate(180deg)}
#herring-trip-boat{position:absolute;width:12%;transform:translate(-50%,-70%);transition:left .35s,top .35s}
#herring-trip-boat.trip-restart{transition:none}
#herring-trip-step{font-weight:700}
#herring-trip-demo dl{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0}
#herring-trip-demo dd{margin:0;font-weight:750}
@media(max-width:600px){#herring-trip-demo{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#herring-trip-boat{transition:none}}

#herring-trip-link{align-self:center;text-align:center;line-height:1.15}

#help .help-grid{display:block;columns:2 300px;column-gap:24px;margin-top:12px}
#help .help-grid>section{break-inside:avoid;margin:0 0 10px;padding:10px 12px;border:1px solid #d8c894;border-radius:6px}
#help :is(.help-grid>section,#collision-help,#full-rules)>h3{margin:0 0 5px}
#help :is(.help-grid>section,#collision-help,#full-rules)>p{margin:0 0 8px}
#help .help-grid>section>p:last-child{margin-bottom:0}
#help :is(#collision-help,#full-rules){margin-top:12px;padding:12px;border-top:1px solid #d8c894}
#collision-help>ul{columns:2 290px;column-gap:24px;margin:0;padding-left:20px}
#collision-help li{break-inside:avoid;margin-bottom:6px}
#herring-trip-demo{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);max-width:820px}
@media(max-width:600px){#herring-trip-demo{grid-template-columns:1fr}}
