/* ==========================================================================
   juegos/assets/css/juego_runner.css
   Estilos extraídos y modularizados para el Coyote Saltarín
   ========================================================================== */

.game-header { text-align: center; padding: 40px 20px 20px; position: relative; z-index: 2; }
.game-header h1 { font-size: 2.8rem; font-weight: 800; color: var(--text-main); margin-bottom: 10px; letter-spacing: -1px; }
.game-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.game-container {
    max-width: 800px; margin: 20px auto 60px; background: var(--glass-bg);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); border-radius: 30px; padding: 30px;
    box-shadow: var(--glass-shine), 0 20px 40px rgba(230, 126, 34, 0.15);
    position: relative; overflow: hidden;
}

[data-theme="dark"] .game-container {
    box-shadow: var(--glass-shine), 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(230, 126, 34, 0.15);
    border-bottom: 2px solid #E67E22;
}

.status-bar {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
    padding: 10px 20px; background: rgba(230, 126, 34, 0.1); border-radius: 15px;
    border: 1px solid var(--glass-border); flex-wrap: wrap; gap: 10px;
}
.status-item { font-size: 1.2rem; font-weight: 700; color: var(--text-main); }
.status-item span { color: #E67E22; font-size: 1.4rem; }

#gameCanvas {
    width: 100%; height: 400px; background: rgba(135, 206, 235, 0.3); border-radius: 15px;
    display: block; border: 2px dashed rgba(230, 126, 34, 0.4); cursor: pointer;
    touch-action: none; transition: background 1.5s ease;
}

#zoneIndicator {
    position: absolute; top: 20px; left: 20px; background: rgba(0,0,0,0.5); color: white;
    padding: 5px 15px; border-radius: 20px; font-weight: 700; font-size: 1rem;
    pointer-events: none; backdrop-filter: blur(4px); transition: opacity 0.3s ease; opacity: 0;
}

.game-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex;
    flex-direction: column; justify-content: center; align-items: center;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(5px); border-radius: 15px;
    z-index: 10; padding: 20px; text-align: center;
}
[data-theme="dark"] .game-overlay { background: rgba(20, 25, 38, 0.85); }
.game-overlay h2 { font-size: 2.5rem; color: #E67E22; margin-bottom: 10px; font-weight: 800; }

.btn-game {
    background: linear-gradient(135deg, #E67E22, #D35400); color: white; border: none;
    padding: 12px 35px; border-radius: 50px; font-size: 1.1rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4); transition: all 0.3s; margin-top: 15px;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-game:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 25px rgba(230, 126, 34, 0.6); }

.btn-volver-juegos {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
    color: var(--text-muted); text-decoration: none; font-weight: 600; transition: color 0.3s;
}
.btn-volver-juegos:hover { color: var(--primary); }

.modal-top3-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px); z-index: 9999; display: none; justify-content: center;
    align-items: center; padding: 20px;
}
.modal-top3-content {
    background: var(--bg-main); border: 1px solid var(--glass-border); border-radius: 25px;
    width: 100%; max-width: 450px; padding: 30px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative; animation: popIn 0.3s ease; text-align: center;
}
@keyframes popIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.btn-cerrar-modal { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; }
.btn-cerrar-modal:hover { color: #FF3B30; }

.modal-top3-icon { font-size: 4rem; margin-bottom: 15px; filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2)); color: #FFD700; }
.modal-top3-title { font-size: 1.8rem; font-weight: 800; color: var(--text-main); margin-bottom: 5px; }
.modal-top3-subtitle { font-size: 1rem; color: var(--text-muted); margin-bottom: 25px; }

.ranking-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; text-align: left; }
.ranking-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 15px; }
.ranking-item .rank-pos { font-size: 1.5rem; font-weight: 800; width: 30px; }
.ranking-item.pos-1 { border-color: #FFD700; background: rgba(255, 215, 0, 0.1); }
.ranking-item.pos-1 .rank-pos { color: #FFD700; }
.ranking-item.pos-2 { border-color: #C0C0C0; background: rgba(192, 192, 192, 0.1); }
.ranking-item.pos-2 .rank-pos { color: #C0C0C0; }
.ranking-item.pos-3 { border-color: #CD7F32; background: rgba(205, 127, 50, 0.1); }
.ranking-item.pos-3 .rank-pos { color: #CD7F32; }
.rank-info { flex-grow: 1; padding-left: 15px; }
.rank-name { font-weight: 700; color: var(--text-main); font-size: 1.1rem; }
.rank-score { font-weight: 900; font-size: 1.2rem; color: var(--text-main); }

@media (max-width: 768px) {
    .game-header h1 { font-size: 2.2rem; }
    #gameCanvas { height: 350px; }
    .game-container { padding: 20px; margin: 10px 15px 40px; }
}