/*
Theme Name: CA4 Kryptosino (ACF) — Canada
Theme URI: https://example.com/
Author: Your Team
Description: Dark casino landing with promos, game carousels, providers, mega hero, latest wins table. ACF Options-driven. Canada locale. Fast.
Version: 1.0.0
Text Domain: ca4-kryptosino-ca
Requires at least: 6.0
Requires PHP: 8.0
License: GPLv2 or later
*/

:root{
  --bg0:#070b13;
  --bg1:#060a12;
  --panel:#0d1220;
  --panel2:#0b1020;
  --soft:#10182a;
  --line: rgba(255,255,255,.08);

  --text:#eef2ff;
  --muted: rgba(238,242,255,.70);

  --red:#ff2b2b;
  --red2:#ff4d4d;
  --blue:#2b6bff;
  --cyan:#19d3ff;

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

  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --shadow2: 0 12px 28px rgba(255,43,43,.12);

  --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(1100px 600px at 70% 10%, rgba(43,107,255,.10), transparent 60%),
    radial-gradient(900px 520px at 20% 20%, rgba(255,43,43,.10), transparent 56%),
    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,211,255,.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 */
.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,242,255,.92);
}
.btn--ghost:hover{ background: rgba(255,255,255,.07); border-color: rgba(255,43,43,.22); }
.btn--red{
  background: linear-gradient(180deg, var(--red2), var(--red));
  color: #0a0c10;
  box-shadow: var(--shadow2);
}
.btn--red:hover{ filter: brightness(1.05); }
.btn--soft{
  background: rgba(13,18,32,.85);
  border-color: rgba(255,255,255,.10);
}
.btn--soft:hover{ border-color: rgba(255,43,43,.20); }

.link{
  color: rgba(238,242,255,.92);
  text-decoration: underline;
  text-decoration-color: rgba(255,43,43,.38);
  text-underline-offset: 3px;
}
.link:hover{ text-decoration-color: rgba(255,43,43,.82); }
.link:active{ opacity:.88; }

/* Header */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(7,10,18,.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: 160px;
}
.brand__logo{ height: 30px; width:auto; }
.brand__text{
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.6px;
  text-transform: uppercase;
  color: var(--red2);
}
.hleft{
  display:flex;
  align-items:center;
  gap: 12px;
}
.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: 220px;
}
.hsearch__icon{ opacity:.75; }
.hsearch__input{
  width: 100%;
  border:0;
  outline:none;
  background: transparent;
  color: rgba(238,242,255,.92);
  font-weight: 800;
}
.hsearch__input::placeholder{ color: rgba(238,242,255,.55); }

.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(255,43,43,.08);
  border-color: rgba(255,43,43,.22);
}
.navpill__icon svg{ width:16px; height:16px; fill: currentColor; opacity:.9; display:block; }

.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,242,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; }

@media (max-width: 1020px){
  .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(7,10,18,.92);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    max-height: 70vh;
    overflow:auto;
  }
}

/* Layout 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,242,255,.92);
}
.section-head__more{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: rgba(238,242,255,.72);
  font-weight: 900;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,43,43,.25);
}
.section-head__more:hover{ color:#fff; border-bottom-color: rgba(255,43,43,.65); }

/* Promo slider */
.promo{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.promo__view{
  overflow:auto;
  scroll-snap-type: x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling: touch;
}
.promo__view::-webkit-scrollbar{ display:none; }
.promo__track{
  display:flex;
  gap: 10px;
  padding: 12px;
}
.promo__slide{
  scroll-snap-align: start;
  flex: 0 0 88%;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  min-height: 120px;
  position:relative;
}
@media (min-width: 980px){
  .promo__slide{ flex-basis: calc(33.333% - 7px); }
}
.promo__slide img{ width:100%; height:140px; 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: 14px;
  bottom: 12px;
  right: 14px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
}
.promo__title{
  margin:0;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing:.2px;
  font-size: 14px;
}
.promo__tag{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,43,43,.14);
  border: 1px solid rgba(255,43,43,.30);
  color: rgba(238,242,255,.92);
  font-weight: 900;
  font-size: 12px;
}
.promo__controls{
  display:flex;
  justify-content:flex-end;
  gap: 8px;
  padding: 0 12px 12px;
}
.iconbtn{
  width: 42px; height:42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(238,242,255,.92);
  cursor:pointer;
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
}
.iconbtn:hover{ background: rgba(255,43,43,.08); border-color: rgba(255,43,43,.20); }
.iconbtn:active{ transform: translateY(1px); }

/* Horizontal row cards (games/wins/providers) */
.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;
}
.card{
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 140px;
  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);
}
.card__img{
  width:100%;
  height: 92px;
  object-fit: cover;
  background: rgba(255,255,255,.03);
}
.card__body{
  padding: 10px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.card__title{
  margin:0;
  font-weight: 950;
  font-size: 12px;
  line-height: 1.25;
}
.card__sub{
  margin:0;
  color: rgba(238,242,255,.68);
  font-weight: 800;
  font-size: 11px;
}
.badge-money{
  color: rgba(255,43,43,.95);
  font-weight: 1000;
  font-size: 12px;
}

/* Providers logos */
.logo{
  width: 140px;
  height: 54px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.logo img{ width: 96px; height: 24px; object-fit: contain; opacity:.92; }

/* Mega hero */
.mega{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.mega__bg{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position:center;
  opacity: .95;
}
.mega__overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 520px at 40% 30%, rgba(43,107,255,.18), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
}
.mega__inner{
  position:relative;
  padding: 26px 16px;
  text-align:center;
}
@media (min-width: 980px){
  .mega__inner{ padding: 44px 22px; }
}
.mega__kicker{
  margin:0 0 10px;
  font-weight: 950;
  color: rgba(238,242,255,.82);
}
.mega__value{
  margin:0;
  font-family: var(--display);
  font-weight: 1000;
  letter-spacing:.4px;
  text-transform: uppercase;
  font-size: clamp(44px, 7vw, 86px);
  color: rgba(255,43,43,.98);
  text-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.mega__note{
  margin: 8px 0 0;
  color: rgba(238,242,255,.78);
  font-weight: 800;
}

/* Payments row (icons) */
.payicon{
  width: 92px;
  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; }

/* SEO box */
.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;
  text-transform: uppercase;
  letter-spacing:.25px;
}
.seo__actions{ margin-top: 12px; }
.seo__more{ display:inline-flex; }

/* Latest wins table */
.tablebox{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.table{
  width:100%;
  border-collapse: collapse;
}
.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
}
.table th{
  text-align:left;
  font-weight: 1000;
  color: rgba(238,242,255,.82);
  background: rgba(255,255,255,.03);
}
.table td{ color: rgba(238,242,255,.84); font-weight: 750; }
.table tr:hover td{ background: rgba(255,43,43,.04); }
.small{ color: rgba(238,242,255,.62); font-weight: 800; font-size: 12px; }
.payout{ color: rgba(255,43,43,.95); font-weight: 1000; }
.gamecell{
  display:flex;
  align-items:center;
  gap: 10px;
}
.gamecell__thumb{
  width: 32px; height:32px;
  border-radius: 10px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.gamecell__thumb img{ width:100%; height:100%; object-fit: cover; }

/* Internal pages */
.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,242,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,242,255,.82);
  border-bottom: 1px solid rgba(255,43,43,.25);
}
.breadcrumbs__link:hover{ color:#fff; border-bottom-color: rgba(255,43,43,.65); }
.breadcrumbs__current{ color: rgba(238,242,255,.92); }

.prose{
  max-width: 920px;
  color: rgba(238,242,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,242,255,.80); }
.prose a{
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,43,43,.42);
  text-underline-offset: 3px;
}
.prose a:hover{ text-decoration-color: rgba(255,43,43,.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(255,43,43,.10); color: rgba(238,242,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(5, 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,242,255,.72);
  font-weight: 850;
  font-size: 13px;
}
.flinks__link:hover{ color:#fff; text-decoration: underline; text-decoration-color: rgba(255,43,43,.5); }

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