:root {
  --bgame-orange: #f58d47;
  --bgame-orange-deep: #e96105;
  --bgame-dark: #2d3844;
  --bgame-panel: #333333;
  --bgame-page: #3b3d3f;
  --bgame-top: #353535;
  --bgame-green: #08af61;
  --bgame-text: #ffffff;
  --bgame-muted: #c7c7c7;
  --bgame-line: rgba(255, 255, 255, 0.12);
  --content-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bgame-page);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  background: #303030;
  color: var(--bgame-text);
  position: relative;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.main-nav {
  padding-left: max(16px, calc((100vw - var(--content-width)) / 2));
  padding-right: max(16px, calc((100vw - var(--content-width)) / 2));
}

.info-strip {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-left: 14px;
  padding-right: 14px;
  background: var(--bgame-top);
  font-size: 12px;
}

.strip-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.strip-left {
  min-width: 0;
}

.strip-right {
  margin-left: auto;
}

.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

.telegram-link img {
  width: 24px;
  height: 24px;
}

.news-link img {
  width: 86px;
  height: auto;
  display: block;
}

.strip-close {
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}

.strip-right p {
  margin: 0;
  max-width: 300px;
  line-height: 1.15;
  color: #fff;
}

.adm-marks {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-marks img {
  display: block;
  width: auto;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(1) brightness(2.3);
}

.theme-switch {
  position: relative;
  width: 40px;
  height: 18px;
  border-radius: 999px;
  background: #101010;
  box-shadow: inset 0 0 0 2px #111;
}

.theme-switch::before,
.theme-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.theme-switch::before {
  left: 5px;
}

.theme-switch::after {
  right: 5px;
}

.brand-strip {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-left: 14px;
  padding-right: 28px;
  background: #2b2b2b;
}

.brand-logo {
  display: inline-flex;
  width: 112px;
  height: 60px;
  align-items: center;
}

.brand-logo img {
  display: block;
  width: 105px;
  height: auto;
}

.auth-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-login,
.btn-register {
  border: 0;
  border-radius: 4px;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  min-width: 118px;
  height: 37px;
  padding: 0 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-login {
  background: linear-gradient(#1dc878, var(--bgame-green));
}

.btn-register {
  background: linear-gradient(#ff8c3a, var(--bgame-orange-deep));
}

.main-nav {
  min-height: 45px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  background: #3c3c3c;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bgame-orange) #333;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  min-height: 45px;
}

.main-nav a:hover,
.main-nav .active,
.main-nav .promo-link {
  color: var(--bgame-orange);
}

.main-nav .active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  background: var(--bgame-orange-deep);
}

.page-shell {
  padding: 24px 16px 72px;
  background:
    linear-gradient(rgba(45, 56, 68, 0.48), rgba(59, 61, 63, 0.94)),
    url("./assets/bbet4.webp") center top / cover fixed;
}

.portal-frame {
  max-width: var(--content-width);
  margin: 0 auto;
  background: var(--bgame-panel);
  border-radius: 4px 4px 0 0;
  padding: 24px 15px 24px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.hero-carousel {
  position: relative;
  aspect-ratio: 1110 / 300;
  overflow: hidden;
  border-radius: 4px;
  background: #222;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 500ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 34px;
  height: 56px;
  border: 0;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 0;
}

.hero-next {
  right: 0;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hero-dots .is-active {
  background: var(--bgame-orange);
  border-color: var(--bgame-orange);
}

.games-section,
.events-section {
  margin-top: 24px;
}

.section-bar {
  min-height: 48px;
  background: var(--bgame-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  text-transform: uppercase;
  font-weight: 800;
}

.section-bar > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-bar small {
  color: var(--bgame-orange);
  font-size: 13px;
}

.rail-controls {
  display: flex;
  gap: 8px;
}

.rail-controls button {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
  line-height: 1;
  font-size: 21px;
}

.game-rail,
.event-rail {
  display: grid;
  grid-auto-flow: column;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--bgame-orange) #252525;
}

.game-rail {
  grid-auto-columns: minmax(176px, 1fr);
  gap: 30px;
  padding: 12px 0 4px;
}

.game-card {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  background: #222;
  color: #fff;
  scroll-snap-align: start;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.game-card img {
  width: 100%;
  height: 108px;
  object-fit: cover;
  display: block;
}

.game-card .heading-3 {
  min-height: 42px;
  margin: 0;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bgame-dark);
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  text-transform: uppercase;
}

.game-overlay {
  position: absolute;
  inset: 0 0 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  transition: opacity 180ms ease;
}

.game-card:hover .game-overlay,
.game-card:focus-within .game-overlay {
  opacity: 1;
}

.game-overlay button,
.highlight-card button {
  border: 0;
  border-radius: 4px;
  background: var(--bgame-orange);
  color: #fff;
  min-width: 84px;
  min-height: 22px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  cursor: pointer;
}

.game-overlay button + button {
  background: #fff;
  color: #1d1d1d;
}

.jackpot-card > strong {
  position: absolute;
  left: 7px;
  top: 8px;
  padding: 3px 7px;
  border-radius: 4px;
  color: #fff;
  background: rgba(233, 97, 5, 0.92);
  font-size: 12px;
}

.middle-grid {
  display: grid;
  grid-template-columns: minmax(330px, 5fr) minmax(420px, 7fr);
  gap: 30px;
  margin-top: 24px;
}

.highlights-panel {
  min-width: 0;
}

.highlight-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #1f1f1f;
}

.highlight-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.highlight-main {
  height: 250px;
}

.highlight-main::after,
.mini-highlights .highlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.82));
}

.highlight-main div {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 18px;
}

.highlight-main span {
  display: block;
  margin-bottom: 4px;
  color: var(--bgame-orange);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.highlight-main .heading-2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 900;
}

.mini-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.mini-highlights .highlight-card {
  height: 112px;
}

.mini-highlights .heading-3 {
  position: absolute;
  z-index: 1;
  left: 8px;
  right: 8px;
  bottom: 7px;
  margin: 0;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}

.live-widget {
  min-width: 0;
  border: 1px solid var(--bgame-line);
  background: #252525;
  color: #fff;
}

.widget-title {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  background: #fff;
  color: #161616;
  text-transform: uppercase;
  font-weight: 900;
}

.widget-title span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bgame-orange-deep);
  box-shadow: 0 0 0 0 rgba(233, 97, 5, 0.8);
  animation: livePulse 1.5s infinite;
}

.widget-title strong {
  font-weight: 900;
}

.sport-tabs {
  display: flex;
  min-height: 32px;
  background: #efefef;
  color: #1b1b1b;
}

.sport-tabs button {
  border: 0;
  background: transparent;
  padding: 0 14px;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.sport-tabs .active {
  color: var(--bgame-orange-deep);
}

.odds-head {
  display: grid;
  grid-template-columns: 1.2fr 2.4fr 0.55fr 0.55fr 1fr;
  min-height: 28px;
  align-items: center;
  background: var(--bgame-dark);
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.odds-head span,
.empty-live {
  padding: 8px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.empty-live {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--bgame-muted);
  background: #303030;
  text-transform: uppercase;
  font-weight: 700;
}

.event-rail {
  grid-auto-columns: 350px;
  gap: 30px;
  padding: 14px 0 0;
}

.event-card {
  scroll-snap-align: start;
  min-height: 200px;
  padding: 16px;
  background: #242424;
  color: #fff;
  border-top: 3px solid var(--bgame-orange);
}

.event-card span {
  display: block;
  color: var(--bgame-orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card time {
  display: block;
  margin: 5px 0 14px;
  color: var(--bgame-muted);
  font-size: 12px;
}

.event-card .heading-3 {
  margin: 0 0 6px;
  min-height: 23px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.event-card div,
.event-card p {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 0;
}

.event-card b,
.event-card strong {
  display: grid;
  place-items: center;
  min-height: 28px;
  background: #3b3b3b;
  color: #fff;
}

.event-card strong {
  color: var(--bgame-orange);
  background: #fff;
}

.longread-section {
  margin-top: 34px;
  color: #f4f4f4;
  line-height: 1.72;
}

.longread-section h1,
.longread-section h2,
.longread-section p {
  max-width: 960px;
}

.longread-section h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
}

.longread-section h2 {
  margin: 32px 0 12px;
  color: var(--bgame-orange);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.longread-section p {
  margin: 0 0 16px;
  color: #e7e7e7;
  font-size: 16px;
}

.faq-list {
  max-width: 960px;
  margin: 0 0 18px;
}

.faq-item {
  padding: 12px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.faq-question {
  margin-bottom: 6px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.faq-item p {
  margin-bottom: 0;
}

.footer-tools {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 9;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
}

.footer-tools button {
  min-width: 135px;
  height: 34px;
  border: 0;
  color: #fff;
  background: var(--bgame-orange-deep);
  text-transform: uppercase;
  font-weight: 800;
  cursor: pointer;
}

.footer-toggle {
  background: var(--bgame-dark) !important;
}

.site-footer {
  background: #171717;
  color: #fff;
  padding-bottom: 42px;
}

.footer-top {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 28px 16px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 34px;
}

.footer-legal .heading-2,
.footer-columns .heading-3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
}

.footer-adm {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-adm img {
  max-height: 44px;
  width: auto;
  filter: grayscale(1) brightness(2.1);
}

.footer-legal p {
  margin: 0;
  color: #fff;
  font-weight: 800;
  line-height: 1.35;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-columns a,
.footer-columns button {
  display: block;
  width: fit-content;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ddd;
  font-size: 14px;
  cursor: pointer;
}

.footer-columns a:hover,
.footer-columns button:hover {
  color: var(--bgame-orange);
}

.payment-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  padding: 18px 16px;
  background: #0b0b0b;
}

.payment-row img {
  max-width: 98px;
  max-height: 34px;
  object-fit: contain;
}

.company-line {
  margin: 0;
  padding: 16px;
  background: #222;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.cookie-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  min-height: 285px;
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(280px, 1fr) 280px;
  gap: 28px;
  padding: 30px 5vw 28px;
  background: #fff;
  color: #222;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
}

.cookie-panel[hidden] {
  display: none;
}

.cookie-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.cookie-brand {
  align-self: end;
  font-size: 26px;
  font-weight: 900;
  line-height: 0.9;
}

.cookie-brand small {
  font-size: 11px;
  font-weight: 700;
}

.cookie-copy .heading-2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 900;
}

.cookie-copy p {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.45;
}

.details-button {
  border: 0;
  background: transparent;
  color: #5e5e5e;
  font-weight: 800;
  cursor: pointer;
}

.details-button::after {
  content: "›";
  display: inline-block;
  margin-left: 14px;
  font-size: 30px;
  line-height: 0;
  vertical-align: -3px;
}

.accept-button {
  align-self: start;
  min-height: 54px;
  margin-top: 0;
  border: 0;
  background: #cfcfcf;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.68);
}

.login-modal[hidden] {
  display: none;
}

.login-box {
  position: relative;
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 6px;
  color: #fff;
  background: #2d3844;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.login-box .heading-2 {
  margin: 0 0 20px;
  text-transform: uppercase;
  font-weight: 900;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.login-box label {
  display: block;
  margin-bottom: 14px;
}

.login-box label span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
}

.login-box input {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 4px;
  padding: 0 12px;
  background: #dfe4e7;
  color: #111;
}

.wide {
  width: 100%;
}

.modal-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 20px;
  color: #fff;
  font-size: 13px;
}

.modal-links a {
  color: #fff;
  text-decoration: underline;
}

.login-box p {
  margin: 0 0 10px;
  text-align: center;
  color: #ddd;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(233, 97, 5, 0.8);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(233, 97, 5, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(233, 97, 5, 0);
  }
}

@media (min-width: 900px) {
  .game-rail {
    grid-auto-columns: calc((100% - 120px) / 5);
  }
}

@media (max-width: 980px) {
  .info-strip {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .strip-right {
    width: 100%;
    justify-content: space-between;
  }

  .middle-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .cookie-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 20px;
  }

  .cookie-brand {
    align-self: auto;
  }

  .accept-button {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .brand-strip {
    min-height: 68px;
  }

  .brand-logo {
    width: 102px;
  }

  .brand-logo img {
    width: 96px;
  }

  .auth-actions {
    gap: 6px;
  }

  .btn-login,
  .btn-register {
    min-width: 86px;
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .page-shell {
    padding: 14px 8px 72px;
  }

  .portal-frame {
    padding: 10px;
  }

  .hero-carousel {
    aspect-ratio: 16 / 7;
  }

  .game-rail {
    grid-auto-columns: 70%;
    gap: 14px;
  }

  .mini-highlights,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .event-rail {
    grid-auto-columns: 86%;
    gap: 14px;
  }

  .footer-tools {
    width: 100%;
  }

  .footer-tools button {
    flex: 1;
    min-width: 0;
  }

  .cookie-copy p {
    font-size: 14px;
  }
}
