:root {
	--navy-950: #030a13;
	--navy-900: #071426;
	--navy-800: #0c1d33;
	--navy-700: #13304f;
	--gold-300: #f1d693;
	--gold-400: #d8b56a;
	--gold-500: #b98a37;
	--cream: #f7f1e5;
	--muted: #aab8c7;
	--red: #b83d46;
	--line: rgba(216, 181, 106, .23);
	--shadow: 0 24px 70px rgba(0, 0, 0, .34);
	--radius: 18px;
	--content: 780px;
	--wide: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
	margin: 0;
	background: var(--navy-900);
	color: var(--cream);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
	font-size: 17px;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
}
body.has-open-menu { overflow: hidden; }
main [id] { scroll-margin-top: 92px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-300); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #fff2c9; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ffdf86; outline-offset: 4px; }

h1, h2, h3, h4 { margin-top: 0; color: #fff; line-height: 1.17; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.45rem); }
p { margin-top: 0; }

.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;
}
.screen-reader-text:focus {
	top: 12px; left: 12px; z-index: 100000;
	width: auto; height: auto; padding: .65rem 1rem; margin: 0;
	clip: auto; background: #fff; color: #000; font-weight: 700;
}

.site-header {
	position: sticky; top: 0; z-index: 1000;
	background: rgba(3, 10, 19, .92);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(16px);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem;
	width: min(calc(100% - 2rem), var(--wide)); min-height: 76px; margin-inline: auto;
}
.custom-logo { width: auto; max-width: 220px; max-height: 52px; }
.wordmark { color: #fff; font-size: 1.72rem; font-weight: 900; letter-spacing: -.05em; text-decoration: none; }
.wordmark span { color: var(--gold-400); }
.primary-navigation { justify-self: center; }
.primary-navigation ul, .footer-navigation ul { display: flex; align-items: center; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.primary-navigation a { display: block; padding: .6rem .15rem; color: #e6edf5; font-size: .92rem; font-weight: 650; text-decoration: none; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--gold-300); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.menu-toggle { display: none; }
.menu-backdrop { display: none; }

.button, .wp-element-button, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
	min-height: 48px; padding: .7rem 1.2rem;
	border: 1px solid var(--gold-400); border-radius: 999px;
	background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: #091421;
	box-shadow: 0 10px 28px rgba(185, 138, 55, .18);
	font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.button:hover, .wp-element-button:hover, input[type="submit"]:hover { color: #040a12; transform: translateY(-1px); filter: brightness(1.07); }
.button--small { min-height: 40px; padding: .55rem .9rem; font-size: .86rem; }
.button--outline { background: transparent; color: var(--gold-300); box-shadow: none; }
.button--outline:hover { background: rgba(216, 181, 106, .1); color: #fff2c9; }
.text-link { color: var(--gold-300); font-weight: 750; text-decoration: none; }
.text-link--arrow::after { content: " →"; }

.site-main { min-height: 58vh; }
.content-shell { width: min(calc(100% - 2rem), var(--wide)); margin-inline: auto; padding: clamp(2.5rem, 6vw, 5.5rem) 0; }
.content-shell--narrow { max-width: 860px; }
.entry--page, .entry--article { width: min(100%, var(--content)); margin-inline: auto; }
.entry-header { margin-bottom: 2.2rem; }
.entry-title { margin-bottom: 1.1rem; font-size: clamp(2.25rem, 5vw, 4rem); }
.entry-content > * + * { margin-top: 1.35rem; }
.entry-content h2 { margin-top: 3rem; }
.entry-content h3 { margin-top: 2.2rem; }
.entry-content li + li { margin-top: .55rem; }
.entry-content blockquote { margin: 2rem 0; padding: 1.1rem 1.4rem; border-left: 4px solid var(--gold-400); background: var(--navy-800); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--navy-800); }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--muted); font-size: .88rem; }
.entry-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.entry-categories { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
.article-actions { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin-top: 1.2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(12, 29, 51, .72); }
.article-actions a { font-weight: 750; text-decoration: none; }
.back-to-guides { margin-left: auto; }
.eyebrow, .section-kicker { margin-bottom: .7rem; color: var(--gold-300); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; max-width: var(--wide); margin: 0 auto 2.3rem; color: var(--muted); font-size: .84rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs--rank-math p { margin: 0; }

/* Editable homepage sections use one shared wide baseline without affecting articles. */
.home-section { padding: clamp(3.4rem, 6vw, 5.6rem) max(1rem, calc((100vw - var(--wide)) / 2)); }
.home-section:nth-child(even) { background: rgba(255, 255, 255, .018); }
.bet852-front-page .home-section > * { width: min(100%, var(--wide)); max-width: var(--wide) !important; margin-left: auto !important; margin-right: auto !important; }
.bet852-front-page .home-section > .section-heading { max-width: var(--wide) !important; }
.bet852-front-page .section-heading > p:not(.section-kicker) { max-width: 760px; }
.section-heading { margin-bottom: 1.8rem; }
.section-heading p { color: var(--muted); }
.hero-section {
	position: relative; isolation: isolate; min-height: min(760px, calc(100vh - 76px)); overflow: hidden;
	display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); align-items: center; gap: clamp(2rem, 6vw, 6rem);
	padding: clamp(5rem, 10vw, 8.5rem) max(1rem, calc((100vw - var(--wide)) / 2));
	background:
		radial-gradient(circle at 74% 32%, rgba(216, 181, 106, .17), transparent 27%),
		radial-gradient(circle at 12% 90%, rgba(34, 100, 151, .22), transparent 35%),
		linear-gradient(145deg, #06111f 0%, #08192c 64%, #0b2238 100%);
}
.hero-section::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, transparent, black 20%, black 75%, transparent); }
.hero-copy { max-width: 710px; }
.hero-copy h1 { margin-bottom: 1.4rem; }
.hero-copy > p:not(.eyebrow) { max-width: 650px; color: #c7d1dc; font-size: clamp(1.03rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-art { position: relative; min-height: 430px; perspective: 900px; }
.hero-card {
	position: absolute; top: 50%; left: 50%; width: 230px; height: 330px; border: 1px solid rgba(241, 214, 147, .7); border-radius: 24px;
	background: linear-gradient(145deg, rgba(20, 50, 79, .95), rgba(4, 13, 24, .98)); box-shadow: var(--shadow), inset 0 0 40px rgba(216,181,106,.06);
}
.hero-card::before { content: "852"; position: absolute; inset: 13px; display: grid; place-items: center; border: 1px solid rgba(216,181,106,.3); border-radius: 15px; color: var(--gold-300); font-size: 4.6rem; font-weight: 900; letter-spacing: -.08em; }
.hero-card--one { transform: translate(-72%, -48%) rotate(-13deg); }
.hero-card--two { transform: translate(-24%, -53%) rotate(10deg); background: linear-gradient(145deg, #142d48, #08111f); }
.hero-chip { position: absolute; z-index: 2; width: 116px; aspect-ratio: 1; border: 9px dashed var(--gold-300); border-radius: 50%; background: radial-gradient(circle, #c35159 0 33%, #7c1820 35% 55%, #d8b56a 57% 63%, #871e27 65%); box-shadow: 0 22px 38px rgba(0,0,0,.36); }
.hero-chip::after { content: "18+"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff9e8; font-weight: 900; }
.hero-chip--one { right: 4%; bottom: 10%; transform: rotate(12deg); }
.hero-chip--two { left: 2%; top: 8%; width: 76px; transform: rotate(-15deg); opacity: .78; }
.trust-line { display: flex; flex-wrap: wrap; gap: .7rem 1.3rem; margin-top: 2rem; padding: 0; color: var(--muted); font-size: .87rem; list-style: none; }
.trust-line li::before { content: "◆"; margin-right: .55rem; color: var(--gold-400); font-size: .65em; }

.bet852-card-grid { gap: 1rem; }
.home-entries .bet852-card-grid, .home-games .bet852-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-entries .wp-block-column, .home-games .wp-block-column { min-width: 0; margin: 0; }
.entry-card, .info-card, .post-card, .faq-card, .promo-card {
	position: relative; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius);
	background: linear-gradient(150deg, rgba(18, 43, 69, .84), rgba(8, 22, 39, .92)); box-shadow: 0 12px 34px rgba(0, 0, 0, .15);
}
.entry-card { min-height: 190px; }
.entry-card__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1.1rem; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-300); font-weight: 900; }
.promo-card { overflow: hidden; border-top: 3px solid var(--red); }
.promo-card .promo-meta { color: var(--gold-300); font-size: .8rem; font-weight: 800; }
.home-promo-card { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.3rem, 3vw, 2rem); }
.home-promo-card > div { max-width: 760px; }
.home-promo-card > p { flex: 0 0 auto; margin: 0; }
.wp-block-columns { align-items: stretch; }
.wp-block-column > .entry-card, .wp-block-column > .info-card, .wp-block-column > .promo-card { height: 100%; }

.feature-band { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(216,181,106,.08), transparent 40%, rgba(216,181,106,.05)); }
.feature-band .wp-block-columns { align-items: center; }
.phone-frame { width: min(100%, 240px); margin-inline: auto; padding: 10px; border: 1px solid var(--gold-400); border-radius: 32px; background: #020811; box-shadow: var(--shadow); }
.phone-screen { min-height: 300px; padding: 1.6rem 1.15rem; border-radius: 24px; background: radial-gradient(circle at 50% 15%, rgba(216,181,106,.18), transparent 28%), linear-gradient(#102945, #071426); }
.phone-screen::before { content: ""; display: block; width: 38%; height: 6px; margin: -.7rem auto 2rem; border-radius: 20px; background: #020811; }
.steps-list { counter-reset: step; padding: 0; list-style: none; }
.steps-list li { position: relative; min-height: 54px; padding-left: 68px; }
.steps-list li + li { margin-top: 1.35rem; }
.steps-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -.2rem; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--gold-400); border-radius: 50%; color: var(--gold-300); font-weight: 850; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 1.3rem .2rem; color: #fff; font-weight: 750; cursor: pointer; }
.faq-list details > :not(summary) { padding-inline: .2rem; color: var(--muted); }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.7rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(circle at 100% 0, rgba(216,181,106,.16), transparent 35%), var(--navy-800); }

.archive-header { max-width: 800px; margin: 0 auto 2.7rem; text-align: center; }
.archive-intro { color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.post-card { min-height: 280px; }
.post-card__meta { color: var(--muted); font-size: .8rem; }
.post-card__title { margin-top: .7rem; font-size: 1.35rem; }
.post-card__title a { color: #fff; text-decoration: none; }
.post-card__excerpt { color: var(--muted); font-size: .93rem; }
.pagination .nav-links { display: flex; justify-content: center; gap: .45rem; margin-top: 2.3rem; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .5rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.page-numbers.current { background: var(--gold-400); color: var(--navy-950); }
.empty-state { padding: clamp(2rem, 6vw, 4rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-800); text-align: center; }
.search-form { display: flex; gap: .6rem; max-width: 560px; margin: 1.5rem auto; }
.search-field { width: 100%; min-height: 48px; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #111; }

.site-footer { padding: 4.5rem max(1rem, calc((100vw - var(--wide)) / 2)) 2rem; border-top: 1px solid var(--line); background: var(--navy-950); }
.site-footer__inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 2.5rem; }
.footer-brand p { max-width: 680px; margin-top: 1rem; color: var(--muted); font-size: .88rem; }
.footer-navigation ul { justify-content: flex-end; flex-wrap: wrap; }
.footer-navigation a { color: #dce5ed; font-size: .88rem; }
.footer-notice { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); color: var(--muted); font-size: .82rem; }
.footer-notice p { margin-bottom: .45rem; }
.mobile-action-bar { display: none; }

@media (max-width: 1120px) {
	body.has-open-menu .site-header { z-index: 1200; }
	.site-header__inner { grid-template-columns: auto auto 1fr; }
	.menu-toggle {
		display: inline-flex; align-items: center; gap: .55rem; justify-self: end; min-height: 42px; padding: .45rem .7rem;
		border: 1px solid var(--line); border-radius: 9px; background: transparent; color: #fff; cursor: pointer;
	}
	.menu-toggle__icon { display: grid; gap: 4px; width: 19px; }
	.menu-toggle__icon i { display: block; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
	.is-menu-open .menu-toggle__icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.is-menu-open .menu-toggle__icon i:nth-child(2) { opacity: 0; }
	.is-menu-open .menu-toggle__icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
	.menu-backdrop { position: fixed; z-index: 1; inset: 76px 0 0; border: 0; background: rgba(1, 6, 12, .72); backdrop-filter: blur(3px); }
	.is-menu-open .menu-backdrop { display: block; }
	.primary-navigation {
		display: none; position: fixed; z-index: 2; top: calc(76px + .75rem); right: max(1rem, env(safe-area-inset-right)); left: max(1rem, env(safe-area-inset-left));
		justify-self: stretch; width: auto; max-width: 760px; max-height: calc(100dvh - 76px - 1.5rem); margin-inline: auto; overflow-y: auto; overscroll-behavior: contain;
		padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: #030a13; box-shadow: 0 24px 70px rgba(0,0,0,.55);
	}
	.admin-bar .primary-navigation { top: calc(108px + .75rem); max-height: calc(100dvh - 108px - 1.5rem); }
	.admin-bar .menu-backdrop { top: 108px; }
	.is-menu-open .primary-navigation { display: block; }
	.primary-navigation ul { display: block; width: 100%; max-width: none; margin-inline: auto; }
	.primary-navigation a { padding: .85rem .7rem; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.02rem; }
	.header-actions { justify-self: end; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar .primary-navigation { top: calc(116px + .75rem); max-height: calc(100dvh - 116px - 1.5rem); }
	.admin-bar .menu-backdrop { top: 116px; }
	.site-header__inner { grid-template-columns: 1fr auto; min-height: 70px; }
	.header-actions { display: none; }
	.primary-navigation { top: calc(70px + .75rem); max-height: calc(100dvh - 70px - 1.5rem); }
	.menu-backdrop { top: 70px; }
	.hero-section { grid-template-columns: 1fr; min-height: auto; padding-top: 4rem; }
	.hero-art { min-height: 300px; transform: scale(.8); }
	.home-section { padding-block: 2.8rem; }
	.home-entries .bet852-card-grid, .home-games .bet852-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.home-promo-card { align-items: flex-start; flex-direction: column; gap: 1rem; }
	.home-mobile-feature .wp-block-columns { gap: 1.4rem; }
	.home-mobile-feature .phone-frame { width: min(100%, 210px); }
	.home-mobile-feature .phone-screen { min-height: 220px; padding: 1.35rem 1rem; }
	.home-mobile-feature .phone-screen::before { margin-bottom: 1.35rem; }
	.post-grid { grid-template-columns: 1fr; }
	.site-footer__inner { grid-template-columns: 1fr; }
	.footer-navigation ul { justify-content: flex-start; }
	.footer-notice { grid-column: auto; }
	.cta-panel { align-items: flex-start; flex-direction: column; }
	body:not(.bet852-demo-page):not(.single-post) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
	.mobile-action-bar {
		display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; z-index: 1100; right: 0; bottom: 0; left: 0;
		padding: .45rem max(.45rem, env(safe-area-inset-right)) calc(.45rem + env(safe-area-inset-bottom)) max(.45rem, env(safe-area-inset-left));
		border-top: 1px solid var(--line); background: rgba(3,10,19,.98); box-shadow: 0 -10px 30px rgba(0,0,0,.3);
	}
	.mobile-action-bar__item { display: grid; place-items: center; min-height: 48px; color: #fff; font-size: .85rem; font-weight: 750; text-decoration: none; }
	.mobile-action-bar__item--primary { border-radius: 9px; background: var(--gold-400); color: var(--navy-950); }
	.entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) { gap: 1rem; }
	.search-form { align-items: stretch; flex-direction: column; }
}

@media (max-width: 480px) {
	body { font-size: 16px; }
	html { scroll-padding-top: 84px; }
	main [id] { scroll-margin-top: 84px; }
	.primary-navigation { right: max(.75rem, env(safe-area-inset-right)); left: max(.75rem, env(safe-area-inset-left)); }
	.hero-section { padding-top: 3rem; }
	.hero-copy h1 { font-size: 2.5rem; }
	.hero-actions .button { width: 100%; }
	.hero-art { min-height: 250px; transform: scale(.66); margin: -2.5rem -3rem; }
	.home-section { padding-block: 2.4rem; }
	.entry-card, .info-card { padding: 1.15rem; }
	.entry-card { min-height: 0; }
	.entry-footer { flex-direction: column; }
	.back-to-guides { margin-left: 0; }
}

@media (max-width: 359px) {
	.home-entries .bet852-card-grid, .home-games .bet852-card-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
	.site-header, .site-footer, .mobile-action-bar { display: none; }
	body { background: #fff; color: #111; }
	a { color: #111; }
}
