/* ─────────────────────────────────────────────────────────
   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:rgb(2, 6, 49); --panel:#0e2330; --ink:#ebe8ff3b;
  --line:#0b1a23; --max:1320px;
  --gold1:#0c003f; --gold2:#332ed0; --gold3:#0d56e8;
  --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(22, 1, 255, 0.459), transparent 60%),
    radial-gradient(1000px 700px at 120% 10%, rgba(4, 69, 159, 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(5, 119, 206, 0.6) }
  70%{ box-shadow:0 0 0 20px rgba(25, 94, 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:linear-gradient(180deg, rgb(4, 0, 255),#080e51);
  border-bottom:1px solid #003cff;
  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 #0014a9; color:#cfe6ff;
  border-radius:10px; padding:8px 10px;
}
.logo{ flex:0 0 auto }
.logo img{ height:43px; 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,#210c5776,#03011c); border:1px solid #252145;
  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(0, 183, 255, 0.35), transparent 40%),
             linear-gradient(180deg,#006ef5 20%, #0109ab 80%);
  border:1px solid #006eff87;
}
.btn--login:hover{
  transform: scale(1.06); /* слегка увеличиваем */
}  
.btn--reg{
  background:radial-gradient(60% 120% at 30% 20%, rgba(0, 183, 255, 0.35), transparent 42%),
             linear-gradient(180deg,#006ef5 20%, #0109ab 80%);
  border:1px solid #006eff87;
  animation:pulse 1.8s infinite;

  /* плавный переход */
  transition: transform 0.25s ease;
}

.btn--reg:hover{
  transform: scale(1.06); /* слегка увеличиваем */
}

/* ─────────────────────────────────────────────────────────
   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,#000c8b,#07034f);
  border:1px solid #110d39; 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:#0077ff90; border-color:#27488a }
.nav a.is-active{
  background:linear-gradient(180deg,#006eff,#005c9e);
  border-color:#153e5f; box-shadow:inset 0 0 0 1px rgba(2, 48, 255, 0.206);
}
.sep{ height:10px; margin:8px 6px; border-top:1px solid #006eff3e; border-bottom:1px solid #005c9e00; opacity:.8 }
.sep-title{ margin:8px 8px 4px; color:#ffffff; 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:#080b21; border:1px solid #0015ff6f; 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(#0b0821,#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: #030055;
  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 #0400ff, 
              inset 0 0 10px rgba(85, 70, 255, 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:#0d0d30; border:1px solid #131e45;
  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, 125, 255, 0.35), transparent 40%),
             linear-gradient(180deg,#170589 20%, #140978 80%);
  border:1px solid #1b4e6e; box-shadow:0 0 20px rgba(201, 25, 255, 0.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(25, 151, 255, 0.471), transparent 40%),
             linear-gradient(180deg,#00129d 20%, #020797 80%);
  border:1px solid #1d00f583;
  box-shadow:0 0 20px rgba(25, 25, 255, 0.25), var(--ring);
  animation:pulse 1.8s infinite;

  /* плавный переход */
  transition: transform 0.25s ease;
}

.pulse-btn:hover{
  transform: scale(1.08); /* увеличиваем */
}


/* 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:#11105d; border:1px solid #131345; 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:#110e30; 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(25, 128, 255, 0.35), transparent 40%),
             linear-gradient(180deg,#0d1495 20%, #0d017b 80%);
  border:1px solid #2200fe6c; box-shadow:0 0 16px rgba(25,198,255,.25), var(--ring);
}
.vmore-btn:hover{ transform:scale(1.04) }

/* Таблицы */
.table-wrapper{
  background:#0f0d308a;
  border:1px solid #0131687d;
  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 #020067 }
  .facts-table tr + tr td{ border-top:0 }
}

/* ==== BravoPlay Payment Methods table (desktop + mobile) ==== */
#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){
  #payments{
    --bp-bg: #040155;
    --bp-row-bg: #0c00f619;
    --bp-border: #7e7eff3a;
    --bp-text: #ffffff;
    --bp-text-strong: #ffffff;
    --bp-hover: #f8fafc00;
  }
}

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

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

#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;         /* чтобы фразы не рвались */
}

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

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

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

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

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

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


/* ─────────────────────────────────────────────────────────
   Footer
────────────────────────────────────────────────────────── */
.site-footer{
  margin-top:40px;
  background:linear-gradient(180deg,#0000a7,#050435);
  border-top:1px solid #0095ff71;
  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:60px; 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, 59, 255, 0.35), transparent 40%),
             linear-gradient(180deg,#3200e4 20%, #0e0a35 80%);
  border:1px solid #a7a7a7; 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));
}
