/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Variables */
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --card-bg: #1f1f1f;
    --card-hover: #2a2a2a;
    --border-color: #374151;
    --border-accent: #7DD321;
    
    /* Lime Green Palette */
    --lime-primary: #B8FF3C;
    --lime-hover: #A8E832;
    --lime-dark: #98D028;

    /* Neon Cyan Palette */
    --focus-cyan: #00E5FF;
    --focus-cyan-hover: #24F0FF;
    --focus-cyan-shadow: rgba(0, 229, 255, 0.2);
    
    /* Green Palette */
    --green-primary: #7DD321;
    --green-dark: #6BC017;
    --green-accent: #85E028;
    
    /* Accent Colors */
    --accent-red: #dc2626;
    --accent-red-dark: #991b1b;
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --text-muted: #6b7280;
    --text-accent: #B8FF3C;
    
    /* Button Colors */
    --button-primary: #B8FF3C;
    --button-hover: #A8E832;
    --button-text: #0a0a0a;
    
    /* Scrollbar Colors */
    --scrollbar-track: #0a0a0a;
    --scrollbar-thumb: #7DD321;
    --scrollbar-thumb-hover: #85E028;
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Oswald', sans-serif;
    
    /* Spacing */
    --container-max-width: 1280px;
    --section-padding: 3rem 0;
    --card-padding: 1.5rem;
    --button-padding: 0.75rem 1.5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(184, 255, 60, 0.3);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(180deg, var(--primary-bg) 0%, var(--secondary-bg) 50%, var(--primary-bg) 100%);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
}

/* Улучшенный Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Container с улучшенной адаптивностью */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Улучшенные кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--button-padding);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 0.875rem;
    white-space: nowrap;
    user-select: none;
    will-change: transform;
}

.btn:focus {
    outline: 2px solid var(--focus-cyan);
    outline-offset: 2px;
}

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

.btn-primary {
    background: var(--button-primary);
    color: var(--button-text);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--green-primary);
    border: 2px solid var(--green-primary);
}

.btn-secondary:hover {
    background: var(--green-primary);
    color: var(--primary-bg);
}

.btn-hero {
    background: var(--accent-red);
    color: var(--text-white);
    font-size: 1.125rem;
    padding: 1rem 2rem;
    font-weight: 800;
}

.btn-hero:hover {
    background: var(--accent-red-dark);
    transform: scale(1.05);
}

.btn-jackpot {
    background: linear-gradient(135deg, var(--lime-primary), var(--green-primary));
    color: var(--button-text);
    font-size: 1.25rem;
    padding: 1.25rem 2.5rem;
    font-weight: 800;
}

.btn-jackpot:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* Улучшенный Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--focus-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--focus-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.btn-login {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    border-color: var(--focus-cyan);
    color: var(--focus-cyan);
}

.btn-signup {
    background: var(--button-primary);
    color: var(--button-text);
}

.btn-signup:hover {
    background: var(--button-hover);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* Улучшенное мобильное меню */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding: 2rem 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-nav-list {
    list-style: none;
    margin-bottom: 2rem;
}

.mobile-nav-link {
    display: block;
    color: var(--text-white);
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
    font-size: 1.125rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--text-accent);
    padding-left: 1rem;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-actions .btn {
    width: 100%;
    padding: 1rem;
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

/* ИСПРАВЛЕННЫЙ Hero Section - БЕЗ ДВИЖЕНИЯ */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--primary-bg);
    overflow: hidden;
    padding: var(--section-padding);
}

/* Убираем fixed позицию для фонового элемента */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%237DD321" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    max-width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    color: var(--accent-red);
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--text-white);
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.samurai-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
}

/* Улучшенные Feature Boxes */
.feature-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.feature-box:hover {
    background: var(--card-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(184, 255, 60, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(184, 255, 60, 0.1);
    border-radius: var(--radius-lg);
}

.feature-content {
    flex: 1;
}

.feature-title {
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.feature-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.feature-arrow {
    color: var(--text-accent);
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-arrow {
    transform: translateX(5px);
}

/* Section Titles */
.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--text-white);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Game Categories с улучшенной адаптивностью */
.game-categories {
    padding: var(--section-padding);
    background: var(--secondary-bg);
    position: relative;
    z-index: 1;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.category-card:hover {
    background: var(--card-hover);
    border-color: var(--border-accent);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(184, 255, 60, 0.15);
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.category-title {
    color: var(--text-white);
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.category-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Games Section с улучшенной сеткой */
.games-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
    background: var(--primary-bg);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-all-link {
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.view-all-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-accent);
    transition: width 0.3s ease;
}

.view-all-link:hover::after {
    width: 100%;
}

.view-all-link:hover {
    color: var(--green-primary);
}

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

.game-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    position: relative;
}

.game-card:hover {
    background: var(--card-hover);
    transform: translate3d(0, -4px, 0);
    border-color: var(--border-accent);
}

.game-card:hover::before {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.game-image {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-out;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: scale(1);
}

.game-card:hover .game-image img {
    transform: scale(1.03);
}

.game-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.game-badge-new {
    background: var(--text-accent);
    color: var(--button-text);
    box-shadow: 0 2px 8px rgba(184, 255, 60, 0.3);
}

.game-badge-hot {
    background: var(--accent-red);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.game-badge-featured {
    background: var(--green-primary);
    color: var(--button-text);
    box-shadow: 0 2px 8px rgba(125, 211, 33, 0.3);
}

.game-badge-jackpot {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--button-text);
    top: 2.5rem;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.game-info {
    padding: 1.25rem;
    background: var(--card-bg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.game-title {
    color: var(--text-white);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
    flex-grow: 1;
}

.game-provider {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-top: auto;
    font-weight: 500;
}

/* Jackpot Section с улучшенной анимацией */
.jackpot-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.jackpot-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(184, 255, 60, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.jackpot-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.jackpot-title {
    font-size: clamp(2.5rem, 6vw, 3rem);
    color: var(--text-accent);
    margin-bottom: 1rem;
    font-weight: 700;
}

.jackpot-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.jackpot-amount {
    font-size: clamp(3rem, 8vw, 4rem);
    color: var(--accent-red);
    font-weight: 900;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
    font-family: var(--font-display);
}

/* Content Section */
.content-section {
    padding: var(--section-padding);
    background: var(--secondary-bg);
    position: relative;
    z-index: 1;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    color: var(--text-accent);
    font-size: clamp(1.75rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
}

.content-wrapper h3 {
    color: var(--text-accent);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin: 2rem 0 1rem;
}

.content-wrapper p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1rem;
}

/* Улучшенный Footer */
.site-footer {
    background: var(--primary-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    color: var(--text-accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-subtitle {
    color: var(--text-white);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal p {
    color: var(--text-gray);
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--text-accent);
}

/* Улучшенные модальные окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--text-white);
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--text-white);
    background: var(--border-color);
}

.modal-body {
    padding: 1.5rem;
}

/* Улучшенные формы */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--focus-cyan);
    box-shadow: 0 0 0 3px var(--focus-cyan-shadow);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* УЛУЧШЕННАЯ МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 1024px) {
    .hero-content {
        gap: 3rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 2rem 0;
    }
    
    .main-navigation {
        display: none;
    }
    
    .header-actions {
        display: flex;
        gap: 0.5rem;
    }
    
    .header-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
    
    .feature-boxes {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .feature-box {
        padding: 1.25rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .game-info {
        padding: 1rem;
    }
    
    .game-image {
        height: 240px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-legal {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    .jackpot-amount {
        font-size: clamp(2.5rem, 10vw, 3rem);
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2rem);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-section {
        min-height: 70vh;
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 9vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.875rem, 4vw, 1.125rem);
    }
    
    .btn-hero {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-info {
        padding: 0.875rem;
    }
    
    .game-title {
        font-size: 1rem;
    }
    
    .game-provider {
        font-size: 0.8rem;
    }
    
    .game-image {
        height: 200px;
    }
    
    .feature-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .feature-icon {
        margin-bottom: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
        border-radius: var(--radius-lg);
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .mobile-menu {
        display: none;
    }
    
    .mobile-actions .btn {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
}

/* Анимации с улучшенной производительностью */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(184, 255, 60, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(184, 255, 60, 0.6);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--text-accent);
}

.text-white {
    color: var(--text-white);
}

.text-gray {
    color: var(--text-gray);
}

.bg-primary {
    background: var(--primary-bg);
}

.bg-secondary {
    background: var(--secondary-bg);
}

.bg-card {
    background: var(--card-bg);
}

.border-accent {
    border-color: var(--border-accent);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-full {
    border-radius: var(--radius-full);
}

/* Производительность и оптимизация */
.game-card,
.category-card,
.feature-box,
.btn {
    will-change: transform;
}

.hero-section {
    will-change: auto;
}

/* Дополнительная оптимизация для предотвращения мерцания и дёргания */
.game-card,
.game-image,
.game-image img {
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.game-card {
    contain: layout style paint;
    isolation: isolate;
}

.game-image {
    transform: translateZ(0);
    overflow: hidden;
}

/* Предотвращение reflow при hover */
.games-grid {
    contain: layout;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    transition: box-shadow 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

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

/* ===== MARKDOWN CONTENT STYLES ===== */

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    padding: 4rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Content Section Styles */
.content-section {
    padding: 3rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Markdown Content Styles */
.content-wrapper h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 2rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    font-family: var(--font-display);
}

.content-wrapper h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--lime-primary);
    line-height: 1.3;
    font-family: var(--font-display);
}

.content-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 1.5rem 0 0.75rem;
    line-height: 1.4;
    font-family: var(--font-display);
}

.content-wrapper h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 1.25rem 0 0.5rem;
    line-height: 1.4;
    font-family: var(--font-display);
}

.content-wrapper h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 1rem 0 0.5rem;
    line-height: 1.4;
    font-family: var(--font-display);
}

.content-wrapper h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 1rem 0 0.5rem;
    line-height: 1.4;
    font-family: var(--font-display);
}

.content-wrapper p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

.content-wrapper ul,
.content-wrapper ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-wrapper li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.content-wrapper strong {
    color: var(--text-white);
    font-weight: 600;
}

.content-wrapper em {
    color: var(--text-accent);
    font-style: italic;
}

.content-wrapper blockquote {
    background: var(--card-bg);
    border-left: 4px solid var(--lime-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--text-gray);
    font-family: var(--font-sans);
}

.content-wrapper blockquote p {
    margin: 0;
}

.content-wrapper code {
    background: var(--card-bg);
    color: var(--lime-primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.content-wrapper pre {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.content-wrapper pre code {
    background: none;
    padding: 0;
    color: var(--text-white);
}

.content-wrapper a {
    color: var(--lime-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-wrapper a:hover {
    color: var(--lime-hover);
    text-decoration: underline;
}

.content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-family: var(--font-sans);
}

.content-wrapper th,
.content-wrapper td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.content-wrapper th {
    background: var(--secondary-bg);
    color: var(--text-white);
    font-weight: 600;
}

.content-wrapper tr:hover {
    background: var(--card-hover);
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.content-wrapper hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 2rem 0;
}

/* Улучшенные стили для списков */
.content-wrapper ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

.content-wrapper ol li {
    list-style-type: decimal;
    margin-bottom: 0.5rem;
}

/* Стили для вложенных списков */
.content-wrapper ul ul,
.content-wrapper ol ol,
.content-wrapper ul ol,
.content-wrapper ol ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

/* Стили для выделенного текста */
.content-wrapper mark {
    background: var(--lime-primary);
    color: var(--button-text);
    padding: 0.1rem 0.3rem;
    border-radius: var(--radius-sm);
}

/* Стили для подчеркнутого текста */
.content-wrapper u {
    text-decoration: underline;
    text-decoration-color: var(--lime-primary);
}

/* Стили для зачеркнутого текста */
.content-wrapper del {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Стили для абзацев с изображениями */
.content-wrapper p img {
    display: block;
    margin: 1rem auto;
}

/* Стили для ссылок в заголовках */
.content-wrapper h1 a,
.content-wrapper h2 a,
.content-wrapper h3 a,
.content-wrapper h4 a,
.content-wrapper h5 a,
.content-wrapper h6 a {
    color: inherit;
    text-decoration: none;
}

.content-wrapper h1 a:hover,
.content-wrapper h2 a:hover,
.content-wrapper h3 a:hover,
.content-wrapper h4 a:hover,
.content-wrapper h5 a:hover,
.content-wrapper h6 a:hover {
    color: var(--lime-primary);
}

/* Responsive Design for Markdown Content */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .content-wrapper h1 {
        font-size: 2rem;
        margin: 1.5rem 0 0.75rem;
        line-height: 1.3;
    }
    
    .content-wrapper h2 {
        font-size: 1.75rem;
        margin: 1.5rem 0 0.75rem;
        line-height: 1.4;
    }
    
    .content-wrapper h3 {
        font-size: 1.25rem;
        margin: 1.25rem 0 0.5rem;
        line-height: 1.4;
    }
    
    .content-wrapper h4 {
        font-size: 1.125rem;
        margin: 1rem 0 0.5rem;
    }
    
    .content-wrapper h5 {
        font-size: 1rem;
        margin: 1rem 0 0.5rem;
    }
    
    .content-wrapper h6 {
        font-size: 0.875rem;
        margin: 1rem 0 0.5rem;
    }
    
    .content-wrapper {
        padding: 0 0.5rem;
    }
    
    .content-wrapper ul,
    .content-wrapper ol {
        padding-left: 1.5rem;
    }
    
    .content-wrapper table {
        font-size: 0.875rem;
    }
    
    .content-wrapper th,
    .content-wrapper td {
        padding: 0.5rem 0.75rem;
    }
    
    .content-wrapper blockquote {
        padding: 0.75rem 1rem;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .content-wrapper h1 {
        font-size: 1.75rem;
        margin: 1.25rem 0 0.5rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.5rem;
        margin: 1.25rem 0 0.5rem;
    }
    
    .content-wrapper h3 {
        font-size: 1.125rem;
        margin: 1rem 0 0.5rem;
    }
    
    .content-wrapper p {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    .content-wrapper ul,
    .content-wrapper ol {
        padding-left: 1.25rem;
    }
    
    .content-wrapper li {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .content-wrapper h1 {
        font-size: 1.75rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .content-wrapper {
        padding: 0 0.25rem;
    }
}

/* Loading State for MD Content */
.content-wrapper:empty::before {
    content: 'Loading content...';
    display: block;
    text-align: center;
    color: var(--text-gray);
    font-style: italic;
    padding: 2rem 0;
}

/* Error State for MD Content */
.content-wrapper .error-message {
    background: var(--accent-red);
    color: var(--text-white);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin: 1rem 0;
}

/* Success State for MD Content */
.content-wrapper .success-message {
    background: var(--green-primary);
    color: var(--text-white);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin: 1rem 0;
}

/* Onluck Hero Overrides */
.onluck-hero {
    background: radial-gradient(1200px 600px at 70% 40%, rgba(0, 229, 255, 0.08), transparent 60%),
                radial-gradient(800px 400px at 30% 70%, rgba(184, 255, 60, 0.08), transparent 60%),
                var(--primary-bg);
}

.onluck-hero-img {
    width: 100%;
    max-width: 760px;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

@media (max-width: 1024px) {
    .onluck-hero-img {
        max-width: 560px;
    }
}

@media (max-width: 640px) {
    .onluck-hero-img {
        max-width: 100%;
    }
}