body {
    background: #121212;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
}
canvas {
    background: #000;
    display: block;
    margin: 20px auto;
    box-shadow: 0 0 10px #0ff;	
}
#score { font-size: 22px; margin-top: 10px; }

.tetris-result-ok, .tetris-result-no {
    margin:10px 0;
    padding:10px;
    border-radius:10px;
    display:none;
}
.tetris-result-ok { border: dashed lightgreen; color: white; max-width: 600px; margin: 10px auto 0 auto; }
.tetris-result-no { border: dashed lightcoral; color: white; max-width: 600px; margin: 10px auto 0 auto; }

/* Overlay Jackpot */
.overlay-jackpot {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: rgba(0,0,0,0.9);
    padding: 40px 60px;
    border-radius: 20px;
    text-align: center;
    color: gold;
    font-size: 2em;
    font-weight: bold;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    animation: popOverlay 1s ease forwards;
}

.overlay-jackpot h1{
    font-size: 3em;
    color: gold;
    animation: pulse 1s infinite alternate;
}

.overlay-jackpot p{
    font-size: 1.2em;
    color: #FFF;
    margin-top: 15px;
}

@keyframes popOverlay{
    0%{opacity:0; transform:translate(-50%,-50%) scale(0.5);}
    100%{opacity:1; transform:translate(-50%,-50%) scale(1);}
}

.temps {
    font-weight: bold;
    background-color: #212121;
    width: fit-content;
    margin: 8px auto 10px auto;
    padding: 8px;
    border-radius: 6px;
}

.score {
    font-weight: bold;
    background-color: #212121;
    width: fit-content;
    margin: 8px auto 10px auto;
    padding: 8px;
    border-radius: 6px;
}

#mobile-controls{
    display:none;
    width:100%;
    margin-top:15px;
    text-align:center;
}

.mc-row{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-bottom:10px;
}

#mobile-controls button{
    width:60px;
    height:60px;
    font-size:26px;
    border-radius:15px;
    border:none;
    background:#1E90FF;
    color:white;
    box-shadow:0 4px 10px rgba(0,0,0,.4);
}

@media(max-width:768px){
    #mobile-controls{
        display:block;
    }
}
