/*
 * Base styles + default CSS custom properties.
 * Each casino template overrides these variables in its own scope
 * (body.template-{n}).
 */

:root {
	--site-bg: #ffffff;
	--site-text: #1f2937;
	--site-muted: #6b7280;
	--site-accent: #c9a84c;
	--site-accent-2: #c9a84c;
	--site-surface: #f4f6f9;
	--site-border: rgba(0, 0, 0, 0.08);

	--header-bg: #0d0d0d;
	--header-text: #ffffff;
	--header-link: #ffffff;
	--header-link-hover: var(--site-accent);
	--header-trust-bg: #000000;
	--header-trust-text: var(--site-accent);

	--footer-bg: #0d0d0d;
	--footer-text: #d1d5db;
	--footer-heading: #ffffff;
	--footer-link: #d1d5db;
	--footer-divider: rgba(255, 255, 255, 0.08);

	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: var(--font-body);

	--container-width: 1200px;
	--container-pad: clamp(1rem, 4vw, 2rem);
	--mobile-drawer-w: min(85vw, 340px);
}

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

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

body {
	margin: 0;
	background: var(--site-bg);
	color: var(--site-text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--site-accent);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

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

button {
	font: inherit;
	cursor: pointer;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.skip-link {
	left: -9999px;
	position: absolute;
	top: 0;
}

.skip-link:focus {
	left: 6px;
	top: 6px;
}

/* Universal header / footer skeleton — templates restyle, never re-layout. */

.site-header {
	background: var(--header-bg);
	color: var(--header-text);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 1rem var(--container-pad);
}

.site-trust-bar {
	background: var(--header-trust-bg);
	color: var(--header-trust-text);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}

.site-trust-bar__inner {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0.4rem var(--container-pad);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.site-trust-bar__badges {
	list-style: none;
	display: flex;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
}

.site-trust-bar__badge {
	font-weight: 600;
	letter-spacing: 0.06em;
}

.site-branding .site-title,
.site-branding .site-description {
	margin: 0;
	color: inherit;
}

.custom-logo-link {
	display: inline-block;
	line-height: 0;
	max-width: 100%;
}

.custom-logo {
	max-width: var(--logo-max-width, 180px);
	height: auto;
	width: auto;
}

.site-branding .site-title a {
	color: inherit;
	text-decoration: none;
}

.main-navigation ul {
	list-style: none;
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	color: var(--header-link);
	text-decoration: none;
	font-weight: 500;
}

.main-navigation a:hover,
.main-navigation a:focus {
	color: var(--header-link-hover);
	text-decoration: none;
}

.menu-toggle {
	display: none;
	background: transparent;
	border: 0;
	color: inherit;
	padding: 0;
	width: 44px;
	height: 44px;
	cursor: pointer;
	position: relative;
	z-index: 60;
}

.menu-toggle__icon {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	gap: 5px;
}

.menu-toggle__bar {
	display: block;
	width: 24px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.2s ease,
		width 0.3s ease;
}

.main-navigation.toggled .menu-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
	width: 26px;
}

.main-navigation.toggled .menu-toggle__bar:nth-child(2) {
	opacity: 0;
	transform: translateX(-10px);
}

.main-navigation.toggled .menu-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
	width: 26px;
}

.main-navigation__panel {
	display: contents;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.site-header__cta,
.site-header__top-bonus {
	display: inline-block;
	padding: 0.55rem 1rem;
	border-radius: 4px;
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}

.site-header__lang-toggle {
	background: transparent;
	border: 1px solid currentColor;
	color: inherit;
	padding: 0.35rem 0.7rem;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 600;
}

#content,
.site-main {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 2rem var(--container-pad);
}

/* Footer skeleton — columns laid out by base.css; templates restyle. */

.site-footer {
	background: var(--footer-bg);
	color: var(--footer-text);
	margin-top: 3rem;
}

.site-footer a {
	color: var(--footer-link);
}

.site-footer__inner {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 3rem var(--container-pad) 2rem;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem;
}

.site-footer__heading {
	color: var(--footer-heading);
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 1rem;
}

.site-footer__menu,
.site-footer__rg-logos,
.site-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__menu li,
.site-footer__rg-logos li {
	margin-bottom: 0.5rem;
}

.site-footer__social {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}

.site-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--footer-divider);
	color: var(--footer-link);
}

.site-footer__rg-logos {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.site-footer__rg-badge {
	border: 1px solid var(--footer-divider);
	padding: 0.3rem 0.6rem;
	border-radius: 3px;
	font-size: 0.75rem;
	font-weight: 700;
}

.site-footer__age-badge {
	display: inline-block;
	background: var(--site-accent);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.85rem;
	padding: 0.25rem 0.55rem;
	border-radius: 4px;
	line-height: 1;
	margin-bottom: 0.6rem;
}

.site-footer__bottom {
	border-top: 1px solid var(--footer-divider);
	padding: 1rem var(--container-pad);
	text-align: center;
	font-size: 0.85rem;
}

.site-footer__copyright {
	margin: 0;
}

@media (max-width: 900px) {
	.site-header__inner {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
	}

	/* Stop the nav from absorbing remaining space — hamburger sits flush right. */
	.main-navigation {
		flex: 0 0 auto;
	}

	.site-branding {
		flex: 0 1 auto;
		min-width: 0;
	}

	.menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	/* Backdrop overlay shown when drawer opens. */
	.main-navigation::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.55);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s ease;
		z-index: 49;
	}

	.main-navigation.toggled::before {
		opacity: 1;
		pointer-events: auto;
	}

	/* Off-canvas drawer panel (slides in from the right). */
	.main-navigation__panel {
		display: block;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: var(--mobile-drawer-w);
		background: var(--header-bg);
		color: var(--header-text);
		padding: 5rem 1.5rem 2rem;
		transform: translateX(100%);
		transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
		box-shadow: -16px 0 48px rgba(0, 0, 0, 0.35);
		z-index: 50;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.main-navigation.toggled .main-navigation__panel {
		transform: translateX(0);
	}

	.main-navigation ul {
		display: flex;
		flex-direction: column;
		gap: 0;
		align-items: stretch;
	}

	.main-navigation li {
		border-bottom: 1px solid var(--footer-divider);
	}

	.main-navigation a {
		display: block;
		padding: 1rem 0.25rem;
		font-size: 1.05rem;
		letter-spacing: 0.04em;
	}

	.main-navigation a::after {
		display: none;
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}
