* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Общие стили для максимального качества видео */
video {
    /* Максимальное качество рендеринга */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    /* Включаем аппаратное ускорение */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Убираем фильтры, которые могут ухудшать качество */
    -webkit-filter: none;
    filter: none;
}

:root {
    /* Цветовая палитра */
    --bg-primary: #0B0E14;
    --bg-secondary: #0F1117;
    --bg-card: rgba(15, 17, 23, 0.8);
    --text-primary: #FFFFFF;
    --text-secondary: #B8BCC8;
    --accent-cyan: #00E5FF;
    --accent-magenta: #FF3D71;
    --accent-lime: #A3FF12;
    --accent-blue: #4F46E5;
    --accent-purple: #8B5CF6;
    --accent-orange: #FF6B35;
    --accent-green: #10B981;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --gradient-card: linear-gradient(135deg, rgba(15, 17, 23, 0.9) 0%, rgba(11, 14, 20, 0.8) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    
    /* Тени и свечения */
    --shadow-card: 0 8px 32px rgba(0, 229, 255, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 229, 255, 0.3);
    --shadow-text: 0 0 10px rgba(0, 229, 255, 0.5);
    
    /* Анимации */
    --transition-fast: 120ms ease;
    --transition-normal: 180ms ease;
    --transition-slow: 300ms ease;
    
    /* Размер логотипа в шапке */
    --logo-height: 80px;
    /* Отступ слева у контейнера шапки */
    --header-padding-left: -100px;
    /* Расстояние между логотипом и меню */
    --logo-nav-gap: 40px;
    /* Смещение контейнера шапки по горизонтали */
    --header-left-shift: 5%;
    /* Зазор между меню и поиском/кнопками */
    --nav-actions-gap: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gradient-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #0b0e14; /* фолбэк на случай, если видео не загрузится */
}

/* Удалили фон-видео; контент остаётся без доп. z-index */

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Russo One', sans-serif;
    font-weight: 400;
    line-height: 1.2;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.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: left var(--transition-slow);
}

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

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Фиксированная навигация */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 14, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: rgba(11, 14, 20, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    margin-left: var(--header-left-shift);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Russo One', sans-serif;
    font-size: 24px;
    color: var(--accent-cyan);
    text-shadow: var(--shadow-text);
    margin-right: var(--logo-nav-gap);
}

.logo i {
    font-size: 28px;
}

.logo img {
    height: var(--logo-height);
    width: auto;
    display: block;
}

/* Зазор между меню и поиском */
.nav {
    margin-right: var(--nav-actions-gap);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 48px;
}

.nav-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-fast);
    position: relative;
}

/* Подменю у Games */
.nav-list .has-submenu, .nav-list .menu-item-has-children { position: relative; }
.nav-list .submenu, .nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(11, 14, 20, 0.98);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    z-index: 1001;
    /* Smooth show/hide */
    display: block;            /* keep in flow for transitions */
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 420ms ease, transform 220ms ease, visibility 0s linear 220ms;
    will-change: opacity, transform;
}
.nav-list .submenu, .nav-list .sub-menu li { list-style: none; }
.nav-list .submenu, .nav-list .sub-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--text-primary);
}
.nav-list .submenu, .nav-list .sub-menu a:hover { background: rgba(255,255,255,0.06); }
.nav-list .has-submenu, .nav-list .menu-item-has-children:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s, 0s, 0s;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width var(--transition-normal);
}

.nav-list a:hover {
    color: var(--text-primary);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.language-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    min-width: 80px;
}

.lang-btn-dropdown:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.lang-btn-dropdown i.fa-globe {
    font-size: 16px;
}

.lang-btn-dropdown i.fa-chevron-down {
    font-size: 12px;
    transition: transform var(--transition-normal);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(11, 14, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-normal);
}

.language-switcher:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-switcher:hover .lang-btn-dropdown i.fa-chevron-down {
    transform: rotate(180deg);
}

.lang-option {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background-color var(--transition-normal);
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.lang-option.active {
    background: rgba(255, 107, 53, 0.2);
    color: var(--accent-orange);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
    transition: all var(--transition-normal);
}
.social-link:hover {
    background: rgba(255,255,255,0.18);
    border-color: #000; /* в рамках общих правок border = чёрный */
    color: var(--text-primary);
    transform: translateY(-2px);
}
.social-link--fb i { font-size: 18px; }

.search-container {
    position: relative;
    z-index: 1001;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 36px 10px 40px;
    color: var(--text-primary);
    font-size: 14px;
    width: 280px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
}

/* Кнопка очистки поиска (крестик) */
.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    display: none;
}

.search-clear:hover {
    color: var(--text-primary);
}

/* Hero секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--shadow-text);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.5)); }
    to { filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.8)); }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.event-timer {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

.event-timer span {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.timer {
    font-family: 'Russo One', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-cyan);
    text-shadow: var(--shadow-text);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 61, 113, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(163, 255, 18, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

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

/* Карусель игр */
.games-carousel {
    padding: 120px 0 80px;
    background: var(--bg-secondary);
}

/* Focus of the Month */
.focus-section {
    padding: 40px 0 80px;
    background: var(--bg-primary);
}

.focus-inner {
    width: calc(120% + 24px);
    margin-left: calc(-13% - 23px); /* совмещаем с левым краем карусели, учитывая внутренний отступ контейнера */
}

.focus-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.grid-item {
    display: block;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.grid-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.grid-thumb {
    width: 100%;
    aspect-ratio: 3 / 4; /* вертикальная ориентация */
    background-size: cover;
    background-position: center;
}

/* Hover-cta for Focus cards: delayed "Play Now" button in bottom-left */
.grid-thumb { position: relative; }
.grid-thumb::after {
    content: 'Play Now';
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 10px 16px;
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 300ms ease, transform 300ms ease;
    transition-delay: 0s; /* show immediately unless overridden on hover */
    pointer-events: none; /* keep whole card clickable */
}

.grid-item:hover .grid-thumb::after {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 180ms; /* small delay for near-immediate appearance */
}

.grid-title {
    padding: 12px 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Trending */
.trending-section {
    padding: 20px 0 80px;
    background: var(--bg-secondary);
}

.trending-inner {
    width: calc(120% + 24px);
    margin-left: calc(-13% - 23px); /* левый край как у карусели */
}

.trending-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

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

.trend-item {
    display: block;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.trend-item:hover { transform: translateY(-4px); border-color: var(--accent-cyan); box-shadow: var(--shadow-glow); }

.trend-thumb {
    width: 100%;
    aspect-ratio: 2 / 3; /* больше и выше, чем в Focus */
    background-size: cover;
    background-position: center;
}

.trend-title { padding: 12px 14px; font-weight: 600; color: var(--text-primary); }

/* Hover overlay for Trending #1 (Hero Wars): description + CTA */
.trending-grid .trend-item:first-child .trend-thumb,
.trending-grid .trend-item:nth-child(2) .trend-thumb,
.trending-grid .trend-item:nth-child(3) .trend-thumb,
.trending-grid .trend-item:nth-child(4) .trend-thumb { position: relative; }

.trending-grid .trend-item:first-child .trend-thumb::before {
	content: 'Darkness is rising.\AWill you stop it?';
	position: absolute;
	left: 12px;
	bottom: 64px; /* above the button */
	color: #ffffff;
	white-space: pre;
	display: block;
	max-width: calc(100% - 24px);
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 27px;
	line-height: 1.3;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 600ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
	/* strong text shadow like carousel for readability */
	text-shadow: 0 0 12px rgba(0,0,0,0.95), 0 2px 18px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.9);
}

.trending-grid .trend-item:first-child .trend-thumb::after,
.trending-grid .trend-item:nth-child(2) .trend-thumb::after,
.trending-grid .trend-item:nth-child(3) .trend-thumb::after,
.trending-grid .trend-item:nth-child(4) .trend-thumb::after {
	content: 'Play now';
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 10px 16px;
	background: #ffffff;
	color: #000000;
	border: 1px solid #000000;
	border-radius: 10px;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	box-shadow: 0 6px 16px rgba(0,0,0,0.35);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 500ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
	pointer-events: none; /* keep whole card clickable */
}

.trending-grid .trend-item:first-child:hover .trend-thumb::before,
.trending-grid .trend-item:nth-child(2):hover .trend-thumb::before,
.trending-grid .trend-item:nth-child(3):hover .trend-thumb::before,
.trending-grid .trend-item:nth-child(4):hover .trend-thumb::before {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 120ms;
}

.trending-grid .trend-item:first-child:hover .trend-thumb::after,
.trending-grid .trend-item:nth-child(2):hover .trend-thumb::after,
.trending-grid .trend-item:nth-child(3):hover .trend-thumb::after,
.trending-grid .trend-item:nth-child(4):hover .trend-thumb::after {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 220ms; /* button follows text slightly */
}

/* Per-card descriptions for Trending items 2-4 */
/* Item 2: World of Warships */
.trending-grid .trend-item:nth-child(2) .trend-thumb::before {
	content: 'Fleet is ready!';
	position: absolute;
	left: 12px;
	bottom: 64px;
	color: #ffffff;
	white-space: normal;
	display: block;
	max-width: calc(100% - 24px);
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 27px;
	line-height: 1.3;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 600ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
	text-shadow: 0 0 12px rgba(0,0,0,0.95), 0 2px 18px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.9);
	pointer-events: none;
}

/* Item 3: Star Stable */
.trending-grid .trend-item:nth-child(3) .trend-thumb::before {
	content: 'Ride. Explore. Discover.\AYour adventure awaits!';
	position: absolute;
	left: 12px;
	bottom: 64px;
	color: #ffffff;
	white-space: pre;
	display: block;
	max-width: calc(100% - 24px);
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 27px;
	line-height: 1.3;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 600ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
	text-shadow: 0 0 12px rgba(0,0,0,0.95), 0 2px 18px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.9);
	pointer-events: none;
}

/* Item 4: Wuthering Waves */
.trending-grid .trend-item:nth-child(4) .trend-thumb::before {
	content: 'Legends walk again.\AWill you join them?';
	position: absolute;
	left: 12px;
	bottom: 64px;
	color: #ffffff;
	white-space: pre;
	display: block;
	max-width: calc(100% - 24px);
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 27px;
	line-height: 1.3;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 600ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
	text-shadow: 0 0 12px rgba(0,0,0,0.95), 0 2px 18px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.9);
	pointer-events: none;
}

.site-footer {
    padding: 40px 0 60px;
    background: var(--bg-primary);
    text-align: center;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.site-footer .footer-brand {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.site-footer .footer-links a {
    color: var(--accent-orange);
    text-decoration: none;
}

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

.site-footer .footer-disclaimer {
    max-width: 820px;
    margin: 12px auto 0;
}

/* About page */
.about-hero, .privacy-hero {
    position: relative;
    margin-top: 80px; /* under fixed header */
    height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-hero__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.35);
}
.about-hero h1, .privacy-hero h1 {
    position: relative;
    z-index: 1;
    font-family: 'Russo One', sans-serif;
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
.about-section, .privacy-section { padding: 40px 0 80px; background: var(--bg-primary); }
.about-content, .privacy-content { color: var(--text-primary); }
.about-content h3, .privacy-content h3 { margin: 16px 0 8px; }
.about-content p, .privacy-content p { margin: 8px 0; color: var(--text-secondary); }

/* Back to the games link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
}
.back-link__icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #FF6B35; /* лёгкий оранжевый обвод */
    color: #FF6B35;
}
.back-link:hover .back-link__icon { filter: brightness(0.95); }
.back-link__text { color: var(--text-primary); }

/* === Vertical big-card list (used on category pages) === */
.games-list { display: flex; flex-direction: column; gap: 24px; }
.game-row {
    display: flex;
    gap: 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 16px;
}
.game-row .row-thumb {
    display: block;
    width: 320px;
    max-width: 32vw;
    aspect-ratio: 2 / 3;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}
.game-row .row-info { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.game-row .row-info h3 { margin: 0; font-size: 1.6rem; color: var(--text-primary); }
.game-row .row-desc { color: var(--text-secondary); max-width: 880px; }
.game-row .rating { color: var(--accent-orange); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.game-row .rating .stars { color: #FFD54F; display: inline-flex; gap: 2px; }
.game-row .rating .stars i { font-size: 16px; }
.game-row .row-video { position: relative; }
.game-row .row-video video {
    width: 100%;
    max-width: 720px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    /* Максимальное качество рендеринга */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    /* Включаем аппаратное ускорение */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Убираем фильтры, которые могут ухудшать качество */
    -webkit-filter: none;
    filter: none;
}
.game-row .row-visual { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.game-row .row-cta { display: flex; justify-content: center; align-items: center; padding-bottom: 0; }
/* Stack buttons vertically when More is present (WoW-style) */
.game-row .row-cta.has-more { flex-direction: column; gap: 12px; width: max-content; margin: 0 auto; }
.game-row .row-cta.has-more .btn-play,
.game-row .row-cta.has-more .btn-more { width: 100%; text-align: center; }
.game-row .row-cta .btn-play {
    padding: 20px 32px;
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.game-row .row-cta .btn-play:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    background: #f5f5f5;
}

.game-row .row-cta .btn-play:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.game-row .row-cta .btn-more {
    padding: 20px 32px;
    background: #2f3339; /* same gray as WoW block */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.game-row .row-cta .btn-more:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
    background: #3a3f46;
}

.game-row .row-cta .btn-more:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

@media (max-width: 900px) {
    .game-row { flex-direction: column; }
    .game-row .row-thumb { width: 100%; max-width: none; }
    .game-row .row-video video { max-width: 100%; }
    .game-row .row-cta {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .game-row .row-cta .btn-play,
    .game-row .row-cta .btn-more {
        width: 100%;
        margin-left: 0;
    }
}
.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    overflow: visible; /* позволяем выходить за левую границу */
}

/* Двухколоночный лейаут: слева слайд, справа список игр */
.carousel-layout {
    display: grid;
    grid-template-columns: 1.3fr 320px; /* левая колонка шире на ~30% */
    gap: 24px;
}

.carousel-track {
    position: relative;
    height: 600px !important; /* image 420px + caption ~180px */
    overflow: hidden;
    width: 120%;
    margin-left: -20%;
}

/* Правая колонка */
.carousel-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aside-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--text-primary);
    text-align: left;
    /* Показываем, что блок кликабелен */
    position: relative;
    overflow: hidden;
}

/* Добавляем эффект "ссылки" при наведении */
.aside-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left var(--transition-slow);
    pointer-events: none;
}

.aside-item:hover::after {
    left: 100%;
}

.aside-item img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
}

.aside-item .aside-title {
    font-weight: 600;
    color: var(--text-primary);
}

.aside-item:hover {
    border-color: rgba(128, 128, 128, 0.3);
    background: rgba(64, 64, 64, 0.2);
}

.aside-item.active {
    border-color: rgba(128, 128, 128, 0.4);
    box-shadow: 0 0 20px rgba(128, 128, 128, 0.2);
    background: rgba(64, 64, 64, 0.3);
}

/* Прогресс-бар для отсчёта времени смены слайда */
.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.15);
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(128, 128, 128, 0.25);
    width: 0%;
    transition: width 0.1s linear;
}

/* Позиционирование для aside-item */
.aside-item {
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 700ms ease;
    will-change: transform, opacity;
    /* No overflow clip here — let the track handle it */
}

.carousel-slide.active {
    opacity: 1 !important;
    transform: translateX(0) !important;
    z-index: 2;
}

.carousel-slide.prev {
    opacity: 0 !important;
    transform: translateX(-100%) !important;
    z-index: 1;
}

/* Плавное появление заголовка с задержкой после смены слайда */
.carousel-slide .game-overlay h3 {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1100ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 1100ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.carousel-slide.active .game-overlay h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 250ms;
}

.game-card {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    display: flex;
    gap: 32px;
    align-items: center;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 229, 255, 0.2);
    backdrop-filter: blur(20px);
}

/* Full-screen card - flex column: image on top, caption below */
.game-card--full {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important; /* Removes inherited gap to eliminate black line gap */
    height: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
    border-radius: 16px !important;
}

/* Image/video fills the top portion at a fixed height */
.game-card--full .game-bg {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 400px !important; /* Adjusted height */
    object-fit: cover !important;
    border-radius: 16px 16px 0 0 !important;
    flex-shrink: 0 !important;
    z-index: 1 !important;
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-filter: none;
    filter: none;
}

/* Caption sits below the image — always visible */
.game-card--full .game-overlay {
    position: relative !important;
    margin-left: 0 !important; /* Spans from the very left edge */
    width: 100% !important; /* Full width spanning complete card width */
    flex-grow: 1 !important; /* Fills remaining space */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important; /* Prevents full-width button stretch */
    gap: 8px !important;
    box-sizing: border-box !important;
    background: rgba(8, 12, 24, 0.96) !important;
    border-radius: 0 0 16px 16px !important;
    /* padding-left has calc(20% + 24px) to offset the off-screen left bleed */
    padding: 20px 24px 28px calc(20% + 24px) !important;
    z-index: 2 !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
}

.game-card--full .game-overlay h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
    text-shadow: none;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
}

.game-card--full .game-subtitle {
    color: rgba(255,255,255,0.78);
    opacity: 1;
    line-height: 1.4;
    font-size: 0.88rem;
    text-shadow: none;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    /* limit to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Button in caption */
.game-card--full .btn-primary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    box-shadow: none;
    padding: 7px 18px;
    font-size: 14px;
    margin-top: 2px;
}

.game-card--full .btn-primary.btn-primary--xl {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 700;
}

.game-card--full .btn-primary:hover {
    background: #f5f5f5;
}

.game-image {
    position: relative;
    flex-shrink: 0;
}

.game-image img {
    width: 520px;  /* +30% ширины */
    height: 280px; /* +30% высоты */
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(0, 229, 255, 0.3);
}

.game-status {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.f2p {
    background: var(--accent-lime);
    color: var(--bg-primary);
}

.status-badge.online {
    background: rgba(0, 229, 255, 0.2);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.game-info {
    flex: 1;
}

.game-info h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--accent-cyan);
}

.game-info p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1rem;
}

.game-tags {
    display: none; /* скрываем теги у карточек, чтобы оставить только кнопку Играть бесплатно */
}

.tag {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

/* Навигация карусели */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
}

.carousel-btn {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--accent-cyan);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(0, 229, 255, 0.2);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.carousel-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.dot.active {
    background: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.dot:hover {
    background: var(--accent-cyan);
    transform: scale(1.2);
}

/* Быстрый подбор игр */
.quick-pick {
    padding: 80px 0;
    background: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.quick-pick h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--accent-cyan);
}

.pick-steps {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.step {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    opacity: 0.5;
    transform: scale(0.95);
    transition: all var(--transition-normal);
}

.step.active {
    opacity: 1;
    transform: scale(1);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.step h3 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--accent-cyan);
}

.step-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.option-btn:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.option-btn.selected {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
}

/* Результаты подбора игр */
.pick-result {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    margin-top: 40px;
}

.pick-result h3 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--accent-cyan);
}

.recommended-games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.recommended-game {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 12px;
    padding: 24px;
    transition: all var(--transition-normal);
}

.recommended-game:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-cyan);
}

.recommended-game h4 {
    color: var(--accent-cyan);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.recommended-game p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.game-match {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.match-percentage {
    background: var(--accent-lime);
    color: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .game-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .game-image img {
        width: 100%;
        max-width: 400px;
    }
    
    .pick-steps {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
        height: 70px;
    }
    
    .nav-list {
        display: none;
    }
    
    .search-input {
        width: 200px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-nav {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .game-card {
        padding: 16px;
    }
    
    .game-info h3 {
        font-size: 1.5rem;
    }
}

/* === Overrides: force all borders to black === */
.header {
    border-bottom-color: #000 !important;
    border-bottom: 1px solid #000 !important;
}

.btn-secondary,
.search-input,
.carousel-btn,
.game-card,
.recommended-game,
.pick-result,
.aside-item,
.tag,
.game-image img,
.status-badge.online {
    border-color: #000 !important;
}

.btn-secondary:hover,
.search-input:focus,
.aside-item:hover,
.aside-item.active,
.recommended-game:hover {
    border-color: #000 !important;
}

/* Back-to-top button */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f2f2f2; /* чуть сероватая */
    color: #000000;
    border: 1px solid #000000;
    display: none; /* по умолчанию скрыта */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
    z-index: 1100;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.back-to-top i { font-size: 18px; }

.back-to-top.show { display: flex; }

.back-to-top:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.28);
}

/* Support page form */
.support-section { padding: 120px 0 80px; background: var(--bg-primary); }
.support-intro { color: var(--text-primary); font-size: 1.3rem; margin-bottom: 24px; text-align: left; }
.support-intro, .support-consent, .support-success { font-family: 'Inter', sans-serif; }
.support-form { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.support-form .form-group { display: flex; flex-direction: column; gap: 10px; }
.support-form label { color: var(--text-primary); font-weight: 700; font-size: 16px; }
.support-form input, .support-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #000;
    border-radius: 8px;
    background: #e9e9e9;
    color: #000;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}
.support-form input::placeholder, .support-form textarea::placeholder { color: var(--text-secondary); font-family: 'Inter', sans-serif; }
.support-form input { height: 54px; }
.support-form textarea { min-height: 180px; resize: vertical; }
.support-form .btn-submit {
    align-self: center;
    padding: 16px 40px;
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 12px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    width: 160px;
}
.support-form .btn-submit:hover { background: #f5f5f5; }
.support-consent { text-align: center; color: var(--text-secondary); font-size: 14px; margin-top: 8px; }
.support-success { 
    display: none; 
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    border: 2px solid #4CAF50;
    animation: successSlideIn 0.5s ease-out;
}

.support-success.show {
    display: block;
}

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

.support-error {
    display: none;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
    border: 2px solid #f44336;
    animation: errorSlideIn 0.5s ease-out;
}

.support-error.show {
    display: block;
}

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

/* Search Results Styles */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid #000;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 4px;
}

.search-results a {
    display: block;
    padding: 12px 16px;
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color var(--transition-fast);
}

.search-results a:last-child {
    border-bottom: none;
}

.search-results a:hover {
    background: rgba(0, 229, 255, 0.1);
}

.search-results strong {
    color: var(--text-primary);
    font-weight: 600;
}

.search-results div {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 4px;
}

/* Privacy Policy Page Styles */
.privacy-intro {
    text-align: center;
    margin-bottom: 48px;
    padding: 32px;
    background: rgba(15, 17, 23, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.privacy-intro p {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.7;
    font-weight: 700;
    font-family: 'Russo One', sans-serif;
}

.privacy-intro p:last-child {
    margin-bottom: 0;
}

.privacy-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

.privacy-section {
    background: rgba(15, 17, 23, 0.8);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 12px;
    padding: 24px;
    transition: all var(--transition-normal);
}

.privacy-section:hover {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.1);
    transform: translateY(-2px);
}

.privacy-section h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-family: 'Russo One', sans-serif;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.privacy-section h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 20px 0 12px 0;
    font-family: 'Russo One', sans-serif;
}

.privacy-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
    font-size: 1rem;
}

.privacy-section p:last-child {
    margin-bottom: 0;
}

.privacy-section ul {
    margin: 16px 0 16px 20px;
    color: var(--text-secondary);
}

.privacy-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.privacy-section a {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
    transition: all var(--transition-normal);
}

.privacy-section a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

/* Support section header for privacy page */
.support-header {
    text-align: center;
    margin-bottom: 40px;
}

.support-header h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 12px;
    font-family: 'Russo One', sans-serif;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.support-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
}

/* News Page Styles */
.news-hero {
    position: relative;
    height: 60vh;
    background-image: url('https://freegamezone.net/images/news.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 0;
}

.news-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 229, 255, 0.3) 100%);
    z-index: 1;
}

.news-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.news-hero__content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Russo One', sans-serif;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    color: var(--text-primary);
}

.news-hero__content p {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.news-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.3) 50%, transparent 100%);
    margin: 60px 0;
    opacity: 0.6;
}

.news-content {
    padding: 60px 0;
}

.news-article {
    margin-bottom: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.news-date {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.news-article h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
    font-family: 'Russo One', sans-serif;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.news-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.news-image {
    margin: 30px 0;
    text-align: center;
}

.news-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 229, 255, 0.2);
    transition: all var(--transition-normal);
}

.news-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 229, 255, 0.2);
    border-color: rgba(0, 229, 255, 0.4);
}

.news-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
}

.news-text p {
    margin-bottom: 20px;
}

.news-text p:last-child {
    margin-bottom: 0;
}

.news-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

.news-text ul {
    margin: 20px 0 20px 30px;
    color: var(--text-secondary);
}

.news-text li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.news-text a {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
    transition: all var(--transition-normal);
}

.news-text a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.back-section {
    padding: 60px 0;
    text-align: center;
}

/* Responsive adjustments for news page */
@media (max-width: 768px) {
    .news-hero {
        height: 50vh;
    }
    
    .news-hero__content h1 {
        font-size: 2.5rem;
    }
    
    .news-hero__content p {
        font-size: 1.1rem;
    }
    
    .news-article h2 {
        font-size: 1.8rem;
    }
    
    .news-subtitle {
        font-size: 1.1rem;
    }
    
    .news-text {
        font-size: 1rem;
    }
    
    .news-divider {
        margin: 40px 0;
    }
    
    .news-content {
        padding: 40px 0;
    }
    
    .news-article {
        margin-bottom: 60px;
        padding: 0 20px;
    }
}

/* ===== GAME POPUP STYLES ===== */
.game-popup {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2147483647 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: opacity, visibility;
}

.game-popup.show {
    opacity: 1;
    visibility: visible;
}

/* Дополнительные правила для Microsoft Edge */
@supports (-ms-ime-align: auto) {
    .game-popup {
        z-index: 2147483647 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
    }
    
    .game-popup .popup-content {
        z-index: 2147483647 !important;
        position: relative !important;
    }
}

/* Для старых версий Edge */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .game-popup {
        z-index: 2147483647 !important;
        position: fixed !important;
    }
}

.popup-content {
    background: var(--gradient-card);
    border: 1px solid #FFFFFF;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 2147483647;
    transform-style: preserve-3d;
}

.game-popup.show .popup-content {
    transform: scale(1) translateY(0);
}

/* Анимации для элементов при показе popup'а */
.game-popup.show .popup-game-info h3 {
    animation: slideInUp 0.6s ease forwards 0.3s;
}

.game-popup.show .popup-game-info p {
    animation: slideInUp 0.6s ease forwards 0.5s;
}

.game-popup.show .popup-rating {
    animation: slideInUp 0.6s ease forwards 0.7s;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 10;
}

.popup-close:hover {
    color: var(--accent-orange);
    background: rgba(255, 165, 0, 0.1);
    transform: rotate(90deg);
}

.popup-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    padding: 25px 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-header h2 {
    color: #FFFFFF;
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    font-family: 'Russo One', sans-serif;
}

.popup-body {
    padding: 0;
}

.popup-game-image {
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

.popup-game-image a {
    display: block;
    width: 100%;
    height: 200px;
    text-decoration: none;
}

.popup-game-image img {
    width: 100%;
    height: 200px;
    border-radius: 0;
    border: none;
    object-fit: cover;
    transition: all var(--transition-normal);
    transform-origin: center center;
    will-change: transform;
}

.popup-game-image a:hover img {
    transform: scale(1.02);
}

.popup-game-image a:hover {
    cursor: pointer;
}

.popup-game-info h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
    text-align: center;
    font-family: 'Russo One', sans-serif;
    opacity: 0;
    transform: translateY(20px);
    padding: 0 30px;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-game-info p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1rem;
    padding: 0 30px;
    opacity: 0;
    transform: translateY(20px);
}

.popup-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(20px);
    width: 100%;
}

.popup-rating .stars {
    display: flex;
    gap: 3px;
}

.popup-rating .stars i {
    color: #FFD700;
    font-size: 18px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.popup-rating .rating-text {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
}

.popup-btn {
    display: block;
    width: 100%;
    padding: 15px 30px;
    background: #FFFFFF;
    color: #000000;
    text-decoration: none;
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin: 0;
}

.popup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    transition: left var(--transition-slow);
}

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

.popup-btn:hover {
    transform: translateY(-2px);
    background: #E0E0E0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.popup-btn:active {
    transform: translateY(0);
}

/* Responsive popup */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .popup-header {
        padding: 20px 25px 15px;
    }
    
    .popup-header h2 {
        font-size: 1.5rem;
    }
    
    .popup-body {
        padding: 25px 20px;
    }
    
    .popup-game-image a {
        height: 180px;
    }
    
    .popup-game-image img {
        width: 100%;
        height: 100%;
    }
    
    .popup-game-info h3 {
        font-size: 1.3rem;
    }
    
    .popup-btn {
        padding: 14px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .popup-content {
        width: 98%;
        margin: 10px;
    }
    
    .popup-header {
        padding: 18px 20px 12px;
    }
    
    .popup-header h2 {
        font-size: 1.3rem;
    }
    
    .popup-body {
        padding: 20px 15px;
    }
    
    .popup-game-image a {
        height: 160px;
    }
    
    .popup-game-image img {
        width: 100%;
        height: 100%;
    }
    
    .popup-game-info h3 {
        font-size: 1.2rem;
    }
    
    .popup-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}
/* Custom mobile responsive overrides */

/* Ensure carousel-slide doesn't clip the below-image caption */
.carousel-slide {
    overflow: visible !important;
}

/* Cancel old fade-in animation on overlay h3 - it is always visible now */
.carousel-slide .game-overlay h3 {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
}


/* Carousel Dots Navigation - Hidden on desktop */
.carousel-nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.carousel-dots .dot.active {
    background: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

/* Mobile Menu Toggle Button (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    margin-left: 16px;
}

.mobile-menu-toggle .hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-normal);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile & Tablet: Carousel Layout */
@media (max-width: 900px) {
    .carousel-layout {
        grid-template-columns: 1fr !important;
    }

    .carousel-track {
        width: 100% !important;
        margin-left: 0 !important;
        height: 480px !important; /* image (220px) + caption (~260px) */
        overflow: hidden !important;
    }

    .carousel-slide {
        height: 100% !important;
        min-height: unset !important;
    }

    /* On mobile, image has a fixed height */
    .game-card--full .game-bg {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: 220px !important; /* Adjusted height */
        object-fit: cover !important;
        border-radius: 12px 12px 0 0 !important;
        flex-shrink: 0 !important;
    }

    .carousel-aside {
        display: none !important;
    }

    /* Show dots navigation on mobile */
    .carousel-nav {
        display: flex !important;
    }

    /* Caption below the image on mobile */
    .game-card--full .game-overlay {
        position: relative !important;
        margin-left: 0 !important;
        width: 100% !important;
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important; /* Prevents full-width button stretch */
        gap: 8px !important;
        box-sizing: border-box !important;
        padding: 16px 20px 24px !important; /* Bottom padding protection */
        border-radius: 0 0 12px 12px !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        text-align: left !important;
    }

    .game-card--full .game-overlay h3 {
        font-size: 1.1rem !important;
        text-align: left !important;
    }

    .game-card--full .game-subtitle {
        font-size: 0.82rem !important;
        text-align: left !important;
    }
}

@media (max-width: 1024px) {
    .focus-inner,
    .trending-inner {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .trending-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 768px) {
    .header-container {
        justify-content: space-between !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(11, 14, 20, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: none !important; /* hidden by default */
        justify-content: center;
        align-items: center;
        z-index: 1099;
        margin-right: 0 !important;
    }
    
    .nav.active {
        display: flex !important;
    }
    
    .nav-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 24px !important;
        width: 100% !important;
        padding: 40px 0 !important;
    }
    
    .nav-list a {
        font-size: 1.3rem !important;
    }
    
    /* Adjust submenu positioning on mobile */
    .nav-list .submenu, .nav-list .sub-menu,
    .nav-list .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: transparent !important;
        border: none !important;
        padding: 10px 0 !important;
        text-align: center !important;
        pointer-events: auto !important;
        display: none !important; /* Collapsed by default on mobile */
    }
    
    .nav-list .has-submenu, .nav-list .menu-item-has-children.active > .submenu,
    .nav-list .menu-item-has-children.active > .sub-menu {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .trending-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .trending-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE CSS
   ============================================================ */

/* Base */
* { box-sizing: border-box; }
img, video { max-width: 100%; height: auto; }

/* Header */
@media (max-width: 768px) {
    .header { padding: 0 12px !important; }
    .header-container {
        padding: 10px 12px !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
    }
    .logo-img { max-height: 36px !important; width: auto !important; }
    .header-actions { gap: 8px !important; }
    .search-input { width: 120px !important; font-size: 0.82rem !important; }
    .language-switcher { display: none !important; }
}

/* General container padding */
@media (max-width: 768px) {
    .carousel-container,
    .container,
    .focus-inner,
    .trending-inner,
    .footer-inner,
    .footer-container { padding-left: 14px !important; padding-right: 14px !important; }
    section { padding: 20px 0 !important; }
}

/* Focus grid: 2 cols on tablet, 1 on phone */
@media (max-width: 900px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
}
@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: 1fr !important;
    }
    .game-card {
        flex-direction: column !important;
        padding: 16px !important;
        gap: 12px !important;
    }
    .game-image img { width: 100% !important; height: auto !important; }
}

/* Trending grid */
@media (max-width: 768px) {
    .trending-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .trend-thumb { height: 140px !important; }
}
@media (max-width: 480px) {
    .trending-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Footer */
@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .footer-col { width: 100% !important; }
    .footer-logo { max-height: 40px !important; }
}

/* Breadcrumbs */
@media (max-width: 480px) {
    .breadcrumbs { display: none !important; }
}

/* Quick picker widget */
@media (max-width: 600px) {
    .picker-options { flex-direction: column !important; gap: 8px !important; }
    .option-btn { width: 100% !important; }
}

/* Game picker / event timer sections */
@media (max-width: 768px) {
    .picker-section, .event-section { padding: 20px 14px !important; }
    .event-grid { grid-template-columns: 1fr !important; }
}

/* Carousel section gap on mobile */
@media (max-width: 900px) {
    .games-carousel { padding: 16px 0 20px !important; }
    .carousel-container { padding: 0 12px !important; }
}

/* Ensure images don't overflow */
@media (max-width: 600px) {
    .game-card--full .game-bg { height: 200px !important; }
}
