@import url('./rondel-refined.css');
/* Collapsible overlays share measured bounds, leaving the atlas between them. */
.hud-disclosure{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;padding:0;border:1px solid #bcaa7a80;border-radius:5px;background:#243f48df;color:#f5ecd4;cursor:pointer;transition:background-color .16s,border-color .16s,box-shadow .16s}
.hud-disclosure:hover{background:#3a5961;border-color:#d5bd7e;color:white;box-shadow:0 0 0 2px #d5bd7e22}.hud-disclosure:focus-visible,#table-feed :focus-visible,#legend-disclosure summary:focus-visible{outline:2px solid #e3c578;outline-offset:2px}
.disclosure-icon{display:block;flex:none;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
#nations-toggle[aria-expanded=true] .disclosure-icon,#feed-toggle[aria-expanded=false] .disclosure-icon,#ribbon-toggle[aria-expanded=false] .disclosure-icon,#legend-disclosure:not([open]) .disclosure-icon{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){.hud-disclosure,.disclosure-icon{transition:none}}
#nations-toggle{position:fixed;right:18px;z-index:31}
.command-view:not(.board-lab) #nations{right:60px}
.command-view.nations-mini:not(.board-lab) #nations .nation{min-height:64px;padding:6px 9px;flex:1 0 130px}
.nations-mini .nation-governor,.nations-mini .nation-power-track,.nations-mini .bond-factor,.nations-mini .nation-assets{display:none}
.nation-assets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-top:8px;padding-top:7px;border-top:1px solid #29464a26;color:#29464a}
.nation-asset{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;cursor:help}
.nation-asset svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.nation-asset-count{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1}
.nations-mini .nation-card-title{gap:6px;margin-bottom:4px}.nations-mini .nation-card-title strong{font-size:17px}.nations-mini .nation-card-title img{width:22px;height:15px}
.nations-mini .money-badge{padding:2px 5px;gap:4px}.nations-mini .money-badge svg{width:17px;height:17px}.nations-mini .money-badge b{font-size:14px!important}
.nations-mini .nation-finance-row{gap:4px}.nations-mini .power-badge{flex-direction:row;align-items:baseline;gap:3px;white-space:nowrap}.nations-mini .power-badge>b{font-size:13px}.nations-mini .power-badge small{font-size:10px}
.command-view .ribbon-heading{align-items:center;min-height:40px;padding:4px 8px 4px 12px}.command-view .ribbon-heading>div{flex:1;min-width:0}.command-view .ribbon-heading p{margin:0}.command-view .ribbon-heading .hud-disclosure{border-color:#c4b58d55;background:#ffffff08}
.command-view .ribbon-mini .ribbon-heading p{display:none}.command-view .ribbon-mini .ribbon-status{display:inline;margin-left:10px;font-size:12px;color:#d4dfd5;letter-spacing:0}
.command-view .ribbon-track[hidden]{display:none}
#table-feed{position:fixed;left:18px;bottom:var(--ribbon-space,160px);width:min(440px,calc(100vw - 100px));max-height:min(54dvh,calc(100dvh - var(--nation-bottom,210px) - var(--ribbon-space,160px) - 8px));z-index:36;display:flex;flex-direction:column;overflow:hidden;background:#172f3bc4;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);color:#f4efde;border:1px solid #c9b78266;border-radius:6px;box-shadow:0 5px 20px #142a3433}
#table-feed.is-open{z-index:46;max-height:min(64dvh,calc(100dvh - var(--nation-bottom,210px) - var(--ribbon-space,160px) - 8px))}
#table-feed>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 10px 5px 13px;flex-shrink:0;border-bottom:1px solid #c9b78228}
#table-feed>header>span{display:flex;align-items:baseline;gap:10px}#table-feed header strong{font-size:12px;letter-spacing:.3px}#feed-count{font-size:10px;color:#c4d0cd}
#table-feed .hud-disclosure{height:28px;border:0;background:#ffffff0b}#feed-expanded{min-height:0;display:flex;flex-direction:column}#feed-expanded[hidden],#feed-latest[hidden],#feed-form[hidden],#feed-new[hidden]{display:none}
#feed-latest{overflow:hidden;padding:0 13px}.feed-entry{padding:10px 0;border-bottom:1px solid #bfccb431;overflow-wrap:anywhere}.feed-entry:last-child{border:0}.feed-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px}.feed-kind{font-size:9px;letter-spacing:.5px;text-transform:uppercase;color:#c6d2cf}.feed-meta>small{margin-left:auto;color:#b8c9c7;font-size:10px}
.feed-player{color:var(--identity);font-weight:700}.feed-player:before{content:'';display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:var(--identity)}
.feed-nation{display:inline-block;background:color-mix(in srgb,var(--identity) 38%,#edf1db);border-left:3px solid var(--identity);border-radius:3px;padding:2px 6px;color:#172f36;font-weight:700;font-size:10px}
.feed-text{font-size:12px;line-height:1.5;margin:5px 0 0;white-space:pre-wrap}.feed-message .feed-text{font-style:italic}.feed-delta{color:#e1cc8c;font-size:11px}
#feed-latest .feed-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}#feed-latest .feed-entry{padding:7px 0 10px}.feed-empty{margin:10px 0;font-size:12px;line-height:1.5;color:#d4ddce}
.feed-items{padding:0 13px;overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a2b4a4 transparent}.feed-history-note{font-size:10px;color:#c0cfca;margin:8px 13px;flex-shrink:0}
.feed-filters{display:flex;gap:5px;padding:9px 13px 2px;flex-shrink:0}.feed-filters button{border:1px solid #c3b48266;border-radius:4px;background:#102a3780;color:#dce3d5;font:inherit;font-size:11px;padding:6px 9px}.feed-filters button[aria-pressed=true]{background:#d9c695;color:#243e45;border-color:#e2d3a8}.feed-filters button:focus-visible,#feed-cast summary:focus-visible{outline:2px solid #f3d694;outline-offset:2px}
.feed-personality{font-size:10px;color:#e0cc98}#feed-cast{margin:7px 13px 0;font-size:11px;flex-shrink:0}#feed-cast[hidden]{display:none}#feed-cast summary{cursor:pointer;color:#e0cc98;padding:4px 0}#feed-cast>div{max-height:76px;overflow:auto}#feed-cast p{margin:7px 0}#feed-cast b{font-weight:400;margin-left:5px;color:#ece3cc}#feed-cast small{display:block;margin:3px 0 0 11px;color:#c0cfca}.feed-action .feed-kind{color:#b5d8ca}.feed-message .feed-kind{color:#e0cc98}
#feed-form{padding:8px 13px 10px;border-top:1px solid #b9c5ac40;flex-shrink:0}#feed-form label{display:block;font-size:11px;margin-bottom:5px;color:#dce3d5}#feed-form>div{display:flex;align-items:stretch;gap:7px}
#feed-text{flex:1;min-width:0;resize:none;background:#102a37a6;border:1px solid #c3b48266;border-radius:4px;padding:7px 9px;color:#fff4dd;font:inherit;font-size:12px;line-height:1.4}#feed-text::placeholder{color:#becbc7}#feed-send,#feed-new{background:#d9c695;color:#243e45;border:1px solid #e2d3a8;border-radius:4px;padding:7px 10px;font-size:12px}#feed-send:disabled{opacity:.6}#feed-new{margin:5px 13px;flex-shrink:0}#feed-error{font-size:12px;color:#ffbdae;margin:5px 0 0}#feed-error:empty{display:none}#feed-turn-hint{font-size:11px;line-height:1.4;color:#c0cfca;margin:6px 0 0}#feed-text:disabled{opacity:.65}
#table-feed .effect-owner,#table-feed .effect-note{color:#d6dfd6;font-size:11px}#table-feed .money-change{padding:7px 0;border-color:#c4c9a930}#table-feed .money-badge{background:#ddcd9670;color:#fff0bc;border-color:#d4bc7166;padding:3px 6px}#table-feed .money-badge b{font-size:14px!important}#table-feed .money-badge svg{width:18px;height:18px}#table-feed .money-direction{font-size:18px;color:#d6c389}#table-feed .money-delta{font-size:17px;color:#ffba92}#table-feed .earning .money-delta{color:#addbb0}#table-feed .money-delta small{font-size:9px}
.command-view:not(.board-lab) .map-bottom{bottom:calc(var(--ribbon-space,150px) + 115px)}
.command-view:not(.board-lab) .map-legend{left:475px;bottom:var(--ribbon-space,150px)}
.command-view:not(.board-lab) .map-heading{bottom:var(--ribbon-space,150px)}
.command-view.map-expanded #table-feed{display:flex}.command-view.map-expanded #nations-toggle{display:none}
@media(max-width:900px){.command-view.nations-mini:not(.board-lab) #nations .nation{flex:0 0 138px}}
@media(max-width:760px){
 #nations-toggle{right:10px}.command-view:not(.board-lab) #nations{right:51px}
 #table-feed{left:10px;width:calc(100vw - 65px);max-height:min(52dvh,calc(100dvh - var(--nation-bottom,215px) - var(--ribbon-space,160px) - 4px))}
 #table-feed.is-open{width:calc(100vw - 20px)}
 .command-view .ribbon-heading{padding-left:9px}.command-view .ribbon-heading strong{font-size:11px}.command-view .ribbon-heading p{font-size:10px}.command-view .ribbon-mini .ribbon-status{display:block;margin:3px 0 0 15px;font-size:10px}
 .command-view:not(.board-lab) #sidebar{bottom:calc(var(--ribbon-space,150px) + 115px);max-height:calc(100dvh - var(--nation-bottom,210px) - var(--ribbon-space,150px) - 125px)}
 .command-view:not(.board-lab) .map-bottom{display:none}.feed-history-note{font-size:9px}.feed-meta{gap:5px}
}
/* The next maneuver step stays on the map, including when the ribbon is folded. */
.command-view .maneuver-ribbon .ribbon-heading p{display:block;flex-shrink:0}
#maneuver-advance{padding:7px 12px;border:1px solid #d4c18a;border-radius:4px;background:#e6d39c;color:#233e43;font-size:13px;font-weight:700;white-space:nowrap}
#maneuver-advance:hover{background:#f7e5b1}#maneuver-advance:disabled{opacity:.5}
.maneuver-guide{padding:10px 14px;color:#29464a;flex:1}.maneuver-progress{display:flex;align-items:center;gap:12px;font-size:13px}.maneuver-progress span{opacity:.55}.maneuver-progress [aria-current]{font-weight:700;opacity:1;border-bottom:2px solid #496c59;padding-bottom:3px}.maneuver-progress b{font-weight:400;color:#7f896c}.maneuver-guide p{font-size:12px;margin:7px 0}.maneuver-units{display:flex;gap:6px;flex-wrap:wrap}.maneuver-units button{font-size:12px;padding:5px 9px;background:#f5ecd7;border-color:#baa77c}
/* Collapsed chat keeps a readable preview; the full journal has its own reading area. */
#table-feed:not(.is-open){width:min(360px,calc(100vw - 80px));height:30px;min-height:30px;display:block;border-radius:4px}
#table-feed:not(.is-open)>header{position:absolute;right:2px;top:2px;padding:0;border:0;z-index:1}
#table-feed:not(.is-open)>header>span{display:none}
#table-feed:not(.is-open) .hud-disclosure{width:25px;height:24px;flex-basis:25px;background:transparent}
#table-feed:not(.is-open) #feed-latest{padding:0 30px 0 8px;height:100%}
#table-feed:not(.is-open) .feed-entry{display:flex;align-items:center;gap:6px;height:100%;padding:0;white-space:nowrap}
#table-feed:not(.is-open) .feed-meta{display:contents}#table-feed:not(.is-open) .feed-kind{display:none}
#table-feed:not(.is-open) .feed-player{font-size:10px;max-width:85px;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}
#table-feed:not(.is-open) .feed-nation{font-size:9px;padding:1px 4px;flex-shrink:0}
#table-feed:not(.is-open) .feed-text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:28px;margin:0}
#table-feed:not(.is-open) .feed-delta{font-size:10px}
#table-feed:not(.is-open) .feed-empty{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:28px;margin:0;font-size:11px}
#table-feed{--feed-font-size:14px}
#table-feed.is-open{width:min(620px,calc(100vw - 36px));height:min(680px,calc(100dvh - var(--header-bottom,58px) - var(--ribbon-space,160px) - 24px));max-height:calc(100dvh - var(--header-bottom,58px) - var(--ribbon-space,160px) - 24px);background:#172f3bf0}
#table-feed>header>span{min-width:0;flex-wrap:wrap;gap:3px 10px}
#table-feed header strong{font-size:14px}
.feed-tools,.feed-font-controls{display:flex;align-items:center;gap:5px;flex-shrink:0}
.feed-font-controls button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid #c3b48266;border-radius:4px;background:#ffffff0b;color:#f4efde;font:600 14px 'DM Sans',sans-serif;cursor:pointer}
.feed-font-controls button:hover:not(:disabled){background:#ffffff20}
.feed-font-controls button:disabled{opacity:.35;cursor:default}
#feed-font-size{min-width:35px;text-align:center;color:#d5ded5;font-size:11px;font-variant-numeric:tabular-nums}
#feed-expanded{flex:1;overflow:auto;overscroll-behavior:contain}
.feed-items{flex:1 0 110px}
#table-feed .feed-text,#table-feed .feed-empty,#feed-text{font-size:var(--feed-font-size);line-height:1.55}
#table-feed .feed-meta,#table-feed .effect-owner,#table-feed .effect-note{font-size:calc(var(--feed-font-size) - 2px)}
#table-feed .feed-kind,#table-feed .feed-nation,#table-feed .feed-delta{font-size:calc(var(--feed-font-size) - 3px)}
#table-feed .feed-purchase{padding:12px;margin:6px 0;border:1px solid #d3bc7766;border-radius:5px;background:#c7ac5914}
#table-feed .feed-purchase .feed-kind{color:#efce80;font-weight:700}
.feed-filters{flex-wrap:wrap}
#table-feed:not(.is-open){width:min(520px,calc(100vw - 130px));height:42px;min-height:42px}
#table-feed:not(.is-open)>header{top:7px}
#table-feed:not(.is-open) .feed-font-controls{display:none}
#table-feed:not(.is-open) .feed-text,#table-feed:not(.is-open) .feed-empty{line-height:40px}
#table-feed:not(.is-open) .feed-player{font-size:calc(var(--feed-font-size) - 2px)}
#table-feed:not(.is-open) .feed-purchase{padding:0;margin:0;border:0;background:none}
@media(max-width:760px){#table-feed.is-open{width:calc(100vw - 20px)}#table-feed>header{gap:6px;padding:5px 8px}#table-feed .feed-meta{gap:5px}#table-feed .feed-purchase{padding:9px}.feed-filters{gap:4px}.feed-filters button{padding:6px 8px}}
/* National color identifies the context; labels and icons keep it readable without color. */
#table-feed .feed-entry{--feed-country:#77868b;margin:10px 0;padding:13px 15px;background:color-mix(in srgb,var(--feed-country) 24%,#fffdf5);color:#162b35;border:1px solid color-mix(in srgb,var(--feed-country) 60%,#fffdf5);border-left:5px solid var(--feed-country);border-radius:7px;box-shadow:0 2px 5px #071a2420}
#table-feed .feed-entry:last-child{border:1px solid color-mix(in srgb,var(--feed-country) 60%,#fffdf5);border-left:5px solid var(--feed-country)}
#table-feed .feed-text{font-style:normal;font-weight:500;line-height:1.65;margin-top:9px;letter-spacing:.05px}
#table-feed .feed-meta{gap:7px 10px;line-height:1.4}
#table-feed .feed-entry .feed-kind{display:inline-flex;align-items:center;gap:6px;font-size:calc(var(--feed-font-size) - 1px);font-weight:750;letter-spacing:0;text-transform:none;color:#162b35}
.feed-symbol{display:block;width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.feed-symbol.filled{fill:currentColor;stroke:none}
#table-feed .feed-entry .feed-player{color:#203643;font-size:calc(var(--feed-font-size) - 1px)}
#table-feed .feed-entry .feed-player:before{box-shadow:0 0 0 1px #1d344760}
#table-feed .feed-entry .feed-nation{background:#fffaf2b3;color:#162b35;font-size:calc(var(--feed-font-size) - 2px);padding:2px 7px}
#table-feed .feed-entry .feed-personality,#table-feed .feed-meta>small{color:#344956;font-size:calc(var(--feed-font-size) - 2px)}
.feed-consequences{display:grid;gap:7px;list-style:none;margin:11px 0 0;padding:10px 0 0;border-top:1px solid #16344530;font-size:calc(var(--feed-font-size) - 1px);line-height:1.5}
.feed-consequences li{display:flex;align-items:flex-start;gap:8px;min-width:0}
.feed-consequences .feed-symbol{width:17px;height:17px;flex-basis:17px;margin-top:2px}
.feed-consequences span{min-width:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#table-feed .feed-history-note{font-size:12px;line-height:1.5;color:#d4dfdc}
#table-feed .feed-filters button{font-size:12px;min-height:34px}
#table-feed:not(.is-open) #feed-latest{padding:0 38px 0 14px}
#table-feed:not(.is-open) .feed-entry,#table-feed:not(.is-open) .feed-entry:last-child{margin:0;padding:0 8px;border-width:0 0 0 4px;border-radius:0;box-shadow:none}
#table-feed:not(.is-open) .feed-entry .feed-kind{display:none}
#table-feed:not(.is-open) .feed-text{margin:0;line-height:40px}
#table-feed:not(.is-open) .feed-entry .feed-nation{font-size:calc(var(--feed-font-size) - 3px)}
@media(max-width:760px){#table-feed .feed-entry{padding:11px 12px}.feed-items{padding:0 10px}}
@media(max-width:760px){#maneuver-advance{font-size:11px;padding:7px 8px}.command-view .maneuver-ribbon .ribbon-heading{gap:5px}.command-view .maneuver-ribbon .ribbon-status{display:none}.maneuver-guide{padding:8px 10px}.maneuver-guide p{font-size:11px}.maneuver-units button{font-size:11px}}
/* Stable turn ownership; the notice runs once when control reaches the human. */
#turn-panel .turn-cue{font-family:'Barlow Condensed',Arial,sans-serif;font-size:20px;line-height:1.1;font-weight:700;color:#d8dfd4;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#turn-panel .turn-cue.is-yours{font-size:24px;padding:6px 13px;border-radius:5px;background:#ccf1d7;color:#173f34;box-shadow:0 0 16px #96ecc44a;text-transform:uppercase;letter-spacing:.5px;flex-shrink:0}
.command-view:not(.board-lab) #nations .nation.has-turn{background:linear-gradient(135deg,#b9e2d3,#8fc4b4);outline:2px solid #2b7868;outline-offset:-2px;animation:active-nation-glow 1.8s ease-in-out infinite}
.nation.has-turn .nation-active-dot{width:8px;height:8px;background:#17634f;box-shadow:0 0 6px #2f9975}
@keyframes active-nation-glow{0%,100%{box-shadow:inset 0 0 0 1px #3a8f7566,inset 0 0 9px #d7ffe640}50%{box-shadow:inset 0 0 0 2px #328c70,inset 0 0 16px #d7ffe680}}
@media(max-width:1100px){.command-view:not(.board-lab) #turn-panel{gap:10px}.command-view:not(.board-lab) #turn-panel .turn-round,.command-view:not(.board-lab) #turn-panel .turn-resource{display:none}}
@media(max-width:760px){.command-view:not(.board-lab) #turn-panel .turn-country{display:none}#turn-panel .turn-cue{font-size:16px;max-width:110px}#turn-panel .turn-cue.is-yours{font-size:18px;padding:6px 8px}#turn-arrival{gap:10px;padding:9px 18px}#turn-arrival strong{font-size:27px}#turn-arrival span{font-size:12px}}
@media(prefers-reduced-motion:reduce){.command-view:not(.board-lab) #nations .nation.has-turn{animation:none;box-shadow:inset 0 0 0 2px #ffeaa9}#turn-arrival.arriving{animation:none}}

.ribbon-undo{display:flex;align-items:center;gap:8px;padding:5px 12px;border-top:1px solid #dfc78c35;background:#21393de6}.ribbon-undo button{padding:4px 9px;border:1px solid #d9c59070;border-radius:3px;background:transparent;color:#f2e6c3;font:500 12px 'DM Sans',sans-serif}.ribbon-undo button:hover:not(:disabled){background:#e2d3a627}.ribbon-undo button:disabled{opacity:.4;cursor:default}.ribbon-undo small{margin-left:auto;color:#c2c9bd;font-size:10px}#ribbon-finish{border:1px solid #ebda9b;background:#e6d79d;color:#263e3e;border-radius:4px;padding:8px 12px;font:700 12px 'DM Sans',sans-serif}@media(max-width:760px){.ribbon-undo{padding:5px 8px;gap:6px}.ribbon-undo small{display:none}.ribbon-undo button{font-size:11px}}
/* The board uses direct pan/zoom gestures; the former right-side toolbar is removed from the interface. */
.command-view:not(.board-lab) .map-heading{display:none}
.map-reset{position:fixed;right:18px;bottom:calc(var(--ribbon-space,150px) + 56px);z-index:30;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;border:1px solid #c9bb96;border-radius:5px;background:#f6efdf;color:#253e43;box-shadow:0 3px 10px #102b3430}
.map-reset svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.map-reset:hover{background:#fff8e8}.map-reset:focus-visible{outline:3px solid #9c782c;outline-offset:3px}
@media(max-width:760px){.map-reset{right:10px}}
.command-view:not(.board-lab) #turn-panel .personal-resource{display:none}
.nation.is-deciding .nation-active-dot{display:none}.nation-thinking{display:inline-block;flex:0 0 15px;width:15px;height:15px;margin-left:auto;border:2px solid #38565e35;border-top-color:#294e59;border-right-color:#294e59;border-radius:50%;animation:nation-thinking 1s linear infinite}
@keyframes nation-thinking{to{transform:rotate(360deg)}}
.money-badge.personal-money,#table-feed .money-badge.personal-money{background:#235b43;color:#effff4;border-color:#82bd98;box-shadow:0 2px 8px #15392424}.money-badge.personal-money svg,#table-feed .money-badge.personal-money svg{fill:none;stroke:#b8f0cd;stroke-width:1.6}.money-badge.personal-money small{color:#c7efd6}
.remote-view #remote-bar{min-height:62px;padding:6px 18px;gap:18px}.remote-view #remote-bar>div{flex-direction:row;align-items:center;gap:20px}.remote-view #remote-identity{display:flex;align-items:center;gap:12px}.remote-view #remote-identity .personal-money{display:inline-flex;padding:5px 12px;gap:10px;min-width:122px}.remote-view #remote-identity .personal-money svg{width:28px;height:28px}.remote-view #remote-identity .personal-money b{font-size:24px!important;line-height:1.05}.remote-view #remote-identity .personal-money>span{display:flex;flex-direction:column}.remote-view #remote-identity .personal-money b>small{display:inline;font-size:13px}.remote-view .personal-owner{font-size:12px;color:#36545f}.remote-view #remote-turn{font-size:12px}.remote-view #remote-diplomacy.needs-attention{background:#ffe3b5;color:#764312;border-color:#b88741}.command-view.remote-view:not(.board-lab) #nations{top:130px}
@media(max-width:900px){.remote-view #remote-identity .personal-owner{display:none}.remote-view #remote-bar>div{gap:12px}}
@media(max-width:760px){.remote-view #remote-bar{min-height:82px;padding:6px 10px;gap:10px}.remote-view #remote-bar>div{display:flex;flex-direction:row;align-items:center;gap:10px}.remote-view #remote-identity .personal-money{min-width:102px;padding:5px 8px;gap:7px}.remote-view #remote-identity .personal-money b{font-size:22px!important}.remote-view #remote-identity .personal-money svg{width:23px;height:23px}.remote-view #remote-turn{font-size:10px;line-height:1.3;max-width:150px}.command-view.remote-view:not(.board-lab) #nations{top:144px}.remote-view #remote-diplomacy{max-width:65px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.nation-thinking{animation:none;border-style:dotted}}
.command-view:not(.board-lab) .map-live,.command-view:not(.board-lab) footer{display:none}
.command-view:not(.board-lab) #action-ribbon{bottom:12px}
.ribbon-controls{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:4px 6px;background:#21393de6}.ribbon-controls p{margin:0}.ribbon-controls .ribbon-undo{margin-right:auto;border:0;padding:0;background:none}.ribbon-controls #ribbon-toggle{height:28px;width:28px;flex-basis:28px}.ribbon-controls:has(> :only-child){background:transparent;padding:0 0 4px}
.command-view .order-slot{position:relative;flex:1 0 128px;min-width:128px}.command-view .order-slot .order-card{width:100%;min-width:0}.order-card .order-action-icon{fill:currentColor;stroke:none}
/* Quiet annotation; the transparent hit area stays comfortable to use. */
.order-info,.order-info:hover,.order-info:active{position:absolute;right:1px;top:0;display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:2px;background:transparent;box-shadow:none;color:#7e826e;transform:none;z-index:2;cursor:help;transition:none}
.order-info svg{display:block;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.order-card.is-free+.order-info{color:#6d8063}.order-card.is-current+.order-info{color:#b5c2b6}
.order-info:focus-visible{outline:1px solid currentColor;outline-offset:-3px}
.command-view .order-steps{right:28px}
#rondel-help{position:fixed;z-index:90;width:min(300px,calc(100vw - 16px));padding:12px 14px;background:#f6eed8;color:#243f46;border:1px solid #b9a36b;border-radius:6px;box-shadow:0 5px 22px #142f3b55;font:13px/1.5 'DM Sans',sans-serif;pointer-events:none}#rondel-help[hidden]{display:none}
#legend-disclosure{position:fixed;right:18px;bottom:var(--ribbon-space,150px);z-index:37;color:#f5ecd6;max-width:calc(100vw - 36px)}#legend-disclosure summary{display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;list-style:none;width:max-content;min-height:31px;margin-left:auto;padding:6px 10px 6px 12px;background:#213d46db;border:1px solid #d1bc8166;border-radius:5px;font-size:12px;line-height:1;transition:background-color .16s,border-color .16s}#legend-disclosure summary:hover{background:#3a5961;border-color:#d5bd7e}#legend-disclosure summary::-webkit-details-marker{display:none}#legend-disclosure .disclosure-icon{width:15px;height:15px}
.command-view:not(.board-lab) #legend-disclosure .map-legend{position:static;display:flex;flex-wrap:wrap;transform:none;gap:12px;margin-top:5px;padding:10px 14px;max-width:440px;background:#eee5cd;color:#29444b;border:1px solid #b7a477;border-radius:4px;pointer-events:auto}
@media(max-width:760px){.command-view .order-slot{flex:0 0 139px}.ribbon-controls{gap:7px}.ribbon-controls .ribbon-undo{gap:5px}.ribbon-controls .ribbon-undo button{padding:4px 6px;font-size:10px}#legend-disclosure{right:10px}.command-view:not(.board-lab) #legend-disclosure .map-legend{max-width:280px;font-size:12px}}

@media(max-width:760px){#table-feed:not(.is-open){width:calc(100vw - 112px)}#legend-disclosure[open]{bottom:calc(var(--ribbon-space,150px) + 38px)}}

/* A single compact header, using the original toolbar height. */
.command-view.remote-view:not(.board-lab) .topbar{height:58px;min-height:0;display:flex;gap:22px;padding:0 22px;align-items:center}
.command-view.remote-view:not(.board-lab) .brand{flex:0 0 auto}
.command-view.remote-view:not(.board-lab) .brand h1{font-size:25px}
.command-view.remote-view:not(.board-lab) #turn-panel{flex:1;gap:12px;justify-content:center}
.command-view.remote-view:not(.board-lab) #turn-panel .turn-resource{display:none}
.command-view.remote-view:not(.board-lab) #turn-panel .turn-cue.is-yours{font-size:20px;padding:5px 10px;box-shadow:0 0 10px #96ecc42a}
.command-view.remote-view:not(.board-lab) #remote-bar{position:static;flex:0 1 auto;min-width:0;min-height:0;padding:0;gap:16px;background:none;border:0;box-shadow:none;color:#f5ecd5}
.command-view.remote-view:not(.board-lab) #remote-bar>div{flex-direction:row;align-items:center;gap:12px;min-width:0}
.command-view.remote-view:not(.board-lab) #remote-identity{gap:0;flex-shrink:0}
.command-view.remote-view:not(.board-lab) #remote-identity .personal-money{min-width:0;height:32px;padding:4px 9px;gap:7px;box-shadow:none;background:#285c43;border-color:#88c6a066}
.command-view.remote-view:not(.board-lab) #remote-identity .personal-money svg{width:18px;height:18px}
.command-view.remote-view:not(.board-lab) #remote-identity .personal-money>span{flex-direction:row;align-items:baseline;gap:7px}
.command-view.remote-view:not(.board-lab) #remote-identity .personal-money b{font-size:18px!important;line-height:1}
.command-view.remote-view:not(.board-lab) #remote-identity .personal-money b>small{font-size:11px}
.command-view.remote-view:not(.board-lab) .personal-owner{display:none}
.command-view.remote-view:not(.board-lab) #remote-turn{font-size:10px;max-width:150px;line-height:1.25;color:#c8d5d3}
.command-view.remote-view:not(.board-lab) #remote-bar button{height:32px;color:#f5ecd5;border-color:#b4b88e66;background:#ffffff08;white-space:nowrap}
.command-view.remote-view:not(.board-lab) #remote-bar button.needs-attention{background:#ffe3b5;color:#764312}
.command-view.remote-view:not(.board-lab) .top-actions{flex:0 0 auto;margin:0;gap:6px}
.command-view.remote-view:not(.board-lab) #nations{top:calc(var(--header-bottom,58px) + 10px)}
@media(max-width:1100px){.command-view.remote-view:not(.board-lab) .topbar{gap:12px;padding:0 14px}.command-view.remote-view:not(.board-lab) #turn-panel .turn-round{display:none}.command-view.remote-view:not(.board-lab) #remote-turn{max-width:110px}}
@media(max-width:900px){.command-view.remote-view:not(.board-lab) #remote-turn{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.command-view.remote-view:not(.board-lab) .brand h1{font-size:21px}}
@media(max-width:760px){
 .command-view.remote-view:not(.board-lab) .topbar{height:54px;gap:8px;padding:0 10px;overflow-x:auto}
 .command-view.remote-view:not(.board-lab) .brand h1{font-size:18px;white-space:nowrap}
 .command-view.remote-view:not(.board-lab) #turn-panel{flex:1 0 auto;gap:0}
 .command-view.remote-view:not(.board-lab) #turn-panel .turn-cue.is-yours{font-size:16px;padding:5px 7px}
 .command-view.remote-view:not(.board-lab) #remote-bar{flex:0 0 auto;gap:8px}
 .command-view.remote-view:not(.board-lab) #remote-identity .personal-money>span>small{display:none}
 .command-view.remote-view:not(.board-lab) #remote-identity .personal-money{padding:4px 6px;gap:5px}
}

#ai-debug{border-top:1px solid #baa87a;padding-top:16px;margin-top:20px}#ai-debug label{display:flex;align-items:center;gap:8px}#ai-debug-toggle{width:auto}#ai-debug-summary{font-size:12px}#ai-debug-output{max-height:300px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.5 monospace;padding:12px;background:#203941;color:#edf1df;border-radius:5px}#turn-panel .turn-phase{font-size:13px;color:#dce5d6;white-space:nowrap}#turn-panel .nation-thinking{border-color:#ffffff35;border-top-color:#e5f8ed;border-right-color:#e5f8ed;margin:0}

/* The current decision has one persistent identity, even on a narrow board. */
.command-view:not(.board-lab) #turn-panel{gap:14px}
.turn-beacon{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%;padding:5px 14px 5px 7px;border:1px solid #d4c39365;border-radius:7px;background:#0f2636a6;box-shadow:inset 3px 0 #c8ae70;color:#fff3d5}
.turn-beacon.is-yours{background:linear-gradient(110deg,#d8f4db,#bde5d1);border-color:#dafbe2;box-shadow:inset 3px 0 #72b992,0 0 18px #9fe5bd28;color:#163d35}
.turn-emblem{display:flex;align-items:center;justify-content:center;flex-shrink:0;gap:3px;width:38px;height:34px;border:1px solid #a2baa43d;border-radius:5px;background:#ffffff14}
.turn-emblem img{width:30px;height:20px;object-fit:cover;border-radius:2px;box-shadow:0 1px 3px #0003}.turn-emblem img+img{width:18px;margin-left:-15px;transform:translateY(5px)}
.turn-emblem svg,.arrival-emblem svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.turn-owner{display:flex;flex-direction:column;gap:2px;min-width:0}.turn-owner>strong{font:700 20px/1 'Barlow Condensed',Arial,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.turn-state{display:flex;align-items:center;gap:5px;font:700 9px/1.2 'DM Sans',sans-serif;text-transform:uppercase;letter-spacing:1px;white-space:nowrap}
.turn-state i{width:6px;height:6px;border-radius:50%;background:#e3c17e;flex-shrink:0}.is-yours .turn-state i{background:#267155}.is-thinking .turn-state i{animation:turn-thinking 1.6s ease-in-out infinite}
.turn-context{min-width:0;display:flex;flex-direction:column;gap:3px;border-left:1px solid #b0bdaa55;padding-left:12px;margin-left:4px}.turn-context strong{font-size:12px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.turn-context small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.85}.turn-beacon.is-ended{opacity:.8}
#turn-arrival[popover]{position:fixed;inset:auto;top:calc(var(--header-bottom,58px) + 22px);left:50%;transform:translateX(-50%);margin:0;z-index:110;pointer-events:none;display:flex;align-items:center;gap:18px;width:max-content;max-width:calc(100vw - 32px);box-sizing:border-box;padding:22px 28px 25px 22px;overflow:hidden;border:1px solid #dfcd8b;border-radius:12px;background:linear-gradient(120deg,#193f39f5,#102c32f7);box-shadow:0 14px 50px #0b252b66,inset 0 1px #fff2;color:#f9f2d9;backdrop-filter:blur(12px)}
#turn-arrival[popover][hidden]{display:none}#turn-arrival[popover]::backdrop{background:transparent;pointer-events:none}
.arrival-emblem{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:62px;height:62px;border:1px solid #d3c17b66;border-radius:50%;background:#e9d89d0f;box-shadow:0 0 0 6px #e9d89d06;gap:4px}.arrival-emblem img{width:40px;height:27px;border-radius:3px;box-shadow:0 2px 8px #0003}.arrival-emblem img+img{width:24px;margin-left:-22px;transform:translateY(8px)}
.arrival-copy{display:flex;flex-direction:column;gap:6px;min-width:0}#turn-arrival[popover] .arrival-kicker{font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#dfcd8b;overflow-wrap:anywhere}#turn-arrival[popover] strong{font:700 38px/1.05 'Barlow Condensed',Arial,sans-serif;overflow-wrap:anywhere}#turn-arrival[popover] .arrival-hint{font-size:13px;color:#c2d9cf;line-height:1.4}
.arrival-timer{position:absolute;left:0;bottom:0;width:100%;height:3px;background:linear-gradient(90deg,#77b99b,#ebd799);transform-origin:left}
#turn-arrival[popover].arriving{animation:turn-arrival 4.8s ease both}#turn-arrival[popover].arriving .arrival-timer{animation:turn-countdown 4.8s linear both}
@keyframes turn-arrival{0%{opacity:0;transform:translate(-50%,-12px) scale(.96)}8%,88%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-8px)}}
@keyframes turn-countdown{to{transform:scaleX(0)}}@keyframes turn-thinking{50%{opacity:.35}}
@media(max-width:1200px){.turn-context small{display:none}.turn-context{margin:0;padding-left:8px}.turn-beacon{padding-right:9px;gap:7px}.turn-owner>strong{font-size:18px}}
@media(max-width:760px){
 .command-view:not(.board-lab) .topbar .brand{display:flex}
 .command-view:not(.board-lab) #turn-panel,.command-view.remote-view:not(.board-lab) #turn-panel{flex:1 1 0;justify-content:flex-start;min-width:0}
 .turn-beacon{flex:1;min-width:0}.turn-owner{flex:1}.turn-owner>strong{font-size:19px}.turn-context{max-width:43%;flex-shrink:1}.turn-context strong{font-size:11px;white-space:normal}.turn-emblem{width:30px}.turn-emblem img{width:26px;height:18px}
 .command-view.remote-view:not(.board-lab) .topbar{flex-wrap:wrap;height:auto;min-height:96px;padding:5px 10px;gap:4px 8px;overflow:visible}
 .command-view.remote-view:not(.board-lab) #turn-panel{flex:1 0 100%}
 .command-view.remote-view:not(.board-lab) #remote-bar{order:3;flex:1 1 150px;justify-content:flex-start;flex-wrap:wrap}
 .command-view.remote-view:not(.board-lab) .top-actions{order:4;margin-left:auto}
 .command-view.remote-view:not(.board-lab) #remote-bar>div{margin-right:auto}
 #turn-arrival[popover]{left:50%;top:calc(var(--header-bottom,54px) + 14px);padding:18px 18px 21px;gap:13px;max-width:calc(100vw - 24px)}
 .arrival-emblem{width:48px;height:48px}.arrival-emblem img{width:32px;height:22px}#turn-arrival[popover] strong{font-size:30px}#turn-arrival[popover] .arrival-kicker{font-size:9px}#turn-arrival[popover] .arrival-hint{font-size:12px}
}
@media(prefers-reduced-motion:reduce){#turn-arrival[popover].arriving,#turn-arrival[popover].arriving .arrival-timer,.is-thinking .turn-state i{animation:none}.arrival-timer{display:none}}

/* The title is the single lobby entry point. */
#lobby-link{padding:0;border:0;background:transparent;color:inherit;text-align:left;border-radius:4px}
#lobby-link:hover{background:transparent;filter:brightness(1.15)}
#lobby-link:focus-visible{outline:2px solid #cde8b7;outline-offset:5px}
@media(max-width:760px){
 .command-view.remote-view:not(.board-lab) #remote-identity .personal-money>span>small{display:block;font-size:9px}
 .command-view.remote-view:not(.board-lab) #remote-identity .personal-money>span{flex-direction:column;gap:1px}
 .command-view.remote-view:not(.board-lab) #remote-identity .personal-money{height:auto;min-height:36px}
}

.feed-symbol.feed-unit-pair{width:43px;flex-basis:43px}

/* Country flags identify chat and journal entries without personality labels. */
#table-feed .feed-nation{display:inline-flex;align-items:center;gap:5px}
#table-feed .feed-flag{display:block;width:20px;height:14px;object-fit:cover;border-radius:2px;flex-shrink:0;box-shadow:0 0 0 1px #16344520}
.command-view:not(.board-lab) .map-bottom{display:none}
#feed-quick{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:0}#feed-quick[hidden]{display:none}#feed-quick select{flex:1 1 105px;min-width:0;max-width:100%;background:#173642;color:#f2e8d0;border:1px solid #bca97d70;border-radius:4px;padding:5px;font:inherit;font-size:12px}#feed-quick button{flex:0 1 auto;border:1px solid #bca97d70;background:#ffffff09;color:#e4dbc4;border-radius:4px;padding:6px;font-size:11px}#feed-quick button:disabled{opacity:.5}#feed-quick button:hover:not(:disabled){background:#ffffff18}
#feed-compose[hidden],#feed-questions[hidden],#feed-retry[hidden]{display:none}
#feed-questions{flex-wrap:wrap;margin-top:7px}
#feed-questions button,#feed-retry{border:1px solid #bca97d70;background:#ffffff09;color:#e4dbc4;border-radius:4px;padding:7px 10px;font-size:12px}
#feed-questions button:hover:not(:disabled),#feed-retry:hover:not(:disabled){background:#ffffff18}
#feed-questions button:disabled,#feed-retry:disabled{opacity:.5}
#feed-retry{margin-top:7px}
