
/* Illustrated atlas and full-screen city workspaces. */
.shell.live-shell{max-width:1120px;padding-top:20px}.live-board.atlas-board{height:auto;margin:12px 0 18px;background:none;overflow:visible}.atlas-map{border:1px solid color-mix(in srgb,var(--map-outline) 65%,transparent);border-radius:12px;background:radial-gradient(ellipse at 55% 40%,color-mix(in srgb,var(--map-ground) 40%,#f1eee1),var(--map-ground));box-shadow:0 12px 30px var(--shadow-strong),inset 0 1px 0 #fff5}.atlas-map .map-svg{width:100%;height:clamp(370px,52vh,510px);min-height:0;max-height:none}.atlas-map .map-stamp{top:22px;left:26px;pointer-events:none}.atlas-map .map-stamp h2{font-size:27px;margin:3px 0}.atlas-map .map-stamp p{font-size:10px}.atlas-map .map-stamp .eyebrow{font-size:8px}.atlas-map .weather-pill{top:25px;right:24px;font-size:10px}.atlas-map .map-foot{bottom:16px;font-size:9px}.atlas-map .folk-border{display:none}.atlas-map .town-art{filter:drop-shadow(0 7px 4px #182e3025);transition:transform .25s}.atlas-map .city-node:hover .town-art{transform:translateY(-4px)}.atlas-map .city-label{font-family:var(--font);font-size:17px;font-weight:600}.atlas-map .city-sub{font-size:10px}.atlas-map .town-label rect{stroke:color-mix(in srgb,var(--map-outline) 40%,transparent);stroke-width:.6}.atlas-map .town-signal text{font-size:13px}.atlas-map .town-signal rect{rx:5}.atlas-map .town-shadow{opacity:.24}.atlas-map .target-mode .town-selection{opacity:.55;fill:var(--gold)}.atlas-map .unavailable{opacity:.5}.atlas-map .route-hit{stroke-width:17}.atlas-map .town-blackout .town-art{filter:brightness(.7)}.atlas-map .map-cloud{opacity:.3}.atlas-map .town-art .town-windows{transition:fill .5s}
.atlas-map, .city-illustration { --window-frame: #507788; --window-frame-width: 1; }
[data-theme=dark] :is(.atlas-map, .city-illustration) {
  --window: #fff0bb;
  --window-frame: #62492d;
  --window-frame-width: 1.25;
  --window-glow: drop-shadow(0 0 1.8px #ffd48670);
}
[data-theme=dark] .atlas-map { background: radial-gradient(ellipse at 55% 40%, #3d5656, var(--map-ground)); }
[data-theme=dark] .atlas-map .town-art { filter: brightness(.85) drop-shadow(0 6px 8px #101d2966); }
[data-theme=dark] :is(.atlas-map .town-blackout, .portrait-blackout .city-illustration) {
  --window-frame: #3f5258;
  --window-glow: none;
}
.town-windows {
  stroke: var(--window-frame, var(--window-frame-default, none));
  stroke-width: var(--window-frame-width, 1);
  filter: var(--window-glow);
}
.town-muntins { stroke: var(--window-frame, #507788); stroke-width: .62; opacity: .75; }
[data-theme=dark] :is(.atlas-map, .city-illustration) .town-windows { filter: var(--window-glow); }
:is(.atlas-map, .city-illustration) .development-windows {
  stroke: var(--window-frame);
  stroke-width: var(--window-frame-width);
  filter: var(--window-glow);
}
[data-theme=dark] :is(.atlas-map, .city-illustration) .development-windows { fill: var(--town-light, var(--window)); }
.portrait-blackout .city-illustration { --town-light: var(--window-off); }
.cinema-canvas{image-rendering:auto}.modal-content:has(.cinema-stage){padding:0}dialog:has(.cinema-stage){width:min(980px,calc(100vw - 30px))}.cinema-stage{height:clamp(280px,48vw,460px)}.cinema-caption{padding:22px 32px}.cinema-caption h2{font-size:30px}
dialog.city-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:var(--bg);box-shadow:none}.city-dialog .modal-content{padding:0;height:100%;max-height:none}.city-workspace{height:100%;display:grid;grid-template-rows:70px minmax(0,1fr) 68px;background:var(--bg);color:var(--text);overflow:hidden}.city-topbar{display:flex;align-items:center;justify-content:space-between;padding:0 36px;border-bottom:1px solid var(--line);gap:18px}.city-return{border:0;background:none;color:var(--text);font-size:13px;display:flex;align-items:center;gap:10px;padding:8px 0}.city-pager{display:flex;align-items:center;gap:18px}.city-pager>button{border:1px solid var(--line);background:var(--panel);color:var(--text);width:34px;height:34px;border-radius:50%;font-size:24px;line-height:1}.city-pager>span{font-size:10px;letter-spacing:.15em;color:var(--muted)}.city-budget{font-size:12px;color:var(--muted)}.city-budget>strong{font-size:20px;color:var(--text);font-weight:500}.city-budget>span{margin-left:20px;padding-left:20px;border-left:1px solid var(--line);font-size:11px}.city-layout{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(480px,1.2fr);gap:clamp(30px,5vw,80px);padding:26px clamp(32px,6vw,100px);width:100%;max-width:1550px;margin:auto;min-height:0;height:100%;align-items:center}.city-profile{display:flex;flex-direction:column;justify-content:center;min-height:0;height:100%}.city-heading .eyebrow{font-size:10px;letter-spacing:.13em;color:var(--gold)}.city-dialog .city-heading h1{font-size:clamp(44px,5vw,70px);line-height:1.1;margin:10px 0 9px;font-weight:400}.city-region{font-size:10px;color:var(--muted)}.city-illustration{position:relative;min-height:0;flex:1;max-height:320px;display:grid;place-items:center;isolation:isolate}.city-illustration {
  border-radius: 13px;
  background: radial-gradient(ellipse at 50% 61%, color-mix(in srgb, var(--portrait-accent) 27%, var(--panel)), var(--panel) 80%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.city-vladimir { --portrait-accent: #c29669; }
.city-suzdal { --portrait-accent: #b5a16e; }
.city-ivanovo { --portrait-accent: #bd7865; }
.city-yaroslavl { --portrait-accent: #81a698; }
.city-kostroma { --portrait-accent: #6e9da7; }.city-portrait{width:100%;height:100%;max-height:300px;overflow:visible;filter:drop-shadow(0 15px 10px #172c3020)}.city-portrait .mill-blades{animation:windmillSpin 28s linear infinite}.city-scene-caption{position:absolute;bottom:0;font-size:10px;color:var(--muted);letter-spacing:.03em}.city-delegate{display:flex;gap:13px;align-items:center;margin-top:20px}.city-delegate .avatar{width:39px;height:42px;font-size:13px;flex:none}.city-delegate>div{display:grid;gap:4px}.city-delegate strong{font-size:13px;font-weight:500}.city-delegate>div>span{font-size:10px;color:var(--muted)}.city-dialog .city-description{font-size:12px;line-height:1.8;margin:14px 0 0;color:var(--muted);max-width:410px}.city-console{align-self:center;min-width:0}.city-tabs{display:flex;gap:26px;border-bottom:1px solid var(--line);margin-bottom:22px}.city-tabs>button{border:0;border-bottom:2px solid transparent;margin-bottom:-1px;padding:12px 0;background:none;color:var(--muted);font-size:13px;position:relative}.city-tabs>button[aria-pressed=true]{color:var(--text);border-bottom-color:var(--accent)}.city-tabs i{display:inline-block;width:6px;height:6px;background:var(--red);border-radius:50%;vertical-align:middle;margin-left:5px}.city-vitals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.city-vital>div{display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:var(--green)}.city-vital>div>span{font-size:11px;color:var(--muted)}.city-vital strong{margin-left:auto;font-size:26px;font-weight:500;line-height:1.2}.city-vital strong>small{font-size:9px;color:var(--muted);font-weight:400;margin-left:3px}.city-vital-track{display:block;background:var(--line);height:4px;margin-top:12px;border-radius:2px;overflow:hidden}.city-vital-track>i{display:block;height:100%;background:var(--green);transition:width .5s}.city-vital.critical>div{color:var(--red)}.city-vital.critical .city-vital-track>i{background:var(--red)}.city-vital.uneasy>div{color:var(--gold)}.city-vital.uneasy .city-vital-track>i{background:var(--gold)}.city-vote{display:flex;gap:12px;margin:21px 0 23px;align-items:flex-start}.city-vote>span{width:25px;height:25px;background:color-mix(in srgb,var(--green) 12%,var(--panel));color:var(--green);display:grid;place-items:center;border-radius:50%;flex:none;font-size:14px}.city-vote.refuses>span{color:var(--red);background:var(--accent-soft)}.city-vote strong{font-size:12px;font-weight:500}.city-dialog .city-vote p{font-size:11px;color:var(--muted);line-height:1.6;margin:4px 0 0}.city-operations-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.city-dialog .city-operations-head h2{font-family:var(--font);font-size:13px;font-weight:500;margin:0}.city-operations-head>span{font-size:11px;color:var(--gold)}.city-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.city-action{position:relative;display:grid;grid-template-columns:30px 1fr;column-gap:8px;align-content:start;text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:16px 15px;color:var(--text);min-height:126px;transition:transform .18s,border-color .18s,box-shadow .18s}.city-action:hover:enabled{transform:translateY(-2px);border-color:var(--gold);box-shadow:0 6px 14px var(--shadow-strong)}.city-action-icon{grid-row:1/3;color:var(--gold)}.city-action>strong{font-size:13px;font-weight:500}.city-action-effect{font-size:10px;line-height:1.65;color:var(--muted);margin-top:6px}.city-action-price{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:5px;border-top:1px solid var(--line);padding-top:9px;margin-top:12px;font-size:11px}.city-action-price>b{color:var(--gold);font-size:16px;line-height:1;font-weight:400}.city-action:disabled{opacity:.55;cursor:default}.city-action-blocked{grid-column:1/-1;font-size:9px;line-height:1.5;color:var(--red);margin-top:6px}.city-inline-notice{font-size:11px;line-height:1.6;color:var(--green);min-height:20px;margin-top:13px}.city-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:0 36px;gap:20px;background:var(--panel)}.city-bottom>span{font-size:11px;color:var(--muted)}.city-bottom .primary{min-height:39px;font-size:12px;padding:9px 20px}.city-dialog .city-relations-intro h2{font-size:25px;line-height:1.3;margin:0 0 10px}.city-dialog .city-relations-intro p{font-size:12px;color:var(--muted);margin:0 0 22px;line-height:1.8}.city-link{display:grid;grid-template-columns:minmax(150px,1fr) 1fr 60px;align-items:center;width:100%;gap:20px;padding:18px 0;border:0;border-top:1px solid var(--line);background:none;color:var(--text);text-align:left}.city-link>span:first-child{display:grid;grid-template-columns:23px 1fr;column-gap:8px}.city-link .ui-icon{grid-row:1/3;color:var(--green);margin-top:3px}.city-link strong{font-size:13px;font-weight:500}.city-link small{font-size:10px;color:var(--muted)}.city-link-meter{height:4px;background:var(--line)}.city-link-meter>i{display:block;height:100%;background:var(--gold)}.city-link>b{font-size:19px;font-weight:500;text-align:right;color:var(--gold)}.city-link>b>small{display:block;font-size:9px}.city-link.blocked>b{color:var(--red)}.city-link.blocked .city-link-meter>i{background:var(--red)}.city-relations-note{font-size:11px;line-height:1.8;color:var(--muted);padding-top:15px;border-top:1px solid var(--line)}
@media(min-width:761px) and (max-height:790px){.city-workspace{grid-template-rows:58px minmax(0,1fr) 56px}.city-layout{padding:18px 38px;gap:42px}.city-dialog .city-heading h1{font-size:48px}.city-illustration{max-height:210px}.city-tabs{margin-bottom:16px}.city-vote{margin:16px 0}.city-action{min-height:105px;padding:12px}.city-action-price{padding-top:6px;margin-top:7px}.city-action-effect{font-size:9px}.city-action-blocked{font-size:8px;margin-top:3px}.city-inline-notice{margin-top:9px;font-size:10px}.city-delegate{margin-top:12px}.city-dialog .city-description{font-size:11px}}
@media(max-width:760px){.shell.live-shell{padding:15px 14px 8px}.atlas-map .map-svg{height:460px}.atlas-map .map-stamp{left:16px;top:16px}.atlas-map .map-stamp h2{font-size:24px}.atlas-map .map-stamp .eyebrow{font-size:7px}.atlas-map .map-stamp p{display:none}.atlas-map .weather-pill{top:17px;right:14px;left:auto;font-size:8px}.atlas-map .map-foot{left:15px;right:15px;bottom:13px}.atlas-map .legend{font-size:7px;gap:8px}.atlas-map .map-foot>span{display:none}.atlas-map .map-svg .city-label{font-size:21px}.atlas-map .map-svg .city-sub{font-size:11px}.atlas-map .map-svg{view-transition-name:none}.cinema-stage{height:260px}.cinema-caption{padding:20px}.cinema-caption h2{font-size:25px}.city-workspace{grid-template-rows:53px minmax(0,1fr) 55px}.city-topbar{padding:0 16px;gap:10px}.city-return{font-size:18px}.city-return>span{display:none}.city-pager{gap:10px}.city-pager>button{width:29px;height:29px;font-size:21px}.city-pager>span{font-size:9px}.city-budget{font-size:10px}.city-budget>strong{font-size:16px}.city-budget>span{display:none}.city-layout{display:grid;grid-template-columns:1fr;grid-template-rows:150px minmax(0,1fr);gap:0;padding:10px 20px 0;align-items:start}.city-profile{display:grid;grid-template-columns:1.05fr 1fr;grid-template-rows:1fr;position:relative;align-items:center;gap:0;height:150px}.city-heading .eyebrow{font-size:8px;letter-spacing:.04em}.city-dialog .city-heading h1{font-size:34px;margin:7px 0}.city-region{font-size:8px}.city-illustration{height:150px;max-height:150px}.city-portrait{height:140px}.city-scene-caption{display:none}.city-delegate{position:absolute;bottom:3px;left:0;margin:0;gap:7px}.city-delegate .avatar{width:23px;height:25px;font-size:8px}.city-delegate strong{font-size:9px}.city-delegate>div>span{display:none}.city-description{display:none}.city-console{align-self:start}.city-tabs{gap:22px;margin:0 0 16px}.city-tabs>button{font-size:11px;padding:11px 0}.city-vitals{gap:13px}.city-vital>div{gap:4px}.city-vital .ui-icon{width:14px;height:14px}.city-vital>div>span{font-size:10px}.city-vital strong{font-size:20px}.city-vital strong>small{display:none}.city-vital-track{margin-top:8px}.city-vote{margin:14px 0 15px;gap:9px}.city-vote>span{width:21px;height:21px;font-size:12px}.city-vote strong{font-size:10px}.city-dialog .city-vote p{font-size:9px;line-height:1.5;margin-top:3px}.city-operations-head{margin-bottom:9px}.city-dialog .city-operations-head h2{font-size:11px}.city-operations-head>span{font-size:10px}.city-action-grid{gap:9px}.city-action{padding:11px 10px;min-height:106px;grid-template-columns:22px 1fr;column-gap:5px;border-radius:6px}.city-action-icon .ui-icon{width:18px;height:18px}.city-action>strong{font-size:10px;line-height:1.5}.city-action-effect{font-size:8px;line-height:1.5;margin-top:4px}.city-action-price{font-size:9px;padding-top:6px;margin-top:8px}.city-action-price>b{font-size:14px}.city-action-blocked{font-size:7px;margin-top:3px}.city-inline-notice{font-size:9px;margin-top:9px}.city-bottom{padding:0 18px;gap:10px}.city-bottom>span{font-size:8px;max-width:185px;line-height:1.6}.city-bottom .primary{font-size:10px;min-height:34px;padding:8px 11px;white-space:nowrap}.city-dialog .city-relations-intro h2{font-size:22px;margin-top:6px}.city-dialog .city-relations-intro p{font-size:10px;margin-bottom:12px}.city-link{padding:14px 0;grid-template-columns:minmax(120px,1fr) .6fr 42px;gap:13px}.city-link strong{font-size:12px}.city-link small{font-size:9px}.city-link>b{font-size:17px}.city-link>b>small{font-size:8px}.city-relations-note{font-size:10px;padding-top:12px}}
@media(max-width:760px) and (max-height:740px){.city-layout{grid-template-rows:112px minmax(0,1fr);padding:7px 16px 0}.city-profile{height:112px}.city-illustration{height:112px}.city-portrait{height:112px}.city-dialog .city-heading h1{font-size:29px}.city-delegate{bottom:0}.city-region{display:none}.city-tabs{margin-bottom:11px}.city-vote{margin:10px 0}.city-action{min-height:95px;padding:9px}.city-inline-notice{font-size:8px;margin-top:6px}.city-action-effect{font-size:8px}.city-dialog .city-vote p{font-size:8px}.city-action-blocked{font-size:7px}}
@media(prefers-reduced-motion:reduce){.city-action,.atlas-map .town-art{transition:none}.city-portrait .mill-blades{animation:none}}

/* Keep the city illustration within its own layout area. */
body:has(dialog.city-dialog[open]){overflow:hidden}.city-illustration{height:clamp(180px,28vh,300px);flex:0 0 auto;max-height:none;margin:12px 0 3px}.city-portrait{height:100%;max-height:100%;overflow:hidden}.city-scene-caption{bottom:6px;max-width:94%;padding:3px 6px;background:var(--panel);border-radius:4px;text-align:center;line-height:1.3}.city-profile{justify-content:center}.live-status{min-height:79px;padding:12px 0}.live-day.day-block{min-height:0}.atlas-map .map-svg{height:clamp(440px,59vh,550px)}.cinema-stage{height:clamp(260px,43vh,400px)}.cinema-head{padding:15px 24px}.cinema-caption{padding:18px 28px 22px}.cinema-caption h2{font-size:27px;margin:8px 0 10px}.cinema-caption p{font-size:12px;margin:8px 0 16px}.cinema-caption>span{margin-top:9px}
@media(min-width:761px) and (max-height:790px){.city-illustration{height:210px}.city-profile{padding:8px 0}.city-tabs{margin-top:0}.atlas-map .map-svg{height:440px}}
@media(max-width:760px){.city-illustration{height:150px;margin:0}.city-portrait{height:140px}.atlas-map .map-svg{height:450px}.atlas-map .weather-pill{display:none}.atlas-map .map-stamp{top:13px}.cinema-stage{height:230px}.cinema-head{padding:12px 16px}.cinema-caption{padding:17px 20px}.cinema-caption h2{font-size:24px}}
@media(max-width:760px) and (max-height:740px){.city-illustration{height:112px}.city-portrait{height:112px}}

@media(max-width:760px){.atlas-map .map-svg{height:340px}.atlas-map .map-svg .city-label{font-size:23px}.atlas-map .map-svg .city-sub{font-size:13px}.city-action{min-height:120px;padding:13px 11px}.city-action>strong{font-size:12px}.city-action-effect{font-size:10px}.city-action-price{font-size:10px}.city-dialog .city-operations-head h2{font-size:12px}.city-inline-notice{font-size:10px}.city-delegate strong{font-size:10px}}
@media(max-width:760px) and (max-height:740px){.city-action{min-height:105px;padding:10px}.city-action>strong{font-size:11px}.city-action-effect{font-size:9px}.city-action-price{font-size:9px}.city-inline-notice{font-size:9px}}
@media(max-width:760px) and (max-height:650px){.city-workspace{grid-template-rows:44px minmax(0,1fr) 44px}.city-layout{grid-template-rows:75px minmax(0,1fr);padding-top:4px}.city-profile,.city-illustration,.city-portrait{height:75px}.city-dialog .city-heading h1{font-size:27px;margin:4px 0}.city-heading .eyebrow{font-size:7px}.city-delegate{display:none}.city-tabs{margin-bottom:9px}.city-tabs>button{padding:8px 0;font-size:10px}.city-vital strong{font-size:18px}.city-vital-track{margin-top:5px}.city-vote{margin:9px 0}.city-vote strong{font-size:9px}.city-dialog .city-vote p{font-size:8px}.city-action{min-height:87px;padding:8px}.city-action>strong{font-size:10px}.city-action-effect{font-size:8px}.city-action-price{padding-top:5px;margin-top:5px;font-size:9px}.city-action-grid{gap:7px}.city-inline-notice{font-size:8px;margin-top:5px}.city-action-blocked{font-size:7px}.city-bottom>span{font-size:7px}.city-bottom .primary{min-height:30px}.city-link{padding:11px 0}.city-dialog .city-relations-intro h2{font-size:20px}.city-dialog .city-relations-intro p{font-size:9px}}

.prologue-town .city-portrait{width:86px;height:74px;filter:none;overflow:visible}.prologue-cities{gap:3px}.prologue-town{gap:2px}@media(max-width:600px){.prologue-town .city-portrait{width:64px;height:59px}.prologue-cities{gap:0}}

.atlas-map .map-ground{fill:transparent}

/* A completed delivery stays fully visible and explains the result. */
.atlas-map .unavailable{opacity:1}.atlas-map .unavailable .town-label rect{stroke:var(--muted);stroke-dasharray:3 3}.atlas-map .city-received .town-selection{fill:var(--green);opacity:.22}.city-action-badge{pointer-events:none;animation:deliveryReceipt .25s ease-out}.city-action-badge rect{fill:var(--panel);stroke:var(--green);stroke-width:1.5}.city-action-badge text{fill:var(--green);font:600 12px var(--font)}.live-feedback.has-result{display:flex;gap:12px;align-items:flex-start;background:color-mix(in srgb,var(--green) 8%,var(--panel));border-left:2px solid var(--green);padding:12px 14px;margin:10px 0 12px;border-radius:4px;color:var(--text);min-height:77px}.live-result-check{display:grid;place-items:center;flex:none;width:24px;height:24px;background:var(--green);color:var(--panel);border-radius:50%;font-size:14px}.live-feedback.has-result>div{display:grid;gap:3px}.live-feedback.has-result strong{font-size:12px;font-weight:500}.live-feedback.has-result>div>span{font-size:11px;color:var(--green)}.live-feedback.has-result small{font-size:10px;line-height:1.6;color:var(--muted)}@keyframes deliveryReceipt{from{opacity:0}to{opacity:1}}
@media(max-width:760px){.live-feedback.has-result{padding:10px;gap:9px;min-height:82px}.live-feedback.has-result strong{font-size:11px}.live-feedback.has-result>div>span{font-size:10px}.live-feedback.has-result small{font-size:9px}.live-result-check{width:20px;height:20px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.city-action-badge{animation:none}}

/* Fit the full play surface in the available window. */
html:has(.live-shell),body:has(.live-shell){height:100%;overflow:hidden}body:has(.live-shell){margin:0}#app:has(.live-shell){height:100dvh;overflow:hidden}.shell.live-shell{height:100dvh;max-height:100dvh;min-height:0;display:grid;grid-template-rows:54px minmax(0,1fr) 16px;gap:8px;padding:12px 24px 6px;box-sizing:border-box}.live-header{padding:0 0 8px;min-height:0}.live-shell #workspace{display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:6px;min-height:0;position:relative}.live-status{grid-row:1;min-height:0;padding:4px 0}.live-day.day-block{min-height:0}.live-day.day-block strong{font-size:29px}.live-day.day-block span{font-size:10px}.live-alerts{grid-row:2;gap:5px}.live-alerts button{font-size:9px;padding:3px 7px;margin:0}.live-daily{grid-row:3;min-height:51px;padding:8px 13px;gap:12px}.live-daily h1{font-size:13px;line-height:1.4;margin-top:3px}.live-daily>button{min-height:34px;padding:7px 12px}.live-board.atlas-board{grid-row:4;min-height:0;height:100%;margin:0;overflow:hidden}.atlas-map{height:100%;min-height:0;box-sizing:border-box;box-shadow:0 3px 12px var(--shadow-strong)}.atlas-map .map-svg{display:block;width:100%;height:100%;min-height:0;max-height:none}.atlas-map .map-stamp{top:14px;left:18px}.atlas-map .map-stamp h2{font-size:23px}.atlas-map .map-stamp p{font-size:9px;margin:4px 0}.atlas-map .weather-pill{top:15px;right:18px;font-size:9px}.atlas-map .map-foot{bottom:10px;left:18px;right:18px}.live-control-dock{grid-row:5;position:static;bottom:auto;min-height:0;background:none}.live-tools{gap:9px}.live-tools>button{grid-template-columns:22px auto 1fr;justify-items:start;align-items:center;gap:9px;min-height:47px;padding:10px 13px}.live-tools>button>span{font-size:12px}.live-tools>button>small{font-size:10px;justify-self:end}.live-tools .ui-icon{width:18px;height:18px}.live-feedback{padding:5px 2px;min-height:25px;font-size:10px;line-height:1.5}.live-feedback.has-result{min-height:0;margin:5px 0;padding:7px 10px;gap:9px}.live-feedback.has-result>div{gap:1px}.live-feedback.has-result strong{font-size:11px}.live-feedback.has-result>div>span{font-size:10px}.live-feedback.has-result small{font-size:9px;line-height:1.5}.live-result-check{width:21px;height:21px;font-size:12px}.live-footer{min-height:39px;margin:0;padding:5px 0 1px}.live-footer>.primary{min-height:34px;padding:8px 15px;font-size:12px}.live-footer-links>button{padding:4px 0;font-size:11px}.live-evening{padding:0;font-size:9px;line-height:12px}.shell.live-shell>footer{margin:0;padding:0;min-height:0;border:0;font-size:8px;line-height:12px;align-items:center}.shell.live-shell>footer button{font-size:8px}
@media(max-height:720px){.shell.live-shell{grid-template-rows:46px minmax(0,1fr) 13px;padding-top:8px;gap:5px}.live-header{padding-bottom:5px}.live-status{padding:2px 0}.live-day.day-block strong{font-size:26px}.live-cash strong{font-size:22px}.live-daily{min-height:46px;padding:6px 11px}.live-daily>div>span{font-size:7px}.live-daily h1{font-size:12px}.live-tools>button{min-height:42px;padding:8px 11px}.live-feedback{min-height:22px;padding-top:3px;padding-bottom:3px}.live-footer{min-height:36px;padding-top:3px}.live-footer>.primary{min-height:32px;font-size:11px;padding:7px 12px}.atlas-map .map-stamp{top:10px;left:14px}.atlas-map .map-stamp h2{font-size:19px}.atlas-map .map-stamp .eyebrow,.atlas-map .map-stamp p{display:none}.atlas-map .weather-pill{top:10px;font-size:8px}.atlas-map .map-foot{bottom:7px;font-size:7px}.atlas-map .legend{font-size:7px}}
@media(max-width:760px){.shell.live-shell{grid-template-rows:47px minmax(0,1fr) 12px;padding:9px 12px 5px;gap:6px}.live-header{padding:0 0 7px}.live-header .brand-name{font-size:24px}.live-header .flag{width:42px;height:25px}.live-header .theme-button,.live-header .icon-btn{width:32px;height:32px;min-height:32px}.live-status{padding:3px 0}.live-day.day-block strong{font-size:26px}.live-day.day-block span{font-size:9px}.live-cash strong{font-size:22px}.live-cash>span,.live-votes>span{font-size:9px}.live-votes strong{font-size:19px}.live-daily{padding:8px 10px;min-height:48px}.live-daily h1{font-size:12px}.live-daily>div>span{font-size:7px}.live-daily>button{font-size:10px;padding:7px 9px;min-height:32px}.live-shell #workspace{gap:5px}.atlas-map .map-stamp{top:11px;left:13px}.atlas-map .map-stamp h2{font-size:21px}.atlas-map .map-stamp .eyebrow,.atlas-map .map-stamp p{display:none}.atlas-map .map-foot{bottom:8px;left:12px;right:12px}.atlas-map .legend{font-size:7px;gap:7px}.live-tools{gap:7px}.live-tools>button{grid-template-columns:1fr;justify-items:center;gap:3px;padding:7px 4px;min-height:62px}.live-tools>button>span{font-size:11px}.live-tools>button>small{font-size:9px;justify-self:center;line-height:1.5;white-space:nowrap}.live-tools .ui-icon{width:16px;height:16px}.live-feedback{font-size:10px;min-height:25px;padding:4px 1px}.live-feedback.has-result{padding:7px 9px;min-height:0;margin:4px 0}.live-feedback.has-result strong{font-size:10px}.live-feedback.has-result>div>span{font-size:10px}.live-feedback.has-result small{font-size:9px}.live-footer{min-height:39px;padding:4px 0 0}.live-footer>.primary{font-size:11px;padding:8px 12px;min-height:34px}.live-footer-links>button{font-size:11px}.live-evening{font-size:8px;line-height:11px}.shell.live-shell>footer,.shell.live-shell>footer button{font-size:7px;line-height:10px}}
@media(max-width:760px) and (max-height:690px){.shell.live-shell{grid-template-rows:39px minmax(0,1fr) 10px;padding:6px 10px 4px;gap:4px}.live-header{padding-bottom:4px}.live-header .brand-name{font-size:22px}.live-header .brand-sub{font-size:7px}.live-status{padding:1px 0}.live-day.day-block strong{font-size:23px}.live-cash strong{font-size:20px}.live-day.day-block span,.live-cash>span,.live-votes>span{font-size:8px}.live-daily{min-height:44px;padding:5px 8px}.live-daily h1{font-size:11px}.live-shell #workspace{gap:4px}.live-tools>button{min-height:53px;padding:5px 3px;gap:2px}.live-tools .ui-icon{width:14px;height:14px}.live-tools>button>span{font-size:10px}.live-tools>button>small{font-size:8px}.live-feedback{min-height:21px;font-size:9px;padding:3px 1px}.live-feedback.has-result{margin:3px 0;padding:5px 7px}.live-feedback.has-result strong,.live-feedback.has-result>div>span{font-size:9px}.live-feedback.has-result small{font-size:8px}.live-footer{min-height:34px;padding-top:2px}.live-footer>.primary{min-height:30px;font-size:10px;padding:6px 10px}.live-footer-links>button{font-size:10px}.atlas-map .map-stamp h2{font-size:18px}.atlas-map .map-foot{bottom:6px}.atlas-map .legend{font-size:6px;gap:6px}}
@media(min-width:700px) and (max-height:500px){.shell.live-shell{grid-template-rows:39px minmax(0,1fr) 10px;padding:6px 14px 4px;gap:4px}.live-header .brand-name{font-size:23px}.live-header .flag{width:40px;height:24px}.live-shell #workspace{grid-template-columns:minmax(0,1fr) 260px;grid-template-rows:38px auto minmax(0,1fr);column-gap:12px;row-gap:5px}.live-status{grid-column:1/-1;grid-row:1;padding:0}.live-alerts{position:absolute;top:45px;left:8px;z-index:4;max-width:calc(100% - 285px)}.live-daily{grid-column:2;grid-row:2;min-height:44px;padding:6px 8px}.live-daily h1{font-size:10px}.live-daily>button{font-size:9px;min-height:29px;padding:6px 8px}.live-board.atlas-board{grid-column:1;grid-row:2/-1}.live-control-dock{grid-column:2;grid-row:3;align-self:end}.live-tools{gap:5px}.live-tools>button{grid-template-columns:1fr;justify-items:center;gap:2px;padding:5px 3px;min-height:54px}.live-tools .ui-icon{width:14px;height:14px}.live-tools>button>span{font-size:10px}.live-tools>button>small{font-size:8px;justify-self:center;white-space:nowrap}.live-feedback{font-size:9px;min-height:22px}.live-feedback.has-result{padding:5px 7px;margin:3px 0}.live-feedback.has-result strong,.live-feedback.has-result>div>span{font-size:9px}.live-feedback.has-result small{font-size:8px}.live-footer{min-height:33px;padding-top:3px}.live-footer-links{gap:12px}.live-footer-links>button{font-size:9px}.live-footer>.primary{font-size:9px;min-height:29px;padding:6px 8px}.live-evening{font-size:8px;line-height:11px}.atlas-map .map-stamp,.atlas-map .weather-pill,.atlas-map .map-foot{display:none}}

/* City art and labels keep their own size while the landscape fills the board. */
.atlas-scene{isolation:isolate;position:relative;overflow:hidden;--atlas-art-height:130px;--atlas-city-width:185px;--atlas-label-size:18px}.atlas-background{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.atlas-background .route-group{pointer-events:auto}.atlas-background .route-hit{stroke-width:19;vector-effect:non-scaling-stroke}.atlas-background .supply-road{stroke-width:5;vector-effect:non-scaling-stroke}.atlas-background .supply-stitches{stroke-width:1;vector-effect:non-scaling-stroke}.atlas-forest{position:absolute;inset:0;pointer-events:none;opacity:.65}.atlas-tree{position:absolute;width:calc(var(--atlas-art-height)*.24);height:calc(var(--atlas-art-height)*.34);transform:translate(-50%,-50%) scale(var(--tree-scale));overflow:visible}.atlas-scene .map-stamp,.atlas-scene .weather-pill,.atlas-scene .map-foot{z-index:4;pointer-events:none}.atlas-scene .map-stamp h2{font-size:20px;margin:0}.atlas-scene .map-foot{font-size:9px;opacity:.75}.atlas-city{all:unset;box-sizing:border-box;position:absolute;transform:translate(-50%,-50%);width:var(--atlas-city-width);display:grid;justify-items:center;align-content:start;gap:3px;text-align:center;cursor:pointer;isolation:isolate;z-index:2;color:var(--text);touch-action:manipulation}.atlas-city:hover,.atlas-city:focus-visible{z-index:5}.atlas-city:focus-visible{outline:2px solid var(--gold);outline-offset:4px;border-radius:10px}.atlas-city-art{height:var(--atlas-art-height);width:calc(var(--atlas-art-height)*1.2);display:block;position:relative;filter:drop-shadow(0 9px 5px #172c3025);transform-origin:center bottom}.atlas-town-art{display:block;width:100%;height:100%;overflow:visible}.atlas-city-name{display:flex;align-items:center;gap:5px;font-family:var(--font);font-size:var(--atlas-label-size);font-weight:600;line-height:1.25;white-space:nowrap;padding:3px 8px 1px;border-radius:5px;background:var(--label-plate);box-shadow:0 2px 7px var(--shadow)}.atlas-vote{width:6px;height:6px;border-radius:50%;background:var(--green);flex:none}.atlas-vote.no{background:var(--gold)}.atlas-city-status{font-size:11px;font-weight:400;line-height:1.35;color:var(--muted);background:var(--label-plate);border-radius:3px;padding:2px 7px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.atlas-city.needs .atlas-city-status{color:var(--red)}.atlas-city-trust{position:absolute;top:15%;right:0;background:var(--panel);border:1px solid var(--line);color:var(--green);border-radius:6px;padding:3px 6px;font-size:11px;line-height:1.3;font-family:var(--font);font-weight:500;box-shadow:0 2px 6px var(--shadow-strong)}.atlas-city-veto{position:absolute;top:16%;left:0;background:var(--panel);color:var(--gold);font-size:9px;border:1px solid var(--gold);border-radius:3px;padding:1px 4px}.atlas-city.target-mode .atlas-city-art:before,.atlas-city.city-received .atlas-city-art:before{content:'';position:absolute;bottom:8%;left:5%;right:5%;height:18%;border-radius:50%;background:var(--gold);opacity:.28;z-index:-1}.atlas-city.city-received .atlas-city-art:before{background:var(--green)}.atlas-city.target-mode .atlas-city-status{color:var(--green);font-weight:500}.atlas-city.unavailable{opacity:1}.atlas-city.unavailable .atlas-city-status{color:var(--muted);border:1px dashed var(--line)}.atlas-city-result{position:absolute;left:50%;top:-8px;transform:translate(-50%,-100%);background:var(--panel);border:1px solid var(--green);color:var(--green);font:500 11px/1.4 var(--font);padding:3px 8px;border-radius:6px;white-space:nowrap;pointer-events:none;animation:deliveryReceipt .25s ease-out}.atlas-city.city-celebrate .atlas-city-art{animation:atlasLift .7s ease-out}.atlas-city.town-blackout .atlas-town-art{filter:brightness(.73)}[data-theme=dark] .atlas-city-art{filter:drop-shadow(0 9px 8px #101d294f)}.atlas-scene[data-small=yes] .map-stamp,.atlas-scene[data-small=yes] .weather-pill,.atlas-scene[data-small=yes] .map-foot{display:none}.atlas-scene[data-small=yes] .atlas-city-status{font-size:10px;padding:1px 5px}.atlas-scene[data-small=yes] .atlas-city-trust{font-size:9px;padding:2px 4px}.atlas-scene[data-small=yes] .atlas-city-result{font-size:9px;padding:2px 5px;top:0}
.live-tomorrow{display:grid;gap:6px;padding:14px 16px;background:var(--panel2);border-left:2px solid var(--gold);margin:16px 0}.live-tomorrow>span{font-size:9px;letter-spacing:.08em;color:var(--gold)}.live-tomorrow>strong{font-size:15px;font-weight:500;line-height:1.5}.live-tomorrow>small{font-size:11px;color:var(--muted)}
@keyframes atlasLift{0%,100%{translate:0 0}40%{translate:0 -7px}75%{translate:0 -2px}}
@media(max-width:760px){.atlas-scene .map-foot{font-size:8px}.atlas-city-status{font-size:10px}.atlas-city-trust{font-size:10px;padding:2px 5px}.atlas-background .supply-road{stroke-width:3}.atlas-background .route-hit{stroke-width:16}.atlas-scene .map-stamp h2{font-size:18px}.atlas-city-name{gap:4px;padding:3px 6px 1px}.atlas-vote{width:5px;height:5px}.live-tomorrow>strong{font-size:13px}.live-tomorrow{padding:12px}}
@media(prefers-reduced-motion:reduce){.atlas-city.city-celebrate .atlas-city-art{animation:none}}

.atlas-city-name{margin-top:-8px}.atlas-city-result{top:1px;transform:translate(-50%,0)}.atlas-city.city-received .atlas-city-trust{top:31%}.live-ripple{font-size:10px;font-style:normal;line-height:1.5;color:var(--red)}@media(max-width:760px){.live-ripple{font-size:9px}}

.atlas-scene[data-layout=compact] .atlas-city-status{font-size:9px;padding:1px 3px}.atlas-scene[data-layout=compact] .atlas-city-name{padding-left:4px;padding-right:4px;gap:3px}

/* Compact, readable promise progress replaces the city role line. */
.atlas-city-trust{top:0;right:-8px;font-size:10px;padding:3px 6px;white-space:nowrap}.atlas-city.city-received .atlas-city-trust{top:31%}.atlas-guarantee{display:grid;gap:1px;position:relative;width:100%;max-width:166px;box-sizing:border-box;padding:3px 7px 5px;border:1px solid color-mix(in srgb,var(--gold) 65%,var(--line));border-radius:5px;background:var(--panel);color:var(--gold);line-height:1.25}.atlas-guarantee>span{font-size:9px;white-space:nowrap}.atlas-guarantee>strong{font-size:11px;font-weight:500;white-space:nowrap}.atlas-guarantee.urgent{border-color:var(--red);color:var(--red)}.atlas-guarantee.ready{border-color:var(--green);color:var(--green)}.atlas-guarantee-track{position:absolute;bottom:0;left:5px;right:5px;height:2px;background:var(--line);overflow:hidden}.atlas-guarantee-track>i{height:100%;display:block;background:currentColor}.city-guarantee-link{display:grid;grid-template-columns:auto 1fr 16px;align-items:center;gap:10px;border:1px solid var(--line);border-left:2px solid var(--gold);border-radius:4px;background:var(--panel);color:var(--text);width:100%;padding:9px 12px;margin:0 0 15px;text-align:left}.city-guarantee-link>strong{font-size:11px;font-weight:500}.city-guarantee-link>span{font-size:10px;color:var(--gold);justify-self:end}.city-guarantee-link>b{font-size:15px;color:var(--gold);font-weight:400}
@media(max-width:760px){.atlas-city-trust{font-size:9px;padding:2px 4px;right:-6px}.atlas-guarantee{padding:3px 5px 5px;max-width:145px}.atlas-guarantee>span{font-size:8px}.atlas-guarantee>strong{font-size:10px}.city-guarantee-link{padding:7px 9px;margin-bottom:10px;gap:6px}.city-guarantee-link>strong{font-size:10px}.city-guarantee-link>span{font-size:9px}}
.atlas-scene[data-layout=compact] .atlas-guarantee{padding:2px 3px 4px}.atlas-scene[data-layout=compact] .atlas-guarantee>span{font-size:8px}.atlas-scene[data-layout=compact] .atlas-guarantee>strong{font-size:9px}.atlas-scene[data-small=yes] .atlas-city-trust{font-size:8px;padding:2px 3px}
@media(max-width:760px) and (max-height:650px){.city-guarantee-link{padding:5px 7px;margin-bottom:7px}.city-guarantee-link>strong,.city-guarantee-link>span{font-size:8px}}

.atlas-guarantee-more{position:absolute;right:-4px;top:-5px;padding:1px 3px;border-radius:4px;background:var(--gold);color:var(--panel);font-size:8px;line-height:1.3;font-weight:500}

.atlas-city-veto{top:43%;left:-4px}

/* Brief civic reactions stay above the artwork and never move the layout. */
.city-emotions{position:absolute;inset:0;pointer-events:none;z-index:8;overflow:visible;color:#4b9f75}.city-emotions.unhappy{color:#cf675e}.city-emotion{position:absolute;top:32%;left:calc(40% + (var(--face-i) - 1)*21px);width:26px;height:26px;overflow:visible;opacity:0;filter:drop-shadow(0 2px 2px #162a3033);animation:civicReaction 1.55s cubic-bezier(.2,.65,.3,1) calc(var(--face-i)*.14s) both}.city-emotion>circle{fill:var(--panel);stroke:currentColor;stroke-width:2}.city-emotion>g{fill:currentColor}.city-emotion path{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.atlas-city:has(.city-emotions){z-index:7}
@keyframes civicReaction{0%{opacity:0;transform:translate(0,8px) scale(.65) rotate(-7deg)}18%{opacity:1;transform:translate(0,-3px) scale(1.05) rotate(0)}70%{opacity:1}100%{opacity:0;transform:translate(calc((var(--face-i) - 1)*10px),-58px) scale(.9) rotate(7deg)}}
.town-development{pointer-events:none}.development-boat{animation:portCargo 7s ease-in-out infinite}.development-cart{animation:depotCargo 6s ease-in-out infinite}.development-signal{animation:substationSignal 4s ease-in-out infinite}
@keyframes portCargo{0%,100%{transform:translate(0,0)}50%{transform:translate(-10px,1px)}}@keyframes depotCargo{0%,100%{transform:translate(0,0)}50%{transform:translate(-5px,-1px)}}@keyframes substationSignal{0%,100%{opacity:1}50%{opacity:.55}}
.replay-offer{padding:18px;margin:20px 0;border:1px solid var(--gold);border-radius:6px;background:var(--panel2);display:grid;gap:9px}.replay-offer h3{font-size:21px;margin:0;font-weight:500}.replay-offer p{margin:0;color:var(--muted);font-size:12px}.replay-offer>strong{font-size:15px;font-weight:500;line-height:1.45}.replay-offer>small{color:var(--muted);line-height:1.5;font-size:11px}.replay-offer .primary{justify-self:start;margin-top:4px}.live-daily .replay-goal{font:400 10px/1.35 var(--font);color:var(--gold);margin:4px 0 0;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.live-choices article.replay-target{border-color:var(--gold);box-shadow:inset 3px 0 var(--gold)}.replay-option-label{display:block;font-size:9px;color:var(--gold);padding:8px 14px 0}
@media(max-width:760px){.city-emotion{width:22px;height:22px;left:calc(38% + (var(--face-i) - 1)*17px)}.replay-offer{padding:13px;gap:8px}.replay-offer h3{font-size:18px}.live-daily .replay-goal{font-size:9px;max-width:60vw}.replay-offer .primary{width:100%}}
@media(prefers-reduced-motion:reduce){.city-emotion,.development-boat,.development-cart,.development-signal{animation:none}}

.ending-details{margin:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:11px 0}.ending-details>summary{cursor:pointer;color:var(--muted);font-size:12px}.ending-details[open]>summary{margin-bottom:14px}.live-daily .replay-goal{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-width:100%}

/* The map exposes the same destinations as the document screens. */
.shell.live-shell{--live-head-size:54px;--live-foot-size:16px;grid-template-rows:var(--live-head-size) minmax(0,1fr) var(--live-foot-size)}.live-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:20px;align-items:center}.live-header .live-navigation{display:flex;flex-wrap:nowrap;justify-content:center;width:auto;min-width:0;gap:5px}.live-navigation .tab{min-height:36px;padding:7px 10px;font-size:12px;white-space:nowrap;gap:6px;justify-content:center}.live-navigation .tab .ui-icon{display:block;width:16px;height:16px;flex:none}.live-navigation .tab b{flex:none;font-size:8px;min-width:14px;width:auto;height:14px;padding:0 3px}.live-navigation .tab.active{color:var(--accent);background:var(--panel);border-color:var(--line)}.tabs .tab.has-embargo b{background:var(--red);color:var(--panel)}.live-header-actions{justify-self:end}
@media(max-height:720px){.shell.live-shell{--live-head-size:46px;--live-foot-size:13px}}
@media(max-width:1000px) and (min-width:901px){.live-header{column-gap:12px}.live-navigation .tab{font-size:11px;padding:7px;gap:4px}.live-navigation .tab .ui-icon{width:14px;height:14px}}
@media(max-width:900px){.shell.live-shell{--live-head-size:88px}.live-header{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) 34px;row-gap:5px;padding-bottom:5px}.live-header>.brand{grid-column:1;grid-row:1}.live-header-actions{grid-column:2;grid-row:1}.live-header .live-navigation{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;gap:4px}.live-navigation .tab{padding:6px 5px;gap:4px;min-height:32px;font-size:11px}.live-navigation .tab .ui-icon{width:14px;height:14px}}
@media(max-width:760px){.shell.live-shell{--live-head-size:84px;--live-foot-size:12px}.live-navigation .tab{font-size:10px;padding:6px 3px;gap:3px}.live-navigation .tab .ui-icon{width:13px;height:13px}.live-navigation .tab b{min-width:12px;height:12px;padding:0 2px;font-size:7px}}
@media(max-width:760px) and (max-height:690px){.shell.live-shell{--live-head-size:75px;--live-foot-size:10px}.live-header{grid-template-rows:minmax(0,1fr) 30px;row-gap:3px;padding-bottom:3px}.live-navigation .tab{min-height:29px;font-size:9px}.live-navigation .tab .ui-icon{width:12px;height:12px}}
@media(max-width:370px){.live-navigation .tab{font-size:9px;gap:2px}.live-navigation .tab .ui-icon{display:none}.live-header .live-navigation{gap:2px}}
@media(min-width:700px) and (max-height:500px){.shell.live-shell{--live-head-size:39px;--live-foot-size:10px}.live-header{grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:1fr;column-gap:10px;row-gap:0;padding-bottom:4px}.live-header>.brand{grid-column:1;grid-row:1;gap:8px}.live-header .flag{width:34px;height:21px}.live-header .brand-name{font-size:21px}.live-header .brand-sub{font-size:7px}.live-header .live-navigation{grid-column:2;grid-row:1;display:flex;justify-content:center;gap:2px}.live-navigation .tab{min-height:29px;font-size:10px;padding:5px 6px;gap:3px}.live-navigation .tab .ui-icon{display:none}.live-header-actions{grid-column:3;grid-row:1;gap:5px}.live-header .theme-button,.live-header .icon-btn{min-width:29px;width:29px;min-height:29px;height:29px;padding:5px}}

@media(max-width:600px){.live-navigation .tab{position:relative}.live-navigation .tab .ui-icon{display:none}.live-navigation .tab b{position:absolute;top:-2px;right:0;min-width:12px}}

/* Decision costs and the complete daily report are always visible. */
.live-consequences{margin-top:12px;padding-top:10px;border-top:1px solid var(--line);color:var(--muted)}.live-consequences>h3{font:500 11px/1.5 var(--font);color:var(--muted);margin:0 0 8px}.live-consequences .effects{padding-left:0;margin-top:0}.live-consequences>p{font-size:12px;line-height:1.6;margin:9px 0 0}.live-full-report{padding:14px 0;margin:20px 0 18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.live-full-report>h3{font:500 13px/1.5 var(--font);margin:0 0 10px;color:var(--text)}.live-full-report>p{margin:10px 0 0}.live-full-report>ul{padding-left:20px;font-size:13px;line-height:1.75;color:var(--muted)}
@media(max-width:600px){.live-consequences>h3{font-size:10px}.live-consequences>p{font-size:11px}.live-full-report>h3{font-size:12px}.live-full-report>ul{font-size:12px}}

/* Supplies are a primary header action; extra reading stays in the overflow menu. */
.live-header .warehouse-button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 10px;min-height:36px;background:var(--panel2);border:1px solid var(--accent);border-radius:4px;color:var(--accent);font:600 12px/1.2 var(--font);white-space:nowrap;flex:none;cursor:pointer}.warehouse-button .ui-icon{flex:none}.warehouse-button>i{position:absolute;right:-4px;top:-5px;display:grid;place-items:center;width:14px;height:14px;background:var(--red);color:var(--panel);border-radius:50%;font:600 10px/1 var(--font)}.live-header .more-button{font-size:22px;line-height:1}.live-case-context{margin:0 0 18px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.live-case-context>h3{font:500 12px/1.5 var(--font);color:var(--muted);margin:0 0 8px}.live-case-context>p{margin:0;font-size:14px;line-height:1.75;color:var(--text)}.live-footer>.live-evening{text-align:left;padding:0;max-width:50%;line-height:1.5}.live-footer>.primary{margin-left:auto}
@media(max-width:1000px) and (min-width:901px){.live-header{column-gap:8px}.live-header .live-navigation{gap:3px}.live-navigation .tab{padding-left:6px;padding-right:6px}.live-header-actions{gap:6px}.live-header .warehouse-button{padding:7px 8px;font-size:11px}}
@media(max-width:760px){.live-header{column-gap:10px}.live-header-actions{gap:6px}.live-header .warehouse-button{font-size:11px;min-height:32px;padding:6px 8px;gap:5px}.warehouse-button .ui-icon{width:15px;height:15px}.live-case-context>h3{font-size:11px}.live-case-context>p{font-size:13px}}
@media(max-width:370px){.live-header .warehouse-button{font-size:10px;padding:5px 7px;gap:4px}.live-header .warehouse-button .ui-icon{width:14px;height:14px}.live-header-actions{gap:5px}}
@media(min-width:700px) and (max-height:500px){.live-header .warehouse-button{min-height:29px;height:29px;padding:5px 7px;font-size:10px;gap:4px}.warehouse-button .ui-icon{width:14px;height:14px}.live-header-actions{gap:5px}.live-footer>.live-evening{font-size:8px;max-width:48%}}

/* Give the republic's mark space without changing the shape of the flag. */
.brand{gap:16px}.brand>div{display:grid;gap:6px}.brand-name{line-height:1;margin:0}.brand-sub{line-height:1.3;margin:0}.brand .flag{width:76px;height:auto;aspect-ratio:5/3;object-fit:cover;border-radius:7px;border:1px solid color-mix(in srgb,var(--text) 12%,transparent);box-shadow:0 3px 9px #172c301c;flex:none}.shell.live-shell{--live-head-size:64px}.live-header .brand{gap:14px}.live-header .brand>div{gap:5px}.live-header .brand-name{font-size:29px;line-height:1}.live-header .brand-sub{font-size:9px;line-height:1.3}.live-header .flag{width:66px;height:auto;border-radius:6px}.sound-control[aria-pressed=true]{color:var(--gold)}
.atlas-traffic{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:1}.atlas-traffic .delivery-token.is-blocked{display:none}
@media(max-height:720px){.shell.live-shell{--live-head-size:56px}}
@media(max-width:1000px) and (min-width:901px){.live-header{column-gap:7px}.live-header .brand{gap:11px}.live-header .flag{width:60px}.live-header-actions{gap:5px}}
@media(max-width:900px){.shell.live-shell{--live-head-size:94px}.live-header .brand>div{gap:4px}.live-header .flag{width:60px}}
@media(max-width:760px){.shell.live-shell{--live-head-size:90px}.live-header .brand{gap:12px}.live-header .brand-name{font-size:24px}.live-header .brand-sub{font-size:8px}.live-header .flag{width:54px;border-radius:5px}.live-header-actions{gap:5px}}
@media(max-width:760px) and (max-height:690px){.shell.live-shell{--live-head-size:84px}.live-header .brand-name{font-size:22px}.live-header .brand-sub{font-size:7px}.live-header .flag{width:52px}.live-header .brand{gap:10px}}
@media(max-width:370px){.live-header{column-gap:6px}.live-header .brand{gap:9px}.live-header .flag{width:48px;border-radius:5px}.live-header-actions{gap:4px}.live-header .theme-button,.live-header .icon-btn{min-width:29px;width:29px;min-height:29px;height:29px;padding:5px}.live-header .warehouse-button{padding:5px 6px}.live-header .warehouse-button .ui-icon{display:none}}
@media(min-width:700px) and (max-height:500px){.shell.live-shell{--live-head-size:44px}.live-header .brand{gap:9px}.live-header .brand>div{gap:3px}.live-header .brand-name{font-size:20px}.live-header .brand-sub{font-size:6px}.live-header .flag{width:43px;border-radius:4px}.live-header-actions{gap:4px}}
@media(prefers-reduced-motion:reduce){.atlas-traffic .delivery-token{display:none}}

/* Nested dialog navigation keeps the current game behind the same modal. */
.modal-back{position:sticky;top:0;z-index:6;display:inline-flex;align-items:center;gap:6px;border:0;border-radius:3px;background:var(--panel);color:var(--accent);font:500 12px/1.4 var(--font);padding:7px 10px 7px 0;margin:0 0 14px;cursor:pointer}.city-dialog .modal-page{height:100%;min-height:0}.modal-page:has(.tutorial-top)>.modal-actions{position:sticky;bottom:0;background:var(--panel);padding:15px 0 4px;margin:0;box-shadow:0 -12px 14px var(--panel);z-index:3}.hq-terms{padding:15px;margin:18px 0;border:1px solid var(--gold);border-left-width:3px;background:var(--panel2);border-radius:4px}.hq-terms>strong{font-size:13px;font-weight:500}.hq-terms p{font-size:12px;line-height:1.6;margin:8px 0 0}.hq-card{border-left:2px solid var(--gold)}.hq-patrol .convoy-vehicle>rect:first-child{fill:#9b5f52}.hq-map-mark{pointer-events:none}
@media(max-width:600px){.modal-back{font-size:11px;margin-bottom:10px;padding-top:5px;padding-bottom:5px}.hq-terms{padding:11px}.hq-terms>strong{font-size:12px}.hq-terms p{font-size:11px}}

/* Keep the desktop dashboard on one row and reserve the extra height for the map. */
@media (min-width: 980px) and (min-height: 501px) {
  .shell.map-shell #workspace {
    grid-template-columns: max-content minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "status case"
      "alerts alerts"
      "atlas atlas"
      "controls controls";
    column-gap: 0;
  }
  .shell.map-shell #workspace:has(> .live-alerts:empty) {
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "status case"
      "atlas atlas"
      "controls controls";
  }
  .map-shell .live-status {
    grid-area: status;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 6px 0 0 6px;
    background: var(--panel);
    white-space: nowrap;
  }
  .map-shell .live-status > * + * {
    padding-left: 10px;
    border-left: 1px solid var(--line);
  }
  .map-shell .live-day.day-block,
  .map-shell .live-cash,
  .map-shell .live-votes { gap: 5px; }
  .map-shell .live-day.day-block strong { font-size: 25px; }
  .map-shell .live-cash strong { font-size: 22px; }
  .map-shell .live-votes strong { font-size: 21px; }
  .map-shell .live-crews {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .map-shell .crew-dots { gap: 3px; }
  .map-shell .crew-dots i { width: 9px; height: 5px; }
  .map-shell .live-alerts { grid-area: alerts; }
  .map-shell .live-daily {
    grid-area: case;
    min-width: 0;
    min-height: 46px;
    padding: 5px 10px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0 6px 6px 0;
  }
  .map-shell .live-daily > div { min-width: 0; }
  .map-shell .live-daily > button { flex-shrink: 0; }
  .map-shell .atlas-board { grid-area: atlas; }
  .map-shell .live-control-dock { grid-area: controls; }
}

.live-day-progress {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
}
.live-day-progress > span:first-child { white-space: nowrap; }
.campaign-progress {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  align-items: center;
  gap: 1px;
  width: clamp(70px, 8vw, 114px);
  height: 6px;
}
.campaign-progress i {
  height: 3px;
  background: var(--line);
  border-radius: 1px;
}
.campaign-progress .done { background: var(--green); }
.campaign-progress .today { height: 6px; background: var(--gold); }
.campaign-progress .decade { margin-left: 1px; }
.atlas-scene .atlas-city .atlas-city-status.preview-gain {
  color: var(--green);
  background: color-mix(in srgb, var(--panel) 91%, var(--green));
  font-weight: 700;
}
.atlas-scene .atlas-city .atlas-city-status.preview-risk {
  color: var(--red);
  background: color-mix(in srgb, var(--panel) 91%, var(--red));
  font-weight: 700;
}
.fuel-convoy-layer {
  position: absolute;
  z-index: 6;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.fuel-convoy {
  filter: drop-shadow(0 1px 2px #172c3070);
  animation: fuel-convoy-fade 3.9s linear forwards;
}
@keyframes fuel-convoy-fade {
  0%, 90% { opacity: 1; }
  100% { opacity: 0; }
}
@media (max-width: 760px) {
  .campaign-progress { width: clamp(58px, 18vw, 76px); }
  .live-day-progress { gap: 1px; }
}

/* City signals keep their place on the map throughout an order. */
.atlas-city.needs:not(.target-mode) .atlas-city-status {
  color: var(--red);
  font-weight: 650;
  background: color-mix(in srgb, var(--panel) 94%, var(--red));
}
.atlas-city .pump-indicator { fill: #da846b; }
.atlas-city .pump-flow { opacity: 0; }
.atlas-city [data-pumps="running"] .pump-indicator { fill: #b0d999; }
.atlas-city [data-pumps="running"] .pump-flow { opacity: .88; }
.atlas-city.city-received .pump-flow { animation: pump-start .85s ease-out; }
@keyframes pump-start {
  from { opacity: .08; stroke-dasharray: 1 4; }
  to { opacity: .88; stroke-dasharray: 12 0; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-city.city-received .pump-flow { animation: none; }
}

/* Keep route controls easy to tap while leaving the map artwork compact. */
.atlas-map-tools {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 14px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.atlas-map .atlas-map-tools .weather-pill { position: static; }
.atlas-route-guide {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--green);
  font: 700 10px/1.3 var(--font);
  cursor: pointer;
}
.atlas-moods .atlas-mood-hit { fill: transparent; pointer-events: visibleFill; cursor: pointer; }
.atlas-moods .atlas-mood-icon circle { fill: var(--rel-paper); stroke: var(--rel-ink); stroke-width: 1.4; }
.atlas-moods .atlas-route-mood:hover .atlas-mood-icon circle { stroke-width: 2.4; }
.atlas-guarantee .atlas-guarantee-preview {
  padding-top: 2px;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-weight: 700;
  font-size: 9px;
  line-height: 1.2;
}
.atlas-guarantee .atlas-guarantee-preview.preview-risk { color: var(--red); }
.live-ratification {
  display: grid;
  min-width: 0;
  gap: 1px;
  color: var(--green);
  font-size: 10px;
  line-height: 1.3;
}
.live-ratification.at-risk { color: var(--red); }
.live-ratification > strong { font-size: 11px; }
@media (max-width: 760px) {
  .atlas-map-tools { top: 7px; right: 8px; }
  .atlas-map .atlas-map-tools .weather-pill { display: none; }
  .atlas-route-guide { padding: 4px 6px; font-size: 9px; }
  .live-ratification > strong { font-size: 10px; }
}

.atlas-background .route-group.relation-tone > .route-hit { stroke-width: 28; }
.atlas-scene[data-small=yes] .atlas-map-tools {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  white-space: nowrap;
}

.live-alerts .vote-reserve-chip {
  color: var(--green);
  background: color-mix(in srgb, var(--panel) 93%, var(--green));
}
.live-alerts .vote-reserve-chip.at-risk {
  color: var(--red);
  background: color-mix(in srgb, var(--panel) 91%, var(--red));
}
