/* ==========================================================================
   Stake clone — template 23
   Faithful replica of the stake.com / stake.com.co dark casino chrome.
   Palette, fixed sidebar + topbar, hero, promo cards, capped game grid,
   footer, article prose, responsive drawer.
   ========================================================================== */

:root {
	--bg:          #1a2c38; /* main page background */
	--bg-dark:     #0f212e; /* sidebar / footer / deep surfaces */
	--surface:     #213743; /* cards, inputs, hover */
	--surface-2:   #2f4553; /* borders, raised hover */
	--primary:     #1475e1; /* blue CTA */
	--primary-h:   #1266c9;
	--accent:      #00e701; /* Stake green */
	--text:        #ffffff;
	--text-muted:  #b1bad3;
	--text-dim:    #557086;
	--radius:      4px;
	--sidebar-w:   240px;
	--topbar-h:    60px;
	--font: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.stake {
	margin: 0;
	background: var(--bg);
	color: var(--text-muted);
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--text); margin: 0; font-weight: 800; }

/* ------------------------------------------------------------------ Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	padding: 13px 20px;
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background .15s ease, filter .15s ease, transform .05s ease;
	white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2), 0 1px 2px rgba(0,0,0,.12); }
.btn-primary:hover { background: var(--primary-h); }
.btn-ghost { background: transparent; color: #fff; }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ Topbar */
.topbar {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: var(--topbar-h);
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 16px;
	background: var(--bg);
	box-shadow: 0 1px 0 rgba(0,0,0,.35), 0 6px 12px rgba(0,0,0,.15);
	z-index: 60;
}
.topbar .brand img { height: 30px; width: auto; }
.topbar__spacer { flex: 1; }
.topbar__actions { display: flex; align-items: center; gap: 6px; }

.burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 40px; height: 40px;
	padding: 0 9px;
	background: var(--surface);
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
}
.burger span { height: 2px; background: var(--text-muted); border-radius: 2px; }

/* ------------------------------------------------------------------ Sidebar */
.sidebar {
	position: fixed;
	top: var(--topbar-h);
	left: 0;
	bottom: 0;
	width: var(--sidebar-w);
	background: var(--bg-dark);
	padding: 12px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 50;
}
.sidebar__toggle {
	display: flex;
	gap: 6px;
	background: var(--bg);
	border-radius: var(--radius);
	padding: 4px;
	margin-bottom: 6px;
}
.sidebar__toggle .seg {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 4px;
	border-radius: var(--radius);
	font-size: 13px;
	font-weight: 700;
	color: var(--text-muted);
	transition: background .15s ease, color .15s ease;
}
.sidebar__toggle .seg img { height: 30px; width: auto; opacity: .9; }
.sidebar__toggle .seg.is-active { background: var(--surface-2); color: #fff; }
.sidebar__toggle .seg:hover { color: #fff; }

.sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.navlink {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	border-radius: var(--radius);
	font-weight: 700;
	color: var(--text-muted);
	transition: background .15s ease, color .15s ease;
}
.navlink svg { color: var(--text-dim); flex: none; transition: color .15s ease; }
.navlink:hover { background: var(--surface); color: #fff; }
.navlink:hover svg { color: var(--text); }

.sidebar__support {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-radius: var(--radius);
	background: var(--surface);
	font-weight: 700;
	color: var(--text-muted);
}
.sidebar__support svg { color: var(--accent); flex: none; }
.sidebar__support:hover { background: var(--surface-2); color: #fff; }

/* --------------------------------------------------------------- Main area */
.site-main {
	margin-left: var(--sidebar-w);
	padding-top: var(--topbar-h);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 28px 40px;
	flex: 1;
}

/* ------------------------------------------------------------------- Hero */
.hero {
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr 1.15fr;
	gap: 20px;
	align-items: center;
	margin-bottom: 28px;
	padding: 30px 32px;
	border-radius: 8px;
	overflow: hidden;
	min-height: 300px;
	/* World-cup banner background with a left-weighted gradient for legibility,
	   matching the source hero (::before gradient + ::after cover image). */
	background:
		linear-gradient(90deg, rgba(15,33,46,.94) 0%, rgba(15,33,46,.72) 42%, rgba(15,33,46,.30) 100%),
		url("/assets/img/hero-banner.webp") center/cover no-repeat,
		linear-gradient(0deg, var(--bg-dark) 0%, var(--bg) 100%);
}
.hero__intro {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 22px;
}
.hero__title {
	font-size: 32px;
	line-height: 1.15;
	color: #fff;
	max-width: 13ch;
	text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero__intro .btn { align-self: flex-start; }
.hero__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.promo-card {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background: var(--surface);
	aspect-ratio: 16 / 10;
	transition: transform .18s ease, box-shadow .18s ease;
}
.promo-card img { width: 100%; height: 100%; object-fit: cover; }
.promo-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.promo-card__label {
	position: absolute;
	left: 12px; bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 12px;
	border-radius: var(--radius);
	background: rgba(15,33,46,.85);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
}
.promo-card__label svg { color: var(--accent); }

/* ------------------------------------------------------------------ Search */
.game-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--surface);
	border: 2px solid var(--surface-2);
	border-radius: var(--radius);
	padding: 0 14px;
	margin-bottom: 26px;
}
.game-search svg { color: var(--text-dim); flex: none; }
.game-search input {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	color: #fff;
	font-family: var(--font);
	font-size: 14px;
	padding: 13px 0;
}
.game-search input::placeholder { color: var(--text-dim); }
.game-search:focus-within { border-color: var(--primary); }

/* ------------------------------------------------------- Lobby heading */
.lobby-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
}
.lobby-head h2 { font-size: 18px; }

/* ------------------------------------------------------------- Game grid */
.game-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	margin-bottom: 34px;
}
.game {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background: var(--surface);
	aspect-ratio: 280 / 375;
	transition: transform .18s ease, box-shadow .18s ease;
}
.game__img { width: 100%; height: 100%; object-fit: cover; }
.game__rank {
	position: absolute;
	top: 6px; left: 8px;
	font-size: 22px;
	font-weight: 900;
	color: #fff;
	text-shadow: 0 2px 6px rgba(0,0,0,.6);
	z-index: 2;
}
.game__ov {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: linear-gradient(180deg, rgba(15,33,46,0) 40%, rgba(15,33,46,.92) 100%);
	opacity: 0;
	transition: opacity .18s ease;
	padding: 10px;
	text-align: center;
}
.game:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0,0,0,.45); }
.game:hover .game__ov { opacity: 1; }
.game__ov .play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--bg-dark);
}
.game__name { color: #fff; font-weight: 800; font-size: 13px; }

/* ---------------------------------------------------------- Article body */
.content { margin-top: 8px; }
.prose { color: var(--text-muted); font-size: 15px; line-height: 1.7; max-width: 1144px; }
.prose .page-title { font-size: 28px; line-height: 1.2; margin: 0 0 18px; color: #fff; }
.prose h2 { font-size: 22px; margin: 30px 0 12px; color: #fff; }
.prose h3 { font-size: 18px; margin: 24px 0 10px; color: #fff; }
.prose p { margin: 0 0 14px; }
.prose a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--primary); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: #fff; }
.prose img { border-radius: 8px; margin: 16px 0; height: auto;}
.prose blockquote {
	margin: 16px 0;
	padding: 12px 16px;
	border-left: 3px solid var(--primary);
	background: var(--surface);
	border-radius: 0 var(--radius) var(--radius) 0;
}
.table-scroll { overflow-x: auto; margin: 16px 0; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; min-width: 480px; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--surface-2); }
.prose th { background: var(--surface); color: #fff; font-weight: 700; }

/* ------------------------------------------------------------------ Footer */
.footer {
	background: var(--bg-dark);
	padding: 34px 28px 28px;
	margin-top: auto;
}
.footer-cols {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	max-width: 1200px;
	margin: 0 auto 26px;
}
.footer-col h4 { font-size: 13px; color: #fff; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--text-dim); font-weight: 600; }
.footer-col a:hover { color: #fff; }
.footer-brand { max-width: 1200px; margin: 0 auto 18px; opacity: .8; }
.footer-legal {
	max-width: 1200px;
	margin: 0 auto;
	padding-top: 20px;
	border-top: 1px solid var(--surface);
	color: var(--text-dim);
	font-size: 12px;
	line-height: 1.6;
}
.footer-legal p { margin: 0 0 10px; }
.footer-rg strong { color: var(--text-muted); }
.footer-copy { color: var(--text-dim); }

/* ------------------------------------------------------- Overlay / to-top */
.overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
	z-index: 45;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.to-top {
	position: fixed;
	right: 18px; bottom: 18px;
	width: 44px; height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--surface-2);
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .15s ease;
	z-index: 55;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary); }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
	.game-grid { grid-template-columns: repeat(4, 1fr); }
	.game:nth-child(n+9) { display: none; } /* keep two tidy rows */
}

@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; }
	.hero__title { max-width: none; font-size: 26px; }
}

@media (max-width: 860px) {
	.burger { display: flex; }
	.sidebar {
		transform: translateX(-100%);
		transition: transform .25s ease;
		box-shadow: 0 0 40px rgba(0,0,0,.5);
	}
	.sidebar.is-open { transform: none; }
	.site-main { margin-left: 0; }
	.footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------- Landing page type */
.landing-hero {
	text-align: center;
	max-width: 720px;
	margin: 24px auto 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}
.landing-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-muted);
	font-weight: 700;
	font-size: 13px;
}
.landing-hero__title { font-size: 34px; line-height: 1.15; color: #fff; }
.landing-hero__sub { color: var(--text-muted); font-size: 16px; max-width: 56ch; margin: 0; }
.landing-hero__terms, .review-card__terms { color: var(--text-dim); font-size: 12px; }
.landing-cta {
	text-align: center;
	background: var(--surface);
	border-radius: 8px;
	padding: 34px 20px;
	margin-top: 30px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}
.landing-cta h2 { font-size: 24px; }

/* ------------------------------------------------- Toplist page type */
.toplist { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.toplist-row {
	display: grid;
	grid-template-columns: 44px 1.4fr 2fr auto;
	align-items: center;
	gap: 16px;
	background: var(--surface);
	border: 1px solid var(--surface-2);
	border-radius: 8px;
	padding: 16px 18px;
	transition: border-color .15s ease, transform .15s ease;
}
.toplist-row:hover { border-color: var(--primary); transform: translateY(-2px); }
.toplist-row__rank { font-size: 20px; font-weight: 900; color: var(--accent); text-align: center; }
.toplist-row__brand { display: flex; align-items: center; gap: 12px; }
.toplist-row__brand img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.toplist-row__brand strong { color: #fff; display: block; font-size: 16px; }
.toplist-row__rating { display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted); font-weight: 700; font-size: 13px; }
.toplist-row__bonus { margin: 0; color: var(--text-muted); }

/* ------------------------------------------------- Review page type */
.review { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
.review-card {
	position: sticky;
	top: calc(var(--topbar-h) + 20px);
	background: var(--surface);
	border: 1px solid var(--surface-2);
	border-radius: 8px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.review-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-card__score { text-align: center; line-height: 1.1; }
.review-card__score span { display: block; font-size: 26px; font-weight: 900; color: var(--accent); }
.review-card__score small { color: var(--text-dim); font-size: 11px; }
.review-card__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.review-card__facts li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--surface-2); }
.review-card__facts li:last-child { border-bottom: none; padding-bottom: 0; }
.review-card__facts span { color: var(--text-dim); font-size: 12px; }
.review-card__facts strong { color: #fff; font-weight: 700; }
.review-body { max-width: none; }

@media (max-width: 860px) {
	.toplist-row { grid-template-columns: 40px 1fr; grid-auto-rows: auto; row-gap: 10px; }
	.toplist-row__bonus { grid-column: 1 / -1; }
	.toplist-row .btn { grid-column: 1 / -1; }
	.review { grid-template-columns: 1fr; }
	.review-card { position: static; }
}

@media (max-width: 600px) {
	.container { padding: 16px 14px 32px; }
	.hero__cards { grid-template-columns: 1fr 1fr; }
	.game-grid { grid-template-columns: repeat(3, 1fr); }
	.game:nth-child(n+7) { display: none; } /* two rows of three */
	.topbar__actions .btn-ghost { display: none; }
	.footer { padding: 26px 16px; }
	.landing-hero__title { font-size: 26px; }
}
