:root{--bg:#101f1b;--bg2:#1c3028;--panel:#1a2d25;--line:#365044;--ink:#eeeede;--dim:#adbcad;--gold:#d8c48b;--gold-2:#f0dfae;--good:#9ad3a0;--display:Georgia,serif;--body:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--num:var(--body);color-scheme:dark}
body{padding:0;background:#101f1b;font-size:14px}.btn{background:#d8c48b;color:#14251b;border-radius:5px;padding:10px 13px;letter-spacing:0;font-size:13px;box-shadow:none;min-height:38px}.btn.ghost{background:#233b30;color:var(--ink)}.btn:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,[role=button]:focus-visible{outline:3px solid #f7d970;outline-offset:3px}.page{max-width:650px;padding:30px 24px 50px}.panel{background:#1a2d25;border-radius:9px}.title{font-size:64px;letter-spacing:-3px;text-shadow:none;font-weight:normal}.cover{height:245px;width:100%;position:relative;overflow:hidden;border-radius:9px;margin-bottom:15px;background:#263f32}.cover img{width:100%;height:100%;object-fit:cover;object-position:center 50%}.cover>span{display:none}.cover svg{width:90px;height:90px}.hero .muted{max-width:52ch!important}.sheet{background:#182b23}.region-picks{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.region-picks button{background:#14261e;color:var(--dim);padding:10px;border:1px solid #435445;border-radius:5px;cursor:pointer;border-left:5px solid var(--region)}.region-picks button[aria-pressed=true]{background:#344839;color:#fff;border-color:var(--region)}p{margin:8px 0 12px}.error{color:#ffab91}.between{justify-content:space-between}.pg-table{height:100dvh;display:flex;flex-direction:column;max-width:1920px;margin:auto}.pg-table .bar{display:flex;align-items:center;gap:8px;padding:10px 24px;background:#0c1915;border-bottom:1px solid #304035;flex-shrink:0}.pg-table .bar .info{flex:1;display:flex;align-items:center;gap:20px}.wordmark{text-decoration:none;color:var(--ink);font-size:12px;letter-spacing:2px;font-weight:750}.wordmark span{margin:0 12px;color:#6c8471}.room-tag{color:#9aac9d;letter-spacing:2px;font-size:12px}.pg-status{display:flex;align-items:center;justify-content:space-between;padding:16px 24px 12px;gap:16px}.eyebrow{letter-spacing:2px;font-size:10px}.pg-status h1{font:normal 28px Georgia,serif;margin:3px 0 0;color:#f0eedc}.phase-steps{display:flex;gap:20px;color:#829a87;font-size:12px}.phase-steps span{display:flex;align-items:center;gap:7px}.phase-steps b{border:1px solid #405544;border-radius:50%;display:grid;place-items:center;width:24px;height:24px;font-size:11px}.phase-steps .active{color:#f1d999}.phase-steps .active b{background:#dac68d;color:#203024;border-color:#dac68d}.player-strip{display:flex;gap:8px;margin:0 24px 14px;flex-shrink:0}.company{position:relative;display:flex;align-items:center;gap:9px;border:1px solid #3a5041;background:#1a2c23;padding:9px 12px;color:var(--ink);text-align:left;flex:1;min-width:0;cursor:pointer;border-radius:5px}.company.turn{border-color:var(--seat);background:#2a3b2e}.company b{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.company small{color:#aabcaa;font-size:10px;display:block;margin-top:2px}.company .seat{display:grid;place-items:center;width:26px;height:26px;border-radius:4px;background:var(--seat);color:#17281e;font-weight:bold;flex:none}.company .tmr{font-size:11px;margin-left:auto;min-width:22px;color:#eedcac}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:0;min-height:0;flex:1;border-top:1px solid #3b5142}.board-area{background:#e7e6d5;color:#2d4535;display:flex;flex-direction:column;min-height:0;overflow:auto}.board-head{padding:13px 22px 5px;display:flex;justify-content:space-between;align-items:center}.board-head .eyebrow{color:#71816c}.board-head h2{font:normal 27px Georgia,serif;letter-spacing:-.6px;margin:0}.map-tools{display:flex;gap:4px}.map-tools .btn{background:#d5d9c5;color:#354c37;padding:5px 10px;min-height:30px}.map-viewport{overflow:auto;min-height:250px;flex:1;padding:4px 12px}.map-size{height:100%;min-height:300px;min-width:100%}.network{display:block;width:100%;height:100%;min-height:300px;user-select:none}.edge path{stroke:#75866f;stroke-width:2}.edge rect{fill:#e9e8d8;stroke:#b2bba1;stroke-width:1}.edge text{text-anchor:middle;fill:#63725c;font:600 13px system-ui}.edge.route path{stroke:#bd6a2c;stroke-width:5}.edge.route rect{stroke:#bd6a2c;fill:#fff3cb}.edge.route text{fill:#5f370f}.inactive{opacity:.14}.edge.inactive text,.edge.inactive rect{display:none}.city{cursor:pointer;outline:none}.city.inactive{cursor:default}.city-target{stroke:#6a7d60;stroke-width:1.5}.city:hover:not(.inactive) .city-target,.city:focus-visible .city-target,.city.selected .city-target{stroke:#ba6d29;stroke-width:5}.city-name{fill:#314730;font:700 15px system-ui;text-anchor:middle;paint-order:stroke;stroke:#e7e6d5;stroke-width:4px;stroke-linejoin:round}.city.owned-city .city-target{stroke:#344d38;stroke-width:3}.map-key{padding:5px 22px 10px;display:flex;gap:12px;flex-wrap:wrap;font-size:10px;color:#65735c}.map-key span{display:flex;align-items:center;gap:5px}.map-key i{display:inline-block;width:8px;height:8px;border-radius:2px}.market-section{border-top:1px solid #c2c9b3;padding:10px 20px 14px;background:#dcdFcb;flex-shrink:0}.section-label{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:8px}.section-label h2,.resource-market h2{font-size:12px;font-weight:700;letter-spacing:.2px;margin:0}.section-label>span{font-size:10px;color:#6d7f64}.plant-market{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.plant{display:flex;flex-direction:column;overflow:hidden;border:1px solid #50624a;border-radius:5px;padding:0;background:#172a21;color:#f0efd8;cursor:pointer;text-align:left;min-width:0;position:relative;transition:box-shadow .15s,transform .15s}.plant:hover{box-shadow:0 0 0 2px #b6a674}.plant.selected{box-shadow:0 0 0 3px #daa94b;border-color:#d8ba65}.plant-head{display:flex;align-items:center;gap:6px;padding:4px 7px;background:#24382b;position:relative;z-index:1}.plant-head>b{font:700 21px Georgia,serif;color:var(--fuel)}.plant-head>span{font-size:8px;letter-spacing:1px}.plant-art{height:42px;display:flex;align-items:center;justify-content:center;color:var(--fuel);background-color:#182b23;background-size:cover;background-position:center 53%}.plant-art svg{width:36px;height:36px;opacity:.7}.plant-bottom{display:flex;justify-content:space-between;align-items:center;gap:3px;padding:5px 7px;background:#21362a;color:#e8ead8;font-size:10px;border-top:2px solid var(--fuel)}.plant-bottom strong{font-size:13px;color:#ead69e}.plant.future{filter:saturate(.65);opacity:.68}.plant.future:hover{opacity:1}.stepcard{align-items:center;justify-content:center;min-height:99px;color:#e9d6a2}.stepcard span{font-size:10px}.control-rail{background:#14261e;overflow-y:auto;padding:18px;min-height:0;border-left:1px solid #405442;scrollbar-color:#4a6150 #14261e}.your-company{margin-bottom:14px}.balance{display:flex;align-items:baseline;justify-content:space-between;margin:3px 0}.balance>strong{font:normal 35px Georgia,serif;color:#eee0b4}.balance small{font:10px system-ui;color:#9db09c}.balance>span{font:normal 23px Georgia,serif}.action-panel{padding:14px;background:#20382a;border:1px solid #415c45;border-radius:6px;margin-bottom:20px}.action-panel.is-turn{border-color:#c5b47b}.turn-label{font-size:9px;font-weight:750;letter-spacing:1.4px;color:#bda96d;margin-bottom:9px}.action-panel h2{font:normal 21px Georgia,serif;line-height:1.15;margin:0 0 7px;color:#f0ebd1}.action-panel p{font-size:12px;color:#bfcebb;line-height:1.55}.action-panel .btn{margin:4px 4px 4px 0}.action-panel>small{display:block;font-size:10px;margin-top:8px}.action-row{display:flex;flex-wrap:wrap}.input-label{display:flex;flex-direction:column;font-size:11px;gap:5px;margin:10px 0}.input-label input,.keep-fuel input{background:#102219;border:1px solid #557257;color:#f6e8c4;padding:8px 10px;border-radius:4px;width:100%;min-width:0;font-size:16px}.quote{border-top:1px solid #456044;padding-top:12px}.quote dl{display:grid;grid-template-columns:1fr auto;gap:6px;font-size:12px}.quote dd{margin:0}.dispatch-total{display:flex;align-items:center;gap:12px;margin-top:10px}.dispatch-total>b{font:40px Georgia;color:#e2d79d}.dispatch-total>span{font-size:12px;color:#b7c8ab}.owned-section{margin-bottom:20px}.owned-section .section-label>span{color:#a4b79d}.owned{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.owned .plant-art{height:75px}.owned .plant-head b{font-size:24px}.fuel-inventory{display:flex;gap:10px 14px;flex-wrap:wrap;margin:10px 0 6px}.fuel-inventory span{display:flex;align-items:center;gap:5px;font-size:11px}.fuel-inventory i,.resource-row>i{width:9px;height:9px;background:var(--fuel);border-radius:2px;display:inline-block}.owned-section>small{font-size:10px}.resource-market{padding-top:14px;border-top:1px solid #344d38}.resource-market h2{margin-bottom:9px}.resource-row{display:flex;align-items:center;gap:9px;padding:7px 0;border-bottom:1px solid #2d4533}.resource-row>span{flex:1}.resource-row b{font-size:12px}.resource-row small{display:block;color:#91a88f;font-size:10px}.resource-row>strong{font-size:12px;color:#d2d8b6}.resource-row .btn{min-height:31px;padding:5px 10px;background:#344a35;color:#e9e6c8}.tiny{font-size:10px;line-height:1.5}.ledger{border-top:1px solid #344d38;padding-top:12px;font-size:11px;margin-top:18px}.ledger summary{cursor:pointer;color:#c4ceb5}.ledger summary span{float:right;color:#8ea287}.ledger ol{list-style:none;padding:0}.ledger li{padding:7px 0;border-top:1px solid #2c4230;display:flex;gap:9px;color:#aebeaa;line-height:1.5}.ledger li small{color:#d5bd84;white-space:nowrap}.pg-footer{padding:7px 24px;display:flex;justify-content:space-between;gap:20px;background:#0e1c16;border-top:1px solid #304735;font-size:10px;color:#a8bba0;flex-shrink:0}.pg-footer>span:first-child{letter-spacing:1px;white-space:nowrap;color:#72896e}.keep-fuel{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0}.keep-fuel label{font-size:10px}.keep-fuel input{padding:5px;font-size:13px}.action-panel .error{color:#ffb49a}.toast{background:#e7d6a5;color:#1e3121}.fx-welcome{background:#10271a}.sheet .owned{max-width:550px}.sheet .plant-art{height:120px}
@media(min-width:1450px){.workspace{grid-template-columns:minmax(0,1fr) 390px}.plant-art{height:65px}.plant-head>b{font-size:25px}.plant-bottom{font-size:12px}.plant-head>span{font-size:10px}.map-viewport{min-height:350px}.owned .plant-art{height:100px}}
@media(max-height:800px) and (min-width:901px){.pg-status{padding:9px 20px}.pg-status h1{font-size:24px}.player-strip{margin-bottom:8px}.company{padding:6px 10px}.board-head{padding-top:8px}.market-section{padding:6px 14px 8px}.plant-art{height:22px}.plant-head{padding:2px 6px}.plant-head>b{font-size:18px}.plant-bottom{padding:3px 6px}.board-head h2{font-size:22px}.map-viewport{min-height:225px}}
@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 310px}.phase-steps{gap:10px}.phase-steps span{font-size:10px}.pg-table .bar{padding:8px 15px}.player-strip{margin-inline:15px;gap:5px}.company{padding:7px;gap:5px}.company .seat{width:21px;height:21px}.company b{font-size:11px}.company small{font-size:9px}.control-rail{padding:13px}.wordmark{font-size:10px}.map-key{gap:7px;padding-inline:12px}}
@media(max-width:900px){body{overflow:auto;height:auto;min-height:100dvh}#app{height:auto}.pg-table{height:auto;min-height:100dvh}.workspace{grid-template-columns:1fr}.board-area{overflow:visible}.map-viewport{height:60vh;min-height:400px;max-height:700px;flex:auto}.map-size{height:100%}.control-rail{overflow:visible;border-left:0;display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:20px}.your-company,.action-panel{grid-column:1/-1}.your-company{margin:0}.action-panel{margin-bottom:0}.ledger{grid-column:1/-1}.plant-art{height:70px}.player-strip{overflow-x:auto}.company{min-width:135px}.phase-steps{display:none}.pg-footer{position:static}.page{min-height:100dvh}.wordmark span{margin:0 3px}.pg-table .bar .info{gap:8px}.pg-table .bar .btn{font-size:10px;padding:6px}.room-tag{display:none}}
@media(max-width:540px){.control-rail{grid-template-columns:1fr;padding:15px}.your-company,.action-panel,.ledger{grid-column:1}.pg-status{padding:13px 15px}.pg-status h1{font-size:24px}.plant-market{gap:4px}.market-section{padding:10px}.section-label>span{font-size:9px}.plant-head>span{display:none}.plant-art{height:36px}.plant-bottom{font-size:8px;padding:4px}.plant-bottom strong{font-size:10px}.pg-footer>span:first-child{display:none}.map-viewport{padding:0;height:420px;min-height:420px}.network{min-width:660px}.map-size{min-width:660px}.page{padding-inline:16px}.cover{height:190px}.title{font-size:54px}.wordmark{font-size:9px;letter-spacing:.4px}.pg-table .bar .btn .lvt,.pg-table .bar .btn .sct{display:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(min-width:1101px){.plant-market{grid-template-columns:repeat(8,minmax(0,1fr))}.plant-head{padding:4px 5px}.plant-head>span{font-size:7px;letter-spacing:.4px}.plant-bottom{padding:5px 4px;font-size:9px}.plant-bottom strong{font-size:11px}.market-section{padding-inline:15px}.plant-art{height:50px}}
#table.pg-table{height:100dvh;max-width:1920px;display:flex;flex-direction:column;width:100%;margin:0 auto}
@media(max-width:900px){html{height:auto;min-height:100%}#table.pg-table{height:auto;min-height:100dvh}.control-rail.scroll{overflow:visible;flex:none}.workspace{flex:none}.board-area{min-height:650px}}

.art-coal{background-image:url('art/coal.webp')}
.art-oil{background-image:url('art/oil.webp')}
.art-garbage{background-image:url('art/garbage.webp')}
.art-uranium{background-image:url('art/uranium.webp')}
.art-hybrid{background-image:url('art/hybrid.webp')}
.art-green{background-image:url('art/green.webp')}
.plant-art svg{visibility:hidden}
.board-area,.control-rail,.workspace{min-width:0}
@media(max-width:900px){.workspace{grid-template-columns:minmax(0,1fr)}.control-rail{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.control-rail{grid-template-columns:minmax(0,1fr)}}

/* ---- geographic board (board.js) ---- */
.map-viewport{container-type:size;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 40%,#16302a,#0a1512 75%)}
.map-size{display:grid;place-items:center;min-width:0!important;min-height:0}
.pgmap{position:relative;aspect-ratio:var(--ar);width:min(100cqw,calc(100cqh * var(--ar)));max-width:none;border-radius:14px;overflow:hidden;background:#13221d;box-shadow:0 26px 70px rgba(0,0,0,.6),0 0 0 1px rgba(216,196,139,.28)}
.map-size[style*="width:1"] .pgmap,.map-size .pgmap{width:min(calc(100cqw * var(--z,1)),calc(100cqh * var(--ar) * var(--z,1)))}
.pgart{position:absolute;inset:0;background-repeat:no-repeat}
.pgmap .network{position:absolute;inset:0;width:100%;height:100%;min-width:0!important;min-height:0}
.pipe path{fill:none;stroke-linecap:round}
.pipe .case{stroke:#0b100e;stroke-width:calc(7.5px * var(--f,1));opacity:.85}
.pipe .core{stroke:#9aa69c;stroke-width:calc(4px * var(--f,1))}
.pipe .shine{stroke:#e9efe6;stroke-width:calc(1.1px * var(--f,1));opacity:.55}
.pipe.off{opacity:.22}
.pipe.hot .core{stroke:#f2b84b;stroke-width:calc(5px * var(--f,1))} .pipe.hot .shine{stroke:#fff6d4;opacity:.9}
.pipe.hot .case{stroke:#4a2a06;stroke-width:calc(9px * var(--f,1))}
.cost rect{fill:url(#chip);stroke:#2b2618;stroke-width:1.2}
.cost text{text-anchor:middle;font-weight:800;font-size:calc(12px * var(--f,1));font-family: "Bricolage Grotesque",system-ui,sans-serif;fill:#2a2212}
.cost.hot rect{fill:#f2b84b;stroke:#4a2a06} .cost.hot text{fill:#2a1704}
.city .city-target{stroke-width:3.2;transition:stroke-width .15s}
.city:hover:not(.inactive) .city-target,.city:focus-visible .city-target{stroke-width:5}
.city.selected .city-target{stroke:#f2b84b;stroke-width:5}
.city .halo{fill:none;stroke:#f2b84b;stroke-width:2.5;animation:halo 1.2s ease-in-out infinite}
@keyframes halo{50%{stroke-opacity:.25;stroke-width:5}}
.city.owned-city .city-target{stroke:#fff}
.slot{stroke:rgba(0,0,0,.55);stroke-width:1} .slot.full{stroke:#0b100e;stroke-width:1.3}
.city-name{fill:#fbf6e6;font-weight:800;font-size:calc(13.5px * var(--f,1));font-family:"Bricolage Grotesque",system-ui,sans-serif;text-anchor:middle;paint-order:stroke;stroke:#0b120f;stroke-width:calc(4.2px * var(--f,1));stroke-linejoin:round;pointer-events:none}
.city.inactive{opacity:.45}
@media (prefers-reduced-motion:reduce){.city .halo{animation:none}}

/* dark board column */
.board-area{background:#0c1714;color:#e9e4d0}
.board-head h2{color:#f4ecd2} .board-head .eyebrow{color:#d8c48b}
.map-key{color:#a9b6a8} .map-key i{box-shadow:0 0 0 1px rgba(0,0,0,.4)}
.market-section{background:#10201b;border-top:1px solid #29403a}
.market-section .section-label h2{color:#f4ecd2} .market-section .section-label span{color:#a9b6a8}
.map-tools .btn{background:#1b2f28;color:#f4ecd2;border:1px solid #2f4a40}

/* short desktop screens (1366×768 etc.): the 8-up market rule above re-grew the plant art; give that height back to the map */
@media(max-height:800px) and (min-width:901px){
.market-section{padding:5px 14px 7px}.market-section .section-label{margin-bottom:4px}
.plant-market .plant-art{height:26px}.plant-market .plant-head{padding:2px 5px}.plant-market .plant-head>b{font-size:17px}.plant-market .plant-bottom{padding:3px 5px}
.board-head{padding:6px 18px 2px}.board-head .eyebrow{display:none}.board-head h2{font-size:20px}
.map-tools .btn{min-height:30px;padding:5px 11px}.map-key{padding:3px 18px 5px}
.player-strip{margin-bottom:7px}.pg-status{padding:8px 20px 6px}}
.city-name.off{opacity:.45}

/* ---------- lobby: the room code is a power-plant card fresh off the market, each company gets its own licence tile. Scoped to the page holding the invite link. */
.page:has(#link){gap:18px;padding-bottom:0}
.page:has(#link)>.hero{position:relative;align-items:flex-start;text-align:left;gap:8px!important;margin:10px 6px 6px;padding:20px 20px 52px;border-radius:9px;overflow:hidden;color:var(--ink);transform:rotate(-1.3deg);
  background:linear-gradient(180deg,rgba(16,31,27,.2) 0%,rgba(23,42,33,.88) 55%,#172a21 78%),url(art/cover.webp) center 38%/cover #172a21;border:1px solid #50624a;box-shadow:0 0 0 1px #0c1915,0 24px 52px rgba(0,0,0,.6)}
.page:has(#link)>.hero .eyebrow{color:var(--gold-2);font:700 11px/1 var(--body);letter-spacing:.24em;text-transform:uppercase;text-shadow:0 1px 3px #000}
.page:has(#link)>.hero .title{font:normal clamp(60px,19vw,92px)/.95 Georgia,serif!important;letter-spacing:.06em!important;color:#f0dfae;text-shadow:0 2px 0 #0c1915,0 10px 30px rgba(0,0,0,.6)}
.page:has(#link)>.hero p{text-align:left!important;color:#c9d4c4!important;font-size:14px!important;line-height:1.45;max-width:440px}
.page:has(#link)>.hero p b{color:#fff}
.page:has(#link)>.hero::before{content:"⚡ POWER PLANT";position:absolute;top:18px;right:16px;padding:4px 8px;border-radius:4px;background:rgba(12,25,21,.75);border:1px solid #50624a;color:var(--gold);font:700 10px/1 var(--body);letter-spacing:.16em}
.page:has(#link)>.hero::after{content:"POWER GRID  ·  ELEKTRO  ·  ROOM";white-space:pre;position:absolute;left:0;right:0;bottom:0;padding:10px 20px;background:#21362a;border-top:3px solid var(--gold);color:#e8ead8;font:700 10px/1 var(--body);letter-spacing:.2em}
.share{flex-wrap:nowrap!important}.share code{flex:1 1 auto!important;min-width:0;font-size:13px;background:#102219;border-color:#3a5041}.share .btn{flex:none}
/* players: one company licence tile each */
.page:has(#link) .plist{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:12px;padding:4px 2px;counter-reset:co}
.page:has(#link) .plist li{counter-increment:co;position:relative;flex-direction:column;align-items:flex-start;gap:9px;min-height:108px;padding:30px 12px 11px;border-radius:6px;background:#172a21;border:1px solid #50624a;
  box-shadow:inset 0 -3px 0 var(--gold),0 12px 24px rgba(0,0,0,.45);font:normal 19px/1.1 Georgia,serif;color:#f0efd8}
.page:has(#link) .plist li::before{content:"COMPANY " counter(co,decimal-leading-zero);position:absolute;left:0;right:0;top:0;padding:6px 12px;background:#24382b;border-bottom:1px solid #3a5041;color:var(--gold);font:700 9px/1 var(--body);letter-spacing:.2em}
.page:has(#link) .plist li:nth-child(odd){transform:rotate(-1.2deg)}.page:has(#link) .plist li:nth-child(even){transform:rotate(1deg)}
.page:has(#link) .plist .av{width:30px;height:30px;border-radius:5px;font-size:14px;box-shadow:0 0 0 2px #0c1915}
.page:has(#link) .plist li>span[style*="flex"]{flex:none!important;width:100%;overflow-wrap:anywhere}
.page:has(#link) .plist li .muted{color:#9db09c;font:13px var(--body)}
.page:has(#link) .plist .badge{background:var(--gold);color:#14251b;vertical-align:3px;border-radius:3px}
.page:has(#link) .plist .dot{position:absolute;top:6px;right:10px;width:9px;height:9px;background:#9ad3a0;box-shadow:0 0 8px #9ad3a0}.page:has(#link) .plist .dot.off{background:#56685a;box-shadow:none}
.page:has(#link) .plist .btn.ghost{background:transparent;border:0;min-height:0;padding:0;color:#9db09c;font-size:12px;font-weight:600;text-decoration:underline;text-underline-offset:2px}
.page:has(#link) .plist+p{border:2px dashed #3a5041;border-radius:6px;padding:16px;margin:0;text-align:center;font:italic 16px Georgia,serif;color:var(--dim)!important}
/* settings */
.page:has(#link) .panel{border:1px solid #2f4a40;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.page:has(#link) .panel>.row.between>b{font:normal 19px Georgia,serif;color:#f0eedc}
.page:has(#link) .seg{border-color:#435445;border-radius:5px;background:#102219}
.page:has(#link) .seg button{padding:8px 13px}
.page:has(#link) .seg button[aria-pressed="true"]{background:var(--gold);color:#14251b}
.page:has(#link) .region-picks button{border-radius:4px;font-weight:600}
.page:has(#link) .region-picks button[aria-pressed=true]{background:#2a3b2e;box-shadow:inset 0 0 0 1px var(--region),0 0 12px color-mix(in srgb,var(--region) 30%,transparent)}
/* start bar stays reachable at the bottom */
.page:has(#link)>.row:has([data-act="rules"]){position:sticky;bottom:0;z-index:5;margin:0 -24px;padding:24px 24px max(16px,env(safe-area-inset-bottom));background:linear-gradient(to bottom,rgba(16,31,27,0),#101f1b 38%);flex-wrap:nowrap}
.page:has(#link)>.row:has([data-act="rules"]) .btn[data-act="start"]{flex:1;min-height:52px;font:normal 20px Georgia,serif;letter-spacing:.02em}
.page:has(#link)>.row:has([data-act="rules"]) .btn[data-act="rules"]{min-height:52px;padding-inline:18px}
.page:has(#link)>.row:has([data-act="rules"])>.muted{flex:1;text-align:center;font-weight:700}
@media(max-width:420px){.page:has(#link){padding-inline:14px}.page:has(#link)>.row:has([data-act="rules"]){margin:0 -14px;padding-inline:14px}}
/* this page scrolls the document (html/#app height:auto), so let the sticky start bar bind to the viewport in the lobby */
@media(max-width:900px){body:has(.page #link),.page:has(#link){overflow:visible}}
.page:has(#link)>.row:has([data-act="rules"]) .btn[data-act="start"]:disabled{opacity:1;filter:none;background:#3a3f2c;color:#a3a58a;box-shadow:inset 0 0 0 1px rgba(216,196,139,.3);cursor:not-allowed}
.page:has(#link) .region-picks{grid-template-columns:repeat(3,minmax(0,1fr))}.page:has(#link) .region-picks button{min-width:0;padding:10px 6px;overflow-wrap:anywhere}
.page:has(#link)>*{flex-shrink:0}

/* ---------- the dispatch room (redesign): companies are wooden house tokens, plants are real cards with a cream frame,
   the auction puts the plant on the block with the high bid beside it, and on phones your move sits in a fixed console at the bottom. */
#table.pg-table{background:radial-gradient(ellipse 120% 60% at 50% 0%,#1f3b31,#0d1914 70%)}
.company{border-radius:8px;background:linear-gradient(180deg,#203a2e,#152820);box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 4px 10px rgba(0,0,0,.35);min-height:48px;transition:box-shadow .2s,transform .2s}
.company .seat{width:30px;height:30px;border-radius:0;background:none;position:relative}
.company .seat::before{content:"";position:absolute;inset:0;background:linear-gradient(160deg,color-mix(in srgb,var(--seat) 70%,#fff),var(--seat) 50%,color-mix(in srgb,var(--seat) 70%,#000));clip-path:polygon(50% 0,100% 42%,100% 100%,0 100%,0 42%)}
.company .seat i{position:relative;font-style:normal;font-size:12px;font-weight:800;color:#17281e;margin-top:9px}
.company .co-txt{min-width:0}
.company small{display:flex;gap:8px} .company small .cap{color:#e9d58f}
.company.turn{border-color:var(--seat);transform:translateY(-2px);box-shadow:0 0 0 2px color-mix(in srgb,var(--seat) 60%,transparent),0 8px 22px color-mix(in srgb,var(--seat) 30%,transparent)}
.you-tag{display:inline-block;padding:0 5px;border-radius:3px;background:var(--gold);color:#14251b;font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;vertical-align:1px}
.bidtag{font-style:normal;margin-left:auto;flex:none;padding:3px 7px;border-radius:5px;background:var(--gold);color:#14251b;font-weight:800;font-size:11.5px}
.bidtag.out{background:#33463a;color:#9db09c;font-weight:600}
.company .tmr{margin-left:4px}
/* power plant cards */
.plant{border:2px solid #d9cfae;border-radius:8px;box-shadow:0 6px 14px rgba(0,0,0,.45);transition:transform .15s,box-shadow .15s}
.plant:hover{box-shadow:0 0 0 2px #b6a674,0 8px 18px rgba(0,0,0,.5)}
.plant.selected{transform:translateY(-4px);border-color:#f2c45c;box-shadow:0 0 0 3px #f2b84b,0 12px 24px rgba(242,184,75,.3)}
.plant-head{background:linear-gradient(180deg,#2b4234,#203427)}
.plant-head>b{text-shadow:0 1px 0 #000}
.plant.future{opacity:.62}
.future-label{grid-column:1/-1;margin:4px 0 -2px;font-size:10px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:#8ea287}
@media(min-width:1101px){.future-label{display:none}}
/* the action console */
.action-panel{background:linear-gradient(180deg,#22392c,#172a20);box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 10px 24px rgba(0,0,0,.35)}
.action-panel.is-turn{border-color:#d8c48b;box-shadow:0 0 0 1px rgba(216,196,139,.35),0 10px 28px rgba(216,196,139,.12)}
.action-panel.is-turn .turn-label{color:#f2d99a}
.action-panel .btn{min-height:44px;border-radius:7px}
.action-panel .btn.big{display:flex;align-items:center;justify-content:center;width:100%;margin:8px 0 4px;min-height:50px;font-size:16px;font-weight:800;background:linear-gradient(180deg,#f3e2b2,#d4b360);color:#14251b;box-shadow:0 3px 0 #7d6326,0 8px 18px rgba(0,0,0,.35)}
.action-panel .btn.ghost{background:transparent;border:1px solid #4d6a52;color:var(--ink)}
.action-row{gap:8px}.action-row .btn{flex:1}
.bidrow{display:flex;gap:8px;align-items:flex-end;margin-top:6px}
.bidrow .input-label{flex:0 0 96px;margin:0}.bidrow .btn.big{flex:1;margin:0}
.block{display:flex;align-items:center;gap:14px;margin:8px 0 6px}
.block .plant{flex:0 0 118px;transform:rotate(-3deg);cursor:default}
.block .plant .plant-art{height:62px}
.gavel{display:flex;flex-direction:column;gap:2px;min-width:0}
.gavel small{font-size:10px;letter-spacing:.16em;color:#9db09c}
.gavel strong{font:normal 44px/1 Georgia,serif;color:#f2d99a}.gavel strong span{font-size:16px;color:#c9b47a}
.gavel .lead{display:flex;align-items:center;gap:6px;font-weight:700;font-size:14px}
.gavel .lead::before{content:"";width:13px;height:13px;background:var(--seat);clip-path:polygon(50% 0,100% 42%,100% 100%,0 100%,0 42%)}
.action-panel .resource-market{border-top:0;padding-top:4px}
.resource-row{padding:5px 0}
.resource-row>i{width:16px!important;height:16px!important;border-radius:3px!important;box-shadow:inset 0 -3px 0 rgba(0,0,0,.3),inset 0 2px 0 rgba(255,255,255,.3),0 2px 3px rgba(0,0,0,.4)}
.resource-row>strong{min-width:52px;text-align:right}
.resource-row .btn{min-height:40px!important;min-width:48px;font-weight:800}
.resource-row .btn:not(:disabled){background:#d8c48b!important;color:#14251b!important}
.action-panel h2{font-size:22px}
@media(max-width:900px){
  #table.pg-table{padding-bottom:calc(var(--dockh,220px) + 10px)}
  .pg-table .workspace,.pg-table .board-area,.pg-table .control-rail{display:contents}
  .pg-table .bar{order:-10}.pg-status{order:-9}.player-strip{order:-8}
  .pg-status{padding:10px 14px 6px}.pg-status h1{font-size:23px}
  .player-strip{margin:0 0 6px;padding:4px 12px 8px;gap:6px;scrollbar-width:none}
  .company{min-width:118px;padding:6px 8px}
  .board-head{padding:4px 14px 2px}.board-head h2{font-size:20px}.board-head .eyebrow{display:none}
  #table .map-viewport{height:auto;min-height:0;max-height:none;flex:none;aspect-ratio:var(--mar,1.35);padding:0 8px;overflow:auto;background:none}
  #table .map-size{height:100%}
  .map-key{padding:4px 14px 6px}
  .market-section{margin:4px 0;padding:10px 12px 12px;border-radius:0}
  .your-company,.owned-section,.ledger,.pg-table>.resource-market,.control-rail>.resource-market{margin-inline:14px}
  .your-company{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-top:12px;margin-bottom:6px}.your-company .balance{flex:1}
  .ledger{margin-bottom:14px}
  .action-panel{position:fixed;left:0;right:0;bottom:0;z-index:20;margin:0;border-radius:16px 16px 0 0;max-height:60dvh;overflow-y:auto;overscroll-behavior:contain;padding:10px 14px max(12px,env(safe-area-inset-bottom));border-bottom:0;box-shadow:0 -14px 34px rgba(0,0,0,.55)}
  .action-panel.is-turn{box-shadow:0 -14px 34px rgba(0,0,0,.55),0 -2px 0 #d8c48b}
  .action-panel h2{font-size:20px;margin-bottom:2px}.action-panel p{margin:4px 0 6px;font-size:13px;line-height:1.4}
  .turn-label{margin-bottom:4px}
  /* phase decides what sits right under the companies */
  .ph-auction .market-section{order:-5}
  .ph-resources .owned-section,.ph-bureaucracy .owned-section,.ph-discard .owned-section{order:-5}
  .ph-bureaucracy .your-company,.ph-discard .your-company{order:-6}
  .pg-footer{display:none}
}
@media(max-width:360px){.block .plant{flex-basis:96px}.gavel strong{font-size:36px}.company{min-width:108px}}
@media(prefers-reduced-motion:reduce){.company,.plant{transition:none}.plant.selected,.company.turn{transform:none}}
@media(max-width:900px){
  .action-panel{max-height:50dvh}
  .pg-table:not(.ph-gameOver) .action-panel>p:not(.error):not(:has(b)){display:none}
  .action-panel .turn-label{margin-bottom:2px}
  .quote{padding-top:6px}.quote dl{display:flex;flex-wrap:wrap;gap:2px 8px;margin:4px 0 0;font-size:13px}.quote dt{color:#9db09c}.quote dd{margin:0 8px 0 0}
  .pg-status .eyebrow{font-size:9px;letter-spacing:1.4px}.pg-status h1{font-size:21px}
  .you-tag{display:none}.company.you{border-color:#d8c48b}
  .company{min-width:132px}
  .block{margin:4px 0}.block .plant{flex-basis:100px}.block .plant .plant-art{height:44px}.gavel strong{font-size:38px}
  .owned .plant-art{height:48px}
  .action-panel .btn.big{margin:6px 0 2px}
}
@media(max-width:900px){
  .pg-table .bar .btn{min-height:40px;min-width:40px;padding:6px 9px;font-size:12px}
  .company small{font-size:11px}.wordmark{font-size:10px!important}.pg-status .eyebrow{font-size:10px}
}
@media(max-width:540px){.plant-bottom{font-size:10px;padding:4px 5px}.plant-bottom strong{font-size:12px}.section-label>span{font-size:10px}.plant-market{gap:6px}}
.turn-label{font-size:10px}
/* small phones: zoom buttons are real tap targets, nothing under 10px, and a slimmer pinned action panel on short screens */
@media(max-width:900px){.map-tools .btn{min-width:40px;min-height:40px}.pg-table small{font-size:max(10px,1em)}}
@media(max-width:900px) and (max-height:700px){
  .action-panel{padding:8px 12px max(10px,env(safe-area-inset-bottom))}
  .action-panel h2{font-size:18px;margin-bottom:0}
  .action-panel .btn{min-height:42px;margin:3px 4px 3px 0}.action-panel .btn.big{margin:4px 0 2px}
  .action-panel .quote{padding-top:4px}.action-panel .quote dl{font-size:12.5px}
  .action-panel>small{margin-top:4px}
}
@media(max-width:900px) and (max-height:600px){.pg-table:not(.ph-gameOver) .action-panel>small{display:none}.action-panel .input-label{margin:6px 0}}
