/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Neutral warm-stone palette — exact RGB values from original stonevegas CSS vars */
  --n-50:  245 226 214;  /* text-primary (warm cream)  */
  --n-200: 206 173 145;  /* text-secondary (warm tan)  */
  --n-500: 174 121 90;   /* text-muted / btn gradient  */
  --n-600: 114 83  67;   /* mid brown                  */
  --n-700: 91  69  56;   /* dark warm                  */
  --n-800: 67  51  41;   /* body bg  #433329            */
  --n-850: 61  46  35;   /* card hover #3d2e23          */
  --n-900: 51  39  31;   /* sidebar #33271f             */
  --n-925: 43  33  26;   /* card bg  #2b211a            */
  --n-950: 38  29  23;   /* header   #261d17            */
  --n-1100:39  27  26;   /* near-black #271b1a          */

  /* Brand reddish-brown */
  --brand-400: 135 82 81;
  --brand-450: 102 61 60;
  --brand-990: 54  42  34;

  /* Semantic — corrected to match original */
  --bg-body:       rgb(var(--n-800));   /* #433329 */
  --bg-sidebar:    rgb(var(--n-900));   /* #33271f — neutral-900 per original backdrop CSS */
  --bg-header:     rgb(var(--n-950));   /* #261d17 */
  --bg-card:       rgb(var(--n-925));   /* #2b211a */
  --bg-card-hover: rgb(var(--n-850));   /* #3d2e23 */

  /* Text — exact original semantic vars */
  --text-primary:   rgb(var(--n-50));        /* #f5e2d6 warm cream (neutral-50) */
  --text-secondary: rgb(var(--n-200));       /* #cead91 warm tan  (neutral-200) */
  --text-muted:     rgb(var(--n-600));       /* #735343            (neutral-600) */
  --text-accent:    rgb(195 74 0);           /* #c34a00 orange-100               */
  --text-accent2:   rgb(241 145 0);          /* #f19100 yellow-600               */

  /* Green CTA buttons */
  --btn-primary-from: rgb(168 220 78);
  --btn-primary-to:   rgb(35  139 0);

  --border:       rgba(245,226,214,0.08);
  --border-brand: rgba(195,74,0,0.25);

  --sidebar-w:    78px;
  --sidebar-open: 234px;
  --header-h:     64px;
  --radius:       8px;
}

html { font-size: 16px; }
body {
  font-family: 'Fira Sans Condensed', 'Segoe UI', sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3, h4, .logo-text, .section__title, .cats-tab, .btn-signup, .btn-login {
  font-family: 'Boogaloo', sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }

/* ── LAYOUT ── */
.layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-h);
}

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 200;
}
.header__burger {
  width: 40px; height: 40px;
  display: flex; flex-direction: column;
  justify-content: center; gap: 5px;
  flex-shrink: 0; border-radius: 8px;
  transition: background .2s;
}
.header__burger:hover { background: rgba(245,226,214,0.06); }
.header__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.header__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.open span:nth-child(2) { opacity: 0; }
.header__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header__logo {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.header__logo img { height: 36px; width: auto; }
.header__logo-text {
  font-family: 'Boogaloo', sans-serif;
  font-size: 1.3rem; font-weight: 400;
  color: var(--text-accent);
  letter-spacing: .02em;
}

.header__nav {
  display: flex; align-items: center; gap: 2px;
  margin-left: 8px; overflow: hidden;
}
.header__nav a {
  font-family: 'Fira Sans Condensed', sans-serif;
  padding: 6px 11px; border-radius: 6px;
  font-size: .88rem; font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.header__nav a:hover { color: var(--text-primary); background: rgba(245,226,214,0.06); }
.header__nav a.active { color: var(--text-accent); }

.header__spacer { flex: 1; }

.header__search {
  display: flex; align-items: center;
  background: rgba(245,226,214,0.05);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 0 12px;
  gap: 8px; height: 36px;
}
.header__search input {
  background: none; border: none; outline: none;
  color: var(--text-primary);
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: .88rem; width: 140px;
}
.header__search input::placeholder { color: var(--text-muted); }
.header__search svg { color: var(--text-muted); flex-shrink: 0; }

.header__actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Login = warm brown gradient */
.btn-login {
  font-family: 'Boogaloo', sans-serif;
  padding: 0 18px; height: 36px; border-radius: 6px;
  background: linear-gradient(180deg, rgb(var(--n-500)) 0%, rgb(var(--n-700)) 100%);
  color: var(--text-primary); font-size: 1rem; font-weight: 400;
  display: flex; align-items: center;
  border: none;
  transition: opacity .2s;
}
.btn-login:hover { opacity: .85; }

/* Sign up = green gradient */
.btn-signup {
  font-family: 'Boogaloo', sans-serif;
  padding: 0 18px; height: 36px; border-radius: 6px;
  background: linear-gradient(180deg, var(--btn-primary-from) 0%, var(--btn-primary-to) 100%);
  color: #fff; font-size: 1rem; font-weight: 400;
  display: flex; align-items: center;
  border: none;
  transition: opacity .2s;
}
.btn-signup:hover { opacity: .88; }

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  top: var(--header-h); left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: width .5s cubic-bezier(.4,0,.2,1);
  z-index: 150;
}
.sidebar.open { width: var(--sidebar-open); }

.sidebar__nav {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 6px; flex: 1;
  overflow-y: auto; overflow-x: hidden;
}
.sidebar__nav::-webkit-scrollbar { width: 3px; }
.sidebar__nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.sidebar__link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: .9rem; font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap; overflow: hidden;
  transition: background .2s, color .2s;
  min-width: 0;
}
.sidebar__link:hover { background: rgba(245,226,214,0.07); color: var(--text-primary); }
.sidebar__link.active { background: rgba(195,74,0,0.18); color: var(--text-accent); }
.sidebar__link svg { flex-shrink: 0; }
.sidebar__link-label { opacity: 0; transition: opacity .2s; pointer-events: none; }
.sidebar.open .sidebar__link-label { opacity: 1; }

.sidebar__divider {
  height: 1px; background: var(--border);
  margin: 6px 10px; flex-shrink: 0;
}

/* Sidebar promo */
.sidebar__promo-wrap {
  display: none;
  margin: 8px 10px 12px;
  flex-shrink: 0;
}
.sidebar.open .sidebar__promo-wrap { display: block; }
.sidebar__promo {
  background: rgba(195,74,0,0.15);
  border: 1px solid var(--border-brand);
  border-radius: 12px;
  padding: 14px;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.sidebar__promo-title {
  font-family: 'Boogaloo', sans-serif;
  font-size: .95rem; color: var(--text-accent);
  margin-bottom: 3px;
}
.sidebar__promo-sub {
  font-size: .72rem; color: var(--text-secondary);
  margin-bottom: 12px;
}
.sidebar__promo-btns { display: flex; gap: 6px; width: 100%; }
.btn-login-sm {
  flex: 1; height: 30px; border-radius: 6px;
  font-family: 'Boogaloo', sans-serif;
  font-size: .85rem; font-weight: 400;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgb(var(--n-500)) 0%, rgb(var(--n-700)) 100%);
  color: var(--text-primary);
  transition: opacity .2s;
}
.btn-login-sm:hover { opacity: .85; }
.btn-signup-sm {
  flex: 1; height: 30px; border-radius: 6px;
  font-family: 'Boogaloo', sans-serif;
  font-size: .85rem; font-weight: 400;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--btn-primary-from) 0%, var(--btn-primary-to) 100%);
  color: #fff;
  transition: opacity .2s;
}
.btn-signup-sm:hover { opacity: .88; }

/* ── SIDEBAR OVERLAY ── */
.sidebar-overlay {
  display: none; position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(0,0,0,0.55);
  z-index: 140;
}
.sidebar-overlay.active { display: block; }

/* ── MAIN ── */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  transition: margin-left .5s cubic-bezier(.4,0,.2,1);
}
.sidebar.open ~ .main { margin-left: var(--sidebar-open); }

/* ── HERO / VIDEO BANNER ── */
.hero {
  position: relative;
  height: 460px;
  overflow: hidden;
  background: rgb(var(--n-1100));
}
.hero__video {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(38,29,23,0.92) 0%,
    rgba(38,29,23,0.55) 45%,
    rgba(38,29,23,0.05) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  height: 100%; display: flex;
  flex-direction: column; justify-content: center;
  padding: 0 48px; max-width: 520px;
}
.hero__tag {
  font-family: 'Fira Sans Condensed', sans-serif;
  display: inline-block;
  background: var(--text-accent);
  color: #fff; font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
  margin-bottom: 12px; align-self: flex-start;
}
.hero__h1 {
  font-family: 'Boogaloo', sans-serif;
  font-size: 2.4rem; font-weight: 400;
  line-height: 1.15; margin-bottom: 10px;
  color: var(--text-primary);
}
.hero__amount {
  font-family: 'Boogaloo', sans-serif;
  font-size: 2.8rem; font-weight: 400;
  color: var(--text-accent); line-height: 1; margin-bottom: 6px;
}
.hero__spins {
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: 1.05rem; color: var(--text-secondary);
  margin-bottom: 24px;
}
.hero__btn {
  font-family: 'Boogaloo', sans-serif;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--btn-primary-from) 0%, var(--btn-primary-to) 100%);
  color: #fff; font-size: 1.1rem; font-weight: 400;
  padding: 0 32px; height: 46px; border-radius: 8px;
  align-self: flex-start;
  transition: opacity .2s, transform .15s;
}
.hero__btn:hover { opacity: .88; transform: translateY(-1px); }

/* ── PROMO CARDS ── */
.promos { padding: 24px 20px 8px; display: flex; gap: 14px; }
.promo-card {
  flex: 1; min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 290px;
  background: var(--bg-card);
}
.promo-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.promo-card:hover .promo-card__img { transform: scale(1.04); }
.promo-card__body {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.70) 55%, rgba(0,0,0,0.92) 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 16px;
}
.promo-card__tag {
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: .65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: rgb(var(--n-100));
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}
.promo-card__title {
  font-family: 'Boogaloo', sans-serif;
  font-size: 1.4rem; font-weight: 400;
  color: #fff; line-height: 1.15;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}
.promo-card__desc {
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: .78rem; color: rgb(var(--n-100));
  margin-top: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

/* ── SECTION + TITLE DECORATOR ── */
.section { padding: 0 20px 16px; }

.section__head {
  position: relative;
  display: flex; align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 12px 0 16px;
  margin-bottom: 12px;
}
/* Stone texture backdrop */
.section__head::before {
  content: '';
  position: absolute;
  top: 0; left: -20px; right: -20px;
  height: 66px;
  background-image:
    linear-gradient(0deg, var(--bg-body) 15%, rgba(67,51,41,0.0) 50%),
    url('../images/title-decorator.webp');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: top left;
  z-index: 0;
}
/* Side vignettes */
.section__head::after {
  content: '';
  position: absolute;
  top: 0; left: -20px; right: -20px; height: 66px;
  background-image:
    linear-gradient(90deg, var(--bg-body) 0%, rgba(67,51,41,0.0) 5%),
    linear-gradient(270deg, var(--bg-body) 0%, rgba(67,51,41,0.0) 5%);
  background-position: left top, right top;
  background-size: 80px 100%, 80px 100%;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

.section__title {
  font-family: 'Boogaloo', sans-serif;
  font-size: 1.4rem; font-weight: 400;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
  position: relative; z-index: 2;
}
.section__title svg { color: var(--text-accent); }

.section__view-all {
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: .82rem; font-weight: 600;
  color: var(--text-accent);
  padding: 5px 14px; border-radius: 6px;
  border: 1px solid var(--border-brand);
  position: relative; z-index: 2;
  transition: background .2s;
}
.section__view-all:hover { background: rgba(195,74,0,0.12); }

/* ── CATEGORY TABS ── */
.cats-wrap { padding: 4px 20px 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.cats-tab {
  font-family: 'Boogaloo', sans-serif;
  padding: 5px 16px; border-radius: 20px;
  font-size: .95rem; font-weight: 400;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.cats-tab:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.cats-tab.active {
  color: var(--text-accent);
  background: rgba(195,74,0,0.14);
  border-color: rgba(195,74,0,0.4);
}

/* ── GAME GRID ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(198px, 1fr));
  gap: 12px;
}

/* ── GAME THUMB ── */
.game-thumb { border-radius: var(--radius); overflow: hidden; }
.game-thumb__img-wrap {
  position: relative;
  width: 100%; height: 289px;
  background: var(--bg-card);
}
.game-thumb__img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.game-thumb:hover .game-thumb__img-wrap img { transform: scale(1.06); }

.game-thumb__badge {
  position: absolute; top: 6px; left: 6px;
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: .62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 6px; border-radius: 4px; z-index: 2;
  pointer-events: none;
}
.badge--hot     { background: #c4300a; color: #fff; }
.badge--new     { background: linear-gradient(180deg, var(--btn-primary-from) 0%, var(--btn-primary-to) 100%); color: #fff; }
.badge--jackpot { background: rgb(var(--brand-400)); color: #fff; }

.game-thumb__overlay {
  position: absolute; inset: 0;
  background: rgba(38,29,23,0.72);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s; z-index: 3;
}
.game-thumb:hover .game-thumb__overlay { opacity: 1; }
.game-thumb__play {
  font-family: 'Boogaloo', sans-serif;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--btn-primary-from) 0%, var(--btn-primary-to) 100%);
  color: #fff; font-size: .9rem; font-weight: 400;
  padding: 8px 20px; border-radius: 6px;
  transition: opacity .2s, transform .15s;
}
.game-thumb__play:hover { opacity: .88; transform: scale(1.05); }

/* ── SEO ── */
.seo-wrap { padding: 32px 20px 24px; }
.seo-content {
  font-family: 'Fira Sans Condensed', sans-serif;
  color: var(--text-secondary);
  font-size: .88rem; line-height: 1.75;
  max-width: 900px; margin: 0 auto;
}
.seo-content h2 {
  font-family: 'Boogaloo', sans-serif;
  font-size: 1.3rem; font-weight: 400;
  color: var(--text-primary); margin: 20px 0 10px;
}
.seo-content h3 {
  font-family: 'Boogaloo', sans-serif;
  font-size: 1.05rem; font-weight: 400;
  color: var(--text-primary); margin: 14px 0 6px;
  cursor: pointer; user-select: none;
  padding: 10px 14px; background: var(--bg-card);
  border-radius: 8px; border: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.seo-content h3::after { content: '+'; font-size: 1.1rem; opacity: .6; }
.seo-content h3.faq-open::after { content: '−'; }
.seo-content h3 + p, .seo-content h3 + ul, .seo-content h3 + ol { display: none; padding: 8px 14px 2px; }
.seo-content h3.faq-open + p, .seo-content h3.faq-open + ul, .seo-content h3.faq-open + ol { display: block; }
.seo-content p { margin-bottom: 10px; }
.seo-content ul, .seo-content ol { padding-left: 20px; margin-bottom: 10px; }
.seo-content li { margin-bottom: 4px; }
.seo-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.seo-content th, .seo-content td {
  border: 1px solid rgba(245,226,214,0.12);
  padding: 10px 14px; text-align: left; vertical-align: top;
}
.seo-content th { font-weight: 600; color: var(--text-primary); background: rgba(245,226,214,0.05); }
.seo-content tr:nth-child(even) td { background: rgba(245,226,214,0.03); }

/* ── FOOTER ── */
.footer {
  background: rgb(var(--n-950));
  border-top: 1px solid var(--border);
  padding: 40px 20px 24px;
  margin-top: 16px;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px 20px;
  max-width: 1100px; margin: 0 auto;
}
.footer__col-title {
  font-family: 'Boogaloo', sans-serif;
  font-size: .95rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-accent); margin-bottom: 12px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__links a {
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: .85rem; color: var(--text-secondary);
  transition: color .2s;
}
.footer__links a:hover { color: var(--text-primary); }
.footer__bottom {
  border-top: 1px solid var(--border);
  margin-top: 32px; padding-top: 20px;
  max-width: 1100px; margin-left: auto; margin-right: auto;
}
.footer__payments {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; margin-bottom: 16px;
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: .8rem; color: var(--text-muted);
}
.footer__payment-badge {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 5px; padding: 4px 10px;
  font-size: .75rem; color: var(--text-secondary);
}
.footer__license {
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: .75rem; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 12px;
}
.footer__copy {
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: .75rem; color: var(--text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .5s cubic-bezier(.4,0,.2,1); }
  .sidebar.open { transform: translateX(0); width: var(--sidebar-open); }
  .main { margin-left: 0 !important; }
  .hero { height: 340px; }
  .hero__content { padding: 0 24px; }
  .hero__h1 { font-size: 1.8rem; }
  .hero__amount { font-size: 2.2rem; }
  .promos { flex-direction: column; }
  .header__nav { display: none; }
  .header__search { display: none; }
}

@media (max-width: 600px) {
  .hero { height: 280px; }
  .hero__content { padding: 0 16px; }
  .hero__h1 { font-size: 1.5rem; }
  .section { padding: 0 12px 14px; }
  .section__head::before, .section__head::after { left: -12px; right: -12px; }
  .cats-wrap { padding: 4px 12px 8px; }
  .promos { padding: 16px 12px 6px; }
  .footer { padding: 28px 12px 20px; }
}
