/* ===================================================
   SANTUARIO 15 - style.css
   Estilo completo: MenÃº, Zona 2D, Personaje, Cinematica
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800;900&display=swap');

* { box-sizing: border-box; font-family: 'Nunito', sans-serif; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; }
body { width: 100vw; height: 100vh; background: #030712; overflow: hidden; touch-action: manipulation; color: #fff; }

/* â”€â”€â”€ UTILIDADES â”€â”€â”€ */
.hidden { display: none !important; }

/* â”€â”€â”€ SCROLLBAR â”€â”€â”€ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(17,24,39,.5); border-radius: 8px; }
::-webkit-scrollbar-thumb { background: #f43f5e; border-radius: 8px; }

/* ================================================
   MENÃš PRINCIPAL
   ================================================ */
#main-menu {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center;
    justify-content: space-between; padding: 24px;
    background: linear-gradient(135deg, #0f0617 0%, #1a0828 50%, #0d0f1a 100%);
    background-size: cover; background-position: center;
    z-index: 50;
}
#main-menu .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.75) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.9) 100%);
    pointer-events: none;
}
.btn-anime {
    transition: all .25s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,.4);
    border: none;
}
.btn-anime:hover { transform: translateY(-2px) scale(1.02); }
.btn-anime:active { transform: translateY(1px) scale(.98); }
.btn-primary {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #a855f7 100%);
    border: 2px solid #fb7185 !important;
    color: #fff;
    box-shadow: 0 0 25px rgba(244,63,94,.45);
}
.btn-primary:hover { box-shadow: 0 0 35px rgba(244,63,94,.75); }
.btn-secondary {
    background: rgba(17,24,39,.85);
    border: 1.5px solid rgba(244,63,94,.35) !important;
    color: #fce7f3;
    backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: rgba(31,41,55,.95); border-color: #f43f5e !important; }
.social-btn {
    width: 44px; height: 44px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: white; transition: all .2s; box-shadow: 0 4px 12px rgba(0,0,0,.5);
    text-decoration: none;
}
.social-btn:hover { transform: translateY(-3px) scale(1.08); }
.race-btn {
    background: rgba(17,24,39,.8); border: 2px solid rgba(107,114,128,.4);
    border-radius: 16px; padding: 12px 8px;
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; transition: all .2s; color: white;
}
.race-btn:hover { border-color: #fb7185; }
.race-btn.active {
    border-color: #f43f5e;
    background: linear-gradient(145deg, rgba(244,63,94,.25), rgba(168,85,247,.25));
    box-shadow: 0 0 20px rgba(244,63,94,.4);
}

/* ─── Locaciones del Minimapa (Portales de Puertas Iluminadas) ─── */
.loc-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(30, 27, 75, 0.85));
    border: 2px solid rgba(244, 63, 94, 0.35);
    border-radius: 20px;
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.loc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #f43f5e, #a855f7, #fbbf24);
    opacity: 0.6;
    transition: opacity 0.2s;
}
.loc-card:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #fb7185;
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.45), 0 8px 20px rgba(0, 0, 0, 0.7);
}
.loc-card:hover::before {
    opacity: 1;
}
.loc-card.active-location {
    border-color: #a855f7;
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.25), rgba(15, 23, 42, 0.95));
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
}

/* â”€â”€â”€ HUD Botones â”€â”€â”€ */
.hud-circle-btn {
    width: 42px; height: 42px; border-radius: 14px;
    background: rgba(0,0,0,.75); border: 1.5px solid rgba(244,63,94,.5);
    color: #fb7185; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .2s; backdrop-filter: blur(8px);
}
.hud-circle-btn:hover { background: #f43f5e; color: white; }
.hud-action-btn {
    border: 1.5px solid #fb7185; color: white; cursor: pointer; transition: all .2s;
}
.hud-action-btn:hover { transform: translateY(-1px); box-shadow: 0 0 25px rgba(244,63,94,.7); }

/* ================================================
   PANTALLA DE ZONA 2D (REEMPLAZA PHASER)
   ================================================ */
#zone-screen {
    position: absolute; inset: 0; z-index: 10;
    display: flex; flex-direction: column;
    overflow: hidden;
}

/* Fondo de la zona - gradientes temáticos por área */
#zone-bg {
    position: absolute; inset: 0;
    background: var(--zone-bg, linear-gradient(135deg, #1a0828, #0d1a2e));
    background-size: cover;
    background-position: center;
    transition: background 0.8s ease;
    z-index: 1;
}

/* ─── TEMAS ATMOSFÉRICOS DE CADA ZONA Y APARTAMENTO ─── */
.zone-default            { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #030712 100%) !important; }
.zone-cuarto             { background: radial-gradient(circle at 50% 30%, #3b0764 0%, #1e1b4b 50%, #090d16 100%) !important; }
.zone-apto101            { background: radial-gradient(circle at 60% 40%, #881337 0%, #4c0519 45%, #0f0307 100%) !important; }
.zone-apto102            { background: radial-gradient(circle at 40% 40%, #1e1b4b 0%, #0f172a 55%, #020617 100%) !important; }
.zone-apto103            { background: radial-gradient(circle at 50% 50%, #78350f 0%, #451a03 50%, #0c0501 100%) !important; }
.zone-apto104            { background: radial-gradient(circle at 50% 40%, #064e3b 0%, #022c22 55%, #01130e 100%) !important; }
.zone-spa-termas         { background: radial-gradient(circle at 50% 30%, #155e75 0%, #082f49 50%, #03141f 100%) !important; }
.zone-spa-masajes        { background: radial-gradient(circle at 50% 40%, #6b21a8 0%, #3b0764 50%, #150225 100%) !important; }
.zone-spa-yoga           { background: radial-gradient(circle at 50% 35%, #4338ca 0%, #1e1b4b 55%, #0b0726 100%) !important; }
.zone-mall-boutique      { background: radial-gradient(circle at 60% 30%, #86198f 0%, #4a044e 50%, #1c021e 100%) !important; }
.zone-mall-gourmet       { background: radial-gradient(circle at 50% 40%, #9a3412 0%, #431407 55%, #170702 100%) !important; }
.zone-mall-musica        { background: radial-gradient(circle at 40% 35%, #581c87 0%, #1f083b 50%, #0a0114 100%) !important; }
.zone-parque-botanico    { background: radial-gradient(circle at 50% 30%, #166534 0%, #052e16 55%, #021208 100%) !important; }
.zone-parque-zen         { background: radial-gradient(circle at 50% 40%, #9d174d 0%, #500724 55%, #1f010c 100%) !important; }
.zone-parque-calistenia  { background: radial-gradient(circle at 50% 35%, #1d4ed8 0%, #172554 55%, #050d24 100%) !important; }
.zone-nocturno-garita    { background: radial-gradient(circle at 50% 40%, #334155 0%, #0f172a 55%, #020617 100%) !important; }
.zone-nocturno-lounge    { background: radial-gradient(circle at 50% 30%, #9f1239 0%, #4c0519 50%, #1a0108 100%) !important; }

/* Fondo: DecoraciÃ³n de habitaciÃ³n con CSS */
#zone-bg::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.7) 100%),
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.02) 0px,
            rgba(255,255,255,0.02) 1px,
            transparent 1px,
            transparent 80px
        );
}

/* Piso de la habitaciÃ³n */
#zone-bg::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 28%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 100%);
    border-top: 2px solid rgba(255,255,255,0.06);
}

/* ══════════════════════════════════════════════════════
   MARCO ILUMINADO DEL PERSONAJE Y PUERTAS INTERACTIVAS
   ══════════════════════════════════════════════════════ */

/* 1. Marco Iluminado de Personaje */
#character-display-zone {
    position: absolute;
    left: 50%; top: 48%;
    transform: translate(-50%, -50%);
    width: min(420px, 60vw);
    height: min(480px, 65vh);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    border-radius: 32px;
    padding-bottom: 16px;
    z-index: 12;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.character-neon-frame {
    background: radial-gradient(ellipse at 50% 85%, rgba(244, 63, 94, 0.22) 0%, rgba(168, 85, 247, 0.1) 45%, rgba(15, 23, 42, 0.6) 80%);
    border: 2px solid rgba(244, 63, 94, 0.55);
    box-shadow: 
        0 0 25px rgba(244, 63, 94, 0.35),
        inset 0 0 35px rgba(244, 63, 94, 0.2),
        0 15px 40px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(14px);
    animation: neonGlowPulse 4s ease-in-out infinite alternate;
}

.character-neon-frame:hover {
    transform: translate(-50%, -52%) scale(1.02);
    border-color: #fb7185;
    box-shadow: 
        0 0 45px rgba(244, 63, 94, 0.6),
        inset 0 0 45px rgba(244, 63, 94, 0.3),
        0 20px 50px rgba(0, 0, 0, 0.9);
}

@keyframes neonGlowPulse {
    0% {
        box-shadow: 0 0 20px rgba(244, 63, 94, 0.3), inset 0 0 25px rgba(244, 63, 94, 0.15), 0 10px 30px rgba(0,0,0,0.7);
        border-color: rgba(244, 63, 94, 0.5);
    }
    50% {
        box-shadow: 0 0 35px rgba(168, 85, 247, 0.45), inset 0 0 35px rgba(168, 85, 247, 0.25), 0 15px 40px rgba(0,0,0,0.8);
        border-color: rgba(168, 85, 247, 0.7);
    }
    100% {
        box-shadow: 0 0 40px rgba(244, 63, 94, 0.55), inset 0 0 40px rgba(244, 63, 94, 0.3), 0 20px 45px rgba(0,0,0,0.85);
        border-color: rgba(251, 113, 133, 0.85);
    }
}

/* Halos decorativos de energía */
.char-frame-aura {
    position: absolute;
    inset: -6px;
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.3), transparent 40%, rgba(168, 85, 247, 0.3));
    pointer-events: none;
    filter: blur(8px);
    opacity: 0.7;
    z-index: -1;
}

/* Callout superior interactivo */
.character-prompt-callout {
    position: absolute;
    top: -18px;
    background: linear-gradient(135deg, #f43f5e 0%, #a855f7 100%);
    border: 1.5px solid #fda4af;
    border-radius: 99px;
    padding: 6px 18px;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: calloutFloat 2.5s ease-in-out infinite;
    user-select: none;
    z-index: 15;
}

.character-prompt-callout:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 0 30px rgba(244, 63, 94, 0.9);
}

@keyframes calloutFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.callout-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse 1.5s infinite;
}

/* Contenedor visual del personaje */
.character-visual-holder {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 75%;
    position: relative;
}

/* Sprite animado */
#npc-sprite {
    font-size: clamp(100px, 18vw, 170px);
    line-height: 1;
    animation: breathe 4s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    user-select: none;
    filter: drop-shadow(0 10px 25px rgba(244,63,94,0.4));
}
#npc-sprite:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 14px 35px rgba(244,63,94,0.75));
}

/* Placa inferior de nombre */
.character-name-badge {
    margin-top: 10px;
    background: rgba(8, 12, 26, 0.88);
    border: 1.5px solid rgba(244, 63, 94, 0.55);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 6px 18px;
    font-weight: 900;
    font-size: 14px;
    color: #fda4af;
    letter-spacing: 0.05em;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

/* Botón flotante para alternar y ver la puerta */
.door-revisit-pill {
    position: absolute;
    right: 14px;
    bottom: 12px;
    background: rgba(8, 12, 26, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 99px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 800;
    color: #fde68a;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}
.door-revisit-pill:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
    transform: scale(1.06);
}

/* ══════════════════════════════════════════════════════
   2. PUERTA INTERACTIVA ILUMINADA (APARTAMENTOS)
   ══════════════════════════════════════════════════════ */
#zone-door-interactive {
    position: absolute;
    left: 50%; top: 48%;
    transform: translate(-50%, -50%);
    width: min(340px, 50vw);
    height: min(480px, 68vh);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 11;
    perspective: 1000px;
}

.interactive-door-card {
    width: 100%;
    height: 85%;
    background: linear-gradient(180deg, #1c1917 0%, #0c0a09 100%);
    border: 4px solid #78350f;
    border-radius: 20px 20px 0 0;
    box-shadow: 
        0 0 35px rgba(245, 158, 11, 0.35),
        inset 0 0 40px rgba(0, 0, 0, 0.9),
        0 20px 50px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-door-card:hover {
    transform: scale(1.03);
    box-shadow: 
        0 0 55px rgba(245, 158, 11, 0.55),
        inset 0 0 50px rgba(245, 158, 11, 0.15),
        0 25px 60px rgba(0, 0, 0, 0.95);
    border-color: #f59e0b;
}

.door-metal-trim {
    position: absolute;
    inset: 12px;
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: 12px 12px 0 0;
    pointer-events: none;
}

.door-light-top {
    width: 60px;
    height: 6px;
    background: #fbbf24;
    border-radius: 99px;
    box-shadow: 0 0 16px #fbbf24, 0 0 32px #f59e0b;
    margin-bottom: 12px;
}

.door-plaque {
    background: linear-gradient(135deg, #78350f 0%, #451a03 100%);
    border: 1.5px solid #f59e0b;
    border-radius: 14px;
    padding: 10px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6), 0 0 15px rgba(245, 158, 11, 0.25);
    z-index: 2;
}
.door-plaque span {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fef08a;
    display: block;
}
.door-plaque h3 {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin-top: 2px;
}

.door-peephole-lens {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, #38bdf8 20%, #0369a1 80%);
    border: 2px solid #fbbf24;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
    margin: 10px 0;
}

.door-handle-wrap {
    align-self: flex-end;
    margin-right: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.door-handle-lever {
    width: 32px;
    height: 10px;
    background: linear-gradient(90deg, #fbbf24, #d97706);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 10px rgba(251, 191, 36, 0.5);
}
.door-keyhole {
    width: 6px;
    height: 10px;
    background: #000;
    border-radius: 2px;
}

/* Botón interactivo para llamar a la puerta */
.door-knock-btn {
    margin-top: 16px;
    background: linear-gradient(135deg, #f43f5e 0%, #a855f7 100%);
    border: 2px solid #fda4af;
    border-radius: 16px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.5);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}
.door-knock-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 35px rgba(244, 63, 94, 0.8);
}
.door-knock-btn:active {
    transform: scale(0.97);
}

/* AnimaciÃ³n respiraciÃ³n del personaje */
@keyframes breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-8px) scale(1.015); }
}

/* Indicador de chicas en la zona (botones) */
#zone-npc-list {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 10px;
    z-index: 5;
}
.zone-npc-btn {
    width: 52px; height: 52px; border-radius: 16px;
    background: rgba(0,0,0,0.75); border: 2px solid rgba(244,63,94,0.4);
    color: white; font-size: 22px; cursor: pointer; transition: all .2s;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.zone-npc-btn:hover { border-color: #f43f5e; box-shadow: 0 0 18px rgba(244,63,94,0.5); transform: scale(1.08); }
.zone-npc-btn.active-npc { border-color: #f43f5e; background: rgba(244,63,94,0.25); box-shadow: 0 0 20px rgba(244,63,94,0.5); }

/* Mensaje cuando la zona está vacía */
#zone-empty-msg {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fce7f3;
    font-size: 14px;
    z-index: 20;
    background: rgba(15, 23, 42, 0.88);
    border: 1.5px solid rgba(244, 63, 94, 0.45);
    border-radius: 24px;
    padding: 28px 32px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.7), 0 0 30px rgba(244, 63, 94, 0.2);
    max-width: 440px;
    width: 90%;
}

/* ================================================
   PANEL DE DIÃLOGO + MENÃš DE 5 ACCIONES
   ================================================ */
#dialogue-panel {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 20;
    padding: 12px 16px 16px;
    pointer-events: none;
}

#dialogue-inner {
    max-width: 860px;
    margin: 0 auto;
    background: rgba(3,7,18,0.95);
    border: 1.5px solid rgba(244,63,94,0.6);
    border-radius: 24px;
    padding: 16px 20px 14px;
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 40px rgba(244,63,94,0.2), 0 0 0 1px rgba(244,63,94,0.1);
    pointer-events: auto;
}

/* Cabecera: nombre + barra de confianza */
#dialogue-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
#dialogue-npc-name {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 900; color: #fb7185;
    display: flex; align-items: center; gap: 8px;
}
#trust-bar-wrap {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
#trust-label { font-size: 11px; font-weight: 800; color: #fda4af; }
#trust-bar-bg {
    width: clamp(90px, 15vw, 140px); height: 10px;
    background: rgba(255,255,255,0.08); border-radius: 99px;
    overflow: hidden; border: 1px solid rgba(244,63,94,0.3);
}
#trust-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f43f5e, #ec4899);
    border-radius: 99px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(244,63,94,0.6);
}
#trust-num { font-size: 12px; font-weight: 900; color: #fb7185; min-width: 38px; }
#trust-tier {
    font-size: 10px; font-weight: 800; padding: 2px 8px;
    border-radius: 99px; text-transform: uppercase; letter-spacing: 0.05em;
    background: rgba(244,63,94,0.15); border: 1px solid rgba(244,63,94,0.4); color: #fda4af;
}

/* Texto del diÃ¡logo */
#dialogue-text-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 12px 16px;
    font-size: clamp(13px, 2.2vw, 15px);
    color: #e5e7eb;
    line-height: 1.65;
    min-height: 56px;
    margin-bottom: 12px;
    position: relative;
}
/* Comillas decorativas */
#dialogue-text-box::before {
    content: '"';
    position: absolute; top: 4px; left: 10px;
    font-size: 40px; color: rgba(244,63,94,0.2);
    font-family: serif; line-height: 1;
}

/* MenÃº de 5 acciones */
#action-menu {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
@media (max-width: 560px) {
    #action-menu { grid-template-columns: repeat(3, 1fr); }
    #action-menu .action-btn:last-child { grid-column: span 3; }
}
.action-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 10px 8px; border-radius: 16px;
    font-size: 11px; font-weight: 800; cursor: pointer; transition: all .2s;
    border: 1.5px solid transparent; color: white; background: rgba(255,255,255,0.06);
}
.action-btn span.icon { font-size: 20px; line-height: 1; }
.action-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.4); }
.action-btn:active { transform: translateY(1px); }

.ab-chat    { border-color: rgba(244,63,94,0.4); background: rgba(244,63,94,0.1); }
.ab-chat:hover { background: rgba(244,63,94,0.25); border-color: #f43f5e; }

.ab-favor   { border-color: rgba(168,85,247,0.4); background: rgba(168,85,247,0.1); }
.ab-favor:hover { background: rgba(168,85,247,0.25); border-color: #a855f7; }

.ab-compliment { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.08); }
.ab-compliment:hover { background: rgba(245,158,11,0.2); border-color: #f59e0b; }

.ab-interact { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.1); }
.ab-interact:hover { background: rgba(16,185,129,0.25); border-color: #10b981; box-shadow: 0 0 16px rgba(16,185,129,0.4); }

.ab-leave   { border-color: rgba(107,114,128,0.4); background: rgba(107,114,128,0.08); }
.ab-leave:hover { background: rgba(107,114,128,0.2); border-color: #6b7280; }

/* ================================================
   PANEL CINEMATICO (VIDEO + BOTONES)
   ================================================ */
#cinematic-panel {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,0.97);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 16px;
}
#cinematic-panel::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(244,63,94,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Cabecera del panel */
#cinematic-header {
    width: 100%; max-width: 900px;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; flex-shrink: 0;
}
#cinematic-title {
    font-size: clamp(14px, 3vw, 20px);
    font-weight: 900; color: #fb7185;
    display: flex; align-items: center; gap: 8px;
}
#btn-close-cinematic {
    width: 38px; height: 38px; border-radius: 12px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    color: #9ca3af; cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center; transition: all .2s;
}
#btn-close-cinematic:hover { background: rgba(244,63,94,0.2); border-color: #f43f5e; color: white; }

/* Contenedor del video */
#cinematic-video-wrap {
    width: 100%; max-width: 900px;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(244,63,94,0.4);
    box-shadow: 0 0 40px rgba(244,63,94,0.3), 0 0 80px rgba(244,63,94,0.1);
    background: #000;
    position: relative;
    flex-shrink: 0;
}
#cinematic-video {
    width: 100%; height: 100%;
    object-fit: cover;
}
/* Placeholder cuando no hay video */
#cinematic-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0f0617, #1a0828);
    gap: 12px;
}
#cinematic-placeholder .ph-icon { font-size: 64px; opacity: 0.4; }
#cinematic-placeholder p { color: rgba(255,255,255,0.35); font-size: 13px; text-align: center; max-width: 260px; }

/* Barra de progreso del video (custom) */
#cinematic-progress-wrap {
    width: 100%; max-width: 900px;
    margin-top: 8px; padding: 0 4px; flex-shrink: 0;
}
#cinematic-progress-bg {
    width: 100%; height: 5px; background: rgba(255,255,255,0.1);
    border-radius: 99px; overflow: hidden; cursor: pointer;
}
#cinematic-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #f43f5e, #ec4899);
    border-radius: 99px; transition: width 0.3s linear;
    pointer-events: none;
}

/* Controles del video */
#cinematic-controls {
    width: 100%; max-width: 900px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-top: 10px; flex-shrink: 0;
    flex-wrap: wrap;
}
#cinematic-controls-left { display: flex; align-items: center; gap: 8px; }
.ctrl-btn {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    color: white; cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.ctrl-btn:hover { background: rgba(244,63,94,0.25); border-color: #f43f5e; }
#cinematic-volume-slider {
    width: 70px; height: 4px; accent-color: #f43f5e; cursor: pointer;
}
#cinematic-time { font-size: 11px; color: #9ca3af; font-weight: 700; }

/* Botones de interacciÃ³n durante el video */
#cinematic-action-btns {
    display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
    width: 100%; max-width: 900px;
    margin-top: 12px; flex-shrink: 0;
}
.cin-action-btn {
    flex: 1; min-width: 120px; max-width: 220px;
    padding: 12px 16px; border-radius: 16px;
    font-size: 13px; font-weight: 800; cursor: pointer; transition: all .2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1.5px solid transparent;
}
.cin-action-btn:hover { transform: translateY(-2px); }
#btn-cin-love { background: rgba(244,63,94,0.15); border-color: rgba(244,63,94,0.5); color: #fb7185; }
#btn-cin-love:hover { background: rgba(244,63,94,0.3); box-shadow: 0 0 20px rgba(244,63,94,0.4); }
#btn-cin-msg  { background: rgba(168,85,247,0.15); border-color: rgba(168,85,247,0.5); color: #c084fc; }
#btn-cin-msg:hover { background: rgba(168,85,247,0.3); box-shadow: 0 0 20px rgba(168,85,247,0.4); }
#btn-cin-skip { background: rgba(107,114,128,0.15); border-color: rgba(107,114,128,0.4); color: #9ca3af; }
#btn-cin-skip:hover { background: rgba(107,114,128,0.25); }

/* Input de mensaje en cinematica */
#cin-message-wrap {
    width: 100%; max-width: 900px;
    margin-top: 10px; flex-shrink: 0;
    display: flex; gap: 10px;
}
#cin-message-input {
    flex: 1; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(244,63,94,0.4); border-radius: 14px;
    padding: 10px 16px; color: white; font-size: 13px; font-weight: 600;
    outline: none;
}
#cin-message-input:focus { border-color: #f43f5e; box-shadow: 0 0 12px rgba(244,63,94,0.3); }
#cin-message-input::placeholder { color: rgba(255,255,255,0.25); }
#btn-cin-send {
    padding: 10px 20px; border-radius: 14px;
    background: linear-gradient(135deg, #f43f5e, #a855f7);
    border: none; color: white; font-weight: 800; font-size: 13px; cursor: pointer;
    transition: all .2s;
}
#btn-cin-send:hover { transform: scale(1.04); box-shadow: 0 0 16px rgba(244,63,94,0.5); }

/* NotificaciÃ³n de +confianza */
.trust-toast {
    position: fixed; top: 80px; right: 20px; z-index: 200;
    background: rgba(244,63,94,0.95); color: white;
    padding: 10px 20px; border-radius: 16px; font-weight: 900; font-size: 15px;
    box-shadow: 0 4px 20px rgba(244,63,94,0.5);
    animation: toast-in 0.3s ease, toast-out 0.3s ease 1.7s forwards;
    pointer-events: none;
}
@keyframes toast-in  { from { opacity:0; transform: translateX(40px); } to { opacity:1; transform: translateX(0); } }
@keyframes toast-out { from { opacity:1; } to { opacity:0; transform: translateX(40px); } }

/* Zona TemÃ¡ticas: Variables CSS por locaciÃ³n */
.zone-recepcion   { --zone-bg: linear-gradient(135deg, #1a1035 0%, #2d1b69 50%, #1a1035 100%); }
.zone-seguridad   { --zone-bg: linear-gradient(135deg, #0a0a1a 0%, #1a1f3d 50%, #0a0a1a 100%); }
.zone-oficina     { --zone-bg: linear-gradient(135deg, #1a0e2e 0%, #2d1b4e 50%, #1a0e2e 100%); }
.zone-gimnasio    { --zone-bg: linear-gradient(135deg, #1a0a1a 0%, #4a0a2e 50%, #1a0a1a 100%); }
.zone-biblioteca  { --zone-bg: linear-gradient(135deg, #0a140a 0%, #1a3a1a 50%, #0a140a 100%); }
.zone-spa         { --zone-bg: linear-gradient(135deg, #1a0a28 0%, #3d0f5e 50%, #1a0a28 100%); }
.zone-cocina      { --zone-bg: linear-gradient(135deg, #1a0800 0%, #4a1a00 50%, #1a0800 100%); }
.zone-bar         { --zone-bg: linear-gradient(135deg, #1a0828 0%, #2d0050 50%, #1a0828 100%); }
.zone-jardin      { --zone-bg: linear-gradient(135deg, #001a08 0%, #003d1a 50%, #001a08 100%); }
.zone-club        { --zone-bg: linear-gradient(135deg, #020005 0%, #0a0015 50%, #020005 100%); }
.zone-invernadero { --zone-bg: linear-gradient(135deg, #001814 0%, #003d30 50%, #001814 100%); }
.zone-rehabilitacion { --zone-bg: linear-gradient(135deg, #001828 0%, #00405d 50%, #001828 100%); }
.zone-santuario   { --zone-bg: linear-gradient(135deg, #1a001a 0%, #3d0040 30%, #1a001a 100%); }

/* â”€â”€â”€ Decoradores de fondo por zona â”€â”€â”€ */
.zone-gimnasio    #zone-bg { background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 40px); }
.zone-biblioteca  #zone-bg { background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 60px); }
.zone-club        #zone-bg { background-image: radial-gradient(circle at 50% 50%, rgba(168,85,247,0.15) 0%, transparent 60%); }
.zone-jardin      #zone-bg { background-image: radial-gradient(circle at 20% 80%, rgba(34,197,94,0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(16,185,129,0.08) 0%, transparent 50%); }

/* â”€â”€â”€ Modales generales â”€â”€â”€ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.88);
    display: flex; align-items: center; justify-content: center;
    z-index: 60; padding: 16px;
    backdrop-filter: blur(8px);
}
.modal-card {
    background: #0f0617;
    border: 1.5px solid rgba(244,63,94,0.5);
    border-radius: 28px;
    padding: 24px;
    width: 100%; max-width: 480px;
    max-height: 85vh; overflow-y: auto;
    box-shadow: 0 0 40px rgba(244,63,94,0.25);
}
.modal-card-lg {
    max-width: 700px;
}
.close-modal {
    background: none; border: none; color: #6b7280;
    cursor: pointer; font-size: 20px; transition: color .2s;
}
.close-modal:hover { color: white; }

/* ================================================
   RESPONSIVE DESIGN & NUEVOS ELEMENTOS (CORAZONES E HISTORIA)
   ================================================ */

/* Corazones */
.heart-icon {
    color: #4b5563; /* Gris oscuro vacío */
    transition: color 0.3s, transform 0.3s;
}
.heart-icon.filled {
    color: #f43f5e; /* Rojo lleno */
    filter: drop-shadow(0 0 5px rgba(244,63,94,0.6));
}
.heart-icon.anim-pop {
    animation: pop-heart 0.4s ease-out;
}
@keyframes pop-heart {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Opciones de Historia */
.story-choice-btn {
    width: 100%;
    text-align: left;
    background: rgba(244,63,94,0.1);
    border: 1px solid rgba(244,63,94,0.3);
    padding: 10px 14px;
    border-radius: 12px;
    color: #fce7f3;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}
.story-choice-btn:hover {
    background: rgba(244,63,94,0.25);
    border-color: #f43f5e;
    transform: translateX(4px);
}
.story-choice-btn.locked {
    background: rgba(107,114,128,0.1);
    border-color: rgba(107,114,128,0.3);
    color: rgba(156,163,175,0.7);
    cursor: not-allowed;
}
.story-choice-btn.locked:hover {
    transform: none;
}

/* Ajustes Responsive para Móviles */
@media (max-width: 600px) {
    #dialogue-inner {
        padding: 12px 14px 10px;
    }
    #character-display-zone {
        top: 40%;
        width: 80vw;
        height: 50vh;
    }
    #npc-sprite {
        font-size: clamp(80px, 20vw, 120px);
    }
    .zone-npc-btn {
        width: 44px; height: 44px; font-size: 18px;
    }
    #zone-screen > div:nth-child(2) {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px;
    }
    #zone-screen > div:nth-child(2) > div:first-child {
        justify-content: center;
    }
    #zone-screen > div:nth-child(2) > div:last-child {
        justify-content: center;
    }
    
    .modal-card {
        margin: 10px;
        width: calc(100% - 20px);
        max-width: none;
        padding: 16px;
    }
    #locations-grid, #characters-gallery {
        grid-template-columns: 1fr !important;
    }
    #scenes-gallery {
        grid-template-columns: 1fr !important;
    }
}


/* --- FILTROS DE DISTRITO EN MAPA CIUDAD --- */
.district-btn {
    background: rgba(17,24,39,0.8);
    border: 1px solid rgba(244,63,94,0.3);
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 800;
    color: #e5e7eb;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}
.district-btn:hover {
    border-color: #f43f5e;
    background: rgba(244,63,94,0.2);
}
.district-btn.active {
    background: linear-gradient(135deg, #f43f5e, #a855f7);
    border-color: #fb7185;
    color: #fff;
    box-shadow: 0 0 12px rgba(244,63,94,0.4);
}

/* --- SUBMENUS DINÁMICOS DE ACCIÓN --- */
.submenu-opt-btn {
    width: 100%;
    text-align: left;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 10px 14px;
    color: #f3f4f6;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.submenu-opt-btn:hover {
    background: rgba(244,63,94,0.2);
    border-color: rgba(244,63,94,0.5);
    transform: translateX(3px);
}
.submenu-opt-btn.risk-warning {
    border-color: rgba(239,68,68,0.4);
}
.submenu-opt-btn.risk-warning:hover {
    background: rgba(239,68,68,0.25);
    border-color: #ef4444;
}


/* ================================================
   CREADOR DE PERSONAJE AVANZADO (ESTUDIO 2D)
   ================================================ */
.modal-card-xl {
    max-width: 950px !important;
    width: 95vw !important;
    max-height: 94vh !important;
    padding: 20px !important;
    display: flex;
    flex-direction: column;
}

.customizer-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    overflow-y: auto;
    max-height: 72vh;
    padding-right: 6px;
}

@media (max-width: 768px) {
    .customizer-grid {
        grid-template-columns: 1fr;
    }
}

.avatar-preview-card {
    background: radial-gradient(circle at 50% 30%, rgba(244,63,94,0.15) 0%, rgba(15,23,42,0.9) 100%);
    border: 1px solid rgba(244,63,94,0.4);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
    position: relative;
    min-height: 380px;
}

.custom-slider-wrap {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 8px 12px;
    margin-bottom: 8px;
}
.custom-slider-wrap label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 800;
    color: #fda4af;
    margin-bottom: 4px;
}
.custom-slider-wrap input[type=range] {
    width: 100%;
    accent-color: #f43f5e;
    cursor: pointer;
}

.swatch-picker {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.palette-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}
.palette-swatch:hover {
    transform: scale(1.15);
}
.palette-swatch.active {
    border-color: #fff;
    box-shadow: 0 0 8px #f43f5e;
}

.opt-pill-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.opt-pill {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e5e7eb;
    border-radius: 99px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.opt-pill:hover {
    border-color: #f43f5e;
    background: rgba(244,63,94,0.15);
}
.opt-pill.active {
    background: linear-gradient(135deg, #f43f5e, #a855f7);
    border-color: #fb7185;
    color: #fff;
    box-shadow: 0 0 10px rgba(244,63,94,0.4);
}

/* ================================================
   ZONIFICACION 2D Y HUD DE ESTADISTICAS RPG
   ================================================ */
#zone-screen {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #030712;
}

#zone-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-in-out;
    filter: brightness(0.65) saturate(1.15);
}
#zone-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(3,7,18,0.1) 0%, rgba(3,7,18,0.85) 100%);
    pointer-events: none;
}

/* Escenario del Modelo 2D */
#character-display-zone {
    position: absolute;
    bottom: 200px;
    left: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    transition: all 0.3s ease;
}

.npc-2d-figure {
    max-height: 58vh;
    max-width: 320px;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.85));
    animation: figureFloat 4s ease-in-out infinite;
}

@keyframes figureFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* HUD DE ESTADISTICAS RPG */
#npc-rpg-hud {
    position: absolute;
    top: 75px;
    left: 20px;
    width: 290px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(244, 63, 94, 0.45);
    border-radius: 20px;
    padding: 14px 16px;
    z-index: 15;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    #npc-rpg-hud {
        width: calc(100vw - 32px);
        left: 16px;
        top: 65px;
        padding: 10px 12px;
    }
    #character-display-zone {
        left: 50%;
        transform: translateX(-50%);
        bottom: 240px;
    }
    .npc-2d-figure {
        max-height: 40vh;
    }
}

.rpg-stat-bar-wrap {
    margin-bottom: 8px;
}
.rpg-stat-bar-wrap .stat-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 3px;
}
.rpg-bar-track {
    height: 7px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}
.rpg-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease-out;
}
.fill-lust {
    background: linear-gradient(90deg, #f43f5e, #fb7185);
    box-shadow: 0 0 8px rgba(244,63,94,0.6);
}
.fill-stamina {
    background: linear-gradient(90deg, #f59e0b, #eab308);
    box-shadow: 0 0 8px rgba(245,158,11,0.6);
}
.fill-patience {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    box-shadow: 0 0 8px rgba(59,130,246,0.6);
}

.stat-badges-row {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 8px;
}
.stat-mini-badge {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 4px 6px;
    text-align: center;
}
.stat-mini-badge .lbl {
    font-size: 9px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    font-weight: 800;
    display: block;
}
.stat-mini-badge .val {
    font-size: 12px;
    font-weight: 900;
    color: #fda4af;
}

/* Boton Ropa / Atuendo */
.ab-outfit {
    border-color: rgba(168,85,247,0.5) !important;
}
.ab-outfit:hover {
    background: rgba(168,85,247,0.2) !important;
    box-shadow: 0 0 15px rgba(168,85,247,0.4) !important;
}


/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â EXPANSIONES DEFORMACIÃƒâ€œN 2D Y CINEMÃƒÂTICA ÃƒÂNTIMA Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
.avatar-mode-btn {
    transition: all 0.2s ease;
}
.avatar-mode-btn.active {
    background: #f43f5e !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(244,63,94,0.5);
}

#player-2d-deform-wrap {
    transform-origin: center bottom;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}

.player-thumb-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.5);
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.player-thumb-btn:hover {
    border-color: #f43f5e;
    transform: scale(1.05);
}
.player-thumb-btn.active {
    border-color: #f43f5e;
    box-shadow: 0 0 10px rgba(244,63,94,0.6);
}

.cin-act-btn {
    transition: all 0.15s ease;
}
.cin-act-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244,63,94,0.25);
}
.cin-act-btn:active {
    transform: scale(0.97);
}

/* ===================================================
   HAREM HEAVEN INSPIRED LAYOUT: SIDEBAR + VIEWPORT
   =================================================== */
#zone-screen {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#zone-screen.hidden {
    display: none !important;
}

/* 1. BARRA LATERAL PERSISTENTE (SIDEBAR) */
#game-sidebar {
    width: 280px;
    min-width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(8, 12, 26, 0.98) 0%, rgba(15, 23, 42, 0.96) 100%);
    border-right: 1.5px solid rgba(244, 63, 94, 0.35);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    z-index: 40;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 14px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(244, 63, 94, 0.2);
    margin-bottom: 12px;
}
.sidebar-brand-badge {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #f43f5e;
    margin-bottom: 2px;
}
.sidebar-title {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #fda4af, #f9a8d4, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    letter-spacing: 0.05em;
}
.sidebar-subtitle {
    font-size: 10px;
    color: rgba(253, 164, 175, 0.7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Tarjeta del jugador en Sidebar */
.sidebar-player-card {
    background: rgba(3, 7, 18, 0.75);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 16px;
    padding: 10px 12px;
    margin-bottom: 14px;
}
.sidebar-avatar {
    font-size: 28px;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    border-radius: 14px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar-race-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fda4af;
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.4);
    border-radius: 99px;
    padding: 1px 7px;
    margin-top: 2px;
}
.sidebar-stats-box {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sidebar-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
}
.sidebar-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 2px 6px;
    font-size: 10px;
    letter-spacing: 0.02em;
}

/* Navegación de la Sidebar */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.sidebar-nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: left;
}
.sidebar-nav-btn i {
    font-size: 14px;
    width: 18px;
    text-align: center;
}
.sidebar-nav-btn:hover {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.5);
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.2);
}
.sidebar-nav-btn:active {
    transform: scale(0.98);
}

/* Footer de la Sidebar */
.sidebar-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}
.sidebar-footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sidebar-footer-btn:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: #f43f5e;
    color: #fff;
}

/* 2. VIEWPORT PRINCIPAL */
#game-main-viewport {
    flex: 1;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.viewport-quick-actions {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 25;
}
.quick-map-pill {
    background: rgba(8, 12, 26, 0.85);
    border: 1px solid rgba(244, 63, 94, 0.45);
    border-radius: 99px;
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 800;
    color: #fda4af;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.quick-map-pill:hover {
    background: rgba(244, 63, 94, 0.3);
    border-color: #f43f5e;
    transform: translateY(-1px);
    color: #fff;
}

.mobile-top-bar {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(8, 12, 26, 0.95);
    border-bottom: 1px solid rgba(244, 63, 94, 0.35);
    backdrop-filter: blur(12px);
    z-index: 35;
    padding: 0 12px;
    align-items: center;
    justify-content: space-between;
}
.mobile-menu-btn {
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fda4af;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    #game-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        box-shadow: 10px 0 40px rgba(0,0,0,0.8);
    }
    #game-sidebar.sidebar-mobile-open {
        transform: translateX(0);
    }
    .mobile-top-bar {
        display: flex;
    }
    .viewport-quick-actions {
        top: 56px;
    }
}
