header{height:auto;min-height:76px;gap:12px;padding:8px 3px;flex-shrink:0}.logo{gap:10px;flex-shrink:0}.brand-copy{display:flex;flex-direction:column;gap:2px}.brand-copy strong{font-size:22px;line-height:1.15;letter-spacing:-.6px}.logo .brand-copy small{display:block!important;font-size:11px;font-weight:normal;letter-spacing:0;margin:0;color:#506c4b}.header-controls{display:flex;gap:8px;align-items:center;justify-content:end;flex-wrap:wrap}.header-controls select{font:inherit;font-size:12px;background:#f5f8ec;border:1px solid #8ca180;border-radius:8px;padding:8px;max-width:185px}.header-controls button{font-size:11px;padding:7px 9px}.language-buttons{display:flex;gap:3px}.header-controls nav{gap:12px;font-size:11px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.dataset-strip{display:flex;justify-content:space-between;gap:12px;padding:6px 9px;font-size:11px;color:#56724b;flex-shrink:0;border-top:1px solid #bacdb1}.dataset-strip strong{font-weight:600}#tray-readout{position:absolute;transform:translateX(-50%);text-align:center;pointer-events:none;z-index:3;display:flex;flex-direction:column;gap:2px;line-height:1.2;background:#edf3e7ee;padding:4px 12px;border-radius:9px;min-width:180px}#tray-label{font-size:10px;font-weight:bold;letter-spacing:1px;color:#4e6b42}#tray-total{font-size:21px;color:#284b2d}#tray-bricks{font-size:12px;color:#506644}#hopper>text{display:none}#map-caption{position:absolute;inset:auto;transform:translateX(-50%);text-align:center;z-index:4;pointer-events:auto;width:max-content;max-width:90%}#map-caption button{font-size:15px;padding:11px 20px;background:#f5cd70;border-color:#8b763d;box-shadow:0 4px 0 #b59b58}#scores-dialog{max-width:640px;width:92%;max-height:85dvh;overflow:auto}#score-table table{width:100%;border-collapse:collapse;font-size:13px}#score-table th,#score-table td{padding:10px 7px;text-align:left;border-bottom:1px solid #b6c5a7}#score-average{font-size:23px;font-weight:bold;color:#426939}#scores-dialog>p{line-height:1.5}#overall-label{white-space:nowrap}#result-line{font-weight:bold!important}.document [data-language]{display:block}.document table{border-collapse:collapse;width:100%;font-size:12px}.document td,.document th{text-align:left;border-bottom:1px solid #c4ceb9;padding:9px 6px}.document .table-scroll{overflow:auto}.document-header{height:auto;min-height:80px;padding:12px 5%}.document-header nav{margin-left:auto}.document .language-buttons{margin-left:15px}.phase-head{min-height:92px}
@media(max-width:1050px){header{min-height:88px}.header-controls{max-width:65%;gap:5px}.header-controls nav{font-size:10px;gap:9px}.header-controls button{font-size:10px}.brand-copy strong{font-size:20px}.logo .brand-copy small{font-size:10px}.dataset-strip{font-size:10px}.phase-head{min-height:88px}.phase-head h1{font-size:26px}}
@media(max-width:700px){header{min-height:121px;flex-direction:column;align-items:stretch;gap:7px;padding:8px 3px}.header-controls{max-width:none;justify-content:start;gap:5px}.header-controls select{font-size:11px;max-width:145px;padding:6px}.header-controls nav{width:auto;margin-left:auto;font-size:9px}.header-controls button{font-size:10px;padding:6px 8px}.brand-copy strong{font-size:20px}.dataset-strip{flex-wrap:wrap;gap:2px;font-size:9px;padding:4px 3px}.dataset-strip span,.dataset-strip strong{width:100%}.phase-head{min-height:100px}.phase-head h1{font-size:23px}#tray-readout{min-width:160px;padding:4px 8px}#tray-total{font-size:18px}#tray-label{font-size:9px}#tray-bricks{font-size:11px}#map-caption button{font-size:12px;padding:9px 13px}.game-board{min-height:0}#score-open{padding:6px}.document-header{min-height:115px}.document-header nav{margin-left:0}.document-header .language-buttons{margin-left:0}}
@media(max-height:700px) and (min-width:701px){header{min-height:65px}.phase-head{min-height:75px}.phase-head:before{top:10px}.dataset-strip{padding-top:3px;padding-bottom:3px}.play-tools,.compare-tools{padding-top:4px;padding-bottom:4px}footer{min-height:38px}}

#tray-dock{display:flex;align-items:center;justify-content:center;gap:25px;min-height:87px;padding:8px 12px;flex-shrink:0}
#tray-dock #tray-readout{position:static;transform:none;padding:0;background:transparent;min-width:180px;text-align:right}
#dock-svg{width:155px;height:72px;overflow:visible;flex-shrink:0}
#balance-label{display:none!important}#tray-bricks{display:none!important}#round-score{font-size:38px;font-weight:bold;color:#315e69;padding:15px 10px;margin:0 0 20px;border-radius:12px;background:#ffffff70}#map-caption{margin-top:8px}#tray-readout{background:#edf3e7;line-height:1.35;padding:8px 14px}
@media(max-width:700px){#tray-dock{gap:15px;min-height:76px;padding:7px}#tray-dock #tray-readout{min-width:145px}#dock-svg{width:120px;height:56px}#tray-total{font-size:18px}#map-caption button{font-size:12px}#round-score{font-size:30px}}

#grid text{visibility:hidden}#money-axis{position:absolute;inset:0;pointer-events:none;z-index:3}#money-axis span{position:absolute;left:4px;font-size:11px;line-height:14px;color:#536b49;background:var(--bg);padding:1px 4px}
/* Reserve the canvas for the chart; keep monetary ticks in their own gutter. */
.scene-scroll.chart{margin-left:88px;width:calc(100% - 88px)}
#money-axis span{left:0;width:84px;text-align:right;padding:1px 3px;background:transparent;white-space:nowrap}
body.game-locked #tray-dock{min-height:57px;padding:3px 10px;gap:18px}
body.game-locked #dock-svg{width:112px;height:52px}
body.game-locked #tray-total{font-size:20px}
body.game-locked .board-top{min-height:25px;padding-top:0;padding-bottom:0}
body.game-locked .phase-head{min-height:69px;padding-top:6px;padding-bottom:6px}
body.game-locked .phase-head:before{top:10px;font-size:40px}
body.game-locked #round-purpose{margin-top:4px;font-size:11px}
body.game-locked .phase-head h1{font-size:27px}
.header-controls nav{gap:9px;flex-wrap:wrap;justify-content:flex-end}
@media(min-width:701px){body.game-locked header{min-height:62px;padding-top:5px;padding-bottom:5px}body.game-locked .dataset-strip{padding-top:3px;padding-bottom:3px}body.game-locked footer{min-height:43px}}
@media(max-width:700px){.scene-scroll.chart{margin-left:75px;width:calc(100% - 75px)}#money-axis span{width:72px;font-size:10px}.header-controls nav{font-size:9px;gap:7px}body.game-locked .phase-head{min-height:91px}body.game-locked .phase-head h1{font-size:22px}body.game-locked .phase-head:before{font-size:32px}body.game-locked #tray-dock{min-height:50px}body.game-locked #dock-svg{width:90px;height:42px}body.game-locked #tray-total{font-size:17px}}
.line-mark{width:37px;height:37px;flex:none;overflow:visible;fill:#b7d879}.line-mark path{fill:none;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}.line-reference{stroke:#a8b69b;stroke-dasharray:3 5}.line-curve{stroke:#294d3e}.line-mark circle{stroke:#294d3e;stroke-width:2}
#chart-settings{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;padding:5px 8px;border-bottom:1px solid #c1cfb7;flex-shrink:0;font-size:11px}#chart-settings label{display:flex;align-items:center;gap:6px}#chart-settings select{font:inherit;padding:5px;border:1px solid #8ca180;border-radius:7px;background:#f8f9ef;color:#294335}#unit-note{font-size:10px;color:#52684d;flex:1;min-width:200px;line-height:1.4}
#camera-controls{display:flex;align-items:center;gap:12px;padding:4px 8px;flex-shrink:0;font-size:10px;min-height:29px}#camera-controls label{display:flex;gap:6px;align-items:center;white-space:nowrap}#camera-controls input{width:110px;accent-color:#507c54;cursor:pointer}#camera-hint{font-size:9px;color:#58704f;margin-left:auto}#navigate[aria-pressed=true]{background:#c7dfac;border-color:#476c44}.navigating #rain-zone{cursor:grab}.navigating #rain-zone:active{cursor:grabbing}
#person-detail{position:relative;flex-shrink:0;padding:9px 38px 9px 12px;background:#f8f6e8;border:1px solid #adc49a;border-radius:10px;margin:3px 8px;max-height:150px;overflow-y:auto}#person-detail h2{font-size:13px;margin:0 0 4px}#person-detail p{font-size:11px;margin:3px 0;line-height:1.45}#person-detail small{font-size:9px;color:#5d7254}#person-detail strong{font-size:15px;color:#294d3e}#detail-close{position:absolute;right:6px;top:5px;padding:2px 7px;box-shadow:none}#rain-zone{touch-action:none}#money-axis span{font-variant-numeric:tabular-nums}
@media(max-width:700px){#chart-settings{font-size:10px;gap:4px 10px;padding:4px}#unit-note{font-size:9px;min-width:100%;}#camera-controls{flex-wrap:wrap;gap:3px 10px;padding:3px}#camera-controls input{width:90px}#camera-hint{width:100%;margin:0;font-size:8px}#person-detail{margin:2px 0;padding:7px 28px 7px 9px;max-height:115px}#person-detail p{font-size:10px}#person-detail strong{font-size:13px}.line-mark{width:30px;height:30px}.game-locked .chart-caption{min-height:35px}.game-locked #tray-dock{min-height:44px}.game-locked #dock-svg{height:35px;width:75px}}
/* Keep the question, next action and rain above a larger open playfield. */
.round-nav{display:flex;align-items:center;gap:15px;flex-shrink:0}
#next-slot #advance{font-size:11px;padding:9px 12px;box-shadow:0 3px 0 #af9450;border-color:#9b874b}
#next-slot #advance span{margin-left:8px}
body.game-locked .chapters span{width:27px;height:27px;font-size:12px}
body.game-locked .chapters button{min-width:35px}
body.game-locked .chapters small{font-size:9px}
body.game-locked .phase-head{min-height:65px}
body.game-locked footer{min-height:22px;padding:2px 8px}
body.game-locked #status{font-size:9px;max-width:none}
#allocation-console{display:grid;grid-template-columns:185px minmax(0,1fr);gap:10px;align-items:center;flex-shrink:0;border-bottom:1px solid #b8c9ac;padding:4px 0}
body.game-locked #allocation-console #tray-dock{gap:8px;min-height:38px;padding:1px 4px;justify-content:flex-start}
#allocation-console #tray-dock #tray-readout{min-width:95px;text-align:left}
#allocation-console #tray-label{font-size:8px;letter-spacing:.4px}
#allocation-console #tray-total{font-size:17px}
body.game-locked #allocation-console #dock-svg{width:70px;height:34px}
#allocation-console .play-tools{border:0;padding:3px 0;flex-wrap:wrap;justify-content:flex-start;gap:7px 11px}
#allocation-console .tool-group{gap:4px}
#allocation-console .tool-group button{font-size:10px;padding:6px 8px}
#allocation-console .utility{margin-left:auto}
.game-locked .board-top{min-height:23px}
.game-locked .chart-caption{min-height:21px;padding:2px 8px}
.game-locked #inspection{font-size:9px;max-width:100%;margin:0}
#view-controls{display:grid;grid-template-columns:minmax(300px,1fr) minmax(390px,1fr);align-items:center;gap:5px 15px;flex-shrink:0;border-top:1px solid #bdcdb2;padding:3px 5px}
#view-controls #chart-settings{border:0;padding:0;gap:4px 12px}
#view-controls #unit-note{font-size:9px;min-width:100%}
#view-controls #camera-controls{padding:0;flex-wrap:wrap;gap:4px 10px}
#view-controls #camera-controls input{width:85px}
#view-controls #camera-hint{display:none}
#view-controls .view-tools{margin-left:auto}
#view-controls .view-tools button{font-size:9px;padding:6px 8px}
@media(min-width:701px){#person-content{display:grid;grid-template-columns:1.2fr 1fr;gap:3px 15px}#person-content h2,#person-content small{grid-column:1/-1}#person-content h2,#person-content p{margin:0}#person-detail{padding-top:7px;padding-bottom:7px}#person-detail strong{font-size:14px}}
@media(max-width:1050px) and (min-width:701px){.round-nav{gap:8px}.game-locked .phase-head>div:first-child{padding-left:51px}.game-locked .phase-head h1{font-size:24px}#allocation-console{grid-template-columns:172px minmax(0,1fr);gap:6px}#allocation-console .utility{margin-left:0}#view-controls{grid-template-columns:minmax(280px,1fr) minmax(330px,1fr)}#view-controls #camera-controls input{width:70px}#view-controls .view-tools{margin-left:0}#view-controls .view-tools button{padding:4px 7px}}
@media(max-width:700px){.round-nav{width:100%;justify-content:space-between;gap:6px}.game-locked .phase-head{min-height:90px;gap:5px;padding:6px 8px}.round-nav .chapters{align-self:center;gap:7px}.game-locked .chapters button{min-width:0}.game-locked .chapters span{width:19px;height:19px;font-size:9px}.game-locked .chapters small{font-size:8px}#next-slot #advance{font-size:10px;padding:7px 9px}body.game-locked footer{min-height:20px}.game-locked #status{font-size:8px}#allocation-console{grid-template-columns:1fr;gap:1px;padding:2px 0}body.game-locked #allocation-console #tray-dock{min-height:30px;justify-content:center}#allocation-console #tray-dock #tray-readout{min-width:120px;text-align:right}body.game-locked #allocation-console #dock-svg{width:58px;height:28px}#allocation-console .play-tools{padding:2px 0;gap:5px 8px}#allocation-console .tool-group button{font-size:9px;padding:5px 7px}#allocation-console .utility{margin-left:0}#view-controls{grid-template-columns:1fr;gap:4px;padding:4px 2px}#view-controls #chart-settings{font-size:9px;gap:3px 10px}#view-controls #chart-settings select{padding:3px}#view-controls #unit-note{min-width:0;flex:1;font-size:8px}#view-controls #camera-controls{font-size:9px;gap:4px 8px}#view-controls #camera-controls input{width:65px}#view-controls .view-tools{margin-left:auto}#view-controls .view-tools button{padding:4px 5px;font-size:8px}.game-locked .chart-caption{min-height:21px}.game-locked #inspection{font-size:8px}}
