/* ─────────────────────────────────────────────────────────
   Base / Reset
────────────────────────────────────────────────────────── */
html, body{
  margin:0;
  max-width:100%;
  overflow-x:hidden;
}
html { scrollbar-gutter: stable both-edges; }   /* стабильная ширина скроллбара */

*{ box-sizing:border-box }
img, video, canvas, svg, iframe{ max-width:100%; height:auto; display:block }

/* Цвета/константы */
:root{
  --bg:#07141c; --panel:#0e2330; --ink:#e8f2ff3b;
  --line:#0b1a23; --max:1320px;
  --gold1:#872ed0; --gold2:#7203f0; --gold3:#e80dd5;
  --ring:0 0 0 1px rgba(255,255,255,.06) inset, 0 1px 0 rgba(255,255,255,.05) inset, 0 10px 30px rgba(0,0,0,.55);
  --hdrH:64px; /* реальную высоту проставляет JS */
}

/* Глобальная типографика/фон */
html,body{
  color:var(--ink);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
}
body:before{
  content:""; position:fixed; inset:0; pointer-events:none; opacity:.9;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(201, 3, 241, 0.385), transparent 60%),
    radial-gradient(1000px 700px at 120% 10%, rgba(50, 2, 134, 0.06), transparent 55%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><defs><filter id="n"><feTurbulence baseFrequency="0.7" numOctaves="2" seed="2" type="fractalNoise"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0"/></filter></defs><rect width="100%" height="100%" filter="url(%23n)"/></svg>') repeat;
}

/* Универсальный пульс */
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(206, 5, 179, 0.6) }
  70%{ box-shadow:0 0 0 20px rgba(228, 25, 255, 0) }
  100%{ box-shadow:0 0 0 0 rgba(255, 25, 240, 0) }
}
.pulse{ animation:pulse 1.8s infinite }

/* ─────────────────────────────────────────────────────────
   Header / Topbar
────────────────────────────────────────────────────────── */
header{
  position:sticky; top:0; z-index:100;
  background:rgba(7,20,28,.92);
  border-bottom:1px solid #08202a;
  backdrop-filter:saturate(130%) blur(6px);
}
header.scrolled{ box-shadow:0 10px 24px rgba(0,0,0,.38) }
.head{
  max-width:var(--max); margin:0 auto; padding:10px 14px;
  display:flex; align-items:center; gap:10px; min-width:0;
}
.burger{
  display:none; background:none; border:1px solid #133241; color:#cfe6ff;
  border-radius:10px; padding:8px 10px;
}
.logo{ flex:0 0 auto }
.logo img{ height:34px; filter:drop-shadow(0 2px 6px rgba(0,0,0,.5)) }
.search{
  flex:1 1 420px; min-width:0; display:flex; align-items:center; gap:8px;
  background:linear-gradient(180deg,#0d2230,#0a1d29); border:1px solid #113244;
  border-radius:999px; padding:8px 12px; box-shadow:var(--ring)
}
.search input{ flex:1 1 auto; min-width:0; background:transparent; border:0; outline:0; color:#ccdef0 }
.btn{
  flex:0 0 auto; white-space:nowrap;
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 14px; border-radius:999px; text-decoration:none; color:#eaf2ff;
  background:linear-gradient(180deg,#3a1032,#300b2e); border:1px solid #341341; box-shadow:var(--ring)
}
.btn--login{
  background:radial-gradient(60% 120% at 30% 20%, rgba(25,198,255,.35), transparent 40%),
             linear-gradient(180deg,#103648 20%, #0a2735 80%);
  border:1px solid #1b556e;
}
.btn--reg{
  background:radial-gradient(60% 120% at 30% 20%, rgba(251, 0, 255, 0.28), transparent 42%),
             linear-gradient(180deg,#8a058c 0%, #56046b 100%);
  border:1px solid #ff00ee;
  animation:pulse 1.8s infinite;
}

/* ─────────────────────────────────────────────────────────
   Layout / Shell
────────────────────────────────────────────────────────── */
.shell{
  max-width:var(--max); margin:0 auto; padding:18px 14px;
  display:grid; grid-template-columns:260px 1fr; gap:20px; min-width:0;
}
.shell > *{ min-width:0 }
.shell > main{ min-width:0 }
main p, main h1, main h2, main h3, main a{ overflow-wrap:anywhere; word-break:break-word }

/* Только где нужно — отсекаем «лишний» горизонтальный оверфлоу */
.frame, .medals, .grid{ overflow-x:hidden }

/* Sidebar (desktop) */
.aside{
  position:sticky; top:74px; align-self:start;
  background:linear-gradient(180deg,#2a0e30,#0a1d29);
  border:1px solid #310d39; border-radius:20px; padding:14px; box-shadow:var(--ring);
}
.nav{ list-style:none; margin:0; padding:0 }
.nav li{ margin:6px 0 }
.nav a{
  display:flex; align-items:center; gap:10px; padding:12px 12px; border-radius:12px;
  color:#cfe6ff; border:1px solid transparent; text-decoration:none;
}
.nav a:hover{ background:#541c7090; border-color:#69278a }
.nav a.is-active{
  background:linear-gradient(180deg,#3c1146,#220c34);
  border-color:#5d155f; box-shadow:inset 0 0 0 1px rgba(238, 2, 255, 0.206);
}
.sep{ height:10px; margin:8px 6px; border-top:1px solid #3a0f37; border-bottom:1px solid #081921; opacity:.8 }
.sep-title{ margin:8px 8px 4px; color:#95b7d0; font-size:12px; letter-spacing:.08em }

/* Drawer (mobile) */
.drawer{
  position:fixed; top:0; left:0; bottom:0; width:min(82vw,320px);
  background:linear-gradient(180deg,#0e2330,#0a1d29); border-right:1px solid #0d2a39;
  box-shadow:0 20px 60px rgba(0,0,0,.6); transform:translateX(-100%); transition:transform .28s ease;
  z-index:120; display:flex; flex-direction:column; border-radius:0 18px 18px 0;
}
.drawer.open{ transform: translateX(0) }
.drawer .dhead{ display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid #0f2b3a }
.dclose{ background:none; border:1px solid #1b556e; color:#cfe6ff; border-radius:10px; padding:8px 10px }
.dnav{ padding:10px 10px 16px }



/* Page Title */
.page-title{
  text-align:center; margin:4px 0 14px; font-size:26px; font-weight:900; letter-spacing:.3px;
  color:#eaf2ff; text-shadow:0 6px 18px rgba(0,0,0,.45);
}

/* Hero / Banner */
.frame{
  background:#081821; border:1px solid #1c303d; border-radius:22px; padding:14px;
  box-shadow:var(--ring); position:relative;
}
.frame:before{
  content:""; position:absolute; inset:8px; border-radius:18px; border:3px solid transparent;
  background:linear-gradient(#081821,#081821) padding-box,
             linear-gradient(135deg,var(--gold3),var(--gold1) 40%, var(--gold2) 70%, var(--gold3)) border-box;
  pointer-events:none; z-index:0;
}
.banner{ width:100%; border-radius:12px; position:relative; z-index:1; object-fit:cover }

/* Medallions */
.medals{ display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:18px; margin-top:18px; min-width:0 }
.medal{ text-align:center; color:#dce9ff; text-decoration:none }
.medal .ring{ aspect-ratio:1/1; border-radius:50%; overflow:hidden; background:#0e2230; box-shadow:0 10px 24px rgba(0,0,0,.45) }
.medal img{ width:100%; height:100%; object-fit:cover; transform:scale(1); transition:transform .35s ease }
.medal:hover img{ transform:scale(1.06) }
.medal b{ display:block; margin-top:10px; font-size:14px }
.medal .ring {
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: #0e2230;
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
  transition: box-shadow .35s ease, border .35s ease;
  border: 2px solid transparent;
}

.medal:hover .ring {
  border: 1px solid #c86bfa18;
  box-shadow: inset 0 0 10px rgb(200, 107, 250), 
              inset 0 0 10px rgba(200, 107, 250, 0.967);
}

/* Cards grid */
.grid{ display:grid; gap:18px; grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:22px; min-width:0 }
.card{
  display:block; text-decoration:none; color:inherit; background:#0d2230; border:1px solid #133245;
  border-radius:16px; overflow:hidden; box-shadow:var(--ring)
}
.media{ position:relative; aspect-ratio:16/9; overflow:hidden }
.media img{ width:100%; height:100%; object-fit:cover; transform:scale(1); transition:transform .6s ease }
.card:hover .media img{ transform:scale(1.08) }
.play{
  position:absolute; inset:auto 50% 50% auto; transform:translate(50%,50%);
  padding:10px 22px; border-radius:14px; font-weight:800; color:#fff;
  background:radial-gradient(60% 120% at 30% 20%, rgba(25,198,255,.35), transparent 40%),
             linear-gradient(180deg,#103648 20%, #0a2735 80%);
  border:1px solid #1b556e; box-shadow:0 0 20px rgba(25,198,255,.25), var(--ring);
  opacity:0; transition:opacity .25s ease, transform .25s ease;
}
.card:hover .play{ opacity:1; transform:translate(50%,50%) scale(1.05) }
.info{ padding:10px 12px 12px }
.title{ margin:0 0 2px; font-weight:800 }
.vendor{ margin:0; color:#9fb1c5; font-size:12px }

/* Sections / CTA */
.section{ margin-top:30px; margin-bottom:20px; color:#dce9ff; line-height:1.6 }
.intro p{ max-width:900px; margin:0 auto; text-align:left }
.cta-center{ display:flex; justify-content:center; margin-top:16px }
.pulse-btn{
  display:inline-block; padding:14px 28px; font-weight:800; font-size:18px; color:#fff; text-decoration:none;
  border-radius:30px;
  background:radial-gradient(60% 120% at 30% 20%, rgba(224, 25, 255, 0.35), transparent 40%),
             linear-gradient(180deg,#2c1048 20%, #6a0297 80%);
  border:1px solid #cc00f5; box-shadow:0 0 20px rgba(25,198,255,.25), var(--ring);
  animation:pulse 1.8s infinite;
}

/* Providers */
.prov-grid{ display:grid; gap:16px; grid-template-columns:repeat(4,minmax(0,1fr)) }
.prov{
  display:flex; flex-direction:column; align-items:center; text-decoration:none; color:#dce9ff;
  background:#0d2230; border:1px solid #133245; border-radius:16px; padding:14px;
  box-shadow:var(--ring); transition:transform .2s ease, box-shadow .2s ease;
}
.prov:hover{ transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,.35), var(--ring) }
.prov-media{
  width:100%; aspect-ratio:16/9; background:#0e2230; border-radius:10px; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.prov-media img{ width:80%; height:80%; object-fit:contain; filter:drop-shadow(0 2px 8px rgba(0,0,0,.35)) }
.prov-name{ margin-top:10px; font-weight:800; letter-spacing:.2px; text-align:center; color:#eaf2ff }
.vmore-btn{
  display:inline-block; padding:10px 18px; font-weight:800; border-radius:999px; text-decoration:none; color:#fff;
  background:radial-gradient(60% 120% at 30% 20%, rgba(224, 25, 255, 0.35), transparent 40%),
             linear-gradient(180deg,#7c0d95 20%, #2a0a35 80%);
  border:1px solid #bf00fe; box-shadow:0 0 16px rgba(25,198,255,.25), var(--ring);
}
.vmore-btn:hover{ transform:scale(1.04) }

/* Таблицы */
.table-wrapper{
  background:#240d308a;
  border:1px solid #4313457d;
  border-radius:16px;
  box-shadow:var(--ring);
  overflow:hidden;            /* скругления без «утечек» */
}
table{ width:100%; border-collapse:collapse }

/* Чистая семантичная таблица фактов */
.facts-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}
.facts-table th,
.facts-table td{
  padding:12px 16px;
  vertical-align:top;
}
.facts-table th{
  white-space:nowrap;
  font-weight:800;
  color:#eaf2ff;
  width:240px;
}
.facts-table tr + tr th,
.facts-table tr + tr td{
  border-top:1px solid #0f2b3a;
}
.facts-table a{
  color:#cfe6ff;
  text-decoration:underline;
}
.facts-table a:hover{ color:#fff }

/* Мобильная таблица-«стек» */
@media (max-width:640px){
  .facts-table th{
    display:block;
    padding-bottom:4px;
    width:auto;
  }
  .facts-table td{
    display:block;
    padding-top:0;
  }
  .facts-table tr + tr th{ border-top:1px solid #0f2b3a }
  .facts-table tr + tr td{ border-top:0 }
}

/* ==== BravoPlay Payment Methods table (desktop + mobile) ==== */
#betalice-payments{
  /* Нейтральные значения по умолчанию (подойдёт для тёмных тем) */
  --bp-bg: rgba(255,255,255,0.06);
  --bp-row-bg: transparent;
  --bp-border: rgba(255,255,255,0.18);
  --bp-text: #e9edf3;
  --bp-text-strong: #ffffff;
  --bp-hover: rgba(255,255,255,0.10);

  /* горизонтальный скролл на узких экранах */
  overflow-x: auto;
  padding-bottom: 6px;
}

/* Автопереключение под светлые темы */
@media (prefers-color-scheme: light){
  #betalice-payments{
    --bp-bg: #3e0155;
    --bp-row-bg: #a800f619;
    --bp-border: #e5e7eb3a;
    --bp-text: #ffffff;
    --bp-text-strong: #ffffff;
    --bp-hover: #f8fafc00;
  }
}

#betalice-payments table{
  width: 100%;
  min-width: 560px;            /* чтобы колонки не ломались на мобилке */
  border-collapse: separate;   /* нужен для корректного скругления */
  border-spacing: 0;
  table-layout: fixed;
  background: var(--bp-bg);
  border: 1px solid var(--bp-border);
  border-radius: 10px;
}

#betalice-payments tr{
  background: var(--bp-row-bg);
}

#betalice-payments td{
  padding: 14px 16px;
  border-bottom: 1px solid var(--bp-border);
  color: var(--bp-text);
  font-size: 16px;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;         /* чтобы фразы не рвались */
}

#betalice-payments tr:last-child td{
  border-bottom: 0;
}

#betalice-payments td:first-child{
  width: 40%;
  font-weight: 600;
  color: var(--bp-text-strong);
}

#betalice-payments tr:hover td{
  background: var(--bp-hover);
}

/* На случай глобальных стилей с прозрачностью/смешением */
#betalice-payments tr,
#betalice-payments td{
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

/* Аккуратный скроллбар (только по горизонтали) */
#betalice-payments::-webkit-scrollbar{ height: 10px; }
#betalice-payments::-webkit-scrollbar-thumb{
  background: var(--bp-border);
  border-radius: 10px;
}

/* Чуть меньше минимальная ширина на очень узких экранах */
@media (max-width: 420px){
  #betalice-payments table{ min-width: 480px; }
}


/* ─────────────────────────────────────────────────────────
   Footer
────────────────────────────────────────────────────────── */
.site-footer{
  margin-top:40px;
  background:linear-gradient(180deg,#0e2330,#0a1d29);
  border-top:1px solid #0d2a39;
  box-shadow:0 -10px 30px rgba(0,0,0,.35) inset;
}
.site-footer a{ color:#cfe6ff; text-decoration:none }
.site-footer a:hover{ color:#fff }
.ft-wrap{ max-width:1320px; margin:0 auto; padding:28px 14px 32px; color:#cfe6ff }
.ft-head{
  display:flex; align-items:center; gap:20px; flex-wrap:wrap;
  justify-content:space-between; margin-bottom:16px;
}
.ft-logo img{ height:40px; display:block }
.ft-cta-center{ flex:1; display:flex; justify-content:center }
.ft-btn{
  display:inline-block; padding:12px 26px; font-weight:800; font-size:16px; color:#fff;
  text-decoration:none; border-radius:30px; max-width:320px;
  background:radial-gradient(60% 120% at 30% 20%, rgba(25,198,255,.35), transparent 40%),
             linear-gradient(180deg,#103648 20%, #0a2735 80%);
  border:1px solid #1b556e; box-shadow:0 0 20px rgba(25,198,255,.25),0 0 6px rgba(0,0,0,.35);
}
.ft-btn:hover{ transform:scale(1.05); box-shadow:0 0 25px rgba(25,198,255,.35) }
.ft-trust{ display:flex; align-items:center; gap:18px }
.ft-trust img{ height:30px; width:auto; display:block; opacity:.9; filter:drop-shadow(0 2px 6px rgba(0,0,0,.35)) }
.ft-trust a:hover img{ opacity:1 }
.ft-grid{
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; padding:16px 0;
  border-top:1px solid #0f2b3a; border-bottom:1px solid #0f2b3a;
}
.ft-col{ display:flex; flex-direction:column; gap:8px }
.ft-title{ font-weight:800; color:#eaf2ff; margin-bottom:6px }
.ft-pay{
  display:flex; flex-direction:column; align-items:center; gap:10px; margin:14px 0;
}
.ft-pay span{ opacity:.9; text-align:center }
.ft-pay ul{
  display:flex; flex-wrap:wrap; justify-content:center; gap:14px; padding:0; margin:0; list-style:none;
}
.ft-pay img{ height:26px; width:auto; display:block; filter:drop-shadow(0 2px 6px rgba(0,0,0,.25)) }
.ft-bottom{
  border-top:1px solid #0f2b3a; margin-top:12px; padding-top:12px;
  font-size:13px; color:#9fb1c5; display:flex; justify-content:center; text-align:center;
}

/* ─────────────────────────────────────────────────────────
   Sticky patch (desktop header compensation)
────────────────────────────────────────────────────────── */
@media (min-width:993px){
  header{ position:fixed !important; top:0; left:0; right:0; z-index:120 }
  body{ padding-top:var(--hdrH) }
  .aside{
    position:sticky !important;
    top:calc(var(--hdrH) + 10px);
    max-height:calc(100vh - (var(--hdrH) + 24px));
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }
}
/* mobile drawer усиленно скрыт за пределами */
@media (max-width:992px){
  .drawer{ transform:translateX(-110%) }
}

/* ─────────────────────────────────────────────────────────
   Responsive
────────────────────────────────────────────────────────── */
@media (max-width:1200px){
  .prov-grid{ grid-template-columns:repeat(3,1fr) }
  .medals{ grid-template-columns:repeat(6,1fr) }
  .grid{ grid-template-columns:repeat(3,1fr) }
}
@media (max-width:992px){
  .shell{ grid-template-columns:1fr }
  .aside{ display:none }
  .burger{ display:inline-flex }
  .search{ flex:1 1 50vw }
  .medals{ grid-template-columns:repeat(4,1fr) }
  .grid{ grid-template-columns:repeat(2,1fr) }
}
@media (max-width:520px){
  .head{ gap:8px }
  .btn{ padding:7px 10px; font-size:13px }
  .search{ padding:6px 10px }
  .medals{ grid-template-columns:repeat(3,1fr) }
  .head, .shell, .site-footer{ padding-left:12px; padding-right:12px }
  .frame{ padding:10px }
  .frame:before{ inset:6px }
}
@media (max-width:390px){
  .search{ display:none }
  .btn{ padding:6px 9px; font-size:12px }
  .medals{ grid-template-columns:repeat(2,1fr) }
  .grid{ grid-template-columns:1fr }
}

/* ─────────────────────────────────────────────────────────
   (Опционально) стиль для зафиксированного aside — на будущее
   Сейчас JS его не включает, но пусть будет один корректный блок
────────────────────────────────────────────────────────── */
.aside--fixed{
  position:fixed !important;
  top:var(--asideTop,74px);
  left:var(--asideLeft,14px);
  width:var(--asideWidth,260px);
  height:calc(100vh - (var(--asideTop,74px) + 14px));
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  z-index:90;
  transform:translateY(var(--asideShift,0px));
}
