/* Gameplay screens remain independent of the evolving atlas art. */
.primary-nav { overflow-y: auto; }
.nav-item { flex-shrink: 0; }
.prototype-bar { position: absolute; z-index: 4; top: 101px; left: 111px; display: flex; flex-wrap: wrap; gap: 9px; max-width: calc(100% - 500px); font-size: 10px; pointer-events: none; }
.prototype-bar span { padding: 6px 9px; border: 1px solid #58604a; border-radius: 4px; color: #e0d4b5; background: #18251eee; }
.prototype-bar .is-ai { color: #f6c877; border-color: #b39354; }
.map-status { top: 50px; }
.command-header h2:focus { outline: none; }
.command-body { font-size: 13px; }
.command-card > p { font: 13px/1.65 system-ui, sans-serif; color: #adbbb0; }
.command-card h3 { font-size: 20px; }
.data-row { gap: 16px; }
.data-row > span, .data-row > b { font-size: 12px; line-height: 1.6; }
.data-row > span { flex: 1; min-width: 0; }
.data-row > b { flex: 1.2; text-align: right; color: #d6cfb6; overflow-wrap: anywhere; }
.summary-lead p { font-size: 12px; line-height: 1.5; }
.summary-lead p, .summary-stat span, .summary-lead span { color: #acb9ac; }
.summary-stat b { font-size: 20px; overflow-wrap: anywhere; }
.command-summary { grid-template-columns: 1.65fr repeat(3, 1fr); }
.command-action { min-height: 38px; height: auto; padding: 9px 13px; font-size: 11px; line-height: 1.35; }
.command-action:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid #f6d38b; outline-offset: 3px; }
.screen-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.screen-toolbar label { display: grid; gap: 6px; color: #acb8ac; font-size: 11px; max-width: 100%; }
.screen-toolbar select, .screen-choice select { min-height: 40px; width: 100%; max-width: 360px; padding: 8px 34px 8px 12px; color: #efdfbc; border: 1px solid #57624f; border-radius: 5px; background: #18271f; font: 13px system-ui, sans-serif; }
.sample-label { color: #d5ba78; font: 10px system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.screen-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 18px; color: #c5d0bd; }
.screen-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.terrain-planner { margin-bottom: 24px; }
.terrain-planner .command-card { grid-column: span 6; }
.terrain-planner .command-card:last-child { grid-column: 1 / -1; }
.terrain-fit.suitable { color: #b9e3a7; }
.terrain-fit.blocked { color: #efc18e; }
.related-screens { margin-top: 25px; padding-top: 20px; border-top: 1px solid #3d493d; }
.related-screens .eyebrow { margin-bottom: 12px; }
.prototype-note { color: #98a594; font: 11px/1.6 system-ui, sans-serif; margin-top: 18px; }
.family-tree { margin: 6px 0 22px; }
.person-card { padding: 18px; border: 1px solid #55664d; border-radius: 7px; background: linear-gradient(130deg, #283a2a, #19251e); text-align: center; }
.person-card h3 { margin: 9px 0; color: #e7d9b7; font: 20px Georgia, serif; }
.person-card p, .person-card small { color: #b1bfa8; font-size: 12px; line-height: 1.6; }
.person-card small { display: block; }
.person-seal { display: grid; place-items: center; margin: auto auto 10px; width: 46px; height: 46px; border: 1px solid #a78a52; border-radius: 50% 50% 40% 40%; color: #e5bd71; background: #18251d; font: 21px Georgia, serif; }
.current-person { max-width: 440px; margin: auto; border-color: #aa8a4f; }
.kin-branch { margin-top: 24px; padding-top: 20px; border-top: 1px solid #66774e; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.succession-stage { margin-bottom: 18px; padding: 22px; background: linear-gradient(120deg, #354230, #252921); border: 1px solid #99824d; border-radius: 7px; }
.succession-stage h3 { color: #f0dcac; font: 25px Georgia, serif; margin: 12px 0; }
.succession-stage p { color: #c1c7b5; line-height: 1.65; }
.flow-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; counter-reset: step; }
.flow-steps span { padding: 9px 12px; border: 1px solid #64724f; border-radius: 4px; color: #dccda5; font-size: 11px; }
.flow-steps span::before { counter-increment: step; content: counter(step) ' / '; color: #e7ba69; }
.control-banner { margin-bottom: 18px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: #283b2a; border-left: 3px solid #c5a15d; color: #e0d9bf; line-height: 1.5; }
.control-banner span { color: #b8c3ad; font-size: 12px; }
.stock-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.stock-strip span { padding: 8px 12px; background: #28382c; border: 1px solid #55654c; border-radius: 4px; color: #bcc5b0; }
.stock-strip b { color: #ead7a5; margin-left: 8px; }
.full-order-list { margin-bottom: 24px; }
.full-order-list .rehearsal-order { padding: 16px 8px; gap: 12px; }
.full-order-list .rehearsal-order > div { flex: 1; min-width: 0; }
.full-order-list b { font-size: 14px; }
.full-order-list small, .full-order-list p { font: 12px/1.5 system-ui, sans-serif; color: #acb7a6; }
.order-status { text-transform: capitalize; color: #e0c68c; }
.session-history { padding: 18px; margin-bottom: 18px; border: 1px solid #4e5f47; border-radius: 6px; }
.session-history .timeline b { font-size: 13px; line-height: 1.6; }
.order-review { width: min(580px, calc(100vw - 28px)); max-height: calc(100dvh - 36px); box-sizing: border-box; padding: 28px; overflow: auto; color: #e3d9bd; border: 1px solid #a28c53; border-radius: 10px; background: #1b2b21; box-shadow: 0 25px 100px #0009; }
.order-review::backdrop { background: #060e0ac9; }
.order-review h2 { margin: 16px 24px 15px 0; font: 28px/1.2 Georgia, serif; }
.order-review p { font: 13px/1.7 system-ui, sans-serif; color: #bcc6b1; }
.order-review > p:not(.eyebrow) { color: #bcc6b1; font: 13px/1.7 system-ui, sans-serif; }
.order-review .eyebrow { font-size: 10px; color: #ccaf6f; }
.review-close { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; color: #e8dbb4; background: #2d402c; border: 1px solid #637252; border-radius: 50%; }
.order-review .review-error { color: #ffc3a5; }
.toast { padding: 14px 20px; color: #f1dba5; font-size: 12px; }
.toast-region { max-width: calc(100vw - 32px); }
.toast { min-width: 0; }
@media (max-width: 1180px) {
  .command-summary { grid-template-columns: repeat(3, 1fr); }
  .summary-lead { grid-column: 1 / -1; }
  .prototype-bar { max-width: calc(100% - 440px); }
}
@media (max-width: 900px) {
  .prototype-bar { left: 98px; top: 93px; max-width: calc(100% - 140px); }
  .kin-branch { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .terrain-planner .command-card { grid-column: 1 / -1; }
  html, body { min-width: 0; }
  .topbar { gap: 8px; padding: 0; }
  .brand { gap: 7px; min-width: 0; }
  .brand-mark { width: 30px; height: 30px; font-size: 19px; }
  .brand h1 { font-size: 17px; white-space: nowrap; }
  .brand .eyebrow { font-size: 7px; letter-spacing: .05em; }
  .turn-status { gap: 6px; }
  .action-points { width: 91px; padding: 6px; }
  .action-points span { font-size: 8px; }
  .settings-menu summary { width: 30px; height: 34px; }
  .prototype-bar { top: 138px; left: 16px; max-width: calc(100% - 36px); font-size: 9px; }
  .primary-nav { overflow-y: hidden; }
  .command-center { top: 126px; }
  .command-header h2 { font-size: 22px; }
  .command-summary { grid-template-columns: 1fr; }
  .summary-stat { min-height: auto; padding: 10px 12px; }
  .summary-stat b { font-size: 18px; }
  .screen-toolbar label, .screen-toolbar select { width: 100%; }
  .command-card, .command-card.wide { min-width: 0; }
  .data-row { flex-direction: column; gap: 3px; align-items: flex-start; }
  .data-row > b { text-align: left; }
  .full-order-list .rehearsal-order { grid-template-columns: 25px minmax(0, 1fr); }
  .full-order-list .rehearsal-order > div { min-width: 0; }
  .full-order-list .rehearsal-order > button, .full-order-list .rehearsal-order > time { grid-column: 2; justify-self: start; }
  .order-review { padding: 20px; }
  .map-status { top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
