* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #F4EDD6; /* Creamy background */
    color: #8C6647;
    overflow: hidden;
    touch-action: manipulation;
}

#app-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #F8F9FA; /* Amazon-like light bg */
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #F8F5FF;
}

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 2px solid #D8C3A5;
}

#header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #D39E42; /* Golden text */
}

#back-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #8C6647;
    cursor: pointer;
}

.icons i {
    font-size: 24px;
    margin-left: 15px;
    color: #8C6647;
    cursor: pointer;
}



.life-icon {
    transition: transform 0.3s, opacity 0.3s;
}

.life-icon.lost {
    opacity: 0.2;
    transform: scale(0.5);
}

#game-canvas {
    flex-grow: 1;
    width: 100%;
}

#footer-actions {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    background-color: #EAE0C8;
    border-top: 2px solid #D8C3A5;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FFF;
    border: 2px solid #D8C3A5;
    font-size: 28px;
    color: #8C6647;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.1s;
}

.action-btn:active {
    transform: scale(0.90);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25), 0 0 0 10000px rgba(0,0,0,0.6);
    z-index: 100;
    width: 85%;
    max-width: 320px;
}

.hidden {
    display: none !important;
}

.overlay.hidden {
    display: none !important;
}

.overlay h2 {
    font-size: 26px;
    color: #6A2BDE;
    margin-bottom: 15px;
}

.overlay p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.overlay button {
    background: #6A2BDE;
    color: #FFF;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

/* --- SCREEN MANAGER STYLES --- */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateX(100%);
    opacity: 0;
    background-color: #F4EDD6; /* Default game bg */
    z-index: 1;
    pointer-events: none;
}

.screen.active {
    transform: translateX(0);
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

#screen-splash.active {
    transform: translateX(0) !important;
    opacity: 1 !important;
    z-index: 10 !important;
    transition: none !important;
}

/* --- STAGE 1-5: AVENZO GO STYLES --- */

.bg-lavender {
    background-color: #F8F5FF; /* Light lavender from screenshots */
    display: flex;
    flex-direction: column;
}

.text-purple { color: #6A2BDE; }
.btn-purple {
    background-color: #6A2BDE;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.1s;
}
.btn-purple:active { transform: scale(0.98); }
.btn-large {
    padding: 18px 20px;
    font-size: 18px;
    border-radius: 10px;
}

/* Splash (Frame 1) */
.center-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeIn 0.5s ease-in;
}
.splash-logo-img {
    width: 220px;
    height: auto;
    object-fit: contain;
}
.home-banner-img {
    width: 100%;
    max-width: 275px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* Terms (Frame 2) */
.bg-white-clean {
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
}
.terms-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
}
.welcome-text {
    font-family: 'Poppins', sans-serif;
    color: #333;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 5px;
}
.avenzo-title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
}
.maze-icon-img {
    width: 160px;
    height: auto;
    object-fit: contain;
    margin-bottom: 30px;
}
.terms-text {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}
.terms-text a {
    color: #6A2BDE;
    text-decoration: none;
    font-weight: 600;
}
.btn-accept {
    border-radius: 30px;
    padding: 18px 60px;
    font-size: 18px;
    width: 80%;
    max-width: 280px;
}

/* Onboarding (Frame 3) */
.onboarding-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
}
.avenzo-icon-placeholder {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    color: #6A2BDE;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.onboard-title {
    font-size: 22px;
    font-weight: 500;
    color: #6B7280;
    margin-bottom: 15px;
}
.onboard-text {
    font-size: 14px;
    color: #777;
    margin-bottom: 30px;
    line-height: 1.6;
}
.onboard-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: #111;
}

/* Home (Frame 4) */
.home-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
}
.home-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    color: #555;
}
.home-content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.avenzo-big-logo {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
}
.avenzo-logo-text {
    font-size: 50px;
    font-weight: 900;
    color: #1155CC; /* Blue Avenzo */
    text-shadow: 2px 2px 0px white, -2px -2px 0px white, 2px -2px 0px white, -2px 2px 0px white;
    line-height: 1.1;
    transform: rotate(-5deg);
}
.reward-banner {
    background: linear-gradient(to right, #1155CC, #4A148C);
    border-radius: 12px;
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.reward-text h2 {
    font-size: 24px;
    margin-bottom: 5px;
}
.reward-unlocked {
    color: #FFD700;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}
.reward-text small {
    font-size: 10px;
    opacity: 0.8;
}
.reward-icon {
    font-size: 40px;
    color: #FFD700;
}
.progress-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.progress-bar-bg {
    flex-grow: 1;
    height: 10px;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
}
.progress-text {
    font-weight: bold;
    color: var(--theme-primary, #6A2BDE);
}
.level-circles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}
.level-circles::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--theme-secondary, #DED1FA);
    z-index: 1;
}
.circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--theme-secondary, #DED1FA);
    color: var(--theme-primary, #6A2BDE);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}
.circle.active {
    background-color: var(--theme-primary, #6A2BDE);
    color: white;
}

/* Game Header (Frame 5) */
#header-frame5 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.h-left {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.text-purple {
    color: #8B5CF6; /* Lighter purple from Figma */
}
.level-title-purple {
    font-size: 18px;
    font-weight: 700;
    color: #8B5CF6;
    font-family: 'Poppins', sans-serif;
}
.h-right {
    display: flex;
    gap: 15px;
    font-size: 20px;
}
.h-right i {
    cursor: pointer;
}
.lives-ad-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 15px 20px;
}
#lives-container {
    display: flex;
    gap: 8px;
    color: #DC2626; /* Darker red hearts */
    font-size: 22px;
}
.ad-hint {
    background: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #6A2BDE;
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}
/* Adding a little chat bubble tail for AD */
.ad-hint::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 15px;
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: white transparent transparent transparent;
    display: block;
    width: 0;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- WELL DONE (Frames 8-12) --- */
.bg-gradient-purple { background: linear-gradient(135deg, #6A2BDE, #8B5CF6); display: flex; flex-direction: column; }
.bg-gradient-red { background: linear-gradient(135deg, #DC2626, #EF4444); display: flex; flex-direction: column; }
.bg-gradient-green { background: linear-gradient(135deg, #16A34A, #22C55E); display: flex; flex-direction: column; }
.bg-gradient-blue { background: linear-gradient(135deg, #2563EB, #3B82F6); display: flex; flex-direction: column; }
.bg-gradient-orange { background: linear-gradient(135deg, #EA580C, #F97316); display: flex; flex-direction: column; }

.well-done-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}
.well-done-title {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}
.stars-container-arc {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 0px;
    height: 90px;
}
.star-left, .star-right {
    font-size: 55px;
    color: #FFD700;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transform: translateY(-10px) rotate(-15deg);
}
.star-right {
    transform: translateY(-10px) rotate(15deg);
}
.star-middle {
    font-size: 75px;
    color: #FFD700;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transform: translateY(-30px);
    z-index: 1;
}
.bg-arrows-placeholder {
    font-size: 100px;
    opacity: 0.2;
    margin-bottom: -50px;
}
.well-done-bottom {
    background: white;
    border-radius: 30px 30px 0 0;
    padding: 20px 20px 25px 20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

/* --- SYNCING (Frame 14) --- */
.sync-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}
.sync-text {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.5;
}
.sync-logo {
    font-size: 24px;
    font-weight: 900;
    color: #1155CC;
    font-style: italic;
    margin-bottom: 60px;
}
.sync-progress {
    width: 100%;
    position: relative;
}
.sync-percent {
    position: absolute;
    top: -25px;
    right: 60%; /* matches 38% */
    color: #6A2BDE;
    font-weight: bold;
}

/* --- REWARDS (Frame 15) --- */
.header-simple {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
}
.wallet-badge {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: #111;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    cursor: pointer;
}
.rewards-content {
    padding: 6px 8px  0px 0px;
    text-align: center;
}
.rewards-title-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}
.badge-50 {
    background: #FFD700;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 24px;
    position: relative;
    box-shadow: 0 4px 10px rgba(255,215,0,0.4);
}
.badge-50 small {
    font-size: 8px;
}
.badge-50 i {
    position: absolute;
    opacity: 0.2;
    font-size: 40px;
}
.rewards-title-text h2 {
    font-size: 28px;
    color: #111;
    text-align: left;
    line-height: 1.1;
}
.rewards-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}
.gift-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.gift-box {
    aspect-ratio: 1;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: white;
    box-shadow: inset 0 -5px 0 rgba(0,0,0,0.2), 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.1s;
}
.gift-box:active { transform: scale(0.95); }
.box-red { background: #EF4444; }
.box-orange { background: #F97316; }
.box-yellow { background: #EAB308; }
.box-green { background: #22C55E; }
.box-blue { background: #3B82F6; }
.box-purple { background: #A855F7; }
.box-silver { background: #94A3B8; }
.box-pink { background: #EC4899; }
.box-bronze { background: #B45309; }
.btn-secondary {
    background-color: white;
    color: #6A2BDE;
    border: 2px solid #E6DCFF;
    border-radius: 8px;
    padding: 16px 20px;
    font-weight: bold;
    width: 100%;
}
.rewards-footer {
    color: #777;
    font-size: 12px;
    margin-top: 15px;
}

/* --- SETTINGS (Frame 16-18) --- */
#screen-settings {
    background: linear-gradient(180deg, #8456A5 0%, #8456A5 15%, #F8F5FF 50%);
    display: flex;
    flex-direction: column;
}
.settings-header {
    background: transparent;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding-top: 40px; /* Safe area for mobile */
}
.text-white { color: white; }
.settings-content {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 40px;
}
.settings-card {
    background: white;
    border-radius: 15px;
    padding: 0 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.setting-label {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}
.setting-divider {
    height: 1px;
    background: #F0F0F0;
    width: 100%;
}
.toggle {
    width: 50px;
    height: 28px;
    background: #E5E7EB;
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}
.toggle.active { background: #6A2BDE; }
.toggle-circle {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.toggle.active .toggle-circle { left: 24px; }
.account-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 2px solid transparent;
}
.account-card.unverified {
    /* Removed red background and border to match Figma */
}
.text-red { color: #DC2626; }
.btn-verify {
    background: #2563EB; /* Blue Verify Button from Figma */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    font-weight: bold;
    cursor: pointer;
}
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
}
.menu-label {
    font-weight: 500;
    color: #444;
    display: flex;
    align-items: center;
    gap: 15px;
}
.text-gray { color: #9CA3AF; }

/* --- WALLET (Frame 155) --- */
.bg-white { background: white; display: flex; flex-direction: column; }
.wallet-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid #F0F0F0;
}
.wallet-balance-card {
    background: linear-gradient(135deg, #16A34A, #15803D);
    margin: 20px;
    border-radius: 20px;
    padding: 30px;
    color: white;
    text-align: center;
}
.wallet-balance-card p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}
.wallet-amount {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 15px;
}
.wallet-balance-card small {
    font-size: 12px;
    opacity: 0.8;
}

/* --- POPUPS --- */
.btn-google {
    width: 100%;
    background: white;
    border: 1px solid #DDD;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}
.cloud-icon {
    font-size: 60px;
    color: #6A2BDE;
    position: relative;
    display: inline-block;
    margin-top: 10px;
}
.check-badge {
    position: absolute;
    bottom: 0;
    right: -10px;
    color: #16A34A;
    background: white;
    border-radius: 50%;
    font-size: 24px;
}
.restore-badge {
    background: #F8F5FF;
    border: 1px solid #E6DCFF;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}
.verify-icon {
    font-size: 60px;
    color: #DC2626;
    position: relative;
    display: inline-block;
    margin-top: 10px;
}
.check-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: white;
}
/* Figma Well Done Screen Match */
#screen-well-done { overflow: hidden; position: relative; transition: background 0.5s; }

/* Dynamic Background Gradients */
.bg-gradient-purple { background: linear-gradient(180deg, #37007A 0%, #E3BAFF 100%) !important; }
.bg-gradient-red    { background: linear-gradient(180deg, #990022 0%, #FFB6C1 100%) !important; }
.bg-gradient-green  { background: linear-gradient(180deg, #2E5C00 0%, #D4FF99 100%) !important; }
.bg-gradient-blue   { background: linear-gradient(180deg, #002266 0%, #99CCFF 100%) !important; }
.bg-gradient-orange { background: linear-gradient(180deg, #8B3A00 0%, #FFD1A3 100%) !important; }

.wd-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; z-index: 1; pointer-events: none; }
.bg-arrow { position: absolute; color: rgba(255, 255, 255, 0.15); font-size: 300px; transform: rotate(-15deg); }
.bg-arrow-1 { top: 20%; left: -20%; }
.bg-arrow-2 { top: 30%; left: 30%; font-size: 400px; }
.bg-arrow-3 { top: 50%; left: 80%; }
.well-done-content-full { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 20px; box-sizing: border-box; }
.well-done-title-clean { font-size: 36px; font-weight: 800; color: white; margin-bottom: 20px; font-family: 'Poppins', sans-serif; text-align: center; letter-spacing: 1px; }
.stars-container-arc { display: flex; justify-content: center; align-items: flex-end; gap: 15px; margin-bottom: 30px; height: 90px; }
.star-left, .star-right, .star-middle { color: #FFB800; text-shadow: 0 4px 0 #D47B00; }
.star-left, .star-right { font-size: 60px; transform: translateY(-10px) rotate(-15deg); }
.star-right { transform: translateY(-10px) rotate(15deg); }
.star-middle { font-size: 80px; transform: translateY(-30px); z-index: 3; }
.reward-img-full { width: 100%; max-width: 400px; border-radius: 10px; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

.wd-progress-row { display: flex; align-items: center; width: 100%; max-width: 400px; margin-bottom: 20px; }
.wd-progress-track { flex-grow: 1; height: 8px; background: white; border-radius: 4px; overflow: hidden; margin-right: 15px; }
.wd-progress-fill { height: 100%; background: var(--theme-primary, #6A2BDE); width: 50%; border-radius: 4px; transition: background 0.5s; }
.wd-progress-text { color: var(--theme-primary, #6A2BDE); font-weight: 700; font-size: 16px; transition: color 0.5s; }

.wd-circles-clean { position: relative; width: 100%; max-width: 400px; display: flex; justify-content: space-between; margin-bottom: 40px; }
.wd-circles-clean::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 6px; background: var(--theme-secondary, rgba(212, 182, 255, 0.5)); transform: translateY(-50%); z-index: 1; transition: background 0.5s; }
.wd-circles-clean .circle { width: 32px; height: 32px; border-radius: 50%; background: var(--theme-secondary, #D4B6FF); color: var(--theme-primary, #6A2BDE); display: flex; justify-content: center; align-items: center; font-weight: 700; font-size: 14px; z-index: 2; border: 2px solid rgba(255,255,255,0.5); transition: background 0.5s, color 0.5s; }
.wd-circles-clean .circle.active { background: var(--theme-primary, #6A2BDE); color: white; border-color: var(--theme-primary, #6A2BDE); }

.wd-next-btn { width: 100%; max-width: 400px; background: var(--theme-primary, #6A2BDE) !important; color: white !important; padding: 18px; border-radius: 12px; font-size: 18px; font-weight: 700; border: none; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: background 0.5s; }

/* Star Pop-in Keyframe Animations for Screen Well Done */
@keyframes starPopIn {
    0% { transform: scale(0) rotate(-30deg); opacity: 0; }
    70% { transform: scale(1.3) rotate(10deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.stars-container-arc i.animate-star {
    animation: starPopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.level-circles .circle.active,
.wd-circles-clean .circle.active {
    animation: popBlink 1.5s infinite ease-in-out;
    z-index: 10;
}
/* Reward Grid Animations */
.gift-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.gift-box:hover {
    transform: scale(1.1);
}
.selected-box {
    transform: scale(1.2) !important;
    z-index: 10;
}
.won-amount {
    font-size: 13px;
    font-weight: 800;
    color: #FFFFFF !important;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px 6px;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    max-width: 94%;
    white-space: nowrap;
    text-align: center;
    letter-spacing: -0.3px;
}
.selected-box .won-amount {
    font-size: 16px !important;
    padding: 5px 8px !important;
}
@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes boxFlip {
    0% { transform: scale(1) rotateY(0deg); }
    50% { transform: scale(1.15) rotateY(90deg); }
    100% { transform: scale(1.1) rotateY(0deg); }
}
@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}
.gift-box {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gift-box:hover {
    transform: translateY(-4px) scale(1.03);
}
.gift-box.opening {
    animation: boxFlip 0.6s ease forwards;
}
.pop-animation {
    animation: popIn 0.5s ease forwards;
}

.form-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #8B5CF6;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    display: block;
}

.form-input::placeholder {
    color: #9CA3AF;
}

.form-input:focus {
    border-color: #6A2BDE;
    outline: none;
    box-shadow: 0 0 0 2px rgba(106, 43, 222, 0.2);
}