/* Fondo general */
body.samurai-theme {
    background-image: url('images/besfondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #2b2318;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 20px;
}

/* Cabecera */
.bes-header {
    max-width: 900px;
    margin: 0 auto 20px auto;
    border-bottom: 2px solid #59422a;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(244, 235, 208, 0.9);
}

.top-brand h2 {
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: #3b2719;
    margin: 0;
}

.bes-nav a {
    color: #4a1515;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.bes-nav a:hover {
    text-decoration: underline;
}

.bes-main-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Contenedor del pergamino con márgenes internos seguros para el texto */
.parchment-box {
    background-image: url('images/cajadetexto.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 50px 80px; 
    margin-bottom: 25px;
    position: relative;
    box-sizing: border-box;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
    animation: fadeInUp 0.8s ease-out forwards;
}

.parchment-box h3 {
    border-bottom: 2px solid #7d5e3c;
    padding-bottom: 6px;
    color: #5c1818;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-top: 0;
}

.top-hero-box {
    width: 100%;
    position: relative; 
}

.image-frame-bes img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%) contrast(105%);
}

.parchment-text-area {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #2b2318;
    background: transparent; 
}

/* Sección inferior de dos columnas */
.bottom-two-columns {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
}

.bottom-parchment-col {
    margin-bottom: 0;
}

/* Ajuste para la columna de votación para que encaje en el pergamino pequeño */
.vote-sidebar-col {
    margin-bottom: 0;
    padding: 40px 30px; 
}

.vote-instruction {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.mini-vote-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mini-vote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(244, 235, 208, 0.95);
    padding: 5px 8px;
    border: 1px solid #b59b75;
    font-size: 0.85rem;
}

.edo-btn {
    background: #822020;
    color: #fff;
    border: none;
    padding: 4px 8px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
}

.edo-btn:hover {
    background: #a82a2a;
}

/* Forzar tamaño pequeño, flotando y a la derecha */
.floating-title-png {
    position: absolute !important;
    top: -40px !important;
    right: 32px !important;
    width: 160px !important;
    max-width: 160px !important;
    height: auto !important;
    z-index: 100 !important;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.5));
    animation: floatSway 4s ease-in-out infinite !important;
}

.mizu-img-container {
    width: 100%;
    margin: 15px 0;
    text-align: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.mizu-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Estilo para la ficha de personaje */
.character-sheet {
    margin-top: 10px;
}

.character-stats {
    list-style: none; 
    padding: 0;
    margin: 0;
}

.character-stats li {
    padding: 6px 0;
    border-bottom: 1px dashed #b59b75; 
    font-size: 0.9rem;
    line-height: 1.4;
}

.character-stats li:last-child {
    border-bottom: none;
}

.character-stats strong {
    color: #5c1818; 
}

/* Contenedor flexible para poner texto e imagen lado a lado */
.character-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
}

.character-text-side {
    flex: 2; 
}

.character-img-side {
    flex: 1; 
    text-align: center;
}

/* Estilo del pixel art */
.pixel-art-mizu {
    max-width: 320px; 
    height: auto;
    image-rendering: pixelated; 
    image-rendering: crisp-edges;
    filter: drop-shadow(2px 3px 4px rgba(0, 0, 0, 0.3));
}

/* --- FORZAR UNIÓN PERFECTA DE LAS TARJETAS 2x2 --- */
.voting-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    gap: 0 !important;
    padding: 0 !important;
}

.vote-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 !important;
    margin: 0 !important;
    margin-bottom: -4px !important; 
    padding: 0 !important;
}

.grid-card {
    width: 120px !important; 
    height: auto;
    display: block !important;
    margin: 0 !important;
    margin-left: -3px !important;  
    margin-right: -3px !important; 
    border: none !important;
    background: transparent !important;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease !important;
}

.grid-card:hover {
    transform: scale(1.1) rotate(-1deg) !important;
    filter: drop-shadow(0 0 8px rgba(92, 24, 24, 0.6)) !important;
    z-index: 10;
}

/* --- ANIMACIONES CREATIVAS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatSway {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(1deg);
    }
}


  
    
    
    
    
    
    
    
    
    
    
    
    
    
    !important;
    cursor: pointer;
}