/*
Theme Name: CA5 Rakebit Style (ACF) — Canada
Theme URI: https://example.com/
Author: Your Team
Description: Dark casino landing with hero, promos, category pills, multiple game rows, payouts table, SEO + FAQ. ACF Options-driven. Canada locale. Fast.
Version: 1.0.0
Text Domain: ca5-rakebit-ca
Requires at least: 6.0
Requires PHP: 8.0
License: GPLv2 or later
*/

:root{
  --bg0:#070a0f;
  --bg1:#080c13;
  --panel:#0f1522;
  --panel2:#0c121f;
  --soft:#121a2b;
  --line: rgba(255,255,255,.08);

  --text:#eef3ff;
  --muted: rgba(238,243,255,.72);

  --teal:#19e0d1;
  --teal2:#11c9bc;
  --violet:#8b5cf6;
  --pink:#ff4fd8;
  --gold:#ffd36a;

  --radius: 16px;
  --radius2: 22px;

  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --shadow2: 0 12px 28px rgba(25,224,209,.10);

  --wrap: 1180px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  --display: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 650px at 70% 10%, rgba(139,92,246,.12), transparent 60%),
    radial-gradient(900px 520px at 20% 20%, rgba(25,224,209,.10), transparent 56%),
    radial-gradient(800px 520px at 50% 90%, rgba(255,79,216,.05), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 3px solid rgba(25,224,209,.75);
  outline-offset: 2px;
  border-radius: 12px;
}
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;
}
.wrap{
  max-width: var(--wrap);
  margin:0 auto;
  padding: 0 16px;
}

/* Buttons + link states */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing:.2px;
  border: 1px solid transparent;
  background: transparent;
  cursor:pointer;
  transition: transform .12s ease, filter .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active{ transform: translateY(1px) scale(.99); }

.btn--ghost{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
  color: rgba(238,243,255,.92);

}
.btn--ghost:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(25,224,209,.22);
}

.btn--teal{
  background: linear-gradient(180deg, var(--teal), var(--teal2));
  color: #041012;
  box-shadow: var(--shadow2);
}
.btn--teal:hover{ filter: brightness(1.05); }

.btn--soft{
  background: rgba(15,21,34,.85);
  border-color: rgba(255,255,255,.10);
}
.btn--soft:hover{ border-color: rgba(25,224,209,.20); }

.link{
  color: rgba(238,243,255,.92);
  text-decoration: underline;
  text-decoration-color: rgba(25,224,209,.38);
  text-underline-offset: 3px;
}
.link:hover{ text-decoration-color: rgba(25,224,209,.85); }
.link:active{ opacity:.88; }

/* Header */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(8,10,16,.72);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 170px;
}
.brand__logo{ height: 30px; width:auto; }
.brand__text{
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.6px;
  text-transform: uppercase;
  color: var(--teal);
}
.hsearch{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  min-width: 280px;
}
.hsearch__icon{ opacity:.75; }
.hsearch__input{
  width: 100%;
  border:0;
  outline:none;
  background: transparent;
  color: rgba(238,243,255,.92);
  font-weight: 850;
}
.hsearch__input::placeholder{ color: rgba(238,243,255,.55); }

.hright{
  display:flex;
  align-items:center;
  gap: 8px;
  min-width: 260px;
  justify-content:flex-end;
}
.locale{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 900;
  font-size: 13px;
  color: rgba(238,243,255,.86);
}
.flag{ display:block; border-radius: 2px; box-shadow: 0 4px 10px rgba(0,0,0,.35); }

.nav-toggle{
  display:none;
  width: 44px; height:44px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.nav-toggle__bars{
  display:block;
  width:18px; height:2px;
  background: var(--text);
  margin: 0 auto;
  position:relative;
}
.nav-toggle__bars::before,.nav-toggle__bars::after{
  content:"";
  position:absolute; left:0; right:0;
  height:2px; background: var(--text);
}
.nav-toggle__bars::before{ top:-6px; }
.nav-toggle__bars::after{ top:6px; }

.hnav{ display:flex; justify-content:center; flex: 1 1 auto; }
.hnav__list{
  list-style:none; margin:0; padding:0;
  display:flex; align-items:center; gap: 8px;
  overflow:auto; scrollbar-width:none;
}
.hnav__list::-webkit-scrollbar{ display:none; }

.navpill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
}
.navpill:hover{ background: rgba(25,224,209,.08); border-color: rgba(25,224,209,.22); }
.navpill__icon svg{ width:16px; height:16px; fill: currentColor; opacity:.9; display:block; }

@media (max-width: 1040px){
  .hsearch{ display:none; }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .hnav{ position: fixed; left: 14px; right: 14px; top: 70px; display:none; }
  .hnav.is-open{ display:block; }
  .hnav__list{
    flex-direction: column;
    background: rgba(8,10,16,.92);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    max-height: 70vh;
    overflow:auto;
  }
}

/* Sections */
.section{ padding: 12px 0; }

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0 10px;
}
.section-head__title{
  margin:0;
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.25px;
  text-transform: uppercase;
  font-size: 16px;
  color: rgba(238,243,255,.92);
}
.section-head__more{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: rgba(238,243,255,.72);
  font-weight: 900;
  font-size: 13px;
  border-bottom: 1px solid rgba(25,224,209,.25);
}
.section-head__more:hover{ color:#fff; border-bottom-color: rgba(25,224,209,.65); }

/* Hero (banner + mini promos) */
.hero{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px;
}
@media (min-width: 980px){
  .hero__grid{ grid-template-columns: 1.35fr .65fr; }
}
.hero__banner{
  position: relative;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  min-height: 190px;
  background: rgba(255,255,255,.02);
}
.hero__bg{
  position:absolute; inset:0;
  background-size: cover;
  background-position:center;
  opacity:.92;
  filter: saturate(1.1) contrast(1.05);
}
.hero__overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 360px at 40% 30%, rgba(25,224,209,.16), transparent 60%),
    radial-gradient(900px 520px at 85% 20%, rgba(139,92,246,.18), transparent 58%),
    linear-gradient(90deg, rgba(0,0,0,.66), rgba(0,0,0,.12));
}
.hero__content{
  position:relative;
  padding: 16px;
}
.hero__title{
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.3px;
  text-transform: none;
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.08;
}
.hero__sub{
  margin: 0 0 12px;
  color: rgba(238,243,255,.76);
  font-weight: 750;
  line-height: 1.55;
  max-width: 620px;
}
.hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.hero__fine{
  margin: 12px 0 0;
  color: rgba(238,243,255,.60);
  font-size: 12px;
}

.hero__promos{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.promo{
  position:relative;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  min-height: 86px;
}
.promo img{ width:100%; height: 110px; object-fit: cover; }
.promo__overlay{
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.10));
}
.promo__meta{
  position:absolute; left:12px; right:12px; bottom:10px;
  display:flex; justify-content:space-between; align-items:flex-end; gap:10px;
}
.promo__title{
  margin:0;
  font-weight: 1000;
  letter-spacing:.2px;
  text-transform: none;
  font-size: 13px;
}
.promo__tag{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(25,224,209,.14);
  border: 1px solid rgba(25,224,209,.25);
  font-weight: 950;
  font-size: 12px;
  color: rgba(238,243,255,.92);
}

/* Category pills */
.cats{
  display:flex;
  gap: 10px;
  overflow:auto;
  padding: 2px 2px 8px;
  margin: 0;
  list-style:none;
  scrollbar-width:none;
}
.cats::-webkit-scrollbar{ display:none; }
.cat{
  flex: 0 0 auto;
}
.cat__a{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-weight: 950;
  font-size: 13px;
  white-space: nowrap;
}
.cat__a:hover{
  background: rgba(25,224,209,.08);
  border-color: rgba(25,224,209,.22);
}
.cat__icon svg{ width:18px; height:18px; fill: currentColor; opacity:.92; display:block; }

/* Rows of game cards */
.row{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
}
.row__view{
  overflow:auto;
  scroll-snap-type: x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling: touch;
}
.row__view::-webkit-scrollbar{ display:none; }
.row__track{
  display:flex;
  gap: 10px;
  padding: 12px;
}
.gcard{
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 150px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  overflow:hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}
.gcard__img{
  width:100%;
  height: 100px;
  object-fit: cover;
  background: rgba(255,255,255,.03);
}
.gcard__body{
  padding: 10px;
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.gcard__title{
  margin:0;
  font-weight: 950;
  font-size: 12px;
  line-height: 1.25;
}
.gcard__sub{
  margin:0;
  color: rgba(238,243,255,.66);
  font-weight: 800;
  font-size: 11px;
}
.gbadge{
  display:inline-flex;
  align-self:flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,79,216,.12);
  border: 1px solid rgba(255,79,216,.22);
  font-weight: 950;
  font-size: 11px;
  color: rgba(238,243,255,.92);
}

/* Payouts table area */
.payouts{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.payouts__top{
  padding: 14px 14px 0;
}
.tabs{
  display:flex; gap:8px; flex-wrap:wrap;
  margin: 10px 0 0;
}
.tab{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(238,243,255,.86);
  font-weight: 900;
  cursor:pointer;
}
.tab[aria-selected="true"]{
  background: rgba(25,224,209,.14);
  border-color: rgba(25,224,209,.25);
  color: rgba(238,243,255,.95);
}
.payrow{
  display:flex; gap:10px; overflow:auto;
  padding: 12px 12px 2px;
  scrollbar-width:none;
}
.payrow::-webkit-scrollbar{ display:none; }
.payicon{
  flex: 0 0 auto;
  width: 96px; height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  display:grid;
  place-items:center;
}
.payicon img{ width: 60px; height: 24px; object-fit: contain; opacity:.92; }

.tablebox{ padding: 8px 12px 14px; }
.table{
  width:100%;
  border-collapse: collapse;
  border-radius: 16px;
  overflow:hidden;
}
.table th, .table td{
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
}
.table th{
  text-align:left;
  font-weight: 1000;
  color: rgba(238,243,255,.82);
  background: rgba(255,255,255,.03);
}
.table td{ color: rgba(238,243,255,.84); font-weight: 750; }
.table tr:hover td{ background: rgba(25,224,209,.05); }

.payout{ color: rgba(25,224,209,.95); font-weight: 1000; }
.small{ color: rgba(238,243,255,.62); font-weight: 800; font-size: 12px; }

/* SEO + FAQ */
.seo{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  padding: 16px;
}
@media (min-width: 980px){ .seo{ padding: 22px; } }
.seo__title{
  margin:0 0 10px;
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.25px;
  text-transform: uppercase;
}

.faq{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 980px){ .faq{ grid-template-columns: 1fr 1fr; } }
.qa{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 14px;
}
.qa__q{
  margin:0 0 8px;
  font-weight: 1000;
  font-family: var(--display);
  letter-spacing:.2px;
}
.qa__a{ margin:0; color: rgba(238,243,255,.72); line-height: 1.6; font-weight: 750; }

/* Internal page head + breadcrumbs + content styles (lists, tables, link states) */
.page-head{ padding: 16px 0 8px; }
.page-title{
  margin:0 0 10px;
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.25px;
  text-transform: uppercase;
  font-size: clamp(22px, 3.2vw, 34px);
}
.breadcrumbs__list{
  display:flex; flex-wrap:wrap; gap:8px;
  list-style:none; margin:0; padding:0;
  color: rgba(238,243,255,.70);
  font-weight: 850;
  font-size: 13px;
}
.breadcrumbs__item::after{ content:"/"; margin-left:8px; opacity:.45; }
.breadcrumbs__item:last-child::after{ content:""; }
.breadcrumbs__link{
  color: rgba(238,243,255,.82);
  border-bottom: 1px solid rgba(25,224,209,.25);
}
.breadcrumbs__link:hover{ color:#fff; border-bottom-color: rgba(25,224,209,.65); }
.breadcrumbs__current{ color: rgba(238,243,255,.92); }

.prose{
  max-width: 920px;
  color: rgba(238,243,255,.86);
}
.prose h2,.prose h3,.prose h4{
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.2px;
  text-transform: uppercase;
  margin: 22px 0 10px;
}
.prose h2{ font-size: 22px; }
.prose h3{ font-size: 18px; }
.prose h4{ font-size: 16px; }
.prose p{ margin: 0 0 12px; line-height: 1.7; color: rgba(238,243,255,.80); }
.prose a{
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(25,224,209,.42);
  text-underline-offset: 3px;
}
.prose a:hover{ text-decoration-color: rgba(25,224,209,.86); }
.prose a:active{ opacity:.88; }
.prose ul,.prose ol{ margin: 0 0 14px 18px; padding:0; }
.prose li{ margin: 6px 0; }
.prose table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 12px 0 18px;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.prose th,.prose td{ padding: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.prose th{ background: rgba(25,224,209,.10); color: rgba(238,243,255,.95); }
.prose tr:last-child td{ border-bottom: none; }

/* Footer */
.site-footer{
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  padding: 22px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 980px){
  .footer-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.fcol__title{
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing:.2px;
  font-size: 13px;
}
.flinks{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.flinks__link{
  color: rgba(238,243,255,.72);
  font-weight: 850;
  font-size: 13px;
}
.flinks__link:hover{ color:#fff; text-decoration: underline; text-decoration-color: rgba(25,224,209,.5); }

.footer-note{
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: rgba(238,243,255,.60);
  font-size: 12px;
  line-height: 1.6;
}
.footer-note__copy{ color: rgba(238,243,255,.52); font-weight: 850; }
