/*
 * Skill Games 888: baseline look (stage 1, 2026-12-04), after the client's mobile home design:
 * dark navy, purple neon cards, purple gradient for Sign Up, gold for the main play / join actions, Poppins.
 * Every colour is a variable in :root, so the design stage (Noa) can retune the whole site from here.
 * Mobile first; desktop from 900px.
 */

/* ---------- Font: Poppins (self-hosted, Latin) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800-italic.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	/* Surfaces */
	--sg-bg: #0b0b1e;
	--sg-bg-2: #101028;
	--sg-card: #17173a;
	--sg-card-2: #1f1f4a;
	--sg-line: rgb(139 61 255 / .45);
	--sg-line-strong: #6d3df0;
	--sg-line-soft: rgb(255 255 255 / .08);

	/* Text */
	--sg-text: #f5f3ff;
	--sg-text-2: #d6d3f2;
	--sg-muted: #a7a3cf;

	/* Accents */
	--sg-purple: #8b3dff;
	--sg-violet: #c04dff;
	--sg-grad: linear-gradient(120deg, #8b3dff 0%, #c04dff 100%);
	--sg-gold: #ffd21f;
	--sg-gold-2: #ffb800;
	--sg-gold-grad: linear-gradient(180deg, #ffe04d 0%, #ffc21a 100%);
	--sg-on-gold: #1d1033;
	--sg-glow: 0 0 0 1px var(--sg-line), 0 12px 32px -12px rgb(139 61 255 / .55);
	--sg-glow-strong: 0 0 0 1px var(--sg-line-strong), 0 0 28px rgb(139 61 255 / .45);

	/* Category icon colours */
	--sg-c-violet: #b88cff;
	--sg-c-white: #ffffff;
	--sg-c-cyan: #31d2ff;
	--sg-c-red: #ff4f63;
	--sg-c-gold: #ffd21f;
	--sg-c-green: #41e07f;
	--sg-c-pink: #ff6bd1;

	/* Medals */
	--sg-medal-1: #ffd21f;
	--sg-medal-2: #d9def0;
	--sg-medal-3: #ff9a4d;

	/* Shape, type, layout */
	--sg-radius: 18px;
	--sg-radius-sm: 12px;
	--sg-radius-pill: 999px;
	--sg-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	/* One container for every section (header, heroes, chips, grids, text cards, FAQ, forms, CTA, footer):
	   same width, same left edge. Long text keeps a readable line length (--sg-measure) but stays on that edge. */
	--sg-wrap: 1200px;
	--sg-gutter: 16px;
	--sg-measure: 72ch;
	--sg-card-px: 20px; /* side padding of the big cards (hero card, text card, CTA, teaser, form): one inner edge */
	--sg-header-h: 64px;
	--sg-bottom-nav-h: 68px;
	--sg-focus: 0 0 0 2px var(--sg-bg), 0 0 0 4px var(--sg-gold);
	--sg-ease: cubic-bezier(.2, .8, .2, 1);
}

@media (min-width: 900px) { :root { --sg-card-px: 44px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--sg-header-h) + 12px); }
body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--sg-bg);
	background-image: radial-gradient(900px 500px at 85% -10%, rgb(139 61 255 / .18), transparent 70%), radial-gradient(700px 500px at -10% 30%, rgb(192 77 255 / .08), transparent 70%);
	background-repeat: no-repeat;
	color: var(--sg-text-2);
	font-family: var(--sg-font);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	padding-bottom: calc(var(--sg-bottom-nav-h) + env(safe-area-inset-bottom));
}
.site-main { flex: 1 0 auto; padding-bottom: 56px; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--sg-c-violet); text-underline-offset: 3px; }
a:hover { color: #d9c2ff; }
h1, h2, h3, h4 { color: var(--sg-text); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--sg-focus); border-radius: 8px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000; top: 8px; left: 8px;
	padding: 10px 16px; background: var(--sg-gold); color: var(--sg-on-gold); border-radius: var(--sg-radius-sm); font-weight: 600;
}

.sg-wrap { width: 100%; max-width: calc(var(--sg-wrap) + 2 * var(--sg-gutter)); margin-inline: auto; padding-inline: var(--sg-gutter); }
.sg-section { margin-top: 36px; }
.sg-icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.sg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--sg-radius-pill);
	font: 600 1rem/1.1 var(--sg-font); text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform .15s var(--sg-ease), box-shadow .2s var(--sg-ease), background-color .2s, color .2s, filter .2s;
}
.sg-btn .sg-icon { width: 20px; height: 20px; }
.sg-btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.sg-btn--sm .sg-icon { width: 18px; height: 18px; }
.sg-btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.sg-btn--grad { background: var(--sg-grad); color: #fff; box-shadow: 0 8px 24px -8px rgb(139 61 255 / .8); }
.sg-btn--grad:hover, .sg-btn--grad:focus-visible { color: #fff; filter: brightness(1.1); box-shadow: 0 10px 30px -6px rgb(192 77 255 / .85); }
.sg-btn--gold { background: var(--sg-gold-grad); color: var(--sg-on-gold); box-shadow: 0 8px 24px -10px rgb(255 210 31 / .8); }
.sg-btn--gold:hover, .sg-btn--gold:focus-visible { color: var(--sg-on-gold); filter: brightness(1.06); box-shadow: 0 10px 30px -8px rgb(255 210 31 / .9); }
.sg-btn--outline { background: transparent; color: var(--sg-text); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .55); }
.sg-btn--outline:hover, .sg-btn--outline:focus-visible { color: var(--sg-text); background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1.5px #fff; }
.sg-btn:active { transform: translateY(1px); }
.sg-btn:focus-visible { box-shadow: var(--sg-focus); }

.sg-icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--sg-radius-sm);
	background: transparent; color: var(--sg-text); cursor: pointer;
}
.sg-icon-btn:hover { background: rgb(255 255 255 / .07); }
.sg-icon-btn .sg-icon { width: 28px; height: 28px; }

/* ---------- Header (sticky) ---------- */
.sg-header {
	position: sticky; top: 0; z-index: 50;
	background: rgb(11 11 30 / .88);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.admin-bar .sg-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .sg-header { top: 32px; } }
.sg-header.is-scrolled { border-bottom-color: var(--sg-line-soft); box-shadow: 0 10px 30px -20px rgb(0 0 0 / .9); }
.sg-header__bar { display: flex; align-items: center; gap: 8px; min-height: var(--sg-header-h); }
.sg-burger { margin-inline-start: -8px; }
.sg-header__logo { flex: 1 1 auto; min-width: 0; }

.sg-logo { display: inline-flex; align-items: baseline; gap: .28em; text-decoration: none; line-height: 1; white-space: nowrap; }
.sg-logo__img { max-height: 44px; width: auto; }
.sg-logo__word { font-weight: 800; font-style: italic; color: #fff; font-size: 1.05rem; letter-spacing: -.01em; }
.sg-logo__num {
	font-weight: 800; font-style: italic; font-size: 1.2rem;
	background: var(--sg-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sg-logo:hover .sg-logo__word { color: #fff; }

.sg-auth { display: flex; gap: 8px; }
.sg-auth--header .sg-btn--grad .sg-icon { display: none; }
/* Small phones: the wordmark must never touch Log In (it did at 380–419px). */
@media (max-width: 419px) {
	.sg-auth--header .sg-btn--sm { padding: 0 12px; font-size: .875rem; }
	.sg-logo__word { font-size: .95rem; }
	.sg-logo__num { font-size: 1.1rem; }
}
@media (max-width: 379px) {
	.sg-auth--header { gap: 6px; }
	.sg-auth--header .sg-btn--sm { padding: 0 10px; }
	.sg-logo__word { font-size: .875rem; }
	.sg-logo__num { font-size: 1rem; }
}
@media (max-width: 339px) {
	.sg-header__bar { gap: 4px; }
	.sg-auth--header .sg-btn--sm { font-size: .8125rem; }
	.sg-logo__word { font-size: .78rem; }
	.sg-logo__num { font-size: .875rem; }
}
@media (min-width: 600px) {
	.sg-auth--header .sg-btn--grad .sg-icon { display: inline-block; }
	.sg-logo__word { font-size: 1.25rem; }
	.sg-logo__num { font-size: 1.4rem; }
}

/* ---------- Drawer ---------- */
.sg-drawer {
	margin: 0; padding: 0; border: 0; max-width: none; max-height: none;
	width: min(360px, 88vw); height: 100%; height: 100dvh;
	background: var(--sg-bg-2); color: var(--sg-text-2);
	box-shadow: 1px 0 0 var(--sg-line), 20px 0 60px rgb(0 0 0 / .6);
	transform: translateX(-100%); transition: transform .3s var(--sg-ease);
}
.sg-drawer.is-open { transform: none; }
.sg-drawer::backdrop { background: rgb(5 5 15 / .65); }
.sg-drawer__inner { padding: 12px 20px 32px; display: flex; flex-direction: column; gap: 18px; }
.sg-drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.sg-auth--drawer .sg-btn { flex: 1 1 0; }
.sg-drawer__pages, .sg-drawer__cats { list-style: none; margin: 0; padding: 0; }
.sg-drawer__page__link {
	display: block; padding: 12px 4px; color: var(--sg-text); text-decoration: none; font-weight: 600; font-size: 1.0625rem;
	border-bottom: 1px solid var(--sg-line-soft);
}
.sg-drawer__page__link:hover, .sg-drawer__page__item.is-current .sg-drawer__page__link { color: var(--sg-gold); }
.sg-drawer__title { margin: 6px 0 0; font-size: .8125rem; font-weight: 600; color: var(--sg-muted); text-transform: uppercase; letter-spacing: .08em; }
.sg-drawer__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sg-drawer__cat {
	display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--sg-radius-sm);
	background: var(--sg-card); box-shadow: 0 0 0 1px var(--sg-line-soft); color: var(--sg-text); text-decoration: none; font-weight: 500;
}
.sg-drawer__cat:hover { box-shadow: 0 0 0 1px var(--sg-line); color: #fff; }
.sg-drawer__cat .sg-cat-icon { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .sg-drawer { transition: none; } }

/* ---------- Category icons ---------- */
.sg-cat-icon { width: 28px; height: 28px; }
.sg-cat-icon--img { object-fit: contain; }
.sg-cat-icon--violet { color: var(--sg-c-violet); }
.sg-cat-icon--white { color: var(--sg-c-white); }
.sg-cat-icon--cyan { color: var(--sg-c-cyan); }
.sg-cat-icon--red { color: var(--sg-c-red); }
.sg-cat-icon--gold { color: var(--sg-c-gold); }
.sg-cat-icon--green { color: var(--sg-c-green); }
.sg-cat-icon--pink { color: var(--sg-c-pink); }

/* ---------- Home hero ---------- */
.sg-home-hero { margin-top: 8px; }
.sg-home-hero__card {
	position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; gap: 12px;
	padding: 24px var(--sg-card-px); border-radius: 20px;
	background:
		radial-gradient(120% 140% at 100% 0%, rgb(192 77 255 / .55), transparent 55%),
		radial-gradient(90% 120% at 80% 100%, rgb(139 61 255 / .45), transparent 60%),
		linear-gradient(135deg, #17173a 0%, #241452 100%);
	box-shadow: var(--sg-glow);
}
.sg-home-hero__text { position: relative; z-index: 1; max-width: 520px; }
.sg-home-hero__title { margin: 0 0 8px; font-size: clamp(2rem, 9vw, 3.75rem); font-weight: 800; font-style: italic; letter-spacing: -.02em; color: #fff; line-height: 1.05; }
.sg-home-hero__title span { background: var(--sg-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: .08em; }
.sg-home-hero__lead { margin: 0 0 18px; color: var(--sg-text-2); font-size: 1rem; max-width: 30ch; }
.sg-home-hero__art { position: absolute; inset-inline-end: -18px; top: 50%; translate: 0 -50%; width: 46%; max-width: 280px; aspect-ratio: 1; pointer-events: none; }
.sg-home-hero__ring { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgb(255 210 31 / .28), transparent 65%); }
.sg-home-hero__trophy { position: absolute; width: 62%; height: 62%; top: 10%; right: 14%; color: var(--sg-gold); filter: drop-shadow(0 0 18px rgb(255 210 31 / .6)); }
.sg-home-hero__pad { position: absolute; width: 44%; height: 44%; bottom: 6%; left: 0; color: #e2d3ff; filter: drop-shadow(0 0 14px rgb(192 77 255 / .8)); transform: rotate(-14deg); }
.sg-home-hero__text .sg-btn { position: relative; }
@media (max-width: 599px) {
	.sg-home-hero__art { opacity: .55; width: 52%; }
}
@media (min-width: 900px) {
	.sg-home-hero__card { padding: 56px var(--sg-card-px); min-height: 340px; align-content: center; }
	.sg-home-hero__lead { font-size: 1.125rem; }
	.sg-home-hero__art { inset-inline-end: 4%; width: 34%; }
}

/* ---------- Search ---------- */
.sg-home-search { margin-top: 16px; }
.sg-search {
	position: relative; display: flex; align-items: center; gap: 8px;
	min-height: 56px; padding: 6px 6px 6px 50px; border-radius: var(--sg-radius-pill);
	background: var(--sg-card); box-shadow: 0 0 0 1px var(--sg-line);
}
.sg-search:focus-within { box-shadow: 0 0 0 1px var(--sg-violet), 0 0 0 4px rgb(192 77 255 / .25); }
.sg-search__icon { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; color: var(--sg-muted); }
.sg-search__input {
	flex: 1 1 auto; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--sg-text);
	font: 400 1rem var(--sg-font); outline: none;
}
.sg-search__input::placeholder { color: var(--sg-muted); }
.sg-search__input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }
.sg-search__btn {
	flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: var(--sg-radius-pill); cursor: pointer;
	background: rgb(255 255 255 / .08); color: var(--sg-text); font-weight: 600; font-size: .9375rem;
}
.sg-search__btn:hover { background: rgb(255 255 255 / .14); }
@media (max-width: 599px) { .sg-search__btn { display: none; } .sg-search { padding-right: 16px; } }

/* ---------- Category chips ---------- */
.sg-chips { margin-top: 16px; }
.sg-chips__list {
	list-style: none; margin: 0 calc(-1 * var(--sg-gutter)); padding: 4px var(--sg-gutter) 8px;
	display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--sg-gutter); scrollbar-width: none;
}
.sg-chips__list::-webkit-scrollbar { display: none; }
.sg-chips__list > li { flex: none; scroll-snap-align: start; }
.sg-chip {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	width: 84px; height: 84px; padding: 8px 6px; border-radius: 16px; text-align: center;
	background: var(--sg-card); box-shadow: inset 0 0 0 1px var(--sg-line-soft);
	color: var(--sg-text); text-decoration: none; font-size: .8125rem; font-weight: 600; line-height: 1.15;
	transition: box-shadow .2s, background-color .2s;
}
.sg-chip:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--sg-line); }
.sg-chip.is-active { background: linear-gradient(160deg, #3a1f86, #2a1660); box-shadow: inset 0 0 0 1.5px var(--sg-violet), 0 0 18px rgb(192 77 255 / .45); color: #fff; }
.sg-chip .sg-cat-icon { width: 30px; height: 30px; }
@media (min-width: 900px) {
	.sg-chips__list { margin: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
	.sg-chip { width: 104px; height: 92px; font-size: .875rem; }
}

/* ---------- Section heads ---------- */
.sg-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sg-section-head__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.375rem; font-weight: 700; }
.sg-section-head__icon { width: 28px; height: 28px; color: var(--sg-c-violet); }
.sg-section-head__icon--fire { color: #ff8a3c; }
.sg-section-head__icon--trophy, .sg-section-head__icon--crown { color: var(--sg-gold); }
.sg-section-head__all { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--sg-c-violet); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.sg-section-head__all .sg-icon { width: 18px; height: 18px; }
.sg-section-head__all:hover { color: #fff; }
@media (min-width: 900px) { .sg-section-head__title { font-size: 1.625rem; } }

/* ---------- Game cards ---------- */
.sg-rail {
	display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--sg-gutter); scrollbar-width: none;
	margin: 0 calc(-1 * var(--sg-gutter)); padding: 4px var(--sg-gutter) 10px;
}
.sg-rail::-webkit-scrollbar { display: none; }
.sg-rail > .sg-game-card { flex: 0 0 calc((100% - 24px) / 2.6); scroll-snap-align: start; }
@media (min-width: 600px) { .sg-rail > .sg-game-card { flex-basis: calc((100% - 36px) / 3.4); } }
@media (min-width: 900px) {
	.sg-rail { margin: 0; padding-inline: 0; overflow: visible; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
	.sg-rail > .sg-game-card:nth-child(n+9) { display: none; }
}

.sg-games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
@media (min-width: 600px) { .sg-games-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 900px) { .sg-games-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.sg-games-empty { margin: 24px 0; padding: 20px; border-radius: var(--sg-radius); background: var(--sg-card); box-shadow: inset 0 0 0 1px var(--sg-line-soft); color: var(--sg-text-2); text-align: center; }

.sg-game-card { position: relative; border-radius: var(--sg-radius); background: linear-gradient(180deg, #1c1c45 0%, #2a1659 100%); box-shadow: var(--sg-glow); overflow: hidden; transition: transform .2s var(--sg-ease), box-shadow .2s; }
.sg-game-card:hover { transform: translateY(-2px); box-shadow: var(--sg-glow-strong); }
.sg-game-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.sg-game-card__link:focus-visible { border-radius: var(--sg-radius); }
.sg-game-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--sg-card-2); overflow: hidden; }
.sg-game-card__img { width: 100%; height: 100%; object-fit: cover; }
.sg-game-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--sg-c-violet); }
.sg-game-card__placeholder .sg-icon { width: 40%; height: 40%; opacity: .6; }
.sg-game-card__soon {
	position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: var(--sg-radius-pill);
	background: rgb(11 11 30 / .82); color: var(--sg-gold); font-size: .75rem; font-weight: 600; box-shadow: inset 0 0 0 1px rgb(255 210 31 / .5);
}
.sg-game-card__body { display: block; padding: 10px 12px 12px; }
.sg-game-card__title { margin: 0; font-size: 1rem; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.sg-game-card__meta { display: block; margin-top: 2px; font-size: .8125rem; color: var(--sg-muted); }
@media (min-width: 900px) { .sg-game-card__title { font-size: 1.125rem; } .sg-game-card__body { padding: 14px 16px 16px; } }

/* ---------- Live modules (only with real data) / coming soon teaser ---------- */
.sg-live > * + .sg-section-head { margin-top: 32px; }
.sg-teaser {
	display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: start;
	padding: 20px var(--sg-card-px); border-radius: 20px; background: linear-gradient(135deg, #1c1c45, #251350); box-shadow: var(--sg-glow);
}
.sg-teaser__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgb(255 210 31 / .12); color: var(--sg-gold); }
.sg-teaser__icon .sg-icon { width: 30px; height: 30px; }
.sg-teaser__title { margin: 0 0 4px; font-size: 1.25rem; }
.sg-teaser__text p { margin: 0; color: var(--sg-text-2); }
.sg-teaser > .sg-btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 900px) {
	.sg-teaser { grid-template-columns: auto 1fr auto; align-items: center; padding: 28px var(--sg-card-px); }
	.sg-teaser > .sg-btn { grid-column: auto; }
}

.sg-tourneys { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sg-tourney {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	padding: 16px; border-radius: var(--sg-radius); background: linear-gradient(135deg, #1e1a4f, #2a1659); box-shadow: var(--sg-glow);
}
.sg-tourney__name { margin: 0 0 4px; color: #fff; font-weight: 700; font-size: 1.0625rem; }
.sg-tourney__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; color: var(--sg-text-2); font-size: .875rem; }
.sg-tourney__meta span { display: inline-flex; align-items: center; gap: 6px; }
.sg-tourney__meta .sg-icon { width: 16px; height: 16px; color: var(--sg-muted); }

.sg-players { list-style: none; margin: 0; padding: 6px 16px; border-radius: var(--sg-radius); background: var(--sg-card); box-shadow: var(--sg-glow); }
.sg-players__row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--sg-line-soft); }
.sg-players__row:last-child { border-bottom: 0; }
.sg-players__name { flex: 1 1 auto; min-width: 0; color: var(--sg-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-players__score { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.sg-rank { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--sg-card-2); color: var(--sg-text); font-weight: 700; font-size: .875rem; }
.sg-rank--1 { background: var(--sg-medal-1); color: var(--sg-on-gold); }
.sg-rank--2 { background: var(--sg-medal-2); color: var(--sg-on-gold); }
.sg-rank--3 { background: var(--sg-medal-3); color: var(--sg-on-gold); }

/* ---------- How it works steps ---------- */
.sg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: sg-step; }
.sg-step {
	position: relative; padding: 20px 20px 18px 84px; border-radius: var(--sg-radius);
	background: var(--sg-card); box-shadow: inset 0 0 0 1px var(--sg-line-soft); counter-increment: sg-step;
}
.sg-step__icon { position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sg-grad); color: #fff; }
.sg-step__icon .sg-icon { width: 26px; height: 26px; }
.sg-step__title { margin: 0 0 4px; font-size: 1.125rem; }
.sg-step__title::before { content: counter(sg-step) ". "; color: var(--sg-gold); }
.sg-step p { margin: 0; color: var(--sg-text-2); font-size: .9375rem; }
@media (min-width: 900px) {
	.sg-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.sg-step { padding: 28px 24px; }
	.sg-step__icon { position: static; margin-bottom: 16px; }
}

/* ---------- Inner page hero + text card ---------- */
.sg-hero { padding: 28px 0 24px; }
.sg-hero__media { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 18px; background: var(--sg-card); box-shadow: var(--sg-glow); }
.sg-hero__media .sg-cat-icon { width: 36px; height: 36px; }
.sg-hero__title { margin: 0; font-size: clamp(1.9rem, 7.5vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; }
.sg-hero__lead { margin: 12px 0 0; font-size: 1.0625rem; color: var(--sg-text-2); max-width: 62ch; }
.sg-hero__date { margin: 0 0 8px; color: var(--sg-muted); font-size: .9375rem; }
.sg-hero__actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .sg-hero { padding: 56px 0 36px; } }

.sg-sheet {
	padding: 24px var(--sg-card-px); border-radius: 20px; background: var(--sg-card); box-shadow: inset 0 0 0 1px var(--sg-line-soft);
}
/* A card of stacked actions (404): everything on the card's inner left edge. */
.sg-sheet--stack { display: grid; gap: 20px; justify-items: start; }
.sg-sheet--stack > * { margin: 0; }
.sg-sheet--stack .sg-search { width: 100%; max-width: 640px; }
@media (min-width: 900px) { .sg-sheet { padding-block: 40px; } }

.entry-content { color: var(--sg-text-2); font-size: 1.0625rem; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
/* Readable line length inside full-width cards; the text stays on the card's left edge. */
.entry-content > :where(p, ul, ol, h2, h3, h4, h5, h6, blockquote, .sg-note) { max-width: var(--sg-measure); }
.entry-content h2 { margin: 1.6em 0 .5em; font-size: 1.5rem; }
.entry-content h3 { margin: 1.4em 0 .4em; font-size: 1.1875rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1em; }
.entry-content li { margin: .3em 0; }
.entry-content li::marker { color: var(--sg-violet); }
.entry-content strong { color: var(--sg-text); }
.entry-content blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 3px solid var(--sg-violet); background: rgb(139 61 255 / .08); border-radius: 0 12px 12px 0; }
.entry-content img { border-radius: var(--sg-radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--sg-line-soft); text-align: left; }
.entry-content .sg-note { padding: 14px 16px; border-radius: var(--sg-radius-sm); background: rgb(255 210 31 / .08); box-shadow: inset 0 0 0 1px rgb(255 210 31 / .35); color: var(--sg-text); font-size: .9375rem; }

/* ---------- Closing call to action ---------- */
.sg-cta { margin-top: 48px; }
.sg-cta__box {
	display: grid; gap: 18px; padding: 26px var(--sg-card-px); border-radius: 20px;
	background: radial-gradient(120% 160% at 100% 0%, rgb(192 77 255 / .45), transparent 60%), linear-gradient(135deg, #1c1c45, #2a1659);
	box-shadow: var(--sg-glow);
}
.sg-cta__title { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; }
.sg-cta__text { margin: 0; color: var(--sg-text-2); }
.sg-cta__box .sg-btn { justify-self: start; }
@media (min-width: 900px) { .sg-cta__box { grid-template-columns: 1fr auto; align-items: center; padding-block: 36px; } .sg-cta__title { font-size: 1.875rem; } }

/* ---------- FAQ accordion ---------- */
.sg-faq { display: grid; gap: 10px; }
.sg-faq__item { border-radius: var(--sg-radius); background: var(--sg-card); box-shadow: inset 0 0 0 1px var(--sg-line-soft); }
.sg-faq__item.is-open { box-shadow: inset 0 0 0 1px var(--sg-line); }
.sg-faq__q { margin: 0; font-size: 1.0625rem; }
.sg-faq__btn {
	display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 60px;
	padding: 14px 18px; border: 0; border-radius: var(--sg-radius); background: transparent; color: var(--sg-text);
	font-weight: 600; text-align: left; cursor: pointer;
}
.sg-faq__icon { width: 22px; height: 22px; color: var(--sg-c-violet); transition: transform .2s var(--sg-ease); }
.sg-faq__item.is-open .sg-faq__icon { transform: rotate(45deg); }
.sg-faq__a { padding: 0 18px 16px; color: var(--sg-text-2); }
.sg-faq__a > :last-child { margin-bottom: 0; }
.js .sg-faq__item:not(.is-open) .sg-faq__a { display: none; }
.sg-sheet .sg-faq { margin: 1em 0; }
.sg-sheet .sg-faq__item { background: var(--sg-bg-2); }

/* ---------- Games page / category ---------- */
.sg-games-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.sg-category__text { margin-top: 20px; max-width: var(--sg-measure); }

/* ---------- Game page ---------- */
.sg-game-hero { position: relative; overflow: hidden; padding: 20px 0 28px; }
.sg-game-hero__bg { position: absolute; inset: 0; z-index: -1; }
.sg-game-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.sg-game-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 11 30 / .35) 0%, var(--sg-bg) 92%); }
.sg-game-hero__inner { position: relative; }
.sg-crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: .9375rem; }
.sg-crumbs a { color: var(--sg-text-2); text-decoration: none; }
.sg-crumbs a:hover { color: #fff; text-decoration: underline; }
.sg-crumbs .sg-icon { width: 16px; height: 16px; color: var(--sg-muted); }
.sg-game-hero__head { display: flex; align-items: center; gap: 16px; }
.sg-game-hero__icon img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; box-shadow: var(--sg-glow); }
.sg-game-hero__title { margin: 0; font-size: clamp(2rem, 8vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; }
.sg-game-hero__cats { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sg-game-hero__cats a {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: var(--sg-radius-pill);
	background: rgb(23 23 58 / .8); box-shadow: inset 0 0 0 1px var(--sg-line-soft); color: var(--sg-text); text-decoration: none; font-size: .875rem; font-weight: 500;
}
.sg-game-hero__cats .sg-cat-icon { width: 18px; height: 18px; }
.sg-game-hero__lead { margin: 16px 0 0; max-width: 60ch; font-size: 1.0625rem; color: var(--sg-text-2); }
.sg-game-hero__actions { margin-top: 22px; }
.sg-game-hero__soon { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 12px 18px; border-radius: var(--sg-radius); background: rgb(255 210 31 / .08); box-shadow: inset 0 0 0 1px rgb(255 210 31 / .4); color: var(--sg-text); font-weight: 500; }
.sg-game-hero__soon .sg-icon { color: var(--sg-gold); }
@media (min-width: 900px) { .sg-game-hero { padding: 40px 0 56px; min-height: 420px; } .sg-game-hero__icon img { width: 96px; height: 96px; } }

.sg-shots { list-style: none; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--sg-gutter); margin: 0 calc(-1 * var(--sg-gutter)); padding: 4px var(--sg-gutter) 10px; scrollbar-width: thin; }
.sg-shots li { flex: 0 0 80%; max-width: 480px; scroll-snap-align: start; }
.sg-shots img { width: 100%; border-radius: var(--sg-radius); box-shadow: var(--sg-glow); }
.sg-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--sg-radius); overflow: hidden; box-shadow: var(--sg-glow); }
.sg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Blog cards ---------- */
.sg-posts-grid { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 600px) { .sg-posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .sg-posts-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.sg-post-card { border-radius: var(--sg-radius); background: var(--sg-card); box-shadow: inset 0 0 0 1px var(--sg-line-soft); overflow: hidden; transition: box-shadow .2s; }
.sg-post-card:hover { box-shadow: var(--sg-glow); }
.sg-post-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.sg-post-card__media { display: block; aspect-ratio: 16 / 9; background: var(--sg-card-2); overflow: hidden; }
.sg-post-card__img { width: 100%; height: 100%; object-fit: cover; }
.sg-post-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--sg-c-violet); }
.sg-post-card__placeholder .sg-icon { width: 40px; height: 40px; opacity: .6; }
.sg-post-card__body { display: block; padding: 16px 18px 20px; }
.sg-post-card__date { display: block; font-size: .8125rem; color: var(--sg-muted); }
.sg-post-card__title { margin: 4px 0 6px; font-size: 1.125rem; color: #fff; }
.sg-post-card__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .9375rem; color: var(--sg-text-2); }
.sg-pager { margin-top: 28px; text-align: center; }
.sg-single__image { margin: 0 0 20px; }
.sg-single__image img { width: 100%; border-radius: 20px; }
.sg-pagination { margin-top: 28px; }
.sg-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.sg-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--sg-radius-sm); background: var(--sg-card); color: var(--sg-text); text-decoration: none; }
.sg-pagination .current { background: var(--sg-grad); color: #fff; }

/* ---------- Forms ---------- */
.sg-formpage { display: grid; gap: 24px; }
.sg-formpage--single { max-width: 640px; } /* form alone: left edge of the container, like every section */
.sg-formpage__card { padding: 24px var(--sg-card-px); border-radius: 20px; background: var(--sg-card); box-shadow: var(--sg-glow); }
@media (min-width: 900px) {
	.sg-formpage:not(.sg-formpage--single) { grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
	.sg-formpage__text { position: sticky; top: calc(var(--sg-header-h) + 24px); }
	.sg-formpage__card { padding-block: 36px; }
}
.sg-form { display: grid; gap: 16px; }
.sg-form__label { display: block; margin-bottom: 6px; color: var(--sg-text); font-weight: 600; font-size: 1rem; }
.sg-form__opt { color: var(--sg-muted); font-weight: 400; }
.sg-form__input {
	width: 100%; min-height: 56px; padding: 14px 16px; border: 0; border-radius: 14px;
	background: var(--sg-bg-2); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); color: var(--sg-text);
	font: 400 1rem/1.5 var(--sg-font);
}
.sg-form__input::placeholder { color: #8f8bb8; }
.sg-form__input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--sg-violet), 0 0 0 4px rgb(192 77 255 / .22); }
.sg-form__textarea { min-height: 140px; resize: vertical; }
.sg-form__notice { margin: 0; color: var(--sg-muted); font-size: .875rem; }
.sg-form__status:empty { display: none; }
.sg-form__status.is-error, .sg-form__status { padding: 12px 14px; border-radius: 12px; background: rgb(255 79 99 / .12); box-shadow: inset 0 0 0 1px rgb(255 79 99 / .5); color: #ffd0d6; font-size: .9375rem; }
.sg-form__submit { width: 100%; }
.sg-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Thank-you page (no header / footer) ---------- */
.sg-canvas { display: grid; place-items: center; min-height: 100vh; padding: 32px var(--sg-gutter); }
body.sg-layout-canvas { padding-bottom: 0; }
.sg-canvas__box { width: 100%; max-width: 520px; padding: 36px 24px; border-radius: 24px; background: var(--sg-card); box-shadow: var(--sg-glow); text-align: center; display: grid; justify-items: center; gap: 16px; }
.sg-canvas__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sg-grad); color: #fff; }
.sg-canvas__icon .sg-icon { width: 34px; height: 34px; }
.sg-canvas__title { margin: 0; font-size: 2rem; font-weight: 800; }

/* ---------- Footer ---------- */
.sg-footer { margin-top: 24px; padding: 40px 0 24px; background: #08081a; border-top: 1px solid var(--sg-line-soft); font-size: .9375rem; }
.sg-footer__grid { display: grid; gap: 28px; }
.sg-footer__tagline { margin: 14px 0 10px; color: var(--sg-text-2); max-width: 36ch; }
.sg-footer__adult { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--sg-muted); font-size: .875rem; max-width: 40ch; }
.sg-18 { flex: none; display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 6px; border-radius: 8px; background: rgb(255 79 99 / .14); box-shadow: inset 0 0 0 1px rgb(255 79 99 / .55); color: #ffb3bd; font-weight: 700; font-size: .8125rem; }
.sg-footer__title { margin: 0 0 10px; color: var(--sg-text); font-weight: 700; }
.sg-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sg-footer__list a, .sg-footer__item__link { color: var(--sg-text-2); text-decoration: none; }
.sg-footer__list a:hover, .sg-footer__item__link:hover { color: #fff; text-decoration: underline; }
.sg-footer__bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--sg-line-soft); color: var(--sg-muted); font-size: .8125rem; }
.sg-footer__bottom p { margin: 0; }
@media (min-width: 600px) { .sg-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .sg-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; } .sg-footer { padding-top: 56px; } }

/* ---------- Mobile bottom navigation (fixed) ---------- */
.sg-bottom-nav {
	position: fixed; inset: auto 0 0 0; z-index: 60;
	padding-bottom: env(safe-area-inset-bottom);
	background: rgb(13 13 36 / .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-top: 1px solid var(--sg-line);
	box-shadow: 0 -10px 30px -12px rgb(0 0 0 / .8);
}
.sg-bottom-nav__list { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; display: grid; grid-template-columns: repeat(5, 1fr); }
.sg-bottom-nav__link {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	height: var(--sg-bottom-nav-h); color: var(--sg-text-2); text-decoration: none; font-size: .75rem; font-weight: 500;
}
.sg-bottom-nav__link .sg-icon { width: 26px; height: 26px; }
.sg-bottom-nav__link:hover { color: #fff; }
.sg-bottom-nav__link.is-current { color: #fff; }
.sg-bottom-nav__link.is-current .sg-icon { color: var(--sg-violet); filter: drop-shadow(0 0 8px rgb(192 77 255 / .8)); }
.sg-bottom-nav__link.is-current::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--sg-grad); }
@media (min-width: 900px) {
	.sg-bottom-nav { display: none; }
	body { padding-bottom: 0; }
}

/* ---------- 18+ and cookies bar (above the bottom nav on phones) ---------- */
.sg-cookie {
	position: fixed; z-index: 70; left: 10px; right: 10px;
	bottom: calc(var(--sg-bottom-nav-h) + env(safe-area-inset-bottom) + 10px);
}
.sg-cookie__inner {
	display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: start; max-width: 960px; margin: 0 auto;
	padding: 14px 16px; border-radius: 18px; background: #1a1a40; box-shadow: 0 0 0 1px var(--sg-line), 0 20px 50px rgb(0 0 0 / .6);
	font-size: .875rem; color: var(--sg-text-2);
}
.sg-cookie__badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgb(255 79 99 / .14); box-shadow: inset 0 0 0 1px rgb(255 79 99 / .55); color: #ffb3bd; font-weight: 800; font-size: .875rem; }
.sg-cookie__text p { margin: 0; }
.sg-cookie__text strong { color: #fff; }
.sg-cookie__btn { grid-column: 1 / -1; width: 100%; }
@media (min-width: 900px) {
	.sg-cookie { bottom: 16px; }
	.sg-cookie__inner { grid-template-columns: auto 1fr auto; align-items: center; padding: 14px 18px; }
	.sg-cookie__btn { grid-column: auto; width: auto; min-width: 120px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Accessibility button (AccessibleWP): bottom left, above the bottom nav, never over content ---------- */
html body #acwp-toolbar-btn-wrap {
	top: auto !important; bottom: calc(var(--sg-bottom-nav-h) + env(safe-area-inset-bottom) + 14px) !important;
	left: 12px !important; right: auto !important; margin-top: 0 !important; z-index: 65; border: 0; border-radius: 50%;
	box-shadow: 0 8px 22px -8px rgb(139 61 255 / .8);
}
#acwp-toolbar-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid #fff; border-radius: 50%; background: var(--sg-grad); color: #fff; }
#acwp-toolbar-btn svg { width: 26px; top: 0; }
#acwp-toolbar-btn svg, #acwp-toolbar-btn svg * { fill: #fff; }
html body .acwp-toolbar { top: auto !important; bottom: calc(var(--sg-bottom-nav-h) + env(safe-area-inset-bottom) + 72px) !important; left: 12px !important; right: auto !important; }
@media (min-width: 900px) {
	html body #acwp-toolbar-btn-wrap { bottom: 20px !important; }
	html body .acwp-toolbar { bottom: 78px !important; }
}
