@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{--ink:#e5edf5;--muted:#8295a9;--line:#203447;--paper:#050b12;--card:#09131e;--blue:#4b95e6;--bright:#78b8fa}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Space Grotesk',Arial,sans-serif}button,select{font:inherit}button{cursor:pointer}
.topbar{height:62px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 max(24px,calc((100vw - 1780px)/2));background:#070d15;border-bottom:1px solid #192c3d;box-shadow:0 8px 32px #0005}.brand{display:flex;align-items:center;gap:13px;font-size:14px;font-weight:700;letter-spacing:.17em;white-space:nowrap}.brand-mark{color:var(--bright);font-size:28px;line-height:1;text-shadow:0 0 20px #458cdd}.brand small{display:block;font:9px 'DM Mono',monospace;letter-spacing:.22em;color:#6d8296;margin-top:2px}.powered{color:#9baec1;font:10px 'DM Mono',monospace;letter-spacing:.13em;white-space:nowrap}.powered strong{color:#f1f6fb;font-size:14px}.live-dot{display:inline-block;width:7px;height:7px;margin-left:10px;border-radius:50%;background:#54cf87;box-shadow:0 0 12px #54cf87}
main{width:min(100%,1820px);margin:auto;padding:18px 24px 60px}.mast{display:flex;align-items:end;justify-content:space-between;gap:30px;margin:0 0 18px}.eyebrow,.section-title,.field-label,.phase-badge,.mission span,.mission small,.map-foot,.hint,.status,.agents small,.feed small,.metric-grid small,footer{font-family:'DM Mono',monospace}.eyebrow{color:#5797d7;font-size:10px;font-weight:500;letter-spacing:.2em}h1{margin:7px 0 5px;font-size:clamp(30px,3.1vw,48px);letter-spacing:-.055em;line-height:1.04;font-weight:500}h1 em{color:#a2b8d1;font-style:normal}.mast p{color:var(--muted);max-width:790px;margin:4px 0 0;font-size:13px;line-height:1.45}.mission{display:flex;flex-direction:column;gap:5px;width:270px;flex:none;padding:14px 17px;border:1px solid var(--line);background:#0a1622;box-shadow:inset 0 0 30px #16324b35}.mission span{font-size:9px;letter-spacing:.16em;color:#5e9ddd}.mission strong{font-size:17px;font-weight:500}.mission small{color:var(--muted);font-size:9px}
.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 318px;gap:14px}.main-column,.sidebar{display:flex;flex-direction:column;gap:14px;min-width:0}.map-card,.agents-card,.control-card,.metrics-card,.feed-card{background:var(--card);border:1px solid var(--line);overflow:hidden}.map-card{position:relative;box-shadow:0 16px 40px #0005,inset 0 0 0 1px #304a5f30}.card-head{position:absolute;z-index:2;left:17px;top:16px;display:flex;gap:16px;align-items:center;padding:13px 16px;background:#06101bd9;border:1px solid #29415a;backdrop-filter:blur(8px);pointer-events:none}.card-head .eyebrow{font-size:9px}.card-head h2{font-size:17px;font-weight:500;letter-spacing:.02em;margin:4px 0 0}.phase-badge{display:inline-block;color:#9bd6ff;border:1px solid #376a94;background:#10283d;padding:6px 8px;font-size:9px;letter-spacing:.12em}.map-wrap{position:relative;background:radial-gradient(circle at 52% 48%,#0d2031 0%,#07131f 57%,#040a11 100%);overflow:hidden}.map-wrap::after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 115px #000a}.map-wrap svg{width:100%;height:auto;display:block;min-height:430px}.map-foot{position:absolute;z-index:2;left:17px;right:17px;bottom:16px;display:flex;justify-content:space-between;gap:12px;padding:9px 12px;color:#a4b7c8;background:#07121fe0;border:1px solid #263d52;font-size:9px;letter-spacing:.03em}
.section-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:10px;font-weight:500;letter-spacing:.16em;color:#71a9e1}.section-title small{font-size:9px;color:#7890a4;font-weight:400;letter-spacing:0}.agents-card,.control-card,.metrics-card,.feed-card{padding:16px;box-shadow:inset 0 1px 0 #31516b35}.agents{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:9px;margin-top:14px}.agent{min-height:93px;padding:11px 12px;border:1px solid #23384c;background:#0c1a28}.agent.active{border-color:#5ea5eb;box-shadow:0 0 16px #1b4fa435,inset 0 0 0 1px #275d93}.agent-top{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600}.swatch{width:9px;height:9px;border-radius:50%;flex:none;box-shadow:0 0 9px currentColor}.agent-stats{display:flex;gap:18px;margin-top:12px}.agent-stats b{font-size:22px;font-weight:500;letter-spacing:-.04em}.agents small{display:block;margin-top:2px;color:#8295a9;font-size:9px}
.field-label{display:block;margin:14px 0 7px;color:#9aafc1;font-size:10px;letter-spacing:.07em}select{width:100%;padding:9px 10px;outline:none;color:#eaf2fa;border:1px solid #2b4257;border-radius:0;background:#0d1c2a;font-size:12px}select:focus,button:focus-visible,.territory:focus-visible,.army-marker:focus-visible{outline:2px solid #93c8ff;outline-offset:2px}.player-selects{margin:10px 0 14px}.player-row{display:flex;align-items:center;gap:8px;margin:6px 0}.player-number{color:#67839e;font:10px 'DM Mono',monospace;min-width:22px}button{border:1px solid transparent;border-radius:0;font-family:'DM Mono',monospace;font-size:10px;font-weight:500;letter-spacing:.09em;transition:background .15s,border-color .15s}button:disabled{opacity:.42;cursor:not-allowed}.primary{padding:11px 12px;color:#fff;background:#1b4fa4;border-color:#3e78cc}.primary:hover:not(:disabled){background:#286ac1}.secondary{padding:11px 12px;color:#a9d2f8;background:#10243a;border-color:#315470}.secondary:hover:not(:disabled){background:#183857}#start{display:flex;width:100%;justify-content:space-between}.key-status,.hint{color:#7d93a8;font-size:10px;line-height:1.5;margin:10px 0 0}.key-status.error,.status.error{color:#f29c9c}.action-row{display:flex;gap:7px;margin-top:14px}.action-row button{flex:1;font-size:9px}.status{border-top:1px solid var(--line);padding-top:11px;margin-top:13px;color:#b0c3d4;font-size:10px;line-height:1.5}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px 8px;margin:17px 0 12px}.metric-grid strong{display:block;font-size:24px;font-weight:500;letter-spacing:-.06em}.metric-grid small{color:#7c97ad;font-size:9px}.feed-card{flex:1;min-height:245px}.feed{margin-top:11px;max-height:330px;overflow:auto}.feed-item{padding:9px 0;border-top:1px solid #1b3042;font-size:11px;line-height:1.45}.feed-item small{color:#6f8aa3;font-size:9px}.feed-item p{margin:4px 0}.feed-item em{color:#99bfe5;font-style:normal}.feed-item .dice{display:inline-block;margin-top:3px;padding:4px 6px;color:#d2e8fa;background:#132d43;font:9px 'DM Mono',monospace}footer{display:flex;justify-content:space-between;gap:20px;padding:18px max(24px,calc((100vw - 1780px)/2));border-top:1px solid var(--line);color:#71879a;font-size:9px;letter-spacing:.06em}
/* Geographic paths come from Natural Earth; ownership only controls fill. */
.grid-line{stroke:#1c3b54;stroke-width:.75;opacity:.45}.land-base{fill:#102438;stroke:none}.territory{cursor:pointer}.territory-shape{fill-opacity:.19;stroke:#68adeb;stroke-width:1.1;stroke-opacity:.68;stroke-linejoin:round;vector-effect:non-scaling-stroke;transition:fill-opacity .15s,stroke-opacity .15s}.territory:hover .territory-shape{fill-opacity:.43;stroke:#d7edff;stroke-opacity:1}.territory.selected .territory-shape{fill-opacity:.54;stroke:#fff;stroke-width:2;stroke-opacity:1}.country-borders{fill:none;stroke:#b5d8f4;stroke-width:.42;stroke-opacity:.19;pointer-events:none;vector-effect:non-scaling-stroke}.land-coast-glow{fill:none;stroke:#2b86d4;stroke-width:6;stroke-opacity:.19;pointer-events:none}.land-coast{fill:none;stroke:#6fb9f2;stroke-width:1.35;stroke-opacity:.86;pointer-events:none;vector-effect:non-scaling-stroke}.army-marker{cursor:pointer}.marker-halo{opacity:.2;filter:blur(3px)}.marker-core{stroke-width:1.3}.army-marker:hover .marker-core,.army-marker.selected .marker-core{stroke-width:2.5}.army-number{pointer-events:none;text-anchor:middle;fill:#f5faff;font:500 9px 'DM Mono',monospace}.region-label,.ocean-label{pointer-events:none;text-anchor:middle;fill:#5e99ce;font:500 10px 'DM Mono',monospace;letter-spacing:.23em;opacity:.57}.ocean-label{fill:#477cae;opacity:.7;font-size:11px}
.selected-route{fill:none;stroke:#d3eeff;stroke-width:1.45;stroke-dasharray:5 4;stroke-opacity:.85;pointer-events:none;filter:drop-shadow(0 0 3px #62b3f5)}
@media(max-width:1220px){.play-layout{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.feed-card{grid-column:1/-1}}@media(max-width:700px){main{padding:14px 10px 40px}.topbar{padding:0 12px}.brand{font-size:11px}.powered{font-size:8px}.powered strong{font-size:10px}.mast{display:block}.mast p{font-size:12px}.mission{width:auto;margin-top:12px}.sidebar{display:flex}.card-head{top:8px;left:8px;padding:8px}.card-head h2{font-size:12px}.card-head .eyebrow{font-size:7px}.phase-badge{font-size:8px}.map-wrap svg{min-height:320px}.map-foot{position:static;display:block;margin:0;border:0;background:#0a1622}.map-foot span{display:block;margin:3px 0}.region-label,.ocean-label{display:none}footer{display:block;padding:14px 12px}footer span{display:block;margin:5px 0}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Compact, always-on game view */
.topbar{height:50px}.topbar .brand{font-size:12px}.topbar .brand-mark{font-size:23px}
main{padding-top:9px}.mast{min-height:50px;margin-bottom:9px;align-items:center}.mast h1{margin:2px 0 0;font-size:27px;line-height:1.05}.mast .eyebrow{font-size:8px}.mission{width:auto;min-width:215px;padding:8px 12px;gap:1px}.mission span{font-size:8px}.mission strong{font-size:13px}
.play-layout{gap:11px}.main-column,.sidebar{gap:11px}.agents-card{padding:12px}.agents{margin-top:9px}.agent{min-height:126px;padding:9px 10px}.agent-stats{margin-top:6px}.agent-stats b{font-size:19px}.agent-strategy{color:#b9c9d8;font-size:10px;line-height:1.25;margin:7px 0 0}.agent-said{color:#8cb8df;font:9px/1.25 'DM Mono',monospace;margin:7px 0 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
#setup-panel[hidden],#setup-toggle[hidden]{display:none!important}.live-controls .action-row{margin-top:10px}.live-controls .action-row button{font-size:14px;font-weight:700;letter-spacing:.11em;min-height:50px}.live-controls #play-pause{flex:1.35}.live-controls #setup-toggle{flex:1}.live-controls .status{padding-top:9px;margin-top:10px}
.agent-speech{position:absolute;z-index:3;bottom:54px;left:17px;width:min(390px,43%);padding:11px 14px;border:1px solid #466c8a;background:#071421e8;box-shadow:0 0 26px #0008;pointer-events:none}.agent-speech small{color:#73ace1;font:8px 'DM Mono',monospace;letter-spacing:.14em}.agent-speech strong{display:block;margin:4px 0;color:#eff7ff;font-size:13px}.agent-speech p{margin:0;color:#b3cde2;font-size:11px;line-height:1.35}.agent-speech.speaking{border-color:#91cfff;box-shadow:0 0 25px #3d8ed366;animation:speech-pop .45s ease-out}
.dice-card{padding:14px 16px;background:#0a1724;border:1px solid #254159;box-shadow:inset 0 1px 0 #31516b35}.dice-stage{margin-top:12px;min-height:100px}.dice-stage>p{color:#8295a9;font-size:11px;line-height:1.4}.dice-route{font-size:11px;color:#dbefff;margin-bottom:10px;font-weight:600}.dice-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0}.dice-row small{color:#87a8c5;font:9px 'DM Mono',monospace;letter-spacing:.12em}.dice-group{display:flex;gap:7px}.die{width:49px;height:49px;padding:8px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:3px;background:#e8f0f8;border:2px solid #a8c6e5;border-radius:7px;box-shadow:0 3px 0 #557b9d,0 0 15px #2b77b956}.die.defender{background:#1b354c;border-color:#6f9fc5;box-shadow:0 3px 0 #385c7d,0 0 15px #2b77b956}.die i{width:7px;height:7px;align-self:center;justify-self:center;border-radius:50%}.die i.lit{background:#10283d}.die.defender i.lit{background:#dcf0ff}.die.rolling{animation:die-roll .2s linear infinite}.dice-result{margin-top:10px;padding-top:9px;border-top:1px solid #2a4359;color:#d5e5f5;font:10px 'DM Mono',monospace}.dice-result.captured{color:#8fddad}
.feed-card{flex:1;min-height:180px}.feed{max-height:300px}.feed-item{font-size:11px}
.sea-route{fill:none;stroke:#3a78af;stroke-width:1;stroke-dasharray:3 7;stroke-opacity:.5;pointer-events:none}.battle-trail{fill:none;stroke:#f2f9ff;stroke-width:3.5;stroke-dasharray:10 7;pointer-events:none;filter:drop-shadow(0 0 7px #62b3f5);animation:trail-dash .32s linear infinite}.territory.captured-flash .territory-shape{animation:conquest 1s ease-in-out infinite}.army-marker.reinforced-flash{transform-box:fill-box;transform-origin:center;animation:reinforce 1s ease-in-out infinite}
@keyframes trail-dash{to{stroke-dashoffset:-17}}@keyframes conquest{50%{fill-opacity:.85;stroke:#fff;stroke-width:3}}@keyframes reinforce{50%{transform:scale(1.55);filter:drop-shadow(0 0 8px #fff)}}@keyframes die-roll{50%{transform:rotate(8deg) scale(1.08)}}@keyframes speech-pop{from{transform:translateY(8px);opacity:.4}to{transform:translateY(0);opacity:1}}
@media(max-width:1220px){.sidebar{grid-template-columns:1fr 1fr}.dice-card{grid-column:2}.feed-card{grid-column:1/-1}.metrics-card{grid-column:1/-1}}
@media(max-width:700px){.mast{display:flex;min-height:44px}.mast h1{font-size:17px}.mast .eyebrow{font-size:7px}.mission{display:none}.sidebar{display:flex}.agent-speech{left:8px;bottom:45px;width:min(300px,65%);padding:7px 9px}.agent-speech small{font-size:6px}.agent-speech strong{font-size:10px}.agent-speech p{font-size:9px}.agents{grid-template-columns:1fr 1fr}.agent{min-height:146px}.agent-strategy{font-size:9px}.agent-said{font-size:8px}.die{width:45px;height:45px}}
@media(prefers-reduced-motion:reduce){.agent-speech.speaking,.die.rolling,.battle-trail,.territory.captured-flash .territory-shape,.army-marker.reinforced-flash{animation:none!important}}

.explain-trigger{display:block;width:100%;margin-top:13px;padding:8px 10px;text-align:left;color:#a9d2f8;background:#10243a;border:1px solid #315470;font-size:10px;letter-spacing:.02em}.explain-trigger:hover{background:#183857}
.archetype-dialog{width:min(560px,calc(100vw - 28px));max-height:min(720px,calc(100dvh - 28px));padding:20px;overflow:auto;color:var(--ink);background:#09131e;border:1px solid #4d81ad;box-shadow:0 24px 85px #000c}.archetype-dialog::backdrop{background:#02070dd9;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:start;gap:20px}.dialog-head h2{margin:5px 0 0;font-size:24px;font-weight:600;letter-spacing:-.04em}.dialog-head button{padding:0 8px;color:#c8ddf1;background:transparent;border:1px solid #37546c;font-size:25px;line-height:1.1}.dialog-head button:hover{background:#16304a}.dialog-intro{margin:14px 0;color:#b6c9d9;font-size:12px;line-height:1.5}.archetype-explanations{display:grid;grid-template-columns:1fr 1fr;gap:9px}.archetype-explanation{padding:12px;border:1px solid #294259;background:#0d1c2a}.archetype-explanation h3{display:flex;align-items:center;gap:8px;margin:0;color:#eef6ff;font-size:13px}.archetype-dot{width:9px;height:9px;border-radius:50%;flex:none}.archetype-explanation p{margin:9px 0 7px;font-size:11px;line-height:1.4;color:#c4d5e3}.archetype-explanation small{display:block;font:9px/1.45 'DM Mono',monospace;color:#86afd4}.dialog-footnote{margin:14px 0;color:#93aabe;font:10px/1.5 'DM Mono',monospace}.dialog-done{width:100%;font-size:11px}
@media(max-width:560px){.archetype-dialog{padding:15px}.archetype-explanations{grid-template-columns:1fr}.dialog-head h2{font-size:21px}}
.player-row{display:grid;grid-template-columns:20px minmax(0,1fr) 86px;gap:6px;margin:13px 0}.player-row select{min-width:0;padding:9px 5px;font-size:11px}.intensity-detail{grid-column:2/-1;margin:0;color:#8eabc2;font-size:10px;line-height:1.35}.intensity-badge{color:#8eb9df!important;text-transform:uppercase;letter-spacing:.06em;margin-top:7px!important}

/* Keep the map in focus; selected territory details occupy its lower-left corner. */
.territory-card{--owner-color:#78b8fa;position:absolute;z-index:3;left:16px;bottom:16px;width:min(340px,44%);min-height:86px;padding:12px 14px;background:#07131fef;border:1px solid #35516b;border-left:3px solid var(--owner-color);box-shadow:0 12px 26px #0009;pointer-events:none}
.territory-kicker{display:block;color:#83b8e8;font:9px 'DM Mono',monospace;letter-spacing:.14em}.territory-card strong{display:block;margin-top:5px;color:#f2f8ff;font-size:18px;line-height:1.15}.territory-card p{margin:6px 0 0;color:#a7bdd1;font-size:11px;line-height:1.35}.territory-details{display:grid;grid-template-columns:1fr auto;gap:5px 12px;margin-top:9px;color:#abc1d5;font:10px/1.4 'DM Mono',monospace}.territory-details[hidden]{display:none}.territory-owner{grid-column:1/-1;color:var(--owner-color);font-weight:500}.territory-armies{color:#eef7ff;font-weight:500}
.feed-card{flex:none;min-height:0;padding:0}.feed-card summary{display:flex;align-items:center;gap:8px;padding:15px 16px;cursor:pointer;color:#9dc9f1;font:10px 'DM Mono',monospace;letter-spacing:.14em;list-style:none}.feed-card summary::-webkit-details-marker{display:none}.feed-card summary:hover{background:#102237}.feed-card summary small{margin-left:auto;color:#819bb0;font-size:9px;letter-spacing:0}.log-chevron{color:#91bde3;font-size:17px;line-height:0;transition:transform .15s}.feed-card[open] .log-chevron{transform:rotate(180deg)}.feed-card .feed{margin:0 16px 15px;max-height:320px;overflow:auto}.agent-said.current-decision{color:#d7e9fa;-webkit-line-clamp:3}
@media(max-width:700px){.territory-card{position:relative;left:auto;bottom:auto;width:auto;margin:0;border-top:1px solid #35516b;border-right:0;border-bottom:0;padding:10px 12px;min-height:0;box-shadow:none}.territory-card strong{font-size:14px}.territory-details{font-size:9px}.territory-card p{font-size:10px}}
.feed-item{padding-left:10px;border-left:3px solid var(--agent-color,#8295a9);margin:0 0 5px}.feed-actor{display:inline-flex;align-items:center;gap:6px;color:var(--agent-color,#8295a9)!important;font-weight:500}.feed-dot{width:7px;height:7px;flex:none;border-radius:50%;background:var(--agent-color,#8295a9);box-shadow:0 0 8px var(--agent-color,#8295a9)}
.recovery-badge{display:inline-block;margin:4px 0;color:#f0c77c;font:8px 'DM Mono',monospace;letter-spacing:.1em}.agent-said.recovery-decision{color:#efcb83}
.pregame .live-controls,.pregame .session-card,.pregame .turn-card,.pregame .dice-card,.pregame .feed-card,.pregame .metrics-card{display:none!important}
.pregame-map-overlay{position:absolute;z-index:4;left:50%;top:48%;transform:translate(-50%,-50%);width:min(420px,calc(100% - 32px));padding:22px 25px;text-align:center;background:#07121feb;border:1px solid #3c6282;box-shadow:0 14px 48px #0009;pointer-events:none}
.pregame-map-overlay[hidden]{display:none}.pregame-map-overlay span{display:block;color:#70b5f5;font:9px 'DM Mono',monospace;letter-spacing:.19em}.pregame-map-overlay strong{display:block;margin-top:9px;color:#f0f7ff;font-size:21px;font-weight:500}.pregame-map-overlay p{max-width:330px;margin:8px auto 0;color:#9db3c8;font-size:12px;line-height:1.45}
.preview-territory{pointer-events:none}.preview-territory .territory-shape{fill-opacity:.1;stroke:#5d7892;stroke-opacity:.45}.agents[hidden]{display:none!important}.pregame-agents{margin:11px 0 0;padding:12px 14px;color:#a9bdcf;background:#0b1926;border:1px dashed #29435a;font-size:11px;line-height:1.5}
.pregame #setup-panel{border-color:#3c6590;box-shadow:0 0 22px #1b4fa426,inset 0 1px 0 #5aa4e642}.pregame #setup-panel .section-title{color:#91c8fa}.pregame #start{min-height:46px;font-size:11px}
@media(max-width:700px){.pregame-map-overlay{top:45%;padding:17px 15px}.pregame-map-overlay strong{font-size:17px}.pregame-map-overlay p{font-size:10px}.pregame-agents{font-size:10px}}
.play-layout{grid-template-columns:minmax(0,1fr) minmax(350px,405px)}
.agent{min-height:190px}.agent-telemetry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px;padding-top:9px;border-top:1px solid #20384b}.agent-telemetry span{display:flex;align-items:baseline;justify-content:space-between;gap:5px}.agent-telemetry small,.session-metrics small,.turn-metrics-grid small{color:#7f9bb4;font:8px 'DM Mono',monospace;letter-spacing:.08em}.agent-telemetry strong{color:#e4f1fc;font:10px 'DM Mono',monospace;font-weight:500}.agent-combat{margin:9px 0 0;color:#9bb3c7;font:8px/1.45 'DM Mono',monospace}
.session-card,.turn-card{padding:13px 14px}.session-card .section-title,.turn-card .section-title{align-items:flex-start}.session-card .section-title small,.turn-card .section-title small{max-width:58%;text-align:right;line-height:1.35}.session-status{margin:10px 0;padding:8px 10px;color:#b7d9f5;background:#0d2031;border-left:2px solid #4d9ce4;font:9px/1.4 'DM Mono',monospace}.session-status.error{color:#f29c9c;border-color:#d95e63}
.session-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 6px;margin:10px 0}.session-metrics>div{padding:7px;background:#07111b;border:1px solid #1d3448}.session-metrics small{display:block}.session-metrics strong{display:block;margin-top:4px;color:#edf6ff;font:11px 'DM Mono',monospace;font-weight:500;white-space:nowrap}
.session-trace{position:relative;list-style:none;margin:10px 0 0;padding:0 0 0 14px;max-height:285px;overflow:auto;border-left:1px solid #31516b}.trace-event{position:relative;padding:0 0 12px 4px}.trace-event::before{content:'';position:absolute;left:-19px;top:3px;width:7px;height:7px;border:1px solid #81c4fb;border-radius:50%;background:#102c43;box-shadow:0 0 8px #3c8ccc66}.trace-event time{display:block;color:#718da5;font:8px 'DM Mono',monospace}.trace-event strong{display:block;margin-top:3px;color:#c9e4fb;font:9px 'DM Mono',monospace;font-weight:500}.trace-event p{margin:3px 0 0;color:#a3b6c8;font-size:10px;line-height:1.4;overflow-wrap:anywhere}.trace-empty{margin:4px 0;color:#8199ae;font-size:10px;line-height:1.5}
.turn-current{margin-top:10px}.turn-metrics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.turn-metrics-grid>span{min-width:0;padding:7px 8px;background:#07111b;border:1px solid #1d3448}.turn-metrics-grid small{display:block;white-space:nowrap}.turn-metrics-grid strong{display:block;margin-top:4px;color:#eaf4fd;font:11px 'DM Mono',monospace;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.token-breakdown{margin:7px 0 0;color:#879fb3;font:8px 'DM Mono',monospace}.turn-history{margin-top:11px;border-top:1px solid #23394c}.turn-history>summary,.dice-card>summary{display:flex;align-items:center;gap:8px;padding:10px 0 0;cursor:pointer;color:#91bde3;font:9px 'DM Mono',monospace;letter-spacing:.1em;list-style:none}.turn-history>summary::-webkit-details-marker,.dice-card>summary::-webkit-details-marker{display:none}.turn-history>summary small,.dice-card>summary small{margin-left:auto;color:#7f98ad;font-size:8px;letter-spacing:0}.turn-history-list{max-height:270px;overflow:auto;margin-top:8px}.turn-history-item{border-top:1px solid #1b3042}.turn-history-item>summary{padding:8px 4px;cursor:pointer;color:#b8cde0;font:8px/1.4 'DM Mono',monospace;list-style:none}.turn-history-item>summary::-webkit-details-marker{display:none}.turn-history-body{padding:0 0 10px}.historical-trace{max-height:180px;margin-top:9px;padding-left:14px;overflow:auto}
.feed-card[open] .feed{max-height:320px}.feed-card summary{padding:11px 13px}.feed-card .feed{margin:0 13px 12px}.dice-card{flex:none;padding:0 13px 10px}.dice-card>summary{padding:12px 0}.dice-card[open] .dice-stage{min-height:0;margin-top:4px}.dice-card .dice-row{margin:4px 0}.dice-card .die{width:34px;height:34px;padding:5px;gap:2px}.dice-card .die i{width:5px;height:5px}.dice-card .dice-group{gap:5px}.dice-card .dice-result{margin-top:7px;padding-top:6px;font-size:9px}
@media(max-width:1220px){.play-layout{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.session-card,.turn-card,.feed-card{grid-column:1/-1}.dice-card{grid-column:2}}
@media(max-width:700px){.play-layout{grid-template-columns:1fr}.sidebar{display:flex}.session-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.session-trace{max-height:240px}.turn-metrics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.agent{min-height:195px}.agent-telemetry strong{font-size:9px}}

/* Live readings update inside reserved spaces, without shifting the board or controls. */
.sidebar > *{flex-shrink:0}
.agent{height:264px;min-height:0;overflow:hidden}
.agent-strategy{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.agent-said{margin-top:9px;-webkit-line-clamp:3}
.session-card .section-title,.turn-card .section-title{height:28px;overflow:hidden}
.session-card .section-title small,.turn-card .section-title small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.session-status{height:43px;overflow:auto;scrollbar-gutter:stable}
.session-trace{height:190px;max-height:none;overflow-y:auto;scrollbar-gutter:stable}
.turn-current{height:145px;overflow-y:auto;scrollbar-gutter:stable}
.turn-history{margin-top:11px;border-top:1px solid #23394c}
.turn-history-heading,.static-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#91bde3;font:9px 'DM Mono',monospace;letter-spacing:.1em}
.turn-history-heading{height:29px}
.turn-history-heading small,.static-panel-heading small{color:#7f98ad;font-size:8px;letter-spacing:0}
.turn-history-list{height:110px;max-height:none;margin:0;overflow-y:auto;scrollbar-gutter:stable}
.turn-history-item{display:block;width:100%;padding:7px 5px;text-align:left;color:#b8cde0;background:transparent;border:0;border-top:1px solid #1b3042;font:8px/1.4 'DM Mono',monospace;letter-spacing:0}
.turn-history-item:hover,.turn-history-item.selected{color:#e5f4ff;background:#10273b}
.turn-history-detail{height:290px;overflow-y:auto;scrollbar-gutter:stable;padding:8px 0;border-top:1px solid #23394c;color:#8199ae;font-size:10px}
.historical-trace{max-height:none;overflow:visible}
.static-panel-heading{height:34px;padding:0 13px}
.feed-card .feed{height:210px;max-height:none;margin:0 13px 12px;overflow-y:auto;scrollbar-gutter:stable}
.dice-card{padding-bottom:10px}
.dice-card .dice-stage{height:143px;min-height:0;margin:4px 0 0;overflow:hidden}
body:not(.pregame) #setup-panel:not([hidden]){position:fixed;z-index:20;top:62px;right:24px;width:min(405px,calc(100vw - 24px));max-height:calc(100dvh - 74px);overflow:auto;box-shadow:0 22px 70px #000d}
.setup-close{display:block;width:100%;margin-top:10px;padding:8px;color:#b5d1e8;background:#10243a;border-color:#315470}
.pregame .setup-close{display:none}
@media(min-width:1221px){.sidebar{position:sticky;top:10px;align-self:start;max-height:calc(100dvh - 20px);overflow-y:auto;scrollbar-gutter:stable;overscroll-behavior:contain}}
@media(max-width:700px){.agent{height:264px}.session-trace{height:180px;max-height:none}.turn-current{height:145px}.dice-card .dice-stage{height:143px}}

/* The duck game's Zro navbar, adapted to this game's dark palette. */
.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:18px;height:64px;padding:0 28px;background:#09131e;border-bottom:1px solid #294159;box-shadow:none}
.topbar .brand{display:flex;align-items:center;gap:11px;color:#eef6ff;text-decoration:none;letter-spacing:0}
.topbar .brand-mark{display:block;width:30px;height:30px;object-fit:contain;filter:none}
.brand-tag{padding-left:11px;border-left:1px solid #39516a;color:#b7c9da;font:500 9px/1.15 'DM Mono',monospace;letter-spacing:.09em;white-space:nowrap}
.nav-title{padding-left:17px;border-left:1px solid #294159;color:#d8eafa;font:500 10px 'DM Mono',monospace;letter-spacing:.16em;white-space:nowrap}
.nav-spacer{flex:1}
.nav-badge{padding:5px 11px;border:1px solid #439565;border-radius:999px;color:#83dba1;background:#0b211b;font:500 10px 'DM Mono',monospace;letter-spacing:.08em;white-space:nowrap}
.nav-badge.offline{border-color:#91555c;color:#e9a4ac;background:#2a171d}
.nav-link{padding:7px 3px;border:0;color:#aebfd0;background:transparent;font:11px 'DM Mono',monospace;letter-spacing:0;text-decoration:none;white-space:nowrap}
.nav-link:hover{color:#f2f8ff;background:transparent}
.sr-only,.map-controls .status:not(.error){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.map-controls{position:absolute;z-index:6;top:16px;left:16px;display:flex;gap:6px}
.map-control{display:grid;place-items:center;width:43px;height:39px;padding:0;font-size:19px;line-height:1;letter-spacing:0;box-shadow:0 8px 22px #0008}
.map-controls .status.error{position:absolute;top:47px;left:0;z-index:7;width:max-content;max-width:min(360px,calc(100vw - 35px));margin:0;padding:8px 11px;color:#ffd7d7;background:#381a23;border:1px solid #b95b68;box-shadow:0 8px 22px #0009;white-space:normal}
.pregame .map-controls{display:none}
.map-card .dice-card{position:absolute;z-index:6;top:16px;right:16px;width:195px;min-height:94px;padding:8px 10px;background:#071421ed;border:1px solid #355773;box-shadow:0 8px 24px #0009}
.mini-dice-title{margin-bottom:6px;color:#9dc9f1;font:500 8px 'DM Mono',monospace;letter-spacing:.15em}
.map-card .dice-stage{height:auto;min-height:63px;margin:0;overflow:visible}
.map-card .dice-stage>p{margin:12px 0 0;font:9px 'DM Mono',monospace}
.map-card .dice-row{display:flex;align-items:center;justify-content:space-between;gap:5px;margin:4px 0}
.map-card .dice-row small{font-size:8px;letter-spacing:.04em}
.map-card .dice-group{gap:3px}
.map-card .die{width:27px;height:27px;padding:3px;gap:1px;border-radius:4px}
.map-card .die i{width:4px;height:4px}
body:not(.pregame) #setup-panel:not([hidden]){top:74px;max-height:calc(100dvh - 86px)}
@media(min-width:1221px){.sidebar{top:74px;max-height:calc(100dvh - 84px)}}
@media(max-width:700px){.topbar{height:54px;gap:8px;padding:0 12px}.topbar .brand{gap:7px}.topbar .brand-mark{width:26px;height:26px}.brand-tag{padding-left:8px;font-size:7px}.nav-title{display:none}.nav-badge{padding:5px 7px;font-size:8px}.nav-link{font-size:10px}.map-controls{top:8px;left:8px}.map-control{width:35px;height:33px;font-size:17px}.map-card .dice-card{top:8px;right:8px;width:168px;padding:6px 7px}.map-card .die{width:23px;height:23px;padding:2px}.map-card .die i{width:3px;height:3px}body:not(.pregame) #setup-panel:not([hidden]){top:62px;max-height:calc(100dvh - 74px)}}
@media(max-width:440px){.brand-tag{display:none}.topbar{gap:7px}.nav-link{font-size:9px}}
.tutorial-steps{margin:14px 0;padding-left:26px;color:#c4d8e8;font:12px/1.55 'DM Mono',monospace}
.tutorial-steps li{padding-left:5px;margin:9px 0}
.tutorial-steps li::marker{color:#70b5f5;font-weight:700}
