/* ===== INFO JOUEUR ===== */

.poker-tapis {
    background: url('/tournois/yams-tournoi/assets/tapis.jpg') center center no-repeat;
    max-width: 900px;
    padding: 10px;
    border-radius: 25px;
    border: 2px solid black;
    -moz-border-radius: 10px;
    margin: 15px auto;
    box-shadow: 0 0 5px #0ff;
}

.info-session {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
}

/* ===== PARI ===== */

.bet-box {
    text-align: center;
    margin-bottom: 20px;
}

.bet-box input {
    padding: 8px;
    border-radius: 5px;
    border: none;
    width: 100px;
    text-align: center;
}

.bet-box button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, gold, orange);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.bet-box button:hover {
    box-shadow: 0 0 15px gold;
    transform: scale(1.05);
}

/* ===== DÉS ===== */

#dice-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.die {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #ffffff, #dcdcdc);
    color: #000;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
}

.die-img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.die.rolling {
    animation: dice-roll 0.6s ease-in-out;
    box-shadow: 0 0 15px #00ff88, 0 0 30px #00ff88;
}

@keyframes dice-roll {
    0%   { transform: rotate(0deg) scale(1); }
    25%  { transform: rotate(90deg) scale(1.2); }
    50%  { transform: rotate(180deg) scale(0.9); }
    75%  { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.die:hover {
    transform: scale(1.1);
}

.die.locked {
    background: linear-gradient(145deg, gold, orange);
    box-shadow: 0 0 15px gold;
}

/* ===== CONTROLS ===== */

.controls {
    text-align: center;
    margin-bottom: 20px;
}

.controls button {
    padding: 10px 25px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(45deg, #ff0000, #990000);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.controls button:hover {
    box-shadow: 0 0 15px red;
    transform: scale(1.05);
}

/* ===== TABLEAUX ===== */

.scoreboards {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.board {
    flex: 1;
    background: rgba(0,0,0,0.7);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255,215,0,0.15);
}

.board h4 {
    text-align: center;
    color: white;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 18px;
}

.score-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}


.score-row-bot {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ===== TOTAL SCORE ===== */

.scores-top {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    margin-bottom: 20px;
}

#total-score {
    color: #00ff88;
}

#bot-score {
    color: #ff4444;
}

/* ===== BOUTON FIN ===== */

#game-area > button {
    display: block;
    margin: 30px auto 0;
    padding: 12px 30px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(45deg, gold, orange);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#game-area > button:hover {
    box-shadow: 0 0 20px gold;
    transform: scale(1.08);
}

/* ===== ANIMATION ROLL ===== */

@keyframes rollAnim {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.2); }
    50% { transform: rotate(180deg) scale(0.9); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.die.rolling {
    animation: rollAnim 0.6s ease;
}

/* ===== EXPLOSION YAMS ===== */

@keyframes explode {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

.yams-explosion {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    font-weight: bold;
    color: gold;
    text-shadow: 0 0 20px #ffd700, 0 0 40px orange;
    animation: explode 1.2s ease forwards;
    pointer-events: none;
    z-index: 9999;
}

.gratte-result-ok {
    margin-top:20px;
    padding:15px;
    background:linear-gradient(45deg,#00ff88,#00994d);
    color:#FFFFFF;
    font-weight:bold;
    border-radius:10px;
    text-align:center;
    box-shadow:0 0 15px #00ff88;
}

.gratte-result-no {
    margin:20px auto 10px auto;
    padding:15px;
    background:linear-gradient(45deg,#ff4444,#990000);
    color:#fff;
    font-weight:bold;
    border-radius:10px;
    text-align:center;
    box-shadow:0 0 15px red;
}

#new-game-btn {
    display:block;
    margin:20px auto 0;
    padding:12px 25px;
    border-radius:10px;
    border:none;
    background:linear-gradient(45deg,#00ccff,#0066ff);
    color:#fff;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

#new-game-btn:hover{
    box-shadow:0 0 15px #00ccff;
    transform:scale(1.05);
}

.die.extra-die {
    border: 2px solid #FFA500;
    background: #222;
    color: #FFD700;
    font-weight: bold;
    margin-left: 8px;
}

.round-current {
    color: #000;
    border-radius: 8px;
    padding: 8px;
	font-weight: bold;
    background: linear-gradient(45deg, gold, orange);
}

.round-done {
    background: linear-gradient(45deg, #00ff88, #00994d) !important;
}

.round-current,
.round-done {
    transition: color 0.3s ease;
}

.score-row span, .score-row-bot span {
    color: #FFFFFF;
    border-radius: 8px;
    padding: 8px;
	font-weight: bold;
    background: linear-gradient(45deg, gold, orange);
}

@media(max-width:600px){
.board {
    padding: 10px;
}

.die {
    width: 50px;
    height: 50px;
}
}
