/* GLOBAL */
body {
    background: #0a0c10;
    color: #e6e6e6;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
}

/* TITLE */
.title {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffcc00;
    margin-bottom: 40px;
}

/* RESERVISTEN PANEL */
#reserves-section {
    background: #161b22;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

/* RESERVISTEN-BALKEN */
.reserves-bar-bg {
    width: 100%;
    height: 28px;
    background: #1a1d24;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #2c3240;
    margin-top: 10px;
}

.reserves-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00eaff, #0077ff);
    transition: width 0.4s ease;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes reservesPulse {
    0% { opacity: 0.85; }
    50% { opacity: 1; }
    100% { opacity: 0.85; }
}

/* MAIN BAR */
.main-bar-bg {
    width: 100%;
    height: 32px;
    background: #3a0000;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #550000;
    margin-bottom: 10px;
}

.main-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00aaff, #0088ff);
    transition: width 0.4s ease;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.9; }
    50% { opacity: 1; }
    100% { opacity: 0.9; }
}

.main-info {
    display: flex;
    justify-content: space-between;
    color: #9bbcff;
    font-size: 14px;
}

/* RATE CONTROL */
#ratecontrol-section {
    background: #161b22;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

/* CITIES */
.cities {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

/* Stadtbox */
.city-box {
    text-align: center;
    padding: 10px;
}

/* PNG */
.city-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
    transition: 0.3s ease;
}

/* Name */
.city-name {
    color: #9bbcff;
    font-size: 14px;
    margin-bottom: 6px;
}

/* Fortschrittsbalken */
.city-progress-bg {
    width: 100%;
    height: 10px;
    background: #1a1d24;
    border-radius: 4px;
    overflow: hidden;
}

.city-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00aaff, #0088ff);
    transition: width 0.4s ease;
}

/* Nächste Stadt */
.city-next {
    opacity: 0.5;
}

/* RESET BUTTON */
.reset-btn {
    padding: 10px 20px;
    background: #ff4444;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
}

/* --- GLOW FIX (sauber & kompatibel) --- */

/* Entfernt alte verfärbende Effekte */
.city-liberated .city-icon,
.city-active .city-icon {
    filter: none !important;
}

/* Aktive Stadt → ROTER Glow */
.glow-red .city-icon {
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.9));
    transform: scale(1.1);
}

/* Befreite Stadt → BLAUER Glow */
.glow-blue .city-icon {
    filter: drop-shadow(0 0 15px rgba(0, 150, 255, 0.9));
    transform: scale(1.05);
}

.stats-button {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: #ffaa00;
    color: black;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.stats-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats-overlay.hidden {
    display: none;
}

.stats-window {
    background: #111;
    padding: 20px;
    width: 600px;
    max-height: 80%;
    overflow-y: auto;
    border: 2px solid #ffaa00;
}

.close-btn {
    float: right;
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

/* MAINBAR STATUS */
.main-status {
    margin-top: 8px;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

/* Rate farbig hervorheben */
.main-rate {
    font-weight: bold;
    font-size: 16px;
}

/* Forecast */
.main-forecast {
    font-size: 14px;
    opacity: 0.8;
}