body {
    background: radial-gradient(circle, #eef2f7, #ffffff);
    padding-top: 50px;
    font-family: sans-serif;
}

.container {
    display: flex;
    justify-content: center;
}

.game-box {
    max-width: 500px;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    width: 100%;
}

.dragon {
    width: 120px;
    margin-bottom: 15px;
}

.progress {
    margin-top: 15px;
    margin-bottom: 25px;
    height: 25px;
}


.victory-banner {
    background: linear-gradient(90deg, #ffc107, #ff5722);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.flash {
    animation: flashSuccess 0.7s ease-out forwards;
}

@keyframes flashSuccess {
    0% { background-color: #d4edda; transform: scale(1); }
    50% { background-color: #c3e6cb; transform: scale(1.05); }
    100% { background-color: #d4edda; transform: scale(1); }
}

.progress-bar {
    padding: 0 12px;
    height: 24px;
    color: white;
    line-height: 24px;
    font-weight: bold;
    border-radius: 12px;
    transition: width 0.5s ease;
    background-color: #28a745;
}

.confetti {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 20px;
    background-color: red;
    opacity: 0.8;
    animation: confetti-fall 2s linear;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(600px) rotate(360deg);
        opacity: 0;
    }
}
