:root{--comic-ink:#172536;--comic-gold:#f3bd42;--comic-cream:#fff0c9}
.command-deck{display:flex;justify-content:center;gap:8px;padding:9px 12px;background:linear-gradient(#f0c65f,#d89535);border-bottom:3px solid #172536}
.command-deck button{display:flex;align-items:center;gap:7px;min-width:112px;min-height:43px;padding:5px 12px;border:2px solid #172536;border-radius:10px;background:linear-gradient(#fff3cb,#e9c57e);color:#1b3045;box-shadow:0 4px 0 #26394b;font-size:9px;font-weight:1000;cursor:pointer}
.command-deck button:hover{transform:translateY(-2px);filter:brightness(1.08)}
.command-deck svg{width:24px;height:24px;fill:#b84d32;stroke:#26394b;stroke-width:1.6}
.command-overlay{z-index:1050}.command-panel{width:min(940px,95vw);max-height:88vh;display:flex;flex-direction:column;overflow:hidden;padding:22px;border:3px solid #172536;border-radius:17px;background:linear-gradient(145deg,#fff1cb,#e4c78e);color:#26384b;box-shadow:0 6px 0 #102338,0 24px 70px #0009}
.command-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:104px;padding:12px 16px;background:linear-gradient(90deg,#fff1cbf2 0%,#fff1cbc9 48%,#fff1cb22 100%),url("../assets/comic-realm-banner.svg") right center/auto 100% no-repeat;border:2px solid #a77b42;border-radius:11px;border-bottom:4px solid #b38b4e}
.command-panel-header h2{margin:4px 0;color:#243d57;font: bold 25px Georgia,serif}
.command-ribbon,.command-panel-intro>span{color:#9b4a2a;font-size:8px;font-weight:1000;letter-spacing:.2em}
.command-panel-content{min-height:0;overflow:auto;padding:16px 4px 8px}
.command-panel-intro h3{margin:5px 0;color:#203c58;font: bold 26px Georgia,serif}
.command-panel-intro p{margin:0 0 15px;color:#5e5547;font-size:11px;line-height:1.5}
.command-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:13px 0}
.command-summary>div{display:flex;flex-direction:column;gap:4px;padding:10px;border:2px solid #a57c43;border-radius:9px;background:linear-gradient(145deg,#fff8df,#e7d0a0)}
.command-summary small{color:#87613a;font-size:7px;font-weight:1000}.command-summary strong{color:#203b55;font: bold 14px Georgia,serif}
.command-section-title{margin:18px 0 8px;color:#a24e2d;font-size:8px;font-weight:1000;letter-spacing:.17em}
.command-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.command-choice,.command-policy,.command-card{padding:12px;border:2px solid #ad8750;border-radius:9px;background:#fff5d8;color:#243a50}
.command-choice{display:flex;flex-direction:column;gap:5px;text-align:left;cursor:pointer}
.command-choice.is-current{border-color:#3d7848;background:linear-gradient(145deg,#e5f4ce,#b6d18e)}
.command-choice strong,.command-policy strong,.command-card strong{font: bold 13px Georgia,serif;color:#263b52}
.command-choice small,.command-note,.command-policy p,.command-card p{color:#675b49;font-size:9px;line-height:1.5}
.command-note{margin:12px 0;padding:10px;border-left:4px solid #d49a36;background:#f7e5bb}
.command-meter-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.command-meter{display:grid;grid-template-columns:90px 1fr 28px;align-items:center;gap:8px;color:#544735;font-size:9px;text-transform:capitalize}
.command-meter i{height:10px;overflow:hidden;border:1px solid #8f744d;border-radius:8px;background:#d6c39d}
.command-meter i b{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#bb5438,#e5b44c,#68a65a)}
.command-policy-list,.command-card-list,.command-history-list{display:flex;flex-direction:column;gap:8px}
.command-policy,.command-card{display:flex;align-items:center;gap:12px}
.command-policy>div,.command-card>div{flex:1;min-width:0}
.command-policy p,.command-card p{margin:4px 0 0}
.command-policy button,.command-card button,.command-inline button,.command-actions button{min-height:34px;padding:0 12px;border:2px solid #20374d;border-radius:7px;background:linear-gradient(#f7d67f,#d69a37);color:#24384d;font-size:8px;font-weight:1000;cursor:pointer;box-shadow:0 3px 0 #20374d}
.command-inline{display:flex;gap:8px}.command-inline select{flex:1;min-width:0;padding:9px;border:2px solid #a77b42;border-radius:7px;background:#fff8e4;color:#26384b}
.command-actions{margin:12px 0}.command-card-art{display:grid;place-items:center;width:48px;height:58px;flex:0 0 48px;border:2px solid #a77b42;border-radius:7px;background:linear-gradient(145deg,#fff0b9,#c98b3c);font-size:25px}
.command-card small{display:block;margin-top:4px;color:#936b3c;font-size:8px;text-transform:uppercase}
.command-resource-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.command-resource{display:flex;justify-content:space-between;padding:9px;border:1px solid #c5a46d;border-radius:7px;background:#fff6dc;color:#5d503e;font-size:10px;text-transform:capitalize}
.command-resource strong{color:#263c53}.command-history{padding:9px;border-bottom:1px solid #c8ad7d}
.command-history strong{color:#9d4d2d;font-size:8px}.command-history p{margin:4px 0;color:#554a3a;font-size:10px}
@media(max-width:850px){.command-deck{justify-content:flex-start;overflow-x:auto}.command-deck button{min-width:94px}.command-panel{padding:14px}.command-choice-grid{grid-template-columns:1fr}}
@media(max-width:560px){.command-deck button{min-width:72px;min-height:40px;flex-direction:column;gap:1px;padding:3px;font-size:6px}.command-deck svg{width:19px;height:19px}.command-meter-list{grid-template-columns:1fr}.command-resource-grid{grid-template-columns:repeat(2,1fr)}.command-inline{flex-direction:column}.command-policy,.command-card{align-items:flex-start;flex-wrap:wrap}}


/* Lite city-builder construction panel */
.build-panel{width:min(94vw,860px);max-height:min(88vh,820px);overflow:auto;padding:22px;background:linear-gradient(145deg,#f3e5c5,#d5bd8c);border:4px solid #38271d;border-radius:16px;box-shadow:0 8px 0 #241811,0 24px 60px #000a;color:#3c291d}
.build-header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:3px solid #9b7542;padding-bottom:12px}
.build-header-title{display:flex;align-items:center;gap:14px;min-width:0}
.build-header-icon{width:58px;height:58px;flex:0 0 58px;filter:drop-shadow(0 3px 1px #68482c)}
.build-header h2{margin:3px 0 0;font-family:Georgia,serif;font-size:clamp(20px,3vw,30px);letter-spacing:.04em;color:#3b291e}
.build-intro{max-width:680px;margin:14px 0;color:#60472e;line-height:1.45}
.build-category-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0;padding:7px;background:#7c5a3b;border:2px solid #3d2b20;border-radius:10px}
.build-category-tabs button{border:2px solid #5c422b;border-radius:7px;padding:8px 12px;background:#e8d5ad;color:#4c3523;font-weight:900;font-size:11px;letter-spacing:.06em}
.build-category-tabs button.is-active{background:#e5b85e;color:#382719;box-shadow:inset 0 -3px 0 #a36e32}
.build-category-tabs button:disabled{opacity:.48;cursor:not-allowed}
.build-stats{display:flex;align-items:center;justify-content:space-between;margin:12px 0;padding:10px 13px;background:#ead9b7;border:1px solid #aa8550;border-radius:8px;font-size:11px;font-weight:900;letter-spacing:.08em}
.build-stats strong{font-size:20px;color:#3c7b4b}
.build-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.build-option{display:flex;align-items:center;gap:12px;min-height:112px;padding:12px;text-align:left;border:3px solid #72502f;border-radius:11px;background:linear-gradient(145deg,#fff0cf,#d6bb87);color:#3d2a1d;box-shadow:0 4px 0 #65452b;cursor:pointer;transition:transform .14s,box-shadow .14s,border-color .14s}
.build-option:hover,.build-option:focus-visible{transform:translateY(-2px);border-color:#bd7a32;box-shadow:0 6px 0 #65452b;outline:none}
.build-option.is-selected{border-color:#3e8a55;background:linear-gradient(145deg,#f3edc9,#c7d5a0)}
.build-option-art{display:grid;place-items:center;width:74px;height:74px;flex:0 0 74px;background:#8a6843;border:2px solid #4a3425;border-radius:10px;box-shadow:inset 0 0 0 3px #c7a36a}
.build-option-art svg{width:64px;height:64px}
.build-option-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.build-option-copy strong{font-family:Georgia,serif;font-size:16px}
.build-option-copy small{font-size:11px;color:#6b4c2f}
.build-footer{margin-top:16px;padding-top:12px;border-top:2px solid #b18a52;color:#6b4c2f;font-size:11px;line-height:1.4}
#road-build-cancel:not(.hidden){background:#a44739;border-color:#5a2a22;color:#fff2d2}
@media(max-width:680px){.build-panel{padding:14px}.build-option{min-height:90px}.build-option-art{width:62px;height:62px;flex-basis:62px}.build-option-art svg{width:54px;height:54px}.build-category-tabs button{flex:1 1 42%}}
