/* ===== CRÔNICAS DOS EMISSÁRIOS - ESTILOS CUSTOMIZADOS ===== */
/* Arquivo CSS adicional para estilos específicos do jogo */

/* ===== VARIÁVEIS CSS PARA FÁCIL CUSTOMIZAÇÃO ===== */
:root {
    /* Cores principais do tema */
    --primary-purple: #8b5cf6;
    --primary-blue: #3b82f6;
    --primary-green: #10b981;
    --primary-gold: #fbbf24;
    
    /* Cores de fundo */
    --bg-dark: #1e293b;
    --bg-medium: #334155;
    --bg-light: #475569;
    
    /* Cores de texto */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-accent: #fbbf24;
    
    /* Sombras e efeitos */
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-hard: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Bordas e raios */
    --border-radius-small: 0.5rem;
    --border-radius-medium: 1rem;
    --border-radius-large: 1.5rem;
}

/* ===== ESTILOS BASE APRIMORADOS ===== */
body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* ===== EFEITOS DE PARTÍCULAS DE FUNDO ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== TIPOGRAFIA MÁGICA ===== */
.magical-font {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.medieval-font {
    font-family: 'MedievalSharp', serif;
    letter-spacing: 0.02em;
}

.elegant-font {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    line-height: 1.6;
}

.pixel-font {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8em;
    line-height: 1.4;
}

/* ===== EFEITOS DE TEXTO MÁGICOS ===== */
.magical-glow {
    animation: magicalGlow 3s ease-in-out infinite alternate;
    text-shadow: 0 0 10px currentColor;
}

@keyframes magicalGlow {
    from { 
        text-shadow: 
            0 0 10px var(--primary-purple), 
            0 0 20px var(--primary-purple), 
            0 0 30px var(--primary-purple);
        filter: brightness(1);
    }
    to { 
        text-shadow: 
            0 0 20px var(--primary-blue), 
            0 0 30px var(--primary-blue), 
            0 0 40px var(--primary-blue);
        filter: brightness(1.2);
    }
}

.text-shimmer {
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706, #fbbf24);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== MELHORIAS NO GAME SCREEN ===== */
.game-screen {
    position: relative;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 
        var(--shadow-hard),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.05) 0%, 
        rgba(59, 130, 246, 0.05) 50%, 
        rgba(16, 185, 129, 0.05) 100%);
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
}

.game-content {
    position: relative;
    z-index: 1;
}

/* ===== BOTÕES APRIMORADOS ===== */
.btn-magical {
    position: relative;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    border: 2px solid transparent;
    border-radius: var(--border-radius-medium);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-medium);
    overflow: hidden;
    cursor: pointer;
}

.btn-magical::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-magical:hover::before {
    left: 100%;
}

.btn-magical:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 10px 25px rgba(139, 92, 246, 0.4),
        0 0 20px rgba(139, 92, 246, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-magical:active {
    transform: translateY(0) scale(0.98);
}

/* ===== CARDS E CONTAINERS APRIMORADOS ===== */
.scenario-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.scenario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue), var(--primary-green));
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

.scenario-card:hover::before {
    transform: scaleX(1);
}

.scenario-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 
        0 20px 40px rgba(139, 92, 246, 0.2),
        0 0 30px rgba(139, 92, 246, 0.1);
}

/* ===== SISTEMA DE DIÁLOGO APRIMORADO ===== */
.dialogue-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 3px solid var(--primary-blue);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: var(--shadow-hard);
    position: relative;
}

.dialogue-box::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 2rem;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid var(--primary-blue);
}

.dialogue-option {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #4f46e5 100%);
    border: 2px solid transparent;
    border-radius: var(--border-radius-medium);
    padding: 1rem 1.5rem;
    margin: 0.5rem 0;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.dialogue-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s ease;
}

.dialogue-option:hover::before {
    left: 100%;
}

.dialogue-option:hover {
    transform: translateX(10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* ===== MINI-GAME APRIMORADO ===== */
.potion-bottle {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    border: 3px solid #cbd5e1;
    border-radius: var(--border-radius-medium);
    padding: 1rem;
    transition: all var(--transition-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.potion-bottle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.potion-bottle:hover::before {
    transform: translateX(100%);
}

.potion-bottle:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary-gold);
    box-shadow: 
        0 10px 25px rgba(251, 191, 36, 0.4),
        0 0 20px rgba(251, 191, 36, 0.2);
}

.potion-bottle.disabled {
    filter: grayscale(80%) brightness(0.6);
    transform: scale(0.9);
    cursor: not-allowed;
}

.potion-bottle.disabled:hover {
    transform: scale(0.9);
    border-color: #cbd5e1;
    box-shadow: none;
}

/* ===== CALDEIRÃO MÁGICO ===== */
#cauldron {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 4px solid var(--primary-purple);
    border-radius: 50% 50% 20% 20%;
    box-shadow: 
        inset 0 -20px 40px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

#cauldron::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 60%;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: cauldronGlow 2s ease-in-out infinite alternate;
}

@keyframes cauldronGlow {
    from { opacity: 0.3; transform: scale(1); }
    to { opacity: 0.7; transform: scale(1.1); }
}

#cauldron-liquid {
    border-radius: inherit;
    transition: all 0.8s ease;
    position: relative;
    z-index: 2;
}

/* ===== BOLHAS MÁGICAS ===== */
.bubble {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 50%;
    animation: rise 4s infinite ease-in;
    opacity: 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes rise {
    0% { 
        transform: translateY(0) scale(0.5); 
        opacity: 1; 
    }
    50% { 
        opacity: 0.8; 
        transform: translateY(-75px) scale(0.8);
    }
    100% { 
        transform: translateY(-150px) scale(1.2); 
        opacity: 0; 
    }
}

/* ===== INVENTÁRIO APRIMORADO ===== */
.inventory-item {
    background: linear-gradient(145deg, var(--primary-gold) 0%, #f59e0b 100%);
    border: 2px solid #d97706;
    border-radius: var(--border-radius-small);
    padding: 1rem;
    transition: all var(--transition-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.inventory-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.inventory-item:hover::before {
    transform: translateX(100%);
}

.inventory-item:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
    border-color: #fbbf24;
}

/* ===== HUD DO JOGADOR ===== */
#player-hud {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--border-radius-medium);
    padding: 1rem;
    transition: all var(--transition-medium);
}

#player-hud:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

/* ===== SISTEMA DE NOTIFICAÇÕES ===== */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    max-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.notification.success {
    background: linear-gradient(135deg, var(--primary-green) 0%, #059669 100%);
}

.notification.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* ===== ANIMAÇÕES DE ENTRADA ===== */
@keyframes slideInRight {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOutRight {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    70% {
        transform: scale(0.9);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== RESPONSIVIDADE APRIMORADA ===== */
@media (max-width: 768px) {
    .game-screen {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .dialogue-box {
        padding: 1.5rem;
    }
    
    .scenario-card {
        padding: 1.5rem;
    }
    
    .magical-font {
        font-size: 0.9em;
    }
    
    .potion-bottle {
        padding: 0.75rem;
    }
    
    #cauldron {
        width: 120px !important;
        height: 100px !important;
    }
}

@media (max-width: 480px) {
    .game-screen {
        margin: 0.25rem;
        padding: 0.75rem;
    }
    
    .btn-magical {
        padding: 0.5rem 1rem;
        font-size: 0.9em;
    }
    
    .dialogue-option {
        padding: 0.75rem 1rem;
        font-size: 0.9em;
    }
    
    .notification {
        max-width: 250px;
        padding: 0.75rem 1rem;
        font-size: 0.9em;
    }
}

/* ===== MODO ESCURO APRIMORADO ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-dark: #0f172a;
        --bg-medium: #1e293b;
        --bg-light: #334155;
    }
}

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .magical-glow {
        animation: none;
        text-shadow: 0 0 5px currentColor;
    }
}

/* ===== ESTADOS DE FOCO PARA ACESSIBILIDADE ===== */
button:focus,
.btn-magical:focus,
.dialogue-option:focus,
.potion-bottle:focus,
.inventory-item:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* ===== LOADING E ESTADOS ===== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== EFEITOS ESPECIAIS ===== */
.sparkle {
    position: relative;
}

.sparkle::before {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.2em;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.5) rotate(0deg); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1) rotate(180deg); 
    }
}

/* ===== SCROLLBAR CUSTOMIZADA ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}

/* ===== PRINT STYLES ===== */
@media print {
    .game-screen {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border: 1px solid black !important;
    }
    
    .magical-glow,
    .text-shimmer {
        animation: none !important;
        text-shadow: none !important;
        color: black !important;
    }
}

/* ===== OTIMIZAÇÕES PARA DISPOSITIVOS MÓVEIS ===== */

/* Para telas com largura máxima de 768px (tablets e celulares grandes) */
@media (max-width: 768px) {
    /* Diminui o título principal do jogo na tela de início */
    #start-screen h1 {
        font-size: 2.5rem; /* Era 3.75rem (text-6xl) */
        line-height: 1.2;
    }

    /* Diminui os títulos das telas (Criação de Personagem, etc.) */
    .game-screen h2 {
        font-size: 2rem; /* Era 2.25rem (text-4xl) */
    }

    /* Diminui o emoji da cena para não ocupar tanto espaço */
    #scene-image {
        font-size: 4rem; /* Era 4.5rem (text-8xl) */
    }

    /* Diminui o emoji do NPC no diálogo */
    #dialogue-npc-sprite {
        font-size: 3rem; /* Era 3.75rem (text-6xl) */
    }
}

/* Para telas com largura máxima de 480px (celulares menores) */
@media (max-width: 480px) {
    #start-screen h1 {
        font-size: 2rem; /* Ainda menor para telas bem pequenas */
    }

    .game-screen h2 {
        font-size: 1.75rem; /* text-3xl */
    }

    /* Ajusta o padding dos botões de ação para não ficarem enormes */
    .magical-font.py-3 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .magical-font.px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
/* ===== ESTILOS PARA O ATO 2: SISTEMA DE REPUTAÇÃO E FACÇÕES ===== */

/* ===== PAINEL DE REPUTAÇÃO ===== */
#reputation-panel {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#reputation-panel h3 {
    margin: 0 0 16px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.reputation-section {
    margin-bottom: 16px;
}

.reputation-section h4 {
    margin: 0 0 8px 0;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reputation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 4px 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.3s ease;
}

.reputation-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reputation-item span:first-child {
    font-weight: 500;
    color: #334155;
}

.reputation-item span:last-child {
    font-weight: 600;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
}

/* ===== ESTILOS PARA FACÇÕES ===== */
.faction-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
    border: 1px solid #a78bfa;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #5b21b6;
    margin: 4px;
    transition: all 0.3s ease;
}

.faction-badge:hover {
    background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
    color: #4c1d95;
    transform: scale(1.05);
}

.faction-rank {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    color: #92400e;
}

.faction-rank.aspirante {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #9ca3af;
    color: #374151;
}

.faction-rank.iniciado {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    color: #1e40af;
}

.faction-rank.guardiao {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
    color: #047857;
}

.faction-rank.mestre {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: #ec4899;
    color: #be185d;
}

/* ===== ESTILOS PARA O SANTUÁRIO DOS GUARDIÕES ===== */
.scenario.santuario-guardioes {
    background: linear-gradient(135deg, #E6E6FA 0%, #DDA0DD 30%, #98FB98 70%, #F0F8FF 100%);
    border: 3px solid #9370db;
    position: relative;
    overflow: hidden;
}

.scenario.santuario-guardioes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(221, 160, 221, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(152, 251, 152, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(240, 248, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.scenario.santuario-guardioes .scenario-content {
    position: relative;
    z-index: 1;
}

/* ===== CRISTAIS EMOCIONAIS ANIMADOS ===== */
.emotional-crystal {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 4px;
    animation: crystalPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(147, 112, 219, 0.5);
}

@keyframes crystalPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.crystal-empathy {
    background: radial-gradient(circle, #ff69b4, #ff1493);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.6);
}

.crystal-wisdom {
    background: radial-gradient(circle, #9370db, #663399);
    box-shadow: 0 0 15px rgba(147, 112, 219, 0.6);
}

.crystal-courage {
    background: radial-gradient(circle, #ffd700, #ff8c00);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* ===== DIÁLOGOS AVANÇADOS ===== */
.dialogue-option.empathy {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-left: 4px solid #ec4899;
    color: #be185d;
}

.dialogue-option.wisdom {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-left: 4px solid #8b5cf6;
    color: #5b21b6;
}

.dialogue-option.courage {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.dialogue-option.faction {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-left: 4px solid #0ea5e9;
    color: #0c4a6e;
    position: relative;
}

.dialogue-option.faction::before {
    content: '⚔️';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

/* ===== NOTIFICAÇÕES DE REPUTAÇÃO ===== */
.reputation-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    animation: slideInRight 0.5s ease-out, fadeOut 0.5s ease-in 3s forwards;
    font-weight: 500;
}

.reputation-notification.negative {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ===== MEDIDOR DE INFLUÊNCIA ===== */
.influence-meter {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
    position: relative;
}

.influence-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 4px;
    transition: width 0.8s ease-in-out;
    position: relative;
}

.influence-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ===== JARDIM DE CRISTAIS (FEATURE ESPECIAL) ===== */
.crystal-garden {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    margin: 16px 0;
    border: 2px solid #22c55e;
}

.garden-crystal {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.garden-crystal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.garden-crystal:hover::before {
    transform: translateX(100%);
}

.garden-crystal:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVIDADE PARA DISPOSITIVOS MÓVEIS ===== */
@media (max-width: 768px) {
    #reputation-panel {
        padding: 12px;
        margin: 8px 0;
    }
    
    .reputation-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .faction-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .crystal-garden {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 8px;
        padding: 12px;
    }
    
    .garden-crystal {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .reputation-notification {
        right: 10px;
        left: 10px;
        top: 10px;
        text-align: center;
    }
}

/* ===== ANIMAÇÕES DE TRANSIÇÃO ENTRE CENÁRIOS ===== */
.scenario-transition.sanctuary {
    animation: sanctuaryEntrance 1.5s ease-in-out;
}

@keyframes sanctuaryEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8);
        filter: blur(10px);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* ===== EFEITOS ESPECIAIS PARA ITENS DE FACÇÃO ===== */
.inventory-item.faction-item {
    position: relative;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #f59e0b 100%);
    border: 2px solid #d97706;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.inventory-item.faction-item::after {
    content: '⭐';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    animation: starPulse 1.5s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ===== Estilo para textos de descrição ===== */
.description-text {
    color: #1e3a8a; /* Azul escuro */
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

/* Aplicação nos cenários */
#scene-description {
    color: #1e3a8a; /* Azul escuro */
}

/* Aplicação nas missões */
.quest-description {
    color: #1e3a8a; /* Azul escuro */
}

/* Aplicação em diálogos */
.dialogue-box p {
    color: #1e3a8a; /* Azul escuro */
}

/*
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.map-button:hover {
    transform: translateY(-3px) !important;
}

.territory-card:hover {
    transform: translateY(-5px) scale(1.02) !important;
}
*/

/* ===== SISTEMA DE FACÇÕES E REPUTAÇÃO ===== */

.faction-reputation-panel {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border: 2px solid #4f46e5;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.faction-reputation-panel h3 {
    color: #e5e7eb;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.faction-status-item {
    background: rgba(31, 41, 55, 0.8);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.faction-status-item:hover {
    background: rgba(31, 41, 55, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.faction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.faction-emoji {
    font-size: 1.5em;
    margin-right: 10px;
}

.faction-name {
    color: #e5e7eb;
    font-weight: bold;
    flex-grow: 1;
}

.reputation-level {
    font-weight: bold;
    font-size: 0.9em;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
}

.reputation-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.reputation-fill {
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.reputation-value {
    text-align: center;
    color: #9ca3af;
    font-size: 0.8em;
    font-weight: bold;
}

/* Estilos para cenários das facções */
.scenario-cristalinos {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 50%, #a5b4fc 100%);
    border: 2px solid #6366f1;
}

.scenario-fluidos {
    background: linear-gradient(45deg, #a7f3d0 0%, #6ee7b7 30%, #34d399 70%, #10b981 100%);
    border: 2px solid #059669;
}

.scenario-equilibristas {
    background: radial-gradient(circle, #fde68a 0%, #fcd34d 40%, #f59e0b 80%);
    border: 2px solid #d97706;
}

/* Notificações */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background: rgba(31, 41, 55, 0.95);
    color: #e5e7eb;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #4f46e5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    max-width: 300px;
}

.notification-success {
    border-left-color: #10b981;
}

.notification-warning {
    border-left-color: #f59e0b;
}

.notification-error {
    border-left-color: #ef4444;
}

.notification-info {
    border-left-color: #3b82f6;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilos para diálogos com impacto em facções */
.dialogue-choice-faction {
    position: relative;
}

.dialogue-choice-faction::after {
    content: '🏛️';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

/* Indicadores de reputação em NPCs */
.npc-faction-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.npc-faction-cristalinos {
    background: #e0e7ff;
}

.npc-faction-fluidos {
    background: #a7f3d0;
}

.npc-faction-equilibristas {
    background: #fde68a;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .faction-reputation-panel {
        margin: 10px;
        padding: 15px;
    }
    
    .faction-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .reputation-level {
        align-self: flex-end;
    }
    
    .notification {
        max-width: calc(100vw - 40px);
        right: 20px;
    }
}

/* ===== CORREÇÃO DO BOTÃO DO MAPA-MUNDI ===== */

/* Garantir que o botão do mapa-mundi seja sempre visível quando apropriado */
#world-map-button {
    /* Forçar visibilidade quando não está explicitamente oculto */
    display: block !important;
    
    /* Garantir que o botão não seja sobreposto por outros elementos */
    z-index: 1000;
    
    /* Posicionamento relativo para manter no fluxo normal */
    position: relative;
    
    /* Garantir que o botão tenha dimensões mínimas */
    min-width: 120px;
    min-height: 40px;
    
    /* Transição suave para mudanças de visibilidade */
    transition: opacity 0.3s ease, transform 0.3s ease;
    
    /* Estado normal */
    opacity: 1;
    transform: scale(1);
}

/* Estado oculto (quando explicitamente definido pelo JavaScript) */
#world-map-button.hidden,
#world-map-button[style*="display: none"] {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Garantir que o container dos botões de ação seja visível */
.action-buttons {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

/* Estilo específico para o HUD do jogador */
#player-hud {
    /* Garantir que o HUD seja sempre visível quando o jogador está no mundo */
    display: block;
}

/* Correção para telas pequenas */
@media (max-width: 640px) {
    #world-map-button {
        min-width: 100px;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* Estado de hover melhorado */
#world-map-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Estado de foco para acessibilidade */
#world-map-button:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* Garantir que o botão seja visível em temas escuros */
.dark #world-map-button {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animação de entrada quando o botão aparece */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Aplicar animação quando o botão se torna visível */
#world-map-button:not(.hidden):not([style*="display: none"]) {
    animation: fadeInScale 0.3s ease-out;
}

/* Correção para garantir que o botão não seja cortado */
.action-buttons-container {
    overflow: visible !important;
    min-height: 60px;
}

/* Estilo de debug (remover em produção) */
#world-map-button.debug {
    border: 2px dashed red !important;
    background-color: rgba(255, 0, 0, 0.1) !important;
}

/* Garantir que o botão funcione em todos os navegadores */
#world-map-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Garantir que o texto seja sempre legível */
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    
    /* Cursor pointer para indicar interatividade */
    cursor: pointer;
}

/* Estado desabilitado (se necessário) */
#world-map-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#world-map-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===== ESTILOS PARA FACÇÕES (EXPANSÃO AKARI) ===== */

/* Estilos para cenários das facções */
.scenario-cristalinos {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 50%, #a5b4fc 100%);
    border: 2px solid #6366f1;
}

.scenario-fluidos {
    background: linear-gradient(45deg, #a7f3d0 0%, #6ee7b7 30%, #34d399 70%, #10b981 100%);
    border: 2px solid #059669;
}

.scenario-equilibristas {
    background: radial-gradient(circle, #fde68a 0%, #fcd34d 40%, #f59e0b 80%);
    border: 2px solid #d97706;
}

/* Indicadores de reputação em NPCs (para uso futuro) */
.npc-faction-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.npc-faction-cristalinos {
    background: #a5b4fc;
}

.npc-faction-fluidos {
    background: #6ee7b7;
}

.npc-faction-equilibristas {
    background: #fcd34d;
}

/* ===== SISTEMA DE COMBATE EMOCIONAL ===== */
.emotional-combat {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.emotional-states {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.player-states, .opponent-states {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.player-states h3, .opponent-states h3 {
    text-align: center;
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.emotion-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.emotion-bar span:first-child {
    min-width: 120px;
    color: #fff;
    font-weight: bold;
}

.emotion-bar span:last-child {
    min-width: 60px;
    color: #fff;
    font-size: 0.9em;
}

.bar {
    flex: 1;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
}

.fill {
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 8px;
}

.fill.calma {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.fill.empatia {
    background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
}

.fill.assertividade {
    background: linear-gradient(90deg, #ffecd2 0%, #fcb69f 100%);
}

.fill.resiliencia {
    background: linear-gradient(90deg, #a8edea 0%, #fed6e3 100%);
}

.dialogue-container {
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dialogue-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.actions-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dialogue-option {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialogue-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.action-info {
    font-size: 0.9em;
    opacity: 0.8;
    font-style: italic;
}

.feedback-container {
    margin-top: 15px;
    min-height: 30px;
}

.action-feedback {
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    padding: 10px 15px;
    margin: 0;
    font-style: italic;
    color: #555;
    border-left: 4px solid #667eea;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .emotional-states {
        flex-direction: column;
    }
    
    .emotion-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .emotion-bar span:first-child,
    .emotion-bar span:last-child {
        min-width: auto;
        text-align: center;
    }
    
    .dialogue-option {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 5px;
    }
}

/* Animações para feedback visual */
@keyframes emotionChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fill {
    animation: emotionChange 0.5s ease when width changes;
}

/* Indicadores de estado emocional */
.emotion-bar.critical .fill {
    animation: pulse 1s infinite;
}

.emotion-bar.excellent .fill {
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ===== FIM DO ARQUIVO game-styles.css ===== */

