/*
Theme Name: QuizzFlix
Theme URI: https://quizzflix.pro
Author: QuizzFlix Team
Author URI: https://quizzflix.pro
Description: QuizzFlix — The ultimate free quiz platform. Explore thousands of quizzes, test your knowledge, create your own, and earn rewards. Play personality quizzes, TV trivia, and more.
Version: 2.1
License: GNU General Public License v2 or later
Text Domain: quizzflix
*/

* {
    box-sizing: border-box;
}

/* --- SHOP ITEM RARITY & EFFECTS --- */
.shop-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
}

.shop-item:hover {
    transform: translateY(-5px) scale(1.02);
    z-index: 10;
}

/* Rarity: Common (Default) */
.shop-item.rarity-common {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Rarity: Rare */
.shop-item.rarity-rare {
    border-color: #3b82f6;
    /* Blue-500 */
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

.shop-item.rarity-rare:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Rarity: Epic */
.shop-item.rarity-epic {
    border-color: #a855f7;
    /* Purple-500 */
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.shop-item.rarity-epic:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
}

.shop-item.rarity-epic .shop-item-icon {
    animation: pulse-slow 3s infinite;
}

/* Rarity: Legendary */
.shop-item.rarity-legendary {
    border-color: #eab308;
    /* Yellow-500 */
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.3);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.05), rgba(30, 41, 59, 0.8));
}

.shop-item.rarity-legendary:hover {
    box-shadow: 0 0 40px rgba(234, 179, 8, 0.6);
}

.shop-item.rarity-legendary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine-sweep 6s infinite;
    pointer-events: none;
}

/* Rarity: Ethereal */
.shop-item.rarity-ethereal {
    border: 2px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(to bottom, var(--card-bg), var(--card-bg)),
        linear-gradient(135deg, #ff00cc, #3333ff, #00ccff, #ff00cc);
    background-size: 300% 300%;
    animation: gradient-border 4s ease infinite;
    box-shadow: 0 0 25px rgba(255, 0, 204, 0.4);
}

.shop-item.rarity-ethereal:hover {
    box-shadow: 0 0 50px rgba(51, 51, 255, 0.7);
    transform: translateY(-8px) scale(1.05);
}

.shop-item.rarity-ethereal .shop-item-icon {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

/* Animations */
@keyframes pulse-slow {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }

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

@keyframes shine-sweep {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    20% {
        transform: translateX(100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

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

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

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

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

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

/* Rarity Badge Styles */
.rarity-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 5;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    backdrop-filter: blur(4px);
}

.rarity-badge.common {
    color: #9ca3af;
    border: 1px solid #4b5563;
}

.rarity-badge.rare {
    color: #60a5fa;
    border: 1px solid #2563eb;
    background: rgba(37, 99, 235, 0.2);
}

.rarity-badge.epic {
    color: #c084fc;
    border: 1px solid #9333ea;
    background: rgba(147, 51, 234, 0.2);
}

.rarity-badge.legendary {
    color: #facc15;
    border: 1px solid #eab308;
    background: rgba(234, 179, 8, 0.2);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.4);
}

.rarity-badge.ethereal {
    background: linear-gradient(90deg, #ff00cc, #3333ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 0, 204, 0.5);
}

.rarity-badge.ultimate {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    color: #fff;
    border: 1px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* Shop Grid Improvements */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.shop-item-name {
    font-weight: 800;
    margin-top: 10px;
    font-size: 1.1rem;
}

.shop-item-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    min-height: 40px;
    /* Consistent height */
}



:root {
    /* --- PALETTE: CLEAN DARK (Default) --- */
    --bg-color: #0f172a;
    /* Slate 900 */
    --bg-gradient-1: #1e293b;
    /* Slate 800 */
    --bg-gradient-2: #0f172a;
    /* Slate 900 */

    --text-color: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */

    --card-bg: rgba(30, 41, 59, 0.7);
    /* Slate 800 glass */
    --card-border: rgba(255, 255, 255, 0.1);

    --primary: #8b5cf6;
    /* Violet 500 */
    --primary-hover: #7c3aed;
    /* Violet 600 */
    --secondary: #14b8a6;
    /* Teal 500 */

    --accent-red: #ef4444;
    --accent-gold: #fbbf24;
    /* Amber 400 */

    /* Shadows - Clean Black Based */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);

    --radius-l: 24px;
    --radius-m: 16px;
    --radius-s: 8px;

    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Nunito', sans-serif;

    --title-gradient: linear-gradient(135deg, #f8fafc 0%, #7dd3fc 45%, #a78bfa 100%);
    --title-glow: 0 0 12px rgba(125, 211, 252, 0.35);
}

.ads-column {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 4000
}

.ads-left {
    left: 8px
}

.ads-right {
    right: 8px
}

.ads-column,
.ads-widget,
.ads-price,
.ads-title,
.ads-label {
    display: none !important;
}

.ads-column .widget,
.ads-column .ads-widget {
    display: block;
    width: 160px;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .07);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .25)
}

.ads-column .widget a,
.ads-column .ads-widget a {
    text-decoration: none
}

.ads-column img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .25s ease
}

.ads-column .widget:hover img,
.ads-column .ads-widget:hover img {
    transform: scale(1.03)
}

.ads-column iframe {
    width: 100%
}

/* CTA button */
.ads-more-btn {
    display: block;
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 28px;
    background: #f59e0b;
    color: #0b1020;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .3)
}

.ads-more-btn:hover {
    filter: brightness(1.05)
}

.ads-price {
    display: block;
    margin-top: 6px;
    text-align: center;
    color: #ef4444;
    font-weight: 800
}

.ads-label {
    display: block;
    margin-bottom: 6px;
    text-align: center;
    color: #94a3b8;
    font-weight: 700;
    font-size: 12px
}

.ads-title {
    display: block;
    margin-bottom: 6px;
    text-align: center;
    color: #f8fafc;
    font-weight: 800
}

@media (max-width:980px) {
    .ads-column {
        display: none
    }
}

.side-ad {
    display: none !important
}

/* --- LIGHT MODE OVERRIDES (Optional Toggle) --- */
body.light-theme {
    --bg-color: #f1f5f9;
    /* Softer gray instead of pure white */
    --bg-gradient-1: #e2e8f0;
    --bg-gradient-2: #f1f5f9;

    --text-color: #334155;
    /* Slate 700 */
    --text-muted: #64748b;

    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 0, 0, 0.05);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --title-gradient: linear-gradient(135deg, #0f172a 0%, #2563eb 60%, #0f172a 100%);
    --title-glow: none;
}

/* Common Theme Variants */
body.theme-ocean {
    --bg-color: #062b46;
    --bg-gradient-1: #0a3b5e;
    --bg-gradient-2: #064766;
    --card-bg: rgba(2, 24, 39, 0.7);
    --card-border: rgba(34, 197, 94, 0.2);
    --title-gradient: linear-gradient(135deg, #60a5fa 0%, #22d3ee 60%, #60a5fa 100%);
}
body.theme-neon {
    --bg-color: #0b1020;
    --bg-gradient-1: #0b1020;
    --bg-gradient-2: #0b1020;
    --card-bg: rgba(16, 24, 48, 0.7);
    --card-border: rgba(167, 139, 250, 0.35);
    --title-gradient: linear-gradient(135deg, #22d3ee 0%, #a78bfa 55%, #f472b6 100%);
}
body.theme-forest {
    --bg-color: #0e2215;
    --bg-gradient-1: #142f1d;
    --bg-gradient-2: #0e2215;
    --card-bg: rgba(12, 28, 18, 0.7);
    --card-border: rgba(34, 197, 94, 0.25);
    --title-gradient: linear-gradient(135deg, #22c55e 0%, #65a30d 60%, #166534 100%);
}
body.theme-candy {
    --bg-color: #2b0f1e;
    --bg-gradient-1: #3a1429;
    --bg-gradient-2: #2b0f1e;
    --card-bg: rgba(58, 20, 41, 0.6);
    --card-border: rgba(244, 114, 182, 0.35);
    --title-gradient: linear-gradient(135deg, #f472b6 0%, #fbbf24 60%, #22d3ee 100%);
}
body.light-theme .ads-column .widget,
body.light-theme .ads-column .ads-widget {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .15)
}
body.light-theme .ads-title,
body.light-theme .ads-label,
body.light-theme .ads-widget a {
    color: #0b1020;
}
body.light-theme .ads-price {
    color: #0b1020;
}

/* Hide external newsletter popups (WordPress Newsletter plugin, generic selectors) */
.tnp-popup, 
.tnp-modal, 
.tnp-subscription, 
.tnp-subscription-modal, 
.newsletter-popup, 
.newsletter-modal {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
/* --- OLD THEME DEFINITIONS REMOVED (See end of file) --- */

/* Animations for High-Tier Themes */
@keyframes celestialPulse {
    0% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(15deg);
    }

    100% {
        filter: hue-rotate(0deg);
    }
}

html,
body {
    min-height: 100vh;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 0%, var(--bg-gradient-1), var(--bg-gradient-2));
    background-attachment: fixed;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    /* Stack vertically for footer */
    align-items: center;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
}

/* --- APP LAYOUT --- */
#app {
    width: 100%;
    max-width: 1200px;
    /* Wider Default */
    padding: 20px;
    flex: 1;
    /* Take available space */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* --- HEADER --- */
header {
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
    padding: 40px;

    /* Clean Glassmorphism */
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1500;
    pointer-events: auto;
}

h1,
h1 a {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    background: var(--title-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

p.subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* --- BUTTONS & INTERACTIVE --- */
.header-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.header-actions * {
    pointer-events: auto;
}

.nav-btn,
.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    background: var(--card-bg);
    /* Default clean background */
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
}

.nav-btn:hover,
.shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

/* Mode-specific dopamine animations for shop buttons */
@keyframes popPulse {
    0% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }

    50% {
        transform: translateY(-2px) scale(1.05);
        filter: brightness(1.08);
    }

    100% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 0px rgba(255, 255, 255, 0.0);
    }

    50% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
    }

    100% {
        box-shadow: 0 0 0px rgba(255, 255, 255, 0.0);
    }
}

@keyframes neonFlicker {

    0%,
    19%,
    21%,
    23%,
    54%,
    56%,
    100% {
        filter: brightness(1);
    }

    20%,
    22%,
    55% {
        filter: brightness(1.3) saturate(1.2);
    }
}

body.personality-mode .shop-btn {
    animation: popPulse 3.2s ease-in-out infinite;
}

body.knowledge-mode .shop-btn {
    animation: glowPulse 2.8s ease-in-out infinite;
}

body.tv-mode .shop-btn {
    animation: neonFlicker 4.2s linear infinite;
}

/* Effect visuals */
.sparkle-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #ffd32a 60%, transparent 100%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: sparkleFade 0.8s ease-out forwards;
    z-index: 3000;
}

@keyframes sparkleFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fb7185;
    transform: translate(-50%, -50%);
    border-radius: 2px;
    pointer-events: none;
    animation: confettiFly 0.9s ease-out forwards;
    z-index: 3000;
}

@keyframes confettiFly {
    0% {
        opacity: 1;
        transform: translate(calc(-50% + 0px), calc(-50% + 0px)) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(260deg);
    }
}

.effect-glow-active .shop-btn {
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.25), 0 0 48px rgba(139, 92, 246, 0.25);
}

.theme-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

@keyframes waveSlide {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 200px 0, -200px 0;
    }
}

@keyframes candyStripesMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 140px 140px;
    }
}

@keyframes neonSweep {
    0% {
        opacity: .2;
        transform: translateX(-20%);
    }

    50% {
        opacity: .5;
        transform: translateX(10%);
    }

    100% {
        opacity: .2;
        transform: translateX(60%);
    }
}

@keyframes forestDust {
    0% {
        background-position: 0 0;
        opacity: .2;
    }

    100% {
        background-position: 0 -200px;
        opacity: .5;
    }
}

@keyframes galaxyDrift {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 300px 200px, -200px -150px;
    }
}

@keyframes emberRise {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 -240px;
    }
}

@keyframes sakuraFall {
    0% {
        background-position: 0 -80px;
    }

    100% {
        background-position: 0 240px;
    }
}

body.theme-ocean::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse at bottom, rgba(0, 144, 255, .12), transparent 60%),
        repeating-linear-gradient(0deg, rgba(0, 174, 255, .1) 0 2px, transparent 2px 6px);
    animation: waveSlide 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

body.theme-candy::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255, 182, 193, .18) 0 12px, rgba(255, 105, 180, .18) 12px 24px, rgba(255, 255, 255, .12) 24px 36px);
    animation: candyStripesMove 10s linear infinite;
    pointer-events: none;
    z-index: 0;
}

body.theme-neon::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(600px 80px at -10% 40%, rgba(0, 255, 255, .12), transparent 60%), radial-gradient(600px 80px at 110% 60%, rgba(255, 0, 255, .12), transparent 60%);
    animation: neonSweep 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body.theme-forest::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .06), transparent 30%), radial-gradient(circle at 80% 40%, rgba(255, 255, 255, .06), transparent 30%), radial-gradient(circle at 60% 80%, rgba(255, 255, 255, .06), transparent 30%);
    animation: forestDust 9s linear infinite;
    pointer-events: none;
    z-index: 0;
}

body.theme-galaxy::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(255, 255, 255, .8), transparent 40%),
        radial-gradient(1.5px 1.5px at 70% 30%, rgba(255, 255, 255, .6), transparent 40%),
        radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, .5), transparent 40%);
    animation: galaxyDrift 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

body.theme-phoenix::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(600px 200px at 50% 120%, rgba(253, 121, 168, .15), transparent 70%),
        repeating-linear-gradient(180deg, rgba(255, 120, 0, .12) 0 2px, transparent 2px 6px);
    animation: emberRise 7s linear infinite;
    pointer-events: none;
    z-index: 0;
}

body.theme-sakura::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(8px 6px at 20% 0%, rgba(255, 192, 203, .35), transparent 60%),
        radial-gradient(10px 7px at 60% -10%, rgba(255, 182, 193, .35), transparent 60%),
        radial-gradient(7px 5px at 90% -5%, rgba(255, 160, 180, .35), transparent 60%);
    animation: sakuraFall 12s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Shop moving effects layer */
.shop-view {
    position: relative;
    overflow: hidden;
}

.shop-effects-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.shop-grid {
    position: relative;
    z-index: 1;
}

/* Generic particles */
@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }

    100% {
        transform: translateY(-120px) scale(0.8);
        opacity: 0;
    }
}

@keyframes drift {
    0% {
        transform: translateX(-20%) rotate(0deg);
        opacity: 0.6;
    }

    100% {
        transform: translateX(120%) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fallSpin {
    0% {
        transform: translateY(-40px) rotate(0deg);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    100% {
        transform: translateY(140px) rotate(180deg);
        opacity: 0;
    }
}

@keyframes twinkle {

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

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

@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.fx-bubble,
.fx-stripe,
.fx-ribbon,
.fx-star,
.fx-particle,
.fx-crown {
    position: absolute;
}

.fx-bubble {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
    animation: floatUp 4s linear infinite;
}

.fx-stripe {
    width: 160px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
    animation: drift 5s linear infinite;
}

.fx-ribbon {
    width: 10px;
    height: 30px;
    border-radius: 6px;
    background: linear-gradient(180deg, #ff85c0, #ffd6e7);
    animation: fallSpin 3.6s ease-in infinite;
}

.fx-star {
    width: 8px;
    height: 8px;
    background: #ffd32a;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle 1.4s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 211, 42, 0.6));
}

.fx-particle {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #60a5fa;
    animation: floatUp 2.8s linear infinite;
}

.fx-crown::before {
    content: "ðŸ‘‘";
    font-size: 18px;
    display: block;
    animation: bob 1.6s ease-in-out infinite;
}

/* Specific Buttons - Clean Colors */
#login-btn {
    background: linear-gradient(135deg, #22d3ee, #a78bfa) !important;
    color: #0b1020 !important;
    border: none;
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.3);
}

#register-btn {
    background: linear-gradient(135deg, #f472b6, #fb7185) !important;
    color: #0b1020 !important;
    border: none;
    box-shadow: 0 10px 20px rgba(244, 114, 182, 0.3);
}

body.theme-neon #login-btn,
body.theme-sakura #login-btn {
    color: #ffffff !important;
}

#login-btn span,
#register-btn span {
    color: inherit !important;
}

#open-shop-btn {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e293b;
    border: none;
}

/* Music button icon visibility fix */
button#toggle-bgm.shop-btn .music-status-icon {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 1.1rem !important;
    display: inline !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
}

button#toggle-bgm.shop-btn {
    color: #0b1020 !important;
}

/* Theme Toggle */
.theme-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}


/* Top-left Controls (Home + Points) */
.top-left-controls {
    position: fixed;
    top: 20px;
    left: 140px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
}

.top-left-controls .pouch-display {
    position: static;
    top: auto;
    left: auto;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}


.home-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.home-inline:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}


.home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: transform 0.2s, filter 0.2s;
}

.home-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.pouch-display.no-points .coin {
    display: none;
}

.points-register {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f8fafc;
}

.pouch-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
}

.home-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Pouch */
.pouch-display {
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

/* --- SEARCH & FILTER --- */
.search-filter-container {
    width: 100%;
    max-width: 700px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#search-input {
    width: 100%;
    padding: 16px 24px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1.1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

#search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.mode-btn.active {
    background: var(--primary);
    color: var(--bg-color);
    border-color: transparent;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
    font-family: var(--font-heading);
}

.filter-btn.cat-btn.active {
    background: var(--secondary);
    color: var(--bg-color);
    border-color: transparent;
}

.filter-btn:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.filter-btn:active {
    background: var(--primary);
    color: var(--bg-color);
}

.review-filter-btn.active {
    background: var(--primary);
    color: var(--bg-color);
    border-color: transparent;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}



.visibility-bar {
    display: none;
    margin-top: 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.visibility-bar.active {
    display: flex;
}

.visibility-label {
    font-weight: 700;
    color: var(--text-muted);
}

.review-filter-bar {
    display: none;
    margin-top: 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.review-filter-bar.active {
    display: flex;
}

.review-label {
    font-weight: 700;
    color: var(--text-muted);
}

.visibility-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.visibility-btn.active {
    background: var(--secondary);
    color: var(--bg-color);
    border-color: transparent;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.3);
}

/* --- THEMED FORM ELEMENTS & UI BLENDING --- */
.editor-question, .auth-modal, .review-section, .editor-privacy, .editor-mode {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.editor-question:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.editor-q-text, .editor-a-text, .auth-modal-input, .editor-correct-select, #editor-title {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-m);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.2s;
}

.editor-q-text:focus, .editor-a-text:focus, .auth-modal-input:focus, #editor-title:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(var(--primary-rgb, 139, 92, 246), 0.2);
}

.review-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--card-border);
    padding: 8px 18px;
    border-radius: var(--radius-m);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
}

.review-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--text-color);
}

.review-filter-btn.active {
    background: var(--primary);
    color: var(--bg-color);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

/* Specific Theme Overrides for Form Elements */
body.theme-retro .editor-q-text, 
body.theme-retro .editor-a-text, 
body.theme-retro .auth-modal-input,
body.theme-retro .editor-question {
    background: #000 !important;
    border: 4px solid #00ff00 !important;
    border-radius: 0px !important;
    color: #00ff00 !important;
    text-transform: uppercase;
}

body.theme-candy .editor-q-text,
body.theme-candy .editor-a-text,
body.theme-candy .editor-question {
    border: 4px dashed #ff69b4 !important;
    background: #fff !important;
    color: #881337 !important;
    border-radius: 40px !important;
}

body.theme-neon .editor-q-text,
body.theme-neon .editor-question {
    border-color: #d946ef !important;
    box-shadow: 0 0 10px #d946ef, inset 0 0 5px #d946ef !important;
    text-shadow: 0 0 5px #d946ef;
}

.mode-label {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.mode-select {
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-color);
    font-weight: 800;
    font-size: 1.05rem;
    min-height: 46px;
    min-width: 200px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.18);
}

.privacy-label {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.privacy-options {
    display: inline-flex;
    gap: 12px;
}

.privacy-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.editor-questions {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.editor-question {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-m);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.editor-q-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.editor-q-header h3 {
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.editor-q-text {
    width: 100%;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.editor-answers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.editor-a-text {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
}

.editor-correct {
    display: flex;
    align-items: center;
    gap: 12px;
}

.editor-correct label {
    font-weight: 700;
    font-size: 1.05rem;
}

.editor-correct-select {
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
    min-height: 44px;
    min-width: 180px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* --- REVIEWS --- */
.review-section {
    margin-top: 24px;
    text-align: left;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-m);
    padding: 18px;
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-color);
}

.review-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.review-form {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.review-form textarea,
.review-form input {
    padding: 12px 14px;
    border-radius: var(--radius-s);
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.review-form textarea:focus,
.review-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.rating-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rating-option {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.rating-option:hover {
    border-color: var(--primary);
    color: var(--text-color);
    transform: translateY(-1px);
}

.rating-option.active {
    background: var(--primary);
    color: var(--bg-color);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.review-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.review-item {
    padding: 14px;
    border-radius: var(--radius-s);
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-color);
}

.review-item .review-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.review-empty {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    padding: 20px 0;
}

.review-submit-btn {
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: var(--bg-color);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    font-family: var(--font-body);
}

.review-submit-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* --- GRID & CARDS --- */
.quizz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    width: 100%;

    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-l);
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.quiz-card {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    /* Subtle slot */
    border-radius: var(--radius-m);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.quiz-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.quiz-icon {
    font-size: 3.5rem;
    transition: transform 0.3s;
}

.quiz-card:hover .quiz-icon {
    transform: scale(1.2);
}

.quiz-title-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.quiz-card:hover .quiz-title-overlay {
    transform: translateY(0);
}

.star-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
    z-index: 5;
}

.star-btn:hover,
.star-btn.active {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.delete-quiz-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.2s;
    z-index: 5;
}

.delete-quiz-btn:hover {
    background: var(--accent-red);
    color: #fff;
    transform: scale(1.05);
}

/* --- MODALS & SHOP --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.92));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 2000;
    /* Ensure on top of everything */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay.active .quiz-container {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.quiz-container {
    background: var(--card-bg);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-l);
    padding: 32px;
    width: 95%;
    max-width: 680px;
    margin: 20px auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(2, 6, 23, 0.6), 0 0 40px rgba(56, 189, 248, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    /* Allow content to be scrollable via parent modal-overlay */
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#quiz-content,
#modal-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

#quiz-content::-webkit-scrollbar,
#modal-content::-webkit-scrollbar {
    width: 6px;
}

#quiz-content::-webkit-scrollbar-thumb,
#modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.modal-home-btn {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s, transform 0.2s;
}

.modal-home-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-color);
    cursor: pointer;
    transition: 0.2s;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.close-btn:hover {
    background: var(--accent-red);
    color: white;
}

.google-auth-wrap {
    margin: 12px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.google-auth-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
}

.google-btn {
    width: 100%;
    display: flex;
    justify-content: center;
}

.google-auth-message {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fecaca;
    text-align: center;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 12px;
    border-radius: 999px;
}

.auth-modal {
    background: linear-gradient(145deg, #0f172a 0%, #1c2b4a 45%, #1a2340 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.55), 0 0 30px rgba(99, 102, 241, 0.2);
}

.auth-modal h2 {
    font-size: 2rem;
    letter-spacing: 0.02em;
    color: #f8fafc;
    text-shadow: 0 0 18px rgba(59, 130, 246, 0.35);
}

.auth-modal p {
    color: #c7d2fe !important;
    font-weight: 600;
}

.auth-modal input {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #f8fafc !important;
    font-weight: 700;
    box-shadow: inset 0 1px 8px rgba(15, 23, 42, 0.4) !important;
}

.auth-modal input::placeholder {
    color: #a5b4fc;
}

.auth-modal .google-auth-label {
    color: #e0f2fe;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.auth-modal .shop-btn {
    background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 55%, #f472b6 100%);
    color: #0b1020;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(34, 211, 238, 0.35);
    border: none;
}

.auth-modal .shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(167, 139, 250, 0.4);
}

.register-checks {
    display: grid;
    gap: 10px;
    margin: 6px 0 18px;
    text-align: left;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
}

.check-row input {
    accent-color: #22d3ee;
    margin-top: 3px;
}

.privacy-link {
    color: #7dd3fc;
    text-decoration: underline;
}

.privacy-link-row {
    margin-top: 2px;
}

.privacy-link:hover {
    color: #a78bfa;
}

.privacy-hint {
    font-size: 0.85rem;
    color: #fca5a5;
    font-weight: 600;
}

.privacy-read-banner {
    position: sticky;
    bottom: 16px;
    margin-top: 24px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #e2e8f0;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.4);
}

privacy-read-banner.read {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.6);
    color: #bbf7d0;
}

privacy-page header,
privacy-page .top-left-controls,
privacy-page .theme-btn,
privacy-page .pouch-display,
.privacy-page .search-filter-container {
    display: none !important;
}

.privacy-page #app {
    padding-top: 30px;
}

.privacy-page #app {
    align-items: stretch;
}

.privacy-page .legal-page-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px 80px;
}

.privacy-page .legal-content {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-l);
    padding: 32px;
    box-shadow: var(--shadow-md);
    color: var(--text-color);
    text-align: left;
    line-height: 1.7;
}

.privacy-page .legal-content h1,
.privacy-page .legal-content h2,
.privacy-page .legal-content h3 {
    text-align: left;
}

/* Shop Grid Improvements */
.shop-view {
    text-align: center;
}

.shop-view .result-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text-color);
    text-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}

.shop-view .subtitle {
    color: var(--text-muted);
    font-weight: 600;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.shop-item {
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.75));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-m);
    padding: 18px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.shop-item:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.4);
}

.shop-item-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.shop-item-name {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-color);
}

.shop-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
}

.buy-btn {
    margin-top: 12px;
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #22d3ee, #a78bfa);
    color: #0b1020;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.3);
}

.buy-btn.unlocked {
    background: linear-gradient(135deg, #34d399, #22d3ee);
    color: #062c22;
}

.buy-btn.disabled,
.buy-btn[aria-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* Shop Categories */
.shop-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

.category-tab.active {
    background: var(--primary);
    color: var(--bg-color);
    border-color: transparent;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

/* Item Description */
.shop-item-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 8px 0;
    min-height: 36px;
    line-height: 1.4;
}

/* Rarity Badges */
.rarity-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.rarity-badge.ethereal {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    color: #fff;
    box-shadow: 0 0 15px rgba(162, 155, 254, 0.5);
}

.rarity-badge.ultimate {
    background: linear-gradient(135deg, #ffd32a 0%, #f39c12 100%);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 211, 42, 0.6);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 211, 42, 0.6);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 211, 42, 0.9);
    }
}

/* Ethereal Items */
.shop-item.ethereal {
    border-color: rgba(162, 155, 254, 0.4);
    background: linear-gradient(155deg, rgba(108, 92, 231, 0.15), rgba(162, 155, 254, 0.1));
}

.shop-item.ethereal:hover {
    border-color: rgba(162, 155, 254, 0.7);
    box-shadow: 0 18px 30px rgba(108, 92, 231, 0.4), 0 0 20px rgba(162, 155, 254, 0.3);
}

/* Package Items */
.shop-item.package-item {
    grid-column: span 2;
    border: 2px solid rgba(255, 211, 42, 0.5);
    background: linear-gradient(155deg, rgba(255, 211, 42, 0.1), rgba(243, 156, 18, 0.05));
    position: relative;
}

.shop-item.package-item:hover {
    border-color: rgba(255, 211, 42, 0.8);
    box-shadow: 0 20px 40px rgba(255, 211, 42, 0.3), 0 0 30px rgba(243, 156, 18, 0.4);
}

.shop-item.package-item .shop-item-icon {
    font-size: 3rem;
}

.shop-item.package-item .shop-item-name {
    font-size: 1.4rem;
}

.shop-item.package-item .shop-item-desc {
    font-size: 1rem;
    min-height: auto;
}

.shop-item.package-item .shop-item-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: #ffd32a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shop-item.package-item {
        grid-column: span 1;
    }

    .shop-categories {
        gap: 6px;
    }

    .category-tab {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.editor-page-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-l);
    padding: 32px;
    margin: 40px auto;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 95%;
    max-width: 900px;
}

.editor-page .search-filter-container,
.editor-page .visibility-bar,
.editor-page .review-filter-bar {
    display: none !important;
}

.editor-page header {
    padding-bottom: 20px !important;
}

#modal-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /* CRITICAL: No horizontal scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}



.modal-home-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}

.modal-home-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* --- QUESTION VIEW --- */
#quiz-question-container {
    margin-bottom: 30px;
}
#quiz-reviews-container {
    border-top: 1px solid var(--card-border);
    padding-top: 20px;
}
.question-view {
    padding: 10px 0;
    transition: all 0.4s ease;
}

.question-fade-in {
    animation: quizFadeIn 0.5s forwards;
}

.question-fade-out {
    animation: quizFadeOut 0.4s forwards;
}

@keyframes quizFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes quizFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.question-text {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 15px 0 25px;
    color: #fff;
    line-height: 1.3;
}

.question-image {
    width: 100%;
    aspect-ratio: 12 / 7;
    min-height: 200px;
    max-height: 250px;
    object-fit: cover;
    border-radius: var(--radius-m);
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
}

.answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* High visibility buttons - theme-aware */
#quiz-content .answer-btn,
.quiz-container .answer-btn,
button.answer-btn {
    background: var(--card-bg) !important;
    border: 2px solid var(--card-border) !important;
    padding: 18px 24px !important;
    border-radius: var(--radius-m) !important;
    color: var(--text-color) !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    font-family: var(--font-body) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 8px !important;
}

#quiz-content .answer-btn:hover,
.quiz-container .answer-btn:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: var(--text-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
    transform: scale(1.05) !important;
}

#quiz-content .answer-btn.correct {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: #fff !important;
}

#quiz-content .answer-btn.wrong {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #fff !important;
}

#quiz-content .answer-btn:active {
    transform: scale(0.97) !important;
}

.progress-container {
    background: rgba(255, 255, 255, 0.1);
    height: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary), #a78bfa);
    height: 100%;
    border-radius: 5px;
    transition: width 0.4s ease;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* --- RESULT VIEW --- */
.result-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: resultPopIn 0.6s cubic-bezier(0.17, 0.67, 0.12, 1) forwards;
}

@keyframes resultPopIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

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

.result-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.result-media {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.result-badge {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.result-body {
    padding: 40px 30px 30px;
    text-align: center;
}

.result-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-desc {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.restart-btn {
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.5);
    filter: brightness(1.1);
}

/* Confetti Effect */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd700;
    top: -10px;
    opacity: 0;
    animation: confettiFall 3s linear infinite;
}

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

    100% {
        transform: translateY(400px) rotate(720deg);
        opacity: 0;
    }
}

/* --- FOOTER --- */
site-footer {
    width: 100%;
    margin-top: auto;
    /* Push to bottom */
    padding: 40px 0;
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    text-align: center;
}

footer-links {
    margin-bottom: 10px;
}

footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
    transition: 0.2s;
}

footer-links a:hover {
    color: var(--primary);
}

copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}



toast-notice {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.98);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 14px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 800;
    letter-spacing: 0.02em;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    text-align: center;
    max-width: 90vw;
}

toast-notice.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    header {
        padding: 20px;
    }

    .quizz-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px;
        gap: 10px;
    }

    .quiz-container {
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding-top: 60px;
    }

    .answers-grid {
        grid-template-columns: 1fr;
    }

    .editor-answers {
        grid-template-columns: 1fr;
    }

    .editor-privacy {
        flex-direction: column;
        align-items: flex-start;
    }

    .editor-mode {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-filter-bar {
        justify-content: flex-start;
    }

    .top-left-controls {
        top: 15px;
        left: 100px;
        gap: 8px;
    }

    .top-left-controls .pouch-display {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .home-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .home-link {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    .home-inline {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .pouch-display {
        top: 15px;
        left: 15px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .theme-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .header-actions {
        gap: 10px;
    }

    .nav-btn,
    .shop-btn {
        flex: 1;
        padding: 10px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* --- MUSIC SETTINGS MENU --- */
.music-menu-container {
    position: relative;
    display: inline-block;
}

.music-settings-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 280px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 15px;
    z-index: 10000;
    text-align: left;
    transform: translateY(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.music-settings-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.music-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
}

.music-menu-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.close-menu-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
}

.music-menu-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Volume Slider */
#music-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
}

#music-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    transition: transform 0.1s;
}

#music-volume::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Toggle Button */
.toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 10px;
    border-radius: var(--radius-s);
    color: var(--text-color);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.on {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Select Styling */
.setting-item select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 10px;
    border-radius: var(--radius-s);
    color: var(--text-color);
    outline: none;
    cursor: pointer;
}

.setting-item select option {
    background: var(--bg-color);
}

/* EFFECTS, BANNERS AND BADGES CSS ADDED BY ANTIGRAVITY */
@keyframes nebulaFlow {
    0% {
        background-position: 0% 50%;
    }

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

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

@keyframes liquidGold {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }

    50% {
        background-position: 100% 50%;
        filter: hue-rotate(5deg);
    }

    100% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
}

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

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

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

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

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

.banner-animated {
    background-size: 200% 200% !important;
}

.banner-nebula-active {
    animation: nebulaFlow 15s ease infinite;
}

.banner-liquid-active {
    animation: liquidGold 10s ease infinite;
}

.banner-aurora-active {
    animation: auroraBorealis 20s ease infinite;
}

.banner-gradient1-active,
.banner-rainbow-active,
.banner-waves-active,
.banner-forest-active,
.banner-starry-active,
.banner-neon-active,
.banner-golden-active {
    animation: nebulaFlow 8s ease infinite;
}


/* Badges CSS */
@keyframes badgeShine {
    0% {
        filter: brightness(1);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    }

    50% {
        filter: brightness(1.3);
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
        transform: scale(1.1);
    }

    100% {
        filter: brightness(1);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    }
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.badge-animated {
    display: inline-block;
}

.badge-halo-active {
    animation: badgeShine 3s infinite, badgeFloat 4s infinite ease-in-out;
}

.badge-infinity-active {
    animation: badgeShine 2s infinite, badgeFloat 3s infinite ease-in-out;
}

.badge-dizzy-active {
    animation: fallSpin 4s infinite linear;
}

.badge-sparkle-active {
    animation: twinkle 2s infinite ease-in-out;
}

/* Screen Effects Elements */
.global-effect-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.global-sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px #ffd32a, 0 0 20px #ffd32a;
    animation: sparkleFade 1s linear forwards;
    z-index: 10001;
    pointer-events: none;
}

.global-confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fb7185;
    animation: confettiFly 1.5s ease-out forwards;
    z-index: 10001;
    pointer-events: none;
}

.global-rainbow-trail {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: sparkleFade 0.6s linear forwards;
    z-index: 10001;
    pointer-events: none;
}

.sparkle-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 8px white;
    animation: sparkleFade 0.8s linear forwards;
    z-index: 10001;
    pointer-events: none;
}

.global-aurora-wave {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 120%;
    height: 60%;
    background: linear-gradient(0deg, rgba(116, 185, 255, 0.2), transparent);
    filter: blur(60px);
    animation: waveSlide 10s linear infinite alternate;
    opacity: 0.5;
}

body.effect-timewarp-active {
    animation: timeWarpBlur 6s ease-in-out infinite alternate;
}

body.effect-glow-active {
    box-shadow: inset 0 0 50px var(--primary);
    animation: bodyGlow 3s infinite alternate;
}

@keyframes bodyGlow {
    0% {
        box-shadow: inset 0 0 30px var(--primary);
    }

    100% {
        box-shadow: inset 0 0 80px var(--primary), 0 0 20px var(--primary);
    }
}

@keyframes timeWarpBlur {
    0% {
        filter: hue-rotate(0deg) blur(0px);
        perspective: 1000px;
    }

    100% {
        filter: hue-rotate(15deg) blur(1px);
        perspective: 800px;
        transform: scale(1.01);
    }
}

/* ============================================================
   DRASTIC THEME CUSTOMIZATIONS â€” Each theme is its own world
   ============================================================ */

/* â”€â”€ OCEAN DEPTHS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.theme-ocean {
    --bg-color: #00091a;
    --bg-gradient-1: #002244;
    --bg-gradient-2: #00091a;
    --card-bg: rgba(0, 30, 70, 0.82);
    --card-border: rgba(0, 200, 255, 0.25);
    --primary: #00c8ff;
    --secondary: #0ea5e9;
    --text-color: #cce8ff;
    --text-muted: #7ab8d8;
    --accent-gold: #00e5ff;
    --radius-l: 4px;
    --radius-m: 2px;
    --radius-s: 0px;
    --shadow-md: 0 0 20px rgba(0, 200, 255, 0.2);
    --shadow-lg: 0 0 50px rgba(0, 200, 255, 0.35);
    --font-heading: 'Verdana', 'Geneva', sans-serif;
    --font-body: 'Trebuchet MS', sans-serif;
    --title-gradient: linear-gradient(135deg, #00e5ff 0%, #0ea5e9 50%, #ffffff 100%);
    --title-glow: 0 0 18px rgba(0, 200, 255, 0.6);
    background: linear-gradient(180deg, #001529 0%, #00091a 100%);
}

body.theme-ocean #quiz-content .answer-btn,
body.theme-ocean .quiz-container .answer-btn {
    background: rgba(0, 50, 100, 0.8) !important;
    border-color: #00c8ff !important;
    color: #cce8ff !important;
}

body.theme-ocean #quiz-content .answer-btn:hover,
body.theme-ocean .quiz-container .answer-btn:hover {
    background: #00c8ff !important;
    color: #00091a !important;
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.6) !important;
}

/* â”€â”€ NEON NIGHT â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.theme-neon {
    --bg-color: #040007;
    --bg-gradient-1: #0d001a;
    --bg-gradient-2: #1a0033;
    --card-bg: rgba(10, 0, 20, 0.95);
    --card-border: #d946ef;
    --primary: #d946ef;
    --secondary: #06b6d4;
    --text-color: #f0e6ff;
    --text-muted: #b07acc;
    --radius-l: 0px;
    --radius-m: 0px;
    --radius-s: 0px;
    --shadow-md: 0 0 20px rgba(217, 70, 239, 0.5);
    --shadow-lg: 0 0 50px rgba(217, 70, 239, 0.7);
    --font-heading: 'Courier New', monospace;
    --font-body: 'Courier New', monospace;
    --title-gradient: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
    --title-glow: 0 0 30px rgba(217, 70, 239, 0.9);
    background: #040007;
    border: 2px solid #d946ef;
    box-shadow: inset 0 0 80px rgba(100, 0, 150, 0.4);
}

body.theme-neon header {
    border: 2px solid #d946ef;
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.5);
}

body.theme-neon .nav-btn,
body.theme-neon .shop-btn {
    border-color: #d946ef !important;
}

body.theme-neon #quiz-content .answer-btn,
body.theme-neon .quiz-container .answer-btn {
    background: rgba(20, 0, 30, 0.95) !important;
    border: 2px solid #d946ef !important;
    color: #f0e6ff !important;
    text-shadow: 0 0 8px rgba(217, 70, 239, 0.8) !important;
}

body.theme-neon #quiz-content .answer-btn:hover,
body.theme-neon .quiz-container .answer-btn:hover {
    background: #d946ef !important;
    color: #040007 !important;
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.8) !important;
}

/* â”€â”€ FOREST GREEN â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.theme-forest {
    --bg-color: #071a0e;
    --bg-gradient-1: #0d3320;
    --bg-gradient-2: #071a0e;
    --card-bg: rgba(10, 50, 25, 0.9);
    --card-border: rgba(34, 197, 94, 0.3);
    --primary: #4ade80;
    --secondary: #22c55e;
    --text-color: #d1fae5;
    --text-muted: #6ee7b7;
    --radius-l: 28px;
    --radius-m: 18px;
    --radius-s: 10px;
    --shadow-md: 0 8px 24px rgba(0, 80, 0, 0.5);
    --shadow-lg: 0 20px 50px rgba(0, 80, 0, 0.7);
    --font-heading: 'Georgia', 'Palatino Linotype', serif;
    --font-body: 'Georgia', serif;
    --title-gradient: linear-gradient(135deg, #d1fae5 0%, #4ade80 50%, #15803d 100%);
    --title-glow: 0 0 20px rgba(74, 222, 128, 0.5);
    background: linear-gradient(160deg, #0d3320 0%, #071a0e 100%);
}

body.theme-forest #quiz-content .answer-btn,
body.theme-forest .quiz-container .answer-btn {
    background: rgba(10, 50, 25, 0.9) !important;
    border-color: #4ade80 !important;
    color: #d1fae5 !important;
}

body.theme-forest #quiz-content .answer-btn:hover,
body.theme-forest .quiz-container .answer-btn:hover {
    background: #4ade80 !important;
    color: #071a0e !important;
}

/* â”€â”€ CANDY POP â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.theme-candy {
    --bg-color: #ffe4f0;
    --bg-gradient-1: #ffd6e8;
    --bg-gradient-2: #ffe4f0;
    --card-bg: rgba(255, 255, 255, 0.92);
    --card-border: #f472b6;
    --primary: #ec4899;
    --secondary: #f472b6;
    --text-color: #831337;
    --text-muted: #be185d;
    --accent-gold: #ffd32a;
    --radius-l: 60px;
    --radius-m: 30px;
    --radius-s: 15px;
    --shadow-md: 6px 6px 0px rgba(244, 114, 182, 0.5);
    --shadow-lg: 10px 10px 0px rgba(244, 114, 182, 0.5);
    --font-heading: 'Comic Sans MS', 'Chalkboard SE', cursive;
    --font-body: 'Comic Sans MS', cursive;
    --title-gradient: linear-gradient(135deg, #ff99cc, #ff66aa, #cc0066);
    --title-glow: 0 0 16px rgba(244, 114, 182, 0.6);
    background-color: #ffe4f0;
    background-image: radial-gradient(#f9a8d4 3px, transparent 3px), radial-gradient(#fbcfe8 3px, transparent 3px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

body.theme-candy header {
    box-shadow: 8px 8px 0px rgba(244, 114, 182, 0.4);
}

body.theme-candy #quiz-content .answer-btn,
body.theme-candy .quiz-container .answer-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 3px solid #f472b6 !important;
    color: #831337 !important;
    box-shadow: 4px 4px 0px rgba(244, 114, 182, 0.4) !important;
}

body.theme-candy #quiz-content .answer-btn:hover,
body.theme-candy .quiz-container .answer-btn:hover {
    background: #ec4899 !important;
    color: #fff !important;
    box-shadow: 6px 6px 0px rgba(244, 114, 182, 0.6) !important;
    transform: translate(-2px, -2px) !important;
}

/* â”€â”€ SAKURA PETALS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.theme-sakura {
    --bg-color: #fdf0f8;
    --bg-gradient-1: #fce4f1;
    --bg-gradient-2: #fdf0f8;
    --card-bg: rgba(255, 240, 248, 0.93);
    --card-border: rgba(244, 114, 182, 0.4);
    --primary: #db2777;
    --secondary: #f472b6;
    --text-color: #6b1246;
    --text-muted: #9d215a;
    --radius-l: 40px;
    --radius-m: 20px;
    --radius-s: 8px;
    --shadow-md: 0 8px 20px rgba(219, 39, 119, 0.15);
    --font-heading: 'Georgia', serif;
    --font-body: 'Nunito', sans-serif;
    --title-gradient: linear-gradient(135deg, #6b1246 0%, #db2777 50%, #f9a8d4 100%);
    --title-glow: 0 0 14px rgba(219, 39, 119, 0.4);
    background: linear-gradient(160deg, #fce4f1 0%, #fdf0f8 100%);
}

body.theme-sakura #quiz-content .answer-btn,
body.theme-sakura .quiz-container .answer-btn {
    background: rgba(255, 240, 248, 0.9) !important;
    border-color: #f472b6 !important;
    color: #6b1246 !important;
}

body.theme-sakura #quiz-content .answer-btn:hover,
body.theme-sakura .quiz-container .answer-btn:hover {
    background: #db2777 !important;
    color: #fff !important;
}

/* â”€â”€ SUNSET VIBES â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.theme-sunset {
    --bg-color: #1a0500;
    --bg-gradient-1: #5c1a00;
    --bg-gradient-2: #1a0500;
    --card-bg: rgba(40, 12, 0, 0.9);
    --card-border: rgba(251, 146, 60, 0.4);
    --primary: #fb923c;
    --secondary: #f97316;
    --text-color: #fed7aa;
    --text-muted: #fb923c;
    --radius-l: 6px;
    --radius-m: 4px;
    --radius-s: 2px;
    --shadow-md: 0 8px 24px rgba(245, 100, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(245, 100, 0, 0.5);
    --font-heading: 'Impact', 'Arial Black', sans-serif;
    --font-body: 'Trebuchet MS', sans-serif;
    --title-gradient: linear-gradient(135deg, #fef08a 0%, #fb923c 50%, #dc2626 100%);
    --title-glow: 0 0 24px rgba(251, 146, 60, 0.7);
    background: linear-gradient(to bottom, #5c1a00 0%, #1a0500 100%);
}

body.theme-sunset #quiz-content .answer-btn,
body.theme-sunset .quiz-container .answer-btn {
    background: rgba(40, 12, 0, 0.9) !important;
    border-color: #fb923c !important;
    color: #fed7aa !important;
}

body.theme-sunset #quiz-content .answer-btn:hover,
body.theme-sunset .quiz-container .answer-btn:hover {
    background: #fb923c !important;
    color: #1a0500 !important;
}

/* â”€â”€ MIDNIGHT PURPLE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.theme-midnight {
    --bg-color: #0a0820;
    --bg-gradient-1: #1a1650;
    --bg-gradient-2: #0a0820;
    --card-bg: rgba(15, 12, 50, 0.95);
    --card-border: rgba(129, 140, 248, 0.3);
    --primary: #818cf8;
    --secondary: #a5b4fc;
    --text-color: #e0e7ff;
    --text-muted: #818cf8;
    --radius-l: 20px;
    --radius-m: 12px;
    --radius-s: 6px;
    --shadow-md: 0 8px 30px rgba(99, 102, 241, 0.3);
    --shadow-lg: 0 20px 60px rgba(99, 102, 241, 0.5);
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --title-gradient: linear-gradient(135deg, #ffffff 0%, #a5b4fc 45%, #818cf8 100%);
    --title-glow: 0 0 20px rgba(129, 140, 248, 0.6);
    background: linear-gradient(180deg, #1a1650 0%, #0a0820 100%);
}

body.theme-midnight #quiz-content .answer-btn,
body.theme-midnight .quiz-container .answer-btn {
    background: rgba(15, 12, 50, 0.95) !important;
    border-color: #818cf8 !important;
    color: #e0e7ff !important;
}

body.theme-midnight #quiz-content .answer-btn:hover,
body.theme-midnight .quiz-container .answer-btn:hover {
    background: #818cf8 !important;
    color: #0a0820 !important;
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.6) !important;
}

/* â”€â”€ PASTEL DREAM â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.theme-pastel {
    --bg-color: #f0e8ff;
    --bg-gradient-1: #e8d8ff;
    --bg-gradient-2: #d8f0ff;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(196, 181, 253, 0.5);
    --primary: #a78bfa;
    --secondary: #7dd3fc;
    --text-color: #4c1d95;
    --text-muted: #7c3aed;
    --radius-l: 32px;
    --radius-m: 20px;
    --radius-s: 12px;
    --shadow-md: 0 8px 20px rgba(167, 139, 250, 0.2);
    --shadow-lg: 0 20px 40px rgba(167, 139, 250, 0.3);
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --title-gradient: linear-gradient(135deg, #7c3aed 0%, #a78bfa 50%, #7dd3fc 100%);
    --title-glow: 0 0 12px rgba(167, 139, 250, 0.4);
    background: linear-gradient(135deg, #f0e8ff 0%, #e8d8ff 50%, #d8f0ff 100%);
}

body.theme-pastel #quiz-content .answer-btn,
body.theme-pastel .quiz-container .answer-btn {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: #a78bfa !important;
    color: #4c1d95 !important;
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.2) !important;
}

body.theme-pastel #quiz-content .answer-btn:hover,
body.theme-pastel .quiz-container .answer-btn:hover {
    background: #a78bfa !important;
    color: #fff !important;
}

/* â”€â”€ RETRO 8-BIT â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.theme-retro {
    --bg-color: #000000;
    --bg-gradient-1: #0a0a0a;
    --bg-gradient-2: #000000;
    --card-bg: #0a0a0a;
    --card-border: #00ff00;
    --primary: #00ff00;
    --secondary: #ff00ff;
    --text-color: #00ff00;
    --text-muted: #00aa00;
    --accent-gold: #ffff00;
    --radius-l: 0px;
    --radius-m: 0px;
    --radius-s: 0px;
    --shadow-sm: 4px 4px 0px #00aa00;
    --shadow-md: 8px 8px 0px #00aa00;
    --shadow-lg: 12px 12px 0px #00aa00;
    --font-heading: 'Courier New', 'Lucida Console', monospace;
    --font-body: 'Courier New', monospace;
    --title-gradient: linear-gradient(90deg, #00ff00, #00ffaa, #00ff00);
    --title-glow: 0 0 12px rgba(0, 255, 0, 0.8);
    background-color: #000;
    background-image:
        linear-gradient(0deg, rgba(0, 255, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.05) 1px, transparent 1px);
    background-size: 8px 8px;
    border: 4px solid #00ff00;
    image-rendering: pixelated;
}

body.theme-retro header {
    border: 4px solid #00ff00;
    box-shadow: 8px 8px 0px #00aa00;
}

body.theme-retro #quiz-content .answer-btn,
body.theme-retro .quiz-container .answer-btn {
    background: #000 !important;
    border: 3px solid #00ff00 !important;
    color: #00ff00 !important;
    font-family: 'Courier New', monospace !important;
    box-shadow: 4px 4px 0px #00aa00 !important;
}

body.theme-retro #quiz-content .answer-btn:hover,
body.theme-retro .quiz-container .answer-btn:hover {
    background: #00ff00 !important;
    color: #000 !important;
    box-shadow: 6px 6px 0px #005500 !important;
    transform: translate(-2px, -2px) !important;
}

/* â”€â”€ CYBERPUNK â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.theme-cyber {
    --bg-color: #02020a;
    --bg-gradient-1: #080818;
    --bg-gradient-2: #02020a;
    --card-bg: rgba(5, 5, 20, 0.97);
    --card-border: #00d2d3;
    --primary: #00d2d3;
    --secondary: #ff9ff3;
    --text-color: #e0ffff;
    --text-muted: #00a8a9;
    --radius-l: 2px;
    --radius-m: 2px;
    --radius-s: 0px;
    --shadow-md: 0 0 20px #00d2d3;
    --shadow-lg: 0 0 50px #00d2d3;
    --font-heading: 'Arial Black', 'Impact', sans-serif;
    --font-body: 'Arial', sans-serif;
    --title-gradient: linear-gradient(90deg, #00d2d3, #ff9ff3, #00d2d3);
    --title-glow: 0 0 30px rgba(0, 210, 211, 0.9);
    background:
        linear-gradient(90deg, rgba(0, 210, 211, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(0, 210, 211, 0.07) 1px, transparent 1px);
    background-size: 35px 35px;
    background-color: #02020a;
    border-left: 8px solid #ff9ff3;
    border-right: 8px solid #00d2d3;
}

body.theme-cyber header {
    border-color: #00d2d3;
    box-shadow: 0 0 40px rgba(0, 210, 211, 0.5);
}

body.theme-cyber #quiz-content .answer-btn,
body.theme-cyber .quiz-container .answer-btn {
    background: rgba(5, 5, 20, 0.97) !important;
    border: 2px solid #00d2d3 !important;
    color: #00d2d3 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

body.theme-cyber #quiz-content .answer-btn:hover,
body.theme-cyber .quiz-container .answer-btn:hover {
    background: #00d2d3 !important;
    color: #02020a !important;
    box-shadow: 0 0 30px rgba(0, 210, 211, 0.8) !important;
}

/* â”€â”€ VOLCANIC â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.theme-volcanic {
    --bg-color: #1a0000;
    --bg-gradient-1: #3d0000;
    --bg-gradient-2: #1a0000;
    --card-bg: rgba(30, 5, 5, 0.95);
    --card-border: rgba(239, 68, 68, 0.5);
    --primary: #f87171;
    --secondary: #ef4444;
    --text-color: #ffe5e5;
    --text-muted: #f87171;
    --radius-l: 4px;
    --radius-m: 2px;
    --radius-s: 0px;
    --shadow-md: 0 8px 24px rgba(200, 0, 0, 0.5);
    --shadow-lg: 0 0 60px rgba(239, 68, 68, 0.5);
    --font-heading: 'Impact', 'Arial Black', sans-serif;
    --font-body: 'Trebuchet MS', sans-serif;
    --title-gradient: linear-gradient(135deg, #fef2f2 0%, #f87171 50%, #dc2626 100%);
    --title-glow: 0 0 30px rgba(239, 68, 68, 0.8);
    background: radial-gradient(ellipse at bottom, #3d0000 0%, #1a0000 70%);
    animation: volcanic-pulse 4s infinite alternate;
}

@keyframes volcanic-pulse {
    0% {
        box-shadow: inset 0 -50px 80px rgba(200, 0, 0, 0.25);
    }

    100% {
        box-shadow: inset 0 -80px 120px rgba(200, 0, 0, 0.5);
    }
}

body.theme-volcanic header {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

body.theme-volcanic #quiz-content .answer-btn,
body.theme-volcanic .quiz-container .answer-btn {
    background: rgba(30, 5, 5, 0.95) !important;
    border-color: #f87171 !important;
    color: #ffe5e5 !important;
}

body.theme-volcanic #quiz-content .answer-btn:hover,
body.theme-volcanic .quiz-container .answer-btn:hover {
    background: #f87171 !important;
    color: #1a0000 !important;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.7) !important;
}

/* â”€â”€ ARCTIC FROST â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.theme-arctic {
    --bg-color: #f0f8ff;
    --bg-gradient-1: #dbeeff;
    --bg-gradient-2: #f0f8ff;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(147, 197, 253, 0.6);
    --primary: #2563eb;
    --secondary: #60a5fa;
    --text-color: #0f2455;
    --text-muted: #3b82f6;
    --radius-l: 20px;
    --radius-m: 12px;
    --radius-s: 6px;
    --shadow-md: 0 8px 20px rgba(59, 130, 246, 0.15);
    --shadow-lg: 0 20px 50px rgba(59, 130, 246, 0.25);
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --title-gradient: linear-gradient(135deg, #0f2455 0%, #2563eb 50%, #93c5fd 100%);
    --title-glow: 0 0 14px rgba(59, 130, 246, 0.4);
    background: linear-gradient(180deg, #dbeeff 0%, #f0f8ff 100%);
    backdrop-filter: blur(20px);
}

body.theme-arctic #quiz-content .answer-btn,
body.theme-arctic .quiz-container .answer-btn {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: #60a5fa !important;
    color: #0f2455 !important;
    backdrop-filter: blur(10px) !important;
}

body.theme-arctic #quiz-content .answer-btn:hover,
body.theme-arctic .quiz-container .answer-btn:hover {
    background: #2563eb !important;
    color: #fff !important;
}

/* â”€â”€ GOLDEN LUXURY â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.theme-gold {
    --bg-color: #0e0b00;
    --bg-gradient-1: #1c1600;
    --bg-gradient-2: #0e0b00;
    --card-bg: rgba(20, 15, 0, 0.98);
    --card-border: #c9991f;
    --primary: #f0c040;
    --secondary: #e5a100;
    --text-color: #fff8dc;
    --text-muted: #c9a020;
    --radius-l: 4px;
    --radius-m: 2px;
    --radius-s: 0px;
    --shadow-md: 0 8px 26px rgba(200, 150, 0, 0.3);
    --shadow-lg: 0 0 60px rgba(200, 150, 0, 0.4);
    --font-heading: 'Times New Roman', 'Georgia', serif;
    --font-body: 'Georgia', serif;
    --title-gradient: linear-gradient(135deg, #f0c040 0%, #fff8dc 50%, #c9991f 100%);
    --title-glow: 0 0 20px rgba(200, 160, 0, 0.8);
    background: radial-gradient(ellipse at center, #1c1200 0%, #0e0b00 80%);
    border: 6px double #c9991f;
}

body.theme-gold header {
    border: 1px solid #c9991f;
    box-shadow: 0 0 40px rgba(200, 150, 0, 0.3);
}

body.theme-gold #quiz-content .answer-btn,
body.theme-gold .quiz-container .answer-btn {
    background: rgba(20, 15, 0, 0.98) !important;
    border: 1px solid #c9991f !important;
    color: #fff8dc !important;
}

body.theme-gold #quiz-content .answer-btn:hover,
body.theme-gold .quiz-container .answer-btn:hover {
    background: #f0c040 !important;
    color: #0e0b00 !important;
    box-shadow: 0 0 30px rgba(200, 160, 0, 0.7) !important;
}

/* â”€â”€ GALAXY â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.theme-galaxy {
    --bg-color: #040510;
    --bg-gradient-1: #0d0f28;
    --bg-gradient-2: #040510;
    --card-bg: rgba(8, 10, 30, 0.92);
    --card-border: rgba(139, 92, 246, 0.4);
    --primary: #a78bfa;
    --secondary: #c4b5fd;
    --text-color: #ede9fe;
    --text-muted: #a78bfa;
    --radius-l: 32px;
    --radius-m: 20px;
    --radius-s: 10px;
    --shadow-md: 0 8px 30px rgba(139, 92, 246, 0.3);
    --shadow-lg: 0 0 60px rgba(139, 92, 246, 0.5);
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --title-gradient: linear-gradient(135deg, #e9d5ff 0%, #a78bfa 50%, #6d28d9 100%);
    --title-glow: 0 0 25px rgba(167, 139, 250, 0.7);
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .25) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(rgba(120, 92, 246, .3) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px, 180px 180px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 180px;
    background-color: #040510;
    animation: star-move 100s linear infinite;
}

@keyframes star-move {
    from {
        background-position: 0 0, 40px 60px, 130px 270px, 70px 180px;
    }

    to {
        background-position: 550px 550px, 390px 410px, 680px 820px, 350px 450px;
    }
}

body.theme-galaxy #quiz-content .answer-btn,
body.theme-galaxy .quiz-container .answer-btn {
    background: rgba(8, 10, 30, 0.92) !important;
    border-color: #a78bfa !important;
    color: #ede9fe !important;
}

body.theme-galaxy #quiz-content .answer-btn:hover,
body.theme-galaxy .quiz-container .answer-btn:hover {
    background: #a78bfa !important;
    color: #040510 !important;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.7) !important;
}

/* â”€â”€ CELESTIAL AURORA â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.theme-celestial {
    --bg-color: #0a0a1a;
    --bg-gradient-1: #1a0a2e;
    --card-bg: rgba(10, 10, 30, 0.75);
    --card-border: rgba(255, 255, 255, 0.3);
    --primary: #a78bfa;
    --secondary: #38bdf8;
    --text-color: #f8f8ff;
    --text-muted: #c4b5fd;
    --radius-l: 40px;
    --radius-m: 24px;
    --radius-s: 12px;
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(167, 139, 250, 0.4);
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --title-gradient: linear-gradient(135deg, #fff 0%, #c4b5fd 40%, #38bdf8 80%, #fff 100%);
    --title-glow: 0 0 30px rgba(167, 139, 250, 0.8);
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient-bg 15s ease infinite;
}

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

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

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

body.theme-celestial #quiz-content .answer-btn,
body.theme-celestial .quiz-container .answer-btn {
    background: rgba(10, 10, 30, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #f8f8ff !important;
    backdrop-filter: blur(8px) !important;
}

body.theme-celestial #quiz-content .answer-btn:hover,
body.theme-celestial .quiz-container .answer-btn:hover {
    background: rgba(167, 139, 250, 0.7) !important;
    color: #fff !important;
}

/* â”€â”€ VOID DIMENSION â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.theme-void {
    --bg-color: #000000;
    --bg-gradient-1: #050505;
    --card-bg: rgba(5, 5, 5, 0.97);
    --card-border: #2a2a2a;
    --primary: #e5e5e5;
    --secondary: #6b6b6b;
    --text-color: #d4d4d4;
    --text-muted: #6b6b6b;
    --radius-l: 0;
    --radius-m: 0;
    --radius-s: 0;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --font-heading: 'Courier New', monospace;
    --font-body: 'Courier New', monospace;
    --title-gradient: linear-gradient(90deg, #e5e5e5, #6b6b6b, #e5e5e5);
    --title-glow: none;
    background-color: #000;
    filter: contrast(1.4) grayscale(100%);
    border: 1px solid #2a2a2a;
}

body.theme-void #quiz-content .answer-btn,
body.theme-void .quiz-container .answer-btn {
    background: #0a0a0a !important;
    border: 1px solid #2a2a2a !important;
    color: #d4d4d4 !important;
}

body.theme-void #quiz-content .answer-btn:hover,
body.theme-void .quiz-container .answer-btn:hover {
    background: #e5e5e5 !important;
    color: #000 !important;
}

/* â”€â”€ PHOENIX RISING â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.theme-phoenix {
    --bg-color: #150500;
    --bg-gradient-1: #331000;
    --bg-gradient-2: #150500;
    --card-bg: rgba(25, 8, 0, 0.92);
    --card-border: rgba(255, 100, 0, 0.4);
    --primary: #ff6500;
    --secondary: #ff9500;
    --text-color: #ffe8d0;
    --text-muted: #ff9500;
    --radius-l: 12px;
    --radius-m: 8px;
    --radius-s: 4px;
    --shadow-md: 0 8px 30px rgba(255, 80, 0, 0.4);
    --shadow-lg: 0 0 80px rgba(255, 69, 0, 0.6);
    --font-heading: 'Quicksand', 'Impact', sans-serif;
    --font-body: 'Trebuchet MS', sans-serif;
    --title-gradient: linear-gradient(135deg, #ffd700 0%, #ff6500 50%, #ff0000 100%);
    --title-glow: 0 0 30px rgba(255, 100, 0, 0.9);
    background: linear-gradient(to bottom, #331000 0%, #150500 100%);
    animation: fire-pulse 4s infinite alternate;
}

@keyframes fire-pulse {
    0% {
        box-shadow: inset 0 0 60px rgba(255, 69, 0, 0.3);
    }

    100% {
        box-shadow: inset 0 0 150px rgba(255, 0, 0, 0.5);
    }
}

body.theme-phoenix header {
    border-color: rgba(255, 100, 0, 0.5);
    box-shadow: 0 0 40px rgba(255, 69, 0, 0.4);
}

body.theme-phoenix #quiz-content .answer-btn,
body.theme-phoenix .quiz-container .answer-btn {
    background: rgba(25, 8, 0, 0.92) !important;
    border-color: #ff6500 !important;
    color: #ffe8d0 !important;
}

body.theme-phoenix #quiz-content .answer-btn:hover,
body.theme-phoenix .quiz-container .answer-btn:hover {
    background: #ff6500 !important;
    color: #150500 !important;
    box-shadow: 0 0 30px rgba(255, 101, 0, 0.8) !important;
}

/* Hide newsletter plugin bars and overlays */
.newsletter-plugin,
.newsletter-overlay,
.newsletter-popup,
.newsletter-bar,
.newsletter-widget,
[class*="newsletter"],
[id*="newsletter"],
.wpcs Newsletter,
.newsletter-subscription,
.newsletter-form {
    display: none !important;
}

/* Hide any potential newsletter modals */
.modal[class*="newsletter"],
.popup[class*="newsletter"],
.overlay[class*="newsletter"] {
    display: none !important;
}

/* Hide specific newsletter plugin containers */
div[style*="position: fixed"][style*="bottom: 0"],
div[style*="position: fixed"][style*="z-index: 9999"] {
    display: none !important;
}

/* Additional hiding for common newsletter plugin selectors */
.simpay-subscription-form,
.tnp-subscription-form,
.mailpoet-subscription-form,
.bloom-subscription-form {
    display: none !important;
}

/* ============================================================
   ENHANCED FOOTER
   ============================================================ */
.site-footer {
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-top: 60px;
    padding: 48px 24px 0;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Brand column */
.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.footer-tagline {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
}

/* Headings */
.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* Link lists */
.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.2s, color 0.2s;
}

.footer-links-list a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding: 20px 0;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-bottom .copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ============================================================
   AUTH MODAL FORM STYLES (replaces inline styles)
   ============================================================ */
.auth-modal-input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-modal-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.auth-modal-input::placeholder {
    color: var(--text-muted);
}

body.light-theme .auth-modal-input {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
}

/* ============================================================
   IMPROVED MODAL LAYOUT
   ============================================================ */
.auth-modal h2 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.register-checks {
    margin-bottom: 16px;
    text-align: left;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

.privacy-link-row {
    margin-top: 8px;
}

.privacy-link {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

.privacy-hint {
    font-size: 0.8rem;
    color: var(--accent-gold);
    margin-top: 6px;
    opacity: 0.85;
}

.google-auth-wrap {
    margin: 16px 0;
    padding: 14px;
    border-radius: var(--radius-m);
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
}

.google-auth-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Password field wrapper */
.password-field {
    position: relative;
    margin-bottom: 20px;
}

.password-field input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.password-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.pw-toggle:hover {
    color: var(--text-color);
}

/* ============================================================
   QUESTION IMAGE STYLES
   ============================================================ */
.question-image-wrapper {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
    margin-bottom: -30px;
    background: #000;
}

.question-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    filter: brightness(0.85) contrast(1.1);
    transition: transform 10s linear;
}

.question-view:hover .question-image {
    transform: scale(1.05); /* Very subtle Ken Burns effect */
}

.question-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.4) 60%, var(--bg-color) 100%),
                radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

/* Adjust the question view so it layers nicely over the image */
.question-view {
    position: relative;
    z-index: 2;
    padding: 0 24px 24px;
}

@media (max-width: 600px) {
    .question-image-wrapper {
        height: 220px;
    }
}

/* --- SHOP EFFECTS LAYER AND ICONS --- */
.shop-effects-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

[class^="fx-"] {
    position: absolute;
    display: inline-block;
    opacity: 0;
    pointer-events: none;
    animation: floatUpEffect 6s ease-in infinite;
}

.fx-stripe {
    width: 4px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    border-radius: 2px;
}
.fx-ribbon {
    width: 10px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}
.fx-star::before { content: '⭐'; font-size: 20px; }
.fx-particle {
    width: 6px;
    height: 6px;
    background: #fff;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--primary);
    border-radius: 50%;
}
.fx-crown::before { content: '👑'; font-size: 24px; filter: drop-shadow(0 0 5px gold); }
.fx-bubble {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes floatUpEffect {
    0% { transform: translateY(100px) rotate(0deg) scale(0.5); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-200px) rotate(180deg) scale(1.2); opacity: 0; }
}

/* --- ACTIVE GLOBAL EFFECTS --- */
.effect-glow-active {
    box-shadow: inset 0 0 50px rgba(255, 215, 0, 0.4), inset 0 0 100px rgba(139, 92, 246, 0.4);
    animation: bodyGlowPulse 4s infinite alternate;
}
@keyframes bodyGlowPulse {
    0% { box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.3), inset 0 0 60px rgba(139, 92, 246, 0.3); }
    100% { box-shadow: inset 0 0 80px rgba(255, 215, 0, 0.6), inset 0 0 150px rgba(139, 92, 246, 0.6); }
}

.effect-timewarp-active {
    animation: warpEffect 10s linear infinite;
}
@keyframes warpEffect {
    0% { filter: hue-rotate(0deg) contrast(1.1); transform: perspective(1000px) rotateX(1deg); }
    50% { filter: hue-rotate(180deg) contrast(1.2); transform: perspective(1000px) rotateX(-1deg); }
    100% { filter: hue-rotate(360deg) contrast(1.1); transform: perspective(1000px) rotateX(1deg); }
}

.global-effect-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.global-aurora-wave {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(116,185,255,0.2) 0%, transparent 60%),
                radial-gradient(ellipse at bottom, rgba(162,155,254,0.3) 0%, transparent 50%);
    opacity: 0.6;
    mix-blend-mode: screen;
    animation: auroraWaveMotion 15s infinite alternate ease-in-out;
}
@keyframes auroraWaveMotion {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(10%, 10%) scale(1.1) rotate(5deg); }
}

.global-sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #fff 0%, #ffd700 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: sparkleTail 0.8s forwards;
    z-index: 10000;
}
@keyframes sparkleTail {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
    100% { opacity: 0; transform: translate(-50%, -150%) scale(0); }
}

.global-rainbow-trail {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: rainbowFade 0.6s forwards;
    z-index: 10000;
    box-shadow: 0 0 10px currentColor;
}
@keyframes rainbowFade {
    0% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
}

.global-confetti {
    position: absolute;
    width: 10px;
    height: 20px;
    pointer-events: none;
    z-index: 10000;
}

.fx-snow {
    position: absolute;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.8;
    box-shadow: 0 0 5px rgba(255,255,255,0.8);
    animation: snowFall linear infinite;
}
@keyframes snowFall {
    0% { transform: translateY(-10px) translateX(0px); opacity: 1; }
    100% { transform: translateY(100vh) translateX(20px); opacity: 0; }
}

.fx-matrix-char {
    position: absolute;
    color: #0f0;
    font-family: monospace;
    font-size: 20px;
    font-weight: bold;
    pointer-events: none;
    opacity: 0.8;
    text-shadow: 0 0 5px #0f0;
    animation: matrixFall linear infinite;
}
@keyframes matrixFall {
    0% { transform: translateY(-10px); opacity: 1; filter: hue-rotate(0deg); }
    100% { transform: translateY(100vh); opacity: 0; filter: hue-rotate(90deg); }
}

/* --- THEME-SPECIFIC DYNAMIC CURSORS --- */
body.theme-retro { cursor: url('https://cur.cursors-4u.net/games/gam-11/gam1090.cur'), auto; }
body.theme-cyber { cursor: crosshair; }
body.theme-celestial { cursor: url('https://cur.cursors-4u.net/others/oth-8/oth726.cur'), auto; }
body.theme-ocean { cursor: url('https://cur.cursors-4u.net/nature/nat-10/nat976.cur'), auto; }
body.theme-candy { cursor: url('https://cur.cursors-4u.net/food/foo-1/foo6.cur'), auto; }
body.theme-volcanic { cursor: url('https://cur.cursors-4u.net/others/oth-9/oth855.cur'), auto; }
body.theme-gold { cursor: url('https://cur.cursors-4u.net/others/oth-9/oth807.cur'), auto; }

/* Ensure buttons and links also use the theme cursors or specific pointers */
body.theme-retro button, body.theme-retro a { cursor: pointer; }
body.theme-cyber button, body.theme-cyber a { cursor: crosshair; }

/* Result Badges Collection View */
.badge-collect-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #451a03;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-m);
    font-weight: 800;
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #b45309;
}

.badge-collect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #b45309;
}

.badge-collect-btn:active {
    transform: translateY(2px);
    box-shadow: none;
}

.badge-collect-btn.collected {
    background: #e2e8f0;
    color: #64748b;
    box-shadow: none;
    cursor: default;
    pointer-events: none;
}

/* Points Floating Animation */
.points-float-anim {
    position: fixed;
    color: var(--primary);
    font-weight: 900;
    font-size: 1.4rem;
    pointer-events: none;
    z-index: 10001;
    animation: float-up-fade 1s ease-out forwards;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-family: var(--font-heading);
}

@keyframes float-up-fade {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    20% { transform: translateY(-10px) scale(1.2); opacity: 1; }
    100% { transform: translateY(-50px) scale(1); opacity: 0; }
}
