/* Fat Smile GAMES - Custom Styles */

/* Neon text glow */
.neon-text {
    text-shadow:
        0 0 10px rgba(124, 58, 237, 0.5),
        0 0 20px rgba(124, 58, 237, 0.3),
        0 0 40px rgba(124, 58, 237, 0.1);
}

/* Neon box glow */
.neon-box {
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

.neon-box-hover:hover {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.3);
}

/* CTA glow on hover */
.cta-glow:hover {
    box-shadow: 0 0 30px rgba(244, 63, 94, 0.4);
}

/* Keep text content above roaming mascots */
main,
footer {
    position: relative;
    z-index: 10;
}

/* Full-page mascot stage (background layer) */
.mascot-stage {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
    opacity: 0.84;
}

.mascot {
    position: absolute;
    width: clamp(90px, 11vw, 160px);
    height: clamp(90px, 11vw, 160px);
    will-change: transform, opacity;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.mascot::before {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 4%;
    height: 18%;
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

.mascot-sprite {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}

.mascot-sprite-sheet {
    background-repeat: no-repeat;
    background-position: 0% 0%;
}

/* Lower visual weight for readability and low-perf mode */
.mascot-stage.is-low-perf {
    opacity: 0.72;
}

.mascot-stage.is-low-perf .mascot {
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.15));
}

.mascot-stage.is-reduced-motion {
    opacity: 0.65;
}

@media (max-width: 768px) {
    .mascot {
        width: clamp(64px, 18vw, 112px);
        height: clamp(64px, 18vw, 112px);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0F0F23;
}

::-webkit-scrollbar-thumb {
    background: #2D2D44;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7C3AED;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #7C3AED;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
