:root {
    --primary: #ff4d6d;
    --secondary: #ff85a1;
    --glass: rgba(255, 255, 255, 0.1);
}

body {
    background: #0f0c29; /* Fond sombre profond */
    background: linear-gradient(to bottom, #24243e, #302b63, #0f0c29);
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: white;
    overflow: hidden;
}

.background-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 77, 109, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.game-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
}

.glow-text {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 0;
    text-shadow: 0 0 20px var(--primary);
}

.subtitle { color: var(--secondary); opacity: 0.8; margin-bottom: 30px; }

/* Design du Bocal */
.jar-container { position: relative; width: 280px; margin: 0 auto; }

.jar-mouth {
    width: 160px;
    height: 20px;
    background: var(--glass);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    margin: 0 auto -5px;
}

#jar {
    width: 260px;
    height: 380px;
    background: var(--glass);
    backdrop-filter: blur(10px); /* Effet de flou derrière le verre */
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    border-radius: 20px 20px 100px 100px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

/* Objets (Cœurs/Etoiles) */
.drop-item {
    position: absolute;
    font-size: 35px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
    user-select: none;
    z-index: 10;
}

/* Carte de victoire */
#win-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    z-index: 100;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
}

.retry-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.hidden { display: none; }