/*
Theme: Maggico Casino Dark Theme
Primary heading color: #3f0072
Background color: #1b0033
This stylesheet uses a mobile-first approach and includes component-level comments.
*/

/* CSS Reset (minimal) */
:root {
	--color-bg: #1b0033;
	--color-surface: #250046;
	--color-primary: #3f0072;
	--color-pink: #ff3ea5;
	--color-text: #ffffff;
	--color-muted: #ffffff;
	--color-outline: #6b4fb3;
	--shadow-overlay: 0 8px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	background: var(--color-bg);
	color: var(--color-text);
	line-height: 1.6;
}

/* Accessibility helpers */
.visually-hidden {
	position: absolute !important;
	height: 1px; width: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
	position: absolute; left: -999px; top: -999px;
	background: var(--color-primary); color: #fff; padding: 8px 12px; border-radius: 6px;
}
.skip-link:focus { left: 12px; top: 12px; z-index: 1000; }

/* Layout */
.page { display: grid; grid-template-rows: auto 1fr auto; min-height: 100dvh; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #3f0072; backdrop-filter: saturate(140%) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand img { display: block; height: auto; }

/* Navigation */
.site-nav .nav-list { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 1px solid transparent; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.btn:focus-visible { outline: 3px solid var(--color-outline); outline-offset: 2px; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-text); }
.btn-outline:hover { background: rgba(63,0,114,0.2); }

/* Header-specific button overrides to pink */
.site-header .btn-primary { background: var(--color-pink); border-color: var(--color-pink); color: #1b0033; }
.site-header .btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.site-header .btn-outline { border-color: var(--color-pink); color: var(--color-pink); }
.site-header .btn-outline:hover { background: color-mix(in oklab, var(--color-pink) 20%, transparent); color: #1b0033; }

/* Breadcrumbs */
.breadcrumbs { border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.breadcrumbs ol { display: flex; gap: 8px; align-items: center; list-style: none; padding: 8px 0; margin: 0; }
.breadcrumbs a { color: #ffffff; text-decoration: none; }
.breadcrumbs [aria-current="page"] { color: #ffffff; }

/* Hero Banner */
.hero { position: relative; isolation: isolate; }
.hero-img { width: 100%; height: 480px; object-fit: cover; display: block; }
/* Remove dim overlay */
.hero::after { background: transparent; }
.hero-overlay {
	position: absolute; inset: 0; z-index: 2;
	display: grid; place-items: center; text-align: center; padding: 12px;
}
/* Compact centered CTA card over banner without dimming the image */
.hero-card { background: rgba(0,0,0,0.35); padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow-overlay); max-width: min(92%, 780px); }
@media (min-width: 768px) {
	.hero-card { padding: 16px 20px; }
}
.hero-title { color: #ffffff; font-size: clamp(20px, 2.2vw + 1rem, 34px); margin: 0 0 8px; }
.hero-sub { color: #ffffff; margin: 0 0 12px; }
.hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Article content */
.prose { padding: 20px 0 8px; }
.prose h2 { color: #ffffff; font-size: clamp(18px, 1.6vw + 1rem, 28px); margin: 20px 0 10px; }
.prose h3 { color: #ffffff; font-size: 18px; margin: 14px 0 8px; }
.prose p { margin: 10px 0; color: var(--color-text); }
.steps { padding-left: 18px; }

/* Responsive table wrapper for mobile */
.table-wrapper { margin: 16px 0; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; background: var(--color-surface); }
.responsive-table { width: 100%; border-collapse: collapse; }
.responsive-table th, .responsive-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: left; }
.responsive-table thead { background: rgba(63,0,114,0.15); }
.responsive-table tr:last-child td { border-bottom: none; }

/* Small screens: stack table rows as cards */
@media (max-width: 640px) {
	.responsive-table thead { display: none; }
	.responsive-table tr { display: grid; grid-template-columns: 1fr; padding: 10px 8px; }
	.responsive-table td { display: grid; grid-template-columns: 140px 1fr; gap: 6px; padding: 8px 10px; }
	.responsive-table td::before { content: attr(data-label); color: var(--color-muted); font-weight: 600; }
}

/* Slots grid */
.section-title { color: var(--color-primary); margin: 28px 0 12px; font-size: 22px; }
.slots { padding: 8px 0 28px; }
.slot-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) {
	.slot-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
	.slot-grid { grid-template-columns: repeat(6, 1fr); }
}
.slot-grid img { width: 100%; height: auto; border-radius: 12px; display: block; box-shadow: 0 6px 16px rgba(0,0,0,0.25); }

/* Larger screens: 4 per row to make 3 rows for 12 items */
@media (min-width: 768px) {
	.slot-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,0.06); background: #140028; }
.payments { padding: 18px 0; }
.pay-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: center; justify-items: center; }
.pay-grid img { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.legal { color: #ffffff; font-size: 14px; padding-bottom: 18px; text-align: center; }

/* Focus states & scrollbars */
:focus-visible { outline: 3px solid var(--color-outline); outline-offset: 2px; }

/* Mobile viewport height fix: keep screen pinned and avoid bounce */
@supports (height: 100dvh) {
	.page { min-height: 100dvh; }
}

/* Smooth hover scale for images */
.slot-grid a { display: block; border-radius: 12px; overflow: hidden; }
.slot-grid a:hover img { transform: scale(1.02); transition: transform .2s ease; }
