/* =============================================
   GAME — Canvas de grattage et barre de progression
   ============================================= */

#scratch-area {
    width: 100%;
    padding: 50px 0;
    margin: 15px auto;
    background-color: var(--color-light-grey);
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    color: var(--color-dark-grey);
    border-radius: 6px;
}

#result {
    display: none;
    font-size: 18px;
    margin-top: 20px;
}

.message, .result {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
}

.win {
    font-size: 2em;
}

#scratch-canvas {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.scratch-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 0 5px;
}

.scratch-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.scratch-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), #d4a85a);
    border-radius: 4px;
    transition: width 0.2s ease-out, background 0.3s ease;
}

.scratch-progress-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    min-width: 45px;
    text-align: right;
}
