/* Current interface contract: scene and one-round decisions stay in the viewport.
   Type scale: 12px labels, 14px body, 18px section title, 22px result.
   Secondary information uses the shared dialog; research never changes order. */
body.v13{--ui-label:12px;--ui-body:14px;--ui-title:18px;--ui-result:22px;--ui-gap:12px;font-size:var(--ui-body);line-height:1.5;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
.v13 .masthead{display:flex;align-items:center;gap:16px;width:100%;max-width:1960px;margin:0 auto;min-height:66px;height:66px;padding:10px 20px;border-bottom:1px solid var(--line);flex:none}
.v13 .wordmark{font-size:16px;line-height:1.3;white-space:nowrap;flex:none}.v13 .wordmark-block{font-size:12px;min-width:0;padding:8px;width:auto}.v13 .wordmark-sub{font-size:10px;margin-top:2px}
.v13 .hud{display:flex;align-items:center;margin-left:auto;min-width:0;gap:0;flex:1;justify-content:flex-end;border:0;background:transparent}
.v13 .hud>*{min-height:44px;padding:4px 14px;background:transparent;border:0;border-left:1px solid var(--line)}.v13 .hud strong{font-size:16px;line-height:1.35}.v13 .hud .eyebrow{font-size:11px}.v13 .hud-day{white-space:nowrap}.v13 .day-dots{display:none}.v13 .hud-race{max-width:330px;text-align:left}.v13 .race-summary{font-size:12px}.v13 .race-summary b{font-size:14px}.v13 .hud-race .race-summary small{font-size:11px}
.v13 .masthead nav{display:block;flex:none;margin:0}.tools-menu{position:relative}.tools-menu>summary{list-style:none;cursor:pointer;padding:9px 12px;border:1px solid var(--line);border-radius:8px;font-size:12px;min-height:40px}.tools-menu>summary::-webkit-details-marker{display:none}.tools-popover{position:absolute;right:0;top:calc(100% + 6px);z-index:1800;display:flex;flex-direction:column;gap:4px;padding:8px;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 32px #263c4826;background:var(--card);min-width:142px}.v13 .tools-popover button{display:block;width:100%;height:40px;text-align:left;font-size:12px}.tools-menu:not([open])>.tools-popover{display:none}
.v13 main{display:flex;flex:1;width:100%;max-width:1960px;margin:0 auto;min-height:0;padding:14px 20px 12px;overflow:hidden;flex-direction:column}.v13 .game-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(380px,30vw,560px);grid-template-rows:minmax(0,1fr) auto;grid-template-areas:"map dock" "tools dock";gap:12px;height:100%;min-height:0;flex:1;align-items:stretch}
.v13 .world-column{grid-area:map;position:static;top:auto;container-type:size;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:8px;min-height:0;overflow:hidden}.v13 .world-heading{display:flex;width:100%;flex:none;min-height:32px;margin:0;align-items:center}.v13 .world-heading h1{font-size:18px;margin:0;line-height:1.4}.v13 .world-heading .eyebrow{font-size:11px;letter-spacing:0}.v13 .location-chip{font-size:12px;padding:3px 8px}
.v13 .world{flex:none;aspect-ratio:3/2;width:min(100%,calc((100cqh - 80px)*1.5));height:auto;min-height:0;max-height:none;border-radius:14px;align-self:center}.v13 .world.in-venue,.v13[data-phase=result] .world{aspect-ratio:1200/650;width:min(100%,calc((100cqh - 80px)*1.846))}
.v13 .mobile-destinations,.v13 .mobile-campaign{display:none!important}
.v13 .dock{grid-area:dock;min-height:0;height:100%;max-height:none;overflow:hidden;padding:14px;border-radius:14px;display:flex;flex-direction:column;margin:0}.v13 #dock-body{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.v13 .dock-plan{display:flex;flex-wrap:nowrap;align-items:stretch;gap:0;flex-direction:column;height:100%;min-height:0}.v13 .dock-plan>.dock-title{flex:0 0 auto;flex-basis:auto;} .v13 .dock-title{flex:none;flex-wrap:nowrap;display:flex;gap:8px;align-items:center;padding:0 0 12px;margin:0;border-bottom:1px solid var(--line);background:var(--card)}.v13 .dock-title h2{display:block;font-size:18px;line-height:1.4;margin:0;flex:1;min-width:0}.v13 .dock-title h2 small{display:block;font-size:12px;line-height:1.5;margin-top:2px}.v13 .dock-title>.action-icon{width:32px;height:32px;flex:none}.v13 .dock-title .primary-button{width:auto;min-width:88px;flex-basis:auto;flex:none;min-height:44px;font-size:14px;padding:8px 16px;margin:0}.v13 .dock-options-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-top:12px;scrollbar-width:thin}
.v13 .dock-hint{margin:0;display:grid;place-content:center;text-align:center;min-height:150px;font-size:16px}.v13 .hint-map{display:inline}.v13 .hint-list{display:none}.v13 .dock-info,.v13 .research-note{font-size:12px;line-height:1.5;margin:8px 0;color:var(--muted)}.v13 .mode-buttons,.v13 .mode-picks{margin:0 0 8px}.v13 .mode-buttons button,.v13 .mode-picks button{font-size:14px;min-height:44px;padding:7px 10px}.v13 .mode-buttons small,.v13 .mode-picks small{font-size:12px}.v13 .crowd-line{font-size:12px;margin:6px 0;gap:8px}.v13 .crew-note{font-size:12px}.v13 .chief-line{font-size:12px}
.v13 .interaction{grid-area:tools;margin:0!important;position:static;border:0;background:transparent;border-radius:0;overflow:visible;min-height:0;margin:0;box-shadow:none}.v13 #panel{display:block;width:100%;height:auto;min-height:0;flex:0 0 auto}.v13 .round-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}.v13 .round-tools>button,.v13 .notes-entry{background:var(--card);border:1px solid var(--line);border-radius:9px;min-height:44px;text-align:left;padding:8px 12px;font-size:14px;line-height:1.3}.v13 .round-tools>button>span,.v13 .round-tools>button>small{display:block}.v13 .round-tools small{font-size:12px;color:var(--muted);margin-top:2px}.v13 .round-tools>.round-alert{grid-column:1/-1;background:#fff0cf;border-color:#d7b86d;color:#644d23;min-height:40px;font-size:13px;font-weight:600}.v13 .notes-entry{width:100%}
.v13 .event-timeline{width:100%;padding:0;margin:0;border:0;background:transparent;flex:none;max-height:48px;overflow:hidden}.v13 .event-timeline>.timeline-heading,.v13 .event-timeline>ol,.v13 .event-timeline>details,.v13 .event-timeline>.timeline-empty{display:none}.v13 .event-timeline .last-round{padding:0;border:0;margin:0;background:transparent}.v13 .event-timeline .cap-row,.v13 .event-timeline .hindsight,.v13 .event-timeline .last-round>p{display:none}.v13 .event-timeline h3{font-size:12px;margin:0;line-height:1.5}.v13 .last-line{font-size:12px;margin:0 0 8px}.v13 footer{display:none}
.v13 .research-disclosure,.v13 .extras-disclosure{padding:0;margin:10px 0;border:1px solid var(--line);border-radius:9px;background:var(--card)}.v13 .research-disclosure>summary,.v13 .extras-disclosure>summary{cursor:pointer;font-size:14px;line-height:1.5;min-height:44px;padding:10px;list-style:disclosure-closed}.v13 details[open]>summary{list-style:disclosure-open}.v13 .research-disclosure>summary b{font-size:12px;margin-left:4px}.v13 .research-disclosure>summary span,.v13 .extras-disclosure>summary span{font-size:12px;color:var(--muted);margin-left:6px}.v13 .research-disclosure>summary span{display:none}.v13 .research-disclosure[open]>summary span{display:inline}.v13 .research-disclosure>.info{margin:0 10px 8px}.v13 .research-row,.v13 .topic-picks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px;padding:0;margin:8px 0;background:transparent;border-radius:0;align-items:stretch}.v13 .research-disclosure>.research-row{margin:0;padding:0 8px 8px}.v13 .research-row .pick-label,.v13 .topic-picks .pick-label{grid-column:1/-1;font-size:12px;margin:0}.v13 .research-chip,.v13 .topic-picks .topic-pick{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:3px;width:100%;height:54px;min-height:54px;min-width:0;padding:7px 9px;border:1px solid var(--line);border-radius:8px;font-size:14px;line-height:1.25;background:var(--card)}.v13 .research-chip b,.v13 .topic-pick b{font-size:14px;font-weight:600}.v13 .research-chip small,.v13 .topic-pick small{font-size:12px;font-weight:400;line-height:1.25;margin:0}.v13 .research-chip[aria-pressed="true"]:not(.none) b::before{content:none}.v13 .research-chip[aria-pressed="true"],.v13 .topic-pick[aria-pressed="true"]{background:var(--mint);border-color:var(--green);color:var(--ink)}.v13 .research-chip[aria-pressed="true"] small{color:var(--green)}.v13 .research-row.ask-only{grid-template-columns:repeat(2,minmax(0,1fr))!important;background:#f6f0e2;padding:8px;border-radius:8px}.v13 .ask-only .research-chip{height:auto;min-height:40px;border:0;padding:2px 4px;background:transparent}.v13 .ask-only .research-chip.other{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;min-height:24px}.v13 .ask-only .research-chip.other b{white-space:nowrap;font-size:12px}.v13 .ask-only .research-chip.other small{font-size:12px}.v13 .topic-pick .heat{display:none}
.v13 .extras-disclosure .addon-picks{margin:0;padding:8px;border-top:1px solid var(--line)}.v13 .addon-picks .pick-label{font-size:12px}.v13 .addon-list button{min-height:44px;font-size:14px;padding:6px 8px}.v13 .addon-list small{font-size:12px}.v13 .tv-cards,.v13 .donor-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.v13 .tv-card,.v13 .donor-card{padding:8px;min-height:44px}.v13 .tv-card b,.v13 .donor-card b{font-size:14px}.v13 .tv-card em,.v13 .donor-card small{font-size:12px}
.v13 .dialog{max-height:calc(100dvh - 40px);width:min(640px,100%);padding:20px;border-radius:14px;overscroll-behavior:contain}.v13 .dialog-top{position:sticky;top:-20px;background:var(--card);z-index:3;padding:12px 0;margin:0 0 12px}.v13 .dialog-top h2{font-size:18px}.v13 .dialog p{font-size:14px;line-height:1.5}.v13 .dialog .card-head b,.v13 .dialog h3{font-size:16px}.v13 .dialog small,.v13 .dialog .microcopy{font-size:12px}.v13 .campaign-card{border:0;padding:0;background:transparent}.v13 .campaign-card .card-head{display:none}.v13 .campaign-definition{padding:10px;background:var(--mint);border-radius:8px;font-size:14px}.v13 .campaign-plans button{font-size:14px;min-height:44px}.v13 .campaign-progress{font-size:12px;gap:6px 12px}.v13 .campaign-option h4{font-size:16px}.v13 .campaign-option button{min-height:44px}.v13 .campaign-card .campaign-clash p,.v13 .campaign-card .campaign-option p{font-size:14px}.v13 .dialog .profile-card,.v13 .dialog .situation,.v13 .dialog .race-board,.v13 .dialog .carry{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:9px}.v13 .dialog .panel-kicker{display:none}.v13 .dialog .panel-content{padding:0;gap:12px}
.v13 .answer-list{gap:8px;padding-top:0}.v13 .answer-list::before{display:none}.v13 .answer-option{padding:10px;border-radius:10px}.v13 .answer-line{font-size:14px;line-height:1.5}.v13 .answer-option small,.v13 .answer-option .answer-more{font-size:12px;line-height:1.5}.v13 .face-chip{font-size:12px}.v13 .dock-question{min-height:0}.v13 .question-text{font-size:18px}.v13 .answer-head{font-size:14px}.v13 .conversation-bubble{font-size:14px}.v13 .conversation-bubble .bubble-text{font-size:14px;line-height:1.5}
/* Estimates and warnings belong to their answer, including disabled answers. */
.v13 .answer-more{position:static;display:none;height:auto;overflow:visible;padding:0;background:transparent;opacity:1;color:var(--muted);transition:none;z-index:auto}
.v13 .answer-more:has(.am-est,.am-warn){display:flex;margin-top:4px}.v13 .answer-more .am-detail{display:none}.v13 .am-est{color:var(--green)}.v13 .am-warn{color:#9a3f2b}
.v13[data-phase=travel] .interaction,.v13[data-phase=result] .interaction{display:none}.v13[data-phase=travel] .game-layout,.v13[data-phase=result] .game-layout{grid-template-rows:1fr}.v13[data-phase=report] main{overflow:auto}.v13 .report{max-width:1000px;margin:0 auto;width:100%}.v13[data-phase=report] .report h2{font-size:22px}
.v13[data-phase=intro] .world-column{display:none}.v13[data-phase=intro] .game-layout{grid-template-areas:"dock tools";grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);grid-template-rows:minmax(0,1fr)}.v13[data-phase=intro] .interaction{overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--card)}.v13[data-phase=intro] .panel-content{padding:16px;gap:12px}.v13 .intro-title{font-size:22px!important}.v13 .identity-card{padding:10px;gap:6px}.v13 .identity-card .portrait{height:74px;width:58px}.v13 .identity-cards{gap:8px}.v13 .identity-card .pick-line,.v13 .party-card .pick-line{font-size:12px}.v13 .party-card{padding:10px}.v13 .pick-group{margin:0 0 12px}.v13 .start-row{position:sticky;bottom:0;background:var(--card)}
/* Desktop height follows the map's width, capped by the available viewport.
   Inline containment provides the actual workspace width without sizing it from its children. */
@media(min-width:901px) and (min-height:421px){
 .v13 main{container-type:inline-size}
 .v13 .game-layout{--dock-width:clamp(380px,30vw,560px);--map-ratio:1.5;--workspace-chrome:144px;height:min(100%,calc((100cqw - var(--dock-width) - 12px)/var(--map-ratio) + var(--workspace-chrome)));max-height:calc(100dvh - 92px);flex:0 1 auto}
 .v13 .game-layout:has(.round-alert){--workspace-chrome:192px}
 .v13 .game-layout:has(.world.in-venue),.v13[data-phase=result] .game-layout{--map-ratio:1.846}
 body.v13[data-phase=question] .world{width:min(100%,calc((100cqh - 80px)*1.846))}
 .v13 .dock:has(.dock-hint){height:auto;align-self:start}
 .v13[data-phase=intro] .game-layout{height:100%;max-height:none;flex:1}
}
@media(max-width:900px){
 .v13 .masthead{height:72px;min-height:72px;padding:6px 12px;gap:6px;display:grid;grid-template-columns:1fr auto;grid-template-rows:24px 30px}.v13 .wordmark{font-size:14px}.v13 .wordmark-block,.v13 .wordmark-sub{display:none}.v13 .masthead nav{grid-column:2;grid-row:1/3}.tools-menu>summary{padding:8px;font-size:12px}.v13 .hud{grid-column:1;grid-row:2;width:100%;justify-content:flex-start;margin:0;gap:8px}.v13 .hud>*{min-height:28px;padding:0 8px 0 0;border:0}.v13 .hud strong{font-size:13px}.v13 .hud .eyebrow{display:none}.v13 .hud-race{max-width:none}.v13 .race-summary{font-size:12px}.v13 .hud-race .race-summary small{display:none}
 .v13 main{padding:8px}.v13 .game-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:"map" "tools" "dock";gap:8px}.v13 .world-column{container-type:normal;gap:4px;justify-content:start;overflow:visible}.v13 .world-heading{min-height:22px}.v13 .world-heading h1{font-size:14px}.v13 .world-heading .eyebrow,.v13 .location-chip{display:none}.v13 .world{width:min(100%,calc(34dvh*1.5));aspect-ratio:3/2;border-radius:10px}.v13 .world.in-venue,.v13[data-phase=result] .world{width:min(100%,calc(34dvh*1.846));aspect-ratio:1200/650}.v13 .round-tools{gap:6px}.v13 .round-tools>button{min-height:40px;padding:6px 9px;font-size:12px}.v13 .round-tools>button>span,.v13 .round-tools>button>small{display:inline;font-size:12px}.v13 .round-tools small{margin-left:5px}.v13 .round-tools>button:nth-last-child(1) small{display:none}.v13 .round-tools>.round-alert{min-height:36px;font-size:12px}.v13 .dock{padding:10px;border-radius:10px}.v13 .dock-title{padding-bottom:8px}.v13 .dock-title h2{font-size:16px}.v13 .dock-title .primary-button{min-height:44px;font-size:14px;padding:8px 12px}.v13 .dock-options-body{padding-top:8px}.v13 .event-timeline{display:none}.v13 .notes-entry{min-height:36px;padding:6px 10px;font-size:12px}.v13 .dock-hint{min-height:80px;font-size:14px}.v13 .research-row,.v13 .topic-picks{grid-template-columns:repeat(3,minmax(0,1fr))!important}.v13 .research-chip,.v13 .topic-pick{padding:6px;height:52px;min-height:52px}.v13 .research-chip b,.v13 .topic-pick b{font-size:13px}.v13 .research-chip small,.v13 .topic-pick small{font-size:12px}.v13 .dialog-overlay{padding:12px}.v13 .dialog{padding:14px;max-height:calc(100dvh - 24px)}.v13 .dialog-top{top:-14px}.v13 .campaign-options{grid-template-columns:1fr 1fr}
 .v13[data-phase=travel] .game-layout,.v13[data-phase=result] .game-layout{grid-template-rows:auto minmax(0,1fr);grid-template-areas:"map" "dock"}.v13[data-phase=intro] .game-layout{display:flex;flex-direction:column}.v13[data-phase=intro] .interaction{display:none}.v13[data-phase=intro] .dock{flex:1}.v13 .identity-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.v13 .identity-card{display:flex;flex-direction:column;padding:6px;gap:4px}.v13 .identity-card .portrait{width:46px;height:64px}.v13 .identity-card .pick-meters,.v13 .identity-card .origin-line{display:none}.v13 .identity-card b{font-size:12px}.v13 .identity-card .identity-good{font-size:12px}.v13 .origin-tag i,.v13 .base-line i{display:none}.v13 .identity-card .origin-tag,.v13 .identity-card .base-line{padding:3px;font-size:12px}.v13 .party-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.v13 .party-card{padding:6px}.v13 .party-card .pick-meters,.v13 .party-card .pick-line{display:none}.v13 .party-card b{font-size:12px}
}
@media(max-height:420px){body.v13{height:auto;min-height:100dvh;overflow:auto}.v13 main{min-height:480px}.v13 .game-layout{height:auto;min-height:460px;flex:none}.v13 .dock{height:460px;max-height:520px}.v13 .world{width:100%}body.v13 .world-column{container-type:normal;overflow:visible}}

.v13 .event-timeline .last-round details{display:none}.v13 .dock-alerts{flex:none;font-size:12px;margin:0 0 8px}.v13 .dock-alerts button{padding:5px 8px;font-size:12px;border:0;background:#fff0cf;text-align:left}
/* Reset legacy layout-only rules that used higher specificity than component styles. */
body.v13 .interaction{margin:0!important}
@media(min-height:421px){body.v13 .world-column{container-type:size}}
body.v13 .world-heading{display:flex}
body.v13 .identity-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
body.v13 .party-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
body.v13 .dock-plan>.dock-title{flex-basis:auto}
@media(max-width:900px){body.v13 .world-column{container-type:normal}body.v13 .identity-card .pick-meters,body.v13 .identity-card .origin-line{display:none}body.v13 .identity-card{min-width:0;width:auto}body.v13 .start-row{font-size:12px}}

.v13 .office-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 12px}.v13 .office-actions button,.v13 .venue-occasion button{font-size:14px;min-height:40px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:var(--card)}.v13 .office-actions button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.v13 .office-actions button[data-action=file]{grid-column:1/-1;min-height:36px;font-size:12px;text-align:left}.v13 .venue-occasion{margin:0 0 10px}.v13 .venue-occasion button{width:100%;background:#fff0cf;text-align:left}
body.v13 .dock-intro .identity-cards,body.v13 .dock-intro .party-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media(max-width:900px){body.v13 .dock-intro .identity-cards,body.v13 .dock-intro .party-cards{gap:5px}body.v13 .dock-intro .identity-card{padding:6px;gap:4px}body.v13 .dock-intro .identity-card .portrait{height:64px;width:46px}}

.v13 .topic-disclosure{border:1px solid var(--line);border-radius:9px;margin:10px 0;background:var(--card)}.v13 .topic-disclosure>summary{cursor:pointer;min-height:44px;padding:10px;font-size:14px}.v13 .topic-disclosure>summary b{font-size:14px;margin-left:8px;color:var(--green)}.v13 .topic-disclosure>.topic-picks{margin:0;padding:0 8px 8px}.v13 .topic-disclosure .pick-label{display:none}.v13 .topic-disclosure+.dock-info{display:none}
@media(max-width:900px){
 body.v13[data-phase=question] .world.in-venue{width:min(100%,calc(28dvh*1.846))}
 .v13 .answer-list{gap:6px}
 .v13 .answer-option{padding:8px}.v13 .answer-line{font-size:14px;line-height:1.35}.v13 .answer-faces{margin-top:4px;gap:5px}.v13 .q-status{margin:0 0 6px}
}
@media(max-width:900px){.v13 #dock .answer-option{min-height:64px;padding:8px}.v13 #dock .answer-line{margin:0}.v13 #dock .answer-faces{margin-top:4px}}

.v13 .round-tools{grid-template-columns:minmax(0,1fr)}

@media(max-width:900px){.v13 #dock .answer-copy{gap:4px}.v13 #dock .answer-line{display:flex;align-items:center}.v13 #dock .answer-number{flex:none;width:20px;height:20px;line-height:20px}.v13 #dock .answer-chips .face-chip{min-height:22px;height:22px;font-size:12px;padding:2px 4px}.v13 #dock .answer-chips{gap:4px}}

/* Fundraising is a stable reading list: one person per row, with terms and costs underneath. */
.v13 #dock .donor-cards{display:flex;flex-direction:column;gap:6px;margin:8px 0;align-items:stretch}
.v13 #dock .donor-row{display:flex;flex-direction:column;gap:5px;min-height:0;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--card);box-shadow:none;text-align:left;line-height:1.4}
.v13 #dock .donor-row[aria-pressed=true]{border-color:var(--green);background:#f0f5ef;box-shadow:inset 3px 0 0 var(--green)}
.v13 #dock .donor-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;width:100%;font-size:14px}
.v13 #dock .donor-heading>b{font-size:14px;font-weight:700;flex:none}.v13 #dock .donor-benefit{padding:0;border:0;font-size:12px;font-weight:600;line-height:1.4;color:var(--green);width:auto;text-align:right}
.v13 #dock .donor-terms,.v13 #dock .donor-cost{display:grid;grid-template-columns:26px minmax(0,1fr);gap:6px;font-size:12px;line-height:1.45}.v13 #dock .donor-terms>b,.v13 #dock .donor-cost>b{font-size:12px;font-weight:500;color:var(--muted)}
.v13 #dock .donor-cost>span{color:#854c3e}.v13 #dock .donor-status{font-size:12px;color:var(--muted)}

.v13 .office-actions{grid-template-columns:repeat(5,minmax(0,1fr))}.v13 .office-actions button[data-action=file]{grid-column:auto;min-height:40px;text-align:center;font-size:12px}
@media(max-width:900px){.v13 .round-tools{grid-template-columns:minmax(0,1fr) auto;align-items:stretch}.v13 .round-tools>.round-alert{grid-column:auto;font-size:12px}.v13 .round-tools>button:only-child{grid-column:1/-1}}

/* Keep the round and budget from shrinking into each other on narrow screens. */
@media(max-width:900px){
 .v13 .hud .hud-day,.v13 .hud .hud-money{flex:0 0 auto;min-width:max-content}
 .v13 .hud .hud-race{flex:1;min-width:0}
 .v13 .hud .hud-day strong,.v13 .hud .hud-money strong{font-size:13px;letter-spacing:0}
 .v13 .hud strong span{font-size:inherit;margin-left:3px}
 .v13 .hud .race-summary{gap:0 8px;line-height:1.25}
}
@media(max-width:600px){.v13 .hud .race-summary>span:nth-child(3){display:none}}


/* Planning: current information and decisions share the action dock. */
.v13 .planning-briefing,.v13 .pending-decisions{display:grid;gap:12px;min-width:0}
.v13 .pending-decisions:empty{display:none}
.v13 .dock-options-body>.pending-decisions:not(:empty){margin-bottom:12px}
.v13 .round-briefing{display:grid;gap:9px;min-width:0}
.v13 .round-briefing .card-head{margin:0;flex-wrap:wrap;gap:3px 8px}
.v13 .round-briefing .card-head b{font-size:16px}.v13 .round-briefing .card-head span{font-size:12px}
.v13 .round-briefing p{margin:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.v13 .round-briefing .round-objective{font-size:14px;color:var(--ink)}
.v13 .round-outcome{display:grid;gap:5px;padding:10px 0;border-block:1px solid var(--line)}
.v13 .round-outcome h3{margin:0;font-size:12px;color:var(--muted)}
.v13 .round-outcome p>b{margin-right:6px}.v13 .rival-intel{color:var(--muted)}
.v13 .briefing-intel{display:block;width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--card);font-size:13px;line-height:1.5;text-align:left;color:var(--green)}
.v13 .briefing-disclosure{border:1px solid var(--line);border-radius:9px;margin:0 0 12px;background:var(--card)}
.v13 .briefing-disclosure>summary{padding:10px;min-height:44px;cursor:pointer;font-size:13px;line-height:1.5}
.v13 .briefing-disclosure>.round-briefing{padding:0 10px 10px}
.v13 .pending-decisions>.offer-card,.v13 .pending-decisions>.crisis-card,.v13 .pending-decisions>.campaign-card{margin:0;padding:10px;border:1px solid var(--line);border-radius:9px}
.v13 .pending-decisions>.crisis-card{border-color:#c4573e}
.v13 .pending-decisions>.offer-card{border-color:#d9c48d}
.v13 .pending-decisions .deal-face{flex-basis:36px;width:36px;height:36px}
.v13 .pending-decisions .deal-face svg{width:55px;left:-8px;top:-2px}
.v13 .pending-decisions .deal-who b{font-size:14px}.v13 .pending-decisions .deal-when{font-size:12px}
.v13 .pending-decisions .deal-line{padding:8px 10px;font-size:14px;line-height:1.5}
.v13 .pending-decisions .deal-cols{display:flex;flex-direction:column;gap:4px}
.v13 .pending-decisions .deal-col{display:grid;grid-template-columns:32px minmax(0,1fr);gap:3px 8px;padding:4px 0;background:transparent;font-size:13px;border-radius:0}
.v13 .pending-decisions .deal-col>b{grid-column:1;grid-row:1;font-size:12px}
.v13 .pending-decisions .deal-col>span{grid-column:2}.v13 .pending-decisions .deal-get{color:var(--green)}.v13 .pending-decisions .deal-cost{color:#854c3e}
.v13 .pending-decisions .offer-actions button{min-height:44px;font-size:14px}.v13 .pending-decisions .offer-actions button small{font-size:12px}
.v13 .pending-decisions .campaign-clash{padding:0;margin:0;border:0}
.v13 .pending-decisions .campaign-options{grid-template-columns:minmax(0,1fr);gap:8px}
.v13 .pending-decisions .campaign-option h4{font-size:14px}.v13 .pending-decisions .campaign-card p{font-size:13px;line-height:1.5}
.v13 .pending-decisions .crisis-text,.v13 .pending-decisions .crisis-note{font-size:13px;line-height:1.5}
.v13 .pending-decisions .crisis-actions button{font-size:14px}.v13 .pending-decisions .crisis-actions small{font-size:12px;line-height:1.5}
.v13 .addon-picks>button{grid-column:1/-1;width:100%;min-width:0;min-height:44px;font-size:14px;line-height:1.5;white-space:normal}
.v13 .staff-summary{margin:8px 0;font-size:13px;line-height:1.5;color:var(--muted)}

/* A first-visit hint stays above the town's interactive buildings and people. */
.v13 .map-tip{position:absolute;z-index:1100;top:8px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 16px);min-width:0;min-height:40px;padding:8px 12px;border:1px solid #c8c6b4;border-radius:8px;background:#fffdf7f2;color:var(--ink);box-shadow:0 2px 8px #263c4812;font-size:12px;font-weight:500;line-height:1.4;text-align:center}
.v13 .opening-picks{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
.v13 .opening-picks button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;min-width:0;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--card);font-size:14px;line-height:1.4;text-align:left}
.v13 .opening-picks button small{font-size:12px;color:var(--muted)}
.v13 .opening-picks button[aria-pressed=true]{border-color:var(--green);background:#f0f5ef;box-shadow:inset 3px 0 0 var(--green);color:var(--ink)}
.v13 .platform-summary{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--card)}
.v13 .platform-summary h3{margin:0 0 10px;font-size:16px}
.v13 .platform-summary ol{margin:0;padding-left:24px}.v13 .platform-summary li{padding:8px 0;line-height:1.5}
.v13 .platform-summary li+li{border-top:1px solid var(--line)}
.v13 .platform-summary li>b{font-size:14px}.v13 .platform-summary li::marker{color:var(--green);font-weight:700}
.v13 .platform-summary blockquote{margin:5px 0;padding:0;border:0;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.v13 .platform-summary small{font-size:12px;color:var(--muted)}
@media(max-width:900px){
 .v13 .planning-briefing,.v13 .pending-decisions{gap:8px}.v13 .round-briefing{gap:7px}
 .v13 .round-outcome{padding:8px 0}.v13 .briefing-disclosure{margin-bottom:8px}
 .v13 .map-tip{top:4px;min-height:40px;padding:7px 10px}
}

/* Planning uses one command desk; no duplicate information bar below the map. */
.v13[data-phase=plan] .interaction{display:none}
.v13[data-phase=plan] .game-layout{grid-template-areas:"map dock";grid-template-rows:minmax(0,1fr)}
.v13 .dock:has(.planning-briefing){height:auto;max-height:100%;align-self:start}
.v13 .staff-summary small{display:block;font-size:12px}
.v13 .map-tip{pointer-events:auto}
.v13 .challenge-decision{padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff6e3}
.v13 .challenge-decision p{font-size:13px;margin:6px 0}.v13 .challenge-decision>div{display:flex;flex-direction:column;gap:6px}.v13 .challenge-decision button{font-size:13px;padding:7px;text-align:left}
.v13 .round-outcome h3{font-size:14px;margin:0 0 8px}.v13 .round-outcome .round-feedback{font-weight:700;color:var(--green)}
@media(max-width:900px){.v13[data-phase=plan] .game-layout{grid-template-areas:"map" "dock";grid-template-rows:auto minmax(0,1fr)}}

.v13[data-phase=plan] .event-timeline{display:none}

/* Phone planning gives the command panel the space previously reserved for a fixed map. */
.v13 .map-toggle{display:none}
.v13 .main-action-guide{font-size:12px;color:var(--green);font-weight:700;margin:8px 0}
.v13 .routine-work{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}
.v13 .routine-work h3{font-size:14px;margin:0 0 4px}
.v13 .decision-guide{font-size:12px;line-height:1.5;color:var(--muted);margin:0 0 8px}
.v13 .readiness-note{padding:10px;border-radius:8px;background:#f5f1e5;margin:8px 0;font-size:13px;line-height:1.5}
.v13 .readiness-note p{font-size:12px;margin:4px 0 8px}
.v13 .readiness-note button{min-height:44px;font-size:13px}
.v13 details.pending-decisions{display:block;border:1px solid #d8b778;border-radius:9px;padding:10px;margin:12px 0;background:#fffaf0}
.v13 .pending-decisions>summary{min-height:24px;cursor:pointer;font-size:14px;font-weight:600;line-height:1.6}
.v13 .pending-decisions[open]>summary{margin-bottom:8px}
.v13 .pending-decisions>section,.v13 .pending-decisions>article{margin-top:10px}
/* Reserve a separate row for the check, rather than placing it over the party name. */
body.v13 .dock-intro .party-card.pick-card{display:grid;grid-template-columns:minmax(0,1fr) 22px;align-content:start;align-items:center;min-width:0}
body.v13 .party-card.pick-card .pick-mark{position:static;grid-area:1 / 2;align-self:start;flex:none}
body.v13 .party-card.pick-card .emblem{grid-area:1 / 1}
body.v13 .party-card.pick-card>b,body.v13 .party-card.pick-card>.pick-line,body.v13 .party-card.pick-card>.pick-meters{grid-column:1 / -1;width:auto;min-width:0}
@media(max-width:600px) and (min-height:421px){
 body.v13[data-phase=plan] .map-toggle{display:block;width:100%;min-height:44px;text-align:left;padding:8px 12px;font:inherit;font-size:13px;color:var(--green);border:1px solid var(--line);border-radius:8px;background:var(--card)}
 body.v13[data-phase=plan] .world-heading{display:none}
 body.v13[data-phase=plan][data-map-expanded=false] #world{display:none}
 body.v13[data-phase=plan] .game-layout{grid-template-rows:auto minmax(0,1fr);grid-template-areas:"map" "dock"}
 body.v13[data-phase=plan] .interaction{display:none}
 body.v13[data-phase=plan] .world{width:min(100%,calc(30dvh * 1.5))}
 body.v13[data-phase=recap] .world-column{display:none}
 body.v13[data-phase=recap] .game-layout{grid-template-rows:minmax(0,1fr);grid-template-areas:"dock"}
 .v13 .campaign-options{grid-template-columns:1fr}
 .v13 .staff-advisor{margin:0;padding:10px}
 .v13 .routine-work,.v13 .readiness-note{scroll-margin-top:8px}
}

.v13 .possible-questions>summary{min-height:36px;padding:8px 0;cursor:pointer;font-size:12px;line-height:1.5;color:var(--muted)}
.v13 .possible-questions>.research-row{margin:0}
.v13 .routine-work>.research-disclosure{margin:8px 0}

.v13 .mobile-crisis-result{display:none}
@media(max-width:600px) and (min-height:421px){.v13 .mobile-crisis-result{display:block;margin:8px 0;padding:10px;border-left:3px solid #b48b44;background:#fff2da;font-size:13px;line-height:1.5}}

/* Discover all main itineraries without expanding the map or guessing a building. */
.v13 .action-menu{margin:0 0 10px;border:1px solid var(--line);border-radius:9px;background:var(--card)}
.v13 .action-menu>summary{padding:10px;min-height:44px;font-size:14px;font-weight:700;cursor:pointer;line-height:1.5}
.v13 .action-menu>summary span{font-size:12px;font-weight:400;color:var(--muted);margin-left:6px}
.v13 .action-menu nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:0 10px}
.v13 .action-menu nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:7px 2px;border:1px solid var(--line);border-radius:7px;background:#fffdf7;color:var(--ink);font-size:14px;line-height:1.4}
.v13 .action-menu nav button small{font-size:12px;color:var(--muted);font-weight:400}
.v13 .action-menu nav button[aria-pressed=true]{border-color:var(--green);box-shadow:inset 0 -3px var(--green)}
.v13 .action-menu>p{font-size:12px;line-height:1.5;color:var(--muted);padding:0 10px;margin:8px 0}
.v13 .advisor-detail>summary,.v13 .advisor-intel>summary{min-height:36px;padding:8px 0;font-size:12px;cursor:pointer;color:var(--muted)}
.v13 .advisor-options{margin-top:8px}
.v13 .research-disclosure>summary>span{font-size:12px}

/* Ending titles wrap within the same report on phones and desktops. */
.v13 .report-head>div{min-width:0;width:100%}
.v13 .report-titles{display:grid;gap:12px;margin:14px 0;min-width:0}
.v13 .report-title{padding:12px 14px;border:1px solid #ddd4bd;border-radius:12px;background:#f5efdf;min-width:0;overflow-wrap:anywhere}
.v13 .report-title-badge{display:inline-flex;align-items:center;gap:7px;padding:4px 10px;border-radius:6px;background:#e5d5a7;color:#514022;font-size:14px;font-weight:800;max-width:100%;box-sizing:border-box}
.v13 .report-title-line{font-family:"Noto Serif TC","Songti TC",serif;font-size:18px;line-height:1.6;margin:9px 0 4px;white-space:normal}
.v13 .report-title-detail{display:block;color:var(--muted);font-size:12px;line-height:1.6}
.v13 #count-verdict{overflow-wrap:anywhere}
@media(max-width:600px){.v13 .report-title{padding:11px 12px}.v13 .report-title-line{font-size:16px}}
