/* ============================================================
   7K "official site" doorway template — SKINNABLE
   ALL theme colors live in :root. Everything else uses var().
   Default skin: 7K dark + gold #f5c451 / red #e23b4e.
   ============================================================ */
:root{
  /* --- surfaces / structure --- */
  --bg: #120d08;   /* page background (deepest) */
  --bg2: #1b140c;   /* panels / sidebar background */
  --surface: #241a11;   /* cards / inputs */
  --surface2:  #351f27;   /* raised card / hover */
  --line: #3a2a1a;   /* borders / dividers */
  /* --- text --- */
  --text: #f6efe4;   /* primary text */
  --muted: #c3ac86;   /* secondary text */
  --faint:     #7d6670;   /* tertiary / captions */
  /* --- accents --- */
  --accent: #ffb02e;   /* gold — primary CTA / highlights */
  --accent-2: #d7263d;   /* red — login / live / alerts */
  --accent-ink: #231405;   /* ink on gold buttons */
  --accent-soft:rgba(245,196,81,.14);
  /* --- hero gradients (skin-specific) --- */
  --hero-grad: radial-gradient(120% 120% at 70% 20%, #d7263d 0%, #241a11 55%, #120d08 100%);
  --dw-grad: linear-gradient(135deg, #241a11 0%, #d7263d 100%);
  --jp-grad: linear-gradient(135deg, #241a11 0%, #ffb02e 100%);
  /* --- radii / shadow --- */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --shadow: 0 8px 24px rgba(0,0,0,.45);
  /* --- layout metrics --- */
  --sidebar-w: 230px;
  --maxw: 1240px;
  --gap: 16px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Unbounded", var(--font);
}

/* ============ RESET ============ */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  font-size:15px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--font-head); margin:0; line-height:1.2; }

/* ============ LAYOUT ============ */
.layout{
  display:grid;
  grid-template-columns:var(--sidebar-w) 1fr;
  max-width:var(--maxw);
  margin:0 auto;
  min-height:100vh;
}
.main{ min-width:0; padding:0 var(--gap) 40px; }

/* ============ SIDEBAR ============ */
.sidebar{
  background:var(--bg2);
  border-right:1px solid var(--line);
  padding:12px 10px 20px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.sidebar__promo,.sidebar__wheel{
  display:flex; align-items:center; gap:8px;
  padding:9px 12px; border-radius:var(--r);
  font-weight:600; font-size:13px;
  border:1px solid var(--line);
}
.sidebar__promo{ background:linear-gradient(90deg,var(--accent-soft),transparent); color:var(--accent); }
.sidebar__wheel{ background:var(--surface); color:var(--text); }
.sidebar__promo-ico,.sidebar__wheel-ico{ font-size:16px; }

.snav{ display:flex; flex-direction:column; gap:2px; margin-top:4px; }
.snav__item{
  display:flex; align-items:center; gap:10px;
  padding:9px 12px; border-radius:var(--r-sm);
  color:var(--muted); font-size:13.5px; font-weight:500;
  transition:background .15s,color .15s;
}
.snav__item:hover{ background:var(--surface); color:var(--text); }
.snav__item.is-active{ background:var(--accent-soft); color:var(--accent); font-weight:700; }
.snav__ico{ width:20px; text-align:center; font-size:15px; }

.sidebar__app{
  margin-top:auto;
  display:flex; align-items:center; gap:10px;
  padding:10px; border-radius:var(--r);
  background:var(--surface); border:1px solid var(--line);
}
.sidebar__app-ico{ font-size:22px; }
.sidebar__app-txt{ display:flex; flex-direction:column; }
.sidebar__app-txt b{ font-size:12.5px; }
.sidebar__app-txt small{ font-size:10.5px; color:var(--faint); }

/* ============ TOP BAR ============ */
.topbar{
  position:sticky; top:0; z-index:30;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:12px 2px;
  background:linear-gradient(var(--bg) 70%, transparent);
}
.topbar__left,.topbar__right{ display:flex; align-items:center; gap:12px; }
.brand__logo{ height:32px; width:auto; }
.burger{ display:none; flex-direction:column; gap:4px; width:34px; height:34px; align-items:center; justify-content:center; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-sm); cursor:pointer; }
.burger span{ display:block; width:16px; height:2px; background:var(--text); border-radius:2px; }

.seg{ display:flex; background:var(--surface); border:1px solid var(--line); border-radius:999px; padding:3px; }
.seg__btn{
  border:0; background:transparent; color:var(--muted);
  font-family:var(--font); font-weight:700; font-size:13px;
  padding:7px 16px; border-radius:999px; cursor:pointer;
}
.seg__btn.is-active{ background:var(--accent); color:var(--accent-ink); }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-weight:700; font-size:13.5px; padding:9px 18px;
  border-radius:var(--r-sm); cursor:pointer; border:1px solid transparent;
  white-space:nowrap; transition:filter .15s, background .15s;
}
.btn--sm{ padding:6px 12px; font-size:12px; }
.btn--gold{ background:var(--accent); color:var(--accent-ink); }
.btn--gold:hover{ filter:brightness(1.07); }
.btn--ghost{ background:transparent; color:var(--text); border-color:var(--line); }
.btn--ghost:hover{ background:var(--surface); }
.btn--red{ background:var(--accent-2); color:#fff; }

/* ============ PROMO STRIP ============ */
.promostrip{
  display:flex; align-items:center; gap:10px;
  padding:9px 14px; margin-bottom:var(--gap);
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r); font-size:13px; font-weight:600;
}
.promostrip__ico{ font-size:16px; }
.promostrip__cta{ margin-left:auto; color:var(--accent-ink); background:var(--accent); padding:5px 12px; border-radius:var(--r-sm); font-weight:700; }

/* ============ HERO ROW ============ */
.hero{
  display:grid;
  grid-template-columns:1fr 280px;
  grid-template-rows:auto auto;
  grid-template-areas:
    "slider dw"
    "slider jp";
  gap:var(--gap);
  margin-bottom:22px;
}
.hero__slider{ grid-area:slider; }
.hero__promo--dw{ grid-area:dw; }
.hero__promo--jp{ grid-area:jp; }

.slide{
  position:relative; overflow:hidden;
  min-height:300px; border-radius:var(--r-lg);
  background:var(--hero-grad);
  padding:34px 36px;
  display:flex; flex-direction:column; align-items:flex-start;
  box-shadow:var(--shadow);
}
.slide__tag{
  display:inline-block; background:var(--accent); color:var(--accent-ink);
  font-weight:800; font-size:11px; letter-spacing:.3px;
  padding:5px 12px; border-radius:999px; margin-bottom:14px;
}
.slide__title{ font-size:30px; font-weight:900; max-width:55%; }
.slide__sub{ color:var(--muted); font-size:15px; margin:10px 0 20px; max-width:50%; }
.slide__cta{ align-self:flex-start; }
.hero__art{
  position:absolute; right:-10px; bottom:0; top:0; margin:auto 0;
  height:92%; width:auto; max-width:48%; object-fit:contain;
  pointer-events:none; filter:drop-shadow(0 10px 24px rgba(0,0,0,.4));
}
.slide__dots{ position:absolute; left:36px; bottom:18px; display:flex; gap:7px; }
.dot{ width:8px; height:8px; border-radius:999px; background:rgba(255,255,255,.3); }
.dot.is-active{ background:var(--accent); width:20px; }

.hero__promo{
  position:relative; overflow:hidden;
  border-radius:var(--r-lg); padding:18px 20px;
  display:flex; flex-direction:column; gap:4px;
  box-shadow:var(--shadow); color:#fff;
}
.hero__promo--dw{ background:var(--dw-grad); }
.hero__promo--jp{ background:var(--jp-grad); }
.hero__promo-kicker{ font-size:12px; color:var(--muted); font-weight:600; }
.hero__promo--dw .hero__promo-kicker{ color:rgba(255,255,255,.75); }
.hero__promo-title{ font-family:var(--font-head); font-size:20px; font-weight:900; color:var(--accent); }
.hero__promo-sub{ font-size:12px; color:rgba(255,255,255,.7); }
.hero__promo-amount{ font-family:var(--font-head); font-weight:900; font-size:22px; color:#fff; margin:2px 0; }
.hero__promo-amount--jp{ color:var(--accent); font-size:26px; }
.hero__promo-crown{ position:absolute; right:14px; top:12px; font-size:26px; }
.hero__promo .btn{ margin-top:8px; align-self:flex-start; }

/* ============ CATEGORY TABS ============ */
.cats{
  display:flex; align-items:center; gap:12px;
  margin-bottom:18px; padding-bottom:10px;
  border-bottom:1px solid var(--line);
}
.cats__scroll{ display:flex; gap:6px; overflow-x:auto; flex:1; scrollbar-width:none; }
.cats__scroll::-webkit-scrollbar{ display:none; }
.cats__tab{
  white-space:nowrap; padding:7px 14px; border-radius:999px;
  font-size:13px; font-weight:600; color:var(--muted);
  background:var(--surface); border:1px solid transparent;
}
.cats__tab:hover{ color:var(--text); }
.cats__tab.is-active{ background:var(--accent-2); color:#fff; }
.cats__tools{ display:flex; align-items:center; gap:8px; }
.cats__prov{ display:inline-flex; align-items:center; gap:6px; padding:7px 14px; border-radius:999px; background:var(--surface); border:1px solid var(--line); font-size:13px; font-weight:600; white-space:nowrap; }
.cats__icon{ width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; background:var(--surface); border:1px solid var(--line); }

/* ============ GAME RAILS ============ */
.railsec{ margin-bottom:26px; }
.railhead{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.railhead__title{ display:flex; align-items:center; gap:8px; font-size:18px; font-weight:800; }
.railhead__badge{ background:var(--surface2); color:var(--muted); font-size:11px; font-weight:700; padding:2px 8px; border-radius:999px; }
.railhead__more{ font-size:12.5px; font-weight:600; color:var(--muted); background:var(--surface); border:1px solid var(--line); padding:6px 12px; border-radius:var(--r-sm); }
.railhead__more:hover{ color:var(--text); }

.rail{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:var(--gap);
}

/* ---- GAME CARD (single repeatable unit) ---- */
.game{
  display:block; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r); overflow:hidden;
  transition:transform .15s, border-color .15s, box-shadow .15s;
}
.game:hover{ transform:translateY(-4px); border-color:var(--accent); box-shadow:var(--shadow); }
.game img{ width:100%; aspect-ratio:1/1; object-fit:cover; background:var(--bg2); }
.game__name{ display:block; padding:9px 10px 2px; font-size:12.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.game__prov{ display:block; padding:0 10px 10px; font-size:11px; color:var(--faint); }

/* ============ PROVIDER WALL ============ */
.providers{
  display:grid; grid-template-columns:repeat(6,1fr); gap:var(--gap);
}
.prov{
  display:flex; align-items:center; justify-content:center;
  height:70px; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r); padding:14px;
}
.prov:hover{ border-color:var(--accent); }
.prov img{ max-height:38px; width:auto; object-fit:contain; opacity:.9; }

/* ============ SEO ARTICLE ============ */
.seo{
  margin:34px 0; padding:26px 28px;
  background:var(--bg2); border:1px solid var(--line); border-radius:var(--r-lg);
}
.seo h1{ font-size:26px; margin-bottom:14px; }
.seo h2{ font-size:20px; margin:26px 0 10px; color:var(--accent); }
.seo h3{ font-size:16px; margin:18px 0 8px; }
.seo p{ color:var(--muted); margin:0 0 12px; max-width:860px; }
.seo__lead{ font-size:16px; color:var(--text) !important; }
.faq{ margin-top:12px; display:flex; flex-direction:column; gap:8px; }
.faq__item{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-sm); padding:12px 14px; }
.faq__item summary{ cursor:pointer; font-weight:700; color:var(--text); }
.faq__item p{ margin:10px 0 0; }

/* ============ FOOTER ============ */
.footer{ margin-top:30px; border-top:1px solid var(--line); padding-top:26px; }
.footer__cols{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); margin-bottom:24px; }
.footer__col{ display:flex; flex-direction:column; gap:7px; }
.footer__col h4{ font-size:13px; color:var(--text); margin-bottom:4px; }
.footer__col a{ font-size:12.5px; color:var(--muted); }
.footer__col a:hover{ color:var(--text); }

.footer__pay{ display:flex; flex-wrap:wrap; gap:16px; align-items:center; padding:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.footer__pay img{ height:24px; width:auto; opacity:.85; }

.footer__bottom{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding:20px 0 10px; }
.footer__langbtn{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--muted); background:var(--surface); border:1px solid var(--line); padding:7px 12px; border-radius:var(--r-sm); }
.footer__legal{ flex:1; min-width:240px; font-size:11.5px; color:var(--faint); margin:0; }
.footer__age{ display:inline-block; background:var(--accent-2); color:#fff; font-weight:800; font-size:11px; padding:2px 7px; border-radius:var(--r-sm); margin-right:6px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1080px){
  .rail,.providers{ grid-template-columns:repeat(4,1fr); }
}
@media (max-width:860px){
  :root{ --sidebar-w:0px; }
  .layout{ grid-template-columns:1fr; }
  .sidebar{
    position:fixed; top:0; left:0; bottom:0; width:260px; z-index:60;
    transform:translateX(-100%); transition:transform .2s;
    border-right:1px solid var(--line);
  }
  .sidebar.is-open{ transform:translateX(0); }
  .burger{ display:flex; }
  .hero{
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "slider slider"
      "dw jp";
  }
  .slide__title{ max-width:70%; font-size:24px; }
  .slide__sub{ max-width:65%; }
  .rail,.providers{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:560px){
  .rail{ grid-template-columns:repeat(2,1fr); }
  .providers{ grid-template-columns:repeat(3,1fr); }
  .hero{
    grid-template-columns:1fr;
    grid-template-areas:"slider" "dw" "jp";
  }
  .hero__art{ max-width:42%; opacity:.9; }
  .slide__title{ font-size:22px; max-width:60%; }
  .seg{ display:none; }
  .seo{ padding:18px 16px; }
  .footer__cols{ grid-template-columns:1fr 1fr; }
}
@media (max-width:380px){
  .main{ padding:0 12px 32px; }
  .rail{ grid-template-columns:repeat(2,1fr); }
  .providers{ grid-template-columns:repeat(2,1fr); }
  .slide{ padding:22px 18px; min-height:260px; }
  .topbar__right .btn{ padding:8px 12px; font-size:12px; }
}
