body {
    background: linear-gradient(to top right, #A69A8E, #E2D3C2);
    color: #55565D;
    padding: 10px;
    min-height: 100vh;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.egg {
    position: relative;
    width: 100%;
    max-width: 250px;
    height: auto;
    cursor: pointer;
    margin: 0 auto;
}

.message {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: 'Lobster', cursive;
    letter-spacing: 1px;
    margin: 0;
    font-size: 36px;
    opacity: 0;
}

.hint {
    font-size: 14px;
    color: #FFFFFF;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    animation: blink 1s infinite alternate;
    margin-top: 15px;
}

#prize {
    display: none;
    margin-top: 15px;
    font-size: 20px;
    color: #d32f2f;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

button {
    margin-top: 15px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 5px;
}

button:hover {
    background-color: #1565c0;
}

.design-selector {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
}

.design-selector label {
    font-size: 14px;
    color: #55565D;
    margin-right: 8px;
}

.design-selector select {
    padding: 4px;
    font-size: 12px;
    border-radius: 5px;
    cursor: pointer;
}

#break {
    opacity: 0;
    transition: opacity 0.3s;
}

.broken #break {
    opacity: 1;
}

.broken #top_part {
    transform: translateY(-60px) rotateX(15deg);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.6s;
}

.broken #chicken {
    transform: translateY(-50px);
    transition: transform 0.3s;
}

.broken .message {
    opacity: 1;
    transition: opacity 0.4s;
}

@keyframes blink {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.egg.shake {
    animation: shake 0.1s 5;
}

/* Efek Fireworks */
.fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.firework {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff0;
    border-radius: 50%;
    animation: firework-explode 1s ease-out forwards;
    opacity: 0;
}

@keyframes firework-explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Desain Telur */
.egg-design-paskah #top, .egg-design-paskah #bottom {
    fill: #E9E6DB;
}
.egg-design-paskah #shtop_1_, .egg-design-paskah #shbottom {
    fill: #DEDAC9;
}

.egg-design-emas #top, .egg-design-emas #bottom {
    fill: url(#gold-gradient);
}
.egg-design-emas #shtop_1_, .egg-design-emas #shbottom {
    fill: #FFA500;
}

.egg-design-polkadot #top, .egg-design-polkadot #bottom {
    fill: url(#polkadot-pattern);
}
.egg-design-polkadot #shtop_1_, .egg-design-polkadot #shbottom {
    fill: #FFC1CC;
}

/* Responsivitas untuk Desktop */
@media (min-width: 768px) {
    .egg {
        max-width: 300px;
    }
    .message {
        font-size: 48px;
        top: -60px;
    }
    .hint {
        font-size: 16px;
        margin-top: 20px;
    }
    #prize {
        font-size: 24px;
        margin-top: 20px;
    }
    button {
        padding: 10px 20px;
        font-size: 16px;
    }
    .design-selector label {
        font-size: 16px;
    }
    .design-selector select {
        font-size: 14px;
        padding: 5px;
    }
}