/* Betty Casino Canada — bettycasino-official.ca
   Palette sampled from betty-casino-logo.svg, betty-casino-banner.webp, favicon.png */

:root {
  --bt-bg-deep: #131313;
  --bt-bg-alt: #191919;
  --bt-surface: #212121;
  --bt-surface-2: #2a2622;
  --bt-accent: #ffc700;
  --bt-accent-2: #ffe27b;
  --bt-accent-3: #ffeba5;
  --bt-cta: #ffc700;
  --bt-cta-text: #171717;
  --bt-text: #f4f1ea;
  --bt-text-muted: #a9a49b;
  --bt-border: #332f27;
  --bt-shadow: rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: clip; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bt-bg-deep);
  color: var(--bt-text);
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .bt-logo-word {
  font-family: Georgia, "Times New Roman", "Iowan Old Style", serif;
  line-height: 1.24;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.85rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.16rem; }

p { margin: 0 0 1.15em; }

a { color: var(--bt-accent-2); }
a:hover { color: var(--bt-accent); }

img { max-width: 100%; height: auto; }

.bt-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }

.bt-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bt-accent);
  color: var(--bt-cta-text);
  padding: 10px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.bt-skip:focus { left: 0; }

/* ---------- Header ---------- */

.bt-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(19, 19, 19, 0.96);
  border-bottom: 1px solid var(--bt-border);
  backdrop-filter: blur(6px);
}

.bt-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.bt-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.bt-brand img { display: block; width: 123px; height: 38px; }

.bt-nav { margin-left: auto; }

.bt-nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bt-nav-list a {
  color: var(--bt-text);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.bt-nav-list a:hover { color: var(--bt-accent); border-bottom-color: var(--bt-accent); }

.bt-header-cta { display: flex; gap: 10px; align-items: center; }

.bt-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--bt-border);
  border-radius: 8px;
  width: 46px;
  height: 42px;
  cursor: pointer;
  padding: 0;
}
.bt-burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: var(--bt-accent);
}

/* ---------- Buttons ---------- */

.bt-btn {
  display: inline-block;
  background: var(--bt-cta);
  color: var(--bt-cta-text);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid var(--bt-cta);
  text-align: center;
  font-family: inherit;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.bt-btn:hover { background: var(--bt-accent-2); border-color: var(--bt-accent-2); color: var(--bt-cta-text); transform: translateY(-1px); }

.bt-btn-ghost {
  background: transparent;
  color: var(--bt-accent);
  border-color: var(--bt-border);
}
.bt-btn-ghost:hover { background: transparent; border-color: var(--bt-accent); color: var(--bt-accent-2); }

.bt-btn-sm { padding: 9px 18px; font-size: 0.86rem; }

/* ---------- Hero ---------- */

.bt-hero {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 199, 0, 0.13) 0%, rgba(19, 19, 19, 0) 62%),
    var(--bt-bg-alt);
  border-bottom: 1px solid var(--bt-border);
  padding: 52px 0 46px;
}

.bt-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }

.bt-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bt-accent);
  border: 1px solid var(--bt-border);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.bt-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

.bt-hero-media img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--bt-border);
  box-shadow: 0 20px 48px var(--bt-shadow);
}

.bt-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 38px;
}

.bt-tile {
  background: var(--bt-surface);
  border: 1px solid var(--bt-border);
  border-radius: 12px;
  padding: 18px 16px;
}
.bt-tile-value {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  color: var(--bt-accent);
  margin-bottom: 2px;
}
.bt-tile-label { font-size: 0.82rem; color: var(--bt-text-muted); line-height: 1.45; }

/* ---------- Sections ---------- */

.bt-section { padding: 58px 0 12px; border-top: 1px solid var(--bt-border); }
.bt-section:first-of-type { border-top: none; }
.bt-section-alt { background: var(--bt-bg-alt); }

.bt-lede { color: var(--bt-text-muted); }

/* ---------- Tables ---------- */

.bt-table-scroll { overflow-x: auto; margin: 26px 0 10px; border: 1px solid var(--bt-border); border-radius: 12px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 520px;
}

caption {
  text-align: left;
  padding: 14px 18px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bt-accent);
  background: var(--bt-surface-2);
  border-bottom: 1px solid var(--bt-border);
}

th, td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--bt-border); vertical-align: top; }
thead th { background: var(--bt-surface); color: var(--bt-text); font-weight: 700; font-size: 0.86rem; }
tbody th { font-weight: 600; color: var(--bt-accent-3); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.017); }

/* ---------- Cards ---------- */

.bt-cards { display: grid; gap: 16px; margin: 26px 0 6px; }
.bt-cards-3 { grid-template-columns: repeat(3, 1fr); }
.bt-cards-4 { grid-template-columns: repeat(4, 1fr); }

.bt-card {
  background: var(--bt-surface);
  border: 1px solid var(--bt-border);
  border-radius: 12px;
  padding: 22px 20px;
}
.bt-card h3 { color: var(--bt-accent); margin-bottom: 8px; }
.bt-card p { margin: 0; font-size: 0.93rem; color: var(--bt-text-muted); }

/* ---------- Lists ---------- */

.bt-steps { counter-reset: bt-step; list-style: none; margin: 24px 0; padding: 0; }
.bt-steps li {
  counter-increment: bt-step;
  position: relative;
  padding: 0 0 18px 52px;
  font-size: 0.97rem;
}
.bt-steps li::before {
  content: counter(bt-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bt-accent);
  color: var(--bt-cta-text);
  font-weight: 700;
  font-family: Georgia, serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bt-checks { list-style: none; margin: 22px 0; padding: 0; }
.bt-checks li {
  position: relative;
  padding: 0 0 12px 28px;
  font-size: 0.96rem;
}
.bt-checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--bt-accent);
  transform: rotate(45deg);
}

.bt-split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* ---------- CTA band ---------- */

.bt-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(100deg, var(--bt-surface-2) 0%, var(--bt-surface) 100%);
  border: 1px solid var(--bt-border);
  border-left: 3px solid var(--bt-accent);
  border-radius: 12px;
  padding: 18px 24px;
  margin: 26px 0 46px;
}
.bt-cta-band p { margin: 0; font-size: 0.96rem; }

/* ---------- FAQ ---------- */

.bt-faq { margin: 26px 0 10px; border: 1px solid var(--bt-border); border-radius: 12px; overflow: hidden; }

.bt-faq-item { border-bottom: 1px solid var(--bt-border); }
.bt-faq-item:last-child { border-bottom: none; }

.bt-faq-q {
  width: 100%;
  text-align: left;
  background: var(--bt-surface);
  color: var(--bt-text);
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 18px 54px 18px 22px;
  cursor: pointer;
  position: relative;
  line-height: 1.5;
}
.bt-faq-q:hover { color: var(--bt-accent); }
.bt-faq-q::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bt-accent);
  font-size: 1.5rem;
  line-height: 1;
}
.bt-faq-q[aria-expanded="true"]::after { content: "\2212"; }

.bt-faq-a { display: none; padding: 4px 22px 6px; background: var(--bt-bg-alt); }
.bt-faq-a[data-open="true"] { display: block; }
.bt-faq-a p { margin: 14px 0; font-size: 0.95rem; }

/* ---------- Legal pages ---------- */

.bt-legal { padding: 44px 0 20px; }
.bt-legal-wrap { max-width: 820px; }
.bt-crumbs { font-size: 0.85rem; color: var(--bt-text-muted); margin-bottom: 18px; }
.bt-crumbs a { color: var(--bt-text-muted); }
.bt-updated { font-size: 0.85rem; color: var(--bt-text-muted); margin-bottom: 22px; }
.bt-note {
  background: var(--bt-surface);
  border: 1px solid var(--bt-border);
  border-left: 3px solid var(--bt-accent);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 34px;
}
.bt-note p:last-child { margin-bottom: 0; }
.bt-legal h2 { font-size: 1.32rem; margin-top: 38px; }

/* ---------- Footer ---------- */

.bt-footer {
  background: var(--bt-bg-alt);
  border-top: 1px solid var(--bt-border);
  margin-top: 46px;
  padding: 42px 0 28px;
  font-size: 0.9rem;
  color: var(--bt-text-muted);
}
.bt-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.bt-footer h3 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bt-text); font-family: inherit; }
.bt-footer ul { list-style: none; margin: 0; padding: 0; }
.bt-footer li { margin-bottom: 9px; }
.bt-footer a { color: var(--bt-text-muted); text-decoration: none; }
.bt-footer a:hover { color: var(--bt-accent); }

.bt-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  border: 2px solid var(--bt-accent);
  color: var(--bt-accent);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 10px;
  margin-bottom: 14px;
}

.bt-footer-bottom {
  border-top: 1px solid var(--bt-border);
  margin-top: 30px;
  padding-top: 20px;
  font-size: 0.84rem;
  line-height: 1.65;
}

/* ---------- Cookie banner ---------- */

.bt-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--bt-surface);
  border: 1px solid var(--bt-border);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 18px 44px var(--bt-shadow);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.bt-cookie[hidden] { display: none; }
.bt-cookie p { margin: 0; font-size: 0.88rem; flex: 1 1 320px; color: var(--bt-text-muted); }
.bt-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 404 ---------- */

.bt-404 { padding: 80px 0; text-align: center; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .bt-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .bt-cards-4 { grid-template-columns: repeat(2, 1fr); }
  .bt-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .bt-burger { display: block; }
  .bt-header-cta .bt-btn { display: none; }
  .bt-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 84vw);
    height: 100vh;
    background: var(--bt-bg-alt);
    border-left: 1px solid var(--bt-border);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    padding: 84px 26px 26px;
    overflow-y: auto;
    margin-left: 0;
  }
  .bt-nav[data-open="true"] { transform: translateX(0); }
  .bt-nav-list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .bt-nav-list li { width: 100%; border-bottom: 1px solid var(--bt-border); }
  .bt-nav-list a { display: block; padding: 14px 0; width: 100%; font-size: 1rem; }
  .bt-cards-3 { grid-template-columns: 1fr; }
  .bt-split { grid-template-columns: 1fr; gap: 8px; }
  .bt-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .bt-section { padding: 44px 0 8px; }
  .bt-cards-4 { grid-template-columns: 1fr; }
  .bt-footer-grid { grid-template-columns: 1fr; }
  .bt-cta-band { padding: 18px; }
  .bt-cta-band .bt-btn, .bt-hero-actions .bt-btn { width: 100%; }
  .bt-cookie-actions .bt-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
