.defis-container {
    margin-top: 90px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 90px);
}

.lock-card, .reward-card, .info-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-out;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #00d2ff;
}

.clue {
    font-style: italic;
    color: #cfd9df;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.code-digit {
    width: 60px;
    height: 70px;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    transition: all 0.2s ease;
    -webkit-appearance: none; /* Nettoie le style par défaut sur Safari mobile */
}

.code-digit:focus {
    outline: none;
    border-color: #00d2ff;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

#unlock-btn {
    background: #00d2ff;
    color: #0f2027;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.error {
    color: #ff4a75;
    margin-top: 1rem;
    font-size: 0.9rem;
    height: 15px;
}

.unlocked-lock {
    font-size: 5rem;
    margin: 1.5rem 0;
    animation: popOpen 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#reward-message {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e0e0e0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popOpen {
    0% { transform: scale(0.5); }
    100% { transform: scale(1); }
}