html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'Inter', sans-serif;
}

#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

#ui {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    z-index: 10;
}

#score {
    font-size: 5rem;
    font-weight: 200;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 20px rgba(13, 110, 253, 0.5);
}

.instructions {
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.7rem;
    margin-top: 5px;
}

#game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 17, 19, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(13, 110, 253, 0.3);
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    color: #fff;
    display: none;
    z-index: 2000;
    width: 380px;
    max-width: 90vw;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    opacity: 0;
}

#game-over h2 {
    margin-top: 0;
    color: #0d6efd;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.stats-container {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.stat-label { color: rgba(255, 255, 255, 0.5); font-size: 0.75rem; text-transform: uppercase; }
.stat-value { font-weight: 700; color: #fff; }
.high-score-val { color: #00d2ff; }

.chart-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-restart {
    background: #0d6efd;
    border: none;
    color: #fff;
    padding: 14px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-restart:hover {
    background: #0b5ed7;
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(13, 110, 253, 0.5);
}

/* Fondo similar al Index */
#canvas-particles {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.tower-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(80px);
    pointer-events: none;
}

.blob-1 { top: -10%; right: -10%; }
.blob-2 { bottom: -10%; left: -10%; background: radial-gradient(circle, rgba(0, 210, 255, 0.1) 0%, transparent 70%); }

/* Footer Dividido */
.game-footer-left, .game-footer-right {
    position: fixed;
    bottom: 20px;
    z-index: 100;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-footer-left {
    left: 20px;
    transform: translateX(-50px);
}

.game-footer-right {
    right: 20px;
    transform: translateX(50px);
}

body.show-footer .game-footer-left, 
body.show-footer .game-footer-right {
    opacity: 1;
    transform: translateX(0);
}

/* Ocultar footer estándar */
footer, #footer-placeholder {
    display: none !important;
}
