:root{
  --bu-bg:#171b1c;
  --bu-bg2:#1c2021;
  --bu-panel:#232828;
  --bu-panel2:#2a3030;

  --bu-text:#eef2f1;
  --bu-muted: rgba(238,242,241,.68);

  --bu-green:#2ee57a;
  --bu-green2:#17c763;

  --bu-line: rgba(255,255,255,.08);

  /* меньше скругления */
  --bu-r: 10px;
  --bu-r-lg: 14px;

  --bu-shadow: 0 20px 70px rgba(0,0,0,.45);
  --bu-shadow-sm: 0 12px 34px rgba(0,0,0,.35);

  --bu-container: 1260px;
  --bu-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
}

html,body{ height:100%; }
body{
  font-family: var(--bu-font);
  color: var(--bu-text);
  background: linear-gradient(180deg, var(--bu-bg) 0%, var(--bu-bg2) 100%);
}

/* ---------- layout ---------- */
.container{
  width: min(var(--bu-container), calc(100% - 36px));
  margin-inline:auto;
}

.bu-app{
  position: relative;
  padding: 12px 0 30px;
}

/* ---------- header ---------- */
.bu-header{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(23,27,28,.84);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.bu-header__row{
  height: 60px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.bu-left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 220px;
}

.bu-burger{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 0;
  background: rgba(255,255,255,.06);
  color: rgba(238,242,241,.92);
  cursor:pointer;
  display:none;
}

.bu-logo{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
}
.bu-logo__mark{
  width: 28px; height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(46,229,122,.95), rgba(23,199,99,.92));
  box-shadow: 0 18px 44px rgba(46,229,122,.10);
}
.bu-logo__txt{
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}

.bu-topnav{
  display:flex;
  align-items:center;
  gap: 14px;
  opacity:.92;
}
.bu-topnav a{
  text-decoration:none;
  font-weight: 900;
  font-size: 12px;
  color: rgba(238,242,241,.74);
}
.bu-topnav a:hover{ color: rgba(238,242,241,.92); }

.bu-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  justify-content:flex-end;
  min-width: 280px;
}

.bu-btn{
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  text-decoration:none;
  font-weight: 950;
  font-size: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .14s ease, box-shadow .18s ease, filter .18s ease;
}
.bu-btn:active{ transform: translateY(1px); }

.bu-btn--ghost{
  color: rgba(238,242,241,.90);
  background: rgba(255,255,255,.06);
}
.bu-btn--green{
  color:#06140b;
  background: linear-gradient(180deg, var(--bu-green), var(--bu-green2));
  box-shadow: 0 20px 60px rgba(46,229,122,.10);
}

.bu-flag{
  width: 22px; height: 16px;
  border-radius: 4px;
  overflow:hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.10);
}

/* ---------- hover sidebar (desktop) ---------- */
.bu-shell{
  position: relative;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* invisible hover strip on the left edge */
.bu-edge{
  position: fixed;
  left: 0;
  top: 60px;
  bottom: 0;
  width: 12px;
  z-index: 55;
}

/* sidebar */
.bu-sidebar{
  position: fixed;
  left: 0;
  top: 60px;
  bottom: 0;
  width: 260px;
  transform: translateX(-232px); /* almost hidden */
  transition: transform .18s ease;
  z-index: 56;

  background: rgba(35,40,40,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 80px rgba(0,0,0,.55);
  padding: 12px;
}

.bu-sidebar:hover{ transform: translateX(0); }
.bu-edge:hover + .bu-sidebar{ transform: translateX(0); }

/* inside sidebar */
.bu-sel{
  display:flex;
  align-items:center;
  justify-content: space-between;
  color: rgba(238,242,241,.72);
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 10px;
}
.bu-snav{
  display:grid;
  gap: 8px;
}
.bu-snav a{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration:none;
  background: rgba(255,255,255,.04);
  color: rgba(238,242,241,.86);
  font-weight: 900;
  font-size: 12px;
}
.bu-snav a:hover{ background: rgba(46,229,122,.10); }

/* content area offset on desktop */
@media (min-width: 981px){
  .bu-app{ padding-left: 28px; } /* slight so hover edge works comfortably */
}

/* ---------- main panels ---------- */
.bu-main{
  margin-left: 0;
}
@media (min-width: 981px){
  .bu-main{ margin-left: 0; }
}

/* ---------- hero: 2 slides visible ---------- */
.bu-hero{
  display:grid;
  grid-template-columns: 1.6fr .7fr;
  gap: 12px;
}

.bu-heroCard{
  border-radius: var(--bu-r-lg);
  background: rgba(0,0,0,.28);
  box-shadow: var(--bu-shadow-sm);
  overflow:hidden;
  position: relative;
  min-height: 170px;
}

.bu-heroCard--big{
  min-height: 180px;
  background:
    radial-gradient(620px 260px at 65% 40%, rgba(46,229,122,.22), transparent 60%),
    radial-gradient(520px 260px at 30% 20%, rgba(255,255,255,.06), transparent 62%),
    rgba(0,0,0,.35);
}

.bu-heroCard--small{
  min-height: 180px;
  background:
    radial-gradient(520px 260px at 60% 30%, rgba(46,229,122,.20), transparent 62%),
    rgba(0,0,0,.35);
}

.bu-heroCard__inner{
  padding: 16px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.bu-heroTitle{
  margin:0;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .02em;
}
.bu-heroText{
  margin:0;
  color: rgba(238,242,241,.72);
  line-height: 1.55;
  font-size: 13px;
}
.bu-heroCta{
  margin-top: auto;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}

.bu-chip{
  display:inline-flex;
  align-items:center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(238,242,241,.74);
  font-weight: 900;
  font-size: 12px;
}

/* row of filters (like screenshot) */
.bu-filters{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bu-pill{
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: rgba(238,242,241,.82);
  font-weight: 900;
  font-size: 12px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  text-decoration:none;
}
.bu-pill.is-active{
  outline: 2px solid rgba(46,229,122,.55);
}

/* ---------- games grid ---------- */
.bu-sec{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.bu-sec__title{
  margin:0;
  font-size: 16px;
  font-weight: 950;
}
.bu-sec__hint{
  color: rgba(238,242,241,.56);
  font-weight: 900;
  font-size: 12px;
}

/* tiles: not too rounded, minimal borders */
.bu-grid{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 10px;
}
@media (max-width: 1200px){ .bu-grid{ grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (max-width: 980px){ .bu-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 720px){ .bu-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 520px){ .bu-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; } }

.bu-tile{
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  box-shadow: 0 14px 36px rgba(0,0,0,.32);
  overflow:hidden;
  position: relative;
  transition: transform .18s ease, box-shadow .22s ease;
}
.bu-tile:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 56px rgba(0,0,0,.40);
}

.bu-tile__media{
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(46,229,122,.14), rgba(255,255,255,.05));
  position: relative;
}
.bu-tile__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
  transition: transform .26s ease, filter .26s ease;
}
.bu-tile:hover .bu-tile__media img{
  transform: scale(1.08);
  filter: saturate(1.10) contrast(1.04);
}

.bu-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55));
  opacity: 0;
  transition: opacity .2s ease;
}
.bu-tile:hover .bu-overlay{ opacity: 1; }

.bu-play{
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 34px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--bu-green), var(--bu-green2));
  color: #06140b;
  transform: translateY(10px);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}
.bu-tile:hover .bu-play{ transform: translateY(0); opacity: 1; }

.bu-tile__meta{
  padding: 8px 10px 10px;
}
.bu-tile__title{
  margin:0;
  font-weight: 950;
  font-size: 12px;
  line-height: 1.25;
}
.bu-tile__sub{
  margin-top: 4px;
  font-size: 11px;
  color: rgba(238,242,241,.60);
}

/* ---------- SEO + FAQ ---------- */
.bu-seo{
  margin-top: 14px;
  border-radius: var(--bu-r-lg);
  background: rgba(255,255,255,.03);
  box-shadow: var(--bu-shadow-sm);
  padding: 14px;
}
.bu-seo :where(h2){
  margin: 6px 0 10px;
  font-size: 20px;
}
.bu-seo :where(h3){
  margin: 14px 0 8px;
  font-size: 14px;
}
.bu-seo :where(p,li){
  color: rgba(238,242,241,.74);
  line-height: 1.75;
}
.bu-seo :where(a){
  color: rgba(46,229,122,.92);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* FAQ block */
.bu-faq{
  margin-top: 10px;
}
.bu-faq details{
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  margin-bottom: 8px;
  overflow:hidden;
}
.bu-faq summary{
  cursor:pointer;
  padding: 10px 12px;
  font-weight: 950;
  list-style:none;
  position: relative;
}
.bu-faq summary::-webkit-details-marker{ display:none; }
.bu-faq summary::after{
  content:"+";
  position:absolute;
  right: 12px;
  top: 8px;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  background: rgba(46,229,122,.10);
}
.bu-faq details[open] summary::after{ content:"–"; }
.bu-faq__a{
  padding: 0 12px 12px;
  color: rgba(238,242,241,.72);
  line-height: 1.65;
  font-size: 13px;
}

/* ---------- footer ---------- */
.bu-footer{
  margin-top: 16px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.12);
}
.bu-footer__row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.bu-footer__brand{ font-weight: 950; letter-spacing:.06em; text-transform: uppercase; }
.bu-footer__muted{ color: rgba(238,242,241,.58); font-size: 12px; margin-top: 4px; }
.bu-footer__links{ display:flex; gap: 10px; flex-wrap: wrap; }
.bu-footer__link{
  font-weight: 900;
  font-size: 12px;
  text-decoration:none;
  color: rgba(238,242,241,.68);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.bu-footer__link:hover{ color: rgba(238,242,241,.90); }

/* ---------- chat widget ---------- */
.bu-chat{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 90;
}
.bu-chat__btn{
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 0;
  background: rgba(46,229,122,.18);
  box-shadow: 0 18px 44px rgba(0,0,0,.40);
  display:grid;
  place-items:center;
  cursor:pointer;
  color: rgba(238,242,241,.92);
}
.bu-chat__btn span{ font-size: 22px; }

/* ---------- mobile adjustments ---------- */
@media (max-width: 980px){
  .bu-burger{ display:inline-flex; }
  .bu-topnav{ display:none; }

  /* disable hover sidebar and use drawer only */
  .bu-edge{ display:none; }
  .bu-sidebar{ display:none; }

  .bu-hero{ grid-template-columns: 1fr; }
  .bu-heroCard--small{ min-height: 140px; }
}
@media (max-width: 560px){
  .container{ width: calc(100% - 24px); }
  .bu-header__row{ height: 56px; }
  .bu-actions{ min-width: auto; }
  .bu-btn{ height: 32px; padding: 0 10px; }
  .bu-heroTitle{ font-size: 16px; }
  .bu-heroText{ font-size: 12px; }
}
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
}