* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 35%, #1e3a8a, #0b1e4b 55%, #071233);
    overflow: hidden;
}

.scene {
    position: relative;
    text-align: center;
    padding: 2rem;
}

.headline {
    color: #fbbf24;
    font-size: 1.6rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 3.5rem;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(251, 191, 36, 0.95);
    }
}

.gift {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto;
    animation: idle 3s ease-in-out infinite;
    transform-origin: bottom center;
}

.gift:hover {
    animation: shake 0.5s ease-in-out 3;
}

@keyframes idle {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-1.5deg);
    }
}

@keyframes shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-7deg);
    }
    75% {
        transform: rotate(7deg);
    }
}

.box {
    position: absolute;
    bottom: 0;
    left: 30px;
    width: 200px;
    height: 170px;
    background: linear-gradient(180deg, #ef4444, #b91c1c);
    border-radius: 6px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.45);
}

.box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.18) 100%);
    border-radius: 6px;
}

.lid {
    position: absolute;
    bottom: 170px;
    left: 14px;
    width: 232px;
    height: 44px;
    background: linear-gradient(180deg, #f87171, #dc2626);
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
    z-index: 3;
}

.lid::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.15) 100%);
    border-radius: 6px;
}

.box-ribbon-vertical {
    position: absolute;
    bottom: 0;
    left: 113px;
    width: 34px;
    height: 170px;
    background: linear-gradient(180deg, #fbbf24, #d97706);
    border-radius: 4px;
    z-index: 2;
}

.box-ribbon-horizontal {
    position: absolute;
    bottom: 70px;
    left: 30px;
    width: 200px;
    height: 30px;
    background: linear-gradient(180deg, #fbbf24, #d97706);
    z-index: 2;
}

.lid-ribbon-vertical {
    position: absolute;
    bottom: 170px;
    left: 113px;
    width: 34px;
    height: 44px;
    background: linear-gradient(180deg, #fcd34d, #f59e0b);
    z-index: 4;
}

.lid-ribbon-horizontal {
    position: absolute;
    bottom: 182px;
    left: 14px;
    width: 232px;
    height: 20px;
    background: linear-gradient(180deg, #fcd34d, #f59e0b);
    z-index: 4;
}

.bow {
    position: absolute;
    bottom: 208px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.bow-loop {
    position: absolute;
    bottom: 0;
    width: 46px;
    height: 34px;
    border-radius: 50%;
}

.loop-left {
    left: -52px;
    background: linear-gradient(180deg, #fbbf24, #d97706);
    transform: rotate(-35deg);
    box-shadow: -6px 4px 14px rgba(0, 0, 0, 0.35);
}

.loop-right {
    right: -52px;
    background: linear-gradient(180deg, #fbbf24, #d97706);
    transform: rotate(35deg);
    box-shadow: 6px 4px 14px rgba(0, 0, 0, 0.35);
}

.bow-knot {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fcd34d, #f59e0b);
    box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.25);
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fde68a;
    transform: rotate(45deg);
    box-shadow: 0 0 14px 4px rgba(253, 230, 138, 0.55);
    animation: twinkle 1.6s ease-in-out infinite;
}

.sparkle::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fde68a;
}

.sparkle-1 {
    top: 18%;
    left: 18%;
}

.sparkle-2 {
    top: 30%;
    right: 16%;
    animation-delay: 0.4s;
}

.sparkle-3 {
    bottom: 22%;
    left: 12%;
    animation-delay: 0.8s;
}

.sparkle-4 {
    bottom: 16%;
    right: 22%;
    animation-delay: 1.2s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: rotate(45deg) scale(0.6);
    }
    50% {
        opacity: 1;
        transform: rotate(45deg) scale(1.15);
    }
}

.shine {
    position: absolute;
    top: 0;
    left: 55px;
    width: 14px;
    height: 44px;
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(-18deg);
    border-radius: 4px;
    z-index: 6;
    animation: sparkleGlide 2.4s ease-in-out infinite;
}

@keyframes sparkleGlide {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.9;
    }
}

.hint {
    margin-top: 4rem;
    color: #93a5c9;
    font-size: 0.85rem;
    letter-spacing: 1px;
}