*{box-sizing:border-box}:root{--ui-bg: rgba(16, 22, 28, .78);--ui-bg-strong: rgba(16, 22, 28, .94);--ui-border: rgba(255, 255, 255, .14);--ui-text: #f4efe7;--ui-text-muted: rgba(244, 239, 231, .68);--ui-accent: #63d589}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden;background:#151d24;color:var(--ui-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}canvas{display:block;width:100%;height:100%}.hud{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;display:grid;grid-template-rows:auto 1fr auto auto;gap:8px;padding:14px}.score-board,.message-chip,.stack-card{pointer-events:auto;border:1px solid var(--ui-border);background:var(--ui-bg);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 10px 30px #00000038}.score-status{grid-row:1;justify-self:start;pointer-events:none}.score-board{display:grid;gap:7px;width:min(92vw,430px);padding:8px;border-radius:8px}.score-summary{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.score-total,.stack-label,.district-label{display:grid;min-height:40px;place-items:center;padding:0 12px;border-radius:6px;background:#ffffff14;white-space:nowrap;font-size:13px}.score-total{color:var(--ui-accent);font-size:15px}.score-rule{flex-basis:100%;color:var(--ui-text-muted);font-size:11px;font-weight:700}.objective-heading{padding:2px 3px 0;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.objective-list{display:grid;gap:5px}.objective-item{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:42px;padding:5px 8px;border:1px solid transparent;border-radius:6px;background:#ffffff14}.objective-check{color:var(--ui-text-muted);font-size:17px;font-weight:900}.objective-content{display:grid;gap:1px;min-width:0}.objective-content strong{font-size:12px}.objective-content>span{overflow:hidden;color:var(--ui-text-muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.objective-progress{color:var(--ui-text-muted);font-size:11px;font-weight:800;white-space:nowrap}.objective-item.advancing{border-color:#63d589b8;background:#63d58924}.objective-item.advancing .objective-check,.objective-item.advancing .objective-content>span{color:var(--ui-accent)}.objective-item.completed{background:#63d5892e}.objective-item.completed .objective-check,.objective-item.completed .objective-progress{color:var(--ui-accent)}.message-chip{grid-row:3;align-self:end;justify-self:center;min-height:36px;max-width:min(92vw,520px);padding:8px 12px;border-radius:8px;color:#f4efe7eb;font-size:13px;text-align:center}.building-stack-dock{pointer-events:auto;position:fixed;right:28px;top:50%;display:grid;gap:12px;width:230px;transform:translateY(-50%)}.stack-card.active{border-color:color-mix(in srgb,var(--ui-accent) 80%,transparent);box-shadow:0 0 0 2px #63d58921,0 10px 30px #00000038}.stack-card.active{background:color-mix(in srgb,var(--ui-bg-strong) 86%,var(--ui-accent))}.building-stack{position:relative;isolation:isolate}.building-stack:before,.building-stack:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;border:1px solid var(--ui-border);border-radius:12px;background:#1b232bf0;content:""}.building-stack:before{transform:translate(8px,8px) rotate(1deg)}.building-stack:after{transform:translate(15px,15px) rotate(2deg)}.building-stack:not(.has-cards):before,.building-stack:not(.has-cards):after{display:none}.stack-card{position:relative;display:grid;justify-items:center;gap:10px;min-height:390px;padding:18px 14px 14px;border-radius:12px;background:var(--ui-bg-strong);cursor:pointer;text-align:center}.stack-remaining{position:absolute;top:9px;right:9px;padding:3px 7px;border-radius:999px;background:#ffffff1a;color:var(--ui-text-muted);font-size:10px;font-weight:800}.stack-icon{width:90px;height:90px;margin-top:10px;object-fit:contain}.stack-building-name{max-width:100%;overflow:hidden;font-size:18px;text-overflow:ellipsis;white-space:nowrap}.stack-category-row{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;min-height:40px}.category-pill{display:inline-flex;align-items:center;min-height:18px;padding:1px 5px;border:1px solid currentColor;border-radius:999px;background:color-mix(in srgb,currentColor 13%,transparent);font-size:9px;font-weight:800;line-height:1}.range-pill{display:inline-flex;align-items:center;min-height:18px;padding:1px 6px;border:1px solid #55d6e8;border-radius:999px;background:#55d6e81f;color:#78e5f2;font-size:9px;font-weight:800}.stack-building-rules{display:grid;align-content:start;gap:6px;width:100%;min-height:94px;text-align:left}.stack-requirement,.relationship-row{padding:5px 6px;border-radius:6px;background:#ffffff0f;font-size:9px;line-height:1.3}.stack-requirement{border:1px solid rgba(241,199,91,.45);color:#f1c75b;font-weight:800}.relationship-row{display:grid;gap:2px}.relationship-row strong{font-size:8px;text-transform:uppercase;letter-spacing:.05em}.relationship-row span{color:var(--ui-text-muted)}.relationship-positive strong{color:var(--ui-accent)}.relationship-negative strong{color:#ff807a}.category-transport{color:#75bfff}.category-housing{color:#ffb56b}.category-civic{color:#d6a3ff}.category-agriculture{color:#e4c75a}.category-energy{color:#67dbe8}.category-science{color:#8ca8ff}.category-industry{color:#c0c5cc}.category-nature{color:#72d98b}.stack-rotate{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;min-height:42px;border:1px solid var(--ui-border);border-radius:7px;background:#ffffff14;color:var(--ui-text);cursor:pointer;font-size:13px;font-weight:800}.stack-rotate:hover{border-color:color-mix(in srgb,var(--ui-accent) 75%,transparent);background:#63d5892e}.stack-hint{color:var(--ui-text-muted);font-size:10px}@media (max-width: 640px){.hud{padding:10px}.message-chip,.score-board,.score-status{width:calc(100vw - 20px)}.score-total,.stack-label,.district-label{padding:0 8px}.score-rule{font-size:10px}.objective-item{min-height:36px;padding:3px 6px}.message-chip{justify-self:stretch;max-width:none}.building-stack-dock{right:14px;top:auto;bottom:58px;width:160px;transform:none}.stack-card{gap:5px;min-height:280px;padding:12px 9px 8px}.stack-icon{width:52px;height:52px;margin-top:8px}.stack-building-name{font-size:14px}.stack-category-row{min-height:22px}.stack-building-rules{gap:3px;min-height:72px}.stack-requirement,.relationship-row{padding:3px 4px;font-size:7px}.stack-rotate{min-height:36px}.stack-hint{display:none}}
