:root {
    --bg-color: #0a0a0a;
    --card-bg: #161616;
    --accent: #00ffcc; /* Cian Neón */
    --text-main: #e0e0e0;
    --text-dim: #888;
    --danger: #ff4444;
    --success: #00cc66;
}

body {
    margin: 0;
    font-family: 'Courier New', Courier, monospace; /* Toque retro */
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.main-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    margin-bottom: 10px;
}

/* --- GRID DE PERSONAJES --- */
.grid-personajes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card-personaje {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card-personaje:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.1);
}

.img-container {
    width: 100%;
    height: 200px; /* Un poco más alto para lucir el pixel art */
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 15px;
    border-bottom: 2px solid #333;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

/* Efecto Zoom al pasar el ratón */
.card-personaje:hover .img-container img {
    transform: scale(1.1);
}

.card-personaje h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.5rem;
}

.desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 15px;
    height: 40px; /* Altura fija para alinear */
}

.stats-list {
    list-style: none;
    padding: 0;
    font-size: 0.85rem;
}

.stats-list li {
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.pro { color: var(--success); }
.contra { color: var(--danger); }

/* --- UTILIDADES --- */
/* CORRECCIÓN IMPORTANTE: !important para que flex no gane a hidden */
.hidden { display: none !important; }
.active { display: block; }

/* --- MODAL CYBERPUNK --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fondo oscuro transparente */
    backdrop-filter: blur(5px); /* Efecto borroso de fondo */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #111;
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
    padding: 30px;
    max-width: 400px;
    text-align: center;
    border-radius: 4px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    color: var(--accent);
    margin-top: 0;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* --- BOTONES RETRO --- */
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-retro {
    border: none;
    padding: 12px 24px;
    font-family: inherit; /* Hereda la fuente Courier */
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    border-radius: 2px;
}

.btn-red {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
}

.btn-red:hover {
    background: var(--danger);
    color: #000;
    box-shadow: 0 0 10px var(--danger);
}

.btn-green {
    background: var(--accent);
    color: #000;
    border: 1px solid var(--accent);
}

.btn-green:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--accent);
}

/* --- TEMA RETRO TERMINAL (HUD) --- */
.retro-theme {
    display: flex; /* Ojo: display flex para organizar verticalmente */
    flex-direction: column;
    height: 100vh; /* Ocupa toda la pantalla */
    max-height: 100vh;
    padding: 10px;
    box-sizing: border-box;
    background-color: #050505;
    color: var(--success); /* Todo verde por defecto */
    font-family: 'Courier New', monospace;
}

/* Ocultar scrollbar general pero permitir scroll */
.retro-theme::-webkit-scrollbar { width: 0; }

/* 1. TOP BAR */
.hud-top {
    border: 2px solid var(--text-dim);
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
}

.profile-block {
    display: flex;
    gap: 10px;
    align-items: center;
}

.avatar-frame {
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent);
    overflow: hidden;
    background: #000;
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-block {
    display: flex;
    flex-direction: column;
}

#hud-nombre {
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

/* --- CORRECCIÓN ALINEACIÓN STATS --- */
.stats-block {
    text-align: right;
    min-width: 180px; /* Aumentado para que quepa el texto */
}

.stat-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 5px;
    gap: 10px;
}

/* Forzamos que el texto de la vida no se rompa */
#hud-hp-text {
    min-width: 80px; 
    text-align: right;
}

.bar-container {
    width: 100px;
    height: 10px;
    background: #333;
    display: inline-block;
    border: 1px solid #555;
    
    /* CORRECCIÓN: Overflow hidden para que no se salga la barra roja */
    overflow: hidden; 
    border-radius: 2px;
}

.bar-fill {
    height: 100%;
    background: var(--danger);
    transition: width 0.3s;
}

/* 2. CRT MONITOR (CENTRAL) */
.crt-monitor {
    flex-grow: 1; /* Ocupa todo el espacio sobrante */
    border: 4px solid #333;
    background: #001100; /* Negro verdoso */
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.console-output {
    height: 100%;
    padding: 20px;
    padding-bottom: 50px; 
    overflow-y: auto; 
    font-size: 1rem;
    line-height: 1.4;
    color: #33ff33; /* Verde Terminal */
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.4);
    scroll-behavior: smooth; 
}

/* --- BARRA DE SCROLL PERSONALIZADA (WEBKIT) --- */
.console-output::-webkit-scrollbar {
    width: 12px; 
}

.console-output::-webkit-scrollbar-track {
    background: #050505; 
    border-left: 1px solid #333;
}

.console-output::-webkit-scrollbar-thumb {
    background-color: var(--success); 
    border: 2px solid #000; 
    border-radius: 0; 
}

.console-output::-webkit-scrollbar-thumb:hover {
    background-color: #fff; 
    cursor: pointer;
}

/* Efecto Scanlines (Líneas de TV vieja) */
.screen-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px; 
    pointer-events: none; 
    z-index: 2;
}

.sys-msg { color: #66cc66; margin: 5px 0; }
.story-msg { color: #fff; margin: 10px 0; font-weight: bold; }
.prompt-cursor { animation: blink 1s infinite; }

@keyframes blink { 50% { opacity: 0; } }

/* 3. COMMAND DECK (BOTONES) */
.command-deck {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 1. Ajustamos el contenedor para separar los botones del texto */
.story-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;           /* Menos hueco entre botones (antes 10px) */
    margin-bottom: 5px;
    margin-top: 15px;   /* IMPORTANTE: Empuja los botones hacia abajo para no tapar el texto */
    width: 100%;
    flex-shrink: 0;     /* Asegura que los botones no se deformen */
}

.retro-btn {
    background: #000;
    border: 2px solid var(--success);
    color: var(--success);
    font-family: inherit;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.1s;
}

.retro-btn:active {
    transform: translateY(2px);
    background: var(--success);
    color: #000;
}

/* 2. Hacemos los botones mucho más compactos */
.big-btn {
    padding: 10px 15px;  /* ANTES: 20px. Esto reduce la altura a la mitad */
    font-size: 1rem;     /* ANTES: 1.2rem. Texto más manejable */
    border-width: 2px;   /* Borde un poco más fino */
    letter-spacing: 1px;
    line-height: 1.1;    /* Evita que el texto ocupe espacio vertical extra */
    min-height: 40px;    /* Altura mínima para que sean pulsables en móvil */
}

.sub-controls {
    display: flex;
    gap: 10px;
}

.small-btn {
    flex: 1; /* Todos del mismo ancho */
    padding: 10px;
    border-color: var(--text-dim);
    color: var(--text-dim);
}

.small-btn:hover {
    border-color: #fff;
    color: #fff;
}

/* --- BOTÓN DE MÚSICA --- */
.audio-control {
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.retro-btn-mini {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%; /* Redondo */
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.retro-btn-mini:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 10px var(--accent);
}

.retro-btn-mini.muted {
    border-color: var(--danger);
    color: var(--danger);
}

/* --- EFECTOS DE DAÑO --- */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.shake-effect {
    animation: shake 0.5s;
    animation-iteration-count: 1;
}

.damage-flash {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: red;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.1s;
}

.damage-flash.active {
    opacity: 0.3;
}

/* --- INVENTARIO / MOCHILA --- */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.item-card {
    border: 1px solid var(--text-dim);
    padding: 10px;
    background: #000;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.item-card:hover {
    border-color: var(--success);
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.2);
}

.item-icon { font-size: 2rem; display: block; margin-bottom: 5px; }
.item-name { font-size: 0.8rem; font-weight: bold; color: #fff; display: block; }
.item-qty { font-size: 0.7rem; color: var(--accent); }

/* --- ESTILOS DE COMBATE --- */
.enemy-status-box {
    border: 1px solid var(--danger);
    padding: 10px;
    margin-bottom: 15px;
    background: rgba(255, 0, 0, 0.1);
    text-align: center;
}

.enemy-name {
    color: var(--danger);
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
}

.enemy-hp-bar {
    color: #fff;
    font-family: monospace;
    margin-top: 5px;
    display: block;
}

/* --- EFECTO TURNO ENEMIGO --- */
@keyframes pulse-attack {
    0% { box-shadow: 0 0 5px var(--danger); background: rgba(255, 0, 0, 0.1); }
    50% { box-shadow: 0 0 25px var(--danger); background: rgba(255, 0, 0, 0.4); transform: scale(1.02); }
    100% { box-shadow: 0 0 5px var(--danger); background: rgba(255, 0, 0, 0.1); }
}

.enemy-attacking {
    animation: pulse-attack 0.8s infinite;
    border-color: #fff !important; /* Borde blanco para resaltar */
}

.warning-text {
    color: yellow;
    font-weight: bold;
    animation: blink 0.5s infinite;
    display: block;
    margin-top: 5px;
}

.level-up-msg {
    color: yellow;
    font-weight: bold;
    text-shadow: 0 0 10px gold;
    border: 1px solid yellow;
    padding: 5px;
    margin: 5px 0;
    text-align: center;
}

/* --- BARRA DE XP --- */
.xp-bar-container {
    width: 100%;
    height: 4px;
    background: #222;
    margin-top: 5px;
    border: 1px solid #444;
}

.xp-bar-fill {
    height: 100%;
    background: #FFD700; /* Dorado */
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 5px #FFD700;
}

/* --- IMAGEN DE ENEMIGO --- */
.enemy-visual {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px auto; /* Centrado */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.enemy-sprite {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Para que la imagen no se deforme */
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5)); /* Sombra roja */
    animation: floatEnemy 3s ease-in-out infinite;
}

.enemy-placeholder {
    font-size: 4rem; /* Calavera grande si no hay imagen */
    animation: floatEnemy 3s ease-in-out infinite;
}

@keyframes floatEnemy {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); } /* Sube un poco */
    100% { transform: translateY(0px); }
}

/* Efecto al recibir daño (se pone roja la imagen también) */
.shake-effect .enemy-sprite {
    filter: sepia(100%) hue-rotate(-50deg) saturate(600%) contrast(1.2);
}

/* En assets/css/estilo.css */
.btn-red {
    border-color: #ff3333;
    color: #ff3333;
    box-shadow: 0 0 5px #ff3333;
}
.btn-red:hover {
    background: rgba(255, 51, 51, 0.2);
    box-shadow: 0 0 15px #ff3333;
}

.btn-blue {
    border-color: #33bbff;
    color: #33bbff;
    box-shadow: 0 0 5px #33bbff;
}

.btn-blue:hover {
    background: rgba(51, 187, 255, 0.2);
    box-shadow: 0 0 15px #33bbff;
}

/* --- OCULTAR INTERFAZ SECUNDARIA --- */

/* Oculta la fila de botones: Mochila, Descansar, Perfil */
.sub-controls {
    display: none !important;
}

/* Oculta el botón de Reset Debug */
#btn-reset {
    display: none !important;
}

/* --- BARRA DE CUENTA ATRÁS (ESTRÉS) --- */
.timer-wrapper {
    width: 100%;
    height: 15px;
    background: #333;
    border: 1px solid red;
    margin-bottom: 20px;
    box-shadow: 0 0 10px red;
    position: relative;
    overflow: hidden;
}

.timer-fill {
    height: 100%;
    background: red;
    width: 100%;
    /* La animación se controla desde JS, pero ponemos esto por defecto */
    transition: width linear; 
}

.timer-text {
    position: absolute;
    top: 0; left: 0; width: 100%;
    text-align: center;
    font-size: 10px;
    color: white;
    font-weight: bold;
    line-height: 15px;
    text-shadow: 1px 1px 0 #000;
}

/* --- SISTEMA DE ADWARE (POP-UPS MOLESTOS) --- */

/* El fondo que bloquea los clicks en el resto del juego */
.adware-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semitransparente */
    z-index: 2000; /* Por encima de todo */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: progress; /* Pone el cursor de "cargando" para estresar */
}

/* La ventana del anuncio */
.adware-window {
    background: #c0c0c0; /* Gris Windows 95 */
    border: 2px outset #fff;
    box-shadow: 10px 10px 0 #000;
    width: 300px;
    padding: 2px;
    position: relative;
    font-family: Arial, sans-serif; /* Rompe la estética retro del juego a propósito */
    text-align: center;
    animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.adware-header {
    background: #000080; /* Azul oscuro clásico */
    color: white;
    padding: 2px 5px;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.adware-body {
    padding: 20px;
    color: black;
    font-size: 14px;
}

.adware-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border: 1px inset #fff;
}

/* El botón de cerrar (PEQUEÑO Y MOLESTO) */
.close-adware-btn {
    background: #c0c0c0;
    border: 1px outset #fff;
    width: 16px;
    height: 16px;
    line-height: 14px;
    text-align: center;
    font-size: 10px;
    color: black;
    font-weight: bold;
    cursor: pointer;
}

.close-adware-btn:active {
    border: 1px inset #fff;
}

@keyframes popIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* --- TEMBLOR DE ESTRÉS (INFINITO) --- */
.shake-constant {
    animation: shake 0.5s infinite; /* Se repite para siempre */
    animation-timing-function: ease-in-out;
}

/* --- EFECTO DE DAÑO VISUAL --- */
#game-wrapper {
    transition: filter 0.5s ease; /* Suaviza el cambio de borroso */
}

/* Clases de ceguera */
.blur-low { filter: blur(1px) grayscale(20%); }
.blur-med { filter: blur(2px) grayscale(50%); }
.blur-high { filter: blur(4px) grayscale(80%) contrast(150%); }

/* --- QTE: MACHACABOTONES --- */
.qte-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.qte-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: blink 0.2s infinite;
}

.qte-bar-container {
    width: 80%;
    height: 40px;
    border: 3px solid #fff;
    background: #333;
    position: relative;
}

.qte-bar-fill {
    height: 100%;
    width: 50%; /* Empieza a la mitad */
    background: var(--accent); /* Cian */
    transition: width 0.05s linear; /* Movimiento muy rápido */
}

.qte-instruction {
    margin-top: 15px;
    color: yellow;
    font-size: 1.5rem;
    font-weight: bold;
}

/* --- EFECTO DE GRAVEDAD INVERTIDA --- */
body.modo-australiano {
    transform: rotate(180deg);
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Efecto rebote al girar */
}

body.modo-espejo {
    transform: scaleX(-1); /* Izquierda es derecha */
    transition: transform 0.5s ease;
}

/* --- CURSOR IMPOSTOR --- */
.cursor-falso {
    animation: movimientoFantasma 4s infinite ease-in-out;
    /* Quitamos width y height fijos para que el emoji se vea entero */
    width: auto; 
    height: auto;
    cursor: none; /* Por si acaso */
}

@keyframes movimientoFantasma {
    0% { top: 10%; left: 10%; }
    25% { top: 60%; left: 80%; }
    40% { top: 62%; left: 78%; transform: scale(0.9); } /* Simula Clic */
    45% { top: 60%; left: 80%; transform: scale(1); }
    70% { top: 80%; left: 20%; }
    85% { top: 20%; left: 40%; transform: scale(0.9); } /* Simula Clic */
    100% { top: 10%; left: 10%; }
}

/* --- JUMPSCARE (SCREAMER) --- */
.screamer-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: black;
    z-index: 10000; /* ¡Encima de TODO! */
    display: flex;
    justify-content: center;
    align-items: center;
    animation: vibrarSusto 0.1s infinite;
}

.screamer-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Que cubra toda la pantalla */
}

@keyframes vibrarSusto {
    0% { transform: translate(2px, 2px) rotate(0deg); }
    25% { transform: translate(-2px, -2px) rotate(-1deg); }
    50% { transform: translate(-2px, 2px) rotate(0deg); }
    75% { transform: translate(2px, -2px) rotate(1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* --- GARBAGE COLLECTOR (ANTI-AFK) --- */
.afk-warning {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: radial-gradient(circle, transparent 50%, rgba(255, 0, 0, 0.6) 100%);
    pointer-events: none; /* Para que puedas seguir clicando */
    z-index: 9000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulsoRojo 1s infinite;
}

.afk-text {
    color: red;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 10px red;
    background: rgba(0,0,0,0.8);
    padding: 20px;
    border: 2px solid red;
}

@keyframes pulsoRojo {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* --- EVENTO VENTILADOR (SOBRECALENTAMIENTO) --- */
.overheat-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(255, 0, 0, 0.4); /* Rojo semitransparente */
    z-index: 9500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 5px solid red;
    box-sizing: border-box;
    animation: vibrarPantalla 0.2s infinite; /* Todo vibra por el calor */
}

.fan-container {
    width: 150px;
    height: 150px;
    background: #333;
    border-radius: 50%;
    border: 5px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: crosshair; /* Cursor de mira para apuntar bien */
    transition: transform 0.1s;
    box-shadow: 0 0 20px red;
}

.fan-container:active {
    transform: scale(0.95); /* Efecto de pulsar botón */
}

/* Las aspas del ventilador hechas con CSS puro (sin imágenes) */
.fan-blades {
    font-size: 100px;
    color: #00ffcc;
    line-height: 1;
    user-select: none;
    /* La animación se controla por JS según los clics */
}

.heat-bar-container {
    width: 300px;
    height: 30px;
    background: black;
    margin-top: 20px;
    border: 2px solid white;
    position: relative;
}

.heat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, yellow, red);
    width: 100%; /* Empieza llena y baja */
    transition: width 0.1s linear;
}

.heat-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 0 black;
    margin-bottom: 20px;
    text-align: center;
}

@keyframes vibrarPantalla {
    0% { transform: translate(1px, 1px); }
    100% { transform: translate(-1px, -1px); }
}