/* Keep the working ocean and its next decision together. */
#game{max-width:2000px;padding:8px 16px 18px}
#game .game-head{gap:14px;min-height:56px;margin-bottom:8px;justify-content:start}
#game .game-head #day{max-width:150px;font-size:11px;line-height:1.5}
#game #crewPanel{border:0;background:none;padding:0;flex:1;min-width:0}
#crewPanelTitle{display:none}
#game #players{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
#game #players .player{width:auto;flex:1;min-width:160px;max-width:320px;min-height:52px;grid-template-columns:26px minmax(0,1fr) auto;grid-template-rows:auto auto;padding:6px 10px;gap:1px 8px;font-size:13px;background:#fffaf0}
#game #players .player>span:not(.icon):not(.crew-resources){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#game #players .player>span{line-height:1.2}
#game #players .player>.icon{grid-row:1/3;font-size:23px}
#game #players .player>.crew-resources{grid-column:3;grid-row:1/3;gap:8px;font-size:12px;align-self:center}
#game #players .crew-resources img{width:21px;height:21px}
#game #players .player[aria-pressed=true]{padding:5px 9px;background:#eef2e2}
#game #players .player small{white-space:nowrap}
#game .game-head #copyRoom{display:none}
#game #tableNavigation{display:none}
#tableCommand{gap:12px;margin-bottom:10px;min-height:58px;padding:7px 12px}
#tableCommand #turnPrompt strong{font-size:15px}
#tableCommand #turnPrompt>span{font-size:12px}
#tableCommand #actions>button{margin:0}
#game .table,#game.ocean-focused .table{grid-template-columns:minmax(0,1fr) 390px;gap:16px;align-items:start}
#game .ocean-area{grid-column:1;grid-row:1;width:100%;max-width:none}
#game .right{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:10px;width:100%;min-width:0}
#game .left{display:none}
#game .board-heading{gap:4px;margin-bottom:6px;min-height:44px;justify-content:start}
#game .board-heading>span{font-size:13px;flex:0 0 auto;margin-right:6px}
#game .board-heading>.row{gap:3px}
#game .board-heading button{font-size:11px;min-height:44px;padding:5px 7px;white-space:nowrap}
#game .board-heading #focusSettlement{border-color:#356754;background:#eef2e2}
#game .board-heading #zoomIn,#game .board-heading #zoomOut{min-width:36px;font-size:18px}
#game .board-heading #panBoard{font-size:0;min-width:38px}
#game .board-heading #panBoard::after{content:'✋';font-size:16px}
#game .table-tools{margin-left:0}
#game .board-guide-tools{gap:3px}
#game #viewport{width:100%;border:3px solid #e7dfcb;outline:1px solid #52757d;background:#256f80;max-height:none;margin:0;scrollbar-gutter:auto;isolation:isolate}
#game #viewport canvas{max-width:none}
#game .camera-hint{display:none}
#game .hint{margin:5px 0;padding:4px 8px;min-height:0;font-size:12px;border:0;background:#fffaf0}
#game #resources{margin-top:5px;padding:3px 10px;border:0;background:#fffaf0;gap:8px 18px;justify-content:start;font-size:12px}
#game #resources>span,#game #resources>button{min-height:36px}
#game #resources b{font-size:16px}
#game .vortex-paper{min-height:330px;margin:0;width:100%;padding:0!important}
#game .vortex-paper #hand.radial-hand{height:310px;min-height:310px}
#game .vortex-paper #hand.radial-hand .tile-cell{width:32px;height:32px}
#game .vortex-board{width:330px;max-width:100%;left:50%;transform:translateX(-50%);top:25px}
#game #handTitle{font-size:11px;border:0;padding:5px 10px}
#game .vortex-paper:has(#hand:empty){display:none}
#game .vortex-paper:has(#hand[data-count="1"]),#game .vortex-paper:has(#hand[data-count="2"]){min-height:210px}
#game .vortex-paper #hand:not(.radial-hand){min-height:180px;height:180px;align-content:center;padding:12px 0}
#game .vortex-paper:has(#hand[data-count="1"]) .vortex-board,#game .vortex-paper:has(#hand[data-count="2"]) .vortex-board{width:200px}
#tableInfo{background:#fffaf0;color:#203b51;border:1px solid #839a9a;border-radius:7px;min-width:0;box-shadow:0 3px 9px #173e4915;scroll-margin-top:90px}
.info-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-bottom:1px solid #c1c9ba;padding:3px 5px;background:#f2f0e2;border-radius:7px 7px 0 0}
.info-tabs button{min-height:48px;padding:7px 3px;border:0;border-radius:3px;background:none;color:#425363;font-size:12px;line-height:1.35;position:relative}
.info-tabs button[aria-selected=true]{background:#fffaf0;color:#1d4c35;box-shadow:inset 0 -3px #315f44}
.info-tabs button:hover{background:#fffaf0}
.info-tabs button.has-opportunity{font-weight:700;color:#1b5736}
.info-tab-count{display:inline-block;margin-left:4px;font-size:11px;font-weight:700;color:#1b5736}
.info-body{max-height:440px;overflow:auto;overscroll-behavior:contain;padding:12px;scrollbar-width:thin}
.right:has(.vortex-paper #hand:empty) .info-body{max-height:min(600px,calc(100dvh - 265px))}
#tableInfo #buildSection,#tableInfo .paper{padding:0!important;background:none;border:0;box-shadow:none;margin:0;border-radius:0}
#tableInfo .eyebrow{display:none}
#tableInfo .build-visual-instruction{font-size:12px;margin-bottom:9px!important;line-height:1.5}
.construction-materials{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.construction-materials button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:5px 2px;min-height:65px;background:#f3f0e4;color:#203b51;border:1px solid transparent;border-radius:4px;font-size:11px}
.construction-materials img{width:30px;height:30px;object-fit:contain}
.construction-materials button[aria-pressed=true]{background:#edf1df;border-color:#315f44;box-shadow:inset 0 -2px #315f44}
#tableInfo .building-picture-catalog{gap:12px}
#tableInfo .building-material-requirement{grid-template-columns:repeat(2,20px) 1fr;grid-template-rows:repeat(2,20px);margin-bottom:10px;gap:2px}
#tableInfo .building-material-requirement>img{width:20px;height:20px}
#tableInfo .building-material-requirement>span{font-size:12px;line-height:1.5;margin-left:10px}
#tableInfo .visual-building-choice{min-height:156px;padding:8px 5px;gap:6px;border-color:#a3b0a2;background:#fffdf4}
#tableInfo .visual-building-choice[aria-pressed=true]{padding:7px 4px;background:#edf1df;border-color:#315f44}
#tableInfo .visual-building-choice>strong{font-size:14px}
#tableInfo .building-choice-art{width:72px;flex-basis:72px;height:74px}
#tableInfo .building-bonus-art{width:48px;min-width:35px;height:62px;flex-shrink:0}
#tableInfo .building-bonus-art.bonus-tile-shape{height:44px}
#tableInfo .building-bonus-art.bonus-scrap-shape{height:39px}
#tableInfo .bonus-community>img{width:23px;height:23px}
#tableInfo .foundation-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:8px}
#tableInfo .foundation-choice-heading{font-size:16px!important;margin:8px 0!important}
#tableInfo .confirm-building{position:sticky;bottom:0;z-index:4;margin-top:8px;box-shadow:0 -3px 0 #fffaf0;min-height:48px}
#tableInfo .selected-building-explanation p,#tableInfo #guideReference p{font-size:13px;line-height:1.65}
.build-warning{padding:10px 12px;border-left:4px solid #987022;background:#f6edcf;color:#4f3d17!important;font-size:13px!important;line-height:1.55!important;margin:10px 0!important}
.command-back{display:flex;flex-direction:column;align-items:center;justify-content:center}
#undoLockReason{font-size:10px;color:#634c22;line-height:1.4;max-width:120px;text-align:center}
#workplaceMarkers{position:absolute;top:0;left:0;pointer-events:none;z-index:4;overflow:hidden}
#workplaceMarkers .activated-workplace{fill:#f0d46b30;stroke:#fff0ad;stroke-width:.11;paint-order:stroke;filter:drop-shadow(0 0 .06px #153f31)}
.workplace-notice{position:relative;padding:12px;background:#fff5d4;color:#203b51;border:2px solid #537950;border-radius:5px}
.workplace-notice>strong{display:block;font-size:17px;padding-right:40px}.workplace-notice>p{font-size:12px;line-height:1.5;margin:5px 0}
.workplace-notice>button{float:right;min-height:44px;min-width:44px;padding:4px;font-size:20px;color:#203b51}
.workplace-notice .help-example{margin:7px 0 0;padding:6px;background:#eceddc}.workplace-notice .help-example>img{width:52px;height:52px;object-fit:contain}
.score-theatre-open{overflow:hidden}
#game #finale.score-theatre{position:fixed;inset:0;z-index:1000;width:100%;height:100dvh;max-width:none;margin:0;padding:0;background:linear-gradient(#f4f1e8ed,#edf0e9ed),url('/assets/painted-sea.png') center/cover!important;border:0;overflow:auto;color:#203b51;text-align:center;overscroll-behavior:contain}
#game #finale.score-theatre:not(.is-open){display:none!important}
.final-shell{width:min(1220px,100%);margin:0 auto;padding:24px 30px 0}
#game #finale .final-heading{display:block;height:auto;min-height:0;padding:0;margin:0;border:0;background:none}
.final-kicker{font-size:11px;letter-spacing:.1em;font-weight:700;color:#425363;margin:0 0 8px}
#game #finale #winner{font:500 clamp(24px,3vw,42px)/1.15 Fraunces,Georgia,serif;margin:0 0 10px}
.final-progress{font-size:13px;color:#425363}
.final-category{display:flex;align-items:center;justify-content:center;gap:12px;min-height:52px;margin:9px 0 14px}
.final-category>img{width:42px;height:42px;object-fit:contain}.final-category p{font-size:14px;line-height:1.5;margin:0}
#finale #scores{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px;margin:0}
.final-player{position:relative;padding:12px;background:#fffaf0;border:1px solid #9daea6;border-radius:7px;min-width:0;box-shadow:0 3px 8px #203b5112}
.final-player h3{font:700 16px 'DM Sans',sans-serif;margin:0 0 10px;overflow-wrap:anywhere}
.final-board{display:block;width:100%;max-width:365px;height:auto;aspect-ratio:1;margin:0 auto 8px;border:3px solid #e6dcc4;border-radius:4px;cursor:default}
.final-total{display:inline-block;font:600 clamp(32px,4vw,55px)/1.1 Fraunces,Georgia,serif;color:#214d37;font-variant-numeric:tabular-nums;margin-right:6px}
.final-player>small{font-size:13px;color:#425363}.final-change{position:absolute;right:15px;bottom:20px;background:#e8eed7;padding:6px 10px;border-radius:4px;font-weight:700;font-size:18px;color:#244f37}
.final-winner{border:3px solid #315f44;padding:10px;background:#f5f5df}.final-winner-label{position:absolute;top:42px;left:50%;transform:translateX(-50%);z-index:1;background:#315f44;color:#fffdf1;padding:5px 16px;border-radius:3px;font-size:12px;font-weight:700}
.final-details{margin:18px auto 0;text-align:left;background:#fffaf0;border:1px solid #9daea6;border-radius:5px;padding:0 12px;max-width:100%;overflow:auto}
.final-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:14px;font-weight:600;list-style:none}.final-details summary::before{content:'▸';margin-right:9px}.final-details[open] summary::before{content:'▾'}
.final-score-row{display:grid;grid-template-columns:minmax(160px,1.5fr) repeat(var(--players),minmax(70px,1fr));gap:12px;align-items:center;border-top:1px solid #c9cfc2;padding:8px;font-size:13px;text-align:right}
.final-score-row>span{display:flex;align-items:center;gap:9px;text-align:left}.final-score-row img{width:26px;height:26px;object-fit:contain}.final-score-row strong{font-size:12px;overflow-wrap:anywhere}.final-score-row.counting{background:#edf1dc}.final-score-row.not-counted{color:#687462}
.final-controls{position:sticky;bottom:0;z-index:4;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:14px 8px;background:#f4f1e8f5;margin:12px -8px 0;border-top:1px solid #c3cbbc}
.final-controls button{min-height:44px;border:1px solid #839a9a;color:#203b51;background:#fffaf0;padding:10px 17px;border-radius:4px;font-size:13px}
.final-controls .primary{background:#286346;color:#fff;border-color:#204b35}
.final-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(min-width:621px) and (max-height:800px){
 .final-shell{padding:12px 24px 0}
 #game #finale #winner{font-size:32px;margin:4px 0}
 .final-kicker{margin-bottom:4px}
 .final-category{min-height:42px;margin:5px 0 8px}
 .final-player{padding:8px}.final-player h3{margin-bottom:6px}
 .final-board{max-width:min(330px,calc(100dvh - 390px));margin-bottom:5px}
 .final-total{font-size:42px}.final-winner{padding:6px}
 .final-details{margin-top:10px}.final-controls{margin-top:8px;padding:10px 8px}
}
@media(max-width:620px){.final-shell{padding:18px 10px 0}#finale #scores{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.final-player{padding:8px}.final-player h3{font-size:12px;min-height:30px;margin-bottom:5px}.final-board{border-width:2px}.final-total{font-size:30px}.final-player>small{font-size:11px}.final-change{right:8px;bottom:42px;font-size:13px;padding:3px 6px}.final-category p{font-size:12px}.final-category{min-height:45px}.final-controls{padding:9px 2px;gap:5px}.final-controls button{font-size:11px;padding:8px 10px}.final-score-row{grid-template-columns:minmax(120px,1.4fr) repeat(var(--players),minmax(45px,1fr));font-size:11px;gap:8px}.final-winner-label{font-size:10px;padding:3px 10px;top:45px}.final-winner{padding:6px}}
#tableInfo .building-choice-effect{color:#334b5a}
#tableInfo #weather .weather-card-art{float:left;width:100px;margin:0 12px 8px 0}
#tableInfo #weather .weather-name{font-size:21px;margin:0 0 8px}
#tableInfo #weather .weather-instruction{font-size:13px}
#tableInfo #weather .weather-requirements{clear:both;margin:12px 0}
#tableInfo #weather .weather-requirement button{min-height:44px;font-size:13px}
#tableInfo #weather .weather-note{display:block;font-size:12px}
#tableInfo #goals{gap:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
#tableInfo #goals img{width:100%;height:auto;max-height:none}
.goal-inspect-hint{font-size:13px;line-height:1.6;margin:0 0 12px}
.guide-topics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:14px}
.guide-topics button{display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;padding:5px 2px;background:#f1efdf;color:#203b51;border-color:transparent;font-size:10px;min-height:65px;border-radius:4px}
.guide-topics button img{width:31px;height:31px;object-fit:contain}
.guide-topics button[aria-pressed=true]{border-color:#315f44;background:#e6edd8}
#guideReference h3{font-size:22px;margin:0 0 10px}
.guide-diagram{display:flex;gap:10px;align-items:center;justify-content:center;padding:12px 8px;background:#ebefe3;border-radius:4px}
.guide-diagram>img{width:70px;height:70px;object-fit:contain}
.guide-diagram>span{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.guide-diagram>span>img{height:65px;width:100%;object-fit:contain}
.guide-diagram small{font-size:11px;line-height:1.45;color:#334b5a}
.guide-diagram>.wild-materials{display:grid;grid-template-columns:1fr 1fr;flex-basis:80px;flex-grow:0;gap:3px}
.guide-diagram>.wild-materials img{width:38px;height:38px}
.guide-diagram .help-example,.guide-diagram .help-object{margin:0;background:none;padding:0;max-width:100%}
#infoPanel-guide:has(#componentInspector:not([hidden])) #guideReference{display:none}
#tableInfo #componentInspector{padding:0;border:0;background:none;margin-bottom:12px}
#tableInfo .inspector-heading button{min-height:44px;min-width:44px}
#tableInfo .material-reference,#tableInfo #tableRecap{border:0;border-top:1px solid #c1c9ba;background:none;padding:5px 0;margin-top:12px;border-radius:0}
#game.ocean-focused .table{grid-template-columns:minmax(0,1fr)}
#game.ocean-focused .right{display:none}
@media(min-width:1600px){#game .table{grid-template-columns:minmax(0,1fr) 440px}#game .vortex-paper #hand.radial-hand{height:340px;min-height:340px}#game .vortex-board{width:360px}.info-body{max-height:500px}}
@media(min-width:980px) and (max-height:950px){
 #game .game-head{min-height:48px}#game #players .player{min-height:48px;padding-top:4px;padding-bottom:4px}
 #game .vortex-paper{min-height:245px}#game .vortex-paper #hand.radial-hand{height:220px;min-height:220px}#game .vortex-board{width:250px}
 .info-body{max-height:310px;padding:10px}.visual-build-choices:has(.construction-materials)>.build-visual-instruction{display:none}
 .construction-materials button{flex-direction:row;gap:4px;font-size:10px;min-height:44px}.construction-materials img{width:22px;height:22px}
 #tableInfo .building-picture-catalog{gap:7px}#tableInfo .building-material-requirement{margin-bottom:7px}
 #tableInfo .building-picture-catalog .visual-building-choice{min-height:125px;gap:3px;padding:6px 4px}#tableInfo .building-picture-catalog .building-choice-pictures{min-height:57px}#tableInfo .building-picture-catalog .building-choice-art{height:55px}
 #tableInfo .building-picture-catalog .building-choice-effect{min-height:29px;font-size:11px}
}
@media(min-width:980px) and (max-width:1190px){#game .table{grid-template-columns:minmax(0,1fr) 350px;gap:12px}#game .board-heading>span{flex-basis:100%}#game #players .player{min-width:145px;max-width:220px}#game #players .player>.crew-resources{grid-column:2;grid-row:2}#game #players .player small{display:none}.guide-topics{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:979px){
 #game{padding:8px 12px 20px}#game .game-head{flex-wrap:wrap;gap:7px 10px}#game #crewPanel{order:3;flex:1 1 100%}#game #players .player{flex:1;max-width:none;min-width:120px}#game .game-head #copyRoom{margin-left:auto}#game #tableNavigation{display:flex;order:4;width:100%;justify-content:center}#game #tableNavigation button{flex:1;font-size:12px}
 #game .table,#game.ocean-focused .table{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}#game .ocean-area{grid-column:1;grid-row:1}#game .right,#game.ocean-focused .right{display:grid;grid-column:1;grid-row:2;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px;align-items:start}#game .table-tools{display:none}#game .vortex-paper{width:100%;min-height:300px}#game .vortex-paper #hand.radial-hand{height:290px;min-height:290px}#game .vortex-board{width:300px}.info-body{max-height:560px}
 #game .board-heading>span{flex-basis:auto}#game .board-heading>.row{width:auto}.board-guide-tools{width:auto}#game #resources{justify-content:center}.mobile-table-jump{display:none!important}
 #game .right:has(#hand:empty) #tableInfo,.workplace-notice{grid-column:1/-1}
}
@media(max-width:620px){
 body.table-playing>header{height:64px;min-height:64px;padding:4px 8px;display:flex;flex-wrap:nowrap;align-items:center;gap:4px;position:relative;z-index:25}
 body.table-playing>header .wordmark{font-size:19px;letter-spacing:2px;flex:1;min-width:0}
 body.table-playing>header .wordmark span{font-size:6px;letter-spacing:1.5px}
 body.table-playing>header nav{display:flex;width:auto;flex-wrap:nowrap;justify-content:end;gap:2px;overflow:visible}
 body.table-playing>header #en,body.table-playing>header #fr{width:44px;height:44px;padding:7px}
 body.table-playing>header nav svg{width:29px;height:22px}
 #tableSettings summary{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:65px;padding:7px;border:1px solid #839a9a;border-radius:4px;background:#fffaf0;color:#203b51;font-size:12px;cursor:pointer;list-style:none}
 #tableSettings summary:focus-visible{outline:3px solid #315f44;outline-offset:2px}
 #tableSettings[open] summary{background:#e6edd8;border-color:#315f44}
 .table-settings-body{position:absolute;right:8px;top:60px;width:min(360px,calc(100vw - 16px));padding:12px;background:#fffaf0;border:1px solid #839a9a;border-radius:5px;box-shadow:0 8px 18px #203b5130;display:flex;gap:8px;flex-wrap:wrap;color:#203b51}
 body.table-playing .table-settings-body button{min-height:44px;font-size:12px;color:#203b51}
 .table-settings-body .ta-audio-controls{display:flex!important;flex:1 1 100%;width:100%;justify-content:space-between;margin:4px 0 0!important;padding:6px 0!important;gap:10px!important;background:none!important}
 .table-settings-body .ta-audio-channel{flex:1;min-width:0}.table-settings-body input[type=range]{min-width:44px;max-width:90px;height:44px}
 #game{padding:6px 8px 20px}#game #players .player{grid-template-columns:22px minmax(0,1fr);font-size:12px;padding:5px 7px}#game #players .player[aria-pressed=true]{padding:4px 6px}#game #players .player>.crew-resources{grid-column:2;grid-row:2;justify-content:start;gap:8px}#game #players .player .icon{font-size:20px}#game #players .player small{font-size:10px}#tableCommand{padding:8px 10px;gap:6px 10px}#tableCommand #turnPrompt strong{font-size:14px}
 #game .board-heading{justify-content:start}#game .board-heading>span{flex-basis:100%;text-align:left}#game .board-heading button{font-size:11px;padding:4px 6px;min-width:0}#game .board-heading #zoomIn,#game .board-heading #zoomOut{min-width:44px}.board-guide-tools button{flex:none}#game .board-heading #panBoard{min-width:44px}#game #resources{gap:3px 12px;padding:3px 6px;font-size:11px}#game #resources>span,#game #resources>button{min-height:36px}#game #resources .resource-icon{width:20px;height:20px}
 #game .board-heading #panBoard,#game .board-heading #zoomLabel{display:none}
 #tableCommand:has(#actions:empty){grid-template-columns:minmax(0,1fr) auto;align-items:center}
 #tableCommand:has(#actions:empty) #turnPrompt{grid-column:auto}
 #game .right,#game.ocean-focused .right{grid-template-columns:minmax(0,1fr)}#game .vortex-paper{width:min(100%,350px);margin:auto!important}#game .vortex-paper #hand.radial-hand{height:310px;min-height:310px}#game .vortex-board{width:330px}#tableInfo{width:100%;scroll-margin-top:120px}.info-body{max-height:none;overflow:visible;padding:12px}#tableInfo .visual-building-choice{min-height:168px}#tableInfo .building-choice-art{width:64px;flex-basis:64px}.info-tabs{position:sticky;top:0;z-index:5}.guide-topics button{font-size:10px;min-height:68px}#tableInfo #weather .weather-card-art{width:95px}#tableInfo #goals img{max-height:none}
}
@media(prefers-reduced-motion:reduce){#tableInfo *{scroll-behavior:auto;transition:none}}
@media(max-width:380px){
 #game #players .player>.icon{grid-row:1}
 #game #players .player>.crew-resources{grid-column:1/-1;grid-row:2;justify-content:center;gap:6px;font-size:11px}
 #game #players .crew-resources>span{gap:2px}
 #game #players .crew-resources img{width:18px;height:18px}
}
