/* --- Winter Theme Setup --- */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@400;600;700&display=swap');

#wgr-game-wrapper {
    max-width: 500px;
    margin: 40px auto;
    /* Winter Gradient Background */
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border-radius: 20px;
    /* Frosty Glass Effect */
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.1),
        inset 0 0 0 2px rgba(255, 255, 255, 0.6);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    position: relative;
    min-height: 480px;
}

/* Snowflake Animation Container */
.wgr-winter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.snowflake {
    color: #fff;
    font-size: 1.5em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #000;
    position: absolute;
    top: -10%;
    z-index: 1;
    animation-name: wgr-snowflakes-fall, wgr-snowflakes-shake;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running;
}

/* Randomize Snowflake Positions */
.snowflake:nth-of-type(1) { left: 1%; animation-delay: 0s, 0s; }
.snowflake:nth-of-type(2) { left: 10%; animation-delay: 1s, 1s; }
.snowflake:nth-of-type(3) { left: 20%; animation-delay: 6s, .5s; }
.snowflake:nth-of-type(4) { left: 30%; animation-delay: 4s, 2s; }
.snowflake:nth-of-type(5) { left: 40%; animation-delay: 2s, 2s; }
.snowflake:nth-of-type(6) { left: 50%; animation-delay: 8s, 3s; }
.snowflake:nth-of-type(7) { left: 60%; animation-delay: 6s, 2s; }
.snowflake:nth-of-type(8) { left: 70%; animation-delay: 2.5s, 1s; }
.snowflake:nth-of-type(9) { left: 80%; animation-delay: 1s, 0s; }
.snowflake:nth-of-type(10) { left: 90%; animation-delay: 3s, 1.5s; }

@keyframes wgr-snowflakes-fall {
    0% { top: -10%; }
    100% { top: 100%; }
}
@keyframes wgr-snowflakes-shake {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

/* --- Screen Styles --- */
.wgr-screen {
    display: none;
    padding: 30px;
    animation: fadeIn 0.5s;
    position: relative;
    z-index: 2; /* Place content above snow */
}

.wgr-screen.active {
    display: block;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Typography */
.wgr-title {
    font-size: 20px;
    color: #2c5282; /* Dark Winter Blue */
    margin-bottom: 5px;
    line-height: 1.4;
}

/* New Animated Text Style */
.wgr-animated-text {
    font-family: 'Pacifico', cursive, sans-serif; /* Use a nice font */
    font-size: 26px; /* Make it larger */
    /* Red, Orange, Blue gradient */
    background: linear-gradient(45deg, #ff2400, #ff7f00, #007bff, #ff2400); 
    background-size: 300% 300%; /* Make gradient larger for movement */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback */
    animation: wgr-gradient-shift 4s ease infinite;
    text-shadow: none;
    padding: 5px 0;
}

@keyframes wgr-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.wgr-brand-name {
    font-family: 'Pacifico', cursive;
    color: #e53e3e; /* Tasty Red */
    font-size: 28px;
    font-weight: normal;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.8);
}

h2, h3 {
    color: #2d3748;
}

p {
    color: #4a5568;
    font-size: 14px;
}

/* Inputs */
.wgr-input-group {
    margin-top: 25px;
}
#wgr-phone {
    width: 100%;
    padding: 14px;
    border: 2px solid #b2f5ea;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    color: #2d3748;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
#wgr-phone:focus {
    border-color: #3182ce;
}

/* Buttons (Winter Theme) */
.wgr-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.3);
}

.wgr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(66, 153, 225, 0.4);
    background: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
}

.wgr-btn-secondary {
    background: #cbd5e0;
    color: #4a5568;
    box-shadow: none;
}
.wgr-btn-secondary:hover {
    background: #a0aec0;
    color: #2d3748;
}

/* Grid (Glassmorphism) */
.wgr-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 25px 0;
}

.wgr-grid-item {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 10px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.wgr-grid-item img {
    max-width: 50px;
    max-height: 50px;
    margin-bottom: 5px;
}

.wgr-grid-item span {
    font-size: 11px;
    line-height: 1.2;
    color: #2d3748;
    font-weight: 600;
}

.wgr-grid-item.active {
    border-color: #f6ad55;
    background: #fffaf0;
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(246, 173, 85, 0.6);
    z-index: 5;
}

/* Result Box */
.wgr-coupon-box {
    background: #ebf8ff;
    padding: 15px;
    border: 2px dashed #4299e1;
    margin: 20px 0;
    border-radius: 10px;
}

#wgr-coupon-code {
    font-size: 24px;
    font-weight: bold;
    color: #2b6cb0;
    letter-spacing: 2px;
    margin-top: 5px;
}

#wgr-msg { margin-top: 10px; color: #e53e3e; font-size: 14px; font-weight: 600; }

/* Lottie Containers */
.wgr-lottie-container {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}