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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top, #dceeff, #bcd6f3);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
    position: relative;
}

#bg_particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(7, 180, 159, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(10, 157, 138, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(7, 180, 159, 0.04) 0%, transparent 70%);
    animation: backgroundPulse 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

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

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(7, 180, 159, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 180, 159, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

.home-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.home-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1600px;
    height: 100%;
    align-items: center;
}

/* Left Section - Code Input */
.left-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Code entry card – Flyshop Spin & Win exact UI */
.input-container.card {
    width: 460px;
    max-width: 95%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px 35px 45px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    position: relative;
}

.input-container.card .logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.input-container.card .logo-wrap .logo {
    width: 140px;
    height: auto;
    display: block;
    object-fit: contain;
}

.input-container.card .spin-badge {
    display: inline-block;
    background: linear-gradient(135deg, #004AAD, #0D6EFD);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    margin-bottom: 20px;
    font-weight: 600;
}

.input-container.card .title {
    font-size: 26px;
    font-weight: 700;
    color: #004AAD;
    margin: 0 auto 10px;
    line-height: 1.3;
}

.input-container.card .subtitle {
    font-size: 14px;
    color: #555;
    margin: 0 auto 30px;
    line-height: 1.5;
    max-width: 320px;
}

.input-container.card .code-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.input-container.card .code-wrapper .code-digit {
    width: 52px;
    height: 58px;
    border-radius: 14px;
    border: 2px solid #d0d8e6;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    transition: 0.25s;
    outline: none;
    box-sizing: border-box;
}

.input-container.card .code-wrapper .code-digit:focus {
    border-color: #0D6EFD;
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.3);
}

.input-container.card .code-wrapper .code-digit:disabled {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #666;
    cursor: not-allowed;
}

.input-container.card .code-wrapper.shake {
    animation: codeShake 0.3s;
}

@keyframes codeShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-6px); }
    100% { transform: translateX(0); }
}

.input-container.card .start-btn {
    display: inline-block;
    background: linear-gradient(135deg, #FFC107, #ffb300);
    color: #000;
    padding: 14px 45px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.4);
}

.input-container.card .start-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.6);
}

.input-container.card .start-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.input-container.card .error-msg {
    color: red;
    font-size: 13px;
    margin-top: 10px;
    min-height: 18px;
}

.input-container.card .footer {
    margin-top: 20px;
    font-size: 12px;
    color: #777;
    text-align: center;
}

/* Right Section - Spin Wheel */
.right-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 5px;
}

.wheel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1;
}

.wheel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3),
        0 0 100px rgba(7, 180, 159, 0.2),
        inset 0 0 50px rgba(255, 255, 255, 0.1);
    background: white;
    /* border: 5px solid #fff; */
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #07b49f 0%, #0a9d8a 100%);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-pointer {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 45px solid #07b49f;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
    z-index: 11;
}

.spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #07b49f 0%, #0a9d8a 100%);
    border: 4px solid white;
    color: white;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 12;
    box-shadow: 0 10px 30px rgba(7, 180, 159, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.spin-button:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(7, 180, 159, 0.6);
}

.spin-button:active:not(:disabled) {
    transform: translate(-50%, -50%) scale(0.95);
}

.spin-button:disabled {
    opacity: 1;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: 0 auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    color: #333;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
    background: #ffffff;
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: white;
    float: right;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 0.3s ease;
}

.close:hover {
    transform: scale(1.2);
    color: #ffffff;
    opacity: 0.8;
}

.modal-content h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.result-text {
    font-size: 1.8rem;
    margin-top: 20px;
}

#resultPrize {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffd700;
    display: block;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .home-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .left-section,
    .right-section {
        height: auto;
    }

    .wheel-container {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .input-container.card {
        padding: 40px 24px;
        max-width: 94%;
        border-radius: 24px;
    }

    .input-container.card .logo-wrap .logo {
        width: 120px;
    }
    .input-container.card .logo-wrap {
        margin-bottom: 16px;
    }

    .input-container.card .title {
        font-size: 22px;
    }

    .input-container.card .code-wrapper .code-digit {
        width: 44px;
        height: 50px;
        font-size: 18px;
    }

    .input-container.card .code-wrapper {
        gap: 8px;
        margin-bottom: 20px;
    }

    .input-container.card .start-btn {
        font-size: 14px;
        padding: 12px 36px;
    }

    .wheel-container {
        max-width: 400px;
    }

    .spin-button {
        width: 100px;
        height: 100px;
        font-size: 1.2rem;
    }
}

/* Welcome popup – same style as result (reward) popup */
.welcome-modal.popup-box {
    width: 500px;
    max-width: 92%;
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 40px 44px;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    animation: popupFade 0.4s ease-in-out;
    border: none;
    overflow: visible;
}

.welcome-modal.popup-box::before {
    display: none;
}

.welcome-content {
    position: relative;
    z-index: 2;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.welcome-icon-wrap {
    position: relative;
    margin-bottom: 28px;
    width: 95px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-icon-wrap .welcome-icon {
    font-size: 64px;
    animation: floatIcon 2.5s ease-in-out infinite;
}

.welcome-icon-wrap::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.4), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

.welcome-modal .popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #004AAD;
    margin: 0 0 12px;
    line-height: 1.35;
    padding: 0 8px;
}

.welcome-modal .popup-subtitle {
    font-size: 14px;
    color: #555;
    margin: 0 0 28px;
    line-height: 1.5;
    padding: 0 4px;
}

.welcome-modal .reward-card.welcome-card {
    background: linear-gradient(135deg, #004AAD, #0D6EFD);
    color: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    margin: 0 0 32px;
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.35);
    width: 100%;
    box-sizing: border-box;
}

.welcome-modal .reward-badge {
    background: #FFC107;
    color: #000;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 14px;
}

.welcome-modal .reward-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.welcome-modal .claim-btn {
    background: linear-gradient(135deg, #FFC107, #ffb300);
    color: #000;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
}

.welcome-modal .claim-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.45);
}

.welcome-modal .footer-text {
    font-size: 12px;
    margin: 24px 0 0;
    color: #888;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .welcome-modal.popup-box {
        width: 94%;
        padding: 36px 24px 32px;
        border-radius: 20px;
    }
    .welcome-icon-wrap { margin-bottom: 22px; }
    .welcome-modal .popup-title { font-size: 22px; margin-bottom: 10px; }
    .welcome-modal .popup-subtitle { margin-bottom: 22px; }
    .welcome-modal .reward-card.welcome-card { padding: 24px 20px; margin-bottom: 26px; }
    .welcome-modal .footer-text { margin-top: 20px; }
}


/* Invalid modal – same style as welcome/result popup */
.invalid-modal.popup-box {
    width: 440px;
    max-width: 92%;
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 40px 44px;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    animation: popupFade 0.4s ease-in-out;
    border: none;
    overflow: visible;
}

.invalid-modal.popup-box::before {
    display: none;
}

.invalid-content {
    position: relative;
    z-index: 2;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.invalid-icon-wrap {
    position: relative;
    margin-bottom: 28px;
    width: 95px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invalid-icon-wrap .invalid-icon {
    font-size: 64px;
}

.invalid-modal .popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #dc3545;
    margin: 0 0 12px;
    line-height: 1.35;
}

.invalid-modal .popup-subtitle {
    font-size: 14px;
    color: #555;
    margin: 0 0 28px;
    line-height: 1.5;
}

.invalid-modal .claim-btn {
    background: linear-gradient(135deg, #FFC107, #ffb300);
    color: #000;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
}

.invalid-modal .claim-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.45);
}

@media (max-width: 480px) {
    .invalid-modal.popup-box {
        padding: 36px 24px 32px;
        border-radius: 20px;
    }
    .invalid-modal .popup-title { font-size: 22px; }
    .invalid-modal .popup-subtitle { margin-bottom: 22px; }
}

.used-modal {
    background: #ffffff;
    padding: 60px 50px;
    position: relative;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.used-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffa500, #ff8c00);
}

.used-icon {
    font-size: 70px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.used-modal h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffa500;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.used-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
    position: relative;
    z-index: 2;
}

.used-info {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    font-weight: 400;
    margin: 12px 0;
    position: relative;
    z-index: 2;
}

.used-info strong {
    color: #555;
    font-weight: 600;
    display: inline-block;
    min-width: 140px;
}

.used-prize {
    color: #ffa500;
    font-weight: 600;
    font-size: 1.2rem;
}

.close-modal-btn {
    width: 100%;
    padding: 18px 30px;
    margin-top: 35px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 2;
}

.close-modal-btn:hover {
    background: #e9ecef;
    border-color: #ced4da;
    transform: translateY(-1px);
}

.close-modal-btn:active {
    transform: translateY(0);
}

/* Shared popup overlay (welcome + result) */
.modal.result-popup-overlay {
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
}

.result-modal .modal-content.popup-box {
    width: 440px;
    max-width: 92%;
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 40px 44px;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    animation: popupFade 0.4s ease-in-out;
    border: none;
    overflow: visible;
}

.result-modal .modal-content.popup-box::before {
    display: none;
}

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

.result-close-btn {
    position: absolute;
    right: 18px;
    top: 15px;
    font-size: 18px;
    cursor: pointer;
    color: #888;
    transition: 0.3s;
    z-index: 10;
}

.result-close-btn:hover {
    color: #000;
}

.fireworks-canvas {
    display: none;
}

.result-modal .result-content {
    position: relative;
    z-index: 2;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.result-modal .reward-icon {
    position: relative;
    margin-bottom: 28px;
    width: 95px;
    height: 95px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-modal .reward-icon img.result-product-image {
    width: 95px;
    height: 95px;
    object-fit: contain;
    display: none;
    animation: floatIcon 2.5s ease-in-out infinite;
}

.result-modal .reward-icon img.result-product-image[src]:not([src=""]) {
    display: block;
}

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

.result-modal .reward-icon::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.4), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

.result-modal .popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #004AAD;
    margin: 0 0 12px;
    line-height: 1.35;
    padding: 0 8px;
}

.result-modal .popup-subtitle {
    font-size: 14px;
    color: #555;
    margin: 0 0 28px;
    line-height: 1.5;
    padding: 0 4px;
}

.result-modal .reward-card {
    background: linear-gradient(135deg, #004AAD, #0D6EFD);
    color: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    margin: 0 0 32px;
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.35);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.result-modal .reward-badge {
    background: #FFC107;
    color: #000;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 14px;
}

.result-modal .reward-title,
.result-modal .reward-name,
.result-modal #resultPrize {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: block;
    line-height: 1.4;
}

.result-modal .reward-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.98);
    margin: 8px 0 0;
    line-height: 1.4;
}

.result-modal .reward-highlight {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    /* margin: 10px 0 0; */
    line-height: 1.5;
}

.result-modal .claim-btn {
    background: linear-gradient(135deg, #FFC107, #ffb300);
    color: #000;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
}

.result-modal .claim-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.45);
}

.result-modal .footer-text {
    font-size: 12px;
    margin: 24px 0 0;
    color: #888;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .result-modal .modal-content.popup-box {
        width: 94%;
        padding: 36px 24px 32px;
        border-radius: 20px;
    }
    .result-modal .reward-icon { margin-bottom: 22px; }
    .result-modal .popup-title { font-size: 22px; margin-bottom: 10px; }
    .result-modal .popup-subtitle { margin-bottom: 22px; }
    .result-modal .reward-card { padding: 24px 20px; margin-bottom: 26px; }
    .result-modal .footer-text { margin-top: 20px; }
}


.wheel-fullscreen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    backdrop-filter: blur(10px);
    display: none;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.wheel-fullscreen.show {
    display: flex;
}

.wheel-fullscreen-inner {
    width: 90vmin;
    height: 90vmin;
}

#wheelOverlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    backdrop-filter: blur(10px);
    z-index: 99990;
    display: none;
}


#congrats_particles {
    display: none;
}

.confetti-container {
    user-select: none;
    z-index: 10;
}

.confetti {
    position: fixed;
    left: 0;
    right: 0;
    display: flex;
    z-index: 99999999999;
    /* width: 600px; */
    /* height: 600px; */
    /* overflow: hidden; */
}

.confetti .square {
    width: 1rem;
    height: 1rem;
    background-color: var(--bg);
    transform: rotate(-140deg);
}

.confetti .rectangle {
    width: 1rem;
    height: 0.5rem;
    background-color: var(--bg);
}

.confetti .hexagram {
    width: 0;
    height: 0;
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-bottom: 1rem solid var(--bg);
    position: relative;
}

.confetti .hexagram:after {
    content: "";
    width: 0;
    height: 0;
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-top: 1rem solid var(--bg);
    position: absolute;
    top: 0.33rem;
    left: -0.5rem;
}

.confetti .pentagram {
    width: 0rem;
    height: 0rem;
    display: block;
    margin: 0.5rem 0;
    border-right: 1rem solid transparent;
    border-bottom: 0.7rem solid var(--bg);
    border-left: 1rem solid transparent;
    transform: rotate(35deg);
    position: relative;
}

.confetti .pentagram:before {
    content: "";
    width: 0;
    height: 0;
    display: block;
    border-bottom: 0.8rem solid var(--bg);
    border-left: 0.3rem solid transparent;
    border-right: 0.3rem solid transparent;
    transform: rotate(-35deg);
    position: absolute;
    top: -0.45rem;
    left: -0.65rem;
}

.confetti .pentagram:after {
    content: "";
    width: 0rem;
    height: 0rem;
    display: block;
    border-right: 1rem solid transparent;
    border-bottom: 0.7rem solid var(--bg);
    border-left: 1rem solid transparent;
    transform: rotate(-70deg);
    position: absolute;
    top: 0.03rem;
    left: -1.05rem;
}

.confetti .dodecagram {
    background: var(--bg);
    width: 0.8rem;
    height: 0.8rem;
    position: relative;
}

.confetti .dodecagram:before {
    content: "";
    height: 0.8rem;
    width: 0.8rem;
    background: var(--bg);
    transform: rotate(30deg);
    position: absolute;
    top: 0;
    left: 0;
}

.confetti .dodecagram:after {
    content: "";
    height: 0.8rem;
    width: 0.8rem;
    background: var(--bg);
    transform: rotate(60deg);
    position: absolute;
    top: 0;
    left: 0;
}

.confetti .wavy-line {
    position: relative;
}

.confetti .wavy-line::after,
.confetti .wavy-line::before {
    content: "";
    height: 1rem;
    width: 8rem;
    background-size: 2rem 1rem;
    position: absolute;
    left: -9rem;
    transform: rotate(90deg);
}

.confetti .wavy-line::before {
    background-image: linear-gradient(45deg,
            transparent,
            transparent 50%,
            var(--bg) 50%,
            transparent 60%);
    top: 1rem;
}

.confetti .wavy-line::after {
    background-image: linear-gradient(-45deg,
            transparent,
            transparent 50%,
            var(--bg) 50%,
            transparent 60%);
}

.confetti i {
    width: 3rem;
    height: 3rem;
    margin: 0 0.2rem;
    animation-name: confetti;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: calc(70s / var(--speed));
}

.confetti i:nth-child(even) {
    transform: rotate(90deg);
}

@keyframes confetti {
    0% {
        transform: translateY(-100vh);
    }

    100% {
        transform: translateY(100vh);
    }
}


.particle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    filter: blur(0.8px);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    will-change: transform;
    animation-timing-function: linear;
}

@keyframes particle-animation-1 {
    100% {
        transform: translate3d(6vw, 10vh, 93px);
   }
}

.particle:nth-child(1) {
    animation: particle-animation-1 60s infinite;
    opacity: 0.5;
    height: 10px;
    width: 10px;
    animation-delay: -0.2s;
    transform: translate3d(5vw, 8vh, 19px);
    background: #ac26d9;
}
@keyframes particle-animation-2 {
    100% {
        transform: translate3d(16vw, 23vh, 69px);
   }
}
.particle:nth-child(2) {
    animation: particle-animation-2 60s infinite;
    opacity: 0.65;
    height: 12px;
    width: 12px;
    animation-delay: -0.4s;
    transform: translate3d(15vw, 22vh, 21px);
    background: #d98026;
}
@keyframes particle-animation-3 {
    100% {
        transform: translate3d(26vw, 43vh, 85px);
   }
}
.particle:nth-child(3) {
    animation: particle-animation-3 60s infinite;
    opacity: 0.55;
    height: 10px;
    width: 10px;
    animation-delay: -0.6s;
    transform: translate3d(25vw, 42vh, 45px);
    background: #d92674;
}
@keyframes particle-animation-4 {
    100% {
        transform: translate3d(36vw, 63vh, 14px);
   }
}
.particle:nth-child(4) {
    animation: particle-animation-4 60s infinite;
    opacity: 0.7;
    height: 11px;
    width: 11px;
    animation-delay: -0.8s;
    transform: translate3d(35vw, 62vh, 49px);
    background: #d9263b;
}
@keyframes particle-animation-5 {
    100% {
        transform: translate3d(46vw, 13vh, 10px);
   }
}
.particle:nth-child(5) {
    animation: particle-animation-5 60s infinite;
    opacity: 0.8;
    height: 10px;
    width: 10px;
    animation-delay: -1s;
    transform: translate3d(45vw, 12vh, 92px);
    background: #d98226;
}
@keyframes particle-animation-6 {
    100% {
        transform: translate3d(56vw, 33vh, 72px);
   }
}
.particle:nth-child(6) {
    animation: particle-animation-6 60s infinite;
    opacity: 0.4;
    height: 9px;
    width: 9px;
    animation-delay: -1.2s;
    transform: translate3d(55vw, 32vh, 20px);
    background: #26d9af;
}
@keyframes particle-animation-7 {
    100% {
        transform: translate3d(66vw, 53vh, 1px);
   }
}
.particle:nth-child(7) {
    animation: particle-animation-7 60s infinite;
    opacity: 0.55;
    height: 10px;
    width: 10px;
    animation-delay: -1.4s;
    transform: translate3d(65vw, 52vh, 47px);
    background: #4dd926;
}
@keyframes particle-animation-8 {
    100% {
        transform: translate3d(76vw, 73vh, 47px);
   }
}
.particle:nth-child(8) {
    animation: particle-animation-8 60s infinite;
    opacity: 0.45;
    height: 10px;
    width: 10px;
    animation-delay: -1.6s;
    transform: translate3d(75vw, 72vh, 29px);
    background: #26d935;
}
@keyframes particle-animation-9 {
    100% {
        transform: translate3d(86vw, 83vh, 83px);
   }
}
.particle:nth-child(9) {
    animation: particle-animation-9 60s infinite;
    opacity: 0.75;
    height: 12px;
    width: 12px;
    animation-delay: -1.8s;
    transform: translate3d(85vw, 82vh, 5px);
    background: #264ad9;
}
@keyframes particle-animation-10 {
    100% {
        transform: translate3d(96vw, 3vh, 50px);
   }
}
.particle:nth-child(10) {
    animation: particle-animation-10 60s infinite;
    opacity: 0.6;
    height: 10px;
    width: 10px;
    animation-delay: -2s;
    transform: translate3d(95vw, 2vh, 64px);
    background: #af26d9;
}
@keyframes particle-animation-11 {
    100% {
        transform: translate3d(10vw, 93vh, 67px);
   }
}
.particle:nth-child(11) {
    animation: particle-animation-11 60s infinite;
    opacity: 0.75;
    height: 11px;
    width: 11px;
    animation-delay: -2.2s;
    transform: translate3d(9vw, 92vh, 79px);
    background: #65d926;
}
@keyframes particle-animation-12 {
    100% {
        transform: translate3d(20vw, 6vh, 26px);
   }
}
.particle:nth-child(12) {
    animation: particle-animation-12 60s infinite;
    opacity: 0.65;
    height: 11px;
    width: 11px;
    animation-delay: -2.4s;
    transform: translate3d(19vw, 5vh, 64px);
    background: #2694d9;
}
@keyframes particle-animation-13 {
    100% {
        transform: translate3d(30vw, 86vh, 32px);
   }
}
.particle:nth-child(13) {
    animation: particle-animation-13 60s infinite;
    opacity: 0.5;
    height: 10px;
    width: 10px;
    animation-delay: -2.6s;
    transform: translate3d(29vw, 85vh, 19px);
    background: #d0d926;
}
@keyframes particle-animation-14 {
    100% {
        transform: translate3d(40vw, 16vh, 6px);
   }
}
.particle:nth-child(14) {
    animation: particle-animation-14 60s infinite;
    opacity: 0.7;
    height: 12px;
    width: 12px;
    animation-delay: -2.8s;
    transform: translate3d(39vw, 15vh, 91px);
    background: #26d9c4;
}
@keyframes particle-animation-15 {
    100% {
        transform: translate3d(50vw, 26vh, 93px);
   }
}
.particle:nth-child(15) {
    animation: particle-animation-15 60s infinite;
    opacity: 0.75;
    height: 12px;
    width: 12px;
    animation-delay: -3s;
    transform: translate3d(49vw, 25vh, 67px);
    background: #d92629;
}
@keyframes particle-animation-16 {
    100% {
        transform: translate3d(60vw, 46vh, 12px);
   }
}
.particle:nth-child(16) {
    animation: particle-animation-16 60s infinite;
    opacity: 0.5;
    height: 9px;
    width: 9px;
    animation-delay: -3.2s;
    transform: translate3d(59vw, 45vh, 38px);
    background: #d92641;
}
@keyframes particle-animation-17 {
    100% {
        transform: translate3d(70vw, 66vh, 59px);
   }
}
.particle:nth-child(17) {
    animation: particle-animation-17 60s infinite;
    opacity: 0.5;
    height: 10px;
    width: 10px;
    animation-delay: -3.4s;
    transform: translate3d(69vw, 65vh, 37px);
    background: #26d926;
}
@keyframes particle-animation-18 {
    100% {
        transform: translate3d(80vw, 36vh, 27px);
   }
}
.particle:nth-child(18) {
    animation: particle-animation-18 60s infinite;
    opacity: 0.5;
    height: 10px;
    width: 10px;
    animation-delay: -3.6s;
    transform: translate3d(79vw, 35vh, 55px);
    background: #2665d9;
}
@keyframes particle-animation-19 {
    100% {
        transform: translate3d(90vw, 56vh, 9px);
   }
}
.particle:nth-child(19) {
    animation: particle-animation-19 60s infinite;
    opacity: 0.65;
    height: 10px;
    width: 10px;
    animation-delay: -3.8s;
    transform: translate3d(89vw, 55vh, 23px);
    background: #d9bb26;
}
@keyframes particle-animation-20 {
    100% {
        transform: translate3d(1vw, 76vh, 1px);
   }
}
.particle:nth-child(20) {
    animation: particle-animation-20 60s infinite;
    opacity: 0.7;
    height: 11px;
    width: 11px;
    animation-delay: -4s;
    transform: translate3d(0vw, 75vh, 94px);
    background: #26d968;
}
@keyframes particle-animation-21 {
    100% {
        transform: translate3d(6vw, 40vh, 14px);
   }
}
.particle:nth-child(21) {
    animation: particle-animation-21 60s infinite;
    opacity: 0.6;
    height: 10px;
    width: 10px;
    animation-delay: -4.2s;
    transform: translate3d(5vw, 39vh, 19px);
    background: #d026d9;
}
@keyframes particle-animation-22 {
    100% {
        transform: translate3d(16vw, 50vh, 81px);
   }
}
.particle:nth-child(22) {
    animation: particle-animation-22 60s infinite;
    opacity: 0.55;
    height: 10px;
    width: 10px;
    animation-delay: -4.4s;
    transform: translate3d(15vw, 49vh, 36px);
    background: #26d980;
}
@keyframes particle-animation-23 {
    100% {
        transform: translate3d(26vw, 60vh, 92px);
   }
}
.particle:nth-child(23) {
    animation: particle-animation-23 60s infinite;
    opacity: 0.6;
    height: 12px;
    width: 12px;
    animation-delay: -4.6s;
    transform: translate3d(25vw, 59vh, 46px);
    background: #d95c26;
}
@keyframes particle-animation-24 {
    100% {
        transform: translate3d(36vw, 70vh, 88px);
   }
}
.particle:nth-child(24) {
    animation: particle-animation-24 60s infinite;
    opacity: 0.6;
    height: 10px;
    width: 10px;
    animation-delay: -4.8s;
    transform: translate3d(35vw, 69vh, 65px);
    background: #d926b5;
}
@keyframes particle-animation-25 {
    100% {
        transform: translate3d(46vw, 80vh, 65px);
   }
}
.particle:nth-child(25) {
    animation: particle-animation-25 60s infinite;
    opacity: 0.6;
    height: 10px;
    width: 10px;
    animation-delay: -5s;
    transform: translate3d(45vw, 79vh, 95px);
    background: #d93826;
}
@keyframes particle-animation-26 {
    100% {
        transform: translate3d(56vw, 20vh, 61px);
   }
}
.particle:nth-child(26) {
    animation: particle-animation-26 60s infinite;
    opacity: 0.55;
    height: 11px;
    width: 11px;
    animation-delay: -5.2s;
    transform: translate3d(55vw, 19vh, 16px);
    background: #d99d26;
}
@keyframes particle-animation-27 {
    100% {
        transform: translate3d(66vw, 90vh, 7px);
   }
}
.particle:nth-child(27) {
    animation: particle-animation-27 60s infinite;
    opacity: 0.5;
    height: 12px;
    width: 12px;
    animation-delay: -5.4s;
    transform: translate3d(65vw, 89vh, 32px);
    background: #2659d9;
}
@keyframes particle-animation-28 {
    100% {
        transform: translate3d(76vw, 30vh, 5px);
   }
}
.particle:nth-child(28) {
    animation: particle-animation-28 60s infinite;
    opacity: 0.65;
    height: 12px;
    width: 12px;
    animation-delay: -5.6s;
    transform: translate3d(75vw, 29vh, 23px);
    background: #38d926;
}
@keyframes particle-animation-29 {
    100% {
        transform: translate3d(86vw, 40vh, 65px);
   }
}
.particle:nth-child(29) {
    animation: particle-animation-29 60s infinite;
    opacity: 0.55;
    height: 11px;
    width: 11px;
    animation-delay: -5.8s;
    transform: translate3d(85vw, 39vh, 42px);
    background: #3826d9;
}
@keyframes particle-animation-30 {
    100% {
        transform: translate3d(96vw, 66vh, 2px);
   }
}
.particle:nth-child(30) {
    animation: particle-animation-30 60s infinite;
    opacity: 0.7;
    height: 12px;
    width: 12px;
    animation-delay: -6s;
    transform: translate3d(95vw, 65vh, 8px);
    background: #d92644;
}
