/* ===== OPUS CITY - Main Styles ===== */
/* Black & Orange Theme - 3D City Visualization */

:root {
    --primary-orange: #ff6b00;
    --light-orange: #ff9500;
    --dark-orange: #cc5500;
    --accent-orange: #ffaa00;
    --bg-black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --medium-gray: #2a2a2a;
    --light-gray: #3a3a3a;
    --text-white: #ffffff;
    --text-gray: #888888;
    --glow-orange: 0 0 20px rgba(255, 107, 0, 0.5);
    --building-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-black);
    color: var(--text-white);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* ===== WEATHER EFFECTS ===== */
#weather-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

#rain-container {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
}

#rain-container.active {
    opacity: 1;
}

.raindrop {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(transparent, rgba(174, 194, 224, 0.8));
    animation: rain-fall linear infinite;
}

@keyframes rain-fall {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(100vh); }
}

#snow-container {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
}

#snow-container.active {
    opacity: 1;
}

.snowflake {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: snow-fall linear infinite;
}

@keyframes snow-fall {
    0% { 
        transform: translateY(-20px) rotate(0deg); 
    }
    100% { 
        transform: translateY(100vh) rotate(360deg); 
    }
}

#lightning {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
}

#lightning.flash {
    animation: lightning-flash 0.2s;
}

@keyframes lightning-flash {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.8; }
}

#sun {
    position: absolute;
    top: 50px;
    right: 100px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ffdd00, #ff9500);
    border-radius: 50%;
    box-shadow: 0 0 60px #ffdd00, 0 0 100px #ff9500;
    opacity: 0;
    transition: opacity 1s;
}

#sun.active {
    opacity: 1;
    animation: sun-pulse 3s ease-in-out infinite;
}

@keyframes sun-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 60px #ffdd00, 0 0 100px #ff9500; }
    50% { transform: scale(1.05); box-shadow: 0 0 80px #ffdd00, 0 0 120px #ff9500; }
}

#clouds-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.cloud {
    position: absolute;
    background: rgba(200, 200, 200, 0.3);
    border-radius: 50px;
    animation: cloud-drift linear infinite;
}

@keyframes cloud-drift {
    0% { transform: translateX(-200px); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

/* ===== HEADER / CONTROL PANEL ===== */
#control-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(10, 10, 10, 0.9));
    border-bottom: 2px solid var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    box-shadow: 0 5px 30px rgba(255, 107, 0, 0.3);
}

.logo-section h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: var(--glow-orange);
}

.logo-section .accent {
    color: var(--primary-orange);
}

.logo-section .tagline {
    font-size: 0.75rem;
    color: var(--text-gray);
    letter-spacing: 2px;
    margin-top: -5px;
}

.stats-section {
    display: flex;
    gap: 30px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 20px;
    background: var(--dark-gray);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    min-width: 120px;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-gray);
    letter-spacing: 1px;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-orange);
    font-weight: 700;
}

.wallet-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wallet-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--glow-orange);
}

.wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.7);
}

.citizen-badge {
    background: var(--primary-orange);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

#wallet-address {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.hidden {
    display: none !important;
}

/* ===== CITY CONTROLS ===== */
#city-controls {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 500;
}

.control-btn {
    width: 45px;
    height: 45px;
    background: var(--dark-gray);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    transform: scale(1.1);
}

.control-divider {
    height: 2px;
    background: var(--light-gray);
    margin: 5px 0;
}

/* ===== CITY VIEWPORT ===== */
#city-viewport {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    perspective: 1500px;
}

#city-container {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(20deg) scale(1);
    transform-origin: center center;
    transition: transform 0.5s ease;
}

#sky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, 
        #0a0a0a 0%, 
        #1a1a2e 30%, 
        #16213e 60%, 
        #1a1a2e 100%);
    transition: background 2s ease;
}

#sky.day {
    background: linear-gradient(180deg, 
        #1a1a2e 0%, 
        #2d2d44 30%, 
        #3d3d5c 60%, 
        #4a4a6a 100%);
}

/* ===== HORIZON ===== */
#horizon {
    position: absolute;
    bottom: 55%;
    left: 0;
    right: 0;
    height: 200px;
}

.mountain {
    position: absolute;
    bottom: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 150px solid var(--dark-gray);
    opacity: 0.5;
}

.mountain.m1 { left: 5%; border-bottom-color: #1a1a1a; }
.mountain.m2 { left: 30%; border-bottom-width: 180px; border-bottom-color: #151515; }
.mountain.m3 { left: 60%; border-bottom-width: 120px; border-bottom-color: #202020; }

/* ===== CITY GROUND ===== */
#city-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, 
        var(--dark-gray) 0%, 
        var(--bg-black) 100%);
    transform-style: preserve-3d;
}

/* ===== ROADS ===== */
#roads {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.road {
    position: absolute;
    background: #1a1a1a;
}

.road.horizontal {
    left: 0;
    right: 0;
    height: 40px;
    border-top: 2px dashed #333;
    border-bottom: 2px dashed #333;
}

.road.horizontal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--accent-orange) 0px,
        var(--accent-orange) 30px,
        transparent 30px,
        transparent 60px
    );
    transform: translateY(-50%);
}

.road.vertical {
    top: 0;
    bottom: 0;
    width: 35px;
    border-left: 2px dashed #333;
    border-right: 2px dashed #333;
}

.road.vertical::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: repeating-linear-gradient(
        180deg,
        var(--accent-orange) 0px,
        var(--accent-orange) 30px,
        transparent 30px,
        transparent 60px
    );
    transform: translateX(-50%);
}

/* ===== TRAIN TRACK ===== */
.train-track {
    position: absolute;
    bottom: 5%;
    left: 0;
    right: 0;
    height: 20px;
    background: #2a2a2a;
    border-top: 4px solid #444;
    border-bottom: 4px solid #444;
}

.train-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #555 0px,
        #555 20px,
        transparent 20px,
        transparent 40px
    );
    transform: translateY(-50%);
}

/* ===== BUILDINGS ===== */
#buildings-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 15%;
    transform-style: preserve-3d;
}

.building {
    position: absolute;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.building:hover {
    transform: translateY(-10px) scale(1.02);
    filter: brightness(1.2);
    z-index: 100;
}

.building-front {
    position: absolute;
    bottom: 0;
    background: linear-gradient(180deg, var(--medium-gray), var(--dark-gray));
    border: 1px solid var(--light-gray);
    box-shadow: var(--building-shadow);
    transform-style: preserve-3d;
}

.building-side {
    position: absolute;
    bottom: 0;
    background: linear-gradient(180deg, var(--dark-gray), var(--bg-black));
    border: 1px solid #222;
    transform-origin: left bottom;
    transform: skewY(-30deg);
}

.building-top {
    position: absolute;
    background: linear-gradient(135deg, var(--light-gray), var(--medium-gray));
    border: 1px solid #444;
    transform: rotateX(60deg);
    transform-origin: bottom center;
}

/* Building Windows */
.window-grid {
    position: absolute;
    top: 10px;
    left: 5px;
    right: 5px;
    bottom: 10px;
    display: grid;
    gap: 4px;
}

.window {
    background: #111;
    border: 1px solid #333;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.window.lit {
    background: linear-gradient(135deg, var(--accent-orange), var(--primary-orange));
    box-shadow: 0 0 10px var(--primary-orange);
}

/* Special Buildings */
.building.headquarters .building-front {
    background: linear-gradient(180deg, var(--dark-orange), var(--bg-black));
    border: 2px solid var(--primary-orange);
    box-shadow: var(--glow-orange), var(--building-shadow);
}

.building.headquarters::before {
    content: 'OPUS';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--primary-orange);
    text-shadow: var(--glow-orange);
    z-index: 10;
}

/* Building Antenna */
.antenna {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 30px;
    background: #444;
}

.antenna::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-orange);
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== PARKS ===== */
#parks-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 15%;
    pointer-events: none;
}

.park {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
}

.park-ground {
    position: absolute;
    bottom: 0;
    background: linear-gradient(135deg, #1a3d1a, #0d2d0d);
    border-radius: 10px;
    border: 2px solid #2a5a2a;
}

.tree {
    position: absolute;
    bottom: 0;
}

.tree-trunk {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 20px;
    background: #4a3728;
    border-radius: 2px;
}

.tree-top {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid #1a5a1a;
    filter: drop-shadow(0 0 5px rgba(26, 90, 26, 0.5));
}

.fountain {
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #3a6a8a, #2a4a6a);
    border-radius: 50%;
    border: 3px solid #4a8aba;
    box-shadow: 0 0 15px rgba(74, 138, 186, 0.5);
}

.fountain::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 25px;
    background: linear-gradient(transparent, rgba(100, 180, 255, 0.8));
    animation: fountain-spray 1s ease-in-out infinite;
}

@keyframes fountain-spray {
    0%, 100% { height: 20px; opacity: 0.8; }
    50% { height: 30px; opacity: 1; }
}

/* ===== VEHICLES ===== */
#vehicles-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.car {
    position: absolute;
    width: 30px;
    height: 15px;
    border-radius: 5px 5px 3px 3px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.car::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 5px;
    width: 18px;
    height: 8px;
    background: inherit;
    filter: brightness(0.9);
    border-radius: 3px 3px 0 0;
}

.car::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 3px;
    width: 6px;
    height: 6px;
    background: #222;
    border-radius: 50%;
    box-shadow: 15px 0 0 #222;
}

.car.orange { background: var(--primary-orange); }
.car.dark { background: #333; }
.car.gray { background: #666; }

.car-lights {
    position: absolute;
    width: 4px;
    height: 3px;
    background: #ffff00;
    border-radius: 1px;
    box-shadow: 0 0 5px #ffff00;
}

.car-lights.front { right: 0; top: 50%; transform: translateY(-50%); }
.car-lights.back { left: 0; top: 50%; transform: translateY(-50%); background: #ff0000; box-shadow: 0 0 5px #ff0000; }

/* ===== TRAIN ===== */
#train-container {
    position: absolute;
    bottom: 3%;
    left: -400px;
    animation: train-move 20s linear infinite;
}

@keyframes train-move {
    0% { left: -400px; }
    100% { left: 100%; }
}

.train {
    display: flex;
    gap: 5px;
}

.train-engine {
    width: 80px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary-orange), var(--dark-orange));
    border-radius: 5px 20px 5px 5px;
    position: relative;
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.5);
}

.train-engine .train-window {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 25px;
    height: 15px;
    background: #111;
    border: 2px solid #333;
    border-radius: 3px;
}

.train-engine .train-stripe {
    position: absolute;
    bottom: 8px;
    left: 5px;
    right: 25px;
    height: 4px;
    background: #222;
}

.train-car {
    width: 60px;
    height: 35px;
    background: linear-gradient(180deg, #444, #222);
    border-radius: 5px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.train-car .train-window {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 12px;
    background: linear-gradient(90deg, 
        var(--accent-orange) 0%, var(--accent-orange) 20%,
        #111 20%, #111 30%,
        var(--accent-orange) 30%, var(--accent-orange) 50%,
        #111 50%, #111 60%,
        var(--accent-orange) 60%, var(--accent-orange) 80%,
        #111 80%, #111 100%
    );
    border-radius: 2px;
}

/* ===== CITIZENS ===== */
#citizens-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.citizen {
    position: absolute;
    width: 8px;
    height: 16px;
    animation: citizen-walk linear infinite;
}

.citizen-head {
    width: 8px;
    height: 8px;
    background: #ffcc99;
    border-radius: 50%;
}

.citizen-body {
    width: 8px;
    height: 10px;
    background: var(--primary-orange);
    border-radius: 2px;
    margin-top: -2px;
}

@keyframes citizen-walk {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(5px) translateY(-2px); }
    50% { transform: translateX(10px) translateY(0); }
    75% { transform: translateX(15px) translateY(-2px); }
    100% { transform: translateX(20px) translateY(0); }
}

/* ===== BUILDING MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--dark-gray);
    border: 2px solid var(--primary-orange);
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: var(--glow-orange);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-orange);
}

.modal-content h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.modal-stat {
    text-align: center;
    padding: 10px;
    background: var(--medium-gray);
    border-radius: 8px;
}

.modal-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.modal-stat-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-orange);
    font-size: 1.1rem;
    margin-top: 5px;
}

/* ===== AI STATUS ===== */
#ai-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--dark-gray);
    border: 2px solid var(--primary-orange);
    border-radius: 50px;
    padding: 10px 20px;
    z-index: 500;
    box-shadow: var(--glow-orange);
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
    border-radius: 50%;
    position: relative;
    animation: ai-pulse 2s ease-in-out infinite;
}

@keyframes ai-pulse {
    0%, 100% { box-shadow: 0 0 10px var(--primary-orange); }
    50% { box-shadow: 0 0 25px var(--primary-orange); }
}

.ai-eye {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    animation: ai-blink 4s infinite;
}

.ai-eye.left { left: 10px; }
.ai-eye.right { right: 10px; }

@keyframes ai-blink {
    0%, 45%, 55%, 100% { transform: translateY(-50%) scaleY(1); }
    50% { transform: translateY(-50%) scaleY(0.1); }
}

.ai-message {
    font-size: 0.9rem;
    color: var(--text-gray);
}

#ai-text {
    animation: ai-typing 0.5s steps(30) infinite;
}

/* ===== RESOURCE PANEL ===== */
#resource-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--dark-gray);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    padding: 15px;
    z-index: 500;
}

.resource {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resource-icon {
    font-size: 1.2rem;
}

.resource-label {
    width: 50px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.resource-bar {
    width: 100px;
    height: 8px;
    background: var(--bg-black);
    border-radius: 4px;
    overflow: hidden;
}

.resource-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--dark-orange), var(--primary-orange));
    border-radius: 4px;
    transition: width 1s ease;
}

/* ===== NIGHT MODE ===== */
body.night-mode #sky {
    background: linear-gradient(180deg, 
        #000000 0%, 
        #0a0a15 30%, 
        #0f0f1a 60%, 
        #0a0a15 100%);
}

body.night-mode .building-front {
    filter: brightness(0.6);
}

body.night-mode .window.lit {
    animation: window-flicker 3s infinite;
}

@keyframes window-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .stats-section {
        gap: 15px;
    }
    
    .stat-box {
        min-width: 100px;
        padding: 5px 15px;
    }
}

@media (max-width: 900px) {
    #control-panel {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }
    
    .logo-section {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .stats-section {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .wallet-section {
        width: 100%;
        justify-content: center;
    }
    
    #city-viewport {
        top: 150px;
    }
}

@media (max-width: 600px) {
    .stat-box {
        min-width: 70px;
        padding: 5px 10px;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
    
    #ai-status {
        bottom: 10px;
        left: 10px;
        padding: 8px 15px;
    }
    
    #resource-panel {
        bottom: 10px;
        right: 10px;
        padding: 10px;
    }
    
    .resource-bar {
        width: 60px;
    }
}

/* ===== LOADING STATE ===== */
.loading {
    animation: pulse-loading 1.5s ease-in-out infinite;
}

@keyframes pulse-loading {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===== GROWTH ANIMATION ===== */
@keyframes building-grow {
    0% { 
        transform: scaleY(0);
        opacity: 0;
    }
    100% { 
        transform: scaleY(1);
        opacity: 1;
    }
}

.building.new {
    animation: building-grow 0.8s ease-out forwards;
    transform-origin: bottom center;
}
