/* ===== RESET ===== */
* {
    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, sans-serif;
}

body {
    margin: 0;
    background: radial-gradient(circle at center, #1b1e23 0%, #0d0f13 70%);
    color: #e0e0e0;
}

/* ===== TABLE DE JEU ===== */
.table {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 20px;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.05), transparent 70%),
        linear-gradient(145deg, #15181d, #0b0d11);
    box-shadow:
        inset 0 0 40px rgba(0,0,0,0.8),
        0 0 40px rgba(0,0,0,0.9);
}

/* ===== TITRE ===== */
.title {
    text-align: center;
    letter-spacing: 4px;
    font-weight: 300;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* ===== CONTROLES ===== */
#controls {
    padding: 15px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    margin-bottom: 20px;
}

#controls label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

/* ===== BOUTON ===== */
#rollBtn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(145deg, #3a3f46, #1a1d22);
    color: #fff;
    cursor: pointer;
    letter-spacing: 2px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

#rollBtn:hover {
    box-shadow: 0 0 20px rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

/* ===== ZONE DE LANCER ===== */
#diceArea {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30px;
    border-radius: 16px;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03),
            rgba(255,255,255,0.03) 10px,
            transparent 10px,
            transparent 20px
        ),
        rgba(0,0,0,0.4);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}

/* ===== DES ===== */
.die {
    width: 80px;
    height: 80px;
    font-size: 34px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    animation: roll 1.2s ease-in-out;
    box-shadow:
        inset 0 0 15px rgba(0,0,0,0.8),
        0 0 20px rgba(0,0,0,0.6);
}

/* Couleurs Shaan */
.red {
    background: radial-gradient(circle, #ff4d4d, #7a0000);
}
.yellow {
    background: radial-gradient(circle, #ffd54f, #8a6d00);
    color: #000;
}
.blue {
    background: radial-gradient(circle, #4fc3f7, #0d47a1);
}
.black {
    background: radial-gradient(circle, #444, #000);
}

/* ===== ANIMATION ===== */
@keyframes roll {
    0% {
        transform: rotateX(0deg) rotateY(0deg) scale(0.7);
        opacity: 0.3;
    }
    50% {
        transform: rotateX(720deg) rotateY(720deg) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: rotateX(0deg) rotateY(0deg) scale(1);
    }
}

/* ===== JOURNAL ===== */
#log {
    margin-top: 30px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(0,0,0,0.5);
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

#log li {
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
/* ===== PLATEAU DES JOUEURS ===== */
#playersBoard {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.player-row {
    padding: 15px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}

.player-name {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.8;
}

.player-dice {
    display: flex;
    gap: 20px;
}
