body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

.screen-box {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    max-width: 28rem;
    width: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.screen-box.hidden {
    display: none;
}

.screen-box.opacity-0 {
    transform: translate(-50%, -40%) scale(0.95);
}

.screen-box.opacity-100 {
    transform: translate(-50%, -50%) scale(1);
}

/* Scan Line */
.scanner-line {
    height: 4px;
    background: #ec4899;
    box-shadow: 0 0 15px #ec4899;
    position: absolute;
    width: 100%;
    top: 0;
    animation: scan 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes scan {

    0%,
    100% {
        top: 0%;
    }

    50% {
        top: 100%;
    }
}

/* Slider S5 */
.custom-slider {
    -webkit-appearance: none;
    background: transparent;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 35px;
    width: 35px;
    border-radius: 50%;
    background: #ec4899;
    cursor: pointer;
    margin-top: -14px;
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.5);
}

.custom-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #e5e7eb;
    border-radius: 10px;
}

/* Wire cut state */
.wire {
    transition: transform 0.1s, opacity 0.3s;
}

.wire:active {
    transform: scaleY(0.8);
}

.wire.cut {
    opacity: 0;
    pointer-events: none;
}

/* Magic Heart */
.magic-heart {
    position: relative;
    width: 120px;
    height: 120px;
    background: #f43f5e;
    transform: rotate(-45deg);
}

.magic-heart::before,
.magic-heart::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    background: #f43f5e;
    border-radius: 50%;
}

.magic-heart::before {
    top: -60px;
    left: 0;
}

.magic-heart::after {
    top: 0;
    left: 60px;
}

/* Coffee Cup styling */
.cup-handle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 100px;
    border: 12px solid #fdfdfd;
    border-radius: 30px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.gift-container {
    border-radius: 50%;
    z-index: 2;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.05), inset 0 0 0 12px #fdfdfd, inset 0 0 0 13px rgba(0, 0, 0, 0.1);
    mask-image: radial-gradient(white, black);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    overflow: hidden;
}

#coffee-gift {
    position: absolute;
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 50%;
    object-fit: cover;
}

#coffee-liquid {
    position: absolute;
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 50%;
    z-index: 10;
}

/* Final bounce */
.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.36, 0, 0.66, -0.56) both;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

/* Floating floating hearts */
.floating-heart {
    position: absolute;
    color: #ff4d6d;
    animation: floatUp linear forwards;
    font-size: 24px;
    pointer-events: none;
    opacity: 0.8;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.8) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-120vh) scale(1.5) rotate(45deg);
        opacity: 0;
    }
}