/*
 * betking223 — clone of betking.com.ua slots lobby chrome.
 * Dark faceted theme, Geologica body / Unbounded display.
 * Colours sampled from source: bg #10141c, text #e8ecf2,
 * red accent #ef2b55 (login/brand), gold #f6c945 (register).
 */

:root {
	--bg: #10141c;
	--bg-top: #0b0e15;
	--surface: #171c26;
	--surface-2: #1c2230;
	--line: rgba(255, 255, 255, .08);
	--line-2: rgba(255, 255, 255, .14);
	--text: #e8ecf2;
	--muted: #94a0b1;
	--red: #ef2b55;
	--red-2: #ff4f74;
	--gold: #f6c945;
	--gold-2: #ffdb5e;
	--green: #39d98a;
	--radius: 14px;
	--radius-sm: 10px;
	--container: 1360px;
	--header-h: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'Geologica', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Unbounded', 'Geologica', sans-serif; font-weight: 700; line-height: 1.2; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
	font-family: 'Geologica', sans-serif; font-size: 15px; font-weight: 600;
	cursor: pointer; white-space: nowrap; transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-primary { background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff; box-shadow: 0 6px 18px rgba(239, 43, 85, .35); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1205; font-weight: 700; box-shadow: 0 6px 18px rgba(246, 201, 69, .3); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-lg { height: 50px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.topbar {
	position: sticky; top: 0; z-index: 50;
	height: var(--header-h);
	display: flex; align-items: center; gap: 18px;
	padding: 0 22px;
	background:
		linear-gradient(180deg, rgba(11, 14, 21, .96), rgba(11, 14, 21, .82)),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, .015) 0 22px, rgba(255, 255, 255, 0) 22px 44px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.burger {
	width: 42px; height: 42px; border: 0; border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, .06); color: var(--text);
	display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
}
.burger span { width: 20px; height: 2px; background: currentColor; border-radius: 2px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 42px; height: 32px; }
.brand__word { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -.5px; color: var(--red); }

.topnav { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.topnav__hl { font-weight: 700; font-size: 15px; color: #fff; padding: 8px 8px; white-space: nowrap; }
.topnav__sep { color: var(--muted); opacity: .5; padding: 0 4px; }
.navlink {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 14px; border-radius: var(--radius-sm);
	font-size: 15px; font-weight: 500; color: #d6dde7; white-space: nowrap;
	transition: background .15s ease, color .15s ease;
}
.navlink:hover, .navlink.is-active { background: rgba(255, 255, 255, .07); color: #fff; }
.navlink .ico { width: 20px; height: 20px; color: var(--gold); }

.topbar__spacer { flex: 1 1 auto; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }

/* ---------- lobby heading ---------- */
.lobby-head { display: flex; align-items: center; gap: 12px; margin: 26px 0 16px; }
.lobby-head h1, .lobby-head h2 { margin: 0; font-style: italic; font-size: 22px; font-weight: 700; }
.lobby-head .ico { width: 22px; height: 22px; color: var(--gold); }

/* ---------- game grid ---------- */
.game-grid {
	display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.game {
	position: relative; display: block; border-radius: var(--radius); overflow: hidden;
	background: var(--surface); aspect-ratio: 285 / 320;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
	transition: transform .18s ease, box-shadow .18s ease;
}
.game:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 0, 0, .5); }
.game__img { width: 100%; height: 100%; object-fit: cover; }
.game__badge {
	position: absolute; top: 8px; left: 8px; z-index: 2;
	font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px;
	background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff;
}
.game__ov {
	position: absolute; inset: 0; z-index: 3;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	background: linear-gradient(180deg, rgba(8, 10, 16, .1), rgba(8, 10, 16, .82));
	opacity: 0; transition: opacity .18s ease;
	text-align: center; padding: 12px;
}
.game:hover .game__ov { opacity: 1; }
.game__ov .play {
	width: 52px; height: 52px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1205;
	box-shadow: 0 6px 16px rgba(246, 201, 69, .4);
}
.game__name { font-weight: 600; font-size: 14px; color: #fff; }
.game__name small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- pills row ---------- */
/* Single row that scrolls horizontally instead of wrapping when it overflows. */
.filters {
	display: flex; flex-wrap: nowrap; gap: 10px; margin: 8px 0 20px;
	overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
	scrollbar-width: none; padding-bottom: 2px;
}
.filters::-webkit-scrollbar { display: none; }
.filter-pill {
	display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; white-space: nowrap;
	padding: 9px 16px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--line);
	font-size: 14px; font-weight: 500; color: #cdd5df; transition: all .15s ease;
}
.filter-pill:hover, .filter-pill.is-active { border-color: transparent; background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff; }
.filter-pill .ico { width: 18px; height: 18px; }

/* ---------- CMS content ---------- */
.content { margin: 34px 0 10px; }
/* Content column spans the full container width — same width as the slots grid. */
.prose { max-width: none; width: 100%; }
.prose .page-title { font-size: 28px; margin: 0 0 18px; }
.prose h2 { font-size: 23px; margin: 30px 0 12px; }
.prose h3 { font-size: 19px; margin: 24px 0 10px; color: #f0f3f7; }
.prose p, .prose li { color: #c3ccd7; font-size: 16px; }
.prose a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose img { height: auto; border-radius: var(--radius); margin: auto; }
.table-scroll { overflow-x: auto; margin: 18px 0; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; min-width: 520px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); font-weight: 600; }

/* ---------- toplist / review / landing shared cards ---------- */
.rank-card {
	display: grid; grid-template-columns: 48px 96px 1fr auto; align-items: center; gap: 18px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 16px 20px; margin-bottom: 14px; transition: border-color .15s ease, transform .15s ease;
}
.rank-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.rank-card__pos { font-family: 'Unbounded', sans-serif; font-size: 26px; font-weight: 800; color: var(--gold); text-align: center; }
.rank-card__logo { width: 96px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.rank-card__name { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 18px; }
.rank-card__rating { color: var(--muted); font-size: 14px; }
.rank-card__bonus { font-size: 14px; color: #cdd5df; margin-top: 4px; }
.stars { color: var(--gold); letter-spacing: 1px; }

.review-card {
	display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: center;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
	margin-bottom: 26px;
}
.review-card__logo { width: 140px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.review-card__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 10px; color: var(--muted); font-size: 14px; }

.landing-hero {
	text-align: center; padding: 60px 20px;
	background: radial-gradient(circle at 50% 0%, rgba(239, 43, 85, .18), transparent 60%), var(--surface);
	border-radius: 20px; border: 1px solid var(--line); margin: 26px 0;
}
.landing-hero h1 { font-size: 40px; margin: 0 0 14px; }
.landing-hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 26px; }

/* ---------- footer ---------- */
.footer { margin-top: 50px; border-top: 1px solid var(--line); background: var(--bg-top); }
.footer-ins { max-width: var(--container); margin: 0 auto; padding: 40px 20px 30px; }
.footer-crown { display: flex; justify-content: center; margin-bottom: 22px; }
.footer-crown img { width: 46px; height: 36px; }
.footer-partners-title { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.footer-partners-title b { color: var(--red); }
.footer-partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; margin-bottom: 28px; opacity: .55; }
.footer-partners span {
	display: inline-flex; align-items: center; justify-content: center;
	height: 34px; padding: 0 12px; border-radius: 8px; background: rgba(255, 255, 255, .05);
	font-size: 12px; font-weight: 600; color: #cdd5df;
}
.footer-legal { color: #8590a0; font-size: 12.5px; line-height: 1.7; border-top: 1px solid var(--line); padding-top: 22px; }
.footer-legal p { margin: 0 0 10px; }
.footer-apps { display: flex; gap: 12px; margin: 22px 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 26px 0; border-top: 1px solid var(--line); }
.footer-col-title { font-family: 'Unbounded', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.footer-col-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col-menu a { color: var(--muted); font-size: 14px; }
.footer-col-menu a:hover { color: var(--text); }
.footer-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.footer-pay span { color: #aab4c0; font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.footer-copy { text-align: center; color: #7c8695; font-size: 13px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- mobile drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 60; }
.overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
	position: fixed; top: 0; left: 0; bottom: 0; width: 280px; max-width: 84vw; z-index: 70;
	background: var(--surface); border-right: 1px solid var(--line);
	transform: translateX(-100%); transition: transform .22s ease;
	display: flex; flex-direction: column; padding: 20px;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer__close { width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .06); color: var(--text); cursor: pointer; }
.drawer__nav { display: grid; gap: 6px; }
.drawer__nav a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius-sm); color: #d6dde7; }
.drawer__nav a:hover { background: rgba(255, 255, 255, .06); }
.drawer__cta { display: grid; gap: 10px; margin-top: auto; padding-top: 20px; }

/* back to top */
.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 40;
	width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
	background: var(--surface); color: var(--text); cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
	.game-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 980px) {
	.topnav { display: none; }
	.burger { display: flex; }
	.footer-cols { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 720px) {
	.game-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.brand__word { font-size: 20px; }
	.review-card { grid-template-columns: 1fr; }
	.rank-card { grid-template-columns: 40px 1fr; grid-auto-flow: row; }
	.rank-card__logo { display: none; }
	.landing-hero h1 { font-size: 30px; }
}

/* Header stays intact down to 360px: shrink chrome, keep both CTAs visible. */
@media (max-width: 600px) {
	.topbar { padding: 0 12px; gap: 10px; }
	.burger { width: 38px; height: 38px; }
	.topbar__actions { gap: 8px; }
	.btn { height: 40px; padding: 0 14px; font-size: 14px; }
}
@media (max-width: 460px) {
	.game-grid { grid-template-columns: repeat(2, 1fr); }
	.brand img { width: 34px; height: 26px; }
	.brand__word { font-size: 17px; }
	.btn { height: 38px; padding: 0 11px; font-size: 13px; }
	.btn-gold { gap: 4px; }
}
@media (max-width: 360px) {
	.topbar { padding: 0 8px; gap: 8px; }
	.burger { width: 34px; height: 34px; }
	.brand { gap: 6px; }
	.brand img { width: 30px; height: 23px; }
	.brand__word { font-size: 15px; }
	.topbar__actions { gap: 6px; }
	.btn { height: 36px; padding: 0 9px; font-size: 12px; }
}
