/* ==========================================================================
   Zomie Games - Hyper Casual & Puzzle Studio Stylesheet
   Energetic, Colorful, Juicy & Playful Aesthetic
   ========================================================================== */

:root {
    --primary-font: 'Fredoka', 'Outfit', sans-serif;
    --candy-pink: #FF3366;
    --candy-purple: #8B5CF6;
    --candy-blue: #0EA5E9;
    --candy-yellow: #FBBF24;
    --candy-green: #10B981;
    --candy-orange: #F97316;
}

body {
    font-family: var(--primary-font);
    background-color: #F8FAFC;
    color: #1E293B;
}

/* --------------------------------------------------------------------------
   Custom Scrollbar (Playful & Rounded)
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #EC4899 0%, #8B5CF6 100%);
    border-radius: 9999px;
    border: 3px solid #F1F5F9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #F43F5E 0%, #7C3AED 100%);
}

/* --------------------------------------------------------------------------
   Playful Patterns & Background Shapes
   -------------------------------------------------------------------------- */
.bg-polka-pattern {
    background-image: radial-gradient(rgba(139, 92, 246, 0.12) 1.5px, transparent 1.5px), radial-gradient(rgba(236, 72, 153, 0.12) 1.5px, #F8FAFC 1.5px);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
}

/* Soft Color Glows */
.blob-yellow {
    background: radial-gradient(circle, rgba(253, 224, 71, 0.45) 0%, rgba(254, 243, 199, 0) 70%);
}

.blob-pink {
    background: radial-gradient(circle, rgba(244, 114, 182, 0.4) 0%, rgba(253, 242, 248, 0) 70%);
}

.blob-blue {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(240, 249, 255, 0) 70%);
}

.blob-purple {
    background: radial-gradient(circle, rgba(192, 132, 252, 0.35) 0%, rgba(245, 243, 255, 0) 70%);
}

/* --------------------------------------------------------------------------
   3D Juicy Game Buttons (Press Effect)
   -------------------------------------------------------------------------- */
.btn-3d {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.btn-3d:active {
    transform: translateY(4px);
}

/* Purple 3D Button */
.btn-3d-purple {
    background: linear-gradient(180deg, #9333EA 0%, #7E22CE 100%);
    box-shadow: 0 6px 0 #581C87, 0 10px 15px -3px rgba(126, 34, 206, 0.4);
    border: 2px solid #C084FC;
    color: #FFFFFF;
}
.btn-3d-purple:active {
    box-shadow: 0 2px 0 #581C87, 0 5px 10px -2px rgba(126, 34, 206, 0.3);
}

/* Pink / Coral 3D Button */
.btn-3d-pink {
    background: linear-gradient(180deg, #F43F5E 0%, #E11D48 100%);
    box-shadow: 0 6px 0 #9F1239, 0 10px 15px -3px rgba(225, 29, 72, 0.4);
    border: 2px solid #FDA4AF;
    color: #FFFFFF;
}
.btn-3d-pink:active {
    box-shadow: 0 2px 0 #9F1239, 0 5px 10px -2px rgba(225, 29, 72, 0.3);
}

/* Yellow / Honey 3D Button */
.btn-3d-yellow {
    background: linear-gradient(180deg, #FBBF24 0%, #F59E0B 100%);
    box-shadow: 0 6px 0 #B45309, 0 10px 15px -3px rgba(245, 158, 11, 0.4);
    border: 2px solid #FDE68A;
    color: #451A03;
}
.btn-3d-yellow:active {
    box-shadow: 0 2px 0 #B45309, 0 5px 10px -2px rgba(245, 158, 11, 0.3);
}

/* Sky Blue 3D Button */
.btn-3d-blue {
    background: linear-gradient(180deg, #0284C7 0%, #0369A1 100%);
    box-shadow: 0 6px 0 #075985, 0 10px 15px -3px rgba(3, 105, 161, 0.4);
    border: 2px solid #7DD3FC;
    color: #FFFFFF;
}
.btn-3d-blue:active {
    box-shadow: 0 2px 0 #075985, 0 5px 10px -2px rgba(3, 105, 161, 0.3);
}

/* Green Emerald 3D Button */
.btn-3d-green {
    background: linear-gradient(180deg, #10B981 0%, #059669 100%);
    box-shadow: 0 6px 0 #065F46, 0 10px 15px -3px rgba(5, 150, 105, 0.4);
    border: 2px solid #6EE7B7;
    color: #FFFFFF;
}
.btn-3d-green:active {
    box-shadow: 0 2px 0 #065F46, 0 5px 10px -2px rgba(5, 150, 105, 0.3);
}

/* Light / White 3D Button */
.btn-3d-white {
    background: #FFFFFF;
    box-shadow: 0 5px 0 #CBD5E1, 0 8px 12px -2px rgba(100, 116, 139, 0.2);
    border: 2px solid #E2E8F0;
    color: #1E293B;
}
.btn-3d-white:active {
    box-shadow: 0 2px 0 #CBD5E1, 0 4px 6px -1px rgba(100, 116, 139, 0.15);
}

/* Disabled Coming Soon Button */
.btn-3d-disabled {
    background: #E2E8F0;
    box-shadow: 0 4px 0 #94A3B8;
    border: 2px solid #CBD5E1;
    color: #64748B;
    cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   3D Game Cards & Gloss Effect
   -------------------------------------------------------------------------- */
.game-card-3d {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 0 rgba(226, 232, 240, 0.9), 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.game-card-3d:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 0 rgba(203, 213, 225, 0.9), 0 25px 30px -5px rgba(0, 0, 0, 0.12);
}

.gloss-shine {
    position: relative;
    overflow: hidden;
}

.gloss-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: inherit;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Keyframe Animations & Wiggles
   -------------------------------------------------------------------------- */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(3deg);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(-4deg);
    }
    50% {
        transform: rotate(4deg);
    }
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.animate-float-reverse {
    animation: float-reverse 6s ease-in-out infinite;
}

.animate-wiggle {
    animation: wiggle 2s ease-in-out infinite;
}

.animate-pop-slow {
    animation: pop 3s ease-in-out infinite;
}

/* Block Grid Blocks */
.puzzle-block {
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), 0 3px 0 rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   Game Showcase Banner Responsive Aspect Ratio (1024x500 Feature Graphic)
   Eliminates mobile and desktop cropping; preserves 100% of the game artwork
   -------------------------------------------------------------------------- */
.game-banner-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 500;
    overflow: hidden;
    background-color: #0F172A;
}

.game-banner-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@supports not (aspect-ratio: 1024 / 500) {
    .game-banner-box {
        padding-top: 48.828%; /* (500 / 1024) * 100% fallback */
    }
    .game-banner-box img {
        position: absolute;
        top: 0;
        left: 0;
    }
}
