body {
    background-color: #0b1120;
    color: white;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    font-family: 'Georgia', serif;
}

#grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 6px;
    width: 88vw;
    max-width: 380px;
    height: 88vw;
    max-height: 380px;
    background-color: #1e293b;
    padding: 10px;
    border-radius: 16px;
    box-shadow: inset 0 0 25px rgba(0,0,0,0.6), 0 10px 25px rgba(0,0,0,0.4);
    border: 2px solid #334155;
}

.cell {
    background-color: #334155;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: bold;
    color: #94a3b8;
    position: relative;
    transition: background-color 0.15s;
}

.cell.active { background-color: #0284c7 !important; }
.cell.error {
    background-color: #dc2626 !important;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(0,0,0,0.3) 8px, rgba(0,0,0,0.3) 16px);
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.node {
    background: radial-gradient(circle, #1e293b 60%, #0f172a 100%);
    color: #f8fafc;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    border: 2px solid #64748b;
    z-index: 10;
}

.wanted-container {
    width: 90vw;
    max-width: 340px;
    aspect-ratio: 7 / 10;
    background-image: url('../assets/wanted_bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.9);
    border-radius: 4px;
}

.wanted-photo {
    position: absolute;
    top: 22.5%;
    left: 11%;
    width: 78%;
    height: 43.5%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.wanted-name {
    position: absolute;
    top: 73%;
    width: 100%;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #3b2313;
    letter-spacing: 2px;
    transform: scaleY(1.2);
}

.wanted-bounty {
    position: absolute;
    top: 83%;
    width: 100%;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: #3b2313;
    letter-spacing: 3px;
}

.pergamino-bg {
    background-color: #e5d3b3;
    border: 4px solid #8b5a2b;
    color: #4a2f13;
}

/* =========================================
   NUEVAS REGLAS: ÁLBUM PIRATA (RECORTES)
   ========================================= */

.character-card {
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: #0f172a !important;
    border-radius: 16px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.character-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50% !important;
    background-color: #020617;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 2px 5px rgba(0,0,0,0.5);
}

.locked-avatar {
    filter: grayscale(100%) brightness(35%) contrast(110%);
    transition: filter 0.3s ease;
}