/* ============================================================
   🎪 CARTOON COMIC STYLE - Complete Theme
   ============================================================ */

/* ===== Google Fonts Import (via header inline) ===== */
/* Nunito: rounded friendly body font */
/* Fredoka One: bouncy heading font */

/* ===== CSS Variables - Cartoon Palette ===== */
:root {
    /* Primary - Warm Orange */
    --primary-color: #FF6B35;
    --primary-dark: #E55A25;
    --primary: #FF6B35;
    --primary-light: #FFB088;
    
    /* Secondary - Sunny Yellow */
    --secondary-color: #FFD93D;
    --secondary: #FFD93D;
    
    /* Accent - Bubblegum Pink & Mint */
    --accent-color: #FF6B9D;
    --accent: #FF6B9D;
    --accent-cyan: #00D2FF;
    --accent-green: #4ECDC4;
    
    /* Background & Surface */
    --dark-bg: #2D2D44;
    --darker-bg: #1E1E33;
    --sidebar-bg: #2D2D44;
    --sidebar-width: 250px;
    --navbar-height: 64px;
    --light-bg: #FFF8F0;
    --white: #FFFFFF;
    
    /* Grays */
    --gray-100: #FFF4E6;
    --gray-200: #FFE8D0;
    --gray-300: #FFD1A0;
    --gray-600: #8B7E74;
    --gray-700: #5C4F44;
    --gray-800: #3D3128;
    
    /* Text */
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --text-light: #FFFFFF;
    --text-muted: #8B7E74;
    
    /* Surfaces */
    --bg-surface: #FFF8F0;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFF0DC;
    --border-color: #FFD1A0;
    
    /* 🎪 Cartoon Shadows - comic book offset style */
    --shadow-sm: 3px 3px 0 rgba(0,0,0,0.08);
    --shadow-md: 4px 4px 0 rgba(0,0,0,0.12);
    --shadow-lg: 6px 6px 0 rgba(0,0,0,0.15);
    --shadow-xl: 8px 8px 0 rgba(0,0,0,0.18);
    
    /* 🎪 Extra round corners */
    --radius-sm: 12px;
    --radius: 16px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #FF6B35, #FF8C42);
    --gradient-fun: linear-gradient(135deg, #FF6B9D, #FF6B35, #FFD93D);
    --gradient-cool: linear-gradient(135deg, #00D2FF, #4ECDC4);
    --gradient-dark: linear-gradient(135deg, #2D2D44, #1E1E33);
    
    --transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Fredoka One', 'Nunito', cursive, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-2xl: 1.5rem;
    --error-color: #FF4757;
    --success-color: #2ED573;
}

/* ===== Global Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--light-bg);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,107,53,0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,107,157,0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255,217,61,0.04) 0%, transparent 50%);
    overflow: hidden;
    height: 100%;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Scrollbar - Cartoon Style ===== */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--accent-color));
}

/* ============================================================
   🎪 TOP NAVIGATION BAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--primary-dark) 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    z-index: 1000;
    box-shadow: 0 4px 0 rgba(0,0,0,0.1);
    overflow-x: hidden;
    border-bottom: 3px solid rgba(255,255,255,0.3);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-container {
    max-width: 100%;
    height: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.nav-brand .logo-img {
    height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-toggle {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: bold;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
}

.nav-brand .logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
    white-space: nowrap;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.15);
    transition: var(--transition);
}

.nav-brand .logo:hover {
    transform: scale(1.05);
}

.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 30px;
    padding: 4px 4px 4px 18px;
    flex: 0 1 420px;
    transition: var(--transition);
}

.nav-search:focus-within {
    background: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.7);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.15);
}

.nav-search .search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    padding: 8px;
    width: 100%;
    font-size: 15px;
    font-family: var(--font-family);
}

.nav-search .search-input::placeholder {
    color: rgba(255,255,255,0.65);
    font-family: var(--font-family);
}

.nav-search .search-btn {
    background: var(--white);
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 10px 16px;
    border-radius: 26px;
    transition: var(--transition);
    color: var(--primary-color);
}

.nav-search .search-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.08);
    box-shadow: var(--shadow-sm);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.nav-btn {
    background: var(--white);
    color: var(--primary-color);
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-heading);
}

.nav-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-md);
}

/* Navbar Auth Buttons */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-auth-link {
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.nav-login-link {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.nav-login-link:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    transform: translateY(-2px);
}

.nav-register-link {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.nav-register-link:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-md);
}

/* Navbar Logged-in User */
.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font-heading);
}

.nav-user-name {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.nav-user-link {
    text-decoration: none;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 15px;
    transition: var(--transition);
}

.nav-user-link:hover {
    background: rgba(255,255,255,0.15);
}

.nav-user-logout {
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.nav-user-logout:hover {
    background: rgba(255,0,0,0.2);
    border-color: rgba(255,100,100,0.6);
    color: #ff6b6b;
}

/* ============================================================
   🎪 MAIN CONTAINER LAYOUT
   ============================================================ */
.main-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    height: calc(100% - var(--navbar-height));
    margin-top: var(--navbar-height);
    transition: grid-template-columns 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.main-container.sidebar-collapsed {
    grid-template-columns: 0 1fr;
}

.main-container.sidebar-collapsed .sidebar {
    overflow: hidden;
    pointer-events: none;
}

/* ============================================================
   🎪 LEFT SIDEBAR - Cartoon Blast!
   ============================================================ */
.sidebar {
    position: sticky;
    top: var(--navbar-height);
    width: var(--sidebar-width);
    height: 100%;
    /* 🎨 Cartoon candy gradient background */
    background:
        /* Polka dot pattern overlay */
        radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,217,61,0.12) 2px, transparent 2px),
        /* Main cartoon gradient */
        linear-gradient(
            180deg,
            #FFF5E6 0%,
            #FFE8D6 8%,
            #FFD6E8 20%,
            #FFE8F0 30%,
            #E8F4FD 45%,
            #D4F5E9 60%,
            #FFF9E0 75%,
            #FFE8D6 90%,
            #FFF0F5 100%
        );
    background-size:
        24px 24px,
        48px 48px,
        100% 300%;
    background-position:
        0 0,
        12px 6px,
        0% 0%;
    animation:
        sidebarDots 20s linear infinite,
        sidebarGradient 12s ease-in-out infinite;
    overflow-y: auto;
    transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 5px 0 0 rgba(0,0,0,0.08), 8px 0 0 rgba(255,107,53,0.12);
    border-right: 5px dashed rgba(255,150,100,0.35);
}

@keyframes sidebarDots {
    0%   { background-position: 0 0, 12px 6px, 0% 0%; }
    100% { background-position: 24px 24px, 60px 30px, 0% 0%; }
}

@keyframes sidebarGradient {
    0%, 100% { background-position: 0 0, 12px 6px, 0% 0%; }
    50%      { background-position: 0 0, 12px 6px, 0% 100%; }
}

.sidebar-content {
    padding: 16px 0;
    position: relative;
}

/* Decorative top sparkle */
.sidebar-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: var(--gradient-fun);
    border-radius: 0 0 8px 8px;
    opacity: 0.8;
    box-shadow: 0 2px 8px rgba(255,107,53,0.25);
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-title {
    color: #E8573A;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    padding: 0 20px;
    margin-bottom: 14px;
    font-weight: 800;
    font-family: var(--font-heading);
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title::after {
    content: '';
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), transparent);
    border-radius: 2px;
    box-shadow: 1px 1px 0 rgba(255,255,255,0.4);
}

.sidebar-menu {
    padding: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    color: #5D3A3A;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 14px;
    font-weight: 700;
    border-left: 5px solid transparent;
    margin: 3px 10px;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

/* Sidebar link hover background burst */
.sidebar-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,107,53,0.15) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.45s ease;
}

.sidebar-link:hover::before {
    transform: translateX(0);
}

.sidebar-link:hover {
    background: rgba(255,150,80,0.12);
    color: #FF6B35;
    border-left-color: var(--primary-color);
    transform: translateX(8px) scale(1.02);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: 3px 3px 0 rgba(255,107,53,0.15);
}

/* Different colored left borders for variety */
.sidebar-link:nth-child(3n+1):hover { border-left-color: var(--primary-color); }
.sidebar-link:nth-child(3n+2):hover { border-left-color: var(--accent-color); }
.sidebar-link:nth-child(3n+3):hover { border-left-color: var(--accent-green); }

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(255,107,53,0.2) 0%, rgba(255,217,61,0.15) 100%);
    color: #FF6B35;
    border-left: 5px solid var(--primary-color);
    font-weight: 800;
    box-shadow: inset 0 0 18px rgba(255,107,53,0.1), 3px 3px 0 rgba(255,107,53,0.15);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    transform: translateX(4px);
}

.sidebar-link.active .icon {
    animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    animation-play-state: running;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

.sidebar-link .icon {
    font-size: 22px;
    width: 28px;
    text-align: center;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.12));
    transition: var(--transition);
    flex-shrink: 0;
}

.sidebar-link:hover .icon {
    transform: scale(1.2) rotate(-10deg);
    filter: drop-shadow(0 3px 6px rgba(255,107,53,0.35));
}

/* Sidebar Scrollbar - Fun candy gradient */
.sidebar::-webkit-scrollbar {
    width: 10px;
}
.sidebar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.04);
    border-radius: 5px;
    margin: 4px 0;
}
.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFB347, #FF6B9D, #4ECDC4);
    border-radius: 5px;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.3);
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FF6B9D, #FFB347, #4ECDC4);
}

/* ===== Sidebar Auth Buttons - Cartoon Party! ===== */
.sidebar-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 20px 18px;
    margin-bottom: 14px;
    border-bottom: 3px dashed rgba(0,0,0,0.1);
    position: relative;
}

.sidebar-auth::after {
    content: '✦';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--primary-color);
    background: #FFF5E6;
    padding: 0 8px;
}

.sidebar-auth-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.sidebar-auth-btn {
    display: block;
    width: 100%;
    padding: 13px 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.sidebar-auth-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-auth-btn:hover::after {
    opacity: 1;
}

.btn-login {
    background: #fff;
    color: #FF6B35;
    border: 3px solid #FF8C5A;
    box-shadow: 3px 3px 0 rgba(255,107,53,0.25);
}

.btn-login:hover {
    background: #FFF0E8;
    border-color: #FF6B35;
    color: #E5552A;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 5px 5px 0 rgba(255,107,53,0.3);
}

.btn-register {
    background: var(--gradient-fun);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    color: #fff;
    border: 3px solid rgba(255,255,255,0.4);
    box-shadow: 4px 4px 0 rgba(200,50,30,0.25);
}

.btn-register:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 7px 7px 0 rgba(200,50,30,0.3);
    filter: brightness(1.1);
}

/* ===== Sidebar User (Logged In) - Cartoon Avatar ===== */
.sidebar-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sidebar-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-fun);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    border: 4px solid #FFB347;
    box-shadow: 4px 4px 0 rgba(200,50,30,0.2), 0 0 20px rgba(255,107,53,0.3);
    font-family: var(--font-heading);
    transition: var(--transition);
}

.sidebar-user-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 6px 6px 0 rgba(200,50,30,0.25), 0 0 30px rgba(255,107,53,0.4);
}

.sidebar-user-name {
    color: #5D3A3A;
    font-size: 15px;
    font-weight: 800;
    word-break: break-all;
    text-align: center;
    font-family: var(--font-heading);
}

.sidebar-logout-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    background: rgba(255,71,87,0.08);
    color: #E5553A;
    border: 2px solid rgba(255,71,87,0.3);
    transition: var(--transition);
    font-family: var(--font-family);
}

.sidebar-logout-btn:hover {
    background: rgba(255,71,87,0.18);
    color: #D63031;
    border-color: rgba(255,71,87,0.6);
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 rgba(255,71,87,0.2);
}

.sidebar-profile-link {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius);
    text-decoration: none;
    color: #3AAFA9;
    background: rgba(78,205,196,0.08);
    border: 2px solid rgba(78,205,196,0.3);
    transition: var(--transition);
    font-family: var(--font-family);
}

.sidebar-profile-link:hover {
    background: rgba(78,205,196,0.18);
    color: #2B8A85;
    border-color: rgba(78,205,196,0.6);
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 rgba(78,205,196,0.2);
}

/* ============================================================
   🎪 MAIN CONTENT AREA
   ============================================================ */
.main-content {
    padding: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-wrap: break-word;
}

/* ============================================================
   🎪 HERO BANNER
   ============================================================ */
.hero-section {
    background: var(--gradient-fun);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    color: var(--white);
    padding: 60px 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-xl);
    width: 100% !important;
    border: 3px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 20%),
        radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 20%);
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.hero-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-tagline {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    letter-spacing: 0.02em;
    border: 2px solid rgba(255,255,255,0.3);
    font-family: var(--font-heading);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 46px;
    margin-bottom: 16px;
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1.2;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.15);
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

.hero-decor {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.hero-typewriter {
    display: inline;
    white-space: nowrap;
}

.hero-cursor {
    display: none !important;
    font-weight: 100;
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 18px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
    font-weight: 600;
}

.hero-subdescription {
    font-size: 15px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    text-align: center;
    background: rgba(255,255,255,0.15);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(255,255,255,0.2);
}

.hero-stats .stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 2px;
    font-family: var(--font-heading);
}

.hero-stats .stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.hero-actions .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    box-shadow: var(--shadow-md);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: var(--shadow-xl);
    background: var(--secondary-color);
}

.hero-actions .btn-outline {
    background: transparent;
    color: var(--white);
    border: 3px solid rgba(255,255,255,0.6);
}

.hero-actions .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    transform: translateY(-3px);
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 800;
    transition: var(--transition);
    font-family: var(--font-heading);
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-4px) scale(1.04);
    box-shadow: var(--shadow-xl);
}

/* ============================================================
   🎪 GAME LIST SECTION & GRID
   ============================================================ */
.games-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--text-primary);
    margin: 0;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--gradient-fun);
    border-radius: 2px;
}

.view-all {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    padding: 8px 18px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-family: var(--font-heading);
}

.view-all:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* ============================================================
   🎪 GAME CARD - Cartoon Style!
   ============================================================ */
.game-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--gray-300);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.game-thumbnail {
    position: relative;
    overflow: hidden;
    height: 180px;
    background: var(--gray-200);
    border-bottom: 3px solid var(--gray-300);
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.08);
}

.game-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
}

.tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    color: var(--white);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.tag.new {
    background: var(--success-color);
}

.tag.hot {
    background: var(--error-color);
}

.tag.original {
    background: var(--primary-color);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--primary-color);
    color: var(--white);
    border: 3px solid var(--white);
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    font-family: var(--font-heading);
    box-shadow: var(--shadow-lg);
}

.game-card:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.play-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    transform: translate(-50%, -50%) scale(1.1) !important;
    box-shadow: var(--shadow-xl);
}

.game-info {
    padding: 16px;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.game-category {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    color: var(--secondary-color);
    font-size: 14px;
}

.rating-count {
    font-size: 11px;
    color: var(--gray-600);
    font-weight: 600;
}

/* ============================================================
   🎪 PLATFORM FEATURES SECTION
   ============================================================ */
.features-section {
    padding: 50px 30px;
    background: var(--white);
    border-radius: var(--radius-xl);
    margin-bottom: 50px;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--gray-300);
}

.features-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 15px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon { animation-delay: 0.5s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 1s; }
.feature-card:nth-child(4) .feature-icon { animation-delay: 1.5s; }

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

/* ============================================================
   🎪 FOOTER
   ============================================================ */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 50px 30px 20px;
    margin-top: 50px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transition: margin-left 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 -4px 0 rgba(0,0,0,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 15px;
    background: var(--gradient-fun);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary-light);
}

.footer-section p {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    line-height: 1.8;
    font-weight: 500;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.75);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
    text-shadow: 0 0 10px rgba(255,217,61,0.4);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    font-size: 22px;
    transition: var(--transition);
    color: rgba(255,255,255,0.7);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
}

.social-links a:hover {
    transform: scale(1.15);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 16px rgba(255,217,61,0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 600;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom a {
    color: var(--secondary-color);
}

/* ============================================================
   🎪 LOGIN / AUTH FORMS
   ============================================================ */
.auth-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 3px solid var(--gray-300);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    position: relative;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.auth-tabs {
    display: flex;
    border-bottom: 3px solid var(--border-color);
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    overflow: hidden;
}

.auth-tab {
    flex: 1;
    padding: 0.85rem 1rem;
    text-align: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 700;
    transition: all var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: var(--font-size-base);
    font-family: var(--font-family);
}

.auth-tab:hover {
    color: var(--primary-color);
    background: var(--gray-100);
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--bg-surface);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 3px solid var(--border-color);
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: all var(--transition);
    background: var(--bg-card);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255,107,53,0.15);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group .error-text {
    color: var(--error-color);
    font-size: var(--font-size-xs);
    margin-top: 0.25rem;
    display: none;
    font-weight: 600;
}

.form-group.has-error input {
    border-color: var(--error-color);
}

.form-group.has-error .error-text {
    display: block;
}

.btn-auth {
    width: 100%;
    padding: 0.95rem 1.5rem;
    background: var(--gradient-fun);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
}

.btn-auth:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.btn-auth:active {
    transform: translateY(-1px);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-auth.loading {
    position: relative;
    color: transparent;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert-box {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: var(--font-size-sm);
    display: none;
    font-weight: 600;
    border: 2px solid;
}

.alert-box.show {
    display: block;
}

.alert-box.success {
    background: rgba(46, 213, 115, 0.1);
    color: var(--success-color);
    border-color: var(--success-color);
}

.alert-box.error {
    background: rgba(255, 71, 87, 0.1);
    color: var(--error-color);
    border-color: var(--error-color);
}

.password-toggle {
    position: relative;
}

.password-toggle input {
    padding-right: 2.5rem;
}

.password-toggle .toggle-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition);
}

.password-toggle .toggle-icon:hover {
    color: var(--text-primary);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.social-login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border-color);
    border-radius: 1px;
}

.social-login-divider span {
    padding: 0 1rem;
}

.social-login-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-social {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 3px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font-family);
}

.btn-social:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-social i {
    font-size: var(--font-size-lg);
}

.btn-facebook { border-color: #1877f2; color: #1877f2; }
.btn-facebook:hover { background: #1877f2; color: white; }
.btn-google { border-color: #ea4335; color: #ea4335; }
.btn-google:hover { background: #ea4335; color: white; }
.btn-twitter { border-color: #1da1f2; color: #1da1f2; }
.btn-twitter:hover { background: #1da1f2; color: white; }
.btn-steam { border-color: #171a21; color: #171a21; }
.btn-steam:hover { background: #171a21; color: white; }
.btn-discord { border-color: #5865f2; color: #5865f2; }
.btn-discord:hover { background: #5865f2; color: white; }

.btn-social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.alert-box.info {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Inline Auth Container (loaded into .main-content via JS) */
.auth-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Close button for inline auth form */
.auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.auth-close:hover {
    background: var(--error-color);
    color: white;
}

/* Remember me checkbox */
.remember-me {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600 !important;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 480px) {
    .auth-card { padding: 1.5rem; }
    .form-row { flex-direction: column; gap: 0; }
    .social-login-buttons { flex-direction: column; }
    .btn-social { min-width: 100%; }
}

/* ============================================================
   🎪 SHARED PAGE HERO (About, Policy, Detail, etc.)
   ============================================================ */
.page-hero {
    background: var(--gradient-fun);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    color: var(--white);
    padding: 50px;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-xl);
    border: 3px solid rgba(255,255,255,0.3);
}

.about-hero-bg {
    background: linear-gradient(135deg, #FF6B35, #FF6B9D, #00D2FF);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.page-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 38px;
    margin-bottom: 10px;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.12);
}

.page-hero-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 600;
}

/* ============================================================
   🎪 POLICY PAGES (Privacy, Terms, Disclaimer)
   ============================================================ */
.policy-content {
    margin-bottom: 50px;
}

.policy-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--gray-300);
}

.policy-date {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--gray-200);
    font-weight: 600;
}

.policy-block {
    margin-bottom: 30px;
}

.policy-block:last-child {
    margin-bottom: 0;
}

.policy-block h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.policy-block h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--text-primary);
    margin: 18px 0 10px;
}

.policy-block p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.policy-block ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 12px;
}

.policy-block ul li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}

.policy-block a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 700;
}

/* ============================================================
   🎪 ABOUT PAGE
   ============================================================ */
.about-section {
    margin-bottom: 50px;
}

.about-section.alt-bg {
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 50px;
    border: 3px solid var(--gray-200);
}

.about-section .section-title {
    text-align: center;
    margin-bottom: 15px;
}

.section-center {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: 600;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.about-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    border: 3px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.mission-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--radius-xl);
    border: 3px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.mission-icon {
    font-size: 52px;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

.mission-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.mission-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 500;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.value-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: var(--radius-lg);
    border: 3px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 5px solid var(--primary-color);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.value-card h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 500;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.team-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    border: 3px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.team-avatar {
    font-size: 60px;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}

.team-card h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.team-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 500;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 45px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-fun);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 500;
}

.about-cta {
    background: var(--gradient-fun);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    color: var(--white);
    text-align: center;
    padding: 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    margin-bottom: 40px;
    border: 3px solid rgba(255,255,255,0.3);
}

.about-cta h2 {
    font-family: var(--font-heading);
    font-size: 30px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.about-cta p {
    font-size: 16px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.about-cta .cta-button {
    background: var(--white);
    color: var(--primary-color);
    padding: 16px 44px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 800;
    display: inline-block;
    transition: var(--transition);
    font-family: var(--font-heading);
    box-shadow: var(--shadow-lg);
}

.about-cta .cta-button:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-5px) scale(1.04);
    box-shadow: var(--shadow-xl);
}

/* ============================================================
   🎪 CONTACT PAGE
   ============================================================ */
.contact-hero {
    background: var(--gradient-fun);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    color: var(--white);
    padding: 50px;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-xl);
    border: 3px solid rgba(255,255,255,0.3);
}

.contact-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 38px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.contact-hero-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 600;
}

.contact-section {
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

.contact-form-container {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--gray-300);
}

.contact-form-container .section-title {
    margin-bottom: 25px;
    font-size: 24px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
    font-family: var(--font-family);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 3px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--gray-100);
    transition: var(--transition);
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255,107,53,0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-600);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238B7E74' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.submit-btn {
    width: 100%;
    padding: 16px 30px;
    background: var(--gradient-fun);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.contact-info-container {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--gray-300);
}

.contact-info-container .section-title {
    margin-bottom: 15px;
    font-size: 24px;
}

.contact-intro {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
    font-weight: 500;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    background: var(--gray-100);
    border-radius: var(--radius);
    transition: var(--transition);
    border: 2px solid transparent;
}

.info-card:hover {
    background: var(--bg-surface);
    border-color: var(--primary-color);
    transform: translateX(6px);
}

.info-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--gray-300);
}

.info-content h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 500;
}

.contact-social {
    text-align: center;
    padding-top: 20px;
    border-top: 3px solid var(--gray-200);
}

.contact-social h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    transition: var(--transition);
    border: 3px solid var(--gray-300);
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* FAQ Section */
.faq-section {
    margin-bottom: 50px;
}

.faq-section .section-title {
    text-align: center;
    margin-bottom: 30px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.faq-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 3px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
}

.faq-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent-color);
}

.faq-card h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.faq-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 500;
}

/* Form validation */
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: #e17055;
}
.contact-form input:valid:not(:placeholder-shown),
.contact-form textarea:valid:not(:placeholder-shown) {
    border-color: var(--success-color);
}

/* ============================================================
   🎪 DETAIL PAGE - Cartoon Blast!
   ============================================================ */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #7B68A0;
    font-weight: 700;
}

.breadcrumb a {
    color: #FF6B35;
    transition: var(--transition);
    font-weight: 800;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.breadcrumb a:hover {
    color: #E5552A;
    text-decoration: none;
    text-shadow: 2px 2px 0 rgba(255,150,80,0.3);
}

.breadcrumb span {
    margin: 0 8px;
    color: #C4AED0;
}

.breadcrumb .current {
    color: #6B5B8A;
    font-weight: 700;
}

/* --- Game Detail Container --- */
.game-detail-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- Detail Hero (Big Image + Overlay) --- */
.game-detail-hero {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.1), 0 0 30px rgba(255,107,53,0.15);
    transition: var(--transition);
}

.game-detail-hero:hover {
    box-shadow: 10px 10px 0 rgba(0,0,0,0.15), 0 0 40px rgba(255,107,53,0.2);
}

.detail-hero-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
}

.detail-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-game-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.3), 0 0 20px rgba(255,107,53,0.4);
    letter-spacing: 0.5px;
    margin: 0;
}

.detail-game-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.detail-game-meta .detail-category {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
    background: var(--gradient-fun);
    padding: 6px 18px;
    border-radius: 25px;
    border: 3px solid rgba(255,255,255,0.4);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.15);
}

/* --- Detail Content Two-Column --- */
.game-detail-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

/* --- Detail Main (Left) --- */
.detail-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 25px 30px;
    background: #fff;
    border-radius: var(--radius-xl);
    border: 4px solid #FFD6A5;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.detail-actions .section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: #5D3A3A;
    text-shadow: 2px 2px 0 rgba(255,179,71,0.3);
    margin: 0;
    padding: 0;
}

.detail-play-btn {
    padding: 16px 40px;
    background: var(--gradient-fun);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    box-shadow: 5px 5px 0 rgba(200,50,30,0.25);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.15);
}

.detail-play-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 8px 8px 0 rgba(200,50,30,0.3);
    filter: brightness(1.15);
}

.detail-play-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 2px 2px 0 rgba(200,50,30,0.3);
}

/* --- Detail Description --- */
.detail-description {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-xl);
    border: 4px solid #D4F5E9;
    box-shadow: 6px 6px 0 rgba(78,205,196,0.15);
}

.detail-description h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    color: #3B8B85;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 4px dashed #D4F5E9;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.description-text {
    font-size: 15px;
    color: #6B5B5B;
    line-height: 1.8;
    font-weight: 500;
}

/* --- Detail Tags --- */
.detail-tags {
    background: #fff;
    padding: 25px 30px;
    border-radius: var(--radius-xl);
    border: 4px solid #FFE8D6;
    box-shadow: 6px 6px 0 rgba(255,107,53,0.12);
}

.detail-tags h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
    color: #E8573A;
    margin-bottom: 14px;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-list .tag-item {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, #FFF0E8, #FFE0D0);
    color: #E8573A;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid #FFC4A5;
    box-shadow: 2px 2px 0 rgba(255,107,53,0.12);
    text-decoration: none;
}

.tags-list .tag-item:hover {
    background: var(--gradient-fun);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 4px 4px 0 rgba(200,50,30,0.2);
}

/* --- Detail Sidebar (Right) --- */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
}

.info-card {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius-xl);
    border: 4px solid #E8E0F0;
    box-shadow: 6px 6px 0 rgba(123,104,160,0.12);
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: 8px 8px 0 rgba(123,104,160,0.18);
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
    color: #7B68A0;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 4px dashed #E8E0F0;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h3::before {
    content: '🎮';
    font-size: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 2px dotted #F0ECF5;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    font-weight: 700;
    color: #A896C0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 14px;
    font-weight: 700;
    color: #5D3A5A;
    text-align: right;
}

/* Game Stats Card */
.game-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item-detail {
    text-align: center;
    padding: 16px 12px;
    background: linear-gradient(135deg, #F8F4FF, #F0E8FA);
    border-radius: var(--radius-lg);
    border: 3px solid #E0D5F0;
    transition: var(--transition);
}

.stat-item-detail:hover {
    transform: translateY(-3px);
    box-shadow: 3px 3px 0 rgba(123,104,160,0.15);
    border-color: #C4B0E0;
}

.stat-number-detail {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: #FF6B35;
    font-family: var(--font-heading);
    text-shadow: 2px 2px 0 rgba(255,107,53,0.15);
}

.stat-label-detail {
    font-size: 12px;
    font-weight: 700;
    color: #A896C0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

/* --- Related Games Section --- */
.related-games-section {
    margin-top: 10px;
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-xl);
    border: 4px solid #FFF9E0;
    box-shadow: 6px 6px 0 rgba(255,217,61,0.15);
}

.related-games-section .section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: #D4A000;
    text-shadow: 2px 2px 0 rgba(255,217,61,0.3);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 4px dashed #FFF0B0;
}

/* --- No Game Placeholder --- */
.no-game-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background: #fff;
    border-radius: var(--radius-xl);
    border: 4px dashed #FFD6A5;
    box-shadow: 6px 6px 0 rgba(255,107,53,0.1);
    text-align: center;
}

.placeholder-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: iconBounce 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.no-game-placeholder h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: #E8573A;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 rgba(255,107,53,0.1);
}

.no-game-placeholder p {
    font-size: 16px;
    color: #8B7A6B;
    margin-bottom: 25px;
    font-weight: 500;
}

.back-home-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--gradient-fun);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    color: #fff;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    font-family: var(--font-heading);
    box-shadow: 4px 4px 0 rgba(200,50,30,0.25);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.back-home-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 7px 7px 0 rgba(200,50,30,0.3);
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.15) translateY(-10px); }
}

/* --- Game Iframe Modal - Cartoon Dialog --- */
.game-iframe-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-iframe-dialog {
    background: #fff;
    border-radius: var(--radius-xl);
    width: 90vw;
    max-width: 1100px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 5px solid #FFD6A5;
    box-shadow: 12px 12px 0 rgba(0,0,0,0.15), 0 0 60px rgba(255,107,53,0.2);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-iframe-dialog.expanded {
    width: 98vw;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    border-width: 3px;
}

.game-iframe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(135deg, #FFF0E8, #FFE0D0);
    border-bottom: 4px solid #FFD6A5;
}

.game-iframe-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
    color: #E8573A;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
    margin: 0;
}

.game-iframe-actions {
    display: flex;
    gap: 8px;
}

.iframe-expand-btn,
.iframe-close-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
}

.iframe-expand-btn {
    background: #E8F4FD;
    color: #3B8BFF;
    border: 3px solid #B8D8F8;
    box-shadow: 2px 2px 0 rgba(59,139,255,0.15);
}

.iframe-expand-btn:hover {
    transform: scale(1.15);
    box-shadow: 4px 4px 0 rgba(59,139,255,0.2);
}

.iframe-close-btn {
    background: #FFE8E8;
    color: #FF6B6B;
    border: 3px solid #FFC8C8;
    box-shadow: 2px 2px 0 rgba(255,107,107,0.15);
}

.iframe-close-btn:hover {
    transform: scale(1.15);
    box-shadow: 4px 4px 0 rgba(255,107,107,0.2);
}

.game-iframe-body {
    flex: 1;
    position: relative;
    background: #000;
    min-height: 400px;
}

.game-iframe-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    inset: 0;
}

.iframe-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(255,255,255,0.95);
    z-index: 10;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #FFE0D0;
    border-top: 5px solid #FF6B35;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.iframe-loading p {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #E8573A;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Old Detail Hero (keep for backward compat) --- */
.detail-hero {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 40px;
    border: 3px solid var(--gray-300);
}

/* ============================================================
   🎪 SIDEBAR COLLAPSE / ACCORDION - Cartoon Accordion!
   ============================================================ */
.collapsible-section {
    margin-bottom: 24px;
    position: relative;
}

.collapsible-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
    border-radius: 2px;
}

.collapse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 6px 20px;
    margin-bottom: 10px;
    background: none;
    border: none;
    color: #E8573A;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition);
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.collapse-header:hover {
    color: #FF6B35;
    letter-spacing: 3px;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.6);
}

.collapse-arrow {
    font-size: 10px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    background: rgba(255,107,53,0.15);
    color: #FF6B35;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

.collapse-header[aria-expanded="true"] .collapse-arrow {
    transform: rotate(180deg);
    background: rgba(255,107,53,0.25);
}

.collapse-body {
    overflow: hidden;
    max-height: 600px;
    opacity: 1;
    transition: max-height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.25s ease,
                margin 0.25s ease;
}

.collapse-body.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* Sidebar Collapsed */
.sidebar.collapsed {
    width: 0;
    padding: 0;
    overflow: hidden;
}

/* Overlay (Mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 998;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

@media (min-width: 769px) {
    .sidebar-overlay.active {
        display: none !important;
    }
}

/* ============================================================
   🎪 Iframe Detail
   ============================================================ */
.iframe_detail {
    border: none;
}

@media (min-width: 1025px) {
    .contact-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 40px;
    }
    .iframe_detail {
        height: 800px !important;
    }
}

/* ============================================================
   🎪 RESPONSIVE DESIGN
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root { --sidebar-width: 200px; }

    .nav-search { flex: 0 1 300px; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
    .contact-grid { grid-template-columns: 1fr; gap: 25px; }

    .detail-hero-grid { grid-template-columns: 1fr; }
    .detail-img { min-height: 250px; }
    .detail-body-grid { grid-template-columns: 1fr; }
    .game-detail-content { grid-template-columns: 1fr; }
    .detail-sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); position: static; }
    .detail-game-title { font-size: 24px; }
    .game-detail-hero { border-width: 4px; box-shadow: 5px 5px 0 rgba(0,0,0,0.1); }
    .detail-hero-overlay { padding: 25px 20px 18px; }
    .game-iframe-dialog { width: 95vw; max-height: 85vh; }
    .about-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
    html, body {
        height: auto;
        overflow: auto;
    }
    body { overflow: auto; }

    .main-container {
        display: block;
        grid-template-columns: none;
        height: auto;
        margin-top: var(--navbar-height);
        overflow-x: hidden;
    }

    .sidebar {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 220px;
        height: calc(100vh - var(--navbar-height));
        transform: translateX(-100%);
        z-index: 1001;
        transition: transform 0.3s ease;
    }
    .sidebar:not(.collapsed) { transform: translateX(0); }

    .main-content { margin-left: 0; padding: 15px; max-width: 100vw; overflow-x: hidden; overflow-y: visible; }
    .footer { margin-left: 0; }
    
    .nav-container { flex-wrap: nowrap; gap: 8px; padding: 0 12px; }
    .nav-brand { gap: 8px; flex-shrink: 0; }
    .sidebar-toggle { font-size: 20px; padding: 4px 8px; }
    .nav-brand .logo { font-size: 18px; }
    .nav-search { flex: 1; min-width: 0; order: 0; padding: 4px 10px; }
    .nav-search .search-input { font-size: 13px; padding: 6px; }
    .nav-search .search-btn { font-size: 14px; }
    .nav-actions { flex-shrink: 0; gap: 6px; }
    .nav-btn { padding: 5px 12px; font-size: 12px; }
    .nav-auth { gap: 6px; }
    .nav-auth-link { padding: 6px 12px; font-size: 12px; letter-spacing: 0.2px; }
    .nav-user { gap: 6px; }
    .nav-user-avatar { width: 28px; height: 28px; font-size: 12px; }
    .nav-user-name { font-size: 12px; }
    .nav-user-link, .nav-user-logout { font-size: 11px; padding: 3px 8px; }

    .hero-section { padding: 30px 15px; border-radius: var(--radius-lg); margin-bottom: 30px; max-width: 100%; }
    .hero-container { padding: 0; }
    .hero-content h1 { font-size: 26px; }
    .hero-description { font-size: 14px; }
    .hero-stats { gap: 12px; }
    .hero-stats .stat-number { font-size: 20px; }
    .hero-stats .stat-label { font-size: 12px; }
    .hero-actions .btn { padding: 10px 20px; font-size: 14px; }

    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .game-thumbnail { height: 120px; }
    .game-info { padding: 10px; }
    .game-title { font-size: 13px; }
    .game-category { font-size: 11px; }
    .game-rating { font-size: 11px; }
    .play-btn { opacity: 1; padding: 6px 14px; font-size: 12px; }

    .features-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .feature-card { padding: 20px 12px; }
    .feature-icon { font-size: 32px; }
    .feature-card h3 { font-size: 15px; }

    .footer { padding: 35px 15px 15px; margin-top: 35px; }
    .footer-content { grid-template-columns: 1fr; gap: 25px; }
    .section-title { font-size: 20px; }
    .section-header { margin-bottom: 15px; }
    .games-section { margin-bottom: 35px; }
    .features-section { padding: 30px 15px; margin-bottom: 35px; }

    .page-hero { padding: 28px 18px; margin-bottom: 30px; border-radius: var(--radius-lg); }
    .page-hero-content h1 { font-size: 24px; }
    .page-hero-content p { font-size: 13px; }
    .policy-container { padding: 20px 15px; border-radius: var(--radius-lg); }
    .policy-block h2 { font-size: 18px; }
    .policy-block ul li { font-size: 13px; }
    .mission-grid { grid-template-columns: 1fr; gap: 18px; }

    .contact-section { margin-bottom: 35px; }
    .contact-grid { grid-template-columns: 1fr; gap: 20px; }
    .contact-hero { padding: 28px 20px; margin-bottom: 30px; border-radius: var(--radius-lg); max-width: 100%; }
    .contact-hero-content h1 { font-size: 26px; }
    .contact-hero-content p { font-size: 13px; }
    .contact-form-container, .contact-info-container { padding: 20px; border-radius: var(--radius-lg); max-width: 100%; }
    .contact-form-container .section-title, .contact-info-container .section-title { font-size: 19px; margin-bottom: 18px; }
    .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form .form-group { margin-bottom: 15px; }
    .contact-form input, .contact-form select, .contact-form textarea { padding: 10px 14px; font-size: 13px; max-width: 100%; }
    .contact-form textarea { min-height: 100px; }
    .contact-intro { font-size: 13px; margin-bottom: 20px; }
    .info-cards { gap: 12px; margin-bottom: 22px; }
    .info-card { padding: 14px; gap: 12px; }
    .info-card:hover { transform: none; }
    .info-icon { font-size: 24px; width: 38px; height: 38px; }
    .info-content h4 { font-size: 14px; }
    .info-content p { font-size: 12px; }
    .contact-social h3 { font-size: 14px; }
    .social-icons { gap: 12px; }
    .social-icon { font-size: 20px; width: 40px; height: 40px; }
    .social-icon:hover { transform: none; }
    .faq-section { margin-bottom: 35px; }
    .faq-section .section-title { margin-bottom: 22px; }
    .faq-grid { grid-template-columns: 1fr; gap: 14px; }
    .faq-card { padding: 18px; }
    .faq-card:hover { transform: none; }
    .faq-card h4 { font-size: 14px; }
    .faq-card p { font-size: 12px; }
    .submit-btn { font-size: 15px; padding: 13px 24px; }
    .submit-btn:hover { transform: none; }

    .detail-stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .detail-actions { flex-direction: column; gap: 10px; }
    .detail-actions .play-now-btn, .detail-actions .save-btn, .detail-actions .share-btn { width: 100%; text-align: center; }
    .detail-actions .detail-play-btn { width: 100%; text-align: center; }
    .detail-game-title { font-size: 20px; }
    .detail-hero-overlay { padding: 20px 15px 15px; }
    .game-iframe-dialog { width: 100vw; max-height: 100vh; border-radius: 0; border-width: 3px; }
    .game-iframe-header { padding: 12px 16px; }
    .game-iframe-title { font-size: 15px; }
    .no-game-placeholder { padding: 50px 25px; }
    
    .toast-notification { left: 15px; right: 15px; min-width: auto; max-width: none; }
}

/* Small Phones */
@media (max-width: 480px) {
    .main-container { max-width: 100vw; overflow-x: hidden; }
    .main-content { padding: 12px 10px; max-width: 100vw; overflow-x: hidden; }

    .hero-section { padding: 25px 12px; margin-bottom: 25px; border-radius: var(--radius); }
    .hero-content h1 { font-size: 22px; }
    .hero-stats { gap: 8px; }
    .hero-stats .stat-item { padding: 10px 14px; }
    .hero-stats .stat-number { font-size: 18px; }
    .hero-actions { flex-direction: column; align-items: center; gap: 10px; }
    .hero-actions .btn { padding: 10px 18px; font-size: 13px; width: 100%; max-width: 250px; justify-content: center; }

    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .game-thumbnail { height: 100px; }
    .game-info { padding: 8px; }
    .game-title { font-size: 12px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .game-category { font-size: 10px; }
    .game-tags .tag { font-size: 9px; padding: 2px 6px; }
    .play-btn { padding: 5px 10px; font-size: 11px; }

    .features-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .features-section { padding: 25px 12px; margin-bottom: 30px; }
    .feature-card { padding: 15px 10px; }
    .feature-icon { font-size: 28px; margin-bottom: 8px; }
    .feature-card h3 { font-size: 14px; margin-bottom: 5px; }
    .feature-card p { font-size: 12px; }

    .games-section { margin-bottom: 30px; }
    .footer { padding: 30px 10px 12px; margin-top: 30px; }
    .footer-content { gap: 22px; }
    .section-title { font-size: 18px; }
    .section-header { margin-bottom: 12px; }
    .nav-brand .logo { font-size: 16px; }
    .nav-link { display: none; }
    .nav-search { padding: 3px 8px; }
    .nav-search .search-input { font-size: 12px; padding: 5px; }
    .nav-search .search-input::placeholder { font-size: 12px; }
    .nav-btn { padding: 4px 10px; font-size: 11px; }
    .nav-auth { gap: 4px; }
    .nav-auth-link { padding: 4px 8px; font-size: 11px; letter-spacing: 0; }
    .nav-user { gap: 4px; }
    .nav-user-avatar { width: 24px; height: 24px; font-size: 10px; }
    .nav-user-name { font-size: 11px; }
    .nav-user-link, .nav-user-logout { font-size: 10px; padding: 2px 6px; }

    .contact-section { margin-bottom: 28px; }
    .contact-grid { grid-template-columns: 1fr; gap: 18px; }
    .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-hero { padding: 25px 15px; margin-bottom: 25px; border-radius: var(--radius); }
    .contact-hero-content h1 { font-size: 22px; }
    .contact-hero-content p { font-size: 12px; }
    .contact-form-container, .contact-info-container { padding: 16px 12px; border-radius: var(--radius); }
    .contact-form-container .section-title, .contact-info-container .section-title { font-size: 17px; margin-bottom: 14px; }
    .contact-form .form-group { margin-bottom: 14px; }
    .contact-form label { font-size: 13px; margin-bottom: 6px; }
    .contact-form input, .contact-form select, .contact-form textarea { padding: 10px 12px; font-size: 13px; max-width: 100%; }
    .contact-form textarea { min-height: 90px; }
    .contact-form select { background-position: right 12px center; padding-right: 32px; }
    .contact-intro { font-size: 12px; margin-bottom: 18px; }
    .info-cards { gap: 10px; margin-bottom: 18px; }
    .info-card { padding: 12px; gap: 10px; }
    .info-icon { font-size: 22px; width: 36px; height: 36px; }
    .info-content h4 { font-size: 13px; }
    .info-content p { font-size: 11px; }
    .contact-social { padding-top: 14px; }
    .contact-social h3 { font-size: 13px; margin-bottom: 10px; }
    .social-icons { gap: 8px; }
    .social-icon { font-size: 18px; width: 36px; height: 36px; }
    .social-icon:hover { transform: none; }
    .faq-section { margin-bottom: 28px; }
    .faq-section .section-title { margin-bottom: 18px; }
    .faq-grid { grid-template-columns: 1fr; gap: 12px; }
    .faq-card { padding: 15px; }
    .faq-card h4 { font-size: 13px; }
    .faq-card p { font-size: 11px; }
    .submit-btn { font-size: 14px; padding: 12px 18px; }
    .submit-btn:hover { transform: none; }
    .game-card:hover { transform: none; }
    .feature-card:hover { transform: none; }
}

/* ============================================================
   🎪 UTILITY: Text Ellipsis
   ============================================================ */
.text-ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   🎪 TOAST NOTIFICATION
   ============================================================ */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    max-width: 500px;
    background: var(--dark-bg);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    z-index: 9999;
    box-shadow: var(--shadow-xl);
    font-family: var(--font-family);
    border: 3px solid var(--secondary-color);
}

/* ============================================================
   🎪 PAGINATION - Cartoon Style!
   ============================================================ */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0 10px;
}

.pagination {
    display: inline-block;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-item {
    display: inline-flex;
    align-items: center;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    border: 3px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 800;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.08);
    cursor: pointer;
}

.pagination-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 5px 5px 0 rgba(255,107,53,0.25);
}

.pagination-link:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 2px 2px 0 rgba(255,107,53,0.2);
}

/* Current / Active Page */
.pagination-item.active .pagination-link,
.pagination-link.current {
    background: var(--gradient-fun);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    color: var(--white);
    border-color: transparent;
    box-shadow: 5px 5px 0 rgba(200,50,30,0.25);
    transform: translateY(-2px) scale(1.05);
}

.pagination-item.active .pagination-link:hover,
.pagination-link.current:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 7px 7px 0 rgba(200,50,30,0.3);
}

/* Previous / Next Arrows */
.pagination-link.prev,
.pagination-link.next {
    font-size: 22px;
    font-weight: 900;
    padding: 0;
    min-width: 44px;
}

/* Disabled Previous/Next */
.pagination-link.disabled {
    background: var(--gray-100);
    color: var(--gray-300);
    border-color: var(--gray-200);
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
    transform: none;
}

.pagination-link.disabled:hover {
    background: var(--gray-100);
    color: var(--gray-300);
    border-color: var(--gray-200);
    transform: none;
    box-shadow: none;
}

/* Pagination Ellipsis (if needed) */
.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .pagination-container {
        padding: 20px 0 5px;
    }

    .pagination-list {
        gap: 6px;
    }

    .pagination-link {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
        border-radius: 10px;
    }

    .pagination-link.prev,
    .pagination-link.next {
        font-size: 18px;
        min-width: 38px;
    }
}

@media (max-width: 480px) {
    .pagination-list {
        gap: 4px;
    }

    .pagination-link {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        border-radius: 8px;
        border-width: 2px;
    }

    .pagination-link.prev,
    .pagination-link.next {
        font-size: 16px;
        min-width: 34px;
    }
}

/* ============================================================
   🎪 ERROR MESSAGE CONTAINER
   ============================================================ */
.error-message-container {
    background: #FFF3CD;
    border-bottom: 3px solid #FFEAA7;
    padding: 10px 0;
}
