* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: linear-gradient(135deg, #111111 0%, #1e1e1e 100%); color: white; overflow-x: hidden; }
body.intro-active { overflow: hidden; }

/* Estilos para el carousel de intro */
.intro-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000; display: flex; justify-content: center; align-items: center; flex-direction: column; animation: fadeIn 1s ease; }
.intro-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; }
.intro-bg.active { opacity: 1; }
.intro-bg::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(20,20,20,0.5) 100%); }
.intro-overlay.hidden { animation: fadeOut 0.8s ease forwards; pointer-events: none; }
.intro-content { position: relative; z-index: 1; text-align: center; max-width: 600px; padding: 40px; background: rgba(0,0,0,0.2); border-radius: 20px; backdrop-filter: blur(8px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15); }
.intro-title { font-size: 56px; font-weight: bold; margin-bottom: 10px; text-shadow: 0 0 30px rgba(255,215,0,0.8), 0 4px 8px rgba(0,0,0,0.8); animation: glow 2s infinite alternate; }
.intro-subtitle { font-size: 20px; margin-bottom: 40px; opacity: 0.95; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.intro-button { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%); color: white; border: none; padding: 18px 50px; font-size: 20px; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 8px 25px rgba(255,107,107,0.4); font-weight: bold; }
.intro-button:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(255,107,107,0.6); }

/* Estilos para los fondos de las pantallas de login y registro */
.screen-bg-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.screen-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.screen-bg.active {
    opacity: 1;
}

.screen-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(20,20,20,0.5) 100%);
}

/* Fondo para el dashboard */
#dashboard, #armor-screen {
    background: url('/assets/images/dashboard-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

#dashboard::before, #armor-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(10,10,10,0.7) 100%);
    z-index: 0;
}

#dashboard .container, #armor-screen .container {
    position: relative;
    z-index: 1;
}


/* ── Panel lore de armadura equipada ── */
.armor-hero-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 10px 0;
}
.armor-visual {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
}
.armor-lore-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.alp-row {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.alp-tag {
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(180,160,100,0.8);
}
.alp-text {
    font-size: 11px;
    color: rgba(220,210,190,0.85);
    line-height: 1.45;
}

/* ── DASHBOARD GRID ── */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 10px;
    align-items: start;
}
.dash-col { display: flex; flex-direction: column; gap: 14px; }

/* Encabezado del personaje en dashboard */
.dash-hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255,215,0,0.06);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 12px;
    padding: 14px 16px;
    width: 100%;
}
.dash-hero-header > img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid #ffd700; object-fit: cover; flex-shrink: 0; }
.dash-hero-header .hero-icon-fallback { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #ffd700; background: rgba(255,215,0,0.15); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.dash-hero-info {
    text-align: left;
    flex: 1;
    min-width: 0;
}
.dash-hero-info h3 { margin: 0 0 2px; font-size: 17px; color: #ffd700; }
.dash-hero-info .hero-sub { font-size: 12px; color: #aaa; margin: 0; }
.dash-hero-info .hero-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.hero-badge { background: rgba(255,255,255,0.1); border-radius: 20px; padding: 2px 10px; font-size: 11px; color: #ddd; }
.hero-badge.gold { background: rgba(255,215,0,0.15); color: #ffd700; }

/* Compact stats en dashboard */
.dash-stats-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.dash-stat-chip {
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 7px 5px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
}
.dash-stat-chip .dsc-val { font-size: 15px; font-weight: bold; color: #fff; }
.dash-stat-chip .dsc-lbl { font-size: 10px; color: #888; margin-top: 1px; }

/* Skill points bar */
.skill-points-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,215,0,0.06);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
}
.skill-points-bar .sp-count { font-size: 20px; font-weight: bold; color: #ffd700; }

/* Acciones como grid de botones compactos */
.dash-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.dash-actions-grid button { margin: 0; padding: 12px 8px; font-size: 13px; }

@media (max-width: 768px) {
    .dash-grid { grid-template-columns: 1fr; }
    .dash-stats-compact { grid-template-columns: repeat(3, 1fr); }
    .dash-actions-grid { grid-template-columns: 1fr 1fr; }
}

/* Estilos generales para las pantallas */
.screen { display: none; }
.screen.active { padding-bottom: 72px; }
.screen.active { display: block; min-height: 100vh; padding-bottom: 60px; }
.screen > .container { padding: 16px 20px 0; width: 100%; }
/* .container flex rule removed — was causing content to bottom-align */
.container { max-width: 1100px; margin: 0 auto; text-align: center; }
/* Dashboard usa layout propio */
#dashboard > .container { max-width: 1200px; }
.card { background: rgba(255,255,255,0.1); border-radius: 10px; padding: 20px; margin: 20px 0; backdrop-filter: blur(10px); }
input, select, button { width: 100%; padding: 12px; margin: 10px 0; border: none; border-radius: 5px; font-size: 16px; }
button { background: #ff6b6b; color: white; cursor: pointer; transition: all 0.3s ease; }
button:hover { background: #ee5a5a; transform: translateY(-2px); }
/* Excluir botones de SweetAlert de los estilos globales */
.swal2-confirm, .swal2-cancel, .swal2-deny {
    width: auto !important;
    padding: 10px 24px !important;
    margin: 5px !important;
}
.god-selector { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 4px 0 0; }
.god-card { background: rgba(255,255,255,0.2); padding: 15px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.god-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.3); transition: border-color 0.3s ease; background: rgba(0,0,0,0.2); }
.god-card:hover .god-avatar, .god-card.selected .god-avatar { border-color: rgba(255,255,255,0.8); box-shadow: 0 0 12px rgba(255,255,255,0.4); }
.god-card h4 { margin: 0; font-size: 14px; }
.god-card p { margin: 0; font-size: 12px; opacity: 0.85; }
.god-card small { font-size: 10px; opacity: 0.7; }
.god-card:hover, .god-card.selected { background: rgba(255,255,255,0.3); transform: scale(1.05); box-shadow: 0 0 20px rgba(255,255,255,0.3); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 8px;
    margin: 10px 0;
}

/* Tarjeta álbum de stat */
.stat-card-album {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 6px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.15s, border-color 0.15s;
    text-align: center;
    position: relative;
}
.stat-card-album:hover {
    background: rgba(255,255,255,0.11);
    border-color: rgba(255,255,255,0.22);
}
.sca-icon  { font-size: 22px; line-height: 1; }
.sca-label { font-size: 10px; color: #999; margin-top: 2px; white-space: nowrap; }
.sca-val   { font-size: 20px; font-weight: bold; color: #fff; line-height: 1.1; }
.sca-btn   {
    margin-top: 4px;
    background: rgba(46,204,113,0.18);
    border: 1px solid rgba(46,204,113,0.5);
    color: #2ecc71;
    font-size: 14px;
    font-weight: bold;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.sca-btn:hover { background: rgba(46,204,113,0.35); }

/* Stats compactas — filas en una línea */
.stat-row-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.07);
    transition: background 0.15s;
    min-width: 0;
}
.stat-row-compact:hover { background: rgba(255,255,255,0.1); }
.src-icon  { font-size: 14px; width: 20px; text-align: center; flex-shrink: 0; }
.src-label { font-size: 12px; color: #bbb; flex: 1; white-space: nowrap; }
.src-val   { font-size: 14px; font-weight: bold; color: #fff; min-width: 42px; text-align: right; }
.src-btn   {
    background: rgba(46,204,113,0.2);
    border: 1px solid rgba(46,204,113,0.4);
    color: #2ecc71;
    width: 22px; height: 22px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}
.src-btn:hover { background: rgba(46,204,113,0.4); }

.stat-item { background: rgba(255,255,255,0.08); padding: 10px 12px; border-radius: 8px; text-align: center; }
.level-up-btn { background: #666666; width: auto; padding: 8px 16px; margin: 5px; font-size: 14px; }
.stat-card-album .level-up-btn {
    background: rgba(46,204,113,0.18);
    border: 1px solid rgba(46,204,113,0.5);
    color: #2ecc71;
    width: 28px; height: 28px;
    padding: 0; margin: 4px 0 0;
    font-size: 14px; font-weight: bold;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.stat-card-album .level-up-btn:hover { background: rgba(46,204,113,0.35); }
.enemy-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin: 20px 0; }
.enemy-card { background: rgba(255,255,255,0.1); padding: 15px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; }
.enemy-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }
.combat-log { background: rgba(0,0,0,0.3); border-radius: 10px; padding: 20px; max-height: 400px; overflow-y: auto; text-align: left; }
.combat-round { margin: 10px 0; padding: 10px; background: rgba(255,255,255,0.1); border-radius: 5px; animation: fadeInUp 0.5s ease; }
.skill-visual { width: 120px; height: 120px; object-fit: contain; margin: 10px auto; display: block; border-radius: 8px; background: rgba(0,0,0,0.3); }
.battle-plan-container { background: rgba(255,255,255,0.1); border-radius: 10px; padding: 20px; margin: 20px 0; }
.round-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin: 15px 0; }
.round-slot { background: rgba(0,0,0,0.3); padding: 15px; border-radius: 8px; text-align: center; border: 2px solid rgba(255,255,255,0.2); }
.round-slot.filled { border-color: rgba(90,158,120,0.7); background: rgba(70,120,90,0.12); }
.skill-inventory { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; justify-content: center; }
.skill-card { width: 100px; background: rgba(255,255,255,0.2); border-radius: 8px; padding: 10px; cursor: pointer; transition: all 0.3s ease; border: 2px solid transparent; position: relative; }
.skill-card:hover { transform: translateY(-3px); border-color: rgba(180,155,70,0.6); box-shadow: 0 4px 10px rgba(160,135,50,0.2); }
.skill-card.selected { border-color: rgba(90,158,120,0.7); background: rgba(70,120,90,0.15); }
.skill-card.depleted { opacity: 0.4; cursor: not-allowed; }
.skill-card img { width: 60px; height: 60px; object-fit: contain; margin: 5px auto; display: block; }

/* ── Tooltip de skills ── */
.skill-tooltip-wrap {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
    width: 200px;
}
.skill-card:hover .skill-tooltip-wrap {
    display: block;
}
.skill-tooltip {
    background: rgba(10,10,20,0.97);
    border: 1px solid rgba(255,215,0,0.25);
    border-radius: 8px;
    padding: 8px 10px;
    text-align: left;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}
/* Flecha del tooltip */
.skill-tooltip-wrap::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(255,215,0,0.25);
}

.skill-card-count { position: absolute; top: 5px; right: 5px; background: #ff6b6b; color: white; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 12px; }
.skill-name { font-size: 11px; margin-top: 5px; font-weight: bold; }
.armor-display { background: rgba(255,255,255,0.05); border-radius: 10px; padding: 20px; margin: 20px 0; border: 1.5px solid rgba(255,255,255,0.1); }
.armor-display.equipped { border-color: rgba(100,200,140,0.5); background: rgba(80,160,110,0.06); }
.armor-visual { width: 120px; height: 120px; object-fit: contain; margin: 10px auto; display: block; border-radius: 8px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); }
.armor-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin: 15px 0; }
.armor-stat-item { background: rgba(255,255,255,0.05); padding: 8px; border-radius: 5px; text-align: center; font-size: 12px; color: rgba(220,210,190,0.85); }
.durability-bar { width: 100%; height: 20px; background: rgba(255,255,255,0.2); border-radius: 10px; overflow: hidden; margin: 10px 0; position: relative; }
.durability-fill { height: 100%; background: linear-gradient(90deg, #5a9e78, #4a7a60); transition: width 0.3s ease; }
.durability-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 11px; font-weight: bold; color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }
.armor-skills-list { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.armor-skill-badge { background: rgba(160,140,80,0.15); padding: 5px 10px; border-radius: 15px; font-size: 11px; border: 1px solid rgba(160,140,80,0.3); color: rgba(210,190,130,0.9); }
.armor-inventory { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin: 15px 0; }
.armor-card { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 14px; cursor: pointer; transition: all 0.3s ease; border: 1.5px solid rgba(255,255,255,0.08); }
.armor-card:hover { border-color: rgba(200,170,80,0.6); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(180,150,60,0.2); }
.armor-card.equipped { border-color: rgba(100,200,140,0.6); }
.armor-card img { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 10px; display: block; }

/* Animaciones */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glow { from { text-shadow: 0 0 20px rgba(255,215,0,0.5), 0 4px 8px rgba(0,0,0,0.8); } to { text-shadow: 0 0 40px rgba(255,215,0,1), 0 4px 8px rgba(0,0,0,0.8); } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.victory { background: rgba(76, 175, 80, 0.3); }
.defeat { background: rgba(244, 67, 54, 0.3); }

/* Barra de navegación */
.nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 6px 8px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 999;
    box-sizing: border-box;
    scrollbar-width: none;
}
.nav-bar::-webkit-scrollbar { display: none; }
.nav-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
    padding: 6px 10px;
    margin: 0;
    width: auto;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.nav-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.6); }
#nav-logout {
    border-color: rgba(231,76,60,0.6);
    color: #ff6b6b;
    margin-left: auto;
    flex-shrink: 0;
}
#nav-logout:hover { background: rgba(231,76,60,0.2); border-color: #e74c3c; }

/* Controles del juego */
#game-container { width: 100%; height: 80vh; margin: 20px auto; border: 2px solid rgba(255,255,255,0.12); border-radius: 10px; overflow: visible; position: relative; max-width: 100%; display: flex; justify-content: center; align-items: center; }
.game-hud { position: fixed; top: 10px; left: 10px; background: rgba(0,0,0,0.65); border-radius: 10px; padding: 8px 11px; z-index: 1002; color: white; font-size: 12px; min-width: 0; width: 155px; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.13); }
.hud-stat { display: flex; justify-content: space-between; margin: 5px 0; align-items: center; }
.hud-stat-value { font-weight: bold; color: #ffd700; }
.hud-level { color: #00ff88; }
.hud-hp { color: #ff4757; }
.hud-xp { color: #888888; }
.xp-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.2); border-radius: 4px; overflow: hidden; margin-top: 5px; }
.xp-bar-fill { height: 100%; background: linear-gradient(90deg, #888888, #666666); transition: width 0.3s ease; }
.joystick { position: fixed; bottom: 120px; right: 20px; width: 100px; height: 100px; background: rgba(255,255,255,0.2); border-radius: 50%; z-index: 1001; display: none; border: 3px solid rgba(255,255,255,0.3); }
.joystick.mobile { display: block; }
.shoot-button { position: fixed; bottom: 120px; left: 20px; width: 80px; height: 80px; background: rgba(255, 100, 100, 0.8); border-radius: 50%; z-index: 1001; display: none; border: 3px solid rgba(255,255,255,0.3); color: white; font-size: 24px; cursor: pointer; user-select: none; justify-content: center; align-items: center; }
.shoot-button.mobile { display: flex; }
.shoot-button:active { background: rgba(255, 50, 50, 1); transform: scale(0.95); }
.joystick-knob { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; background: rgba(255,255,255,0.8); border-radius: 50%; transform: translate(-50%, -50%); transition: all 0.1s ease; }

/* Notificaciones */
.notification-container { position: fixed; top: 10px; right: 10px; z-index: 10001; pointer-events: none; max-width: 190px; }
.notification { background: rgba(17,17,17,0.88); color: white; padding: 9px 12px; border-radius: 8px; margin-bottom: 7px; max-width: 190px; font-size: 12px; line-height: 1.4; box-shadow: 0 3px 10px rgba(0,0,0,0.4); animation: slideIn 0.5s ease, fadeOut 0.5s ease 4.5s forwards; border-left: 4px solid #ffd700; backdrop-filter: blur(8px); }
.notification.success { border-left-color: #00ff88; background: linear-gradient(135deg, #00b894 0%, #00a085 100%); }
.notification.error { border-left-color: #ff4757; background: linear-gradient(135deg, #e17055 0%, #d63031 100%); }
.notification.info { border-left-color: #555555; background: linear-gradient(135deg, #74b9ff 0%, #555555 100%); }
.notification.warning { border-left-color: #fdcb6e; background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Modales */
.modal-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; z-index: 10000; animation: fadeIn 0.3s ease; }
.modal-content { background: linear-gradient(135deg, #111111 0%, #1e1e1e 100%); padding: 30px; border-radius: 15px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; color: white; text-align: center; }
.shop-item { background: rgba(255,255,255,0.2); margin: 10px 0; padding: 15px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; display: flex; justify-content: space-between; align-items: center; }
.shop-item:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); }
.shop-item.disabled { opacity: 0.6; cursor: not-allowed; }
.zone-item { background: rgba(255,255,255,0.1); margin: 10px 0; padding: 15px; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; }
.zone-item:hover { background: rgba(255,255,255,0.2); }
.zone-item.current { border: 2px solid #00ff00; }
.zone-item.disabled { opacity: 0.5; cursor: not-allowed; }

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 10px; }
    /* stats-grid es flex column, no necesita override */
    .god-selector { grid-template-columns: repeat(2, 1fr); }
    .modal-content { width: 95%; max-height: 70vh; padding: 20px; }
    .game-hud {
        top: 5px; left: 5px; right: auto;
        min-width: auto; max-width: 160px;
        font-size: 11px; padding: 7px 9px;
        opacity: 0.88;
    }
    .hud-identity { flex-wrap: wrap; gap: 3px; }
    #hud-avatar { width: 22px !important; height: 22px !important; }
    .notification-container { top: 10px; right: 10px; left: 10px; }
    .notification { max-width: 100%; }
}
/* Stats */
/* Panel visual para cada stat */
.stat-panel {
    width: 180px;
    height: 80px;
    /* background-image: url('../assets/images/ui/panels/stats-back.png'); */ /* archivo pendiente */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    padding: 5px;
    color: #fff;
    font-family: 'Verdana', sans-serif;
    text-shadow: 2px 2px 4px #000;
    box-shadow: 0 0 8px #0008;
    margin: 5px;
}

/* Nombre del stat */
.stat-panel {
    width: 180px;
    height: 80px;
    /* stats-back pendiente */
    background-size: cover;
    background-position: center;

    /* IMPORTANTE: elimina cualquier color que tape la imagen */
    background-color: transparent !important;
    background: transparent !important;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    padding: 5px;
    color: #fff;
    font-family: 'Verdana', sans-serif;
    text-shadow: 2px 2px 4px #000;
    box-shadow: 0 0 8px #0008;
    margin: 5px;
}



/* Título (Vida, Energía, etc) */
.stat-title {
    margin-top: 5px;
    font-size: 15px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px #000;
}

/* Valor del stat */
.stat-value {
    margin-top: 5px;
    font-size: 26px;
    font-weight: bold;
    color: #dddddd;
}

/* Botón pequeño */
.stat-button {
    margin-top: auto; 
    font-size: 14px;
    padding: 4px 10px;
    min-width: 40px;
    max-width: 60px;
    text-align: center;

    background-color: #555555;
    border-radius: 8px;
    color: white;
    border: none;
    cursor: pointer;

    position: relative;
    bottom: 0;
}

/* ── Filtros PvP ── */
.pvp-filter-btn {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #aaa;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.pvp-filter-btn:hover {
    border-color: #888;
    color: #fff;
}
.pvp-filter-btn.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
    font-weight: bold;
}

/* ── PvP: botón atacar compacto ── */
.pvp-attack-btn {
    width: auto !important;
    min-width: 90px !important;
    max-width: 100px !important;
    padding: 10px 12px !important;
    flex-shrink: 0;
    align-self: center;
}
.pvp-player-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* ── Dados del Olimpo ── */
.dice-face {
    width: 52px;
    height: 52px;
    background: #2a2a2a;
    border: 2px solid #ffd700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    transition: background 0.2s;
}
.dice-bet-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #ffd700;
    background: #2a2a2a;
    color: #ffd700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.dice-bet-btn:hover {
    background: #ffd700;
    color: #000;
}

/* ── Cadena Eris ── */
.quest-card.eris-chain {
    border-color: #ff1744 !important;
    background: linear-gradient(135deg, rgba(255,23,68,0.1), rgba(30,0,10,0.8)) !important;
    box-shadow: 0 0 12px rgba(255,23,68,0.3);
}
.quest-card.eris-chain:hover {
    box-shadow: 0 0 20px rgba(255,23,68,0.5);
    transform: translateY(-2px);
}

/* ── Boss Quests ── */
.quest-card.boss-quest {
    border-color: #ff6600 !important;
    background: linear-gradient(135deg, rgba(255,102,0,0.12), rgba(30,10,0,0.8)) !important;
    box-shadow: 0 0 12px rgba(255,102,0,0.25);
}
.quest-card.boss-quest:hover {
    box-shadow: 0 0 20px rgba(255,102,0,0.45);
    transform: translateY(-2px);
}


/* ══════════════════════════════════════════
   HUD — Título activo
══════════════════════════════════════════ */
.hud-identity {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.hud-name-block {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.hud-active-title {
    font-size: 10px;
    color: #ffd700;
    font-style: italic;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* ── Profile screen específico ── */
#profile-screen {
    background: url('assets/images/fondo2.png') center/cover no-repeat fixed;
}
#profile-screen > .container {
    padding-top: 16px !important;
}
.profile-grid {
    text-align: left;
    margin-top: 0 !important;
}

/* ══════════════════════════════════════════
   PANTALLA DE PERFIL
══════════════════════════════════════════ */
.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px !important;
    margin-bottom: 14px;
}
.profile-avatar-wrap {
    flex-shrink: 0;
}
.profile-info {
    flex: 1;
}
.profile-info h3 {
    margin: 0 0 4px;
    font-size: 20px;
    color: #fff;
}
.profile-active-title-badge {
    display: inline-block;
    background: linear-gradient(90deg, #b8860b, #ffd700);
    color: #1a1a2e;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

/* ── Tabs del perfil ── */
.profile-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.profile-tab {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.profile-tab.active {
    background: rgba(255,215,0,0.15);
    border-color: #ffd700;
    color: #ffd700;
    font-weight: bold;
}
.profile-tab-content { display: none; }
.profile-tab-content.active { display: block; }

.profile-section-hint {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

/* ── Grid de títulos ── */
.titles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.title-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}
.title-card.unlocked {
    border-color: #ffd700;
    background: rgba(255,215,0,0.07);
}
.title-card.unlocked:hover {
    background: rgba(255,215,0,0.14);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,215,0,0.2);
}
.title-card.active-title {
    border-color: #ff6600;
    background: rgba(255,102,0,0.12);
    box-shadow: 0 0 10px rgba(255,102,0,0.3);
}
.title-card.locked {
    opacity: 0.45;
    cursor: default;
}
.title-card .title-icon {
    font-size: 22px;
    margin-bottom: 6px;
}
.title-card .title-name {
    font-size: 12px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 4px;
}
.title-card.locked .title-name { color: #666; }
.title-card .title-how {
    font-size: 10px;
    color: #888;
    line-height: 1.3;
}
.title-card .active-badge {
    position: absolute;
    top: 6px; right: 6px;
    font-size: 9px;
    background: #ff6600;
    color: #fff;
    padding: 2px 5px;
    border-radius: 6px;
    font-weight: bold;
}

/* ── Progreso de Actos ── */
.actos-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.acto-progress-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 14px;
}
.acto-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.acto-progress-title {
    font-weight: bold;
    font-size: 14px;
    color: #fff;
}
.acto-progress-pct {
    font-size: 13px;
    color: #ffd700;
    font-weight: bold;
}
.acto-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.acto-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}
.acto-missions-preview {
    font-size: 11px;
    color: #888;
}
.acto-missions-preview .done { color: #00ff88; }
.acto-missions-preview .active-m { color: #ffd700; }

/* ── Stats del perfil ── */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.profile-stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}
.profile-stat-card .stat-val {
    font-size: 22px;
    font-weight: bold;
    color: #ffd700;
}
.profile-stat-card .stat-label {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* ══════════════════════════════════════════
   BURBUJA DE DIÁLOGO DE QUEST GIVER
══════════════════════════════════════════ */
.quest-bubble {
    position: fixed;
    bottom: 70px;
    left: 16px;
    max-width: 300px;
    background: linear-gradient(135deg, rgba(20,10,40,0.97), rgba(10,5,25,0.97));
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 12px;
    padding: 12px 14px;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 15px rgba(255,215,0,0.08);
    animation: bubbleIn 0.3s ease;
    pointer-events: none;
}
.quest-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px; left: 20px;
    width: 14px; height: 14px;
    background: rgba(20,10,40,0.97);
    border-right: 1px solid rgba(255,215,0,0.3);
    border-bottom: 1px solid rgba(255,215,0,0.3);
    transform: rotate(45deg);
}
.quest-bubble-giver {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.quest-bubble-giver strong {
    font-size: 12px;
    color: #ffd700;
    letter-spacing: 0.3px;
}
#quest-bubble-icon { font-size: 16px; }
#quest-bubble-text {
    font-size: 12px;
    color: #ddd;
    margin: 0;
    font-style: italic;
    line-height: 1.5;
}
.quest-bubble-progress {
    margin-top: 8px;
    font-size: 11px;
    color: #ffd700;
    font-weight: bold;
}
@keyframes bubbleIn {
    from { opacity:0; transform: translateX(-10px) translateY(5px); }
    to   { opacity:1; transform: translateX(0) translateY(0); }
}
@keyframes bubbleOut {
    from { opacity:1; transform: translateX(0); }
    to   { opacity:0; transform: translateX(-10px); }
}

/* ══════════════════════════════════════════
   ZONE LOADING OVERLAY
══════════════════════════════════════════ */
#zone-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 100;
    border-radius: 12px;
    overflow: hidden;
    min-height: 320px;
}
.zone-loading-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zone-loading-bg-blur {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 50%, #0d0d1a 100%);
    background-size: cover;
    background-position: center;
    filter: blur(0px);
    transform: scale(1.04);
}
.zone-loading-bg-blur::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.62);
}
.zone-loading-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.zone-loading-icon {
    font-size: 52px;
    animation: zoneIconFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 18px rgba(255,215,0,0.5));
}
@keyframes zoneIconFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(-8px) scale(1.06); }
}
.zone-loading-name {
    font-size: 22px;
    font-weight: bold;
    color: #ffd700;
    margin: 0;
    text-shadow: 0 0 20px rgba(255,215,0,0.4);
    letter-spacing: 1px;
}
.zone-loading-subtitle {
    font-size: 13px;
    color: #aaa;
    margin: 0;
    font-style: italic;
}

/* ── Spinner de anillos ── */
.zone-loading-spinner {
    position: relative;
    width: 54px;
    height: 54px;
    margin: 6px 0;
}
.spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #ffd700;
    animation: spinRing 1s linear infinite;
}
.spinner-ring-2 {
    inset: 8px;
    border-top-color: rgba(255,215,0,0.35);
    animation-duration: 1.6s;
    animation-direction: reverse;
}
@keyframes spinRing {
    to { transform: rotate(360deg); }
}

/* ── Barra de progreso ── */
.zone-loading-bar-wrap {
    width: 220px;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.zone-loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #b8860b, #ffd700, #fff8dc);
    border-radius: 3px;
    transition: width 0.25s ease;
    box-shadow: 0 0 8px rgba(255,215,0,0.5);
}

/* ── Tip de zona ── */
.zone-loading-tip {
    font-size: 11px;
    color: #666;
    max-width: 240px;
    line-height: 1.5;
    margin: 0;
    min-height: 32px;
}

/* ── Fade de entrada/salida ── */
#zone-loading-overlay.fade-in  { animation: loadFadeIn  0.3s ease forwards; }
#zone-loading-overlay.fade-out { animation: loadFadeOut 0.4s ease forwards; }
@keyframes loadFadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes loadFadeOut { from { opacity:1; } to { opacity:0; } }

/* ══════════════════════════════════════════
   QUEST MODAL — Cards disponibles
══════════════════════════════════════════ */
.quest-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}
.quest-card.available {
    border-color: rgba(46,204,113,0.35);
    background: rgba(46,204,113,0.05);
    transition: border-color 0.2s, background 0.2s;
}
.quest-card.available:hover {
    border-color: rgba(46,204,113,0.6);
    background: rgba(46,204,113,0.09);
}
.quest-card.active {
    border-color: rgba(52,152,219,0.35);
    background: rgba(52,152,219,0.05);
}
.quest-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}
.quest-new-badge {
    flex-shrink: 0;
    font-size: 9px;
    font-weight: bold;
    background: #2ecc71;
    color: #fff;
    padding: 2px 7px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    align-self: center;
}
.quest-accept-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: 0.3px;
}
.quest-accept-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(46,204,113,0.4);
}
.quest-accept-btn:active {
    transform: translateY(0);
}

/* PvP — botón Ver perfil */
.pvp-info-btn {
    background: transparent;
    border: 1px solid rgba(52,152,219,0.5);
    color: #3498db;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.pvp-info-btn:hover {
    background: rgba(52,152,219,0.15);
    border-color: #3498db;
}

/* Avatar bonus label en selección de clase */
.avatar-option .avatar-bonus {
    font-size: 9px;
    margin-top: 3px;
    line-height: 1.3;
    opacity: 0.85;
    text-align: center;
}
.avatar-option.selected .avatar-bonus {
    opacity: 1;
    font-weight: bold;
}

/* ── CHARACTER CREATION 2 COLUMNAS ── */
/* ── Creación de personaje: flujo vertical 3 pasos ── */
.creation-step {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.step-label {
    font-size: 16px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.step-num {
    width: 28px;
    height: 28px;
    background: rgba(255,215,0,0.2);
    border: 1px solid #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    color: #ffd700;
    flex-shrink: 0;
}
.char-name-input {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
}
.char-creation-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
}
@media (max-width: 768px) {
    /* char-creation-grid: ya es columna única por diseño */
}

/* ── EXPLORATION SIN PADDING EXTRA ── */
#exploration > .container {
    padding: 8px 12px 80px;
    max-width: 100%;
}
#exploration h2 { display: none; } /* el título de zona ya está en el HUD */

/* ── PANTALLAS CON FONDO COMPLETO ── */
#login-screen.active, #register-screen.active, #character-creation.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#login-screen > .container,
#register-screen > .container,
#character-creation > .container {
    padding-bottom: 20px;
}

/* ── CARD MÁS COMPACTA ── */
.card { 
    background: rgba(255,255,255,0.08); 
    border-radius: 12px; 
    padding: 16px; 
    margin: 0; 
    backdrop-filter: blur(10px); 
}

/* ── TITLE AREA DEL DASHBOARD ── */
.dash-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px 6px;
}
.dash-title-bar h1 {
    margin: 0;
    font-size: 15px;
    color: #aaa;
    font-weight: normal;
    text-align: left;
}

/* ── PROFILE SCREEN 2 COLUMNAS ── */
.profile-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 14px;
    align-items: start;
    margin-top: 10px;
    text-align: left;
}
@media (max-width: 768px) {
    .profile-grid { grid-template-columns: 1fr; }
}

/* ── BATTLE SELECT MÁS AJUSTADO ── */
#battle-select > .container { max-width: 960px; }

/* ── UTILIDADES ── */
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 14px; }

/* Avatar más compacto en char-creation en desktop */
@media (min-width: 769px) {
    .char-creation-grid .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    .char-creation-grid .avatar-option {
        padding: 8px 4px;
    }
    .char-creation-grid .avatar-icon {
        width: 38px; height: 38px; font-size: 16px;
    }
    /* god-selector más compacto en col derecha */
    .char-creation-grid .god-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .char-creation-grid .god-card {
        padding: 8px;
    }
    .char-creation-grid .god-card h4 {
        font-size: 13px;
        margin: 0 0 2px;
    }
    .char-creation-grid .god-card p,
    .char-creation-grid .god-card small {
        font-size: 10px;
        margin: 0;
    }
}

/* Exploration: pantalla especial, Phaser maneja sus propias dimensiones */
#exploration.active {
    display: block !important;
    padding: 0 !important;
}
#exploration > .container {
    padding: 0 !important;
    max-width: 100% !important;
}
#game-container {
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 60px);
    min-height: 420px;
    margin: 0 auto;
    border: none;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Nav bar compacta */
.nav-bar { padding: 6px 10px; }
.nav-btn { padding: 7px 12px; font-size: 12px; }

/* ── CINEMÁTICA DE LORE ── */
#lore-cinematic {
    animation: fadeIn 0.5s ease;
}
#lore-slide {
    animation: fadeIn 0.4s ease;
}
.lore-dot {
    transition: width 0.3s ease, background 0.3s ease;
}

#lore-cinematic {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0,0,0,0.92);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
#lore-cinematic.visible {
    display: flex !important;
}

/* ── Vital badges (HP/Energía real en dashboard) ── */
.vital-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 3px 10px 3px 6px;
    font-size: 12px;
    position: relative;
    overflow: hidden;
}
.vital-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 0 0 20px 20px;
    transition: width 0.4s ease;
}


/* ── Vital stats en fila junto al nombre ── */
.vital-row-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    align-items: center;
}
.vital-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 5px 12px 5px 6px;
    font-size: 13px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.vital-stat-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.vital-stat-val {
    font-weight: bold;
    font-size: 14px;
}
.vital-stat-max {
    color: #666;
    font-size: 11px;
}
.vital-stat-bar {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    border-radius: 0 0 24px 24px;
    transition: width 0.5s ease;
}

/* Evitar que las notificaciones tapen el botón + de stats */
#stats-container { padding-right: 8px; }
.src-btn { position: relative; z-index: 1; }