/* Lotterytom homepage - 2026 redesign */
:root {
	--ink: #0c1322;
	--ink-2: #16203a;
	--paper: #f4f5f8;
	--card: #ffffff;
	--line: #e4e8ef;
	--muted: #667085;
	--accent: #ff5733;
	--accent-dark: #e2451f;
	--radius: 16px;
	--shadow: 0 10px 30px rgba(12, 19, 34, .07);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }
h1, h2, h3, p, ol, ul { margin: 0; }
img { max-width: 100%; border: 0; }

.container {
	width: min(1200px, 92vw);
	margin: 0 auto;
}

/* ---------- top bar ---------- */
.topbar {
	background: var(--ink);
	color: #cdd4e0;
	font-size: 12.5px;
}
.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 34px;
	gap: 16px;
}
.topbar-date { letter-spacing: .02em; }
.topbar-links { display: flex; gap: 18px; }
.topbar-links a { color: #cdd4e0; }
.topbar-links a:hover { color: #fff; }

/* ---------- header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: 26px;
	min-height: 74px;
}
.brand {
	flex: 0 0 auto;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: .04em;
	color: var(--ink);
}
.brand span { color: var(--accent); }
.nav {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 2px;
	overflow-x: auto;
	scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
	flex: 0 0 auto;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 600;
	color: #3b475c;
	border-radius: 999px;
	white-space: nowrap;
}
.nav a:hover { color: var(--accent); background: #fff1ec; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 700;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 8px 18px rgba(255, 87, 51, .28);
}
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

.nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	padding: 10px;
}
.nav-toggle span {
	display: block;
	height: 2px;
	margin: 4px 0;
	background: var(--ink);
	border-radius: 2px;
}

/* ---------- shared ---------- */
.kicker {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent);
}
.kicker-light { color: #ffb4a2; }
.meta { display: block; font-size: 12px; color: var(--muted); }
.section { margin-top: 46px; }
.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--ink);
}
.section-head h2 {
	font-size: 23px;
	font-weight: 800;
	letter-spacing: -.01em;
}
.section-head .more {
	font-size: 13px;
	font-weight: 700;
	color: var(--accent);
}

/* ---------- hero ---------- */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
	gap: 22px;
	margin-top: 26px;
}
.hero-lead {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 430px;
	padding: 34px;
	overflow: hidden;
	border-radius: var(--radius);
	background:
		radial-gradient(120% 90% at 92% 4%, rgba(255, 87, 51, .42) 0%, rgba(255, 87, 51, 0) 52%),
		radial-gradient(90% 80% at 8% 96%, rgba(62, 122, 255, .3) 0%, rgba(62, 122, 255, 0) 55%),
		linear-gradient(140deg, #0c1322 0%, #182441 58%, #0c1322 100%);
	color: #fff;
}
.hero-lead:hover { color: #fff; }
.hero-lead-body { position: relative; z-index: 2; max-width: 680px; }
.hero-lead h1 {
	margin: 12px 0 10px;
	font-size: clamp(26px, 3vw, 40px);
	line-height: 1.14;
	font-weight: 800;
	letter-spacing: -.015em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hero-lead p {
	font-size: 15px;
	line-height: 1.6;
	color: #d5dbe7;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hero-lead .meta { margin-top: 16px; color: #aeb8c9; }
.hero-lead .kicker { color: #ffb4a2; }
.hero-ring {
	position: absolute;
	right: -90px;
	top: -90px;
	width: 340px;
	height: 340px;
	border: 46px solid rgba(255, 255, 255, .06);
	border-radius: 50%;
}
.hero-grid {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: linear-gradient(120deg, rgba(0, 0, 0, .8), transparent 62%);
}

.hero-side { display: grid; grid-template-rows: auto auto 1fr; gap: 16px; }
.hero-card {
	display: block;
	padding: 20px 22px;
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	border-radius: 14px;
	transition: box-shadow .18s ease, transform .18s ease;
}
.hero-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.hero-card h2 {
	margin: 8px 0 10px;
	font-size: 17px;
	line-height: 1.32;
	font-weight: 700;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.trending {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 18px 20px;
}
.panel-head {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink);
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}
.panel-head::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
}

/* ---------- ranked lists ---------- */
.rank-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: rank;
}
.rank-list li {
	display: flex;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px dashed var(--line);
	counter-increment: rank;
}
.rank-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.rank-list li::before {
	content: counter(rank, decimal-leading-zero);
	flex: 0 0 26px;
	font-size: 12px;
	font-weight: 800;
	color: var(--accent);
	line-height: 1.5;
}
.rank-list a {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- latest ---------- */
.latest-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}
.news-card {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 22px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.news-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
	border-color: #f3c8bc;
}
.tag {
	align-self: flex-start;
	padding: 4px 10px;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--accent);
	background: #fff1ec;
	border-radius: 999px;
}
.news-card h3 {
	font-size: 17px;
	line-height: 1.35;
	font-weight: 700;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.news-card p {
	font-size: 13.5px;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.news-card .meta { margin-top: auto; padding-top: 6px; }

/* ---------- category layout ---------- */
.cat-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 30px;
	margin-top: 46px;
	align-items: start;
}
.cat-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
.cat-card {
	--tone: var(--accent);
	background: var(--card);
	border: 1px solid var(--line);
	border-top: 4px solid var(--tone);
	border-radius: 14px;
	padding: 22px;
}
.cat-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.cat-head h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 800;
}
.cat-head h2::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--tone);
}
.cat-head a {
	font-size: 12px;
	font-weight: 700;
	color: var(--muted);
}
.cat-head a:hover { color: var(--accent); }
.cat-lead { display: block; }
.cat-lead h3 {
	font-size: 16px;
	line-height: 1.38;
	font-weight: 700;
	margin-bottom: 7px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cat-lead p {
	font-size: 13px;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cat-list {
	list-style: none;
	margin: 14px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--line);
}
.cat-list li { padding: 7px 0; }
.cat-list a {
	font-size: 13.5px;
	font-weight: 600;
	color: #414d63;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cat-list a::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-right: 9px;
	vertical-align: 2px;
	border-radius: 50%;
	background: var(--tone);
	opacity: .75;
}

.cat-tone-1 { --tone: #e63946; }
.cat-tone-2 { --tone: #f77f00; }
.cat-tone-3 { --tone: #d62828; }
.cat-tone-4 { --tone: #8338ec; }
.cat-tone-5 { --tone: #2a9d8f; }
.cat-tone-6 { --tone: #0077b6; }
.cat-tone-7 { --tone: #43aa8b; }
.cat-tone-8 { --tone: #ff5733; }

/* ---------- sidebar ---------- */
.sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 96px;
}
.panel {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 20px;
}
.panel .rank-list { margin-top: 6px; }
.panel.cta {
	background:
		radial-gradient(110% 100% at 100% 0%, rgba(255, 87, 51, .38) 0%, rgba(255, 87, 51, 0) 60%),
		linear-gradient(150deg, #0c1322, #1b2745);
	color: #fff;
	border: 0;
}
.panel.cta h3 {
	margin: 10px 0 8px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 800;
}
.panel.cta p { font-size: 13.5px; color: #c9d1e0; }
.panel.cta .btn { margin-top: 16px; }
.partner-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.partner-links a {
	padding: 6px 12px;
	font-size: 12.5px;
	font-weight: 600;
	color: #4a566c;
	background: var(--paper);
	border-radius: 999px;
}
.partner-links a:hover { color: var(--accent); background: #fff1ec; }

/* ---------- gambling band ---------- */
.band {
	margin-top: 56px;
	padding: 58px 0;
	background:
		radial-gradient(90% 120% at 0% 0%, rgba(255, 87, 51, .18) 0%, rgba(255, 87, 51, 0) 55%),
		linear-gradient(160deg, #0b1220, #131d33);
	color: #eef1f7;
}
.band-inner {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: 50px;
	align-items: start;
}
.band-intro h2 {
	margin: 12px 0 12px;
	font-size: clamp(24px, 2.6vw, 34px);
	line-height: 1.18;
	font-weight: 800;
	letter-spacing: -.015em;
}
.band-intro p { font-size: 14.5px; color: #b9c3d4; max-width: 46ch; }
.band-intro .btn { margin-top: 22px; }
.band-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: band;
}
.band-list li {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding: 13px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	counter-increment: band;
}
.band-list li:first-child { padding-top: 0; }
.band-list li::before {
	content: counter(band, decimal-leading-zero);
	flex: 0 0 30px;
	font-size: 12px;
	font-weight: 800;
	color: #ff8f74;
}
.band-list a {
	flex: 1 1 auto;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.4;
	color: #eef1f7;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.band-list a:hover { color: #ffb4a2; }
.band-list span { flex: 0 0 auto; font-size: 11.5px; color: #8590a4; }

/* ---------- footer ---------- */
.site-footer {
	background: #070b14;
	color: #aab4c5;
	padding: 46px 0 0;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1.3fr;
	gap: 34px;
	padding-bottom: 34px;
}
.footer-title {
	margin-bottom: 14px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #fff;
}
.footer-col > a {
	display: block;
	padding: 5px 0;
	font-size: 13.5px;
	color: #aab4c5;
}
.footer-col > a:hover { color: #fff; }
.footer-partners { display: flex; flex-wrap: wrap; gap: 7px; }
.footer-partners a {
	padding: 5px 10px;
	font-size: 12px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 999px;
}
.footer-partners a:hover { color: #fff; border-color: rgba(255, 255, 255, .32); }
.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0 26px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: 12.5px;
}
.footer-bottom a { color: #fff; }
.back-top { color: #ffb4a2 !important; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
	.hero { grid-template-columns: minmax(0, 1fr); }
	.hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; }
	.trending { grid-column: 1 / -1; }
	.cat-layout { grid-template-columns: minmax(0, 1fr); }
	.sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.band-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
	.nav {
		display: none;
		order: 3;
		flex: 1 1 100%;
		padding: 6px 0 16px;
		flex-wrap: wrap;
	}
	.site-header.nav-open .nav { display: flex; }
	.header-inner { flex-wrap: wrap; gap: 12px; padding-top: 12px; }
	.nav-toggle { display: block; }
	.header-actions { margin-left: auto; }
	.latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
	body { font-size: 14px; }
	.topbar-date { display: none; }
	.topbar-inner { justify-content: flex-end; }
	.hero-lead { min-height: 320px; padding: 24px; }
	.hero-lead p { display: none; }
	.hero-side { grid-template-columns: minmax(0, 1fr); }
	.latest-grid { grid-template-columns: minmax(0, 1fr); }
	.cat-grid { grid-template-columns: minmax(0, 1fr); }
	.sidebar { grid-template-columns: minmax(0, 1fr); }
	.section { margin-top: 36px; }
	.footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
	.band { padding: 42px 0; }
	.band-list span { display: none; }
}
