/*
 * BigWinMaxxing app styles. Mobile-first.
 * Breakpoints: 640 · 1024 (desktop nav + rail) · 1280.
 * Rules: rows separate with 1px lines (no boxes around posts), one raised
 * panel per view, no shadows, overlays are tone + border, no blur.
 */

/* ── Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg-base);
	color: var(--fg-primary);
	font: 400 15px/1.55 var(--font-ui);
	/* Jakarta's word space is narrow at UI sizes; open it slightly. */
	word-spacing: 0.03em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
body.variant-home, body.is-sheet-page, body.no-tabbar { padding-bottom: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent-text); text-decoration: none; transition: color var(--t-hover); }
a:hover { color: var(--accent-text-hover); }
p, h1, h2, h3, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
th { font-weight: inherit; text-align: left; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
::selection { background: rgba(109, 74, 255, 0.4); }

.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 { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--fg-primary); color: var(--fg-on-inverse); border-radius: var(--r-control); font-weight: 650; }
.skip-link:focus { top: 8px; color: var(--fg-on-inverse); }

.muted { color: var(--fg-secondary); }
.strong { font-weight: 650; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.is-up { color: var(--money-up) !important; }
.is-down { color: var(--money-down) !important; }
.is-zero { color: var(--fg-tertiary) !important; }

/* Type roles */
.label {
	font: 700 10.5px/1.3 var(--font-ui);
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--fg-tertiary);
}
.num-hero { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; letter-spacing: -0.03em; line-height: 0.95; }
.num-lg { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 22px; letter-spacing: -0.02em; line-height: 1; }
.meta-tag { font: 650 10px/1 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-tertiary); margin-left: 8px; }

/* ── Logo: the canonical exported artwork (logo() in inc/helpers.php) ─ */
.logo {
	/* Logo width in em of its font-size (--logo-size), so containers size
	   it the way they always have. Height follows the artwork's 1214:400. */
	--logo-width-em: 6.9;
	display: inline-block; flex: none; vertical-align: middle; line-height: 0;
	font-size: var(--logo-size, 18px); width: calc(var(--logo-width-em) * 1em); max-width: 100%;
	user-select: none;
}
.logo picture { display: block; }
.logo__img { display: block; width: 100%; height: auto; -webkit-user-drag: none; }

/* ── Avatars & badges ──────────────────────────────────────────────── */
.avatar {
	--size: 40px;
	width: var(--size); height: var(--size); flex: none;
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: calc(var(--size) * 0.38); font-weight: 650; color: var(--fg-primary);
	background: var(--bg-chip); object-fit: cover; line-height: 1;
}
.avatar--official { background: #000; box-shadow: inset 0 0 0 1px var(--line-strong); }

.badge {
	display: inline-block; flex: none;
	font: 700 9.5px/1.2 var(--font-ui); letter-spacing: 0.07em;
	color: var(--accent-badge); box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.45);
	border-radius: var(--r-badge); padding: 2px 5px; white-space: nowrap; vertical-align: middle;
}
.badge--official { color: var(--fg-label); box-shadow: inset 0 0 0 1px var(--line-dashed); }
.badge--example { color: var(--fg-label); box-shadow: none; border: 1px dashed var(--fg-muted); padding: 3px 7px; font-size: 10px; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 18px; border-radius: var(--r-control);
	font: 650 15px/1 var(--font-ui); white-space: nowrap; text-decoration: none;
	border: 0; cursor: pointer; transition: background-color var(--t-hover), color var(--t-hover), box-shadow var(--t-hover);
	-webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--primary:active { background: var(--accent-press); }
.btn--primary:disabled, .btn--primary[aria-disabled="true"] { background: #26262C; color: var(--fg-tertiary); cursor: not-allowed; }
.btn--secondary { background: transparent; color: var(--fg-primary); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 600; }
.btn--secondary:hover { background: #17171B; color: var(--fg-primary); }
.btn--inverse { background: var(--fg-primary); color: var(--fg-on-inverse); }
.btn--inverse:hover { background: #fff; color: var(--fg-on-inverse); }
.btn--ghost { background: transparent; color: var(--fg-primary); font-weight: 600; }
.btn--ghost:hover { background: #17171B; color: var(--fg-primary); }
.btn:focus-visible { box-shadow: var(--focus-ring); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 52px; font-size: 16px; }
.btn--xl { height: 56px; padding: 0 28px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn--grow { flex: 1; }
.btn--square { width: 44px; padding: 0; color: var(--fg-secondary); }
.btn--header { height: 34px; padding: 0 14px; font-size: 14px; }
.btn--share { height: 44px; padding: 0 16px; font-size: 14px; margin-left: auto; }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: var(--r-control); color: var(--fg-secondary);
	transition: background-color var(--t-hover), color var(--t-hover); flex: none;
}
.icon-btn:hover { background: #17171B; color: var(--fg-primary); }
.icon-btn--more { width: 28px; height: 28px; color: var(--fg-tertiary); }

.text-btn { color: var(--accent-text); font-weight: 600; font-size: 14px; padding: 10px 0; cursor: pointer; }
/* Tracker: quiet destructive link under the bonuses, clear of the sticky Add bar on mobile. */
.tracker-abandon { margin: 24px 0 96px; }
.tracker-abandon .text-btn { color: var(--fg-tertiary); font-weight: 500; font-size: 13px; }
.tracker-abandon .text-btn:hover { color: var(--money-down); }
@media (min-width: 1024px) { .tracker-abandon { margin-bottom: 24px; } }
.tracker-table .icon-btn--more { min-height: 32px; color: var(--fg-tertiary); }
.text-btn:hover { color: var(--accent-text-hover); }

.chip { font-size: 13px; font-weight: 600; color: var(--fg-label); padding: 6px 10px; border-radius: 5px; background: var(--bg-chip); white-space: nowrap; }
.chip:hover { color: var(--fg-primary); background: #222228; }

/* ── Fields ────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field__label { font-size: 13px; font-weight: 600; color: var(--fg-label); padding: 0; }
.field__hint { color: var(--fg-tertiary); font-weight: 400; }
.field__hint-block { font-size: 12.5px; color: var(--fg-tertiary); line-height: 1.5; }
.field__foot { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--fg-tertiary); }
.field__error { font-size: 13px; color: var(--money-down); }
.field__ok { font-size: 12.5px; color: var(--money-up); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.required { color: var(--money-down); }

.input {
	width: 100%; min-width: 0; height: 48px; padding: 0 12px;
	border: 1px solid var(--line-strong); border-radius: var(--r-control);
	background: var(--bg-input); color: var(--fg-primary); font-size: 16px;
	transition: border-color var(--t-hover), box-shadow var(--t-hover);
}
.input::placeholder, .input input::placeholder { color: var(--fg-tertiary); }
.input:focus, .input:focus-within { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.input.is-invalid, .input:has(.is-invalid) { border-color: var(--money-down); box-shadow: none; }
.input--area { height: auto; min-height: 72px; padding: 12px; line-height: 1.5; resize: vertical; }
.input--title { font-size: 17px; font-weight: 500; line-height: 1.4; min-height: 80px; }
.input--lg { height: 48px; }
.input--money { display: flex; align-items: center; padding: 0 12px; font-variant-numeric: tabular-nums; }
.input--money input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: inherit; padding: 0; box-shadow: none; }
.input__prefix { color: var(--fg-tertiary); margin-right: 4px; }
.input--xl { height: 64px; font-size: 30px; font-weight: 650; border-radius: var(--r-media); padding: 0 16px; }

.search-field { flex: 1; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--bg-raised); color: var(--fg-tertiary); }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--fg-primary); }
.search-field:focus-within { border-color: var(--accent); }
.select-field select {
	height: 48px; padding: 0 36px 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-control);
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23A7A5AE' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
	color: var(--fg-label); font-size: 14px; appearance: none; cursor: pointer;
}
.select-field option { background: var(--bg-overlay); }

.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--fg-label); cursor: pointer; }
.checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checkbox__box { width: 18px; height: 18px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--fg-muted); display: inline-flex; align-items: center; justify-content: center; color: transparent; }
.checkbox input:checked + .checkbox__box { background: var(--accent); box-shadow: none; color: #fff; }
.checkbox input:focus-visible + .checkbox__box { box-shadow: var(--focus-ring); }

.choice-list { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: var(--r-control); box-shadow: inset 0 0 0 1px var(--line-overlay); font-size: 14.5px; cursor: pointer; transition: box-shadow var(--t-hover), background-color var(--t-hover); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__dot { width: 16px; height: 16px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--fg-muted); transition: box-shadow var(--t-hover); }
.choice:has(input:checked) { box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-tint); }
.choice:has(input:checked) .choice__dot { box-shadow: inset 0 0 0 5px var(--accent); }
.choice:has(input:focus-visible) { box-shadow: var(--focus-ring); }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.segmented__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented__option span { height: 44px; border-radius: var(--r-control); box-shadow: inset 0 0 0 1px var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--fg-secondary); cursor: pointer; }
.segmented__option input:checked + span { background: rgba(109, 74, 255, 0.12); box-shadow: inset 0 0 0 1px var(--accent); color: var(--fg-primary); font-weight: 650; }
.segmented__option input:focus-visible + span { box-shadow: var(--focus-ring); }

/* ── Menus ─────────────────────────────────────────────────────────── */
.menu-wrap { position: relative; display: inline-flex; }
.menu {
	position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 200px;
	background: var(--bg-overlay); border: 1px solid var(--line-overlay); border-radius: var(--r-media);
	padding: 6px; font-size: 14px; display: flex; flex-direction: column;
	animation: pop var(--t-overlay) var(--ease-out);
}
.menu--right { left: auto; right: 0; }
.menu__item { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 5px; color: var(--fg-primary); white-space: nowrap; font-weight: 500; }
.menu__item:hover, .menu__item:focus-visible { background: var(--bg-chip); color: var(--fg-primary); box-shadow: none; }
.menu__item[aria-current] { color: var(--accent-text); }
.menu__item--danger { color: var(--money-down); }
.menu__item--danger:hover { color: var(--money-down); }
.menu__sep { height: 1px; background: var(--line-chrome); margin: 6px 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── App header ────────────────────────────────────────────────────── */
.app-header {
	position: sticky; top: 0; z-index: 30;
	height: var(--header-h); display: flex; align-items: center; gap: 6px;
	padding: 0 12px 0 16px; background: var(--bg-base); border-bottom: 1px solid var(--line-chrome);
}
.app-header__logo { display: inline-flex; --logo-size: 12px; }
.app-header__logo .logo { font-size: 12px; }
.app-nav { display: none; }
.app-header__spacer { flex: 1; }
.header-search { display: none; }
.header-search-btn { color: var(--fg-secondary); }
.app-header__actions { display: flex; align-items: center; gap: 10px; }
.app-header__actions--guest { gap: 4px; }
.app-header__actions--guest .btn--ghost { padding: 0 10px; }
.avatar-btn { display: inline-flex; border-radius: 50%; }
.avatar-btn .avatar { --size: 32px !important; }

@media (min-width: 1024px) {
	.app-header { gap: 40px; padding: 0 32px; }
	.app-header__logo .logo { font-size: 15px; }
	.app-nav { display: flex; gap: 28px; align-self: stretch; }
	.app-nav__link { display: flex; align-items: center; font-size: 15px; font-weight: 600; color: var(--fg-secondary); transition: color var(--t-hover), box-shadow var(--t-hover); }
	.app-nav__link:hover { color: var(--fg-primary); }
	.app-nav__link[aria-current] { color: var(--fg-primary); box-shadow: inset 0 -2px 0 var(--accent); }
	.header-search {
		display: flex; align-items: center; gap: 10px; width: 280px; height: 38px; padding: 0 12px;
		background: var(--bg-overlay); border: 1px solid #222228; border-radius: var(--r-control); color: var(--fg-tertiary);
		transition: border-color var(--t-hover);
	}
	.header-search:focus-within { border-color: var(--accent); }
	.header-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 14px; color: var(--fg-primary); }
	.header-search input::placeholder { color: var(--fg-tertiary); }
	.header-search input::-webkit-search-cancel-button { display: none; }
	.header-search__key { font: 600 11px/1 var(--font-ui); border: 1px solid var(--line-strong); border-radius: 4px; padding: 2px 6px; color: var(--fg-tertiary); }
	.header-search-btn { display: none !important; }
	.app-header__actions { gap: 16px; }
	.app-header__actions--guest { gap: 8px; }
	.btn--header { height: 38px; padding: 0 18px; }
	.app-header__actions .btn--primary.btn--header { padding: 0 16px 0 12px; gap: 6px; }
	.app-header__actions--guest .btn--primary.btn--header { padding: 0 18px; }
	.app-header__actions--guest .btn--ghost { padding: 0 14px; }
	.avatar-btn .avatar { --size: 34px !important; }
}

/* ── Tab bar (<1024) ───────────────────────────────────────────────── */
.tab-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
	height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
	display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
	background: var(--bg-base); border-top: 1px solid var(--line-chrome);
}
.tab-bar__link { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--fg-tertiary); }
.tab-bar__link[aria-current] { color: var(--fg-primary); box-shadow: inset 0 2px 0 var(--accent); }
.tab-bar__link:hover { color: var(--fg-primary); }
@media (min-width: 1024px) {
	.tab-bar { display: none; }
	body { padding-bottom: 0; }
}

/* ── Layout ────────────────────────────────────────────────────────── */
.app-main { min-height: calc(100vh - var(--header-h) - var(--tabbar-h)); }
.layout { width: 100%; margin: 0 auto; }
.layout__main { min-width: 0; }
.layout--feed .rail { display: none; }
.app-page { padding: 24px var(--gutter) 64px; max-width: var(--app-max); margin: 0 auto; }

@media (min-width: 640px) {
	.layout { max-width: var(--feed-max); padding-top: 20px; }
	.layout--flush { padding-top: 0; }
}
@media (min-width: 1024px) {
	.app-main { min-height: calc(100vh - var(--header-h)); }
	.layout { max-width: var(--app-max); width: calc(100% - 64px); display: grid; grid-template-columns: minmax(0, var(--feed-max)) var(--rail); column-gap: 48px; padding-top: 28px; padding-bottom: 80px; align-items: start; }
	.layout--flush { padding-top: 8px; width: 100%; }
	.layout--feed .rail { display: flex; }
	.app-page { padding: 48px 0 96px; width: calc(100% - 64px); }
}
@media (min-width: 1280px) {
	.layout { column-gap: 100px; }
}

/* ── Rail ──────────────────────────────────────────────────────────── */
.rail { flex-direction: column; gap: 32px; padding-top: 8px; position: sticky; top: calc(var(--header-h) + 28px); }
.rail__section { display: flex; flex-direction: column; gap: 16px; }
.rail__section--ruled { border-top: 1px solid var(--line-subtle); padding-top: 24px; }
.rail__block { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line-subtle); padding-top: 16px; color: var(--fg-primary); }
.rail__block:hover .rail__title { color: var(--accent-text-hover); }
.rail__kicker { display: block; font-size: 12px; color: var(--fg-tertiary); }
.rail__title { display: block; font-size: 15px; font-weight: 700; color: var(--fg-primary); margin-top: 2px; }
.rail__title--wrap { line-height: 1.35; }
.rail__meta { display: block; font-size: 13px; color: var(--fg-secondary); font-weight: 500; }
.rail__win { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.rail__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--fg-secondary); }
.rail__link { font-size: 14px; }
.site-legal { padding: 28px 16px 32px; text-align: center; font-size: 12px; line-height: 1.9; color: var(--fg-muted); }
.site-legal p { margin: 0 auto; max-width: 640px; }
.site-legal a { color: var(--fg-muted); white-space: nowrap; }
.site-legal a:hover { color: var(--fg-secondary); }
/* Honeypot (Accounts::register): off-screen, never focusable, never filled by people. */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Desktop pages with a rail already carry the legal line in the rail (the rail
   is hidden below 1024, where the bottom line stays). Show it once. */
@media (min-width: 1024px) { body:has(.rail__legal) .site-legal { display: none; } }
.rail__legal { font-size: 12px; color: var(--fg-muted); line-height: 1.7; }
.rail__legal a { color: var(--fg-muted); }
.rail__legal a:hover { color: var(--fg-secondary); }
.rail-game { display: flex; gap: 12px; align-items: center; color: var(--fg-primary); }
.rail-game:hover .rail__title { color: var(--accent-text-hover); }
.rail-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--fg-primary); }
.rail-row:hover { color: var(--accent-text-hover); }
.rail-row__value { font-weight: 650; white-space: nowrap; color: var(--fg-primary); }
.rail-row__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-played { display: flex; align-items: center; gap: 12px; color: var(--fg-primary); }
.rail-played__name { flex: 1; font-size: 14px; font-weight: 600; }
.rail-list { font-size: 14px; line-height: 2; }
.rail-list a { color: var(--fg-primary); }
.rail-list a:hover { color: var(--accent-text-hover); }
.thumb { flex: none; border-radius: var(--r-control); object-fit: cover; padding: 0 !important; }
.thumb--56 { width: 56px; height: 56px; }
.thumb--44 { width: 44px; height: 44px; }
.thumb--40 { width: 40px; height: 40px; border-radius: 5px; }

/* ── Media placeholder ─────────────────────────────────────────────── */
.media-ph {
	display: flex; align-items: flex-end; padding: 12px;
	background: repeating-linear-gradient(135deg, var(--ph-a) 0 10px, var(--ph-b) 10px 20px);
	font: 650 10px/1.3 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-tertiary);
}
.thumb.media-ph { background: repeating-linear-gradient(135deg, var(--ph-c) 0 6px, var(--ph-d) 6px 12px); }
.media-img { width: 100%; height: 100%; object-fit: cover; }

/* Found Win source card: stands in for media (the original is linked, never copied). */
.source-card {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	height: 100%; padding: 16px; text-align: center;
	background: repeating-linear-gradient(135deg, var(--ph-a) 0 10px, var(--ph-b) 10px 20px);
}
.source-card__platform { font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; color: var(--fg-primary); overflow-wrap: anywhere; }
.source-card__note { font: 650 10.5px/1.3 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-tertiary); }
.source-card__cta { margin-top: 10px; }
.source-card--detail .source-card__platform { font-size: 32px; }
@media (min-width: 1024px) { .source-card--detail .source-card__platform { font-size: 40px; } }

/* ── Tabs ──────────────────────────────────────────────────────────── */
.tabs { display: flex; align-items: center; gap: 22px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line-subtle); font-size: 14px; font-weight: 600; }
.tabs__link { padding: 12px 0; color: var(--fg-secondary); white-space: nowrap; transition: color var(--t-hover), box-shadow var(--t-hover); }
.tabs__link:hover { color: var(--fg-primary); }
.tabs__link[aria-current] { color: var(--fg-primary); box-shadow: inset 0 -2px 0 var(--accent); }
.tabs__count { font-variant-numeric: tabular-nums; }
.tabs__end { margin-left: auto; }
.tabs--scroll { overflow-x: auto; scrollbar-width: none; }
.tabs--scroll::-webkit-scrollbar { display: none; }
.tabs--plain { border-bottom: 0; padding: 0; gap: 20px; }
.tabs--plain .tabs__link { padding: 0 0 8px; }
.sort-control__btn { color: var(--fg-secondary); font-size: 13px; padding: 10px 0; }
.sort-control__btn:hover { color: var(--fg-primary); }
.sort-control .menu { min-width: 140px; }
@media (min-width: 640px) {
	.tabs { padding: 0; gap: 24px; }
	.tabs__link { padding: 10px 0; }
}
.tabs--profile .tabs__link, .tabs--game .tabs__link { padding: 14px 0; }
.tabs--hunts { padding: 0; margin-top: 40px; }
.tabs--hunts .tabs__link { padding: 12px 0; }

/* ── Composer, strip ───────────────────────────────────────────────── */
.composer { align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg-raised); border-radius: var(--r-media); margin-bottom: 24px; }
.composer__prompt { flex: 1; font-size: 15px; color: var(--fg-tertiary); }
.composer__prompt:hover { color: var(--fg-secondary); }

.maxxing-strip { display: flex; gap: 0; padding: 14px 16px; border-bottom: 1px solid var(--line-subtle); }
.maxxing-strip__item { display: flex; flex-direction: column; gap: 3px; flex: 1 1 0; min-width: 0; min-height: 44px; justify-content: center; color: var(--fg-primary); }
.maxxing-strip__item + .maxxing-strip__item { padding-left: 16px; margin-left: 16px; border-left: 1px solid var(--line-subtle); }
.maxxing-strip__item--top { flex: 0 0 auto; }
.maxxing-strip__key { font: 650 10.5px/1.2 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-tertiary); }
.maxxing-strip__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; line-height: 1.25; }
.maxxing-strip__item--top .maxxing-strip__value { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; }

/* ── Feed item ─────────────────────────────────────────────────────── */
.feed-item {
	display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px;
	padding: 16px; border-bottom: 1px solid var(--line-subtle);
}
.feed-item__avatar .avatar { --size: 36px !important; font-size: 14px; }
.feed-item__main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.feed-item__head { display: flex; flex-direction: column; gap: 3px; }
.id-line { display: flex; align-items: center; gap: 8px; min-height: 20px; font-size: 14px; min-width: 0; }
.id-line__handle { font-weight: 700; color: var(--fg-primary); white-space: nowrap; }
.id-line__handle:hover { color: var(--fg-primary); text-decoration: underline; text-underline-offset: 3px; }
.id-line__type { font: 650 10px/1 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.id-line__time { margin-left: auto; font-size: 13px; color: var(--fg-tertiary); white-space: nowrap; font-weight: 500; }
.id-line__time:hover { color: var(--fg-secondary); }
.id-line .post-menu { margin-right: -6px; }
.feed-item__subject { color: var(--fg-primary); }
.feed-item__subject:hover { color: var(--fg-primary); }
.subject-win { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.subject-win__game { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.subject-win__provider { font-size: 13.5px; font-weight: 500; color: var(--fg-secondary); }
.subject-hunt { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.subject-discussion { font-size: 17.5px; font-weight: 700; line-height: 1.32; letter-spacing: -0.012em; text-wrap: pretty; margin-top: 2px; }
.feed-item__subject:hover .subject-win__game, .subject-hunt:hover, .subject-discussion:hover { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }

.attribution { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--fg-secondary); margin-top: -4px; }
.attribution__winner { color: var(--fg-primary); font-weight: 700; }
.attribution__dot { color: var(--fg-muted); }
.attribution__source { font-weight: 600; }

.feed-item__media { display: block; aspect-ratio: 16 / 9; border-radius: var(--r-media); overflow: hidden; }
.feed-item__media .media-ph { height: 100%; }
.result-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.result-line__multi { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 26px; letter-spacing: -0.02em; line-height: 1; }
.result-line__money { font-size: 14px; font-weight: 500; color: var(--fg-secondary); word-spacing: 0.06em; }
.result-line__money strong { color: var(--fg-primary); font-weight: 650; }

.hunt-result { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; padding: 14px 16px; background: var(--bg-raised); border-radius: var(--r-media); color: var(--fg-primary); }
.hunt-result:hover { color: var(--fg-primary); background: #141418; }
.hunt-result__net { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 26px; letter-spacing: -0.02em; line-height: 1; }
.hunt-result__meta { font-size: 14px; font-weight: 500; color: var(--fg-secondary); line-height: 1.5; word-spacing: 0.06em; }
.hunt-result__meta strong { color: var(--fg-primary); font-weight: 650; }
.feed-item .badge--example { align-self: flex-start; margin-top: -4px; }

.feed-item__caption { font-size: 15px; line-height: 1.55; color: var(--fg-body); margin-top: -2px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed-item__in { font-size: 13px; color: var(--fg-secondary); margin-top: -4px; }
.feed-item__in a { color: var(--fg-primary); }

/* Narrow screens: a half-step smaller subject keeps "Game · Provider" on one
   line at common phone widths with Jakarta's wider metrics (wraps cleanly below). */
@media (max-width: 639.98px) {
	.subject-win__game, .subject-hunt { font-size: 16px; }
	.subject-win__provider { font-size: 13px; }
	.subject-discussion { font-size: 17px; }
}
@media (min-width: 640px) {
	.feed-item { grid-template-columns: 40px minmax(0, 1fr); padding: 20px 0; }
	.feed-item__avatar .avatar { --size: 40px !important; font-size: 15px; }
}

/* ── Post actions ──────────────────────────────────────────────────── */
.post-actions { display: flex; align-items: center; gap: 22px; height: 28px; color: var(--fg-secondary); font-size: 13.5px; }
.action { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-secondary); min-height: 28px; transition: color var(--t-hover); font-size: inherit; }
.action:hover { color: var(--fg-primary); }
.action[aria-pressed="true"] { color: var(--money-down); }
.action[aria-pressed="true"] .icon path { fill: currentColor; }
.like-form { display: contents; }
.action.is-static, .comment__action.is-static { cursor: default; }
.action.is-static:hover, .comment__action.is-static:hover { color: var(--fg-secondary); background: none; }
.comment__action.is-static:hover { color: var(--fg-tertiary); }
.action--share { color: var(--fg-primary); font-weight: 650; gap: 7px; }
.action--share:hover { color: var(--accent-text-hover); }
.post-actions--detail { height: auto; gap: 4px; padding: 10px 0; margin-top: 16px; border-top: 1px solid var(--line-subtle); border-bottom: 1px solid var(--line-subtle); font-size: 14px; }
.post-actions--detail .action { height: 44px; padding: 0 10px; border-radius: var(--r-control); }
.post-actions--detail .action:hover { background: #141418; }
@media (min-width: 1024px) {
	.post-actions--detail { gap: 8px; padding: 12px 0; margin-top: 20px; }
	.post-actions--detail .action { height: 38px; padding: 0 12px; }
	.btn--share { height: 40px; padding: 0 18px; }
}
@media (max-width: 639.98px) {
	.post-actions { gap: 18px; }
	.post-actions--feed .action { min-height: 44px; }
	.post-actions--feed { height: 32px; }
}

/* ── Feed chrome ───────────────────────────────────────────────────── */
.feed__more { display: flex; justify-content: center; padding: 24px 16px; }
.feed__more .btn { min-width: 160px; }
.cta-panel { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--bg-raised); border-radius: var(--r-panel); }
.cta-panel__title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.cta-panel__body { font-size: 14px; color: var(--fg-secondary); line-height: 1.5; margin-top: -4px; }
.cta-panel--feed { margin: 20px 16px; }
.cta-panel--feed .cta-panel__title { font-size: 18px; }
@media (min-width: 640px) { .cta-panel--feed { margin: 24px 0; } }

/* Skeleton */
.skeleton__row { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 20px 16px; border-bottom: 1px solid var(--line-subtle); animation: shimmer 1.4s ease-in-out infinite; }
.skeleton__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-chip); }
.skeleton__lines { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.skeleton__line { display: block; max-width: 100%; height: 12px; border-radius: 3px; background: var(--bg-chip); }
.skeleton__line--title { height: 16px; }
.skeleton__media { display: block; border-radius: var(--r-media); background: var(--bg-graphite); }
@keyframes shimmer { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (min-width: 640px) { .skeleton__row { padding: 20px 0; } }

/* States */
.state { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 56px var(--gutter); }
.state__title { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.state__body { font-size: 15px; color: var(--fg-secondary); line-height: 1.5; max-width: 520px; }
.state .btn { margin-top: 6px; }
@media (min-width: 640px) { .state { padding: 64px 0; } }
.app-page--state .state { padding: 64px 0; }

.error-inline { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-media); box-shadow: inset 0 0 0 1px rgba(242, 100, 92, 0.35); background: rgba(242, 100, 92, 0.06); font-size: 14px; margin: 16px var(--gutter); }
.error-inline__retry { margin-left: auto; font-weight: 650; color: var(--fg-primary); }
@media (min-width: 640px) { .error-inline { margin: 16px 0; } }

/* ── Post detail ───────────────────────────────────────────────────── */
.post-detail { display: flex; flex-direction: column; padding: 16px var(--gutter) 40px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg-secondary); align-self: flex-start; }
.back-link:hover { color: var(--fg-primary); }
.detail-author { display: flex; align-items: center; gap: 10px; }
.detail-author .avatar--detail { --size: 40px !important; font-size: 15px; }
.detail-author__text { flex: 1; min-width: 0; }
.detail-author__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.detail-author__name a { color: var(--fg-primary); font-weight: 700; }
.detail-author__meta { font-size: 12.5px; color: var(--fg-tertiary); margin-top: 2px; font-weight: 500; }
.detail-author .post-menu .icon-btn--more { width: 40px; height: 40px; }

.win-by { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-top: 20px; padding: 14px 16px; background: var(--bg-raised); border-radius: var(--r-media); }
.win-by .label { font-size: 10.5px; }
.win-by__handle { font-size: 18px; font-weight: 700; color: var(--fg-primary); }
.win-by__note { font-size: 13px; color: var(--fg-secondary); }
.win-by__source { font-size: 14px; font-weight: 650; flex-basis: 100%; }

.detail-title { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.detail-title__provider { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--fg-secondary); }
.detail-title__provider:hover { color: var(--fg-primary); }
.detail-media { display: block; margin: 16px calc(var(--gutter) * -1) 0; aspect-ratio: 4 / 3; overflow: hidden; }
.detail-media .media-ph { height: 100%; }

.win-stats { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; }
.win-stats__item { display: flex; flex-direction: column; }
.win-stats__multi { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: 44px; line-height: 0.9; letter-spacing: -0.03em; }
.win-stats__value { font-size: 18px; font-weight: 700; padding-bottom: 2px; }
.win-stats__label { font-size: 12px; color: var(--fg-tertiary); margin-top: 4px; }
.verification { flex-basis: 100%; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-secondary); }
.verification__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-secondary); display: none; }
.result-line--detail { margin-top: 20px; gap: 16px; }
.result-line--detail .result-line__multi { font-weight: 900; font-size: 36px; letter-spacing: -0.03em; }
.result-line--detail .result-line__money { font-size: 16px; }
.detail-caption { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--fg-body); }
.detail-caption p + p { margin-top: 10px; }
.detail-question { margin-top: 16px; font-size: 22px; font-weight: 700; line-height: 1.28; letter-spacing: -0.015em; text-wrap: pretty; }
.post-detail--discussion .feed-item__in { margin-top: 14px; }
.detail-example { margin-top: 12px; }

.game-strip { align-items: center; gap: 14px; margin-top: 4px; padding: 16px 0; border-bottom: 1px solid var(--line-subtle); color: var(--fg-primary); }
.game-strip__text { flex: 1; min-width: 0; }
.game-strip__name { display: block; font-size: 14px; font-weight: 700; }
.game-strip__meta { display: block; font-size: 12.5px; color: var(--fg-secondary); font-weight: 500; }
.game-strip__arrow { color: var(--fg-tertiary); }

.hunt-hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 40px; margin-top: 16px; }
.hunt-hero__net { font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height: 0.85; letter-spacing: -0.05em; }
.hunt-hero__label { font-size: 13px; color: var(--fg-secondary); margin-top: 10px; }
.hunt-hero__stats { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-bottom: 4px; }
.hunt-hero__stats div { display: flex; flex-direction: column-reverse; }
.hunt-hero__stats dd { font-size: 20px; font-weight: 700; }
.hunt-hero__stats dt { font-size: 12px; color: var(--fg-tertiary); }
.detail-title--hunt { margin-top: 24px; }

.hunt-table { margin-top: 24px; font-size: 14px; }
.hunt-table th { padding: 10px 0; font-size: 12px; color: var(--fg-tertiary); }
.hunt-table td { padding: 12px 0; border-top: 1px solid var(--line-row); vertical-align: top; }
.hunt-table td a { color: var(--fg-primary); }
.hunt-table td a:hover { color: var(--accent-text-hover); }
.hunt-table th.num, .hunt-table td.num { padding-left: 12px; white-space: nowrap; }
.hunt-table .is-best td { font-weight: 650; }
.hunt-table__sub { display: block; font-size: 12.5px; color: var(--fg-tertiary); font-weight: 400; margin-top: 2px; }
.hunt-table .col-bet, .hunt-table .col-cost { display: none; }
@media (min-width: 640px) {
	.hunt-table .col-bet, .hunt-table .col-cost { display: table-cell; }
	.hunt-table__sub { display: none; }
}

/* Comments */
.comments { margin-top: 24px; }
.comments__title { font-size: 17px; font-weight: 700; }
.comments__empty { margin-top: 12px; font-size: 14px; color: var(--fg-tertiary); }
.comment-join { align-items: center; gap: 12px; margin-top: 16px; padding: 12px 12px 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-media); }
.comment-join span { flex: 1; font-size: 15px; color: var(--fg-tertiary); }
.comment-compose { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; }
.comment-compose .input { min-height: 40px; height: 40px; padding: 9px 12px; font-size: 15px; resize: none; overflow: hidden; }
.comment-compose .avatar { --size: 32px !important; margin-top: 4px; }
.comment-compose__field { flex: 1; min-width: 0; display: grid; gap: 6px; }
.comment-compose .input[aria-invalid="true"] { border-color: var(--money-down); }
.comment-compose .btn { flex-shrink: 0; margin-top: 4px; }
.comment-list { margin-top: 4px; }
.comment { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line-faint); }
.comment .avatar--comment { --size: 32px !important; font-size: 13px; }
.comment__meta { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }
.comment__handle { font-weight: 700; color: var(--fg-primary); }
.comment__meta time { color: var(--fg-tertiary); font-size: 12.5px; }
.comment__text { font-size: 15px; line-height: 1.55; margin-top: 3px; color: var(--fg-body); }
.comment__actions { display: flex; gap: 18px; margin-top: 6px; font-size: 13px; }
.comment__action { color: var(--fg-tertiary); font-size: 13px; min-height: 24px; }
.comment__action:hover { color: var(--fg-primary); }
.comment__action[aria-pressed="true"] { color: var(--money-down); }
.comment__action--danger:hover { color: var(--money-down); }
.comment__status { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-tertiary); }
.comment--pending .comment__text { color: var(--fg-tertiary); }
.comments__more { padding: 16px 0; }

/* Guest sticky join bar (mobile post detail) */
.join-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
	display: flex; align-items: center; gap: 12px;
	padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); background: var(--bg-base); border-top: 1px solid var(--line-chrome);
}
.join-bar > div { flex: 1; }
.join-bar__title { font-size: 14px; font-weight: 700; }
.join-bar__body { font-size: 12.5px; color: var(--fg-secondary); }
.join-bar .btn { padding: 0 20px; }
body.is-guest.single-bwm_post { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

@media (min-width: 640px) {
	.post-detail { padding: 24px 0 40px; }
	.detail-media { margin: 16px 0 0; aspect-ratio: 16 / 9; border-radius: var(--r-media); }
	.win-by__source { flex-basis: auto; margin-left: auto; }
}
@media (min-width: 1024px) {
	.post-detail { padding: 0 0 40px; }
	.layout--feed .rail--post { padding-top: 44px; }
	.detail-author { gap: 12px; margin-top: 24px; }
	.detail-author .avatar--detail { --size: 44px !important; font-size: 16px; }
	.detail-author__name { font-size: 15px; }
	.detail-author__meta { font-size: 13px; }
	.detail-title { flex-direction: row; align-items: baseline; gap: 10px; margin-top: 20px; font-size: 26px; }
	.detail-title__provider { font-size: 15px; }
	.win-stats { flex-wrap: wrap; gap: 12px 36px; align-items: flex-end; }
	.win-stats__value { font-size: 22px; padding-bottom: 0; }
	/* One line, pushed right; drops below the stats when the column is narrow. */
	.verification { flex-basis: auto; margin-left: auto; white-space: nowrap; padding-bottom: 2px; }
	.verification__dot { display: inline-block; }
	.result-line--detail .result-line__multi { font-size: 44px; }
	.result-line--detail .result-line__money { font-size: 17px; }
	.detail-caption { margin-top: 20px; font-size: 17px; }
	.detail-question { margin-top: 24px; font-size: 26px; }
	.hunt-hero { gap: 40px; margin-top: 20px; }
	.hunt-hero__net { font-size: 80px; }
	.hunt-hero__stats { padding-bottom: 22px; }
	.detail-title--hunt { margin-top: 28px; }
	.comments { margin-top: 32px; }
	.comments__title { font-size: 18px; }
	.comment { grid-template-columns: 36px 1fr; gap: 12px; padding: 18px 0; }
	.comment .avatar--comment { --size: 36px !important; font-size: 14px; }
	.comment__meta { font-size: 14px; }
	.comment__text { margin-top: 4px; }
	.comment__actions { margin-top: 8px; }
	.join-bar { display: none; }
	body.is-guest.single-bwm_post { padding-bottom: 0; }
}

/* ── Profile ───────────────────────────────────────────────────────── */
.profile { padding-top: 28px; }
.profile-head { display: grid; grid-template-columns: 80px 1fr; gap: 0 16px; align-items: center; padding: 0 var(--gutter); }
.profile-head .avatar--profile { --size: 80px !important; font-size: 30px; }
.profile-head__name { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 28px; letter-spacing: -0.025em; line-height: 1; }
.profile-head__name .badge { font-family: var(--font-ui); font-stretch: 100%; font-size: 10.5px; padding: 3px 6px; }
.profile-head__handle { font-size: 14px; color: var(--fg-secondary); margin-top: 6px; }
.profile-head__badge { margin-top: 8px; }
.profile-head__bio { grid-column: 1 / -1; font-size: 15px; margin-top: 16px; color: var(--fg-body); line-height: 1.5; }
.profile-head__joined { grid-column: 1 / -1; font-size: 13px; color: var(--fg-tertiary); margin-top: 6px; }
.profile-head__actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 16px; }
.profile-head__actions > .btn { flex: 1; height: 44px; }
.profile-head__actions .btn--square { width: 44px; height: 44px; }

.profile-stats { margin: 24px var(--gutter) 0; }
.profile-stats__counts { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 0; border-top: 1px solid var(--line-subtle); }
.profile-stats__highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-subtle); border-bottom: 1px solid var(--line-subtle); }
.profile-stats__highlight a { display: block; color: var(--fg-primary); }
.profile-stats__big { display: flex; align-items: baseline; gap: 10px; }
.profile-stats__big .num-hero { font-size: 24px; }
.profile-stats__provider { display: block; font-size: 17px; font-weight: 700; padding-top: 3px; }
.stat-value { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { display: block; font-size: 12.5px; color: var(--fg-secondary); margin-top: 2px; font-weight: 500; }
.profile .layout--feed { padding-top: 0; }
.tabs--profile { padding: 0 var(--gutter); }

@media (min-width: 640px) {
	.profile { max-width: var(--feed-max); margin: 0 auto; }
	.profile-head, .tabs--profile { padding: 0; }
	.profile-stats { margin: 24px 0 0; }
}
@media (min-width: 1024px) {
	.profile { max-width: var(--app-max); width: calc(100% - 64px); padding-top: 56px; }
	.profile-head { grid-template-columns: 120px 1fr auto; gap: 32px; }
	.profile-head .avatar--profile { --size: 120px !important; font-size: 44px; }
	.profile-head__name { font-size: 40px; }
	.profile-head__handle { font-size: 16px; margin-top: 8px; }
	.profile-head__bio { grid-column: auto; font-size: 16px; margin-top: 12px; }
	.profile-head__actions { grid-column: auto; margin-top: 0; }
	.profile-head__actions > .btn { flex: none; height: 40px; }
	.profile-head__actions .btn--square { width: 40px; height: 40px; }
	.profile-stats { display: grid; grid-template-columns: auto 1fr; gap: 32px; margin-top: 44px; padding: 28px 0; border-top: 1px solid var(--line-subtle); border-bottom: 1px solid var(--line-subtle); }
	.profile-stats__counts { grid-template-columns: repeat(3, 110px); gap: 32px; padding: 0; border: 0; }
	.profile-stats__highlights { gap: 32px; padding: 0; border: 0; }
	.profile-stats__highlight { border-left: 1px solid var(--line-subtle); padding-left: 32px; }
	.profile-stats__big .num-hero { font-size: 30px; }
	.profile-stats__big .muted { font-size: 15px; }
	.profile-stats__provider { font-size: 22px; padding-top: 4px; }
	.stat-value { font-size: 30px; }
	.stat-label { font-size: 13px; margin-top: 4px; }
	.profile .layout { width: 100%; }
	.rail--profile, .rail--game { padding-top: 24px; }
}

/* ── Games ─────────────────────────────────────────────────────────── */
.page-title { font-family: var(--font-display); font-weight: 900; font-stretch: 118%; font-size: 32px; letter-spacing: -0.03em; line-height: 1; }
.page-sub { font-size: 15px; color: var(--fg-secondary); margin-top: 10px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; }
.page-head__cta { margin-left: auto; }
.games-filter { display: flex; gap: 8px; margin: 20px 0 20px; flex-wrap: wrap; }
.games-filter .search-field { flex-basis: 100%; }
.games-filter .select-field select { height: 44px; }
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; margin-top: 24px; }
.game-tile { display: flex; flex-direction: column; color: var(--fg-primary); }
.game-tile__art { width: 100%; margin-bottom: 12px; border-radius: var(--r-control); }
.game-tile__name { font-size: 15px; font-weight: 700; }
.game-tile:hover .game-tile__name { color: var(--accent-text-hover); }
.game-tile__provider { font-size: 13px; color: var(--fg-secondary); margin-top: 2px; font-weight: 500; }
.game-tile__activity { font-size: 12.5px; color: var(--fg-tertiary); margin-top: 4px; font-weight: 500; }
@media (min-width: 640px) { .game-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; } }
@media (min-width: 860px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) {
	.page-title { font-size: 44px; }
	.games-filter { flex-wrap: nowrap; gap: 12px; margin: 28px 0 24px; }
	.games-filter .search-field { flex-basis: auto; }
	.games-filter .select-field select { height: 48px; }
	.game-grid { grid-template-columns: repeat(5, 1fr); gap: 32px 20px; margin-top: 28px; }
}

.game-page { padding-top: 24px; }
.game-head { display: flex; gap: 16px; align-items: flex-end; padding: 0 var(--gutter); }
.game-head__art { width: 96px; flex: none; border-radius: var(--r-media); }
.game-head .media-ph.game-head__art span { display: none; }
.game-head__text { min-width: 0; }
.game-head__provider { font-size: 13px; color: var(--fg-secondary); }
.game-head__provider:hover { color: var(--fg-primary); }
.game-head__title { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: 28px; letter-spacing: -0.03em; line-height: 0.98; margin-top: 6px; }
.game-head__facts-mobile { padding: 14px var(--gutter) 0; font-size: 13px; color: var(--fg-secondary); }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px var(--gutter) 0; padding: 16px 0; border-top: 1px solid var(--line-subtle); border-bottom: 1px solid var(--line-subtle); }
.stat-strip .num-hero { display: block; font-size: 22px; }
.stat-strip .stat-value { font-size: 22px; }
.stat-strip .stat-label { font-size: 12px; }
.game-page__cta { padding: 16px var(--gutter); }
.game-page__cta .btn { height: 48px; }
.provider-head { padding-top: 8px; }
.stat-strip--3 { margin: 24px 0 0; }
@media (min-width: 640px) {
	.game-page { max-width: var(--feed-max); margin: 0 auto; }
	.game-head, .game-head__facts-mobile, .game-page__cta { padding-left: 0; padding-right: 0; }
	.stat-strip { margin: 20px 0 0; }
}
@media (min-width: 1024px) {
	.game-page { max-width: var(--app-max); width: calc(100% - 64px); padding-top: 40px; }
	.game-head { display: grid; grid-template-columns: 200px 1fr auto; gap: 32px; align-items: end; }
	.game-head__art { width: 200px; }
	.game-head .media-ph.game-head__art span { display: inline; }
	.game-head__provider { font-size: 15px; }
	.game-head__title { font-size: 52px; letter-spacing: -0.035em; line-height: 0.95; margin-top: 10px; }
	.game-head__facts { display: flex; gap: 20px; margin-top: 16px; font-size: 14px; color: var(--fg-secondary); }
	.game-head__cta { height: 44px; padding: 0 18px; }
	.stat-strip { grid-template-columns: repeat(4, 1fr); margin-top: 40px; padding: 24px 0; }
	.stat-strip .num-hero { font-size: 32px; }
	.stat-strip .stat-value { font-size: 30px; }
	.stat-strip .stat-label { font-size: 13px; margin-top: 4px; }
	.stat-strip--3 { grid-template-columns: repeat(3, 1fr); }
	.game-page .layout { width: 100%; }
}
.top-wins li a { display: flex; align-items: baseline; gap: 12px; padding: 6px 0; color: var(--fg-primary); }
.top-wins__rank { width: 16px; font-size: 13px; color: var(--fg-tertiary); }
.top-wins__multi { width: 84px; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 18px; }
.top-wins__handle { font-size: 14px; color: var(--fg-secondary); }
.top-wins a:hover .top-wins__handle { color: var(--fg-primary); }

/* ── Hunts index ───────────────────────────────────────────────────── */
.app-page--hunts .page-head__cta { height: 44px; }
.active-hunt { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; padding: 20px; background: var(--bg-raised); border-radius: var(--r-panel); }
.status-label { display: flex; align-items: center; gap: 10px; font: 700 10.5px/1 var(--font-ui); letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-badge); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.active-hunt__name { font-size: 22px; font-weight: 700; margin-top: 10px; }
.active-hunt__meta { font-size: 14px; color: var(--fg-secondary); margin-top: 6px; }
.progress { height: 4px; border-radius: 2px; background: var(--line-subtle); overflow: hidden; }
.progress__bar { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width var(--t-overlay) var(--ease-out); }
.progress--panel { margin-top: 16px; max-width: 520px; }
.hunt-list { font-size: 14px; }
.hunt-list thead th { padding: 14px 0; font-size: 12px; color: var(--fg-tertiary); }
.hunt-list tbody th, .hunt-list td { padding: 16px 0; border-top: 1px solid var(--line-row); vertical-align: top; }
.hunt-list .num { padding-left: 12px; white-space: nowrap; }
.hunt-list__name { font-weight: 700; color: var(--fg-primary); }
a.hunt-list__name:hover { color: var(--accent-text-hover); }
.hunt-list__date { color: var(--fg-tertiary); margin-left: 10px; font-weight: 500; }
.hunt-list__sub { display: block; margin-top: 4px; font-size: 12.5px; color: var(--fg-tertiary); }
.hunt-list .col-hide-sm { display: none; }
@media (min-width: 640px) {
	.hunt-list .col-hide-sm { display: table-cell; }
	.hunt-list__sub { display: none; }
	.hunt-list tbody th, .hunt-list td { padding: 18px 0; vertical-align: middle; }
}
@media (min-width: 1024px) {
	.active-hunt { grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 40px; padding: 24px 28px; }
}

/* ── Tracker ───────────────────────────────────────────────────────── */
.app-main--tracker { padding-bottom: 96px; }
.tracker-bar { position: sticky; top: 0; z-index: 20; height: 56px; align-items: center; gap: 12px; padding: 0 16px 0 8px; background: var(--bg-base); border-bottom: 1px solid var(--line-chrome); }
.tracker-bar__title { font-size: 16px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracker-bar__finish { font-size: 14px; font-weight: 650; padding: 12px 0 12px 8px; }
body:has(.app-main--tracker) .app-header { display: none; }
.app-page--tracker { padding-top: 0; }
.crumb { font-size: 14px; color: var(--fg-secondary); }
.crumb:hover { color: var(--fg-primary); }
.tracker-head { align-items: flex-end; margin-top: 12px; }
.tracker-head__title { font-family: var(--font-display); font-weight: 900; font-stretch: 118%; font-size: 40px; letter-spacing: -0.03em; line-height: 1; }
.status-label--inline { display: inline; margin: 0 0 4px 14px; color: var(--accent-badge); }
.tracker-head__finish { margin-left: auto; height: 42px; font-weight: 650; }
.tracker-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 16px var(--gutter); border-bottom: 1px solid var(--line-subtle); }
/* Every metric: the value on top, its label under it, then (only when needed) a short reason. */
.tracker-stats div { display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; }
.tracker-stats dd { order: -1; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tracker-stats dt { font-size: 12px; line-height: 1.35; color: var(--fg-secondary); }
.tracker-stats dd.tracker-stats__why { order: 1; margin-top: 2px; font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.35; color: var(--fg-tertiary); white-space: normal; }
.tracker-stats dd.tracker-stats__why[hidden] { display: none; }
.progress--tracker { grid-column: 1 / -1; }
.tracker-list { margin: 0 calc(var(--gutter) * -1); }
.tracker-item { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-faint); text-align: left; }
.tracker-item.is-active { background: rgba(109, 74, 255, 0.06); }
.tracker-item__n { width: 20px; font-size: 13px; color: var(--fg-tertiary); }
.tracker-item__main { flex: 1; min-width: 0; }
.tracker-item__game { display: block; font-size: 15px; font-weight: 600; }
.tracker-item__meta { display: block; font-size: 12.5px; color: var(--fg-tertiary); margin-top: 2px; }
.tracker-item__result { text-align: right; }
.tracker-item__return { display: block; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tracker-item__multi { display: block; font-size: 12px; color: var(--fg-tertiary); margin-top: 2px; }
.tracker-item.is-unopened .tracker-item__return { color: var(--fg-muted); }
.tracker-item.is-active .tracker-item__return { color: var(--accent-text); }
.sticky-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); background: var(--bg-base); border-top: 1px solid var(--line-chrome); }

.tracker-table { margin-top: 8px; font-size: 14.5px; }
.tracker-table th { padding: 14px 0; font-size: 12px; color: var(--fg-tertiary); }
.tracker-table td { height: 52px; border-top: 1px solid var(--line-row); }
.tracker-table th.num, .tracker-table td.num { padding-left: 12px; }
.tracker-table .col-n { width: 40px; color: var(--fg-tertiary); font-variant-numeric: tabular-nums; }
.tracker-table .col-menu { width: 40px; text-align: center; color: var(--fg-muted); }
.tracker-row__game { font-weight: 600; }
.tracker-row.is-active td { background: rgba(109, 74, 255, 0.06); }
.return-field {
	display: inline-flex; align-items: center; justify-content: flex-end; min-width: 96px; height: 34px; padding: 0 10px; border-radius: 5px;
	box-shadow: inset 0 0 0 1px var(--line-overlay); font-weight: 650; font-variant-numeric: tabular-nums; transition: box-shadow var(--t-hover);
}
.return-field__prefix { color: inherit; }
.return-field:has(.return-input:placeholder-shown) .return-field__prefix { display: none; }
.return-field:has(.return-input:not(:placeholder-shown)) { box-shadow: none; }
.return-field:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.return-field:focus-within { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-ring); }
.return-field:has(.is-up) { color: var(--money-up); }
.return-field:has(.is-zero) { color: var(--fg-tertiary); }
.return-input {
	width: 7ch; height: 100%; padding: 0; text-align: right; border: 0; background: transparent; outline: none; box-shadow: none !important;
	font: inherit; color: inherit;
}
.return-input::placeholder { color: var(--fg-muted); font-weight: 650; }
.tracker-row.is-active .return-field { box-shadow: inset 0 0 0 1px var(--accent); }
.tracker-row.is-active .return-input::placeholder { color: var(--accent-text); }
.tracker-add { display: none; align-items: center; gap: 12px; width: 100%; height: 56px; border-top: 1px solid var(--line-row); color: var(--accent-text); font-size: 14.5px; font-weight: 500; }
.tracker-add:hover { color: var(--accent-text-hover); }

@media (min-width: 1024px) {
	body:has(.app-main--tracker) .app-header { display: flex; }
	.app-main--tracker { padding-bottom: 0; }
	.app-page--tracker { padding-top: 36px; }
	.tracker-stats { grid-template-columns: repeat(5, 1fr); gap: 24px; margin: 32px 0 0; padding: 20px 0; border-top: 1px solid var(--line-subtle); }
	.tracker-stats dd { font-size: 26px; }
	.tracker-stats dt { font-size: 12.5px; margin-top: 4px; }
	.tracker-add { display: flex; }
}

/* ── Dialogs, sheets ───────────────────────────────────────────────── */
.dialog {
	padding: 0; border: 1px solid var(--line-overlay); border-radius: var(--r-dialog);
	background: var(--bg-overlay); color: var(--fg-primary); max-width: calc(100vw - 32px); max-height: calc(100vh - 96px);
}
.dialog[open] { animation: dialog-in var(--t-overlay) var(--ease-out); }
.dialog::backdrop { background: var(--scrim); animation: fade-in var(--t-overlay) var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.dialog--sheet { margin: 72px auto auto; width: 680px; overflow: auto; }
.dialog--sheet:has(.sheet--create) { width: 600px; top: 24px; }
.dialog--sheet:has(.sheet--type-win), .dialog--sheet:has(.create[data-type="win"]), .dialog--sheet:has(.create[data-type="found"]) { width: 760px; }
.dialog--sheet:has(.sheet--narrow) { width: 520px; }
.dialog--report { width: 420px; }
html:has(dialog[open]) { overflow: hidden; }

.dialog--bottom {
	margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92vh; border-radius: var(--r-sheet) var(--r-sheet) 0 0;
	border-width: 1px 0 0; padding: 0;
}
.dialog--bottom[open] { animation: sheet-up var(--t-overlay) var(--ease-out); }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.dialog--add { width: 480px; }
@media (max-width: 1023.98px) {
	.dialog--add { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: var(--r-sheet) var(--r-sheet) 0 0; border-width: 1px 0 0; }
}

.sheet-page { min-height: 100vh; display: flex; flex-direction: column; }
.sheet { display: flex; flex-direction: column; flex: 1; }
.sheet-form, .create, .create__panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sheet-head { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px 0 8px; border-bottom: 1px solid var(--line-chrome); flex: none; }
.sheet-head__title { font-size: 16px; font-weight: 700; }
.sheet-head__action { margin-left: auto; height: 36px; }
.sheet-head__x { margin-left: auto; }
.sheet-head--bare { border-bottom: 0; }
.sheet-head--dialog { padding: 0 12px 0 24px; height: 60px; justify-content: space-between; }
.sheet-body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 20px 16px; }
.sheet-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-chrome); flex: none; background: var(--bg-base); position: sticky; bottom: 0; }
.sheet-foot--stack { flex-direction: column; align-items: stretch; gap: 8px; border-top: 0; }
.sheet-foot__as { font-size: 13px; color: var(--fg-tertiary); margin-right: auto; }
.sheet-note { font-size: 13.5px; color: var(--fg-secondary); line-height: 1.55; padding-top: 8px; }
.btn--grow-mobile { flex: 1; height: 52px; font-size: 16px; }

.dialog .sheet-head { padding: 0 12px 0 24px; height: 60px; }
.dialog .sheet-head__title { font-size: 17px; }
.dialog .sheet-body { padding: 24px; gap: 18px; }
.dialog .sheet-foot { padding: 16px 24px; background: transparent; position: static; }
.dialog .btn--grow-mobile { flex: none; height: 40px; font-size: 14px; padding: 0 20px; }
.dialog .sheet-foot .btn--primary.btn--grow { flex: none; }

/* Create */
.type-chooser { border: 0; margin: 0; padding: 20px 16px 4px; display: flex; flex-direction: column; gap: 10px; }
.type-chooser__legend { font-size: 13px; color: var(--fg-secondary); padding: 0; margin-bottom: 10px; }
.type-card { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 14px; border-radius: var(--r-media); border: 1px solid var(--line-overlay); cursor: pointer; transition: border-color var(--t-hover), background-color var(--t-hover); }
.type-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type-card__text { flex: 1; }
.type-card__name { display: block; font-size: 15px; font-weight: 700; }
.type-card__desc { display: block; font-size: 13px; color: var(--fg-secondary); margin-top: 3px; line-height: 1.4; }
.type-card__dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--fg-muted); flex: none; }
.type-card:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.type-card:has(input:checked) .type-card__dot { box-shadow: inset 0 0 0 5px var(--accent); }
.type-card:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.type-card:hover { border-color: var(--line-strong); }
.dialog .type-chooser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 20px 24px 0; }
.dialog .type-card { min-height: 0; padding: 14px; align-items: flex-start; }
.dialog .type-card__name { font-size: 14px; }
.dialog .type-card__desc { font-size: 12.5px; margin-top: 4px; }
.dialog .type-card__dot { display: none; }

.win-form { display: flex; flex-direction: column; }
.win-form__media, .win-form__fields { display: flex; flex-direction: column; gap: 16px; }
.dropzone { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border: 1px dashed var(--line-dashed); border-radius: var(--r-media); cursor: pointer; overflow: hidden; transition: border-color var(--t-hover); }
.dropzone:hover, .dropzone:focus-within { border-color: var(--accent); }
.dropzone__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px; color: var(--fg-secondary); }
.dropzone__title { font-size: 14px; font-weight: 650; color: var(--fg-primary); }
.dropzone__hint { font-size: 12.5px; color: var(--fg-tertiary); }
.dropzone__preview { position: absolute; inset: 0; }
.dropzone__preview img, .dropzone__preview video { width: 100%; height: 100%; object-fit: cover; }
.dropzone__replace { position: absolute; right: 12px; bottom: 10px; font-size: 13px; font-weight: 600; color: var(--fg-primary); background: rgba(10, 10, 12, 0.7); padding: 4px 8px; border-radius: 4px; }
.multiplier-box { display: flex; align-items: baseline; gap: 12px; padding: 14px; background: var(--bg-raised); border-radius: var(--r-media); }
.multiplier-box__label { font-size: 13px; color: var(--fg-secondary); }
.multiplier-box__value { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: 26px; letter-spacing: -0.03em; line-height: 1; }
.multiplier-box__calc { margin-left: auto; font-size: 12.5px; color: var(--fg-tertiary); }
.casino-field summary { list-style: none; padding: 0; }
.casino-field summary::-webkit-details-marker { display: none; }
.casino-field[open] summary { display: none; }
.casino-field { gap: 7px; }
.notice-panel { padding: 14px; background: var(--bg-raised); border-radius: var(--r-media); font-size: 13.5px; color: var(--fg-label); line-height: 1.5; }
.notice-panel strong { color: var(--fg-primary); font-weight: 650; }
@media (min-width: 1024px) {
	.dialog .win-form { display: grid; grid-template-columns: 300px 1fr; gap: 28px; }
	.dialog .dropzone { aspect-ratio: 4 / 3; }
	.dialog .multiplier-box { background: var(--bg-input); padding: 14px 16px; }
	.dialog .multiplier-box__value { font-size: 28px; }
	.dialog .input { height: 44px; font-size: 15px; }
	.dialog .input--area { height: auto; }
	.dialog .input--title { font-size: 17px; }
	.dialog .casino-field summary { display: none; }
	.dialog .casino-field > *:not(summary) { display: block; }
}

/* Share */
.share-sheet { display: flex; flex-direction: column; flex: 1; padding: 4px 16px 0; }
.share-sheet__head { display: flex; flex-direction: column-reverse; gap: 8px; }
.share-sheet__close { margin: 8px 0 0 -8px; }
.share-sheet__title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.share-sheet__sub { font-size: 14px; color: var(--fg-secondary); margin-top: 6px; }
.share-sheet .share-card-frame { margin-top: 20px; }
.share-sheet__text { margin-top: 24px; }
.share-sheet__text .input { min-height: 104px; }
.share-sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding: 24px 0 calc(20px + env(safe-area-inset-bottom)); }
.share-sheet__primary { grid-column: 1 / -1; }
/* Phones with a system share sheet (app.js sets .is-native): Share replaces
   Open X. Without it, or without JS, Open X is the primary action. */
.share-sheet:not(.is-native) .share-sheet__native, .share-sheet.is-native .share-sheet__x, .share-sheet.is-native .share-sheet__note { display: none; }
.share-sheet__copy, .share-sheet__save { height: 48px; font-size: 15px; }
.share-sheet__actions:not(:has(.share-sheet__save)) .share-sheet__copy { grid-column: 1 / -1; }
.share-sheet__note { margin-top: 12px; font-size: 12.5px; color: var(--fg-tertiary); text-align: center; }
.dialog .share-sheet { padding: 28px 40px 24px; }
.dialog .share-sheet__head { flex-direction: row; align-items: flex-start; }
.dialog .share-sheet__close { margin: -6px -10px 0 auto; }
.dialog .share-sheet__title { font-size: 24px; }
.dialog .share-sheet .share-card-frame { margin-top: 22px; }
.dialog .share-sheet__text { margin-top: 20px; }
.dialog .share-sheet__text .input { min-height: 72px; font-size: 15px; padding: 12px 14px; }
.dialog .share-sheet__actions { grid-template-columns: auto 1fr; gap: 10px; margin-top: 20px; padding: 0; }
.dialog .share-sheet__primary { grid-column: 2; grid-row: 1; height: 48px; font-size: 15px; }
.dialog .share-sheet__copy { grid-column: 1; grid-row: 1; padding: 0 20px; }
.dialog .share-sheet__actions:not(:has(.share-sheet__save)) .share-sheet__copy { grid-column: 1; }
.dialog .share-sheet__actions:has(.share-sheet__save) { grid-template-columns: auto auto 1fr; }
.dialog .share-sheet__actions:has(.share-sheet__save) .share-sheet__primary { grid-column: 3; }
.dialog .share-sheet__save { grid-column: 2; grid-row: 1; padding: 0 20px; }

/* Generated card image (Cards\Cards): 1200×630 PNG */
.share-card-frame--image { aspect-ratio: 1200 / 630; background: var(--bg-input); }
.share-card-frame--image::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px #24242A; pointer-events: none; }
.share-card-img { display: block; width: 100%; height: 100%; }

/* Share card: 600×314 artboard scaled to the frame width */
.share-card-frame { --scale: 1; width: 100%; aspect-ratio: 600 / 314; position: relative; overflow: hidden; border-radius: var(--card-radius, 12px); box-shadow: inset 0 0 0 1px #24242A; }
.share-card { position: absolute; top: 0; left: 0; width: 600px; height: 314px; transform: scale(var(--scale)); transform-origin: 0 0; background: var(--bg-input); color: var(--fg-primary); font-family: var(--font-ui); overflow: hidden; }
.share-card--win { display: grid; grid-template-columns: minmax(0, 1fr) 210px; }
.share-card__main { padding: 26px 28px 22px; display: flex; flex-direction: column; min-width: 0; }
.share-card__who { display: flex; align-items: center; gap: 10px; }
.share-card__who .avatar { --size: 38px !important; font-size: 15px; }
.share-card__handle { font-size: 15px; font-weight: 700; }
.share-card__sub { font-size: 12.5px; color: var(--fg-secondary); margin-top: 1px; }
.share-card__kicker { font: 650 10px/1 var(--font-ui); letter-spacing: 0.06em; color: var(--fg-secondary); margin-top: 4px; }
.share-card__count { margin-left: auto; font-size: 14px; color: var(--fg-secondary); }
.share-card__hero { margin-top: auto; font-family: var(--font-display); font-weight: 900; font-stretch: 100%; font-size: 92px; line-height: 0.84; letter-spacing: -0.04em; white-space: nowrap; }
.share-card__bet { margin-top: 14px; display: flex; gap: 10px; align-items: center; font-size: 20px; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; }
.share-card__bet .muted { font-weight: 500; }
.share-card__arrow { color: var(--fg-tertiary); }
.share-card__foot { margin-top: 20px; display: flex; align-items: flex-end; justify-content: space-between; }
.share-card__domain { font: 600 10px/1 var(--font-ui); color: var(--fg-tertiary); letter-spacing: 0.02em; }
.share-card__media { position: relative; }
.share-card__media .media-ph { height: 100%; padding: 12px; font-size: 10px; background: repeating-linear-gradient(135deg, var(--ph-c) 0 10px, var(--ph-d) 10px 20px); }
.share-card__media img { width: 100%; height: 100%; object-fit: cover; }
.share-card__main--hunt { height: 100%; }
.share-card__net { margin-top: auto; display: flex; align-items: flex-end; gap: 14px; }
.share-card__hero--hunt { margin-top: 0; font-size: 110px; line-height: 0.82; letter-spacing: -0.045em; }
.share-card__net-label { font: 700 10.5px/1.3 var(--font-ui); letter-spacing: 0.09em; color: var(--fg-secondary); padding-bottom: 4px; }
.share-card__stats { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line-overlay); display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 32px; align-items: end; }
.share-card__stat { font-size: 19px; font-weight: 700; }
.share-card__stat-label { font-size: 11.5px; color: var(--fg-secondary); margin-top: 2px; }
.share-card__logo { justify-self: end; }

/* Return sheet + keypad */
.return-sheet { padding: 10px 16px 0; }
.sheet-grabber { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line-dashed); margin: 0 auto; }
.return-sheet .label { margin-top: 18px; }
.return-sheet__game { font-size: 20px; font-weight: 700; margin-top: 6px; }
.return-sheet__meta { font-size: 14px; color: var(--fg-secondary); margin-top: 4px; }
.return-sheet .field { margin-top: 24px; }
.return-sheet__calc { display: flex; justify-content: space-between; font-size: 13px; color: var(--fg-secondary); margin-top: 4px; min-height: 20px; }
.return-sheet__actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 24px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; height: 260px; margin: 8px -16px 0; background: var(--line-row); padding-bottom: env(safe-area-inset-bottom); }
.keypad__key { background: var(--bg-key); font-size: 22px; font-weight: 500; color: var(--fg-primary); }
.keypad__key:active { background: var(--bg-chip); }
@media (min-width: 1024px) {
	.dialog--bottom { margin: auto; width: 440px; border-radius: var(--r-dialog); border-width: 1px; }
	.keypad { display: none; }
	.return-sheet { padding: 10px 24px 24px; }
	.sheet-grabber { display: none; }
}

/* Report */
.report { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.report__head { display: flex; align-items: center; justify-content: space-between; }
.report__title { font-size: 18px; font-weight: 700; }
.report__head .icon-btn { margin-right: -10px; }
.report__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }

/* Hunt result (finish step) */
.result { padding: 24px 20px 0; }
.result__net { font-family: var(--font-display); font-weight: 900; font-size: 96px; line-height: 0.85; letter-spacing: -0.05em; margin-top: 24px; }
.result__net-label { font-size: 14px; color: var(--fg-secondary); margin-top: 12px; }
.result__grid { display: grid; grid-template-columns: 1fr 1fr; row-gap: 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-subtle); }
.result__grid div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.result__grid dd { font-size: 22px; font-weight: 700; }
.result__grid dt { font-size: 12.5px; color: var(--fg-secondary); }
.result .field { margin-top: 32px; }
.result__blocked-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-top: 16px; }
.sheet--result .sheet-foot { border-top: 0; }
.dialog .result { padding: 8px 32px 0; }
.dialog .sheet-foot--stack { padding: 24px 32px 28px; }

@media (min-width: 1024px) {
	.sheet-page { min-height: 0; padding: 48px 0 80px; }
	.sheet-page .sheet { width: min(680px, calc(100% - 64px)); margin: 0 auto; background: var(--bg-overlay); border: 1px solid var(--line-overlay); border-radius: var(--r-dialog); flex: none; overflow: hidden; }
	.sheet-page .sheet--narrow { width: 520px; }
	.sheet-page .sheet--create { width: 600px; }
	.sheet-page .sheet--type-win, .sheet-page .sheet--type-found { width: 760px; }
	.sheet-page .sheet-head { padding: 0 12px 0 24px; height: 60px; }
	.sheet-page .sheet-body { padding: 24px; }
	.sheet-page .sheet-foot { position: static; background: transparent; padding: 16px 24px; }
	.sheet-page .share-sheet { padding: 28px 40px 24px; }
	.sheet-page .share-sheet__head { flex-direction: row; align-items: flex-start; }
	.sheet-page .share-sheet__close { margin: -6px -10px 0 auto; }
	.sheet-page .share-sheet__actions { grid-template-columns: auto 1fr; padding: 0; margin-top: 20px; }
	.sheet-page .share-sheet__primary { grid-column: 2; grid-row: 1; }
	.sheet-page .share-sheet__copy { grid-column: 1 !important; grid-row: 1; padding: 0 20px; }
	.sheet-page .type-chooser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 20px 24px 0; }
	.sheet-page .type-card__dot { display: none; }
	.sheet-page .win-form { display: grid; grid-template-columns: 300px 1fr; gap: 28px; }
	.sheet-page .btn--grow-mobile { flex: none; height: 40px; font-size: 14px; }
	.sheet-page .result { padding: 8px 32px 0; }
}

/* ── Join ──────────────────────────────────────────────────────────── */
.join { min-height: 100vh; display: flex; flex-direction: column; }
.join__brand { padding: 0 24px; display: flex; flex-direction: column; }
.join__top { height: 56px; display: flex; align-items: center; justify-content: space-between; margin: 0 -8px 0 -8px; padding: 0 0 0 8px; }
.join__pitch { padding-top: 48px; display: flex; flex-direction: column; gap: 28px; }
.join__headline { font-family: var(--font-display); font-weight: 900; font-stretch: 118%; font-size: 42px; line-height: 0.95; letter-spacing: -0.03em; }
.join__tagline { font-size: 16px; color: var(--fg-secondary); line-height: 1.5; }
.join__form { flex: 1; display: flex; flex-direction: column; padding: 28px 24px 24px; }
.join__card { display: flex; flex-direction: column; gap: 24px; flex: 1; justify-content: flex-end; }
.join__title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.join__sub { font-size: 15px; color: var(--fg-secondary); margin-top: 8px; }
.join__reason { font-size: 14px; font-weight: 600; color: var(--fg-label); line-height: 1.45; }
.join__providers { display: flex; flex-direction: column; gap: 10px; }
.join__providers .btn { gap: 10px; }
.join__email { display: flex; flex-direction: column; gap: 16px; }
.join__legal { font-size: 13px; color: var(--fg-tertiary); line-height: 1.5; text-align: center; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--fg-tertiary); font-size: 13px; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line-chrome); }
.join__og { align-items: center; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line-chrome); font-size: 14px; color: var(--fg-secondary); margin-top: 64px; }
.join__og .badge { font-size: 10.5px; padding: 3px 6px; }
@media (min-width: 1024px) {
	.join { display: grid; grid-template-columns: 1fr 1fr; }
	.join__brand { background: var(--bg-input); padding: 40px 56px; }
	.join__top { height: auto; margin: 0; padding: 0; }
	.join__pitch { margin-top: auto; padding-top: 0; gap: 20px; }
	.join__headline { font-size: 64px; }
	.join__tagline { font-size: 18px; max-width: 400px; }
	.join__form { align-items: center; justify-content: center; padding: 56px; }
	.join__card { width: 380px; flex: none; justify-content: flex-start; }
	.join__providers .btn { height: 48px; font-size: 15px; }
	.join__email .btn { height: 48px; font-size: 15px; }
	.join__legal { text-align: left; }
}

/* ── Prose pages ───────────────────────────────────────────────────── */
.app-page--prose { max-width: var(--feed-max); }
.prose { margin-top: 24px; font-size: 16px; line-height: 1.65; color: var(--fg-body); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; font-size: 22px; font-weight: 750; letter-spacing: -0.01em; color: var(--fg-primary); }
.prose h3 { margin-top: 1.4em; font-size: 17px; font-weight: 700; color: var(--fg-primary); }
.prose ul { padding-left: 1.3em; list-style: disc; }
.prose li::marker { color: var(--fg-tertiary); }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--accent-text); }
.prose a:hover { color: var(--accent-text-hover); }

/* ── Toasts ────────────────────────────────────────────────────────── */
.toast-region { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--fg-primary); color: var(--fg-on-inverse); border-radius: var(--r-media); font-size: 14px; pointer-events: auto; animation: toast-in var(--t-overlay) var(--ease-out); }
.toast__title { font-weight: 650; white-space: nowrap; }
.toast__body { color: var(--fg-muted); }
.toast__action { margin-left: auto; font-weight: 650; color: var(--accent-press); white-space: nowrap; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity var(--t-overlay), transform var(--t-overlay); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body.variant-home .toast-region, body.is-sheet-page .toast-region { bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .toast-region { bottom: 24px; } }

/* ── Dev pill (local only) ─────────────────────────────────────────── */
.dev-pill { position: fixed; left: 12px; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); z-index: 999; font: 600 11px/1.2 var(--font-ui); color: var(--fg-secondary); }
.dev-pill summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: 999px; background: var(--bg-overlay); border: 1px dashed var(--fg-muted); opacity: 0.85; }
.dev-pill summary::-webkit-details-marker { display: none; }
.dev-pill__tag { color: #F5C04D; }
.dev-pill__menu { position: absolute; bottom: calc(100% + 6px); left: 0; min-width: 220px; padding: 6px; background: var(--bg-overlay); border: 1px solid var(--line-overlay); border-radius: var(--r-media); display: flex; flex-direction: column; }
.dev-pill__menu a { padding: 8px 10px; border-radius: 5px; color: var(--fg-primary); font-family: var(--font-ui); font-size: 13px; }
.dev-pill__menu a:hover { background: var(--bg-chip); }
.dev-pill__menu p { padding: 8px 10px 4px; color: var(--fg-tertiary); font-size: 10.5px; line-height: 1.4; }
body.variant-home .dev-pill, body.is-sheet-page .dev-pill, body:has(.join-bar) .dev-pill, body:has(.sticky-foot) .dev-pill { bottom: 96px; }
@media (min-width: 1024px) { .dev-pill, body .dev-pill { bottom: 12px !important; } }

/* ── Mobile menu (<1024) ───────────────────────────────────────────── */
.menu-btn { color: var(--fg-primary); margin-right: -6px; }
@media (min-width: 1024px) { .menu-btn, .drawer { display: none !important; } }
@media (max-width: 359.98px) {
	.app-header { gap: 2px; padding: 0 4px 0 12px; }
	.app-header__actions--guest .btn--ghost { padding: 0 6px; }
	.menu-btn { width: 36px; margin-right: 0; }
	.home-header__actions { gap: 4px; }
}
.drawer {
	position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0;
	width: min(360px, 88vw); max-width: none; height: 100dvh; max-height: none;
	background: var(--bg-overlay); color: var(--fg-primary); border-left: 1px solid var(--line-overlay);
	overflow: hidden auto; overscroll-behavior: contain;
}
.drawer[open] { animation: drawer-in 260ms var(--ease-out); }
.drawer.is-closing { animation: drawer-out 180ms ease-in forwards; }
.drawer::backdrop { background: var(--scrim); animation: fade-in 260ms var(--ease-out); }
.drawer.is-closing::backdrop { animation: fade-out 180ms ease-in forwards; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawer-out { from { transform: none; } to { transform: translateX(100%); } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
.drawer__panel { display: flex; flex-direction: column; min-height: 100%; padding: 0 20px calc(24px + env(safe-area-inset-bottom)); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); margin-right: -8px; }
.drawer__logo { display: inline-flex; }
.drawer__search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; margin-top: 4px; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--bg-input); color: var(--fg-tertiary); transition: border-color var(--t-hover); }
.drawer__search:focus-within { border-color: var(--accent); }
.drawer__search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--fg-primary); }
.drawer__search input::placeholder { color: var(--fg-tertiary); }
.drawer__nav { display: flex; flex-direction: column; margin-top: 12px; }
.drawer__item { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--line-subtle); color: var(--fg-primary); }
.drawer__item .icon { color: var(--fg-tertiary); flex: none; transition: transform var(--t-overlay) var(--ease-out), color var(--t-hover); }
.drawer__item:hover .icon, .drawer__item:focus-visible .icon { transform: translateX(3px); color: var(--fg-primary); }
.drawer__item-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.drawer__item-label { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: 21px; letter-spacing: -0.01em; line-height: 1.15; }
.drawer__item-note { font-size: 13.5px; color: var(--fg-secondary); }
.drawer__item[aria-current] .drawer__item-label { box-shadow: inset 0 -2px 0 var(--accent); align-self: flex-start; }
.drawer__group { display: flex; flex-direction: column; margin-top: 28px; }
.drawer__kicker { font: 700 11px/1.3 var(--font-ui); letter-spacing: 0.11em; text-transform: uppercase; color: var(--fg-tertiary); margin-bottom: 4px; }
.drawer__link { display: flex; align-items: center; min-height: 44px; font-size: 15.5px; font-weight: 600; color: var(--fg-label); }
.drawer__link:hover { color: var(--fg-primary); }
.drawer__foot { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 28px; }
.drawer__cta { height: 50px; font-size: 16px; justify-content: center; gap: 8px; }
.drawer__foot .btn + .btn { margin-top: 6px; }
html.has-drawer { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer[open], .drawer.is-closing, .drawer::backdrop { animation: none !important; } }

/* ── Engine art cards (homepage New on Engine) ─────────────────────── */
.engine-cards { list-style: none; margin: 0; padding: 0; }
.engine-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.engine-card__link { display: flex; flex-direction: column; color: var(--fg-primary); }
.engine-card .engine-art { width: 100%; border-radius: var(--r-media); }
.engine-card__badge { position: absolute; top: 8px; left: 8px; z-index: 3; height: 20px; font-size: 11px; }
.engine-card .engine-card__badge, .engine-card .engine-card__badge.engine-badge--updated { background: rgba(10, 10, 12, 0.86); color: var(--fg-primary); }
.engine-card .engine-card__badge.engine-badge--new { color: var(--accent-text); }
.engine-card__title { display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 800; font-stretch: 106%; font-size: 17px; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; transition: color var(--t-hover); }
.engine-card__by { display: block; margin-top: 3px; font-size: 13px; color: var(--fg-secondary); overflow-wrap: anywhere; }
.engine-card__by a { color: var(--fg-label); font-weight: 600; }
.engine-card__by a:hover { color: var(--fg-primary); }
.engine-card__facts { display: flex; flex-direction: column; gap: 1px; margin-top: 6px; font-size: 12.5px; color: var(--fg-tertiary); }
.engine-card__facts strong { color: var(--fg-label); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Motion: hover, press, reveal, page fade ───────────────────────── */
/* Art lifts by tone and a slight zoom, never by shadow. */
.engine-card__link:hover .art-frame__img, .week-tile:hover .art-frame__img, .home-reel__tile:hover .art-frame__img { transform: scale(1.045); }
.engine-card__link:hover .engine-card__title { color: var(--accent-text); }
.engine-card__link:active, .week-tile:active, .home-reel__tile:active, .home-tool:active { transform: scale(0.985); }
.engine-card__link, .week-tile, .home-reel__tile, .home-tool { transition: transform 160ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn { transition: background-color var(--t-hover), color var(--t-hover), box-shadow var(--t-hover), transform 120ms var(--ease-out); }
/* Sections and cards ease in once as they enter the view (app.js adds
   .reveal-on only when it can observe, so nothing is ever hidden without JS). */
.reveal-on [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(12px); }
.reveal-on [data-reveal] { transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out); }
.reveal-on [data-reveal-stagger] > * { transition: opacity 460ms var(--ease-out), transform 460ms var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
.reveal-on [data-reveal]:not(.is-in) [data-reveal-stagger] > *, .reveal-on [data-reveal-stagger]:not(.is-in) > * { opacity: 0; transform: translateY(12px); }
.reveal-on [data-reveal].is-in [data-reveal-stagger] > *, .reveal-on [data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
/* Page to page: a short cross-fade where the browser supports it. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; animation-timing-function: ease-out; }
@media (prefers-reduced-motion: reduce) {
	.reveal-on [data-reveal], .reveal-on [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
	.engine-card__link:hover .art-frame__img, .week-tile:hover .art-frame__img, .home-reel__tile:hover .art-frame__img { transform: none; }
	@view-transition { navigation: none; }
}

/* ── Motion preferences ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ── Visibility utilities (last, so they win) ──────────────────────── */
.only-desktop, .only-desktop-flex, .only-desktop-inline, .only-desktop-inline-flex, .only-desktop-table { display: none !important; }
@media (min-width: 1024px) {
	.only-desktop { display: block !important; }
	.only-desktop-flex { display: flex !important; }
	.only-desktop-inline { display: inline !important; }
	.only-desktop-inline-flex { display: inline-flex !important; }
	.only-desktop-table { display: table !important; }
	.only-mobile, .only-mobile-flex, .only-mobile-inline, .only-mobile-inline-flex { display: none !important; }
}
@media (max-width: 1023.98px) {
	.only-mobile { display: block !important; }
	.only-mobile-flex { display: flex !important; }
	.only-mobile-inline { display: inline !important; }
	.only-mobile-inline-flex { display: inline-flex !important; }
}
svg.only-desktop { display: none !important; }
@media (min-width: 1024px) { svg.only-desktop { display: block !important; } }

/* Sheet dialog placeholder while the fragment loads */
.sheet-loading { display: flex; flex-direction: column; gap: 14px; padding: 28px; min-height: 320px; animation: shimmer 1.4s ease-in-out infinite; }
.sheet-loading span { display: block; height: 14px; border-radius: 3px; background: var(--bg-chip); }
.sheet-loading span:nth-child(1) { width: 40%; height: 20px; }
.sheet-loading span:nth-child(2) { width: 70%; }
.sheet-loading span:nth-child(3) { height: 160px; border-radius: var(--r-media); background: var(--bg-graphite); }
.dialog--sheet:has(.sheet-loading) { width: 600px; }

/* Dev pill on mobile: a small edge tab that never covers primary actions. */
@media (max-width: 1023.98px) {
	.dev-pill, body .dev-pill { left: auto; right: 0; top: 38%; bottom: auto !important; }
	.dev-pill summary { border-radius: 6px 0 0 6px; padding: 6px 6px; }
	.dev-pill summary .dev-pill__label { display: none; }
	.dev-pill__menu { bottom: auto; top: calc(100% + 6px); left: auto; right: 0; }
}

/* ── Account forms (Phase 2A) ──────────────────────────────────────── */
.input[aria-invalid="true"], .input:has(input[aria-invalid="true"]) { border-color: var(--money-down); box-shadow: none; }
.input[aria-invalid="true"]:focus, .input:has(input[aria-invalid="true"]):focus-within { box-shadow: 0 0 0 3px rgba(242, 100, 92, 0.2); }
.field .field__error { margin-top: -1px; }
.error-inline--form { margin: 0; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
@media (max-width: 1023.98px) {
	.join__email .input--lg, .join__card--step2 .input--lg { height: 52px; font-size: 16px; }
}
@media (min-width: 1024px) {
	.join__email .input--lg, .join__card--step2 .input--lg { height: 48px; font-size: 15px; }
	.join__card--step2 .btn--lg { height: 48px; font-size: 15px; }
}
.input--handle { gap: 0; }
.input--handle input { font-size: 16px; }
.handle-status { flex: none; margin-left: 8px; font-size: 13px; color: var(--fg-tertiary); white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.handle-status.is-ok { color: var(--money-up); }
.handle-status.is-bad { color: var(--money-down); }
.handle-status:empty { display: none; }
.avatar-panel { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--bg-raised); border-radius: var(--r-media); }
.avatar-panel .avatar { font-size: 18px; transition: background-color var(--t-hover); }
.avatar-panel__title { font-size: 14px; font-weight: 700; }
.avatar-panel__body { font-size: 13px; color: var(--fg-secondary); margin-top: 2px; }
.sheet-note--tight { padding-top: 0; margin-top: -8px; font-size: 12.5px; color: var(--fg-tertiary); }

/* Join step 2 (approved "Join mobile step 2") */
.join--step2 .join__form { padding: 0 24px 24px; }
.join__step-bar { height: 56px; align-items: center; justify-content: flex-end; margin: 0 -8px; }
.join__step-count { font: 600 12px var(--font-ui); letter-spacing: 0.02em; color: var(--fg-secondary); }
.join__card--step2 { justify-content: flex-start; gap: 24px; padding-top: 24px; }
.join__card--step2 .join__sub { line-height: 1.5; }
.join__enter { margin-top: auto; }
@media (max-width: 1023.98px) {
	.join--step2 .join__brand-wrap { display: none !important; }
	.join__form .join__card { justify-content: flex-end; }
	.join--step2 .join__card { justify-content: flex-start; }
}
@media (min-width: 1024px) {
	.join__brand-wrap { display: flex; }
	.join__brand-wrap .join__brand { flex: 1; }
	.join--step2 .join__form { padding: 56px; }
	.join__card--step2 { padding-top: 0; }
	.join__enter { margin-top: 8px; }
}

/* ── My Win (Phase 2B) ─────────────────────────────────────────────── */
.btn--danger { color: var(--money-down); }
.btn--danger:hover { color: var(--money-down); background: rgba(242, 100, 92, 0.08); }
.btn--danger-solid { background: var(--money-down); color: var(--fg-on-inverse); }
.btn--danger-solid:hover { background: #F57A73; color: var(--fg-on-inverse); }
.sheet-foot__push { margin-left: auto; }
.dialog--confirm { width: 420px; }
.dialog--confirm .state__body { font-size: 14.5px; }
.dropzone.is-invalid { border-color: var(--money-down); }
.dropzone__preview .media-img { width: 100%; height: 100%; object-fit: cover; }

/* Found Win source card: stands in for media (the original is linked, never copied). */
.source-card {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	height: 100%; padding: 16px; text-align: center;
	background: repeating-linear-gradient(135deg, var(--ph-a) 0 10px, var(--ph-b) 10px 20px);
}
.source-card__platform { font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; color: var(--fg-primary); overflow-wrap: anywhere; }
.source-card__note { font: 650 10.5px/1.3 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-tertiary); }
.source-card__cta { margin-top: 10px; }
.source-card--detail .source-card__platform { font-size: 32px; }
@media (min-width: 1024px) { .source-card--detail .source-card__platform { font-size: 40px; } }
.media-video { background: #000; }
.feed-item__media { position: relative; }
.media-badge { position: absolute; left: 10px; bottom: 10px; padding: 3px 7px; border-radius: var(--r-badge); background: rgba(10, 10, 12, 0.72); color: var(--fg-primary); font: 700 10px/1.2 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; }
.detail-media--video .media-img { object-fit: contain; }
.showcase-found__media .media-img { width: 100%; height: 100%; object-fit: cover; }

/* Found Win source card: stands in for media (the original is linked, never copied). */
.source-card {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	height: 100%; padding: 16px; text-align: center;
	background: repeating-linear-gradient(135deg, var(--ph-a) 0 10px, var(--ph-b) 10px 20px);
}
.source-card__platform { font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; color: var(--fg-primary); overflow-wrap: anywhere; }
.source-card__note { font: 650 10.5px/1.3 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-tertiary); }
.source-card__cta { margin-top: 10px; }
.source-card--detail .source-card__platform { font-size: 32px; }
@media (min-width: 1024px) { .source-card--detail .source-card__platform { font-size: 40px; } }
@media (max-width: 1023.98px) {
	.create__panel--win .sheet-foot .btn--danger { order: 2; }
}

/* Win and Bet wrap together under very large multipliers (10,000x+). */
.win-stats__money { display: flex; align-items: flex-end; gap: 24px; }
@media (min-width: 1024px) { .win-stats__money { gap: 36px; } }

/* ── Engine (official public Engine data) ──────────────────────────── */
.engine-intro { margin-top: 10px; font-size: 15px; color: var(--fg-secondary); }
.engine-crumb { font-size: 13px; color: var(--fg-tertiary); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.engine-crumb a { color: var(--fg-secondary); }
.engine-results { margin: 0 0 12px; font-size: 14px; color: var(--fg-secondary); }
.engine-list, .engine-modes, .engine-pubs, .engine-versions { list-style: none; margin: 0; padding: 0; }
.engine-list__head, .engine-modes__head { display: none; }
.engine-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--line-subtle); }
.engine-row__game { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.engine-row__title { font-size: 16px; font-weight: 700; color: var(--fg-primary); overflow-wrap: anywhere; }
.engine-row__pub { font-size: 13px; color: var(--fg-secondary); overflow-wrap: anywhere; }
.engine-row__when { font-size: 13px; color: var(--fg-secondary); }
.engine-row__cell { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 0; }
.engine-row__k { display: block; font-size: 11.5px; font-weight: 500; color: var(--fg-tertiary); margin-bottom: 2px; }
.engine-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 700; background: var(--accent-tint); color: var(--accent-text); }
.engine-badge--updated { background: var(--bg-chip); color: var(--fg-label); }
.engine-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 20px; }
.engine-pager > :last-child { justify-self: end; }
.engine-pager__n { font-size: 13px; color: var(--fg-secondary); }
.engine-pubs li a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-subtle); color: var(--fg-primary); font-weight: 600; }
.engine-pubs__n { color: var(--fg-secondary); font-weight: 500; white-space: nowrap; }
.engine-source { margin-top: 32px; font-size: 12.5px; line-height: 1.5; color: var(--fg-tertiary); }
.engine-source a { color: var(--fg-secondary); }
.engine-game__head { margin-top: 4px; }
.engine-game__status { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.engine-game__by { margin-top: 8px; font-size: 15px; color: var(--fg-secondary); }
.engine-game__by a { color: var(--fg-primary); font-weight: 600; }
.engine-notice { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-control); background: var(--bg-raised); font-size: 14px; color: var(--fg-label); }
.engine-stats { margin: 20px 0 0; grid-template-columns: repeat(2, 1fr); gap: 14px 0; }
.engine-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.engine-actions form { display: contents; }
.engine-actions .btn { gap: 6px; }
.engine-game__community { margin-top: 14px; font-size: 14px; }
.engine-section { margin-top: 32px; }
.engine-section .label { margin-bottom: 8px; }
.engine-mode { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 14px 0; border-bottom: 1px solid var(--line-subtle); font-size: 14px; font-variant-numeric: tabular-nums; }
.engine-mode > span { min-width: 0; overflow-wrap: anywhere; }
.engine-mode__name { grid-column: 1 / -1; font-weight: 700; font-size: 15px; }
.engine-mode__base { margin-left: 6px; font-size: 11.5px; font-weight: 600; color: var(--fg-tertiary); }
.engine-note { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--fg-tertiary); max-width: 72ch; }
.engine-versions li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid var(--line-subtle); font-size: 14px; }
.engine-versions__v { font-weight: 700; min-width: 40px; }
/* Game Page → Engine: a few published values and the way into the full Engine page. */
.game-engine { margin: 16px var(--gutter) 0; padding: 14px 16px 16px; border: 1px solid var(--line-subtle); border-radius: var(--r-media); background: var(--bg-raised); }
.game-engine__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.game-engine__version { font-size: 12.5px; font-weight: 600; color: var(--fg-tertiary); }
.game-engine__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 12px 0 0; font-variant-numeric: tabular-nums; }
.game-engine__facts dt { order: 2; font-size: 12.5px; color: var(--fg-secondary); }
.game-engine__facts div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.game-engine__facts dd { margin: 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.game-engine__more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.game-engine__note { font-size: 12.5px; color: var(--fg-tertiary); }
@media (min-width: 640px) {
	.game-engine { margin-left: 0; margin-right: 0; }
	.game-engine__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.games-lead { margin: 12px 0 0; font-size: 13.5px; color: var(--fg-secondary); max-width: 72ch; }
.game-tile__engine { font-size: 12.5px; color: var(--fg-secondary); margin-top: 4px; font-weight: 500; font-variant-numeric: tabular-nums; }
.provider-head__engine { margin-top: 8px; font-size: 14px; }
.engine-pubs--featured li a { flex-wrap: wrap; row-gap: 2px; }
.engine-pubs__pick { flex-basis: 100%; font-size: 12.5px; font-weight: 500; color: var(--fg-tertiary); }
@media (min-width: 768px) {
	.engine-list__head { display: grid; padding: 0 0 10px; border-bottom: 1px solid var(--line-subtle); font-size: 12px; color: var(--fg-tertiary); }
	.engine-list__head, .engine-row { grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, 1fr)); gap: 16px; align-items: center; }
	.engine-row__game { grid-column: auto; }
	.engine-row__k { display: none; }
	.engine-modes__head { display: grid; padding: 0 0 10px; border-bottom: 1px solid var(--line-subtle); font-size: 12px; color: var(--fg-tertiary); }
	.engine-modes__head, .engine-mode { grid-template-columns: minmax(0, 1.6fr) repeat(5, minmax(0, 1fr)); gap: 16px; align-items: center; }
	.engine-mode__name { grid-column: auto; }
	.engine-stats { grid-template-columns: repeat(4, 1fr); }
}

/* Engine help terms (<details> popover) and value states (Phase 2J) */
.hint-term { display: inline; }
.hint { position: relative; display: inline-block; vertical-align: middle; margin-left: 1px; }
.hint__btn { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; color: var(--fg-tertiary); cursor: pointer; }
.hint__btn::-webkit-details-marker { display: none; }
.hint__btn:hover, .hint[open] .hint__btn { color: var(--fg-primary); }
.hint__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Help tip (tip()): the same button and bubble, shown on hover, focus or tap. */
.tip { position: relative; display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.tip__btn { width: 22px; height: 22px; margin: -4px 0; }
.tip__body { visibility: hidden; opacity: 0; transition: opacity 120ms var(--ease-out), visibility 0s linear 120ms; text-align: left; pointer-events: none; }
.tip:hover > .tip__body, .tip > .tip__btn:focus-visible + .tip__body, .tip.is-open > .tip__body { visibility: visible; opacity: 1; transition-delay: 0s; pointer-events: auto; }
.tip.is-hidden > .tip__body, .tip.is-hidden > .tip__btn:focus-visible + .tip__body { visibility: hidden; opacity: 0; }
.tip--end > .tip__body { left: auto; right: -8px; }
.tip:hover > .tip__btn, .tip.is-open > .tip__btn { color: var(--fg-primary); }
.field__label .tip { margin-left: 6px; }
@media (prefers-reduced-motion: reduce) { .tip__body { transition: none; } }
.hint__body { position: absolute; top: calc(100% + 4px); left: calc(-8px + var(--hint-shift, 0px)); z-index: 30; width: 260px; max-width: calc(100vw - 32px); padding: 10px 12px; border-radius: var(--r-control); background: var(--bg-overlay); box-shadow: 0 0 0 1px var(--line-overlay), 0 8px 24px rgba(0, 0, 0, 0.45); font: 400 13px/1.45 var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--fg-body); white-space: normal; }
.engine-missing { font-size: 13px; font-weight: 500; color: var(--fg-tertiary); }
.engine-missing--unchecked { font-style: italic; }
.stat-value .engine-missing { font-size: 15px; }
.engine-lead { margin: 0 0 10px; font-size: 14px; color: var(--fg-secondary); }
.engine-modes__head { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 0 0 10px; border-bottom: 1px solid var(--line-subtle); font-size: 12.5px; color: var(--fg-secondary); }
.engine-modes__head > span:first-child { display: none; }
.engine-list__head .hint-term, .engine-modes__head .hint-term { font-weight: 500; }

/* New on Engine: discovery rows */
.engine-discovery { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.engine-disc { padding: 16px 0; border-bottom: 1px solid var(--line-subtle); min-width: 0; }
.engine-disc__when { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.engine-disc__title { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: 22px; letter-spacing: -0.02em; line-height: 1.1; color: var(--fg-primary); overflow-wrap: anywhere; }
.engine-disc__by { margin-top: 4px; font-size: 14px; color: var(--fg-secondary); overflow-wrap: anywhere; }
.engine-disc__by a { color: var(--fg-label); font-weight: 600; }
.engine-disc__facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: 14px; color: var(--fg-secondary); }
.engine-disc__facts strong { color: var(--fg-primary); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
	.engine-modes__head > span:first-child { display: inline-flex; }
	.engine-modes__head { display: grid; font-size: 12px; color: var(--fg-tertiary); }
	.engine-discovery { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
	.engine-disc__title { font-size: 26px; }
}

/* Engine art slot (3:4). Branded fallback until Engine permits game tiles (Phase 2K) */
.engine-art { flex: none; width: 72px; border-radius: 6px; }
.engine-art--xs { width: 30px; border-radius: 4px; }
.engine-art--sm { width: 56px; }
.engine-art--lg { width: 96px; border-radius: 8px; }
.engine-disc { display: flex; gap: 14px; align-items: flex-start; }
.engine-disc__body { min-width: 0; flex: 1; }
.engine-disc__actions { display: flex; gap: 16px; margin-top: 10px; font-size: 13.5px; font-weight: 600; }
.engine-disc__actions a { color: var(--fg-secondary); }
.engine-disc__actions a:hover { color: var(--fg-primary); }
.engine-row__game { flex-direction: row; align-items: center; gap: 10px; }
.engine-row__names { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.engine-game__head { display: flex; gap: 16px; align-items: flex-end; }
.engine-game__heading { min-width: 0; }
.engine-actions--share { margin-top: 20px; }
.engine-actions--join { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-subtle); }
.engine-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.engine-section__all { margin-top: 28px; margin-bottom: 4px; }
.engine-changes { list-style: none; margin: 0; padding: 0; }
.engine-changes li { padding: 10px 0; border-bottom: 1px solid var(--line-subtle); font-size: 14px; overflow-wrap: anywhere; }
.engine-changes li svg { vertical-align: -2px; color: var(--money-up); }
.engine-changes__when { display: inline-block; min-width: 92px; color: var(--fg-tertiary); font-variant-numeric: tabular-nums; }
.engine-rank { list-style: decimal inside; margin: 0; padding: 0; }
.engine-rank li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line-subtle); font-size: 14px; }
.engine-rank li::before { content: counter(list-item) "."; color: var(--fg-tertiary); min-width: 18px; }
.engine-rank { counter-reset: list-item; list-style: none; }
.engine-rank__title { font-weight: 700; color: var(--fg-primary); }
.engine-rank__pub { color: var(--fg-secondary); }
.engine-rank__value { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
/*
 * Compare page: the game header and every data row share one column template
 * (--cmp-cols), so each game sits directly above its own values. Phones: game A,
 * a narrow "vs" column, game B (the metric label spans the row above its values).
 * From 768px: metric label, game A, "vs", game B.
 */
.engine-compare { --cmp-cols: minmax(0, 1fr) 32px minmax(0, 1fr); --cmp-gap: 12px; }
.engine-vs { display: grid; grid-template-columns: var(--cmp-cols); column-gap: var(--cmp-gap); align-items: start; margin-top: 8px; }
.engine-vs > :nth-child(1) { grid-column: 1; }
.engine-vs > :nth-child(2) { grid-column: 2; }
.engine-vs > :nth-child(3) { grid-column: 3; }
.engine-vs__game { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--fg-primary); }
.engine-vs__title { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: 18px; line-height: 1.12; overflow-wrap: break-word; }
.engine-vs__pub { font-size: 13px; color: var(--fg-secondary); overflow-wrap: break-word; }
/* Centred in its own column, level with the middle of the artwork (56px wide, 3:4). */
.engine-vs__vs { display: flex; align-items: center; justify-content: center; height: calc(56px * 4 / 3); font-family: var(--font-display); font-weight: 900; color: var(--fg-tertiary); font-size: 16px; letter-spacing: 0.02em; }
.engine-match { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: var(--r-control); background: var(--accent-tint); color: var(--accent-text); font-size: 14px; font-weight: 600; }
.engine-match svg { flex: none; margin-top: 2px; }
.engine-cmp { margin: 20px 0 0; }
.engine-cmp__row { display: grid; grid-template-columns: var(--cmp-cols); gap: 4px var(--cmp-gap); padding: 12px 0; border-bottom: 1px solid var(--line-subtle); }
.engine-cmp__row dt { grid-column: 1 / -1; font-size: 12.5px; color: var(--fg-secondary); }
.engine-cmp__row dd:nth-of-type(1) { grid-column: 1; }
.engine-cmp__row dd:nth-of-type(2) { grid-column: 3; }
.engine-cmp__row dd { margin: 0; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.share-sheet__tabs { margin-top: 12px; }
@media (min-width: 768px) {
	.engine-art--lg { width: 132px; }
	.engine-game__head { gap: 24px; }
	.engine-compare { --cmp-cols: minmax(0, 1.2fr) minmax(0, 1fr) 48px minmax(0, 1fr); --cmp-gap: 16px; }
	.engine-vs > :nth-child(1) { grid-column: 2; }
	.engine-vs > :nth-child(2) { grid-column: 3; }
	.engine-vs > :nth-child(3) { grid-column: 4; }
	.engine-vs__title { font-size: 26px; }
	.engine-vs__vs { font-size: 18px; }
	.engine-cmp__row { align-items: center; }
	.engine-cmp__row dt { grid-column: 1; font-size: 14px; }
	.engine-cmp__row dd:nth-of-type(1) { grid-column: 2; }
	.engine-cmp__row dd:nth-of-type(2) { grid-column: 4; }
}

/* Games section switcher: Games · Engine · Providers (Phase 2L) */
.games-nav { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 18px; border-radius: 9px; background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line-subtle); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.games-nav::-webkit-scrollbar { display: none; }
.games-nav__link { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--fg-secondary); white-space: nowrap; }
.games-nav__link:hover { color: var(--fg-primary); }
.games-nav__link[aria-current] { background: var(--bg-chip); color: var(--fg-primary); box-shadow: inset 0 0 0 1px var(--line-strong); }
.games-section { margin-top: 40px; }
.games-section--first { margin-top: 20px; }
.games-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.games-section__title { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: 22px; letter-spacing: -0.02em; }
.games-section__more { font-size: 14px; font-weight: 600; color: var(--accent-text); white-space: nowrap; }
.chip-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--bg-chip); color: var(--fg-label); font-size: 14px; font-weight: 600; }
.chip-link:hover { color: var(--fg-primary); }
.x-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--fg-secondary); }
.x-link:hover { color: var(--fg-primary); }
.engine-match { flex-wrap: wrap; align-items: center; }
.engine-match p { flex: 1; min-width: 200px; margin: 0; }
.engine-match .btn { flex: none; }
.engine-source .hint-term { color: var(--fg-secondary); font-weight: 600; }
@media (min-width: 1024px) { .games-section__title { font-size: 26px; } }

/* Join closed (BWM_REGISTRATION_OPEN false, Phase 2M) */
.join__closed { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.join__closed-title { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: 24px; letter-spacing: -0.02em; }
.join__closed-body { font-size: 15px; line-height: 1.5; color: var(--fg-secondary); margin-bottom: 8px; }

/* Branded art fallback (Artwork): BWM's own treatment wherever no permitted
   artwork exists. Initials in the display face on a tint from the name, a
   soft light from the top, and the full name once the slot is wide enough
   to read it. Sized by its own box (container units), so the same markup
   works from a 30px Engine row to a 200px game header. */
.art-fallback { position: relative; display: flex; align-items: center; justify-content: center; container-type: size; overflow: hidden; color: #fff; background: radial-gradient(130% 90% at 20% -10%, oklch(0.55 0.12 var(--art-hue, 270) / 0.55), transparent 62%), linear-gradient(160deg, oklch(0.35 0.075 var(--art-hue, 270)), oklch(0.16 0.03 var(--art-hue, 270))); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.art-fallback__mark { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1; color: rgba(255, 255, 255, 0.86); font-size: 30cqmin; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22); }
.art-fallback__name { display: none; }
@container (min-width: 140px) and (min-height: 110px) {
	.art-fallback__mark { margin-bottom: 12cqh; }
	.art-fallback__name { display: -webkit-box; position: absolute; left: 9cqw; right: 9cqw; bottom: 8cqh; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--font-ui); font-weight: 700; font-size: clamp(10px, 6.4cqmin, 15px); line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase; text-align: center; color: rgba(255, 255, 255, 0.66); }
}
.feed-item__media .art-fallback, .detail-media .art-fallback, .share-card__media .art-fallback { width: 100%; height: 100%; }
/* A win with no screenshot: the game's art in its frame over a blurred copy (win_art()). */
.win-art { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow: hidden; background: var(--bg-chip); isolation: isolate; }
.win-art__fill { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(26px) saturate(1.2) brightness(0.45); transform: translateZ(0); }
.win-art > .art-frame.win-art__frame { height: 84% !important; width: auto; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5); }
.thumb.art-fallback .art-fallback__mark, .thumb .art-fallback__mark { font-size: 36cqmin; }
/* A tile's caption names the game right below its art: no second name. */
.game-tile__art .art-fallback__name { display: none !important; }
.game-tile__art .art-fallback__mark { margin-bottom: 0 !important; }
.engine-art .art-fallback__mark { font-size: 34cqw; }
.art-credit { margin: 6px 0 0; font-size: 11.5px; color: var(--fg-tertiary, rgba(255, 255, 255, 0.5)); }
/*
 * The canonical artwork frame (art_frame()): the frame fixes the shape, the
 * image never does. 'cover' when the art already has the frame's shape,
 * 'contain' over a blurred, dimmed copy of itself otherwise. A hairline
 * edge sits on top of the art.
 */
/* Locked: a context sets the frame's width, never its height or ratio (no square game art). */
.art-frame { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4 !important; height: auto !important; min-height: 0 !important; max-height: none !important; padding: 0 !important; border-radius: var(--r-control); background: var(--bg-chip); isolation: isolate; }
.art-frame::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); pointer-events: none; }
.art-frame > .art-frame__img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border-radius: 0; object-fit: cover; object-position: center; transition: transform 0.35s ease; }
.art-frame[data-fit="contain"] > .art-frame__img { object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45)); }
.art-frame__fill { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(18px) saturate(1.15) brightness(0.42); transform: translateZ(0); }
.art-frame > .art-fallback.art-frame__img { box-shadow: none; }
/* In a frame the fallback gets the depth real art has: a soft sheen from the top, a vignette below. */
.art-frame > .art-fallback::before { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, rgba(255, 255, 255, 0.10), transparent 42%), radial-gradient(100% 55% at 50% 112%, rgba(0, 0, 0, 0.42), transparent 72%); pointer-events: none; }
.game-tile:hover .art-frame > .art-frame__img { transform: scale(1.035); }
.game-tile:hover .art-frame::after { box-shadow: inset 0 0 0 1px var(--accent-ring); }
@media (prefers-reduced-motion: reduce) { .art-frame > .art-frame__img { transition: none; } .game-tile:hover .art-frame > .art-frame__img { transform: none; } }
/* Staging artwork preview (Artwork::preview()): pending art is always labelled. */
 /* A staging preview of pending art looks like any other art: no ring, outline or badge on the image.
   The one notice is the page-level bar (.art-preview-bar, header.php); the image keeps its tooltip. */
.engine-game__art { flex: none; width: min-content; }

.art-preview-bar { margin: 0; padding: 6px 16px; text-align: center; font-size: 12px; font-weight: 600; color: var(--accent-text); background: var(--accent-tint); border-bottom: 1px solid var(--line-subtle); }
.provider-art { display: block; height: 28px; width: auto; max-width: 120px; object-fit: contain; }

/* Rail: link under the New on Engine list. */
.rail__more { display: inline-block; margin-top: 4px; font-size: 13.5px; font-weight: 600; }

/* ── Maxxer Cat ────────────────────────────────────────────────────────
   Part of the background, never an illustration in the content. One large,
   faint figure per page, fixed to the viewport behind everything. Anything
   with its own background (header, panels, posts, game art, sheets) covers
   it, so it only shows through the open page. cat_backdrop() in
   inc/helpers.php picks a pose and a placement per page context. The
   homepage hero has its own, in home.css. Assets: assets/img/cat/README.md. */
.cat { display: block; max-width: none; pointer-events: none; user-select: none; -webkit-user-drag: none; }

/* Pose geometry: where the eyes sit (share of width and height) and the
   width-to-height ratio. Placements aim the eyes, so a phone always keeps
   the face in view while the body runs off the edge. */
.cat--side    { --fx: 0.657; --fy: 0.258; --ar: 0.578; }
.cat--leaning { --fx: 0.659; --fy: 0.184; --ar: 0.380; }
.cat--arms    { --fx: 0.540; --fy: 0.178; --ar: 0.437; }
.cat--seated  { --fx: 0.539; --fy: 0.252; --ar: 0.683; }
.cat--smirk   { --fx: 0.577; --fy: 0.204; --ar: 0.437; }

/* Eyes at (--tx, --ty), figure --h tall, at --o opacity. */
.cat-place, .cat-bg__img {
	position: absolute; width: auto; height: var(--h); opacity: var(--o, 0.08);
	left: calc(var(--tx) - var(--fx) * var(--ar) * var(--h));
	top: calc(var(--ty) - var(--fy) * var(--h));
}

.cat-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cat-bg--desktop { display: none; }

/* The five placements. Phones first (face just inside the edge). */
.cat-bg--right  .cat-bg__img { --h: 90vh; --tx: 84vw; --ty: 34vh; }
.cat-bg--left   .cat-bg__img { --h: 90vh; --tx: 16vw; --ty: 36vh; }
.cat-bg--corner .cat-bg__img { --h: 78vh; --tx: 80vw; --ty: 64vh; }
.cat-bg--face   .cat-bg__img { --h: 100vh; --tx: 93vw; --ty: 32vh; --o: 0.07; }
.cat-bg--full   .cat-bg__img { --h: 86vh; --tx: 72vw; --ty: calc(8vh + var(--fy) * var(--h)); --o: 0.06; }
@media (min-width: 1024px) {
	.cat-bg--desktop { display: block; }
	/* Oversized, in the open margin, cut by the screen edge. */
	.cat-bg--right  .cat-bg__img { --h: min(1350px, 128vh); --tx: 89vw; --ty: 30vh; }
	.cat-bg--left   .cat-bg__img { --h: min(1350px, 128vh); --tx: 10vw; --ty: 30vh; }
	.cat-bg--corner .cat-bg__img { --h: min(1350px, 116vh); --tx: 85vw; --ty: 66vh; }
	.cat-bg--face   .cat-bg__img { --h: min(1350px, 150vh); --tx: 99vw; --ty: 40vh; }
	.cat-bg--full   .cat-bg__img { --h: min(1350px, 92vh); --tx: calc(4vw + var(--fx) * var(--ar) * var(--h)); --ty: calc(5vh + var(--fy) * var(--h)); }
}

/* Log in / Join: the brand block's background. Phones: face at the right
   of the headline. Desktop: the whole panel, cut by its edges. */
.join__brand { position: relative; isolation: isolate; overflow: hidden; }
.join__cat { z-index: -1; --h: 62vh; --tx: 82vw; --ty: 21vh; --o: 0.08; }
.join__cat.cat-place { position: absolute; }
@media (min-width: 1024px) {
	.join__cat { --h: 118%; top: 7%; left: auto; right: -16%; }
}

/* Share card preview: the same faint cat as the PNG card, behind the card. */
.share-card__ghost { z-index: -1; --o: 0.08; }
.share-card--win .share-card__ghost { --h: 450px; --tx: 315px; --ty: 125px; }
.share-card--hunt .share-card__ghost { --h: 490px; --tx: 545px; --ty: 135px; }

/* Stream overlay controls (hunt tracker, /hunts/). The preview sits on a
   checkerboard so the overlay's transparent page reads as transparent. */
.stream-overlay { margin: 32px 0 8px; padding: 20px; border-radius: var(--r-panel); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line-subtle); }
.stream-overlay__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.stream-overlay__title { font-size: 17px; font-weight: 750; letter-spacing: -0.01em; }
.stream-overlay__lead { margin: 0 0 14px; max-width: 560px; font-size: 14.5px; line-height: 1.5; color: var(--fg-secondary); }
.stream-overlay form { display: inline-block; margin: 0; }
.stream-overlay > form { margin-bottom: 12px; }
.stream-overlay__layouts { margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.stream-overlay__layouts .segmented__option span { flex-direction: column; gap: 1px; height: 52px; }
.stream-overlay__layouts small { font-size: 11.5px; font-weight: 500; color: var(--fg-tertiary); }
.stream-overlay__link { display: flex; align-items: center; gap: 8px; }
.stream-overlay__link .input { flex: 1; min-width: 0; height: 40px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--fg-secondary); }
.stream-overlay__preview { position: relative; height: 180px; margin: 14px 0; overflow: hidden; border-radius: var(--r-media); background-color: #18181c; background-image: conic-gradient(#222228 25%, #18181c 0 50%, #222228 0 75%, #18181c 0); background-size: 20px 20px; }
.stream-overlay__preview { transition: height 200ms var(--ease-out); }
/* Frames stack: the shown one (.is-in) stays until the next one has loaded and faded in over it. */
.stream-overlay__preview iframe { position: absolute; top: 0; left: 0; display: block; border: 0; background: transparent; transform-origin: 0 0; opacity: 0; transition: opacity 180ms var(--ease-out); }
.stream-overlay__preview iframe.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	.stream-overlay__preview, .stream-overlay__preview iframe { transition: none; }
}
.stream-overlay__steps { margin: 0 0 8px; padding-left: 20px; list-style: decimal; font-size: 14px; line-height: 1.75; color: var(--fg-body); }
.stream-overlay__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stream-overlay__layouts.segmented { grid-template-columns: repeat(4, 1fr); }
/* Placement: a second choice beside Layout (Standard, Bottom, Sidebar). */
.stream-overlay__places { margin: 0 0 6px; padding: 0; border: 0; min-width: 0; }
.stream-overlay__places.segmented { grid-template-columns: repeat(3, 1fr); max-width: 420px; }
.stream-overlay__places .segmented__option span { height: 40px; font-size: 14.5px; }
.stream-overlay__legend { grid-column: 1 / -1; padding: 0; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-tertiary); }
.stream-overlay__place-hint { margin: 0 0 14px; max-width: 560px; }
/* Which open hunt the overlay shows (several may be open). */
.overlay-hunt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-control); box-shadow: inset 0 0 0 1px var(--line-subtle); }
.overlay-hunt__now { margin: 0; font-size: 14.5px; font-weight: 650; color: var(--fg-primary); }
.overlay-hunt__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-tertiary); }
.stream-overlay form.overlay-hunt__pick { display: flex; gap: 8px; align-items: center; }
.overlay-hunt__pick select.input { height: 36px; width: auto; max-width: 220px; }
.active-hunt__tag { display: inline-flex; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-tint); }
/* Current game: the Companion's report and the member's pick, the one on the overlay marked. */
.overlay-game { margin: 18px 0 4px; padding-top: 16px; border-top: 1px solid var(--line-subtle); }
.overlay-game__title { font-size: 15px; font-weight: 750; }
.overlay-game__sources { display: grid; gap: 8px; margin: 10px 0; }
.overlay-game__source { padding: 10px 12px; border-radius: var(--r-control); box-shadow: inset 0 0 0 1px var(--line-subtle); }
.overlay-game__source.is-shown { box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-tint); }
.overlay-game__source dt { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-tertiary); }
.overlay-game__source dd { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--fg-primary); }
.overlay-game__ago { color: var(--fg-tertiary); font-size: 13px; }
.overlay-game__mode { margin-bottom: 10px; }
.overlay-game__mode:empty { display: none; }
.stream-overlay form.overlay-game__pick { display: flex; flex-direction: column; gap: 8px; }
.overlay-game__row { display: flex; align-items: flex-end; gap: 8px; }
.overlay-game__row > .input, .overlay-game__row select.input { height: 40px; }
.overlay-game__row input[type="search"] { flex: 1; min-width: 0; }
.overlay-game__casino { width: auto; }
.overlay-game__bet { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--fg-secondary); }
.overlay-game__bet .input { width: 120px; height: 40px; }
.overlay-game__bet small { color: var(--fg-tertiary); }
.overlay-game__currency .input { height: 40px; width: auto; }
.overlay-game__results { max-height: 260px; }
.overlay-game__results .casino-pick__option[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--accent); background: var(--bg-chip); }
/* Chat, Promotions and Social links settings (parts/overlay-modules.php): one closed row each. */
.overlay-modules { margin: 18px 0 4px; padding-top: 16px; border-top: 1px solid var(--line-subtle); }
.overlay-modules > .field__hint-block { margin: 4px 0 10px; max-width: 560px; }
.overlay-mod { border-top: 1px solid var(--line-subtle); }
.overlay-mod:last-child { border-bottom: 1px solid var(--line-subtle); }
.overlay-mod > summary { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; list-style: none; cursor: pointer; }
.overlay-mod > summary::-webkit-details-marker { display: none; }
.overlay-mod > summary::after { content: '+'; margin-left: auto; font-size: 18px; line-height: 1; color: var(--fg-tertiary); }
.overlay-mod[open] > summary::after { content: '–'; }
.overlay-mod > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.overlay-mod__name { font-size: 15px; font-weight: 700; color: var(--fg-primary); }
.overlay-mod__state { font-size: 13px; color: var(--fg-tertiary); }
.overlay-mod[open] { padding-bottom: 14px; }
.overlay-mod > .field__hint-block { margin: 0 0 10px; max-width: 560px; }
.stream-overlay form.overlay-mod__form, .stream-overlay form.overlay-card__form { display: flex; flex-direction: column; gap: 10px; }
.overlay-mod__source { margin: 0; padding: 0; border: 0; min-width: 0; max-width: 360px; }
.overlay-mod__source.segmented { grid-template-columns: repeat(2, 1fr); }
.overlay-mod__source .segmented__option span { height: 38px; font-size: 14px; }
.overlay-mod__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.overlay-mod__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; color: var(--fg-secondary); }
.overlay-mod__field small, .overlay-mod__label small { color: var(--fg-tertiary); }
.overlay-mod__field .input { height: 40px; }
.overlay-mod__field--wide { grid-column: 1 / -1; }
.overlay-mod__field--inline { flex-direction: row; align-items: center; gap: 8px; }
.overlay-mod__field--inline select.input { width: auto; height: 36px; }
.overlay-mod > form > .overlay-mod__field:not(.overlay-mod__field--inline) { max-width: 360px; }
.overlay-mod__more summary { width: max-content; font-size: 13px; font-weight: 600; color: var(--fg-label); cursor: pointer; }
.overlay-mod__more[open] summary { margin-bottom: 10px; }
.overlay-mod__save { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.stream-overlay form.overlay-mod__save { display: flex; margin-top: 12px; }
.overlay-mod__move { min-width: 34px; padding: 0 8px; }
.overlay-mod__move:disabled { opacity: 0.35; }

/* Promotion cards: a closed row each with its order arrows, opened to edit. */
.overlay-cards { display: grid; gap: 6px; margin: 0 0 6px; padding: 0; list-style: none; }
.overlay-card { display: flex; align-items: flex-start; gap: 8px; padding: 0 6px 0 12px; border-radius: var(--r-control); box-shadow: inset 0 0 0 1px var(--line-subtle); }
.overlay-card > details { flex: 1; min-width: 0; }
.overlay-card summary { display: flex; align-items: center; gap: 8px; min-height: 44px; list-style: none; cursor: pointer; }
.overlay-card summary::-webkit-details-marker { display: none; }
.overlay-card__title { min-width: 0; font-size: 14.5px; font-weight: 650; color: var(--fg-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overlay-card.is-off .overlay-card__title { color: var(--fg-tertiary); }
.overlay-card details[open], .overlay-card--new[open] { padding-bottom: 12px; }
.overlay-card__order { display: flex; gap: 2px; padding-top: 5px; }
.overlay-card--new { display: block; padding: 0 12px; box-shadow: inset 0 0 0 1px var(--line-subtle); }
.overlay-card--new > summary .overlay-card__title { color: var(--accent-text); }
.overlay-card__logo { display: block; width: auto; max-width: 96px; height: 48px; object-fit: contain; border-radius: 6px; background: #0a0a0c; }
.overlay-card__file { font-size: 13px; color: var(--fg-secondary); max-width: 100%; }
.overlay-card__file::file-selector-button { height: 34px; margin-right: 10px; padding: 0 14px; border: 0; border-radius: var(--r-control); background: var(--bg-chip); color: var(--fg-primary); font: inherit; font-weight: 600; cursor: pointer; }
.overlay-card .overlay-mod__field--wide { align-items: flex-start; }
.overlay-card select.input { width: auto; min-width: 200px; max-width: 100%; }
.stream-overlay form.overlay-card__delete { margin-top: 8px; }

/* Social links: show, platform, handle, order. */
.overlay-socials { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.overlay-social { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
/* One field: the platform's fixed prefix, then the handle (like .input--money). */
.overlay-social__handle { display: flex; align-items: center; min-width: 0; height: 38px; padding: 0 12px; }
.overlay-social__prefix { flex: none; font-size: 13px; color: var(--fg-tertiary); }
.overlay-social__handle input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font: inherit; color: inherit; padding: 0 0 0 1px; box-shadow: none; }
.overlay-social__order { display: flex; gap: 2px; }
@media (max-width: 767px) {
	.overlay-social { grid-template-columns: minmax(0, 1fr) auto; }
	.overlay-social__handle { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 767px) {
	.stream-overlay { margin: 24px 0 8px; padding: 16px; }
	.stream-overlay__link { flex-wrap: wrap; }
	.stream-overlay__link .input { flex-basis: 100%; }
	.stream-overlay__link .btn { flex: 1; }
	.stream-overlay__layouts .segmented__option span { font-size: 14px; }
	.stream-overlay__layouts.segmented { grid-template-columns: repeat(2, 1fr); }
	.overlay-game__row { flex-wrap: wrap; }
	.overlay-game__row .btn { flex: 1 1 100%; }
}

/* Tools (/tools/, /tools/stream-overlay/). Previews are the real overlay
   page with example data, scaled to fit a dark stage (data-frame-fit). */
.app-page--tools .page-sub { max-width: 620px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.tool-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px; border-radius: var(--r-panel); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line-subtle); }
.tool-card__kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.tool-card__title { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: 24px; letter-spacing: -0.02em; line-height: 1.05; }
.tool-card__text { font-size: 15px; line-height: 1.5; color: var(--fg-body); }
.tool-card__points { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--fg-secondary); list-style: disc; }
.tool-card .tool-actions { margin-top: auto; padding-top: 8px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-stage { position: relative; overflow: hidden; width: fit-content; max-width: 100%; border-radius: var(--r-media); padding: 14px; background: radial-gradient(120% 140% at 0% 0%, rgba(109, 74, 255, 0.28), transparent 55%), radial-gradient(120% 120% at 100% 100%, rgba(63, 207, 142, 0.12), transparent 60%), linear-gradient(160deg, #1b1830, #0e0d14); }
.tool-stage iframe { display: block; border: 0; background: transparent; transform-origin: 0 0; pointer-events: none; }
.tool-stage--card { padding: 10px; }
.tool-hero { margin-top: 10px; max-width: 760px; }
.tool-hero .page-title { margin-top: 6px; }
.tool-hero__lead { margin-top: 14px; font-size: 20px; font-weight: 700; color: var(--fg-primary); }
.tool-hero .page-sub { margin-top: 6px; }
.tool-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 20px; padding: 0; list-style: none; }
.tool-facts li { height: 28px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--fg-label); background: var(--bg-chip); }
.tool-section { margin-top: 48px; }
.tool-section__title { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: 24px; letter-spacing: -0.02em; }
.tool-section__note { margin: 8px 0 0; font-size: 14px; color: var(--fg-tertiary); }
.tool-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
/* Placement tabs (Tools → Stream Overlay): Standard, Bottom, Sidebar. */
.tool-tabs { margin-top: 18px; }
.tool-tabs__list { display: inline-flex; gap: 4px; max-width: 100%; padding: 4px; overflow-x: auto; border-radius: 999px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-subtle); }
.tool-tabs__tab { flex: none; height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font: 600 14.5px/1 var(--font-ui); color: var(--fg-secondary); white-space: nowrap; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease; }
.tool-tabs__tab:hover { color: var(--fg-primary); }
.tool-tabs__tab[aria-selected="true"] { background: rgba(109, 74, 255, 0.16); box-shadow: inset 0 0 0 1px var(--accent); color: var(--fg-primary); }
.tool-tabs__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-tabs__panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 6px; }
.tool-tabs__panel:not([hidden]) { animation: tool-tab-in 0.18s var(--ease-out); }
.tool-tabs__intro { margin: 16px 0 0; max-width: 640px; font-size: 14.5px; line-height: 1.5; color: var(--fg-secondary); }
@keyframes tool-tab-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.tool-tabs__panel:not([hidden]) { animation: none; }
	.tool-tabs__tab { transition: none; }
}
.tool-layout__name { font-size: 18px; font-weight: 750; }
.tool-layout__size { margin-top: 2px; font-size: 13px; color: var(--fg-tertiary); font-variant-numeric: tabular-nums; }
.tool-layout__desc { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--fg-secondary); }
/* Stream backgrounds (Tools → Stream Backgrounds): one color for three cards. The actions sit at the bottom of equal cards, so a longer line never moves them. */
.tool-gallery { margin-top: 24px; }
.tool-color { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.tool-color__swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-swatch { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); cursor: pointer; }
.tool-swatch[aria-pressed="true"] { outline: 2px solid var(--fg-primary); outline-offset: 2px; }
.tool-swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-color__custom { display: flex; align-items: center; gap: 8px; }
.tool-color__pick { width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r-control); background: none; cursor: pointer; }
.tool-color__pick::-webkit-color-swatch-wrapper { padding: 0; }
.tool-color__pick::-webkit-color-swatch { border: 1px solid var(--line-strong); border-radius: var(--r-control); }
.tool-color__pick::-moz-color-swatch { border: 1px solid var(--line-strong); border-radius: var(--r-control); }
.tool-color__pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-color__hex { width: 104px; height: 40px; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.tool-backs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.tool-back { min-width: 0; display: flex; flex-direction: column; }
.tool-back .tool-layout__name { margin-top: 12px; }
.tool-back .tool-layout__desc { margin-top: 2px; }
.tool-back .tool-actions { margin-top: auto; padding-top: 12px; }
.tool-back .tool-actions .btn { flex: 1 1 0; white-space: nowrap; }
.tool-back .tool-actions .btn:first-child { flex-basis: 100%; }
.btn.is-locked { position: relative; gap: 6px; color: var(--fg-secondary); }
.btn.is-locked:not(:focus-visible) { box-shadow: inset 0 0 0 1px var(--line-subtle); }
.btn.is-locked:hover { color: var(--fg-primary); }
.btn.is-locked::after {
	content: attr(data-lock); content: attr(data-lock) / "";
	position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
	padding: 6px 9px; border-radius: 6px; background: var(--bg-overlay); box-shadow: inset 0 0 0 1px var(--line-strong);
	font: 600 12.5px/1 var(--font-ui); color: var(--fg-primary); opacity: 0; pointer-events: none; transition: opacity var(--t-hover);
}
.btn.is-locked:focus-visible::after { opacity: 1; }
@media (hover: hover) {
	.btn.is-locked:hover::after { opacity: 1; }
}
.tool-back .tool-layout__size { margin-top: 8px; }
.tool-stage--back { width: 100%; aspect-ratio: 16 / 9; padding: 0; background: var(--bg-base); container-type: inline-size; contain: paint; }
/* How to use: setup and specs, closed by default. */
.tool-how { margin-top: 32px; border-top: 1px solid var(--line-subtle); border-bottom: 1px solid var(--line-subtle); }
.tool-how summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; list-style: none; font-size: 15px; font-weight: 650; color: var(--fg-label); cursor: pointer; }
.tool-how summary::-webkit-details-marker { display: none; }
.tool-how summary::after { content: '+'; font-size: 18px; font-weight: 500; line-height: 1; color: var(--fg-tertiary); }
.tool-how[open] summary::after { content: '–'; }
.tool-how summary:hover { color: var(--fg-primary); }
.tool-how summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-how > :last-child { margin-bottom: 16px; }
.tool-how .tool-steps { margin-top: 0; }
/* Stream Overlay: one still of a full layout (no live previews). */
.tool-sizes { width: 100%; max-width: 560px; margin-top: 16px; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tool-sizes th, .tool-sizes td { padding: 6px 12px 6px 0; border-top: 1px solid var(--line-subtle); text-align: left; font-weight: 400; color: var(--fg-secondary); }
.tool-sizes thead th { border-top: 0; color: var(--fg-tertiary); }
.tool-sizes tbody th { font-weight: 600; color: var(--fg-label); }
.tool-back-how { margin: 0; }
.tool-back-how > div:first-child { border-top: 0; padding-top: 0; }
.tool-back-how > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-subtle); font-size: 14.5px; line-height: 1.5; }
.tool-back-how dt { font-weight: 700; color: var(--fg-primary); }
.tool-back-how dd { margin: 0; color: var(--fg-secondary); }
.tool-cross { margin-top: 16px; font-size: 14px; color: var(--fg-secondary); }
.tool-hero .tool-actions { margin-top: 18px; }
.tool-steps { margin: 16px 0 0; padding-left: 22px; list-style: decimal; font-size: 15px; line-height: 1.7; color: var(--fg-body); }
.tool-steps strong { color: var(--fg-primary); }
.tool-section .tool-actions { margin-top: 20px; }
@media (max-width: 767px) {
	.tool-grid { grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
	.tool-card { padding: 18px; }
	.tool-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.tool-stage { padding: 10px; }
	.tool-stage--back { padding: 0; }
	.tool-backs { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.tool-section { margin-top: 36px; }
	.tool-actions .btn { flex: 1 1 auto; }
}

/* ── Random Slot Picker ───────────────────────────────────────────── */
.picker { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: stretch; margin-top: 28px; }
.picker-form { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: var(--r-panel); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line-subtle); }
.picker-field { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; }
.picker-field select { width: 100%; }
.picker-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.picker-sources span { font-size: 14px; }
.picker-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.picker-pool { margin: 0; font-size: 13.5px; color: var(--fg-tertiary); font-variant-numeric: tabular-nums; }
.picker.is-empty .picker-pool { color: var(--money-down); }
.picker-roll { width: 100%; font-family: var(--font-display); font-weight: 900; font-stretch: 112%; letter-spacing: 0.06em; text-transform: uppercase; }
.picker-roll:disabled, .picker [data-picker-roll]:disabled { opacity: 0.55; cursor: default; }

.picker-stage { min-width: 0; min-height: 300px; display: flex; border-radius: var(--r-panel); background: radial-gradient(120% 140% at 0% 0%, rgba(109, 74, 255, 0.22), transparent 55%), radial-gradient(120% 120% at 100% 100%, rgba(63, 207, 142, 0.08), transparent 60%), var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line-subtle); }
.picker-stage > * { flex: 1; min-width: 0; }
.picker-empty, .picker-reel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px 20px; text-align: center; }
.picker-empty__title { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: 22px; letter-spacing: -0.02em; color: var(--fg-primary); }
.picker-empty__text { font-size: 14.5px; color: var(--fg-secondary); }
.picker-reel__kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.picker-reel__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: clamp(24px, 4vw, 36px); letter-spacing: -0.02em; color: var(--fg-secondary); }
.picker-reel__name.is-final { color: var(--fg-primary); animation: picker-land 220ms ease-out; }
@keyframes picker-land { from { transform: scale(0.94); opacity: 0.6; } to { transform: none; opacity: 1; } }

.picker-result { display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; grid-template-areas: "art head" "art facts" "art actions" "art share"; column-gap: 22px; padding: 22px; animation: picker-in 240ms ease-out; }
@keyframes picker-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.picker-result__art { grid-area: art; align-self: start; width: 150px; aspect-ratio: 3 / 4; border-radius: var(--r-media); overflow: hidden; background: var(--bg-chip); }
.picker-result__art > .art-frame { width: 100%; border-radius: 0; }
.picker-result__head { grid-area: head; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.picker-result__kicker { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.picker-result__chip { height: 20px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; font-size: 10.5px; letter-spacing: 0.06em; color: var(--fg-label); background: var(--bg-chip); }
.picker-result__title { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.02em; line-height: 1.04; overflow-wrap: anywhere; outline: none; }
.picker-result__by { font-size: 15px; color: var(--fg-secondary); }
/* A casino pick: which casino, and what its catalogue says about where it plays. */
.picker-casinos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.picker-result__casino { font-size: 14px; font-weight: 650; color: var(--fg-primary); }
.picker-result__casino-label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-tertiary); }
.picker-result__region { font-size: 13px; line-height: 1.45; color: var(--fg-tertiary); }
.picker-facts { grid-area: facts; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 10px 0 0; padding: 0; list-style: none; }
.picker-facts li { display: flex; flex-direction: column; }
.picker-facts__value { font-size: 18px; font-weight: 750; color: var(--fg-primary); font-variant-numeric: tabular-nums; }
.picker-facts__label { font-size: 12px; color: var(--fg-tertiary); }
.picker-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.picker-actions form { display: contents; }
.picker-share { grid-area: share; display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 13.5px; }
.picker-share button { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.picker.is-rolling .picker-result { opacity: 0.4; }
.picker-how { max-width: 760px; margin-top: 12px; }

/* Game Provider: searchable list (slot-picker.js). The field looks like the other selects. */
.picker-provider { position: relative; }
.picker-provider__field {
	width: 100%; height: 48px; display: flex; align-items: center; padding: 0 36px 0 16px;
	border: 1px solid var(--line-strong); border-radius: var(--r-control);
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23A7A5AE' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
	color: var(--fg-label); font-size: 14px; text-align: left; cursor: pointer; transition: border-color var(--t-hover);
}
.picker-provider__field:hover { border-color: var(--line-dashed); }
.picker-provider__field:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.picker-provider.is-open .picker-provider__field { border-color: var(--accent); }
.picker-provider__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-provider__panel {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
	display: flex; flex-direction: column; max-height: var(--pp-max, 380px); overflow: hidden;
	background: var(--bg-overlay); border: 1px solid var(--line-overlay); border-radius: var(--r-media);
	box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.75);
	animation: pop var(--t-overlay) var(--ease-out);
}
.picker-provider__panel[hidden] { display: none; }
.picker-provider__panel.is-up { top: auto; bottom: calc(100% + 6px); }
.picker-provider__search { flex: none; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-bottom: 1px solid var(--line-overlay); color: var(--fg-tertiary); }
.picker-provider__search:focus-within { color: var(--fg-secondary); }
.picker-provider__search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; outline: none; box-shadow: none; color: var(--fg-primary); font-size: 16px; }
.picker-provider__search input::placeholder { color: var(--fg-tertiary); }
.picker-provider__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 6px; list-style: none; }
.picker-provider__option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 8px 10px; border-radius: 5px; font-size: 14px; color: var(--fg-primary); cursor: pointer; }
.picker-provider__option > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-provider__option.is-active { background: var(--bg-chip); }
.picker-provider__option[aria-selected="true"] { color: var(--accent-text); font-weight: 650; }
.picker-provider__count { flex: none; font-size: 12px; color: var(--fg-tertiary); font-variant-numeric: tabular-nums; }
.picker-provider__note { flex: none; margin: 0; padding: 8px 12px 10px; border-top: 1px solid var(--line-overlay); font-size: 12px; line-height: 1.4; color: var(--fg-tertiary); }
.picker-provider__note:empty { display: none; }

/* Idle stage: one branded card floating over two faint ones. Transform and opacity only. */
.picker-idle { gap: 6px; padding: 40px 20px 36px; }
.picker-idle__deck { position: relative; width: 144px; aspect-ratio: 3 / 4; margin-bottom: 30px; }
.picker-idle__card { position: absolute; inset: 0; border-radius: 12px; }
.picker-idle__card--left { opacity: 0.3; transform: translateX(-36%) rotate(-11deg) scale(0.84); animation: picker-drift-l 9s ease-in-out infinite; }
.picker-idle__card--right { opacity: 0.26; transform: translateX(36%) rotate(11deg) scale(0.84); animation: picker-drift-r 9s ease-in-out infinite; }
.picker-idle__card--front { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 22px 44px -16px rgba(0, 0, 0, 0.7), 0 0 36px -6px rgba(109, 74, 255, 0.35); animation: picker-float 6s ease-in-out infinite; }
.picker-idle__card--front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.13) 50%, transparent 62%); transform: translateX(-130%); animation: picker-shimmer 7s ease-in-out 1.5s infinite; }
.picker-idle__glow { position: absolute; left: 12%; right: 12%; bottom: -24px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(109, 74, 255, 0.5), transparent); filter: blur(6px); animation: picker-glow 6s ease-in-out infinite; }
.picker-idle__deck, .picker-idle > p { transition: opacity 170ms ease-in, transform 170ms ease-in; }
.picker-idle.is-leaving .picker-idle__deck, .picker-idle.is-leaving > p { opacity: 0; transform: translateY(-6px) scale(0.97); }
@keyframes picker-float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-9px) rotate(0.5deg); } }
@keyframes picker-glow { 0%, 100% { opacity: 0.9; transform: scaleX(1); } 50% { opacity: 0.5; transform: scaleX(0.8); } }
@keyframes picker-drift-l { 0%, 100% { transform: translateX(-36%) rotate(-11deg) scale(0.84); } 50% { transform: translateX(-39%) translateY(3px) rotate(-13deg) scale(0.84); } }
@keyframes picker-drift-r { 0%, 100% { transform: translateX(36%) rotate(11deg) scale(0.84); } 50% { transform: translateX(39%) translateY(3px) rotate(13deg) scale(0.84); } }
@keyframes picker-shimmer { 0% { transform: translateX(-130%); } 28%, 100% { transform: translateX(130%); } }

@media (max-width: 899px) {
	.picker { grid-template-columns: minmax(0, 1fr); align-items: start; }
	/* A result (shared link or a roll) comes first, the filters follow. */
	.picker:has(.picker-result) .picker-stage { order: -1; }
	.picker-row { grid-template-columns: minmax(0, 1fr) minmax(0, 140px); }
}
@media (max-width: 767px) {
	.picker { margin-top: 20px; gap: 14px; }
	.picker-form { padding: 16px; gap: 14px; }
	.picker-stage { min-height: 220px; }
	.picker-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	/* On phones the provider list opens in the page under the field: nothing floats under the keyboard. */
	.picker-provider__panel { position: static; margin-top: 6px; max-height: min(52vh, 400px); animation: none; }
	.picker-idle { padding: 32px 16px 28px; }
	.picker-idle__deck { width: 140px; margin-bottom: 26px; }
	.picker-result { grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "art head" "facts facts" "actions actions" "share share"; column-gap: 14px; padding: 16px; }
	.picker-result__art { width: 88px; }
	.picker-result__kicker { flex-wrap: wrap; row-gap: 4px; }
	.picker-facts { margin-top: 14px; }
	.picker-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.picker-actions .btn { width: 100%; padding-inline: 10px; }
	.picker-actions__again { grid-column: 1 / -1; }
	/* A last button alone on its row takes the full width. */
	.picker-actions > .btn:last-child:nth-child(even), .picker-actions > form:last-child:nth-child(even) .btn { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
	.picker-result, .picker-reel__name.is-final, .picker-provider__panel, .picker-idle__card, .picker-idle__card::after, .picker-idle__glow { animation: none; }
}

/* ── Maxxer Stats, Level preview and History (profile) ────────────── */
.maxxer-stats__counts { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 12px; }
.maxxer-stats__counts .stat-label { line-height: 1.3; }
.maxxer-level { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.maxxer-level__chip { align-self: flex-start; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: 13px; letter-spacing: 0.06em; color: var(--fg-primary); background: var(--accent-tint); box-shadow: inset 0 0 0 1px rgba(168, 147, 255, 0.35); }
.maxxer-level__bar { display: block; width: 100%; max-width: 180px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.maxxer-level__bar > span { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.maxxer-level .stat-label { margin-top: 0; }
.maxxer-level__how { grid-column: 1 / -1; padding: 14px 0 0; font-size: 14px; color: var(--fg-secondary); }
.maxxer-level__how summary { cursor: pointer; font-weight: 600; color: var(--fg-label); }
.maxxer-level__how summary:hover { color: var(--fg-primary); }
.maxxer-level__how p { margin: 10px 0 0; line-height: 1.5; max-width: 640px; }
.maxxer-level__rules { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; max-width: 640px; }
.maxxer-level__rules li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 8px 0; border-top: 1px solid var(--line-subtle); }
.maxxer-level__rules li > span:first-child { color: var(--fg-body); }
.maxxer-level__rule-meta { grid-column: 1; font-size: 12.5px; color: var(--fg-tertiary); }
.maxxer-level__mine { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-variant-numeric: tabular-nums; color: var(--fg-label); font-weight: 600; }
.maxxer-level__foot { font-size: 12.5px; color: var(--fg-tertiary); }
.maxxer-stats__note { grid-column: 1 / -1; margin: 0; padding: 12px 0 0; font-size: 13px; color: var(--fg-secondary); }
.maxxer-stats__only { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-right: 6px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-label); background: var(--bg-chip); }
@media (min-width: 1024px) {
	.maxxer-stats { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
	.maxxer-stats__counts { order: -1; grid-template-columns: repeat(4, auto); gap: 32px; }
	.maxxer-stats__highlights { grid-template-columns: repeat(auto-fit, minmax(160px, auto)); justify-content: start; }
}

.maxxer-history { padding: 8px var(--gutter) 40px; }
.maxxer-history__intro { margin: 8px 0 16px; font-size: 14px; color: var(--fg-secondary); }
.maxxer-history__list { margin: 0; padding: 0; list-style: none; }
.maxxer-history__day { margin-top: 18px; padding-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-tertiary); border-bottom: 1px solid var(--line-subtle); }
.maxxer-history__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line-faint); font-size: 14.5px; }
.maxxer-history__time { font-size: 12.5px; color: var(--fg-tertiary); font-variant-numeric: tabular-nums; }
.maxxer-history__text { min-width: 0; color: var(--fg-body); overflow-wrap: anywhere; }
a.maxxer-history__text:hover { color: var(--fg-primary); }
.maxxer-history__private { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-tertiary); }
.maxxer-history__more { margin-top: 16px; }
@media (min-width: 640px) { .maxxer-history { padding-left: 0; padding-right: 0; } }
.maxxer-level__group { display: flex; justify-content: space-between; gap: 16px; max-width: 640px; margin: 16px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-label); }
.maxxer-level__group + .maxxer-level__rules { margin-top: 6px; }
.maxxer-level__rules li.is-zero > span { color: var(--fg-tertiary); }
.maxxer-level__groups .maxxer-level__rule-meta { font-size: 13px; color: var(--fg-secondary); line-height: 1.45; }

/* ── Kick: connection controls (/account/kick/), notice (/kick/), profile line ── */
.kick-page { max-width: 720px; }
.kick-panel { margin: 24px 0 0; padding: 20px; border-radius: var(--r-panel); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line-subtle); }
.kick-panel--quiet { background: transparent; }
.kick-panel__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.kick-panel__head .status-label--inline { margin: 0; }
.kick-panel__title { font-size: 17px; font-weight: 750; letter-spacing: -0.01em; }
.kick-panel__lead { margin: 6px 0 14px; max-width: 560px; font-size: 14.5px; line-height: 1.5; color: var(--fg-secondary); }
.kick-panel__note { margin: 12px 0; max-width: 560px; font-size: 13.5px; line-height: 1.5; color: var(--fg-tertiary); }
.kick-panel__actions { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-subtle); }
.kick-panel form { margin: 0; }
.kick-list { margin: 0 0 12px; padding-left: 20px; list-style: disc; font-size: 14.5px; line-height: 1.6; color: var(--fg-body); }
.kick-list li::marker { color: var(--fg-tertiary); }
.kick-list code, .kick-command code { font-family: var(--font-ui); font-size: 14px; font-weight: 800; color: var(--fg-primary); }
.kick-alert { margin: 24px 0 0; padding: 12px 14px; border-radius: var(--r-control); background: var(--accent-tint); font-size: 14px; color: var(--fg-body); }
.kick-channel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 4px 0 0; font-size: 15px; font-weight: 650; }
.kick-channel a { color: var(--fg-primary); }
.kick-channel a:hover { color: var(--accent-text-hover); }
.kick-channel__title { font-size: 13.5px; font-weight: 500; color: var(--fg-secondary); }
.kick-commands { margin: 4px 0 8px; padding: 0; border: 0; min-width: 0; }
.kick-commands .field__label { margin-bottom: 8px; }
.kick-command { display: flex; align-items: flex-start; padding: 6px 0; line-height: 1.45; }
.kick-command .checkbox__box { flex: none; margin-top: 1px; }
.kick-command__until { display: block; margin-top: 2px; font-size: 12.5px; color: var(--accent-badge); }
.kick-live { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(242, 100, 92, 0.12); font: 800 11px/1 var(--font-ui); letter-spacing: 0.08em; color: #FF8A84; }
.kick-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--money-down); }
.kick-live--link:hover { background: rgba(242, 100, 92, 0.2); color: #FFB0AB; }
.profile-kick { margin: 10px 0 0; }
.profile-kick__link { font-size: 13px; font-weight: 600; color: var(--fg-secondary); }
.profile-kick__link:hover { color: var(--fg-primary); }
.kick-text { margin: 10px 0 0; max-width: 640px; font-size: 15px; line-height: 1.6; color: var(--fg-body); }
.kick-page .kick-list { margin-top: 12px; }
.kick-kept { margin: 12px 0 0; }
.kick-kept__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-subtle); }
.kick-kept dt { font-size: 14.5px; font-weight: 650; color: var(--fg-primary); }
.kick-kept dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fg-secondary); }
.connection__off { color: var(--fg-tertiary); }
.connection__actions { margin-top: 14px; }
.connection .kick-panel__lead { margin-bottom: 0; }
.overlay-kick { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line-subtle); font-size: 13px; line-height: 1.5; color: var(--fg-secondary); }
.overlay-kick__part + .overlay-kick__part::before { content: "\00a0\00a0·\00a0 "; font-weight: 400; color: var(--fg-tertiary); }
.overlay-kick__link { font-weight: 650; color: var(--accent-text); }
.overlay-kick__link:hover { color: var(--accent-text-hover); }
.sheet-link { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px; border-radius: var(--r-control); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14.5px; font-weight: 600; color: var(--fg-primary); }
.sheet-link:hover { box-shadow: inset 0 0 0 1px var(--fg-muted); }
.sheet-link__state { font-size: 13px; font-weight: 500; color: var(--fg-tertiary); }
@media (max-width: 767px) {
	.kick-panel { padding: 16px; }
	.kick-kept__row { grid-template-columns: 1fr; gap: 4px; }
}

/* Analytics consent (Site\Analytics). Shown only when GA is configured and no
   choice is stored. Accept and Decline look the same: neither is the default. */
.consent[hidden] { display: none; }
.consent {
	position: fixed; z-index: 40; left: 16px; right: 16px;
	bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom));
	display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; align-items: center;
	padding: 16px 44px 16px 16px; max-width: 640px; margin: 0 auto;
	background: var(--bg-overlay); border: 1px solid var(--line-overlay); border-radius: 12px;
}
body.variant-home .consent, body.is-sheet-page .consent, body.no-tabbar .consent { bottom: calc(16px + env(safe-area-inset-bottom)); }
/* While the cookie choice is open, full-screen sheets (share, create) keep
   their bottom actions clear of it: app.js measures the box into
   --consent-space and sets --consent-on. Neither covers the other. */
body.is-sheet-page .sheet-page { padding-bottom: calc(var(--consent-space, 0px) + var(--consent-on, 0) * env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { body.is-sheet-page .sheet-page { padding-bottom: max(80px, var(--consent-space, 0px)); } }
.consent__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fg-body); }
.consent__text a { color: var(--fg-secondary); text-decoration: underline; margin-left: 4px; }
.consent__text [data-consent-state] { display: block; color: var(--fg-secondary); }
.consent__text [data-consent-state][hidden] { display: none; }
.consent__actions { display: flex; gap: 8px; }
.consent__close { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--fg-secondary); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px; }
.consent__close:hover { color: var(--fg-primary); background: #17171B; }
@media (max-width: 639px) {
	.consent { grid-template-columns: 1fr; }
	.consent__actions .btn { flex: 1; }
}
@media (min-width: 1024px) { .consent { bottom: 24px; } }

/* Casino game picker in Add bonus (hunt-tracker.js): the hunt's casino catalogue, 24 at a time. */
.casino-pick { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.casino-pick[hidden], .casino-picked[hidden] { display: none; }
.casino-pick__studio select { width: 100%; height: 40px; }
.casino-pick__list { list-style: none; margin: 0; padding: 4px; max-height: min(320px, 42vh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--bg-input); }
.casino-pick__list:empty { display: none; }
.casino-pick__option { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 8px; border-radius: 5px; cursor: pointer; }
.casino-pick__option:hover, .casino-pick__option.is-active { background: var(--bg-chip); }
.casino-pick__option[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--accent); }
/* Slot art in the pickers: the site's portrait frame (.art-frame, 3:4) at
   36×48. A 3:4 cover fills it; a square casino image is shown whole over a
   blurred copy of itself (.art-frame__fill). The tile has the same size. */
.casino-pick__art, .casino-picked__art > * { flex: none; width: 36px !important; border-radius: 5px; }
.casino-pick__art.art-fallback, .casino-picked__art > .art-fallback { height: 48px; }
.art-frame[data-fit="cover"] > .art-frame__fill { display: none; }
.casino-pick__art.art-fallback .art-fallback__mark, .casino-picked__art .art-fallback__mark { font-size: 36cqmin; }
.casino-pick__text { display: flex; flex-direction: column; min-width: 0; }
.casino-pick__title { font-size: 14.5px; font-weight: 700; color: var(--fg-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.casino-pick__meta { font-size: 12.5px; color: var(--fg-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.casino-pick__note { font-size: 13px; color: var(--fg-secondary); line-height: 1.5; }
.casino-pick__more { align-self: center; }
.casino-picked { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 8px 12px 8px 8px; border: 1px solid var(--line-strong); border-radius: var(--r-control); }
.casino-picked__art { display: flex; }
.casino-picked__main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.casino-picked__title { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.casino-picked__meta { font-size: 12.5px; color: var(--fg-tertiary); }
.casino-picked .text-btn { padding: 10px 0 10px 8px; }
.add-bonus.is-casino [data-game-input] { padding-left: 12px; }


/* Companion pairing (/account/companion/) */
.companion-code { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: 0.08em; color: var(--fg-primary); font-variant-numeric: tabular-nums; }
.companion-actions { display: flex; gap: 10px; }
.companion-row dd .text-btn { display: block; padding: 6px 0 0; }

/* Tracker: the hunt's starting balance, under the stats. */
.tracker-balance { margin: 10px 0 0; font-size: 13px; color: var(--fg-secondary); font-variant-numeric: tabular-nums; }
.tracker-balance .is-check { color: var(--warning, #F2C14E); }
/* A balance hunt shows six figures on desktop; a value that isn't known is a short note, not a figure. */
@media (min-width: 900px) {
	.tracker-stats--balance { grid-template-columns: repeat(6, 1fr); gap: 20px; }
}
.casino-pick__note--listing { padding: 8px 10px; border-radius: var(--r-control); background: var(--accent-tint); color: var(--fg-primary); }
.casino-pick__note--listing[hidden] { display: none; }
