/* Réglages globaux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a2e;
    color: #eaeaea;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.game-container {
    background: #16213e;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

h1 {
    margin-top: 0;
    color: #f1c40f;
    font-size: 2.2em;
}

p {
    font-size: 1.1em;
    color: #a2a2bd;
}

/* Design de l'horloge */
.clock {
    width: 220px;
    height: 220px;
    border: 10px solid #0f3460;
    border-radius: 50%;
    margin: 30px auto;
    position: relative;
    background: #e94560;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.3), 0 0 20px rgba(233, 69, 96, 0.4);
}

/* Lignes et Nombres */
.tick {
    position: absolute;
    top: 50%;
    left: 50%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

.minute-tick {
    width: 2px;
    height: 6px;
    margin-left: -1px;
    margin-top: -3px;
}

.hour-tick {
    width: 4px;
    height: 12px;
    margin-left: -2px;
    margin-top: -6px;
    background: rgba(255, 255, 255, 1);
}

.number {
    position: absolute;
    top: 50%;
    left: 50%;
    font-weight: bold;
    color: #fff;
    font-size: 1.1em;
    width: 30px;
    height: 30px;
    margin-left: -15px;
    margin-top: -15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Aiguilles */
.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom;
    border-radius: 5px;
    transition: transform 0.3s cubic-bezier(0.4, 2.08, 0.55, 0.44);
}

.hour {
    width: 8px;
    height: 55px;
    margin-left: -4px;
    background: #fff;
    z-index: 2;
}

.minute {
    width: 4px;
    height: 80px;
    margin-left: -2px;
    background: #1a1a2e;
    z-index: 1;
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    border: 3px solid #1a1a2e;
}

/* Contrôles et boutons */
.controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

input {
    padding: 12px;
    font-size: 1.3em;
    width: 120px;
    text-align: center;
    border-radius: 8px;
    border: 2px solid #0f3460;
    background: #1a1a2e;
    color: #fff;
    outline: none;
}

input:focus {
    border-color: #e94560;
}

button {
    padding: 12px 25px;
    font-size: 1.2em;
    background: #e94560;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
}

button:hover { background: #d83a54; }
button:active { transform: scale(0.95); }

/* Rétroaction adaptative */
.feedback {
    margin: 20px 0;
    font-size: 1.05em;
    min-height: 25px;
    line-height: 1.5;
    text-align: left;
    background: rgba(0, 0, 0, 0.15);
    padding: 15px;
    border-radius: 8px;
}

.feedback.center {
    text-align: center;
    background: transparent;
    padding: 5px;
}

/* Tableau des scores */
.scoreboard {
    display: flex;
    justify-content: space-around;
    background: #0f3460;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
}

.scoreboard p { margin: 0; color: #fff; }
#score { color: #f1c40f; }
#streak { color: #ff7675; }