@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 68, 68, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 136, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 68, 68, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    letter-spacing: -0.01em;
    position: relative;
    overflow-x: hidden;
    transition: background 0.3s ease;
    padding: 1rem 0.5rem;
    box-sizing: border-box;
}

/* Main cursor trail */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 68, 68, 0.18) 0%,
        rgba(255, 136, 0, 0.12) 35%,
        transparent 65%
    );
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Trail layer 1 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(
            350px circle at var(--trail-x1, 50%) var(--trail-y1, 50%),
            rgba(255, 136, 0, 0.08) 0%,
            rgba(255, 68, 68, 0.06) 40%,
            transparent 70%
        ),
        radial-gradient(
            250px circle at var(--trail-x2, 50%) var(--trail-y2, 50%),
            rgba(255, 68, 68, 0.06) 0%,
            rgba(255, 136, 0, 0.04) 50%,
            transparent 80%
        ),
        radial-gradient(
            150px circle at var(--trail-x3, 50%) var(--trail-y3, 50%),
            rgba(255, 136, 0, 0.04) 0%,
            transparent 60%
        );
    pointer-events: none;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.mouse-active::before,
body.mouse-active::after {
    opacity: 1;
}

/* Campaign Header */
.campaign-header {
    text-align: center;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    z-index: 10;
    position: relative;
}

.campaign-banner h1 {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #FF4444 0%, #FF8800 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0.5rem 0;
    text-shadow: 0 0 30px rgba(255, 68, 68, 0.3);
}

.campaign-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0.5rem 0;
}

/* Main Voucher Container */
.main-voucher-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    width: 90%;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

/* Voucher Box with Background Image */
.voucher-box {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: clamp(120px, 15vw, 180px);
    background-image: url('/assets/BOX_VOUCHER.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
}

/* Claim Button Container */
.claim-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 400px;
}

/* Logo Placeholder */
.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

/* Image Styling */
.logo-image {
    filter: drop-shadow(0 2px 4px rgba(255, 68, 68, 0.3));
    transition: transform 0.3s ease;
    max-width: clamp(90px, 12vw, 120px) !important;
    height: auto;
}

.logo-image:hover {
    transform: scale(1.05);
}

.headline-image {
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.headline-image:hover {
    opacity: 0.9;
}

.logo-icon {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    background: linear-gradient(135deg, #FF4444 0%, #FF8800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(255, 68, 68, 0.3));
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    background: linear-gradient(135deg, #FF4444 0%, #FF8800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}


.voucher-form {
    margin: 0;
    text-align: center;
}

#voucherInput {
    width: clamp(250px, 70%, 350px);
    padding: clamp(0.8rem, 2.5vw, 1.2rem) clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(0.85rem, 2.2vw, 1.1rem);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(139, 69, 19, 0.9);
    color: #FFD700;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

#voucherInput:focus {
    outline: none;
    background: rgba(139, 69, 19, 0.95);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
}

#voucherInput::placeholder {
    color: rgba(255, 215, 0, 0.7);
    font-weight: 600;
    letter-spacing: 1px;
}

#submitBtn.image-button {
    width: 100%;
    height: clamp(2.5rem, 4vw, 3.5rem);
    background-image: url('assets/button_claim.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

#submitBtn.image-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

#submitBtn.image-button::before {
    display: none;
}

#submitBtn.image-button:hover::before {
    display: none;
}

#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.status-message {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: -0.01em;
    display: none;
    backdrop-filter: blur(10px);
}

.status-message:not(.success):not(.error) {
    margin: 0;
    padding: 0;
}

.status-message.success {
    background: rgba(255, 136, 0, 0.1);
    color: #CC5500;
    border: 1px solid rgba(255, 136, 0, 0.3);
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.15);
}

.status-message.error {
    background: rgba(255, 68, 68, 0.1);
    color: #CC0000;
    border: 1px solid rgba(255, 68, 68, 0.3);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.15);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(8px);
}

.modal.show {
    display: flex !important;
    animation: modalBackdropFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal.hide {
    animation: modalBackdropFadeOut 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.modal-content {
    position: relative;
    background-color: transparent;
    margin: auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal.hide .modal-content {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 68, 68, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.close:hover {
    background: rgba(255, 68, 68, 1);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.4);
}

.animation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
}

/* Animation element styles (IMG and VIDEO) */
.animation-container img,
.animation-container video {
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 20px;
    /* Removed glow effect box-shadow */
    /* Force transparent background on all platforms */
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
}

#animationImage {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 20px;
    /* Removed glow effect box-shadow and backdrop-filter */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#animationImage:hover {
    transform: scale(1.02);
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bounce animation for celebration emoji */
@keyframes bounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-10px) scale(1.1); }
}

@keyframes modalBackdropFadeIn {
    from { 
        opacity: 0;
    }
    to { 
        opacity: 1;
    }
}

@keyframes modalBackdropFadeOut {
    from { 
        opacity: 1;
    }
    to { 
        opacity: 0;
    }
}

@keyframes modalZoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes modalZoomOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.8);
        opacity: 0;
    }
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* Terms and Conditions Dropdown */
.terms-container {
    position: relative;
    width: 100%;
    max-width: clamp(400px, 80vw, 600px);
    margin: clamp(1rem, 3vw, 2rem) auto;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(255, 136, 0, 0.08) 50%, rgba(255, 215, 0, 0.08) 100%);
    border-radius: 12px;
    border: 2px solid rgba(255, 136, 0, 0.3);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.terms-container:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 12px 35px rgba(255, 136, 0, 0.3);
}

.terms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    background: linear-gradient(135deg, rgba(255, 136, 0, 0.15) 0%, rgba(255, 215, 0, 0.1) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.terms-header:hover {
    background: linear-gradient(135deg, rgba(255, 136, 0, 0.2) 0%, rgba(255, 215, 0, 0.15) 100%);
}

.terms-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.dropdown-arrow {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #FFD700;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.dropdown-arrow.expanded {
    transform: rotate(180deg);
}

.terms-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(0, 0, 0, 0.7);
}

.terms-content.expanded {
    max-height: clamp(400px, 60vh, 800px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.6) rgba(255, 136, 0, 0.2);
}

/* Custom scrollbar for webkit browsers */
.terms-content.expanded::-webkit-scrollbar {
    width: 8px;
}

.terms-content.expanded::-webkit-scrollbar-track {
    background: rgba(255, 136, 0, 0.1);
    border-radius: 4px;
}

.terms-content.expanded::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.8) 0%, rgba(255, 136, 0, 0.6) 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.terms-content.expanded::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 215, 0, 1) 0%, rgba(255, 136, 0, 0.8) 100%);
}

.terms-text {
    padding: clamp(1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    line-height: 1.6;
}

.terms-text h3 {
    color: #FFD700;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 0.5rem;
}

.terms-text p {
    margin: 0 0 0.8rem 0;
    text-align: justify;
}

.terms-text p:last-child {
    margin-bottom: 0;
}

.terms-text strong {
    color: #FF8800;
    font-weight: 600;
}

.terms-footer {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 136, 0, 0.08) 100%);
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.terms-footer strong {
    color: #FFD700;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsiveness for Terms */
@media (max-width: 768px) {
    .terms-container {
        margin: 1rem auto;
        max-width: 95vw;
    }
    
    .terms-content.expanded {
        max-height: clamp(300px, 50vh, 500px);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .terms-text {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .terms-text h3 {
        font-size: 1rem;
        margin: 0 0 0.8rem 0;
    }
    
    .terms-text p {
        margin: 0 0 0.6rem 0;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .terms-container {
        margin: 0.8rem auto;
        max-width: 98vw;
    }
    
    .terms-content.expanded {
        max-height: clamp(250px, 40vh, 400px);
    }
    
    .terms-text {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    
    .terms-text h3 {
        font-size: 0.95rem;
    }
    
    .terms-header {
        padding: 1rem;
    }
    
    .terms-title {
        font-size: 1rem;
    }
}

/* Back to Index Button */
.back-to-index {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    background: linear-gradient(135deg, #FF4444 0%, #FF8800 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.2px;
}

.back-to-index:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 68, 68, 0.4);
    background: linear-gradient(135deg, #FF3333 0%, #FF7700 100%);
}

.back-to-index:active {
    transform: translateY(-1px) scale(1.02);
}

.back-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.back-to-index:hover .back-icon {
    transform: translateX(-2px);
}

.back-text {
    white-space: nowrap;
}


.winner-text {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    font-weight: 700;
    background: linear-gradient(135deg, #FF8800 0%, #FFD700 50%, #FF6F00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
    line-height: 1.2;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 0 5px;
}

.roaming-prizes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.roaming-prize {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.6;
    animation: roamAround infinite linear;
    white-space: nowrap;
    transform-origin: center;
    z-index: 1;
}

.roaming-prize:nth-child(odd) {
    animation-direction: reverse;
}

/* Prize Value-Based Colors (Yellow to Orange Gradient) */
.roaming-lowest {
    color: rgba(255, 255, 100, 0.6); /* Light Yellow */
}

.roaming-low {
    color: rgba(255, 235, 59, 0.6); /* Yellow */
}

.roaming-medium {
    color: rgba(255, 193, 7, 0.6); /* Yellow-Orange */
}

.roaming-high {
    color: rgba(255, 152, 0, 0.6); /* Orange */
}

.roaming-highest {
    color: rgba(255, 87, 34, 0.6); /* Deep Orange */
}

.roaming-special {
    color: rgba(255, 215, 0, 0.6); /* Golden for Free Spin */
}

.roaming-default {
    color: rgba(255, 193, 7, 0.6); /* Default Yellow-Orange */
}

.roaming-prize:hover {
    opacity: 0.9;
    filter: brightness(1.2);
}


/* Winner Announcement Section */
.winner-announcement-section {
    position: relative;
    width: 100%;
    max-width: clamp(400px, 80vw, 600px);
    margin: clamp(1rem, 3vw, 1.5rem) auto clamp(0.5rem, 2vw, 1rem) auto;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: 
        linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 68, 68, 0.08) 50%, rgba(255, 136, 0, 0.08) 100%),
        radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 60%);
    border-radius: 16px;
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: clamp(80px, 10vw, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.winner-display {
    position: relative;
    z-index: 5;
    text-align: center;
    width: 100%;
}

/* Update Prize Visual Variants for Winner Section */
.winner-announcement-section.prize-variant-1 .winner-text,
.winner-announcement-section.prize-variant-2 .winner-text,
.winner-announcement-section.prize-variant-3 .winner-text,
.winner-announcement-section.prize-variant-4 .winner-text {
    background: linear-gradient(135deg, #FF8800 0%, #FFD700 50%, #FF6F00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

/* Animation States for Winner Section */
.winner-announcement-section.rolling .winner-text {
    animation: slotRoll 0.08s ease-in-out infinite;
}

.winner-announcement-section.winner-highlight {
    background: 
        linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 68, 68, 0.15) 50%, rgba(255, 136, 0, 0.15) 100%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.7),
        0 0 60px rgba(255, 136, 0, 0.5),
        0 0 80px rgba(255, 68, 68, 0.3),
        inset 0 0 30px rgba(255, 215, 0, 0.2);
    animation: winnerGlow 1s ease-out;
    border: none;
}

.winner-announcement-section.winner-highlight .winner-text {
    animation: winnerPulse 0.5s ease-out;
}

/* Gaming Animations */
@keyframes pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

@keyframes roamAround {
    0% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% { 
        transform: translate(200px, -50px) rotate(90deg);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-100px, -100px) rotate(180deg);
        opacity: 0.4;
    }
    75% { 
        transform: translate(-150px, 50px) rotate(270deg);
        opacity: 0.7;
    }
    100% { 
        transform: translate(0, 0) rotate(360deg);
        opacity: 0.3;
    }
}

@keyframes slotRoll {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(5px); }
}

@keyframes winnerGlow {
    0% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.05);
        filter: brightness(1.2);
    }
    100% { 
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes winnerPulse {
    0% { 
        filter: brightness(1);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% { 
        filter: brightness(1.3);
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
    100% { 
        filter: brightness(1.1);
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
}


/* Desktop Responsive (Large screens) */
@media (min-width: 1200px) {
    .main-voucher-container {
        max-width: 600px;
        gap: 1rem;
    }
    
    .voucher-box {
        max-width: 500px;
        height: 180px;
    }
    
    .campaign-banner h1 {
        font-size: 2.5rem;
    }
    
    .campaign-header {
        margin-bottom: clamp(0.5rem, 2vw, 1rem);
    }
    
    .winner-announcement-section {
        max-width: 520px;
        margin: 1.5rem auto 1rem auto;
        padding: 1.2rem;
        min-height: 100px;
    }

    .winner-text {
        font-size: 1.1rem;
        letter-spacing: 0.3px;
        padding: 0 10px;
    }

    /* Desktop image sizing - Uses global clamp sizing */
    
    .campaign-banner h1 .headline-image {
        max-height: 120px !important;
        width: auto;
    }
    
    .campaign-subtitle .headline-image {
        max-height: 80px !important;
        width: auto;
    }
    
    .card-header h2 .headline-image {
        max-height: 70px !important;
        width: auto;
    }
    
    .card-header p .headline-image {
        max-height: 50px !important;
        width: auto;
    }
}

/* Tablet/Laptop Responsive (768px-1200px) */
@media (min-width: 769px) and (max-width: 1199px) {
    .main-voucher-container {
        max-width: 550px;
        gap: 1rem;
    }
    
    .voucher-box {
        max-width: 450px;
        height: 150px;
    }
    
    .campaign-header {
        margin-bottom: clamp(0.5rem, 2vw, 1rem);
    }
    
    .winner-announcement-section {
        max-width: 450px;
        margin: 1.2rem auto 0.8rem auto;
        padding: 1rem;
        min-height: 80px;
    }
}

/* Tablet Responsive */
@media (max-width: 768px) {
    .main-voucher-container {
        max-width: 95%;
        gap: 1rem;
    }
    
    .voucher-box {
        max-width: 400px;
        height: 130px;
    }
    
    .campaign-banner h1 {
        font-size: 2.2rem;
    }
    
    .campaign-subtitle {
        font-size: 1rem;
    }
    
    /* Tablet image sizing - Uses global clamp sizing */
    
    .campaign-banner h1 .headline-image {
        max-height: 100px !important;
        width: auto;
    }
    
    .campaign-subtitle .headline-image {
        max-height: 60px !important;
        width: auto;
    }
    
    .card-header h2 .headline-image {
        max-height: 60px !important;
        width: auto;
    }
    
    .card-header p .headline-image {
        max-height: 40px !important;
        width: auto;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    body {
        padding: 1rem 0;
    }
    
    .main-voucher-container {
        width: 95%;
        gap: 1rem;
    }
    
    /* Mobile modal fixes */
    .modal-content {
        background: transparent !important;
        width: 90%;
        padding: 10px;
    }
    
    .animation-container,
    .animation-container img,
    .animation-container video {
        background: transparent !important;
    }
    
    .animation-container img,
    .animation-container video {
        max-width: 100%;
        max-height: 70vh;
        border-radius: 15px;
        background: transparent !important;
        background-color: transparent !important;
    }
    
    .voucher-box {
        max-width: 320px;
        height: 120px;
    }
    
    .campaign-banner h1 {
        font-size: 1.8rem;
    }
    
    .campaign-subtitle {
        font-size: 0.9rem;
    }
    
    #voucherInput {
        width: clamp(200px, 80%, 280px);
        font-size: clamp(0.75rem, 2vw, 0.9rem);
    }
    
    /* Mobile image sizing - Uses global clamp sizing */
    
    .headline-image {
        max-height: 80px !important;
        width: auto;
    }
    
    .campaign-banner h1 .headline-image {
        max-height: 80px !important;
        width: auto;
    }
    
    .campaign-subtitle .headline-image {
        max-height: 45px !important;
        width: auto;
    }
    
    .card-header h2 .headline-image {
        max-height: 50px !important;
        width: auto;
    }
    
    .card-header p .headline-image {
        max-height: 35px !important;
        width: auto;
    }
}

/* Animation for congratulations message */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}