/* Site chrome + homepage — one file, matches the marketing mock. */

.site--topbar .site-sidebar,
.site--topbar .site-header--mobile {
	display: none !important;
}

.site--topbar #geo-banner,
.site--topbar .site-main,
.site--topbar .site-footer {
	margin-left: 0;
}

.site-topbar {
	position: sticky;
	top: 0;
	z-index: 1200;
	background: var(--shell-bar);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	/* Hero draws the matte silver divider; keep the header edge clean. */
	border-bottom: 0;
}

.admin-bar .site-topbar {
	top: 32px;
}

.site-topbar__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.site-topbar__logo {
	flex: 0 0 auto;
	display: block;
}

.site-topbar__logo-img {
	display: block;
	height: 41px;
	width: auto;
	max-width: 207px;
}

.site-topbar__toggle {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin-left: auto;
	padding: 10px;
	background: none;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	cursor: pointer;
}

.site-topbar__toggle .hamburger-line {
	width: 18px;
}

.site-topbar__nav {
	display: none;
	flex: 1 1 auto;
}

.site-topbar__nav .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.site-topbar__nav .menu-item a {
	display: block;
	padding: 10px 12px;
	color: var(--color-text);
	font-weight: 600;
	font-size: 0.92rem;
}

.site-topbar__nav .menu-item a:hover,
.site-topbar__nav .current-menu-item a {
	color: var(--color-heading);
}

.site-topbar__tools {
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
}

.site-topbar__search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--color-text);
	cursor: pointer;
}

.site-topbar__search-btn:hover,
.site-topbar.search-open .site-topbar__search-btn {
	color: var(--color-heading);
	background: rgba(255, 255, 255, 0.06);
}

.site-topbar__search {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: min(320px, 80vw);
	padding: 8px;
	border-radius: 12px;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-card);
}

.site-topbar.search-open .site-topbar__search {
	display: block;
}

.site-topbar__search-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: var(--shell-panel);
	color: var(--color-text);
	font: inherit;
}

.site-topbar__search-input:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 1px;
}

.site-topbar.is-open .site-topbar__nav {
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--shell-panel);
	border-bottom: 1px solid var(--color-border);
	padding: 12px 20px 16px;
}

/* Hero: copy + compact trust finisher set the height; the art fills behind. */
.home-hero {
	position: relative;
	overflow: hidden;
	background: #07060f;
	/* Matte silver rules: header / banner, then banner / rest of page. */
	border-top: 1px solid #c3c7d0;
	border-bottom: 1px solid #c3c7d0;
}

.home-hero__banner-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Daytime art is bright: shade the copy side so the white text stays readable. */
.home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(7, 6, 15, 0.9) 0%, rgba(7, 6, 15, 0.8) 34%, rgba(7, 6, 15, 0.4) 56%, rgba(7, 6, 15, 0) 74%);
}

.home-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
	padding: 36px 20px 28px;
}

.home-hero__copy {
	max-width: 34rem;
}

.home-hero__kicker {
	margin: 0 0 10px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ff4db8;
}

.home-hero__title {
	margin: 0 0 12px;
	font-size: clamp(1.6rem, 3.6vw, 2.6rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--color-heading);
	text-transform: uppercase;
}

.home-hero__title span {
	color: #22e86a;
}

.home-hero__lead {
	margin: 0 0 18px;
	max-width: 30rem;
	color: #fff;
	font-size: 0.94rem;
	line-height: 1.55;
}

.home-hero__claim {
	margin: 0 0 16px;
	font-size: clamp(1.3rem, 2.5vw, 1.8rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #ff4db8;
}

.site-main--home .btn-primary {
	color: #fff;
}

.site-main--home .btn-primary:hover,
.site-main--home .btn-primary:focus {
	color: #fff;
}

.home-trust {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 12px;
	width: 100%;
}

.home-trust__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
}

.home-trust__icon {
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.home-trust__icon--teal {
	color: #00d4aa;
}

.home-trust__icon--gold {
	color: #f0b90b;
}

.home-trust__icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.home-trust__item strong {
	color: #f3f4f8;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.25;
}

.home-rated {
	padding: 28px 0 48px;
	/* Matte read of --color-accent (#803bab): dusty, no glow. */
	border-bottom: 1px solid #8a629e;
}

/* Wider than header/footer so casinos, slots and news use more of the page. */
.home-rated .section-inner,
.home-slots .section-inner,
.home-news .section-inner {
	max-width: 1600px;
}

.home-rated__head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px 16px;
	margin-bottom: 20px;
}

/* The country pill arrives a moment after the page (geo-filter.js); its space is
   kept from the start so the casino list below does not jump. 41px and 71px are
   the filled pill's height on one and on two lines. */
.home-rated__head .geo-filter {
	margin-right: auto;
	min-height: 41px;
}

.home-rated__head .geo-filter[hidden] {
	display: flex;
	visibility: hidden;
}

@media (max-width: 899px) {
	.home-rated__head .geo-filter {
		order: 3;
		flex-basis: 100%;
		margin-right: 0;
	}
}

@media (max-width: 520px) {
	.home-rated__head .geo-filter {
		min-height: 71px;
	}

	.home-rated__head .geo-filter__text {
		flex-basis: calc(100% - 26px);
	}
}

/* Invisible (space kept) until geo-filter.js has swapped out casinos blocked in the
   visitor's country, so the cards don't slide around. The script also shows them
   when the lookup is slow; the 4s animation covers the script not running at all. */
.home-rated__grid[data-geo-pending] {
	visibility: hidden;
	animation: home-rated-reveal 0s 4s forwards;
}

@keyframes home-rated-reveal {
	to {
		visibility: visible;
	}
}

.home-rated .home-rated-card.geo-hidden,
.home-rated .home-rated-card.is-over-limit {
	display: none;
}

.home-rated__title {
	margin: 0;
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: -0.02em;
}

.home-rated__all {
	color: var(--color-text-muted);
	font-size: 0.88rem;
	font-weight: 600;
	white-space: nowrap;
}

.home-rated__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.home-rated__terms {
	margin: 12px 0 0;
	color: var(--color-text-muted);
	font-size: 0.72rem;
	opacity: 0.8;
	text-align: right;
}

.home-rated-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 28px 18px 16px;
	border-radius: 16px;
	background: var(--shell-surface);
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.home-rated-card--featured {
	background: linear-gradient(160deg, rgba(201, 162, 39, 0.16) 0%, var(--shell-surface) 48%);
	border-color: rgba(232, 197, 71, 0.35);
}

.home-rated-card__rank {
	position: absolute;
	top: 10px;
	left: 14px;
	font-size: 0.7rem;
	font-weight: 800;
	color: var(--color-text-muted);
}

.home-rated-card__brand {
	min-height: 132px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.home-rated-card__brand:hover {
	opacity: 0.85;
}

/* Picker mode (Contact page complaints): the logo is a button, not a link. */
button.home-rated-card__brand {
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.home-rated-card.is-picked {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 2px var(--color-primary), 0 0 22px rgba(230, 0, 126, 0.35);
}

.home-rated-card__logo {
	display: block;
	margin-inline: auto;
	width: 132px;
	max-width: 100%;
	max-height: 132px;
	height: auto;
	object-fit: contain;
	border-radius: 12px;
}

.home-rated-card__name {
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--color-heading);
	text-transform: uppercase;
}

.home-rated-card__bonus {
	margin: 0;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	min-height: 2.7em;
	text-align: center;
}

/* Flush bar along the bottom of the tile; the radius follows the tile's corners. */
.home-rated-card__cta {
	margin: auto -18px -16px;
	padding: 9px 16px;
	border: 0;
	border-radius: 0 0 15px 15px;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.home-rated-card__cta:active {
	transform: none;
}

.home-rated-card__review {
	margin-top: auto;
	color: var(--color-text-muted);
	font-size: 0.8rem;
	font-weight: 600;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.home-rated-card__review:hover,
.home-rated-card__review:focus-visible {
	color: #fff;
}

.home-rated-card__review + .home-rated-card__cta {
	margin-top: 4px;
}

.home-slots {
	padding: 36px 0 48px;
	/* Same matte purple rule as under Top casinos. */
	border-bottom: 1px solid #8a629e;
}

.home-slots__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.home-slots__title {
	margin: 0;
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: -0.02em;
}

.home-slots__all {
	color: var(--color-text-muted);
	font-size: 0.88rem;
	font-weight: 600;
	white-space: nowrap;
}

.home-slots__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.home-slot-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 0 12px;
	border-radius: 16px;
	background: var(--shell-surface);
	border: 1px solid rgba(255, 255, 255, 0.05);
	overflow: hidden;
}

.home-slot-card__link {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: inherit;
	text-decoration: none;
}

.home-slot-card__link:hover .home-slot-card__title,
.home-slot-card__link:focus-visible .home-slot-card__title {
	color: #ff4db8;
}

/* Slot art is 3:2; cover keeps odd sizes from leaving gaps. */
.home-slot-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background:
		linear-gradient(160deg, rgba(230, 0, 126, 0.16) 0%, rgba(128, 59, 171, 0.14) 46%, rgba(0, 225, 224, 0.12) 100%),
		var(--shell-surface-deep);
}

.home-slot-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.home-slot-card__link:hover .home-slot-card__media img {
	transform: scale(1.04);
}

.home-slot-card__meta,
.home-slot-card__title {
	display: block;
	margin: 0;
	padding: 0 14px;
}

.home-slot-card__meta {
	padding-top: 2px;
	color: var(--color-text-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.home-slot-card__title {
	color: var(--color-heading);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.home-news {
	padding: 36px 0 48px;
}

.home-news__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.home-news__title {
	margin: 0;
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: -0.02em;
}

.home-news__all {
	color: var(--color-text-muted);
	font-size: 0.88rem;
	font-weight: 600;
	white-space: nowrap;
}

.home-news__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.home-news-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 0 16px;
	border-radius: 16px;
	background: var(--shell-surface);
	border: 1px solid rgba(255, 255, 255, 0.05);
	overflow: hidden;
}

.home-news-card__media {
	aspect-ratio: 16 / 9;
	background:
		linear-gradient(135deg, rgba(0, 212, 170, 0.12) 0%, rgba(240, 185, 11, 0.08) 48%, rgba(255, 77, 184, 0.12) 100%),
		var(--shell-surface-deep);
}

.home-news-card__meta,
.home-news-card__title,
.home-news-card__excerpt {
	margin: 0;
	padding: 0 18px;
}

.home-news-card__meta {
	padding-top: 4px;
	color: var(--color-text-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Same headline box as the cards on the News page (css/news.css). */
.home-news-card__title {
	margin: 0 18px;
	padding: 10px 12px;
	border: 1px solid color-mix(in srgb, var(--color-primary) 55%, var(--color-accent));
	border-radius: var(--radius-sm);
	background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 14%, transparent), color-mix(in srgb, var(--color-accent) 18%, transparent));
	box-shadow: 0 0 14px color-mix(in srgb, var(--color-primary) 16%, transparent);
	color: var(--color-heading);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.home-news-card__excerpt {
	color: var(--color-text);
	font-size: 0.88rem;
	line-height: 1.5;
}

/* Real articles: the whole card links to the article. */
.home-news-card__link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: inherit;
	text-decoration: none;
}

.home-news-card__link .home-news-card__media {
	display: block;
	overflow: hidden;
}

.home-news-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.home-news-card__link:hover .home-news-card__media img {
	transform: scale(1.04);
}

.home-news-card__link .home-news-card__meta {
	display: block;
}

.home-news-card__topic {
	color: var(--color-secondary);
}

.home-news-card__title {
	transition: color 0.2s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-news-card__link:hover .home-news-card__title,
.home-news-card__link:focus-visible .home-news-card__title {
	border-color: var(--color-primary);
	box-shadow: 0 0 18px color-mix(in srgb, var(--color-primary) 30%, transparent);
	color: #ff4db8;
}

.site--topbar .site-footer {
	background: var(--shell-panel);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	margin-top: 0;
	padding-top: 40px;
}

.site--topbar .footer-widgets {
	gap: 28px;
	padding-bottom: 28px;
}

.site--topbar .footer-col h3,
.site--topbar .footer-col .widget-title {
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #c8cde0;
}

@media (min-width: 768px) {
	.site-topbar__toggle {
		display: none;
	}

	.site-topbar__nav,
	.site-topbar.is-open .site-topbar__nav {
		display: block;
		position: static;
		background: none;
		border: 0;
		padding: 0;
	}

	.site-topbar__nav .menu {
		flex-direction: row;
		justify-content: flex-start;
		gap: 8px 22px;
	}

	.site-topbar__tools {
		margin-left: auto;
	}

	.home-trust {
		grid-template-columns: repeat(4, 1fr);
		gap: 8px 10px;
	}

	.home-rated__grid,
	.home-slots__grid {
		grid-template-columns: 1fr 1fr;
	}

	.home-news__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.home-rated__grid,
	.home-slots__grid {
		/* Five compact tiles; cap width so the wide page does not stretch them. */
		grid-template-columns: repeat(5, minmax(0, 250px));
		justify-content: space-between;
	}

	.home-news__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.home-news-card__title {
		font-size: 1rem;
	}

	.home-news-card__excerpt {
		font-size: 0.84rem;
	}
}

@media (max-width: 767px) {
	/* Phone: crop to the calmer left/mid of the art. */
	.home-hero__banner-img {
		object-position: 58% center;
	}

	.home-hero::after {
		background: linear-gradient(90deg, rgba(7, 6, 15, 0.92) 0%, rgba(7, 6, 15, 0.8) 58%, rgba(7, 6, 15, 0.5) 100%);
	}

	.home-hero__inner {
		padding: 30px 20px 28px;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-topbar {
		top: 46px;
	}
}
