/* Optimized font loading - only essential weights */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;800&family=Rajdhani:wght@500;700&display=swap');

:root {
    --primary: #E88036;
    --primary-light: #FFA94D;
    --primary-dark: #C96A2B;
    --primary-glow: rgba(232, 128, 54, 0.6);
    --primary-gradient: linear-gradient(135deg, #E88036 0%, #FFA94D 25%, #E88036 50%, #FFD700 75%, #E88036 100%);
    --secondary: #5CB4B4;
    --secondary-light: #7DD4D4;
    --secondary-dark: #3D9494;
    --secondary-glow: rgba(92, 180, 180, 0.5);
    --dark: #2D3038;
    --darker: #1a1c22;
    --darkest: #0d0e12;
    --light: #F0F4F7;
    --light-dim: rgba(240, 244, 247, 0.6);
    --gold: #FFD700;
    --gold-light: #FFE55C;
    --gold-glow: rgba(255, 215, 0, 0.5);
    --glass: rgba(30, 32, 40, 0.85);
    --glass-light: rgba(45, 48, 56, 0.6);
    --glass-border: rgba(232, 128, 54, 0.2);
    --success: #00FF88;
    --success-glow: rgba(0, 255, 136, 0.5);
    --danger: #FF3366;
    --danger-glow: rgba(255, 51, 102, 0.5);
    --neon-blue: #00D4FF;
    --neon-purple: #A855F7;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    color: var(--light);
    background: var(--darkest);
    overflow-x: hidden;
    padding-bottom: 100px;
    line-height: 1.5;
}

::selection {
    background: var(--primary);
    color: var(--darkest);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
}

.ultra-bg {
    position: fixed;
    inset: 0;
    z-index: -100;
    background: 
        radial-gradient(ellipse 120% 80% at 10% 10%, rgba(232, 128, 54, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 100% 60% at 90% 90%, rgba(92, 180, 180, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 80% 80% at 50% 0%, rgba(255, 215, 0, 0.03) 0%, transparent 40%),
        radial-gradient(ellipse 60% 60% at 50% 100%, rgba(232, 128, 54, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #080910 0%, #0d0e12 30%, #12141a 70%, #0d0e12 100%);
    animation: bg-shift 20s ease-in-out infinite;
}

@keyframes bg-shift {
    0%, 100% { filter: hue-rotate(0deg) brightness(1); }
    50% { filter: hue-rotate(5deg) brightness(1.05); }
}

#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: -90;
    pointer-events: none;
}

.cyber-grid {
    position: fixed;
    inset: 0;
    z-index: -95;
    background-image: 
        linear-gradient(rgba(232, 128, 54, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 128, 54, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
    animation: grid-pulse 8s ease-in-out infinite;
}

@keyframes grid-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.aurora-effect {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -85;
    background: 
        conic-gradient(from 0deg at 25% 25%, transparent 0deg, rgba(232, 128, 54, 0.03) 45deg, transparent 90deg),
        conic-gradient(from 180deg at 75% 75%, transparent 0deg, rgba(92, 180, 180, 0.02) 45deg, transparent 90deg),
        conic-gradient(from 90deg at 50% 50%, transparent 0deg, rgba(255, 215, 0, 0.015) 30deg, transparent 60deg);
    animation: aurora-spin 60s linear infinite;
    pointer-events: none;
}

@keyframes aurora-spin {
    100% { transform: rotate(360deg); }
}

.floating-orbs {
    position: fixed;
    inset: 0;
    z-index: -80;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orb-float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 128, 54, 0.08) 0%, transparent 70%);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(92, 180, 180, 0.06) 0%, transparent 70%);
    top: 60%;
    right: -5%;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    bottom: 20%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(20px, 40px) scale(0.95); }
    75% { transform: translate(-30px, 20px) scale(1.05); }
}


#mouseGlow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 128, 54, 0.06) 0%, rgba(255, 215, 0, 0.02) 30%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -50;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
    opacity: 0;
    mix-blend-mode: screen;
}

#mouseGlow.active {
    opacity: 1;
}

#app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(13, 14, 18, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(232, 128, 54, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 9000;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.02) inset;
    transition: all 0.4s var(--transition-smooth);
}

#app-header.scrolled {
    height: 65px;
    background: rgba(13, 14, 18, 0.95);
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(232, 128, 54, 0.05);
}

#app-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 20%, var(--gold) 50%, var(--primary) 80%, transparent 100%);
    opacity: 0.4;
    animation: header-line-shimmer 4s ease-in-out infinite;
}

@keyframes header-line-shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.app-logo {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 24px;
    color: var(--light);
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    transition: transform 0.3s var(--transition-elastic);
}

.app-logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 36px;
    animation: logo-float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--primary-glow));
    transition: transform 0.3s var(--transition-elastic);
}

.app-logo:hover .logo-icon {
    animation-play-state: paused;
    transform: rotate(15deg) scale(1.1);
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.logo-text {
    position: relative;
    display: flex;
    align-items: baseline;
}

.logo-text .mario {
    background: var(--primary-gradient);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 4s ease infinite;
    position: relative;
}

.logo-text .mario::after {
    content: 'MARIO';
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-gradient);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 4s ease infinite;
    filter: blur(12px);
    opacity: 0.5;
    z-index: -1;
}

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

.logo-text .bey {
    color: var(--light);
    text-shadow: 
        0 0 15px rgba(240, 244, 247, 0.4),
        0 0 30px rgba(240, 244, 247, 0.2);
    margin-left: 2px;
}

.logo-badge {
    position: absolute;
    top: -12px;
    right: -35px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    background-size: 200% 200%;
    animation: gradient-flow 2s ease infinite, badge-pulse 2s ease-in-out infinite;
    color: var(--darkest);
    font-size: 7px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 15px var(--gold-glow),
        0 0 30px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    50% { transform: scale(1.05) rotate(2deg); }
}

.user-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-btn {
    background: linear-gradient(135deg, rgba(232, 128, 54, 0.12), rgba(92, 180, 180, 0.08));
    border: 1.5px solid var(--primary);
    color: var(--light);
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s var(--transition-elastic);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.user-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.6s ease;
}

.user-btn:hover::before {
    opacity: 1;
}

.user-btn:hover::after {
    transform: rotate(45deg) translateY(100%);
}

.user-btn:hover {
    color: var(--darkest);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(232, 128, 54, 0.35),
        0 0 50px rgba(232, 128, 54, 0.15);
    border-color: transparent;
}

.user-btn:active {
    transform: scale(0.98);
}

.user-btn span {
    position: relative;
    z-index: 1;
}

.user-btn .status-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 10px var(--success-glow);
}

.user-btn .status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--success);
    animation: ripple-out 1.5s ease-out infinite;
}

@keyframes ripple-out {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: rgba(13, 14, 18, 0.92);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-top: 1px solid rgba(232, 128, 54, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px 12px;
    z-index: 9000;
    box-shadow: 
        0 -10px 50px rgba(0, 0, 0, 0.4),
        0 -1px 0 rgba(255, 255, 255, 0.02) inset;
}

#bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 30%, var(--gold) 50%, var(--primary) 70%, transparent 100%);
    opacity: 0.5;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--light-dim);
    font-family: 'Rajdhani', sans-serif;
    font-size: 9px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 15px;
    transition: all 0.4s var(--transition-elastic);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-width: 50px;
}

.nav-item .nav-icon {
    font-size: 22px;
    margin-bottom: 5px;
    transition: all 0.4s var(--transition-elastic);
    filter: grayscale(20%) brightness(0.9);
}

.nav-item.active,
.nav-item:hover {
    color: var(--primary);
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
    transform: scale(1.25) translateY(-6px);
    filter: 
        grayscale(0%) brightness(1.1)
        drop-shadow(0 0 12px var(--primary-glow))
        drop-shadow(0 0 25px var(--primary-glow));
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 35px;
    height: 4px;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradient-flow 2s ease infinite;
    border-radius: 10px;
    box-shadow: 0 0 20px var(--primary-glow);
}

.nav-item.special {
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradient-flow 3s ease infinite;
    color: var(--darkest);
    border-radius: 50%;
    width: 75px;
    height: 75px;
    margin-top: -40px;
    box-shadow: 
        0 8px 35px var(--primary-glow),
        0 0 60px rgba(232, 128, 54, 0.25),
        inset 0 3px 0 rgba(255,255,255,0.3),
        inset 0 -3px 10px rgba(0,0,0,0.2);
    border: 3px solid rgba(255,255,255,0.25);
    position: relative;
}

.nav-item.special::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0.3;
    animation: special-ring 2s ease-in-out infinite;
}

@keyframes special-ring {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

.nav-item.special .nav-icon {
    font-size: 34px;
    filter: none !important;
    animation: special-bounce 2.5s ease-in-out infinite;
    margin-bottom: 0;
}

.nav-item.special .nav-icon.mario-head {
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
}

.nav-item.special .nav-icon.mario-head img {
    background: transparent !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    mix-blend-mode: multiply;
}

.nav-item.special .nav-icon.mario-head svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

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

.nav-item.special span:last-child {
    display: none;
}

.nav-item.special::after {
    display: none;
}

.nav-item.special:hover {
    transform: scale(1.1);
    box-shadow: 
        0 15px 50px var(--primary-glow),
        0 0 80px rgba(232, 128, 54, 0.35);
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 20px;
    position: relative;
    z-index: 1;
}

.hero-section {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: 
        radial-gradient(circle, rgba(232, 128, 54, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.06) 0%, transparent 30%),
        radial-gradient(circle at 70% 30%, rgba(92, 180, 180, 0.04) 0%, transparent 30%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: hero-glow-pulse 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes hero-glow-pulse {
    0%, 100% { 
        opacity: 0.5; 
        transform: translate(-50%, -50%) scale(1) rotate(0deg); 
    }
    50% { 
        opacity: 0.8; 
        transform: translate(-50%, -50%) scale(1.2) rotate(5deg); 
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(232, 128, 54, 0.08));
    border: 1.5px solid var(--gold);
    color: var(--gold);
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 30px;
    box-shadow: 
        0 0 30px var(--gold-glow),
        inset 0 0 25px rgba(255, 215, 0, 0.08);
    text-transform: uppercase;
    animation: badge-float 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

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

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(42px, 11vw, 80px);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.hero-title .line1 {
    display: block;
    color: var(--light);
    text-shadow: 
        0 0 30px rgba(240, 244, 247, 0.4),
        0 0 60px rgba(240, 244, 247, 0.2);
    animation: title-glow 4s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% { text-shadow: 0 0 30px rgba(240, 244, 247, 0.4), 0 0 60px rgba(240, 244, 247, 0.2); }
    50% { text-shadow: 0 0 40px rgba(240, 244, 247, 0.6), 0 0 80px rgba(240, 244, 247, 0.3); }
}

.hero-title .line2 {
    display: block;
    background: var(--primary-gradient);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 4s ease infinite;
    position: relative;
}

.hero-title .line2::after {
    content: 'SALONU';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: var(--primary-gradient);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 4s ease infinite;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--light-dim);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 500;
    animation: fade-in-up 1s ease 0.3s both;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradient-flow 3s ease infinite;
    color: var(--darkest);
    padding: 22px 55px;
    border-radius: 60px;
    font-family: 'Orbitron', monospace;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s var(--transition-elastic);
    box-shadow: 
        0 12px 45px var(--primary-glow),
        0 0 70px rgba(232, 128, 54, 0.25),
        inset 0 3px 0 rgba(255,255,255,0.35);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.25);
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.6s ease;
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-cta:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 
        0 25px 60px var(--primary-glow),
        0 0 100px rgba(232, 128, 54, 0.35);
}

.hero-cta:active {
    transform: scale(0.98);
}

.hero-cta .cta-icon {
    font-size: 24px;
    animation: cta-bounce 1.5s ease-in-out infinite;
}

@keyframes cta-bounce {
    0%, 100% { transform: translateX(0) scale(1); }
    50% { transform: translateX(6px) scale(1.1); }
}

.featured-game {
    background: 
        linear-gradient(145deg, rgba(232, 128, 54, 0.08), rgba(13, 14, 18, 0.95)),
        radial-gradient(ellipse at top right, rgba(255, 215, 0, 0.08), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(92, 180, 180, 0.04), transparent 50%);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--primary), var(--gold), var(--secondary), var(--primary)) 1;
    border-radius: 35px;
    padding: 50px 35px;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 100px rgba(232, 128, 54, 0.12),
        0 30px 80px rgba(0, 0, 0, 0.45),
        inset 0 0 120px rgba(232, 128, 54, 0.02);
}

.featured-game::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(232, 128, 54, 0.08) 30deg, transparent 60deg);
    animation: featured-rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes featured-rotate {
    100% { transform: rotate(360deg); }
}

.featured-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    background-size: 200% 200%;
    animation: gradient-flow 2s ease infinite;
    color: var(--darkest);
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 
        0 8px 30px var(--gold-glow),
        0 0 50px rgba(255, 215, 0, 0.3);
    z-index: 2;
}

.featured-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.featured-icon {
    font-size: 120px;
    margin-bottom: 25px;
    display: inline-block;
    animation: featured-float 5s ease-in-out infinite;
    filter: 
        drop-shadow(0 0 40px var(--primary-glow))
        drop-shadow(0 0 80px rgba(232, 128, 54, 0.25));
}

@keyframes featured-float {
    0%, 100% { transform: translateY(0) rotate(-5deg) scale(1); }
    25% { transform: translateY(-20px) rotate(0deg) scale(1.05); }
    50% { transform: translateY(-8px) rotate(5deg) scale(1); }
    75% { transform: translateY(-25px) rotate(0deg) scale(1.03); }
}

.featured-title {
    font-family: 'Orbitron', monospace;
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 18px;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 3s ease infinite;
    letter-spacing: 4px;
}

.featured-desc {
    color: var(--light-dim);
    margin-bottom: 30px;
    font-size: 17px;
    line-height: 1.7;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light), var(--secondary));
    background-size: 200% 200%;
    animation: gradient-flow 3s ease infinite;
    color: var(--darkest);
    padding: 20px 50px;
    border-radius: 50px;
    font-family: 'Orbitron', monospace;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s var(--transition-elastic);
    box-shadow: 
        0 10px 40px var(--secondary-glow),
        inset 0 3px 0 rgba(255,255,255,0.35);
    border: 2px solid rgba(255,255,255,0.25);
    position: relative;
    overflow: hidden;
}

.featured-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.6s ease;
}

.featured-btn:hover::before {
    left: 100%;
}

.featured-btn:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 
        0 20px 55px var(--secondary-glow),
        0 0 80px rgba(92, 180, 180, 0.3);
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 800;
    margin: 60px 0 30px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-title::before {
    content: '';
    width: 6px;
    height: 40px;
    background: var(--primary-gradient);
    background-size: 100% 200%;
    animation: bar-shimmer 2s ease-in-out infinite;
    border-radius: 10px;
    box-shadow: 0 0 20px var(--primary-glow);
}

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

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

.game-card {
    background: 
        linear-gradient(155deg, var(--glass), rgba(18, 20, 26, 0.92)),
        radial-gradient(ellipse at top, rgba(232, 128, 54, 0.04), transparent 70%);
    border: 1.5px solid rgba(232, 128, 54, 0.12);
    border-radius: 28px;
    padding: 28px 22px;
    text-decoration: none;
    color: var(--light);
    transition: all 0.5s var(--transition-elastic);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.04);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, transparent 30%, rgba(232, 128, 54, 0.12) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 28px;
}

.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: 0.7s ease;
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:hover::after {
    left: 150%;
}

.game-card:hover {
    transform: translateY(-15px) scale(1.02) rotateX(5deg);
    border-color: var(--primary);
    box-shadow: 
        0 35px 80px rgba(0, 0, 0, 0.35),
        0 0 60px rgba(232, 128, 54, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.game-card:active {
    transform: scale(0.98);
}

.card-icon-wrap {
    position: relative;
    margin-bottom: 18px;
}

.card-icon {
    width: 85px;
    height: 85px;
    background: 
        linear-gradient(155deg, var(--darker), var(--darkest)),
        radial-gradient(circle at 30% 30%, rgba(232, 128, 54, 0.15), transparent);
    border: 2.5px solid var(--primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(232, 128, 54, 0.12),
        inset 0 3px 0 rgba(255,255,255,0.08),
        inset 0 -6px 20px rgba(0,0,0,0.25);
    transition: all 0.5s var(--transition-elastic);
    position: relative;
    transform-style: preserve-3d;
}

.card-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradient-flow 3s ease infinite;
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.game-card:hover .card-icon {
    transform: rotateY(15deg) rotateX(10deg) scale(1.12) translateZ(25px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 60px var(--primary-glow),
        inset 0 3px 0 rgba(255,255,255,0.12);
}

.game-card:hover .card-icon::before {
    opacity: 0.3;
}

.card-title {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.game-card:hover .card-title {
    color: var(--primary);
}

.card-desc {
    font-size: 12px;
    color: var(--light-dim);
}

.card-status {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 12px var(--danger-glow);
    transition: all 0.3s ease;
}

.card-status.live {
    background: var(--success);
    box-shadow: 0 0 18px var(--success-glow);
    animation: status-pulse 1.5s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 18px var(--success-glow); 
    }
    50% { 
        transform: scale(1.4); 
        box-shadow: 0 0 30px var(--success-glow), 0 0 50px rgba(0, 255, 136, 0.25); 
    }
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid var(--glass-border);
    border-radius: 28px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.live-banner {
    background: 
        linear-gradient(135deg, rgba(232, 128, 54, 0.15), rgba(92, 180, 180, 0.08)),
        radial-gradient(ellipse at center, rgba(232, 128, 54, 0.08), transparent);
    border: 1.5px solid var(--primary);
    border-radius: 50px;
    padding: 16px 35px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 13px;
    color: var(--primary);
    box-shadow: 
        0 0 40px var(--primary-glow),
        inset 0 0 25px rgba(232, 128, 54, 0.08);
    animation: live-glow 2.5s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes live-glow {
    0%, 100% { 
        box-shadow: 0 0 40px var(--primary-glow), inset 0 0 25px rgba(232, 128, 54, 0.08); 
    }
    50% { 
        box-shadow: 0 0 60px var(--primary-glow), 0 0 100px rgba(232, 128, 54, 0.15), inset 0 0 35px rgba(232, 128, 54, 0.12); 
    }
}

.live-banner .dot {
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 15px var(--primary-glow);
}

.live-banner .dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: ripple-out 1.5s ease-out infinite;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: modal-bg-in 0.4s ease;
}

@keyframes modal-bg-in {
    from { opacity: 0; backdrop-filter: blur(0); }
    to { opacity: 1; backdrop-filter: blur(20px); }
}

.modal-box {
    background: 
        linear-gradient(155deg, var(--dark), var(--darker)),
        radial-gradient(ellipse at top, rgba(232, 128, 54, 0.08), transparent);
    border: 2px solid var(--primary);
    border-radius: 35px;
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 
        0 0 100px rgba(232, 128, 54, 0.25),
        0 40px 100px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.08);
    animation: modal-in 0.5s var(--transition-elastic);
}

@keyframes modal-in {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(40px) rotateX(15deg); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0) rotateX(0); 
    }
}

.modal-title {
    font-family: 'Orbitron', monospace;
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 35px;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradient-flow 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
}

.modal-input {
    width: 100%;
    padding: 20px 28px;
    background: var(--darkest);
    border: 2px solid rgba(232, 128, 54, 0.25);
    border-radius: 18px;
    color: var(--light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 22px;
    text-align: center;
    transition: all 0.4s ease;
    letter-spacing: 1px;
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 
        0 0 40px rgba(232, 128, 54, 0.25),
        inset 0 0 25px rgba(232, 128, 54, 0.04);
}

.modal-input::placeholder {
    color: var(--light-dim);
}

.modal-btn {
    width: 100%;
    padding: 20px;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradient-flow 3s ease infinite;
    border: none;
    border-radius: 18px;
    color: var(--darkest);
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s var(--transition-elastic);
    box-shadow: 
        0 10px 35px var(--primary-glow),
        inset 0 3px 0 rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s ease;
}

.modal-btn:hover::before {
    left: 100%;
}

.modal-btn:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 50px var(--primary-glow),
        inset 0 3px 0 rgba(255,255,255,0.3);
}

.modal-btn:active {
    transform: scale(0.98);
}

.modal-close {
    margin-top: 28px;
    color: var(--light-dim);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.modal-close:hover {
    color: var(--light);
    text-shadow: 0 0 20px rgba(240, 244, 247, 0.4);
}

.user-dropdown {
    position: absolute;
    top: 85px;
    right: 25px;
    background: var(--dark);
    border: 1.5px solid var(--glass-border);
    border-radius: 22px;
    width: 230px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(232, 128, 54, 0.08);
    z-index: 9100;
}

.user-dropdown.active {
    display: flex;
    animation: dropdown-in 0.4s var(--transition-elastic);
}

@keyframes dropdown-in {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ud-item {
    padding: 20px 25px;
    color: var(--light-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ud-item:hover {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    color: var(--darkest);
}

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

#chat-fab {
    position: fixed;
    bottom: 110px;
    right: 22px;
    width: 65px;
    height: 65px;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradient-flow 3s ease infinite;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 8000;
    box-shadow: 
        0 10px 40px var(--primary-glow),
        0 0 60px rgba(232, 128, 54, 0.25);
    transition: all 0.4s var(--transition-elastic);
    border: 3px solid rgba(255,255,255,0.2);
}

#chat-fab:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 
        0 15px 50px var(--primary-glow),
        0 0 80px rgba(232, 128, 54, 0.35);
}

.chat-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--darkest);
    box-shadow: 0 0 20px var(--danger-glow);
}

.chat-badge.visible {
    display: flex;
    animation: badge-pop 0.4s var(--transition-elastic);
}

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

.chat-panel {
    position: fixed;
    bottom: 190px;
    right: 22px;
    width: 380px;
    height: 480px;
    background: var(--dark);
    border: 1.5px solid var(--glass-border);
    border-radius: 28px;
    display: none;
    flex-direction: column;
    z-index: 8000;
    overflow: hidden;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(232, 128, 54, 0.08);
}

.chat-panel.active {
    display: flex;
    animation: chat-in 0.4s var(--transition-elastic);
}

@keyframes chat-in {
    from { opacity: 0; transform: translateY(40px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(232, 128, 54, 0.12), transparent);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 1px;
}

.chat-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.c-msg {
    background: rgba(255, 255, 255, 0.04);
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 14px;
    animation: msg-in 0.4s ease;
    border: 1px solid rgba(255,255,255,0.02);
}

@keyframes msg-in {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.c-msg b {
    color: var(--secondary);
    margin-right: 10px;
    font-weight: 700;
}

.c-msg.admin {
    background: linear-gradient(135deg, rgba(232, 128, 54, 0.12), rgba(232, 128, 54, 0.04));
    border-left: 4px solid var(--primary);
    border-radius: 4px 18px 18px 4px;
}

.c-msg.admin b {
    color: var(--primary);
}

.chat-input-area {
    display: flex;
    padding: 18px;
    background: var(--darker);
    border-top: 1px solid var(--glass-border);
    gap: 14px;
}

.chat-input {
    flex: 1;
    padding: 16px 22px;
    background: var(--dark);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    color: var(--light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(232, 128, 54, 0.15);
}

.chat-send {
    width: 55px;
    height: 55px;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradient-flow 3s ease infinite;
    border: none;
    border-radius: 50%;
    color: var(--darkest);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--transition-elastic);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px var(--primary-glow);
}

.footer-section {
    text-align: center;
    padding: 60px 20px;
    margin-top: 60px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 400px;
    margin: 0 auto 50px;
}

.f-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.4s var(--transition-elastic);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.f-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s ease;
}

.f-btn:hover::before {
    left: 100%;
}

.f-tg {
    background: linear-gradient(135deg, #229ED9, #1a7fb5);
    color: white;
    box-shadow: 
        0 10px 35px rgba(34, 158, 217, 0.35),
        inset 0 2px 0 rgba(255,255,255,0.2);
}

.f-site {
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradient-flow 3s ease infinite;
    color: var(--darkest);
    box-shadow: 
        0 10px 35px var(--primary-glow),
        inset 0 2px 0 rgba(255,255,255,0.3);
}

.f-btn:hover {
    transform: translateY(-6px) scale(1.02);
}

.copyright {
    color: var(--light-dim);
    font-size: 12px;
    opacity: 0.4;
    letter-spacing: 1px;
}

.game-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 14, 18, 0.97);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px;
}

.game-overlay .status-msg {
    font-family: 'Orbitron', monospace;
    font-size: 36px;
    font-weight: 900;
    color: var(--danger);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 30px;
    text-shadow: 0 0 40px var(--danger-glow);
    animation: status-flash 2s ease-in-out infinite;
}

@keyframes status-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.game-overlay .join-btn {
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradient-flow 3s ease infinite;
    color: var(--darkest);
    padding: 24px 70px;
    border: none;
    border-radius: 60px;
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    box-shadow: 
        0 15px 50px var(--primary-glow),
        inset 0 3px 0 rgba(255,255,255,0.3);
    transition: all 0.4s var(--transition-elastic);
    border: 3px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.game-overlay .join-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.6s ease;
}

.game-overlay .join-btn:hover::before {
    left: 100%;
}

.game-overlay .join-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 25px 70px var(--primary-glow),
        inset 0 3px 0 rgba(255,255,255,0.3);
}

.game-overlay .join-btn:active {
    transform: scale(0.98);
}

.result-list {
    background: var(--glass);
    border: 1.5px solid var(--glass-border);
    border-radius: 28px;
    padding: 28px;
    margin-top: 28px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.result-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 13px;
    color: var(--primary);
    letter-spacing: 1px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 14px;
    transition: background 0.3s ease;
}

.result-item:hover {
    background: rgba(232, 128, 54, 0.05);
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 10px;
}

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

.result-item .name {
    color: var(--light);
    font-weight: 600;
}

.result-item .value {
    color: var(--secondary);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

@media (max-width: 768px) {
    .chat-panel {
        width: calc(100% - 44px);
        right: 22px;
        left: 22px;
        bottom: 190px;
        height: 400px;
    }
    
    .user-dropdown {
        right: 15px;
        width: 210px;
    }
    
    .hero-section {
        padding: 50px 15px 35px;
    }
    
    .featured-game {
        padding: 35px 25px;
    }
    
    .featured-icon {
        font-size: 85px;
    }
    
    .featured-title {
        font-size: 26px;
    }
    
    .hero-cta {
        padding: 20px 45px;
        font-size: 14px;
    }
}

.page-content {
    padding: 100px 20px 25px;
    max-width: 680px;
    margin: 0 auto;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

.game-container {
    background: 
        linear-gradient(155deg, var(--glass), rgba(18, 20, 26, 0.94)),
        radial-gradient(ellipse at top, rgba(232, 128, 54, 0.06), transparent 60%);
    border: 1.5px solid var(--glass-border);
    border-radius: 38px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 30px 100px rgba(0, 0, 0, 0.45),
        0 0 80px rgba(232, 128, 54, 0.04),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--gold), var(--primary), transparent);
    opacity: 0.5;
}

.game-title {
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 12px;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 3s ease infinite;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.game-subtitle {
    text-align: center;
    color: var(--light-dim);
    font-size: 16px;
    margin-bottom: 35px;
    font-weight: 500;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 13px;
    margin-top: auto;
    padding-top: 30px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.back-link:hover {
    gap: 18px;
    text-shadow: 0 0 25px var(--primary-glow);
}

@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(1080deg); opacity: 0; }
}

.confetti {
    position: fixed;
    top: -20px;
    z-index: 9999;
    animation: confetti-fall 4s linear forwards;
    pointer-events: none;
}

.premium-toast {
    position: fixed;
    top: 105px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    pointer-events: none;
}

/* ========================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Disable heavy effects on mobile and tablets */
@media (max-width: 1024px), (hover: none) {
    /* Disable particles, aurora, orbs on mobile */
    #particles-canvas,
    .aurora-effect,
    .floating-orbs,
    .orb,
    .cyber-grid {
        display: none !important;
    }
    
    /* Reduce blur effects - major performance drain */
    #app-header,
    #bottom-nav,
    .chat-panel,
    .modal-overlay,
    .user-dropdown,
    .bet-screen {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Simplify backgrounds */
    .ultra-bg {
        background: linear-gradient(180deg, #080910 0%, #0d0e12 50%, #12141a 100%) !important;
        animation: none !important;
    }
    
    /* Disable mouse glow on mobile */
    #mouseGlow {
        display: none !important;
    }
    
    
    /* Simplify card hover effects */
    .game-card:hover {
        transform: translateY(-5px) !important;
    }
    
    .game-card:hover .card-icon {
        transform: scale(1.05) !important;
    }
    
    /* Disable complex animations */
    .hero-glow,
    .hero-mega-glow {
        animation: none !important;
        opacity: 0.3 !important;
    }
    
    /* Simplify gradient animations */
    .logo-text .mario::after,
    .hero-title .line2::after,
    .stat-value::after {
        display: none !important;
    }
    
    /* Reduce glow effects */
    .featured-icon {
        filter: drop-shadow(0 0 10px var(--primary-glow)) !important;
        animation: none !important;
    }
    
    .featured-game::before {
        animation: none !important;
        display: none !important;
    }
    
    /* Simplify button animations */
    .hero-cta::before,
    .modal-btn::before,
    .featured-btn::before,
    .f-btn::before {
        display: none !important;
    }
}

/* Extra optimizations for smaller mobile screens */
@media (max-width: 480px) {
    
    /* Simplify floating icons */
    .floating-icons {
        display: none !important;
    }
    
    /* Reduce gradient animation intensity */
    .hero-title .line2,
    .game-title,
    .featured-title,
    .modal-title,
    .logo-text .mario {
        animation: none !important;
        background-size: 100% 100% !important;
    }
    
    /* Simplify live banner */
    .live-banner {
        animation: none !important;
    }
    
    /* Simplify nav special button */
    .nav-item.special::before {
        display: none !important;
    }
    
    .nav-item.special .nav-icon {
        animation: none !important;
    }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    #particles-canvas,
    .aurora-effect,
    .floating-orbs,
    .cyber-grid,
    #mouseGlow {
        display: none !important;
    }
}
/* --- Loto Topu ve Animasyonlar --- */
.loto-container {
    perspective: 1000px;
    margin: 20px auto;
    width: 200px;
    height: 200px;
    position: relative;
}

.main-ball {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 30% 30%, #ff4b1f, #ff9068);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 0 20px rgba(255,255,255,0.2);
    margin: 0 auto;
    transition: all 0.5s ease;
}

/* Sallanma/Karıştırma Efekti */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.shaking {
    animation: shake 0.5s infinite;
    background: radial-gradient(circle at 30% 30%, #cccccc, #999999); /* Karışırken grileşsin */
}

/* Top Çıkma Efekti */
@keyframes popIn {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    80% { transform: scale(1.1) rotate(10deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); }
}

.pop-in {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* --- Kullanıcı Alt Paneli (Sticky Footer) --- */
.user-progress-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-top: 4px solid #ff4b1f;
    padding: 15px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.my-ticket-numbers {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.ticket-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #555;
}

.ticket-num.hit {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}
