:root {
    --red-machine: #e60000;
    --led-on: #ff0000;
}

body { 
    font-family: 'Syne', sans-serif;
    background: #f0f0f0;
    height: 100dvh; 
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* L'afficheur LED */
.led-screen {
    background: #100;
    border: 6px solid #444;
    border-radius: 8px;
    box-shadow: inset 0 0 30px #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

/* On cache le haut quand on tape pour gagner de la place mobile */
body.is-typing header, 
body.is-typing #displayBox {
    display: none !important;
}

body.is-typing .target-area {
    flex: none !important;
    height: 160px !important;
}

body.is-typing #inputMode {
    justify-content: flex-start !important;
    padding-top: 10px;
}

.led-digits {
    font-family: 'Orbitron', sans-serif;
    color: var(--led-on);
    font-size: 4.5rem;
    text-shadow: 0 0 15px var(--led-on);
    letter-spacing: 4px;
}

/* Le Bouton Punch */
.punch-trigger {
    width: 100px; height: 100px;
    background: radial-gradient(circle at 30% 30%, #ff3333, #800000);
    border: 5px solid #000;
    border-radius: 50%;
    box-shadow: 0 10px 0 #500, 0 15px 25px rgba(0,0,0,0.3);
    transition: all 0.1s;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
}

.punch-trigger:active {
    transform: translateY(6px);
    box-shadow: 0 4px 0 #500;
}

.target-area {
    background: white;
    border: 3px solid #000;
    box-shadow: 6px 6px 0 #000;
}

/* Boutons d'action finaux */
.action-btn {
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.1s;
}
.action-btn:active { transform: translate(2px, 2px); box-shadow: none; }

@keyframes rumble {
    0% { transform: translate(0,0); }
    25% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, 2px); }
    100% { transform: translate(0,0); }
}
.vibrate { animation: rumble 0.1s infinite; }