/* ============================================================
   Nine Casino — Canada review/landing
   Palette: midnight plum + violet + gold
   ============================================================ */

:root {
  --plum:   #14101f;
  --plum-2: #1b1430;
  --surf:   #1e1830;
  --surf-2: #251d3d;
  --violet: #7c4dff;
  --violet-d:#5c34d6;
  --gold:   #e8b54a;
  --gold-d: #c8932a;
  --light:  #f3eefb;
  --muted:  #a89cc4;
  --line:   rgba(168,156,196,0.18);
  --radius: 16px;
  --shadow: 0 18px 40px rgba(0,0,0,0.45);
  --maxw:   1180px;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124,77,255,0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(232,181,74,0.10), transparent 55%),
    var(--plum);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; }
p  { margin: 0 0 1.1em; color: #ece6f7; }
.lead { font-size: 1.18rem; color: var(--light); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer;
  padding: 15px 30px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  color: #1a1206;
  box-shadow: 0 10px 26px rgba(232,181,74,0.35);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); text-decoration: none; }
.btn-ghost {
  background: rgba(124,77,255,0.16);
  color: var(--light);
  border: 1px solid var(--violet);
}
.btn-ghost:hover { background: rgba(124,77,255,0.30); text-decoration: none; transform: translateY(-2px); }
.btn-lg { padding: 18px 38px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,16,31,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--light); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surf); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 999px;
  font-size: .9rem; color: var(--muted); font-weight: 600;
}
.chip b { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-offer {
  position: absolute; left: -18px; bottom: -18px;
  background: linear-gradient(135deg, var(--violet), var(--violet-d));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow);
}
.hero-offer span { display: block; font-size: .78rem; color: #e8defc; letter-spacing: .1em; text-transform: uppercase; }
.hero-offer strong { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-alt { background: linear-gradient(180deg, rgba(37,29,61,0.55), rgba(20,16,31,0)); }

/* ---------- Quick facts table ---------- */
.table-scroll {
  background: var(--surf);
  border-radius: var(--radius);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* momentum scroll on iOS */
  scrollbar-width: thin;
  scrollbar-color: var(--violet) transparent;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-track { background: transparent; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 999px; }
.facts { width: 100%; border-collapse: collapse; background: transparent; }
.facts th, .facts td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: .98rem; }
.facts th { color: var(--muted); font-weight: 600; width: 38%; font-family: var(--font-display); white-space: nowrap; }
.facts td { color: var(--light); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: none; }

@media (max-width: 620px) {
  .facts { min-width: 560px; } /* forces horizontal overflow so the row can be scrolled */
  .facts th, .facts td { white-space: nowrap; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.card {
  background: var(--surf); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { color: var(--light); }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(124,77,255,0.2); color: var(--gold);
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  margin-bottom: 14px;
}
.media-card img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Bonus block ---------- */
.bonus-list { list-style: none; padding: 0; margin: 0 0 24px; }
.bonus-list li { padding: 12px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 16px; }
.bonus-list li:last-child { border-bottom: none; }
.bonus-list .k { color: var(--muted); }
.bonus-list .v { color: var(--gold); font-weight: 700; font-family: var(--font-display); }

/* ---------- Games ---------- */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.game { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surf); }
.game img { width: 100%; height: auto; }
.game .game-body { padding: 14px 16px; }
.game .game-body span { color: var(--muted); font-size: .85rem; }
.strip { margin-top: 26px; }
.strip img { border-radius: 14px; width: 100%; }

/* ---------- Pros / Cons ---------- */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pc .card { padding: 26px 28px; }
.pc ul { list-style: none; padding: 0; margin: 0; }
.pc li { padding: 9px 0 9px 30px; position: relative; }
.pc .pros li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.pc .cons li::before { content: "•"; position: absolute; left: 4px; color: var(--violet); font-size: 1.4rem; line-height: 1; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surf); border: 1px solid var(--line);
  border-radius: 14px; padding: 4px 22px; margin-bottom: 14px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(124,77,255,0.30), rgba(232,181,74,0.18));
  border: 1px solid var(--line); border-radius: 22px;
  padding: 48px; text-align: center;
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { max-width: 640px; margin: 0 auto 26px; color: var(--light); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; background: var(--plum-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { font-family: var(--font-display); color: var(--light); margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--light); }
.footer-note { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold);
  font-family: var(--font-display); font-weight: 800; margin-right: 12px; flex: 0 0 auto;
}
.rg { display: flex; align-items: center; gap: 4px; margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .games-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .hero-media { order: -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .pc, .games-grid, .footer-grid { grid-template-columns: 1fr; }
  .header-cta .btn { padding: 12px 20px; }
  .cta-banner { padding: 32px 22px; }
  .hero-offer { position: static; margin-top: 16px; display: inline-block; }
}

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

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
