/* Kingmaker Casino Canada — bespoke stylesheet
   Character: regal casino hall, crown gold on deep charcoal, throne-room drama.
   Single stylesheet, CSS custom properties as design tokens. No frameworks. */

:root {
  /* --- palette: deep charcoal hall + crown gold, cool accents for live/trust cues --- */
  --void: #120f0a;
  --panel: #1c1710;
  --panel-2: #241d14;
  --panel-3: #302819;
  --line: #423522;
  --line-soft: #2c2416;

  --gold: #e7b542;
  --gold-bright: #ffd873;
  --gold-deep: #a4741c;
  --gold-ink: #2a1f08;

  --ink: #f4ecd8;
  --ink-dim: #cdc0a2;
  --muted: #948870;

  --green: #6cbd6d;
  --blue: #3fb6ee;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-1: 0 18px 44px -22px rgba(0, 0, 0, 0.7);
  --shadow-2: 0 8px 20px -10px rgba(0, 0, 0, 0.55);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", Cambria, serif;

  --header-h: 72px;
}

/* --- reset --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
table { border-collapse: collapse; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* --- layout shell --- */
.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(18, 15, 10, 0.97), rgba(18, 15, 10, 0.92));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.brand img { height: 30px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}

.desktop-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.desktop-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--ink-dim);
  transition: color .15s, background .15s;
}
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] {
  color: var(--gold-bright);
  background: rgba(231, 181, 66, 0.08);
}

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .12s ease, filter .15s ease, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(244, 236, 216, 0.02);
}
.btn-ghost:hover { border-color: var(--gold-deep); color: var(--gold-bright); }
.btn-gold {
  color: var(--gold-ink);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 8px 20px -8px rgba(231, 181, 66, 0.55);
}
.btn-gold:hover { filter: brightness(1.06); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.burger span, .burger span::before, .burger span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold-bright);
  position: relative;
  transition: transform .18s ease, opacity .18s ease;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --- mobile nav drawer --- */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: var(--void);
  padding: 20px 24px 40px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.mobile-nav-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
body.nav-open { overflow: hidden; }

/* --- hero --- */
.hero {
  position: relative;
  background:
    radial-gradient(720px 420px at 82% -10%, rgba(231, 181, 66, 0.16), transparent 60%),
    linear-gradient(180deg, var(--panel) 0%, var(--void) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 48px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.hero-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold-deep);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 16px;
}
.hero-title em {
  font-style: normal;
  color: var(--gold-bright);
}
.hero-sub {
  color: var(--ink-dim);
  font-size: 1.02rem;
  max-width: 46ch;
  margin: 0 0 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-fine { color: var(--muted); font-size: 0.78rem; max-width: 44ch; }

.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-art-glow {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(closest-side, rgba(231, 181, 66, 0.28), transparent 70%);
  filter: blur(2px);
}
.hero-art img {
  position: relative;
  width: min(320px, 80%);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}

/* --- page header (inner pages) --- */
.page-header {
  background: linear-gradient(180deg, var(--panel) 0%, var(--void) 100%);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 34px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 16px;
}
.breadcrumbs a { color: var(--ink-dim); }
.breadcrumbs a:hover { color: var(--gold-bright); }
.breadcrumbs .sep { color: var(--line); }
.breadcrumbs .current { color: var(--gold-bright); }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  color: var(--ink);
  margin: 0 0 10px;
  max-width: 42ch;
}
.page-lede { color: var(--ink-dim); max-width: 60ch; margin: 0; }

/* --- trust strip --- */
.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.trust-strip .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  font-size: 0.82rem;
  color: var(--ink-dim);
}
.trust-strip .trust-item { display: flex; align-items: center; gap: 8px; }
.trust-strip img { height: 18px; width: auto; }
.trust-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* --- shelves / grids (slots-led structure) --- */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.section-kicker {
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  color: var(--ink);
  margin: 0;
}
.section-link { color: var(--gold-bright); font-size: 0.88rem; font-weight: 600; }
.section-link:hover { color: var(--gold); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.category-card {
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 16px 18px;
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.category-card:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.category-card img {
  width: 76px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 12px;
}
.category-card-title {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  text-align: center;
  margin: 0 0 4px;
}
.category-card-desc {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  margin: 0;
}

.room-shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.room-card {
  background: linear-gradient(160deg, var(--panel-3), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.room-card::before {
  content: "";
  position: absolute;
  top: 14px; left: 18px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(108, 189, 109, 0.18);
}
.room-card-live {
  position: absolute;
  top: 12px; left: 32px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  text-transform: uppercase;
}
.room-card-name {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.94rem;
  margin: 0;
}
.room-card-note {
  color: var(--muted);
  font-size: 0.76rem;
  margin: 4px 0 0;
}

/* --- promo band --- */
.promo-band {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold) 55%, var(--gold-bright));
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--gold-ink);
}
.promo-band-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin: 0 0 6px;
}
.promo-band-sub { margin: 0; font-size: 0.92rem; opacity: 0.85; max-width: 46ch; }
.promo-band .btn-gold {
  background: var(--gold-ink);
  color: var(--gold-bright);
  box-shadow: none;
}
.promo-band .btn-gold:hover { filter: brightness(1.3); }

/* --- quick-nav cards (cross-links between the 5 pages) --- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.quick-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: border-color .15s, transform .15s;
}
.quick-card:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.quick-card-eyebrow {
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.quick-card-title { color: var(--ink); font-weight: 700; font-size: 0.98rem; margin: 0 0 6px; }
.quick-card-desc { color: var(--muted); font-size: 0.82rem; margin: 0; }

/* --- article (the ONLY place with heading tags) --- */
.article-wrap { background: var(--void); }
.article-shell {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px clamp(20px, 4vw, 52px) 48px;
  box-shadow: var(--shadow-1);
}
article h1 {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.22;
  margin: 0 0 20px;
}
article h2 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.35rem;
  margin: 40px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
article h2:first-of-type { border-top: none; padding-top: 0; margin-top: 8px; }
article h3 {
  color: var(--gold-bright);
  font-size: 1.05rem;
  margin: 24px 0 8px;
}
article p { color: var(--ink-dim); margin: 0 0 16px; }
article ul { margin: 0 0 16px; padding-left: 0; }
article ul li {
  color: var(--ink-dim);
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}
article ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
article a { color: var(--gold-bright); border-bottom: 1px solid var(--gold-deep); }
article a:hover { color: var(--gold); }
article strong { color: var(--ink); }

/* faq accordion (h3 question + following p become a toggle pair via JS) */
article .faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--panel-2);
}
article .faq-item h3 {
  margin: 0;
  padding: 14px 44px 14px 16px;
  font-size: 0.98rem;
  cursor: pointer;
  position: relative;
  user-select: none;
}
article .faq-item h3::after {
  content: "+";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-bright);
  font-size: 1.1rem;
  transition: transform .15s ease;
}
article .faq-item.is-open h3::after { transform: translateY(-50%) rotate(45deg); }
article .faq-item .faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .2s ease;
}
article .faq-item .faq-a p { padding: 0 16px 14px; margin: 0; }
article .faq-item.is-open .faq-a { max-height: 320px; }

/* --- adaptive tables inside article --- */
article table {
  width: 100%;
  table-layout: fixed;
  margin: 0 0 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.92rem;
}
article th, article td {
  padding: 10px 12px;
  text-align: left;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-dim);
}
article th {
  background: var(--panel-3);
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
article tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --- footer --- */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand img { height: 26px; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 0.85rem; max-width: 32ch; margin: 0; }
.footer-col-title {
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--ink-dim);
  font-size: 0.88rem;
  padding: 6px 0;
}
.footer-col a:hover { color: var(--gold-bright); }
.footer-payments { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.footer-payments img { height: 16px; width: auto; }
.footer-payments .pay-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  color: var(--muted);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.78rem;
}
.footer-legal { max-width: 720px; line-height: 1.7; }
.rg-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--ink-dim);
  font-size: 0.76rem;
  white-space: nowrap;
}
.rg-line strong { color: var(--gold-bright); }

/* --- blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color .15s, transform .15s;
}
.blog-card:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.blog-card-date {
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.blog-card-title {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 10px;
}
.blog-card-desc {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0 0 14px;
}
.blog-card-more {
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: auto;
}
.blog-back {
  color: var(--gold-bright);
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-block;
  margin: 0 0 18px;
}

/* --- 404 --- */
.error-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.error-wrap p.error-eyebrow {
  color: var(--gold-bright);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  margin: 0 0 12px;
}

/* --- responsive --- */
@media (max-width: 980px) {
  .category-grid, .room-shelf, .quick-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .shell { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { order: -1; }
  .hero-art img { width: 200px; }
}

@media (max-width: 860px) {
  .desktop-nav, .header-cta { display: none; }
  .burger { display: inline-flex; }
}

@media (max-width: 560px) {
  .shell { padding: 0 16px; }
  .article-shell { padding: 0 16px 48px; }
  article { padding: 28px 16px 34px; border-radius: var(--radius-md); }
  article table { font-size: 0.8rem; }
  article th, article td { padding: 8px; }
  .category-grid, .room-shelf, .quick-grid, .footer-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .promo-band { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 400px) {
  .category-grid, .room-shelf, .quick-grid, .blog-grid { grid-template-columns: 1fr; }
}

/* tabular figures for any coefficients / numbers in copy */
.tnum { font-variant-numeric: tabular-nums; }
