/* =========================
   9777BDT CASINO THEME
   (single-file static bundle — mobile-first, SEO-friendly)
========================= */

:root {
	--primary: #ffd700;
	--primary-dark: #e6c200;
	--accent-orange: #ffb400;
	--bg: #0b0f1a;
	--bg-dark: #070b14;
	--card: #111827;
	--text: #ffffff;
	--text-muted: #9ca3af;
	--border-color: #1f2937;
	--gradient: linear-gradient(135deg, #ffd700, #ffb400);

	/* Map legacy variable names used below */
	--brand-900: var(--bg);
	--brand-800: #0f1629;
	--accent: var(--primary);
	--accent-dim: var(--primary-dark);
	--muted: var(--text-muted);
	--cyan: var(--accent-orange);
	--green: #22c55e;
	--radius: 12px;
	--radius-lg: 16px;
	--tap: 48px;
	--font: Inter, "Noto Sans Bengali", system-ui, -apple-system, sans-serif;
	--font-display: Inter, "Noto Sans Bengali", system-ui, sans-serif;
	--shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
	--border: var(--border-color);
	--wrap: min(100% - 1.5rem, 72rem);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	/* Standard property only — avoids Firefox “declaration dropped” on -webkit-text-size-adjust */
	text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	font-family: var(--font);
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	background-image: linear-gradient(180deg, var(--bg) 0%, var(--bg-dark) 100%);
	padding-bottom: env(safe-area-inset-bottom, 0);
	overscroll-behavior-y: contain;
}

main section[id] {
	scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 5.5rem);
}

/* Faster first paint on desktop; skipped on small screens for smoother scroll */
@media (min-width: 768px) {
	main section[id]:not(#home) {
		content-visibility: auto;
		contain-intrinsic-size: auto 560px;
	}
}

img {
	max-width: 100%;
	height: auto;
	display: block;
	vertical-align: middle;
}

picture {
	display: block;
}

a {
	color: var(--accent);
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--primary);
}

:focus-visible {
	outline: 2px solid var(--accent-orange);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 1rem;
	z-index: 999;
	padding: 0.65rem 1rem;
	background: var(--gradient);
	color: #000;
	font-weight: 800;
	text-decoration: none;
	border-radius: 8px;
}

.skip-link:focus {
	left: 1rem;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.container {
	width: var(--wrap);
	margin-inline: auto;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding-top: env(safe-area-inset-top, 0);
	background: rgba(11, 15, 26, 0.9);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	padding: 0.5rem 0;
	min-height: 3.5rem;
	width: var(--wrap);
	margin-inline: auto;
}

.brand-wrap {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.brand--logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.brand__img {
	max-height: 46px;
	width: auto;
	max-width: min(200px, 50vw);
	object-fit: contain;
}

@media (min-width: 768px) {
	.brand__img {
		max-height: 52px;
		max-width: 220px;
	}
}

.brand-region {
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--primary);
	padding: 0.3rem 0.5rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 215, 0, 0.35);
}

@media (max-width: 480px) {
	.brand-region {
		display: none;
	}
}

.header-ctas {
	display: none;
	gap: 0.5rem;
}

@media (min-width: 961px) {
	.header-ctas {
		display: flex;
	}
}

.nav-toggle {
	display: none;
	min-width: var(--tap);
	min-height: var(--tap);
	align-items: center;
	justify-content: center;
	background: rgba(17, 24, 39, 0.85);
	border: 1px solid var(--border);
	color: var(--primary);
	border-radius: 10px;
	font-size: 1.25rem;
	cursor: pointer;
}

@media (max-width: 960px) {
	.nav-toggle {
		display: inline-flex;
	}
}

.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	justify-content: flex-end;
	align-items: center;
}

.nav a {
	font-weight: 700;
	font-size: 0.88rem;
	color: var(--muted);
	text-decoration: none;
	padding: 0.4rem 0.55rem;
	border-radius: 8px;
}

.nav a:hover,
.nav a[aria-current="page"] {
	color: var(--primary);
	background: rgba(255, 215, 0, 0.08);
}

@media (max-width: 960px) {
	.nav {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		padding: 0.75rem;
		margin-top: 0.25rem;
		background: rgba(17, 24, 39, 0.98);
		border: 1px solid var(--border);
		border-radius: var(--radius);
	}
	.nav.is-open {
		display: flex;
	}
	.nav a {
		padding: 0.65rem 0.85rem;
	}
}

@media (min-width: 961px) {
	.nav {
		display: flex !important;
		max-width: 52rem;
	}
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: var(--tap);
	padding: 0.6rem 1.25rem;
	border-radius: 999px;
	font-weight: 800;
	font-size: 0.9rem;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
	.btn:hover {
		transform: translateY(-2px);
	}
}

.btn--primary {
	background: var(--gradient);
	color: #000;
	box-shadow: 0 8px 28px rgba(255, 180, 0, 0.35);
}

.btn--bd {
	background: transparent;
	border: 2px solid var(--primary);
	color: var(--primary);
	box-shadow: none;
}

.btn--bd:hover {
	background: rgba(255, 215, 0, 0.1);
}

.btn--ghost {
	background: rgba(17, 24, 39, 0.75);
	border-color: var(--border);
	color: var(--text);
}

.btn__icon {
	width: 1.15rem;
	height: 1.15rem;
	flex-shrink: 0;
}

.btn--sm {
	min-height: 42px;
	padding: 0.45rem 1rem;
	font-size: 0.82rem;
}

/* Hero */
.hero {
	padding: clamp(2.5rem, 8vw, 5rem) 1.25rem clamp(2rem, 5vw, 3rem);
	text-align: center;
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--primary);
	background: rgba(255, 215, 0, 0.08);
	border: 1px solid var(--border);
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	margin: 0 0 1rem;
}

.hero__badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gradient);
	box-shadow: 0 0 10px rgba(255, 180, 0, 0.55);
}

.hero__media {
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	margin-bottom: 1.25rem;
	background: var(--card);
	aspect-ratio: 1200 / 630;
}

.hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero h1 {
	font-family: var(--font-display);
	font-size: clamp(1.65rem, 1.1rem + 2.5vw, 2.65rem);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 1rem;
	background: linear-gradient(120deg, #fff, #fffef0, var(--primary));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero__lead,
.hero__sub {
	color: var(--muted);
	max-width: 65ch;
	margin: 0 auto 1rem;
	text-align: left;
}

.hero__jump {
	margin: 1.25rem 0 0;
}

/* Stats */
.stat-strip {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.65rem;
	margin-top: 1.5rem;
}

@media (min-width: 640px) {
	.stat-strip {
		grid-template-columns: repeat(4, 1fr);
	}
}

.stat-strip__item {
	text-align: center;
	padding: 1rem;
	border-radius: var(--radius);
	background: var(--card);
	border: 1px solid var(--border);
}

.stat-strip__value {
	font-family: var(--font-display);
	font-size: clamp(1.15rem, 1rem + 1vw, 1.5rem);
	font-weight: 800;
	color: var(--primary);
	margin: 0 0 0.25rem;
}

.stat-strip__label {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* TOC */
.toc {
	margin-top: 1.75rem;
}

.toc__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.toc__link {
	display: inline-block;
	padding: 0.4rem 0.75rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--text);
	background: rgba(17, 24, 39, 0.85);
	border: 1px solid var(--border);
	text-decoration: none;
}

.toc__link:hover {
	border-color: var(--primary);
	color: var(--primary);
}

/* Sections */
.section {
	padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.section--alt {
	background: rgba(7, 11, 20, 0.55);
}

.surface-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.section__kicker {
	display: block;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cyan);
	margin-bottom: 0.5rem;
}

.surface-card h2 {
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}

.lead-p {
	font-size: 1.05rem;
	color: var(--muted);
	margin: 0 0 1rem;
}

.surface-card p {
	color: var(--muted);
	margin: 0 0 1rem;
}

.surface-card strong {
	color: var(--text);
}

/* Feature grid */
.feature-icon-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

@media (min-width: 720px) {
	.feature-icon-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.feature-icon-card__link {
	text-decoration: none;
	color: inherit;
	display: block;
	height: 100%;
}

.feature-icon-card__inner {
	display: flex;
	gap: 1rem;
	padding: 1.15rem;
	border-radius: var(--radius);
	background: var(--card);
	border: 1px solid var(--border);
	height: 100%;
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-icon-card__link:hover .feature-icon-card__inner {
	border-color: var(--primary);
}

@media (prefers-reduced-motion: no-preference) {
	.feature-icon-card__link:hover .feature-icon-card__inner {
		transform: translateY(-4px);
	}
}

.feature-icon-card__icon {
	font-size: 1.75rem;
	line-height: 1;
	flex-shrink: 0;
}

.feature-icon-card__h {
	font-size: 1.05rem;
	margin: 0 0 0.35rem;
	color: var(--text);
}

.feature-icon-card__p {
	margin: 0;
	font-size: 0.92rem;
	color: var(--muted);
}

/* Grid cards */
.grid-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.grid-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

.card {
	padding: 1.15rem;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--card);
}

.card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	color: var(--text);
}

.card p {
	margin: 0;
	font-size: 0.92rem;
}

/* Checklist */
.checklist {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
}

.checklist li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.5rem;
	color: var(--muted);
}

.checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--green);
	font-weight: 900;
}

/* Asset figures — responsive images */
.asset-figure {
	margin: 1.25rem 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--card);
	box-shadow: var(--shadow);
}

.asset-figure img {
	width: 100%;
	height: auto;
	object-fit: cover;
	object-position: center;
}

.asset-figure--wide {
	max-height: min(420px, 50vh);
}

.asset-figure--wide img {
	max-height: min(420px, 50vh);
	width: 100%;
	object-fit: cover;
}

/* Game categories — icon + label tiles */
.game-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.65rem;
	margin: 1.15rem 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.game-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.game-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1100px) {
	.game-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

.game-tile {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--card);
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--text);
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
	.game-tile:hover {
		border-color: var(--primary);
		background: rgba(255, 215, 0, 0.06);
		transform: translateY(-2px);
	}
}

.game-tile__icon {
	width: 2.35rem;
	height: 2.35rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: 10px;
	background: rgba(255, 215, 0, 0.1);
	color: var(--primary);
}

.game-tile__icon svg {
	width: 1.35rem;
	height: 1.35rem;
}

.game-tile__label {
	min-width: 0;
}

/* Trust */
.trust-strip {
	padding: 1.5rem;
	border-radius: var(--radius-lg);
	text-align: center;
	border: 1px solid var(--border);
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 180, 0, 0.04));
}

.trust-strip p {
	margin: 0;
	color: var(--muted);
	max-width: 48rem;
	margin-inline: auto;
}

/* FAQ */
.faq-details details {
	margin-bottom: 0.65rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--card);
	overflow: hidden;
}

.faq-details summary {
	cursor: pointer;
	padding: 1rem 1.15rem;
	font-weight: 800;
	color: var(--text);
	list-style: none;
}

.faq-details summary::-webkit-details-marker {
	display: none;
}

.faq-details p {
	margin: 0;
	padding: 0 1.15rem 1.1rem;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.95rem;
}

/* CTA band */
.cta-band {
	padding: clamp(2.5rem, 6vw, 4rem) 0;
	text-align: center;
	background: var(--gradient);
	border-block: 1px solid rgba(0, 0, 0, 0.15);
	color: #000;
}

.cta-band h2 {
	margin: 0 0 0.75rem;
	font-family: var(--font-display);
	font-weight: 800;
	color: #000;
}

.cta-band .muted {
	margin: 0 0 1.25rem;
	color: rgba(0, 0, 0, 0.75);
}

.cta-band .btn--primary {
	background: #0b0f1a;
	color: var(--primary);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cta-band .btn--bd {
	border-color: #000;
	color: #000;
	background: transparent;
}

.cta-band .btn--bd:hover {
	background: rgba(0, 0, 0, 0.12);
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

/* Footer */
.footer {
	padding: 2.5rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
	background: var(--bg-dark);
	border-top: 1px solid var(--border);
	contain: layout style;
}

.footer__wrap {
	width: var(--wrap);
	margin-inline: auto;
	text-align: center;
}

.footer__box {
	margin-bottom: 1.5rem;
}

.footer__tagline {
	color: var(--muted);
	margin: 0 0 1rem;
	font-size: 0.95rem;
}

.footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.footer__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--muted);
	text-decoration: none;
	border: 1px solid var(--border);
	transition: color 0.12s ease, border-color 0.12s ease;
}

.footer__link:hover {
	color: var(--primary);
	border-color: rgba(255, 215, 0, 0.45);
}

.footer__link-icon svg {
	width: 0.95rem;
	height: 0.95rem;
}

.footer__notice {
	font-size: 0.8rem;
	color: #fca5a5;
	margin: 1rem 0 0.5rem;
}

.footer__copy,
.footer__disclaimer {
	font-size: 0.82rem;
	color: var(--muted);
	margin: 0.35rem 0;
}

/* Back to top */
.to-top {
	position: fixed;
	z-index: 90;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	width: 3rem;
	height: 3rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgba(17, 24, 39, 0.95);
	border: 1px solid var(--border);
	color: var(--primary);
	font-size: 1.25rem;
	text-decoration: none;
	box-shadow: var(--shadow);
}

.to-top[hidden] {
	display: none !important;
}

@media print {
	.site-header,
	.to-top,
	.nav-toggle,
	.toc {
		display: none !important;
	}
	body {
		background: #fff;
		color: #111;
	}
}
