* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow-x: hidden;
}

/* Video intro */
.video-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: black;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-overlay.hidden { display: none; }

.video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#skip-intro {
    position: absolute;
    bottom: 30px;
    right: 30px;
    padding: 15px 30px;
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
}

#skip-intro:hover {
    background: white;
    color: #1a1a2e;
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.6s ease; }

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

/* Logo */
.logo-img {
    display: block;
    margin: 0 auto 20px;
    max-width: 400px;
    width: 100%;
    filter: drop-shadow(0 0 20px rgba(243, 156, 18, 0.5));
}

.subtitle {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #f39c12;
}

/* Characters */
.characters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.card {
    background: rgba(255,255,255,0.05);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border: 2px solid #f39c12;
}

.avatar-img {
    width: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* Board */
#board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1;
    border: 5px solid #f39c12;
    border-radius: 10px;
    overflow: hidden;

    /* 🔥 TU IMAGEN AQUÍ */
    background-image: url("../assets/images/tablero.png");
    background-size: cover;
    background-position: center;
}

/* Casillas con transparencia (para que se vea la imagen) */
.square.light {
    background: rgba(238, 238, 210, 0.7);
}

.square.dark {
    background: rgba(118, 150, 86, 0.7);
}

.square {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.piece-img {
    width: 85%;
}
