*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--bg: #111111;
	--bg-light: #1a1a1a;
	--bg-card: #1e1e1e;
	--bg-header: #0d0d0d;
	--bg-sidebar: #141414;
	--gold: #e8a925;
	--gold-hover: #f0b830;
	--gold-dim: #c8a44e;
	--white: #f0ede6;
	--gray: #9a9590;
	--gray-dim: #6a6560;
	--border: rgba(255, 255, 255, 0.08);
	--border-light: rgba(255, 255, 255, 0.12);
	--font: 'Montserrat', sans-serif;
	--sidebar-w: 240px;
	--header-h: 60px;
	--radius: 12px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--white); min-height: 100vh; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 28px;
	font-family: var(--font);
	font-size: 13px;
	font-weight: 800;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
	border: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.btn--primary {
	background: linear-gradient(180deg, #f0b830 0%, #e8a925 50%, #c89020 100%);
	color: #1a1000;
	box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.15), 0 4px 14px rgba(232,169,37,.35);
	position: relative;
	overflow: hidden;
}

.btn--primary::before {
	content: '';
	position: absolute;
	top: 2px;
	left: 8%;
	right: 8%;
	height: 40%;
	background: linear-gradient(180deg, rgba(255,255,255,.3) 0%, transparent 100%);
	border-radius: 50px 50px 0 0;
	pointer-events: none;
}

.btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.15), 0 8px 22px rgba(232,169,37,.5);
}

.btn--primary:active { transform: translateY(0); }

.btn--secondary {
	background: linear-gradient(180deg, #6b5520 0%, #4a3a15 50%, #3a2d10 100%);
	color: var(--gold);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -1px 0 rgba(0,0,0,.2);
}

.btn--secondary:hover {
	background: linear-gradient(180deg, #7d6525 0%, #5a4518 50%, #4a3815 100%);
}

.btn--sm { padding: 7px 18px; font-size: 11px; }
.btn--lg { padding: 14px 42px; font-size: 15px; }
.btn--full { width: 100%; }

.burger-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.7);
	z-index: 1100;
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity 0.3s;
}

.burger-overlay.is-open { display: block; opacity: 1; }

.sidebar {
	position: fixed;
	top: 0;
	left: -300px;
	width: 280px;
	height: 100%;
	background: var(--bg-sidebar);
	border-right: 1px solid var(--border-light);
	z-index: 1200;
	display: none;
	flex-direction: column;
	transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
	overflow-y: auto;
}

.sidebar.is-open { left: 0; }

.sidebar__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--border);
}

.sidebar__logo img { max-height: 30px; width: auto; }

.sidebar__close {
	background: none;
	border: none;
	color: var(--gray);
	cursor: pointer;
	padding: 6px;
	border-radius: 8px;
	transition: color 0.2s, background 0.2s;
	line-height: 0;
}

.sidebar__close:hover { color: var(--white); background: rgba(255,255,255,.08); }

.sidebar__nav ul {
	display: flex;
	flex-direction: column;
	padding: 12px 10px;
	gap: 2px;
}

.sidebar__nav ul li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--gray);
	border-radius: 10px;
	transition: color 0.2s, background 0.2s;
}

.sidebar__nav ul li a svg { flex-shrink: 0; opacity: 0.6; transition: opacity 0.2s; }
.sidebar__nav ul li a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.sidebar__nav ul li a:hover svg { opacity: 1; }

.burger-btn {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	border-radius: 8px;
	transition: background 0.2s;
}

.burger-btn:hover { background: rgba(255,255,255,.07); }

.burger-btn__line {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--white);
	border-radius: 2px;
}

.header {
	background: var(--bg-header);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
	height: var(--header-h);
}

.header__logo img { max-height: 34px; width: auto; }
.header__actions { display: flex; gap: 10px; }
.header__mobile-actions { display: none; align-items: center; gap: 8px; }

.header__login-icon {
	display: flex;
	align-items: center;
	color: var(--white);
	padding: 4px;
	transition: color 0.2s;
}

.header__login-icon:hover { color: var(--gold); }

.layout {
	display: flex;
	min-height: calc(100vh - var(--header-h));
}

.desktop-sidebar {
	width: var(--sidebar-w);
	flex-shrink: 0;
	background: var(--bg-sidebar);
	border-right: 1px solid var(--border);
	padding: 16px 10px;
	position: sticky;
	top: var(--header-h);
	height: calc(100vh - var(--header-h));
	overflow-y: auto;
}

.desktop-sidebar ul { display: flex; flex-direction: column; gap: 2px; }

.desktop-sidebar ul li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--gray);
	border-radius: 10px;
	transition: color 0.2s, background 0.2s;
}

.desktop-sidebar ul li a svg { flex-shrink: 0; opacity: 0.6; transition: opacity 0.2s; }
.desktop-sidebar ul li a:hover { color: var(--gold); background: rgba(232,169,37,.06); }
.desktop-sidebar ul li a:hover svg { opacity: 1; color: var(--gold); }

.page-content {
	flex: 1;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.hero-slider { position: relative; border-radius: var(--radius); overflow: hidden; }

.hero-slider__track {
	display: flex;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
	flex-shrink: 0;
	width: 100%;
	min-height: 340px;
    aspect-ratio: 3 / 1;
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.hero-slide--1 { background-image: url('/assets/img/slide-1.webp'); background-color: #1a2a14; }
.hero-slide--2 { background-image: url('/assets/img/slide-2.webp'); background-color: #2a1a14; }
.hero-slide--3 { background-image: url('/assets/img/slide-3.webp'); background-color: #141a2a; }

.hero-slide__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(17,17,17,.88) 0%, rgba(17,17,17,.5) 50%, rgba(17,17,17,.15) 100%);
}

.hero-slide__content {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 20px 48px;
}

.hero-slide__badge {
	display: inline-block;
	padding: 5px 14px;
	margin-bottom: 14px;
	background: rgba(232,169,37,.15);
	border: 1px solid rgba(232,169,37,.4);
	border-radius: 50px;
	font-size: 11px;
	font-weight: 800;
	color: var(--gold);
	letter-spacing: 1px;
	text-transform: uppercase;
}

.hero-slide__title {
	display: block;
	font-size: 30px;
	font-weight: 900;
	color: var(--white);
	margin-bottom: 20px;
	text-shadow: 0 2px 16px rgba(0,0,0,.5);
	line-height: 1.2;
}

.hero-slide__title em { font-style: normal; color: var(--gold); }

.hero-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,.5);
	border-radius: 50%;
	color: var(--white);
	transition: background 0.2s;
	z-index: 3;
}

.hero-slider__arrow:hover { background: rgba(232,169,37,.4); }
.hero-slider__arrow--prev { left: 12px; }
.hero-slider__arrow--next { right: 12px; }

.ticker {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--bg-light);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 10px 16px;
	overflow: hidden;
}

.ticker__label {
	font-size: 11px;
	font-weight: 800;
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
	flex-shrink: 0;
}

.ticker__track { flex: 1; overflow: hidden; }

.ticker__scroll {
	display: flex;
	gap: 24px;
	animation: tickerScroll 25s linear infinite;
	white-space: nowrap;
}

.ticker__item { font-size: 12px; font-weight: 600; color: var(--gray); flex-shrink: 0; }
.ticker__item em { font-style: normal; color: var(--gold); font-weight: 800; }

@keyframes tickerScroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.categories { overflow: hidden; }

.categories__scroll {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 4px;
}

.categories__scroll::-webkit-scrollbar { display: none; }

.category-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: 1px solid var(--border-light);
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	color: var(--gray);
	white-space: nowrap;
	transition: all 0.2s;
	flex-shrink: 0;
	background: var(--bg-light);
}

.category-btn:hover { color: var(--gold); border-color: var(--gold); }
.category-btn--active { color: var(--gold); border-color: var(--gold); background: rgba(232,169,37,.08); }

.games-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
	content-visibility: auto;
	contain-intrinsic-size: auto 600px;
}

.games-section__head { display: flex; align-items: center; justify-content: space-between; }
.games-section__title { font-size: 20px; font-weight: 800; }
.games-section__all { font-size: 13px; color: var(--gray); font-weight: 600; transition: color 0.2s; }
.games-section__all:hover { color: var(--gold); }

.games-grid {
	display: grid;
	grid-template-rows: repeat(2, 1fr);
	grid-auto-flow: column;
	grid-auto-columns: 160px;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.games-grid::-webkit-scrollbar { display: none; }

.game-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-card);
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	scroll-snap-align: start;
}

.game-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(232,169,37,.12); }

.game-card__wrap { position: relative; overflow: hidden; }

.game-card__img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	background: var(--bg-light);
	transition: transform 0.3s;
}

.game-card:hover .game-card__img { transform: scale(1.07); }

.game-card__hover {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.55);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.25s;
}

.game-card:hover .game-card__hover { opacity: 1; }

.game-card__play-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	font-family: var(--font);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #1a1000;
	border-radius: 50px;
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #f0b830 0%, #e8a925 50%, #c89020 100%);
	box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.15), 0 4px 18px rgba(232,169,37,.5);
	transform: translateY(6px);
	transition: transform 0.25s, box-shadow 0.2s;
}

.game-card__play-btn::before {
	content: '';
	position: absolute;
	top: 2px;
	left: 10%;
	right: 10%;
	height: 38%;
	background: linear-gradient(180deg, rgba(255,255,255,.3) 0%, transparent 100%);
	border-radius: 50px 50px 0 0;
}

.game-card:hover .game-card__play-btn { transform: translateY(0); }

.game-card__name {
	display: block;
	padding: 10px;
	font-size: 12px;
	font-weight: 700;
	color: var(--gray);
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.content {
	width: 100%;
	color: var(--gray);
	line-height: 1.7;
	font-size: 15px;
	content-visibility: auto;
	contain-intrinsic-size: auto 800px;
}

.content h1 { font-size: 26px; font-weight: 800; color: var(--white); line-height: 1.2; margin-bottom: 18px; }
.content h2 { font-size: 21px; font-weight: 700; color: var(--white); margin-top: 28px; margin-bottom: 12px; }
.content h3 { font-size: 17px; font-weight: 700; color: var(--white); margin-top: 22px; margin-bottom: 10px; }
.content p { margin-bottom: 14px; }

.content blockquote {
	border-left: 3px solid var(--gold);
	padding: 12px 20px;
	margin: 18px 0;
	background: rgba(232,169,37,.05);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-style: italic;
}

.content table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.content th, .content td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.content th { font-weight: 700; color: var(--white); background: rgba(255,255,255,.04); }
.content tbody tr:hover { background: rgba(255,255,255,.02); }
.content ul { margin: 14px 0; padding-left: 22px; list-style: disc; }
.content ul li { margin-bottom: 6px; }
.content ol { margin: 14px 0; padding-left: 22px; list-style: decimal; }
.content ol li { margin-bottom: 6px; }
.content a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.content a:hover { color: var(--gold-hover); }

.footer {
	background: var(--bg-header);
	border-top: 1px solid var(--border);
	padding: 32px 24px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	content-visibility: auto;
	contain-intrinsic-size: auto 400px;
}

.footer__links ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.footer__links ul li a {
	font-size: 12px;
	color: var(--gold-dim);
	font-weight: 600;
	transition: color 0.2s;
	padding: 4px 8px;
}

.footer__links ul li a:hover { color: var(--gold); }

.footer__links ul li:not(:last-child) a::after {
	content: '|';
	margin-left: 12px;
	color: var(--gray-dim);
}

.footer__badges { display: flex; gap: 16px; align-items: center; }

.footer__badge {
	padding: 4px 12px;
	border: 1px solid var(--border-light);
	border-radius: 6px;
	font-size: 10px;
	font-weight: 800;
	color: var(--gray);
}

.footer__payments {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	align-items: center;
	padding: 16px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	width: 100%;
	max-width: 800px;
}

.footer__legal { max-width: 900px; text-align: center; }
.footer__legal p { font-size: 11px; color: var(--gray-dim); line-height: 1.7; margin-bottom: 10px; }
.footer__legal p:last-child { margin-bottom: 0; }

@media (max-width: 1024px) {
	.desktop-sidebar { width: 200px; }
	.desktop-sidebar ul li a { font-size: 13px; padding: 10px 12px; }
	.games-grid { grid-auto-columns: 140px; }
	.hero-slide__title { font-size: 26px; }
	.hero-slide__content { padding: 32px 36px; }
}

@media (max-width: 768px) {
	.desktop-sidebar { display: none; }
	.sidebar { display: flex; }
	.burger-btn { display: flex; }
	.header__actions { display: none; }
	.header__mobile-actions { display: flex; }
	.layout { flex-direction: column; }
	.page-content { padding: 14px; gap: 16px; }
	.hero-slide { min-height: 280px; background-position: 100% center; }
	.hero-slide__content {
		position: relative;
		top: auto;
		transform: none;
		min-height: 280px;
		align-items: center;
		text-align: center;
		justify-content: flex-end;
		padding: 20px 20px 32px;
		max-width: 100%;
	}	.hero-slide__overlay { background: linear-gradient(0deg, rgba(17,17,17,.92) 25%, rgba(17,17,17,.4) 100%); }
	.hero-slide__title { font-size: 22px; }
	.hero-slider__arrow { width: 32px; height: 32px; }
	.hero-slider__arrow svg { width: 18px; height: 18px; }
	.games-grid { grid-auto-columns: 120px; gap: 10px; }
	.content h1 { font-size: 22px; }
	.content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
	.header__inner { padding: 0 12px; }
	.header__logo img { max-height: 28px; }
	.hero-slide { min-height: 260px; background-position: 94% center; }
	.hero-slide__content { min-height: 260px; padding: 20px 16px; }
	.hero-slide__title { font-size: 20px; }
	.games-grid { grid-auto-columns: 100px; gap: 8px; }
	.game-card__name { font-size: 11px; padding: 8px 6px; }
	.category-btn { padding: 8px 14px; font-size: 11px; }
	.footer__payments { gap: 14px; }
}

.content img {
	display: block;
	max-height: 100%;
	margin: 0 auto;
	margin-bottom: 16px;
}