/* ==========================================================================
   XSMN Thứ Bảy Hàng Tuần — Design System
   Palette: Brown #7A4429 / Gold #FFB511 / Red-Orange #C23B1E
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
[inert] { pointer-events: none; cursor: default; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

:root {
  --brown: #7A4429;
  --brown-dark: #4E2B1A;
  --brown-tint: #F3E6DA;
  --gold: #FFB511;
  --gold-dark: #E09E00;
  --red: #C23B1E;
  --red-dark: #9C2E16;
  --cream: #FFFBF6;
  --cream-soft: #FFF1DE;
  --white: #FFFFFF;
  --ink: #2B1D14;
  --ink-soft: #6B5645;
  --border: #EDE0CF;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(43,29,20,.06);
  --shadow-md: 0 10px 30px rgba(43,29,20,.10);
  --container: 1120px;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  word-break: break-word;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--red-dark); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--red); }
blockquote { margin: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; width: 100%; }

h1, h2, h3, h4 { color: var(--brown-dark); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.25rem); margin: 0 0 .6em; }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brown-dark); color: #fff;
  padding: 12px 18px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,251,246,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; }
.brand strong { font-size: 1.35rem; font-weight: 900; color: var(--brown-dark); letter-spacing: -0.02em; }
.brand span { font-size: .68rem; font-weight: 700; color: var(--red-dark); text-transform: uppercase; letter-spacing: .08em; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.nav-links a:hover { background: var(--cream-soft); color: var(--brown-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  padding: 12px 26px; font-size: .98rem; cursor: pointer; transition: transform .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-cta {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; box-shadow: 0 8px 20px rgba(194,59,30,.35);
}
.btn-cta:hover { color: #fff; box-shadow: 0 12px 26px rgba(194,59,30,.45); }
.btn-gold { background: var(--gold); color: var(--brown-dark); box-shadow: 0 8px 20px rgba(255,181,17,.35); }
.btn-gold:hover { color: var(--brown-dark); background: var(--gold-dark); }
.btn-outline { background: transparent; border-color: var(--brown); color: var(--brown-dark); }
.btn-outline:hover { background: var(--brown); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

.nav-cta { display: inline-flex; flex-shrink: 0; }

/* Hamburger button (mobile only) */
.nav-toggle-btn {
  display: none; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer; border: 1px solid var(--border);
  background: var(--white); padding: 0;
}
.nav-toggle-btn span, .nav-toggle-btn span::before, .nav-toggle-btn span::after {
  display: block; width: 20px; height: 2px; background: var(--brown-dark); position: relative;
}
.nav-toggle-btn span::before { content: ""; position: absolute; top: -6px; left: 0; width: 20px; height: 2px; background: var(--brown-dark); }
.nav-toggle-btn span::after { content: ""; position: absolute; top: 6px; left: 0; width: 20px; height: 2px; background: var(--brown-dark); }

/* Dark overlay behind the drawer */
.nav-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%;
  background: rgba(20, 12, 6, .55); z-index: 150; opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

/* Slide-out drawer (left-anchored) */
.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 82%; max-width: 340px; height: 100%;
  background: var(--white); z-index: 200; box-shadow: var(--shadow-md);
  transform: translateX(-105%); transition: transform .3s ease;
  display: flex; flex-direction: column; overflow-y: auto;
}
.nav-drawer.is-open { transform: translateX(0); }

.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 18px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.nav-drawer-brand { font-weight: 900; font-size: 1.1rem; color: var(--brown-dark); }
.nav-close-btn {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--cream-soft);
  font-size: 1.3rem; line-height: 1; color: var(--brown-dark); cursor: pointer; padding: 0; flex-shrink: 0;
}

.nav-drawer-list { list-style: none; margin: 0; padding: 8px 0; }
.nav-drawer-list li { border-bottom: 1px solid var(--border); }
.nav-drawer-list li:last-child { border-bottom: none; }
.nav-drawer-list a {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.02rem;
}
.nav-drawer-list a:hover, .nav-drawer-list a:active { background: var(--cream-soft); }
.nav-icon { font-size: 1.25rem; flex-shrink: 0; width: 1.4em; text-align: center; }

.nav-drawer-cta { padding: 16px 20px 22px; border-top: 1px solid var(--border); flex-shrink: 0; }

body.nav-open { overflow: hidden; }

@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-cta { padding: 8px 16px; font-size: .82rem; }
  .nav-toggle-btn { display: flex; }
}
@media (min-width: 900px) {
  .nav-toggle-btn, .nav-overlay, .nav-drawer { display: none !important; }
}
@media (max-width: 420px) {
  .brand strong { font-size: 1.1rem; }
  .brand span { font-size: .6rem; }
  .nav-cta { padding: 7px 12px; font-size: .78rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 44px 32px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; min-width: 0; }
.hero-grid > * { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: var(--brown-tint); color: var(--brown-dark);
  font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.hero-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-side .quick-answer, .hero-side .notice { margin: 0; }
.hero p.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: .88rem; color: var(--ink-soft); }
.hero-meta strong { color: var(--brown-dark); }

/* Quick Answer / AI Overview box */
.quick-answer {
  background: var(--white); border: 1px solid var(--border); border-left: 6px solid var(--gold);
  border-radius: var(--radius-md); padding: 22px 24px; box-shadow: var(--shadow-sm); margin: 28px 0;
}
.quick-answer h2 { font-size: 1.05rem; margin-bottom: .5em; display: flex; align-items: center; gap: 8px; }
.quick-answer p { margin: 0; color: var(--ink-soft); }

/* Notice / warning */
.notice {
  border-radius: var(--radius-md); padding: 20px 22px; margin: 24px 0; border: 1px solid transparent;
}
.notice-warning { background: #FDEDE8; border-color: #F3C4B6; color: var(--red-dark); }
.notice-info { background: var(--cream-soft); border-color: var(--border); color: var(--ink-soft); }
.notice h3, .notice p:last-child { margin-bottom: 0; }
.notice h3 { color: inherit; font-size: 1rem; }

/* ---------- Sections ---------- */
.section { padding-block: 48px; }
.section-alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 68ch; margin-bottom: 28px; }
.section-head p { color: var(--ink-soft); }

/* TOC */
.toc { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 26px; margin-top: 32px; }
.toc summary { font-weight: 800; cursor: pointer; color: var(--brown-dark); font-size: 1.05rem; }
.toc ol { columns: 1; margin-top: 14px; padding-left: 1.2em; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 30px; } }
.toc a { text-decoration: none; font-weight: 600; }

/* Hero banner image */
.hero-banner { margin-top: 28px; }
.hero-banner img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (max-width: 420px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card-icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }

.province-card { border-top: 4px solid var(--red); }
.province-card:nth-child(2) { border-top-color: var(--gold); }
.province-card:nth-child(3) { border-top-color: var(--brown); }
.province-card:nth-child(4) { border-top-color: var(--red-dark); }

/* Tables */
.table-scroll { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; }
caption { text-align: left; padding: 14px 16px 0; font-weight: 700; color: var(--brown-dark); caption-side: top; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--brown-tint); color: var(--brown-dark); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--cream-soft); }
td.special { font-weight: 800; color: var(--red-dark); }
.source-note { font-size: .82rem; color: var(--ink-soft); margin-top: 10px; }

/* Schedule table day labels */
td.day-cell, th.day-cell { font-weight: 700; color: var(--brown-dark); white-space: nowrap; }

/* Stats */
.stat-heads { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.stat-heads li { display: flex; gap: 8px; }
.stat-heads b { color: var(--brown-dark); min-width: 62px; }

/* Testimonials */
.testimonial { border-left: 4px solid var(--gold); }
.testimonial .stars { color: var(--gold-dark); letter-spacing: 2px; margin-bottom: 8px; display: block; }
.testimonial footer { margin-top: 14px; font-size: .85rem; color: var(--ink-soft); }
.testimonial .result-pill {
  display: inline-block; margin-top: 12px; background: var(--brown-tint); color: var(--brown-dark);
  font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 999px;
}

/* FAQ */
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; color: var(--brown-dark);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--red); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--ink-soft); margin: 0; }

/* Trust signals */
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; }

/* Breadcrumb */
.breadcrumb { padding-block: 16px 0; font-size: .86rem; color: var(--ink-soft); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--ink-soft); }
.breadcrumb a { text-decoration: none; font-weight: 600; }
.breadcrumb li[aria-current] { color: var(--ink); font-weight: 600; }

/* Author box */
.author-box { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.author-photo {
  width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; border: 3px solid var(--gold);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown));
  color: #fff; border-radius: var(--radius-lg); padding: 36px 30px; text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #F3E6DA; max-width: 56ch; margin-inline: auto; }
.cta-banner .btn-cta { margin-top: 14px; }

/* Responsible gaming table */
.rg-table td a { font-weight: 700; }

/* Footer */
.site-footer { background: var(--brown-dark); color: #EFE1D2; padding-block: 48px 24px; margin-top: 40px; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-grid > * { min-width: 0; }
.footer-grid h3 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: #EFE1D2; text-decoration: none; font-size: .92rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .82rem; color: #C9B7A4;
}
.footer-legal { max-width: 74ch; font-size: .8rem; color: #C9B7A4; margin-top: 18px; line-height: 1.6; }

/* Blog */
.blog-card { display: flex; flex-direction: column; gap: 10px; }
.badge-soon {
  display: inline-flex; align-self: flex-start; background: var(--gold); color: var(--brown-dark);
  font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
}

/* Page header (subpages) */
.page-header { padding-block: 40px 20px; }
.page-header p.lede { color: var(--ink-soft); max-width: 62ch; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: .85rem; color: var(--ink-soft); }
section[id] { scroll-margin-top: 84px; }
hr.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
