/* ══════════════════════════════════════════════════════════════════════════
   WE88 EXPRESS — the real-operator app skin.
   Graphite-navy canvas, flat panels, hairline dividers, ONE bright gold CTA.
   Dense and utilitarian: small Inter type (Thai in Noto Sans Thai), 12–13px
   uppercase bar labels, an 8-column game grid with 4px gaps, no editorial
   flourish, no hero, no decorative shadows anywhere.

   Layered on top of theme.json; only READS var(--we88-*).
   All plugin-widget overrides carry !important on every property that must
   win — the plugin injects its CSS at runtime AFTER this stylesheet.
   ══════════════════════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	background-color: var(--wp--preset--color--background, #0e1420);
	color: var(--we88-text, #e8ecf4);
}

::selection { background: var(--we88-accent, #f5c518); color: #141414; }

* { scrollbar-width: thin; scrollbar-color: var(--we88-border-strong, #33415c) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--we88-border-strong, #33415c); border-radius: 4px; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: none;
	box-shadow: var(--we88-focus-ring, 0 0 0 2px rgba(245,197,24,0.45));
	border-radius: 4px;
}

/* WP's root block-gap puts a margin between the header part and <main>;
   the app chrome must sit flush over the content. */
.wp-site-blocks > main { margin-block-start: 0; }

/* Small utilitarian headings everywhere — no display voice in this theme. */
h1.wp-block-heading, h2.wp-block-heading, h3.wp-block-heading {
	font-family: var(--we88-font, 'Inter', 'Noto Sans Thai', sans-serif);
	font-weight: 700;
	letter-spacing: 0;
}
.wp-block-heading { color: var(--we88-text, #e8ecf4); }

/* Uppercase micro-labels (used on the member dashboard panels). */
.we88-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-family: var(--we88-font, 'Inter', 'Noto Sans Thai', sans-serif) !important;
	font-weight: 700;
	font-size: 0.6875rem !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0;
}
.we88-kicker::before {
	content: "";
	width: 3px; height: 12px;
	background: var(--we88-accent, #f5c518);
	display: inline-block;
	border-radius: 1px;
}

/* ══ CHROME — ultra-slim top bar (~44px) + product tab strip (~38px) ══════ */
header.wp-block-group.we88-chrome {
	background: var(--we88-navy, #0a0f18) !important;
	border-bottom: 1px solid var(--we88-border, #26324a) !important;
	box-shadow: none !important;
	z-index: 90;
}

.we88-topbar {
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	border-bottom: 1px solid var(--we88-border, #26324a);
}

/* Compact logomark: flat gold square + tight wordmark + product tag. */
.we88-logo { display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none !important; }
.we88-logo-mark {
	display: grid; place-items: center;
	width: 24px; height: 24px; border-radius: 4px;
	background: var(--we88-accent, #f5c518);
	color: var(--we88-accent-contrast, #141414);
	font-family: var(--we88-font, 'Inter', sans-serif);
	font-weight: 800; font-size: 0.85rem; line-height: 1;
}
.we88-logo-text {
	font-family: var(--we88-font, 'Inter', 'Noto Sans Thai', sans-serif);
	font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em;
	color: var(--we88-text, #e8ecf4); line-height: 1;
}
.we88-logo-text b { color: var(--we88-accent, #f5c518); font-weight: 800; }
.we88-logo-tag {
	font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
	color: var(--we88-text-muted, #8b96ab);
	border-left: 1px solid var(--we88-border, #26324a);
	padding-left: 0.45rem; line-height: 1;
}

/* Top-bar buttons: small rectangles, 28px tall, 12px labels. */
header.we88-chrome .wp-block-button .wp-block-button__link {
	padding: 0 0.75rem !important;
	height: 28px;
	display: inline-flex; align-items: center;
	font-size: 0.75rem !important;
	font-weight: 700;
	line-height: 1 !important;
	border-radius: var(--we88-radius, 6px) !important;
	box-shadow: none !important;
	white-space: nowrap;
}
header.we88-chrome .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--we88-accent, #f5c518) !important;
	color: var(--we88-accent-contrast, #141414) !important;
	border: 1px solid var(--we88-accent, #f5c518) !important;
	transition: background 0.14s ease, border-color 0.14s ease;
}
header.we88-chrome .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: var(--we88-accent-hover, #ffd94a) !important;
	border-color: var(--we88-accent-hover, #ffd94a) !important;
}
header.we88-chrome .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--we88-text, #e8ecf4) !important;
	border: 1px solid var(--we88-border-strong, #33415c) !important;
	transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}
header.we88-chrome .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--we88-accent, #f5c518) !important;
	color: var(--we88-accent, #f5c518) !important;
	background: var(--wp--preset--color--gold-wash, rgba(245,197,24,0.09)) !important;
}

/* Theme toggle: small flat square. */
.we88-theme-toggle {
	display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto;
	border-radius: var(--we88-radius, 6px);
	background: transparent; border: 1px solid var(--we88-border, #26324a);
	color: var(--we88-text-muted, #8b96ab); cursor: pointer;
	transition: border-color 0.14s ease, color 0.14s ease;
}
.we88-theme-toggle:hover { border-color: var(--we88-accent, #f5c518); color: var(--we88-accent, #f5c518); }
.we88-theme-toggle .we88-ic-sun { display: none; }
html[data-theme="light"] .we88-theme-toggle .we88-ic-moon { display: none; }
html[data-theme="light"] .we88-theme-toggle .we88-ic-sun { display: block; }

/* Product tab strip: dense uppercase tabs, active = gold underline. */
.we88-tabs {
	width: 100%;
	box-sizing: border-box;
	background: var(--we88-navy, #0a0f18);
	padding: 0 1rem;
	overflow-x: auto;
	scrollbar-width: none;
}
.we88-tabs::-webkit-scrollbar { display: none; }
.we88-tabs-track {
	display: flex; align-items: stretch; gap: 0.25rem;
	max-width: 1440px; margin: 0 auto;
	min-height: 38px;
}
.we88-tab {
	display: inline-flex; align-items: center;
	padding: 0 0.85rem;
	font-size: 0.75rem; font-weight: 700;
	letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--we88-text-muted, #8b96ab) !important;
	text-decoration: none !important;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	transition: color 0.14s ease, border-color 0.14s ease;
}
.we88-tab:hover { color: var(--we88-text, #e8ecf4) !important; }
.we88-tab.is-active {
	color: var(--we88-accent, #f5c518) !important;
	border-bottom-color: var(--we88-accent, #f5c518);
}

/* Anchor jumps must clear the sticky chrome (44 + 38 + hairlines). */
main.wp-block-group > .wp-block-group,
main.wp-block-group > .wp-block-columns { scroll-margin-top: 96px; }

/* ══ SECTION TITLE BARS — thin, 16px title + right-aligned hint ═══════════ */
.we88-secbar {
	display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
	width: 100%;
	box-sizing: border-box;
	border-bottom: 1px solid var(--we88-border, #26324a);
	padding: 0.35rem 0 0.45rem;
	margin-bottom: 0.6rem;
}
.we88-secbar-title {
	margin: 0;
	font-family: var(--we88-font, 'Inter', 'Noto Sans Thai', sans-serif);
	font-size: 1rem; font-weight: 700; letter-spacing: 0;
	color: var(--we88-text, #e8ecf4);
	display: inline-flex; align-items: center; gap: 0.5rem;
}
.we88-secbar-title::before {
	content: "";
	width: 3px; height: 14px; border-radius: 1px;
	background: var(--we88-accent, #f5c518);
	display: inline-block;
}
.we88-secbar-hint {
	font-size: 0.6875rem; font-weight: 600;
	letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--we88-text-muted, #8b96ab);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ══ BANNER STRIP — wide but short, scroll-snap carousel feel ═════════════ */
.we88-banner-strip .we88-banners-widget { width: 100%; }
.we88-banner-strip .we88-banners-list {
	display: flex !important;
	flex-direction: row !important;
	gap: 8px !important;
	overflow-x: auto !important;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.we88-banner-strip .we88-banners-list::-webkit-scrollbar { display: none; }
.we88-banner-strip .we88-banner {
	flex: 0 0 100% !important;
	width: 100% !important;
	scroll-snap-align: center;
	margin: 0 !important;
	border: 1px solid var(--we88-border, #26324a) !important;
	border-radius: var(--we88-radius, 6px) !important;
	overflow: hidden !important;
	box-shadow: none !important;
	background: var(--we88-surface, #18202f) !important;
}
.we88-banner-strip .we88-banner-link, .we88-banner-strip .we88-banner-picture { display: block; width: 100%; }
.we88-banner-strip .we88-banner-image {
	display: block;
	width: 100% !important;
	height: auto !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
.we88-banner-strip .we88-banner-skeleton { max-height: 230px !important; border-radius: var(--we88-radius, 6px) !important; }
.we88-banners-empty, .we88-banners-error { display: none !important; }

/* ══ ANNOUNCEMENTS — one compact ticker line: [ประกาศ] message … [×] ══════ */
.we88-announce-bar .we88-announcements-list { display: block !important; }
.we88-announce-bar .we88-announcement-card {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 0.6rem !important;
	width: 100%;
	box-sizing: border-box;
	background: var(--we88-navy-soft, var(--wp--preset--color--navy-soft, #121926)) !important;
	border: 1px solid var(--we88-border, #26324a) !important;
	border-radius: var(--we88-radius-sm, 4px) !important;
	box-shadow: none !important;
	padding: 0.3rem 0.6rem !important;
	min-height: 32px;
}
.we88-announce-bar .we88-announcement-card::before {
	content: "ประกาศ";
	flex: 0 0 auto;
	font-family: var(--we88-font, 'Inter', 'Noto Sans Thai', sans-serif);
	font-size: 0.625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--we88-accent-contrast, #141414);
	background: var(--we88-accent, #f5c518);
	padding: 0.14rem 0.45rem; border-radius: 3px;
	line-height: 1.3;
}
.we88-announce-bar .we88-announcement-header { display: contents !important; }
.we88-announce-bar .we88-announcement-title {
	flex: 0 0 auto;
	margin: 0 !important;
	font-size: 0.75rem !important; font-weight: 700 !important;
	color: var(--we88-text, #e8ecf4) !important;
	white-space: nowrap;
}
.we88-announce-bar .we88-announcement-type { display: none !important; }
.we88-announce-bar .we88-announcement-message {
	flex: 1 1 auto; min-width: 0;
	margin: 0 !important;
	font-size: 0.75rem !important; font-weight: 500 !important;
	color: var(--we88-text-muted, #8b96ab) !important;
	white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
}
.we88-announce-bar .we88-announcement-footer { flex: 0 0 auto; margin: 0 !important; order: 3; }
.we88-announcement-dismiss {
	display: grid !important; place-items: center;
	width: 20px; height: 20px; border-radius: 3px;
	border: 1px solid var(--we88-border, #26324a) !important;
	background: transparent !important; color: var(--we88-text-muted, #8b96ab) !important;
	cursor: pointer; line-height: 1; padding: 0 !important; font-size: 0.75rem;
	transition: color 0.14s ease, border-color 0.14s ease;
}
.we88-announcement-dismiss:hover { color: var(--we88-accent, #f5c518) !important; border-color: var(--we88-accent, #f5c518) !important; }
.we88-announcements-empty, .we88-announcements-error { display: none !important; }

/* ══ GAMES TOOLBAR — the widget's filters as one compact 32px row ═════════ */
.we88-games-filters {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 0.35rem !important;
	margin-bottom: 0.5rem !important;
}
.we88-games-filter, .we88-games-search {
	box-sizing: border-box;
	height: 32px !important;
	padding: 0 0.7rem !important;
	background: var(--we88-surface, #18202f) !important;
	color: var(--we88-text, #e8ecf4) !important;
	border: 1px solid var(--we88-border, #26324a) !important;
	border-radius: var(--we88-radius-sm, 4px) !important;
	font-family: var(--we88-font, 'Inter', 'Noto Sans Thai', sans-serif) !important;
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	line-height: 30px !important;
	box-shadow: none !important;
	transition: border-color 0.14s ease;
}
.we88-games-filter {
	-webkit-appearance: none; appearance: none;
	padding-right: 1.9rem !important;
	cursor: pointer;
	/* CSS-drawn chevron (two gradient triangles) — no external assets. */
	background-image:
		linear-gradient(45deg, transparent 50%, var(--we88-text-muted, #8b96ab) 50%),
		linear-gradient(135deg, var(--we88-text-muted, #8b96ab) 50%, transparent 50%) !important;
	background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50% !important;
	background-size: 5px 5px, 5px 5px !important;
	background-repeat: no-repeat !important;
}
.we88-games-search { flex: 1 1 180px !important; min-width: 140px; }
.we88-games-filter:hover, .we88-games-search:hover { border-color: var(--we88-border-strong, #33415c) !important; }
.we88-games-filter:focus, .we88-games-search:focus {
	outline: none;
	border-color: var(--we88-accent, #f5c518) !important;
	box-shadow: var(--we88-focus-ring, 0 0 0 2px rgba(245,197,24,0.45)) !important;
}
.we88-games-search::placeholder { color: var(--we88-text-muted, #8b96ab); }

/* ══ GAME GRID — dense tiles, 4px gaps, slim 30px title bar ═══════════════ */
.we88-games-grid {
	display: grid !important;
	grid-template-columns: repeat(var(--we88-game-cols, 8), minmax(0, 1fr)) !important;
	gap: 4px !important;
	align-items: stretch;
}
.we88-game-card {
	display: flex; flex-direction: column;
	background: var(--we88-surface, #18202f) !important;
	border: 1px solid var(--we88-border, #26324a) !important;
	border-radius: var(--we88-radius-sm, 4px) !important;
	box-shadow: none !important;
	overflow: hidden;
	transition: border-color 0.14s ease, filter 0.14s ease;
}
/* Hover = 1px gold border + slight brightness. No lift, no shadow, no zoom. */
.we88-game-card:hover {
	transform: none !important;
	box-shadow: none !important;
	border-color: var(--we88-accent, #f5c518) !important;
	filter: brightness(1.08);
}
/* Never force a ratio — each vendor ships different art shapes. */
.we88-game-image {
	height: auto !important;
	background-color: var(--we88-navy, #0a0f18) !important;
	border-radius: 0 !important;
	transition: none;
}
.we88-game-image--placeholder { aspect-ratio: 146 / 189 !important; }
.we88-game-card:hover .we88-game-image { transform: none !important; }

/* Slim title bar under the art: ~30px, 13px name, provider tucked under. */
.we88-game-body {
	display: flex; flex-direction: column; flex: 1 1 auto;
	/* one quiet rhythm: 7px frame, name, 6px, button */
	padding: 0.4375rem !important;
	gap: 0 !important;
}
.we88-game-name {
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	margin: 0 !important;
	color: var(--we88-text, #e8ecf4) !important;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.we88-game-provider {
	font-size: 0.625rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--we88-text-muted, #8b96ab) !important;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.we88-game-actions { margin-top: auto; padding-top: 0.375rem; display: flex; gap: 0.25rem; }

/* Corner badges: tiny flat rectangles. */
.we88-game-card .we88-game-badge {
	position: absolute; top: 4px; right: 4px; z-index: 3; margin: 0;
	font-size: 0.5625rem !important; font-weight: 700 !important;
	letter-spacing: 0.06em; text-transform: uppercase;
	padding: 0.1rem 0.3rem !important;
	border-radius: 3px !important;
	box-shadow: none !important;
}
.we88-game-card .we88-game-badge--hot ~ .we88-game-badge--new { top: 24px; }
.we88-game-badge--hot { background: var(--we88-danger, #f0554a) !important; color: #ffffff !important; }
.we88-game-badge--new { background: var(--we88-info, #5b9dff) !important; color: #0a0f18 !important; }

/* ══ COMPACT BUTTONS — 28px tall, 12px labels, ONE gold voice ═════════════ */
.we88-btn,
.we88-btn-play,
.we88-btn-primary,
.we88-promo-cta {
	box-sizing: border-box;
	height: 28px !important;
	min-height: 28px !important;
	padding: 0 0.7rem !important;
	display: inline-flex !important; align-items: center; justify-content: center;
	background: var(--we88-accent, #f5c518) !important;
	color: var(--we88-accent-contrast, #141414) !important;
	border: 1px solid var(--we88-accent, #f5c518) !important;
	border-radius: var(--we88-radius-sm, 4px) !important;
	font-family: var(--we88-font, 'Inter', 'Noto Sans Thai', sans-serif) !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: 0.02em;
	box-shadow: none !important;
	cursor: pointer;
	transition: background 0.14s ease, border-color 0.14s ease;
}
.we88-btn:hover:not(:disabled),
.we88-btn-play:hover,
.we88-btn-primary:hover,
.we88-promo-cta:hover {
	background: var(--we88-accent-hover, #ffd94a) !important;
	border-color: var(--we88-accent-hover, #ffd94a) !important;
	color: var(--we88-accent-contrast, #141414) !important;
	transform: none !important;
	box-shadow: none !important;
}
.we88-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Secondary voices stay quiet: outline chips. */
.we88-btn-demo, .we88-btn-logout {
	background: transparent !important;
	color: var(--we88-text-muted, #8b96ab) !important;
	border: 1px solid var(--we88-border, #26324a) !important;
}
.we88-btn-demo:hover, .we88-btn-logout:hover {
	background: var(--we88-surface-hover, #243146) !important;
	color: var(--we88-text, #e8ecf4) !important;
	border-color: var(--we88-border-strong, #33415c) !important;
}
.we88-games-pagination { gap: 0.35rem !important; margin-top: 0.6rem !important; }
.we88-games-page-info { font-size: 0.75rem !important; color: var(--we88-text-muted, #8b96ab) !important; }
.we88-btn-load-more { width: 100% !important; height: 32px !important; }

/* ══ PROMOTIONS — a 5-up row of compact flat cards ════════════════════════ */
.we88-promotions-list {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	gap: 8px !important;
	align-items: stretch;
}
.we88-promotions-list > .we88-promo-card,
.we88-promotions-list > .we88-skeleton-card {
	display: flex; flex-direction: column;
	background: var(--we88-surface, #18202f) !important;
	border: 1px solid var(--we88-border, #26324a) !important;
	border-radius: var(--we88-radius-sm, 4px) !important;
	box-shadow: none !important;
	padding: 0 !important;
	overflow: hidden;
	transition: border-color 0.14s ease, filter 0.14s ease;
}
.we88-promotions-list > .we88-promo-card:hover {
	transform: none !important;
	box-shadow: none !important;
	border-color: var(--we88-accent, #f5c518) !important;
	filter: brightness(1.06);
}
.we88-promo-card .we88-promo-image {
	border-radius: 0 !important;
	height: auto !important;
	width: 100% !important;
	margin: 0 !important;
}
.we88-promo-card .we88-promo-header { margin: 0 !important; }
.we88-promo-card .we88-promo-body {
	display: flex; flex-direction: column; flex: 1 1 auto;
	padding: 0.5rem 0.6rem 0.6rem !important;
	gap: 0.25rem !important;
}
.we88-promo-card .we88-promo-title {
	font-family: var(--we88-font, 'Inter', 'Noto Sans Thai', sans-serif) !important;
	font-size: 0.8125rem !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	margin: 0 !important;
	color: var(--we88-text, #e8ecf4) !important;
	display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden;
}
.we88-promo-card .we88-promo-description {
	font-size: 0.6875rem !important;
	line-height: 1.45 !important;
	margin: 0 !important;
	color: var(--we88-text-muted, #8b96ab) !important;
	display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical;
	overflow: hidden;
}
/* A fake "PRIZE" bar look: hairline-topped footer strip carrying the CTA. */
.we88-promo-card .we88-promo-footer {
	margin-top: auto !important;
	padding: 0.4rem 0.6rem 0.6rem !important;
	border-top: 1px solid var(--we88-border, #26324a) !important;
	display: flex !important; align-items: center; justify-content: space-between; gap: 0.4rem;
}
.we88-promo-card .we88-promo-expiry { font-size: 0.625rem !important; color: var(--we88-text-muted, #8b96ab) !important; }
.we88-promo-card .we88-promo-badge {
	font-size: 0.5625rem !important; font-weight: 700 !important;
	text-transform: uppercase; letter-spacing: 0.06em;
	background: var(--we88-accent, #f5c518) !important;
	color: var(--we88-accent-contrast, #141414) !important;
	border-radius: 3px !important; padding: 0.1rem 0.3rem !important;
	box-shadow: none !important;
}
.we88-promotions-empty, .we88-promotions-error { font-size: 0.75rem; color: var(--we88-text-muted, #8b96ab); }

/* ══ PROVIDER BAND — muted small-caps text logos on a darker strip ════════ */
.we88-provider-band { border-top: 1px solid var(--we88-border, #26324a); border-bottom: 1px solid var(--we88-border, #26324a); }
.we88-providers {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
	gap: 0.4rem 1.6rem;
	width: 100%;
	box-sizing: border-box;
}
.we88-providers span {
	font-family: var(--we88-font, 'Inter', sans-serif);
	font-size: 0.6875rem; font-weight: 700;
	letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--we88-text-muted, #8b96ab);
	white-space: nowrap;
	transition: color 0.14s ease;
}
.we88-providers span:hover { color: var(--we88-text, #e8ecf4); }

/* ══ FOOTER — dense operator floor: 12px, hairline-separated ══════════════ */
footer.wp-block-group {
	background: var(--we88-navy, #0a0f18) !important;
	border-top: 1px solid var(--we88-border, #26324a) !important;
	color: var(--we88-text-muted, #8b96ab) !important;
	box-shadow: none !important;
	font-size: 0.75rem;
}
footer.wp-block-group :where(p, li, .wp-block-navigation-item__content) { color: var(--we88-text-muted, #8b96ab) !important; font-size: 0.75rem; }
footer.wp-block-group :where(h1,h2,h3,h4,h5,h6) { color: var(--we88-text, #e8ecf4) !important; }
footer .wp-block-navigation .wp-block-navigation-item__content { transition: color 0.14s ease; }
footer .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--we88-accent, #f5c518) !important; }
footer .wp-block-separator { border-color: var(--we88-border, #26324a) !important; opacity: 1; }

footer .we88-footer-head {
	font-family: var(--we88-font, 'Inter', 'Noto Sans Thai', sans-serif) !important;
	font-weight: 700 !important;
	letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--we88-text-muted, #8b96ab) !important;
	margin-bottom: 0.5rem;
}

/* Support row: 24/7 line with a live dot. */
.we88-footer-support {
	display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
	width: 100%;
	box-sizing: border-box;
	background: var(--we88-navy-soft, var(--wp--preset--color--navy-soft, #121926));
	border: 1px solid var(--we88-border, #26324a);
	border-radius: var(--we88-radius-sm, 4px);
	padding: 0.5rem 0.75rem;
	font-size: 0.75rem; font-weight: 600;
	color: var(--we88-text, #e8ecf4);
}
.we88-footer-support-dot {
	width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
	background: var(--we88-success, #34d17b);
}
.we88-footer-support-link {
	margin-left: auto;
	color: var(--we88-accent, #f5c518) !important;
	font-weight: 700; text-decoration: none !important;
	font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.we88-footer-support-link:hover { color: var(--we88-accent-hover, #ffd94a) !important; }

/* Payment + licence row and the bottom line. */
.we88-footer-pay { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; width: 100%; box-sizing: border-box; }
.we88-footer-pay-label {
	font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--we88-text-muted, #8b96ab);
}
.we88-footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem; width: 100%; box-sizing: border-box; }
.we88-footer-copy { color: var(--we88-text-muted, #8b96ab); font-size: 0.6875rem; }
.we88-footer-badges { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.we88-footer-badges b {
	font-size: 0.625rem; font-weight: 700; letter-spacing: 0.04em;
	color: var(--we88-text-muted, #8b96ab);
	border: 1px solid var(--we88-border, #26324a);
	border-radius: 3px; padding: 0.14rem 0.45rem;
}
.we88-footer-badges .we88-badge-18 {
	color: var(--we88-accent-contrast, #141414);
	background: var(--we88-accent, #f5c518);
	border-color: var(--we88-accent, #f5c518);
}

/* ══ PANELS — flat surface cards (member dashboard, generic groups) ═══════ */
.wp-block-group.has-surface-background-color,
.wp-block-group.has-background-raised-background-color {
	background: var(--we88-surface, #18202f) !important;
	border: 1px solid var(--we88-border, #26324a) !important;
	border-radius: var(--we88-radius, 6px) !important;
	box-shadow: none !important;
}
/* The auth widgets are NOT cards of their own — they sit flat in the modal. */
.we88-login-form, .we88-register-form, .we88-forgot-form,
.we88-login-form::before, .we88-register-form::before {
	background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; content: none;
}

/* ══ POPUP MENU — flat dark panel, compact ════════════════════════════════ */
.we88-popup-panel {
	background: var(--we88-surface, #18202f) !important;
	border: 1px solid var(--we88-border-strong, #33415c) !important;
	border-radius: var(--we88-radius, 6px) !important;
	box-shadow: none !important;
}
.we88-popup-panel-title { font-size: 0.8125rem !important; font-weight: 700 !important; color: var(--we88-text, #e8ecf4) !important; }
.we88-popup-link-btn { font-size: 0.75rem !important; border-radius: var(--we88-radius-sm, 4px) !important; }
.we88-fab-btn {
	background: var(--we88-accent, #f5c518) !important;
	color: var(--we88-accent-contrast, #141414) !important;
	box-shadow: none !important;
	border: 1px solid var(--we88-accent, #f5c518) !important;
}
.we88-fab-btn:hover { background: var(--we88-accent-hover, #ffd94a) !important; border-color: var(--we88-accent-hover, #ffd94a) !important; }

/* ══ LOGIN MODAL — CSS-only :target popup, flat dark panel ════════════════ */
.we88-modal { display: none; }
.we88-modal:target {
	display: flex; position: fixed; inset: 0; z-index: 99999;
	align-items: flex-start; justify-content: center;
	padding: 6vh 1rem 1rem;
	box-sizing: border-box;
}
.we88-modal, .we88-modal:target { max-width: none !important; }
.we88-modal-backdrop {
	position: fixed; inset: 0; width: 100% !important; max-width: none !important; margin: 0 !important;
	background: rgba(5, 8, 14, 0.78);
}
.we88-modal-card {
	position: relative; z-index: 1; width: 100%; max-width: 380px;
	max-height: 88vh; overflow: auto;
	box-sizing: border-box;
	background: var(--we88-surface, #18202f) !important;
	border: 1px solid var(--we88-border-strong, #33415c) !important;
	border-radius: var(--we88-radius, 6px) !important;
	padding: 1.25rem !important;
	box-shadow: none !important;
	animation: we88-modal-in 0.16s ease-out both;
}
.we88-modal-close {
	position: absolute; top: 0.5rem; right: 0.75rem; z-index: 2;
	font-size: 1.35rem; line-height: 1; color: var(--we88-text-muted, #8b96ab);
	text-decoration: none !important;
}
.we88-modal-close:hover { color: var(--we88-accent, #f5c518); }
@keyframes we88-modal-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* Auth form inside the modal — flat, dark inputs, gold focus, small type. */
.we88-modal-card .we88-form-title, .we88-modal-card h2 {
	color: var(--we88-text, #e8ecf4) !important; margin-top: 0;
	font-family: var(--we88-font, 'Inter', 'Noto Sans Thai', sans-serif);
	font-size: 1.125rem !important; font-weight: 700;
}
.we88-modal-card label { color: var(--we88-text-muted, #8b96ab) !important; font-size: 0.75rem !important; font-weight: 600; }
.we88-modal-card input, .we88-modal-card select, .we88-modal-card textarea {
	box-sizing: border-box;
	background: var(--we88-navy, #0a0f18) !important;
	border: 1px solid var(--we88-border, #26324a) !important;
	color: var(--we88-text, #e8ecf4) !important;
	border-radius: var(--we88-radius-sm, 4px) !important;
	font-size: 0.8125rem !important;
	box-shadow: none !important;
}
.we88-modal-card input:focus, .we88-modal-card select:focus {
	border-color: var(--we88-accent, #f5c518) !important;
	box-shadow: var(--we88-focus-ring, 0 0 0 2px rgba(245,197,24,0.45)) !important; outline: none;
}
.we88-modal-card .we88-link-btn { color: var(--we88-accent, #f5c518) !important; background: none !important; border: 0 !important; cursor: pointer; font-size: 0.75rem !important; }
.we88-modal-card .we88-btn-primary { width: 100% !important; height: 34px !important; font-size: 0.8125rem !important; }
.we88-modal-card .we88-field-error { font-size: 0.6875rem !important; color: var(--we88-danger, #f0554a) !important; }
.we88-modal-card .we88-field-hint { font-size: 0.6875rem !important; color: var(--we88-text-muted, #8b96ab) !important; }

/* ══ GENERIC WIDGET CHROME + SKELETONS ════════════════════════════════════ */
.we88-widget { color: var(--we88-text, #e8ecf4); }
.we88-widget-title, .we88-section-title {
	font-family: var(--we88-font, 'Inter', 'Noto Sans Thai', sans-serif) !important;
	font-size: 0.9375rem !important; font-weight: 700 !important;
	color: var(--we88-text, #e8ecf4) !important;
}
.we88-skeleton-line, .we88-game-skeleton-img, .we88-banner-skeleton {
	background: linear-gradient(90deg, #131a28, #1c2536, #131a28) !important;
}
.we88-game-skeleton {
	background: var(--we88-surface, #18202f) !important;
	border: 1px solid var(--we88-border, #26324a) !important;
	border-radius: var(--we88-radius-sm, 4px) !important;
	box-shadow: none !important;
}
.we88-loading, .we88-loading-inline { color: var(--we88-text-muted, #8b96ab); font-size: 0.75rem; }
.we88-error-message, .we88-games-error-message { font-size: 0.75rem; }

/* ══ LIGHT MODE — a light-grey operator app, same gold ════════════════════
   Toggled via html[data-theme="light"]; re-point the tokens and flip the
   chrome. Gold CTAs stay #f5c518 (dark label keeps contrast); gold used AS
   TEXT deepens for readability on white. */
html[data-theme="light"] {
	--we88-surface: #ffffff; --we88-surface-raised: #f7f9fc; --we88-surface-hover: #eef1f6;
	--we88-glass: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
	--we88-text: #16202e; --we88-text-muted: #64708a;
	--we88-border: #d9e0ec; --we88-border-strong: #c3ccdc;
	--we88-navy: #ffffff;
	--we88-accent: #f5c518; --we88-accent-hover: #ffd94a; --we88-accent-contrast: #141414;
	--we88-gold-metal: linear-gradient(180deg, #f5c518 0%, #f5c518 100%);
	--we88-gold-metal-hi: linear-gradient(180deg, #ffd94a 0%, #ffd94a 100%);
	--we88-shadow-soft: none; --we88-shadow-lifted: none; --we88-edge-light: none;
	--we88-shadow: none; --we88-shadow-lg: none;
	--we88-focus-ring: 0 0 0 2px rgba(160, 127, 6, 0.35);
	--wp--preset--color--background: #eef1f6; --wp--preset--color--surface: #ffffff;
	--wp--preset--color--background-raised: #ffffff; --wp--preset--color--surface-hover: #eef1f6;
	--wp--preset--color--text: #16202e; --wp--preset--color--text-secondary: #45526a; --wp--preset--color--text-muted: #64708a;
	--wp--preset--color--border: #d9e0ec; --wp--preset--color--border-strong: #c3ccdc;
	--wp--preset--color--navy: #ffffff; --wp--preset--color--navy-soft: #f4f6fa;
	--wp--preset--color--gold: #a07f06; --wp--preset--color--gold-soft: #86690a;
	--wp--preset--color--gold-dim: #86690a; --wp--preset--color--gold-wash: rgba(245,197,24,0.14);
}
html[data-theme="light"] body { background-color: #eef1f6; color: #16202e; }
html[data-theme="light"] ::selection { background: #f5c518; color: #141414; }
html[data-theme="light"] header.wp-block-group.we88-chrome { background: #ffffff !important; border-bottom-color: #d9e0ec !important; }
html[data-theme="light"] .we88-topbar { border-bottom-color: #d9e0ec; }
html[data-theme="light"] .we88-logo-text { color: #16202e; }
html[data-theme="light"] .we88-logo-text b { color: #a07f06; }
html[data-theme="light"] .we88-logo-tag { color: #64708a; border-left-color: #d9e0ec; }
html[data-theme="light"] .we88-tabs { background: #ffffff; }
html[data-theme="light"] .we88-tab { color: #64708a !important; }
html[data-theme="light"] .we88-tab:hover { color: #16202e !important; }
html[data-theme="light"] .we88-tab.is-active { color: #a07f06 !important; border-bottom-color: #f5c518; }
html[data-theme="light"] header.we88-chrome .wp-block-button.is-style-outline .wp-block-button__link {
	color: #16202e !important; border-color: #c3ccdc !important;
}
html[data-theme="light"] header.we88-chrome .wp-block-button.is-style-outline .wp-block-button__link:hover {
	color: #a07f06 !important; border-color: #f5c518 !important; background: rgba(245,197,24,0.14) !important;
}
html[data-theme="light"] .we88-theme-toggle { border-color: #d9e0ec; color: #64708a; }
html[data-theme="light"] .we88-theme-toggle:hover { border-color: #f5c518; color: #a07f06; }
html[data-theme="light"] .we88-secbar { border-bottom-color: #d9e0ec; }
html[data-theme="light"] .we88-secbar-title { color: #16202e; }
html[data-theme="light"] .we88-announce-bar .we88-announcement-card { background: #ffffff !important; border-color: #d9e0ec !important; }
html[data-theme="light"] .we88-announce-bar .we88-announcement-title { color: #16202e !important; }
html[data-theme="light"] .we88-game-image { background-color: #e4e9f1 !important; }
html[data-theme="light"] .we88-provider-band { border-color: #d9e0ec; background: #ffffff !important; }
html[data-theme="light"] .we88-providers span { color: #8b96ab; }
html[data-theme="light"] .we88-providers span:hover { color: #16202e; }
html[data-theme="light"] footer.wp-block-group { background: #ffffff !important; border-top-color: #d9e0ec !important; }
html[data-theme="light"] footer.wp-block-group :where(p, li, .wp-block-navigation-item__content) { color: #64708a !important; }
html[data-theme="light"] footer.wp-block-group :where(h1,h2,h3,h4,h5,h6) { color: #16202e !important; }
html[data-theme="light"] .we88-footer-support { background: #f4f6fa; border-color: #d9e0ec; color: #16202e; }
html[data-theme="light"] .we88-footer-support-link { color: #a07f06 !important; }
html[data-theme="light"] .we88-footer-support-link:hover { color: #86690a !important; }
html[data-theme="light"] .we88-footer-badges b { border-color: #d9e0ec; color: #64708a; }
html[data-theme="light"] .we88-footer-badges .we88-badge-18 { background: #f5c518; border-color: #f5c518; color: #141414; }
html[data-theme="light"] .we88-modal-backdrop { background: rgba(22, 28, 40, 0.55); }
html[data-theme="light"] .we88-modal-card input,
html[data-theme="light"] .we88-modal-card select,
html[data-theme="light"] .we88-modal-card textarea { background: #f4f6fa !important; }
html[data-theme="light"] .we88-skeleton-line,
html[data-theme="light"] .we88-game-skeleton-img,
html[data-theme="light"] .we88-banner-skeleton { background: linear-gradient(90deg, #e6eaf1, #f2f5f9, #e6eaf1) !important; }
html[data-theme="light"] .we88-btn-demo, html[data-theme="light"] .we88-btn-logout {
	color: #64708a !important; border-color: #d9e0ec !important;
}
html[data-theme="light"] .we88-btn-demo:hover, html[data-theme="light"] .we88-btn-logout:hover {
	background: #eef1f6 !important; color: #16202e !important; border-color: #c3ccdc !important;
}

/* ══ MOTION — operators don't animate; keep it near-instant ═══════════════ */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ══ RESPONSIVE — clamp the game grid DOWNWARD only (desktop keeps the
   widget's inline --we88-game-cols: 8) ════════════════════════════════════ */
@media (max-width: 1400px) {
	.we88-games-grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
}
@media (max-width: 1200px) {
	.we88-games-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
	.we88-promotions-list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 820px) {
	.we88-games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
	.we88-promotions-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	
	/* Mobile top bar: one tidy row — logo + compact buttons. */
	.we88-topbar { min-height: 40px; }
	.we88-logo-tag { display: none; }
	header.we88-chrome .wp-block-buttons { flex-wrap: nowrap !important; gap: 0.3rem !important; }
	header.we88-chrome .wp-block-button .wp-block-button__link { padding: 0 0.55rem !important; font-size: 0.6875rem !important; }
	.we88-tabs-track { min-height: 34px; }
	.we88-tab { padding: 0 0.6rem; font-size: 0.6875rem; }
	main.wp-block-group > .wp-block-group,
	main.wp-block-group > .wp-block-columns { scroll-margin-top: 86px; }

	/* Announcements: drop the tag chip for room. */
	.we88-announce-bar .we88-announcement-card::before { display: none; }
	.we88-announce-bar .we88-announcement-title { display: none !important; }

	/* Login modal fits small screens. */
	.we88-modal:target { padding: 3vh 0.6rem 0.6rem; }
	.we88-modal-card { max-width: 100%; }
}
@media (max-width: 560px) {
	.we88-games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.we88-promotions-list { grid-template-columns: 1fr !important; }
		.we88-secbar-hint { display: none; }
	.we88-games-search { flex: 1 1 100% !important; }
	.we88-providers { gap: 0.35rem 1rem; }
}

/* ── Native-size game tiles ─────────────────────────────────────────────────
   The catalog art ships at exactly 146x189 and the CDN has no larger variant
   — any stretch reads as blur. Fixed 148px tracks (146 art + 1px borders)
   show every tile at its TRUE size; the column count adapts to the viewport. */
.we88-games-grid {
	grid-template-columns: repeat(auto-fill, 148px) !important;
	justify-content: center !important;
}

/* ── Demo button matches the play button box exactly ─────────────────────────
   Same height/padding/type; only the outline styling differs. */
.we88-btn-demo {
	box-sizing: border-box;
	height: 28px !important;
	min-height: 28px !important;
	padding: 0 0.7rem !important;
	display: inline-flex !important; align-items: center; justify-content: center;
	border-radius: var(--we88-radius-sm, 6px) !important;
	font-family: var(--we88-font, 'Inter', 'Noto Sans Thai', sans-serif) !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	box-shadow: none !important;
}

/* ══ EXPRESS — two-tier grouped product nav (dense operator archetype) ═══════
   Tier 1 = product verticals on the navy chrome; Tier 2 = a compact gray
   quick-links strip beneath it, echoing a grouped multi-vertical top bar.
   WE88-branded; every label links to a real portal vertical. */

.we88-tabs--primary .we88-tab {
	gap: 0.3rem;
	font-weight: 700;
}
.we88-tab-ic { font-size: 0.9em; line-height: 1; opacity: 0.9; }

/* Promo vertical gets the one bright accent, like an operator's featured tab. */
.we88-tab.we88-tab--promo {
	color: var(--we88-accent, #ffe10a) !important;
}
.we88-tab.we88-tab--promo:hover { color: var(--we88-accent-hover, #fff04d) !important; }

/* Tier 2: thin gray quick strip. */
.we88-subtabs {
	width: 100%;
	box-sizing: border-box;
	background: var(--we88-navy-soft, #0f1f33);
	border-bottom: 1px solid var(--we88-border, #22344f);
	overflow-x: auto;
	scrollbar-width: none;
}
.we88-subtabs::-webkit-scrollbar { display: none; }
.we88-subtabs-track {
	display: flex;
	align-items: stretch;
	gap: 0;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 0.5rem;
}
.we88-subtab {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	padding: 0.4rem 0.75rem;
	font-family: var(--we88-font, 'Inter', 'Noto Sans Thai', sans-serif) !important;
	font-size: 0.6875rem !important;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--we88-text-muted, #7f92ad) !important;
	text-decoration: none !important;
	border-bottom: 2px solid transparent;
	transition: color 0.12s ease, border-color 0.12s ease;
}
.we88-subtab:hover {
	color: var(--we88-text, #eaf1fb) !important;
	border-bottom-color: var(--we88-border-strong, #30465f);
}
.we88-subtab.we88-subtab--member {
	margin-left: auto;
	color: var(--we88-accent, #ffe10a) !important;
	font-weight: 700;
}
.we88-subtab.we88-subtab--member:hover { border-bottom-color: var(--we88-accent, #ffe10a); }

@media (max-width: 720px) {
	.we88-subtab.we88-subtab--member { margin-left: 0; }
}
