@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
html,
body,
button,
input,
select,
textarea {
  font-family: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu,
    Cantarell, sans-serif;
  font-weight: 400;
  font-style: normal;
}

.games-section {
  margin-top: 28px;
}

.hero-carousel {
  position: relative;
  width: 100vw;
  overflow: hidden;
  background-image: url("/media/gringos_media/assets/bg-pattern-2-brown.jpg");
  background-size: cover;
  background-position: center;
}

.section-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100vw;
}

.rewards-title {
  padding: 6px 16px 10px;
  font-weight: 800;
  font-size: 16px;
  color: #ffd54f;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 8px 16px 16px;
}
.menu-tile .icon {
  font-size: 28px;
  line-height: 1;
  display: block;
  color: #fff;
}
/* Variantes de color para diferenciar las tarjetas */
.menu-tile.variant-blue {
  background: linear-gradient(180deg, #0045ad 0%, #001b2d 100%);
  color: #e6f2ff;
  border: 1px solid #0142a3;
  height: 75px;
  width: 120px;
}
.menu-tile.variant-green {
  background: linear-gradient(180deg, #00904a 0%, #00200d 100%);
  color: #e9ffe6;
  border: 1px solid #018d49;
  height: 75px;
  width: 120px;
}
.menu-tile.variant-orange {
  background: linear-gradient(180deg, #ffa600 0%, #fc7500 100%);
  color: #fff0e6;
  border-color: rgba(255, 187, 131, 0.25);
  height: 75px;
  width: 120px;
}
.menu-tile.variant-purple {
  background: linear-gradient(180deg, #7d00c0 0%, #120042 100%);
  color: #f3e9ff;
  border-color: rgba(187, 131, 255, 0.25);
  height: 75px;
  width: 120px;
}
.menu-tile.variant-pink {
  background: linear-gradient(180deg, #ff00e1 0%, #670045 100%);
  color: #ffe9f3;
  border: 1px solid #f501d7;
  height: 75px;
  width: 120px;
}
.menu-tile.variant-cyan {
  background: linear-gradient(180deg, #00bdc4 0%, #1225f5 100%);
  color: #e6fbff;
  border: 1px solid #01b6c6;
  height: 75px;
  width: 120px;
}
.menu-tile.variant-brown {
  background: linear-gradient(180deg, #f48a00 0%, #7e0a00 100%);
  color: #fff2e6;
  border: 1px solid #f18701;
  height: 75px;
  width: 120px;
}
.menu-tile.variant-skyblue {
  background: linear-gradient(180deg, #63cfff 0%, #008fcc 100%);
  color: #fff2e6;
  border: 1px solid #63cfff;
  height: 75px;
  width: 120px;
}

.sidebar-nav {
  flex: 1;
  /* padding: 20px 0; */
  overflow-y: auto;
}

/* ===== GRID DE ÍCONOS (BetBox móvil) ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 8px 16px 16px;
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.08); */
  margin-bottom: 16px;
}

.menu-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* gap: 10px; */
  text-decoration: none;
  background: linear-gradient(180deg, #0d1c33 0%, #0a172b 100%);
  border: 1px solid rgba(131, 187, 255, 0.2);
  border-radius: 12px;
  /* padding: 14px 10px; */
  color: #7fb2ff;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 1px rgba(17, 100, 180, 0.12) inset;
}

.menu-tile:hover {
  border-color: #1f7cff;
  box-shadow: 0 6px 14px rgba(31, 124, 255, 0.15);
  filter: brightness(1.03);
}

.menu-tile.active {
  color: #ffffff;
  border-color: #ffd54d;
  box-shadow: 0 0 0 1px rgba(255, 213, 77, 0.4) inset,
    0 8px 20px rgba(255, 213, 77, 0.18);
  background: radial-gradient(
      120px 80px at 50% -10%,
      rgba(255, 213, 77, 0.15),
      transparent 60%
    ),
    #0a1424;
}

.menu-tile img {
  width: 42px;
  height: 42px;
}

.menu-tile span {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.nav-section {
  margin-bottom: 32px;
}

.nav-section-title {
  padding: 0 20px 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.2), transparent);
  color: #ffffff;
  border-right: 3px solid #4f46e5;
}

.nav-item-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  width: 100%;
}
.frame {
  flex: 0 0 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.frame.active {
  opacity: 1;
}

.winners-carousel {
  width: 100vw;
}
/* ===== Adaptación móvil (celular) — TODO dentro de un solo media query ===== */
@media screen and (max-width: 600px) {
  .winners-carousel {
    width: 100vw !important;
  }
  #promoCarousel .promo-card {
    min-height: 176px !important;
  }
  .promo-card {
    width: 100vw;
    min-height: 180px;
  }
  .promo-carousel .slide {
    flex: 0 0 100%;
  }
  .promo-character {
    max-width: 38%;
  }
  .promo-content {
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: 12px;
  }
  .promo-title {
    font-size: 14px;
  }
  .promo-sub {
    font-size: 16px;
  }
  .promo-btn {
    padding: 8px 10px;
  }
  :root {
    --header-height: 56px;
  }

  /* Layout base */
  body {
    overflow-x: hidden;
  }
  .main-content {
    margin-left: 0 !important;
    padding-bottom: 20px !important;
  }

  /* Header: solo botón Iniciar sesión */
  .top-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    display: flex;
    align-items: center;
    backdrop-filter: blur(6px);
  }
  .top-header .hamburger-btn,
  .top-header .header-search,
  .top-header .user-balance,
  .top-header .btn.btn-primary,
  .top-header .btn.btn-outline,
  .top-header .btn.btn-danger {
    display: none !important;
  }
  .top-header .header-actions {
    margin-left: auto;
  }
  .top-header .btn.btn-secondary {
    display: inline-flex !important;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 12px;
    background: url("/media/spinsy_media/textura-boton.svg") repeat-x left
        center padding-box,
      linear-gradient(0deg, #404040, #404040),
      linear-gradient(238.42deg, #2e2e2e 5%, rgb(64 64 64 / 0) 76%);
    --stb-button-box-shadow-top-color: rgb(255 255 255 / 25%);
    border: 1px solid #e0b54a !important;
    color: #0a0a0f !important;
    box-shadow: 0 2px rgb(0 0 0), 0 2px 0 0 rgb(255 255 255 / 25%) inset,
      0 -2px 0 0 rgb(0 0 0 / 0.25) inset;
    position: relative;
    overflow: hidden;
  }

  .top-header .btn.btn-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background-repeat: repeat;
    background-size: 20px 20px;
    opacity: 0.2;
    pointer-events: none;
  }
  .top-header .btn.btn-secondary:hover {
    filter: brightness(1.08);
  }
  .top-header .btn.btn-danger {
    display: inline-flex !important;
    position: relative;
    overflow: hidden;
  }

  .top-header .btn.btn-danger::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("/media/spinsy_media/textura-boton.svg") !important;
    background-repeat: repeat;
    background-size: 20px 20px;
    opacity: 0.2;
    pointer-events: none;
  }
  /* Estilo dorado para botones de header (sesión iniciada) */
  .top-header .btn.btn-primary {
    background: linear-gradient(90deg, #e0b54a 0%, #ffd54d 50%, #e0b54a 100%);
    border: 1px solid #ffd54d;
    color: #0a0a0f;
    position: relative;
    overflow: hidden;
  }

  .top-header .btn.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("/media/spinsy_media/textura-boton.svg");
    background-repeat: repeat;
    background-size: 20px 20px;
    opacity: 0.2;
    pointer-events: none;
  }

  .top-header .btn.btn-outline {
    background: transparent;
    border: 1px solid #ffd54d;
    color: #ffd54d;
    position: relative;
    overflow: hidden;
  }

  .top-header .btn.btn-outline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("/media/spinsy_media/textura-boton.svg");
    background-repeat: repeat;
    background-size: 20px 20px;
    opacity: 0.2;
    pointer-events: none;
  }

  .top-header .btn.btn-outline:hover {
    background: rgba(255, 213, 77, 0.12);
    border-color: #ffd54d;
    color: #ffd54d;
  }

  .top-header .hamburger-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e3efff;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  /* Header móvil: reducir tamaño de botones y fuente */
  @media (max-width: 900px) {
    .top-header {
      height: 60px;
    }
    .top-header .header-actions {
      gap: 8px;
    }
    .top-header .header-actions .btn {
      font-size: 12px !important;
      padding: 6px 10px !important;
      border-radius: 8px !important;
      min-width: auto !important;
    }
    .top-header .gringos-header-btn,
    .top-header .gringos-header-btn.register-btn,
    .top-header .btn-header-deposit,
    .top-header .btn-header-exit {
      font-size: 12px !important;
      padding: 6px 10px !important;
      border-radius: 8px !important;
      min-width: auto !important;
    }
  }

  /* Banner medio: tamaño y tipografías reducidas */
  .mid-banner {
    /* margin: 14px 12px !important; */
    width: 100vw;
  }

  .mid-banner-img {
    height: 220px;
  }
  .mid-banner-link {
    height: 160px !important;
    border-radius: 12px !important;
  }
  .mid-banner-overlay {
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    right: 8px !important;
    padding: 8px 10px !important;
    border-radius: 10px;
    z-index: 12;
  }
  .mid-banner-badge {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }
  .mid-banner-title {
    font-size: 16px !important;
    line-height: 1.25 !important;
    margin: 6px 0 10px !important;
  }
  .mid-banner-btn {
    font-size: 12px !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
  }
  @media (max-width: 900px) {
    .mid-banner .mid-banner-btn {
      display: none !important;
    }
  }

  /* Deportes: convertir a una sola fila con scroll horizontal */
  .sport-section .sport-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 10px !important;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .sport-section .sport-card {
    flex: 0 0 72vw !important;
    max-width: 72vw !important;
    scroll-snap-align: start;
    border-radius: 12px !important;
  }
  .sport-section .sport-card img {
    height: 140px !important;
    object-fit: cover;
  }
  .sport-section .sport-card .sport-title {
    font-size: 13px !important;
    padding: 10px 12px !important;
  }

  /* Game Row: fila horizontal con tarjetas grandes y scroll */
  .games-section {
    padding: 0 12px;
    width: 0px !important;
  }
  .section-header {
    width: 100vw;
    padding: 0 2px;
    margin-bottom: 8px;
  }
  .section-title {
    font-size: 14px;
  }
  .section-header .view-all {
    font-size: 12px;
    padding: 6px 10px;
  }

  .games-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
  }
  .games-row .game-card-optimized {
    flex: 0 0 72vw;
    max-width: 72vw;
    scroll-snap-align: start;
    border-radius: 12px;
  }
  .game-card-optimized .game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
  .game-card-optimized .provider-badge {
    top: 8px;
    left: 8px;
    font-size: 11px;
    padding: 3px 6px;
  }
  .game-card-optimized .game-info {
    padding: 8px 8px 10px;
  }
  .game-card-optimized .game-title {
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .game-card-optimized .game-vendor {
    font-size: 11px;
    opacity: 0.8;
  }
  .game-card-optimized .game-actions-optimized {
    margin-top: 8px;
  }
  .game-card-optimized .btn-play {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    width: 100%;
    text-align: center;
  }

  /* Navegación inferior (si existe) deja espacio y mantiene legibilidad */
  .mv-bottom {
    height: 62px;
  }
  .mv-bottom a {
    font-size: 11px;
  }
}

/* =============================
   Sidebar / Menú lateral (Mafia)
   Unificación de estilos
============================= */
.sidebar {
  width: 100%;
  background-color: rgb(0 17 58);
  /* background-image: url("/media/gringos_media/assets/bg-pattern-2-brown.jpg"); */
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  border-right: none;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: auto;
  max-height: calc(100vh - var(--header-height));
  left: 0;
  top: var(--header-height);
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-150%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.sidebar.active {
  transform: translateY(0);
}

.sidebar-header-controls {
  display: flex;
  justify-content: flex-end;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
}

.close-menu-btn {
  background: transparent;
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.close-menu-btn img {
  width: 24px;
  height: 24px;
}
/* Ocultar scrollbar en el sidebar, pero mantener el scroll */
.sidebar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}
/* Sidebar promos */
.sidebar-promos {
  padding: 12px;
  display: grid;
  gap: 10px;
}
.cashback-card {
  position: relative;
  border-radius: 10px;
  padding: 12px;
  background: url("/media/jocker_media/resources/menu-banner.webp") no-repeat
    center / cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cashback-card .cb-title {
  font-size: 12px;
  font-weight: 800;
  color: #ffd54d;
  letter-spacing: 0.4px;
}
.cashback-card .cb-sub {
  font-size: 18px;
  font-weight: 900;
  margin: 6px 0 10px;
}
.cashback-card .cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f1c232, #c58c00);
  color: #0a0a0f;
  font-weight: 800;
  border: 1px solid #e0b54a;
  text-decoration: none;
}
.gclass-banner {
  display: block;
  position: relative;
  border-radius: 10px;
  padding: 10px 12px;
  background: linear-gradient(90deg, #b31217, #3a0a0e);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.gclass-banner .gclass-label {
  font-weight: 900;
  letter-spacing: 0.4px;
}

/* Quick tiles */
.quick-tiles {
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.quick-tiles .tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.quick-tiles .tile:hover {
  background: rgba(255, 255, 255, 0.08);
}
.quick-tiles .tile i {
  width: 22px;
  height: 22px;
  display: inline-block;
}
.quick-tiles .tile span {
  font-size: 12px;
  font-weight: 800;
}

/* Hero compacto superior del sidebar */
.sidebar-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  min-height: 86px;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: url("/media/spinsy_media/textura-boton.svg") repeat-x left center
      padding-box,
    linear-gradient(95.63deg, #e7e7e726 -0.1%, #e7e7e700),
    linear-gradient(180deg, rgb(28 28 28), rgb(0 0 0));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 14px rgba(0, 0, 0, 0.25);
}
.sidebar-hero .hero-title {
  font-size: 18px;
  font-weight: 900;
  color: #ffd54d;
}
.sidebar-hero .hero-sub {
  font-weight: 800;
  opacity: 0.9;
}
.sidebar-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 50%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.28) 100%
  );
  pointer-events: none;
}
.sidebar-hero .hero-car {
  height: 62px;
  width: auto;
  display: block;
  border-radius: 6px;
}

/* Lista principal tipo ejemplo */
.menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px 14px;
}
.menu .menu-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  text-decoration: none;
  color: #e6ebf3;
  border: none;
  box-shadow: none;
  font-weight: 900;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.menu .menu-item .icon {
  width: 22px;
  color: #cfd6e4;
}
.menu .menu-item:hover {
  color: #ffd54d;
  background: transparent;
  border: none;
  box-shadow: none;
}
.menu .menu-item:hover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(14 33 70);
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow: 0 -2px rgba(0, 0, 0, 0.3) inset,
    0 2px rgba(255, 255, 255, 0.2) inset, 0 2px rgba(0, 0, 0, 0.35);
  transform: skew(-6deg);
}
.menu .menu-item:hover span {
  text-shadow: 0 1px 0 #000, 0 -1px 0 #000, 1px 0 0 #000, -1px 0 0 #000;
}
.menu .menu-item:hover .icon {
  filter: brightness(1.1);
}
.menu .menu-item.active {
  color: #0b1220;
  background: transparent;
  border: none;
  box-shadow: none;
}
.menu .menu-item.active .icon {
  filter: brightness(1.05);
}
.menu .menu-item.active::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/media/big_media/assets/dots.png"), rgb(220 232 255);
  background-repeat: repeat-y, no-repeat;
  background-position: right center, center;
  background-size: 70px 7px, cover;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow: 0 -2px rgba(0, 0, 0, 0.3) inset,
    0 2px rgba(255, 255, 255, 0.2) inset, 0 2px rgba(0, 0, 0, 0.35);
  transform: skew(-6deg);
}

/* Sections */
.sidebar-sections {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-sections .section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-sections .section i {
  font-size: 18px;
}
.sidebar-sections .section .arrow {
  font-style: normal;
  color: rgba(255, 255, 255, 0.6);
}
.sidebar-sections .section.active {
  border-color: #ffd54d;
  box-shadow: 0 0 0 1px rgba(255, 213, 77, 0.25) inset;
}
.sidebar-sections .section.open {
  border-color: #ffd54d;
  box-shadow: 0 0 0 1px rgba(255, 213, 77, 0.25) inset;
}
.sidebar-submenu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 6px 12px 8px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(27, 27, 27, 0.92);
  border: 2px solid #ffd54d;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}
.sidebar-sections .section.open + .sidebar-submenu {
  max-height: 520px;
  opacity: 1;
  padding: 10px;
}
.sidebar-submenu .submenu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
}
.sidebar-submenu .submenu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.sidebar-submenu .submenu-item img {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1) grayscale(1);
  opacity: 0.95;
}

/* =============================
   Fila de juegos reutilizable
   Siempre horizontal con scroll
============================= */

/* Scrollbar global rojo para coherencia del tema */
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffd54d, #e0b54a) !important;
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffe477, #ffd54d) !important;
}
body {
  scrollbar-color: #ffd54d rgba(255, 255, 255, 0.08) !important;
}

.games-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: auto;
  gap: 18px 18px;
  overflow: visible;
  padding: 10px 8px;
  width: 90%;
  margin: 0 auto;
}

.games-row .game-card,
.games-row .game-card-optimized {
  width: auto;
  flex: initial;
  scroll-snap-align: start;
  border-radius: 12px;
}

/* .games-row .game-image-container { aspect-ratio: 1 / 1; } */
.games-row .game-image {
  object-fit: cover;
}
.games-row .game-info {
  padding: 8px 2px;
}
.games-row .game-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.games-row .game-vendor,
.games-row .game-actions-optimized,
.games-row .provider-badge {
  display: none !important;
}

/* Paginación simple dentro de game_row */
.games-pager {
  display: flex;
  align-items: center;
  gap: 8px;
}
.games-pager .pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 2px solid #ffd54d;
  color: #ffd54d;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    filter 0.15s ease;
  font-size: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
}
.games-pager .pager-prev {
  background-image: url("/media/big_media/assets/arrow-left.png");
}
.games-pager .pager-next {
  background-image: url("/media/big_media/assets/arrow-right.png");
}
.games-pager .pager-btn:hover:not([disabled]) {
  background: #ffd54d;
  color: #0a0a0f;
  border-color: #ffd54d;
  filter: brightness(1.02);
}
.games-pager .pager-btn[disabled] {
  opacity: 0.5;
  cursor: default;
  color: rgba(255, 213, 77, 0.55);
  border-color: rgba(255, 213, 77, 0.35);
}
.games-pager .pager-page {
  font-size: 12px;
  color: #ffd54d;
  font-weight: 800;
}

@media (max-width: 1024px) {
  .games-row {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .top-header .btn.btn-danger {
    height: 38px;
  }
  /* Header mobile */

  .header-brand img {
    content: url("/media/big_media/logo.svg") !important;
    height: 40px !important;
  }

  .gringos-header-btn {
    padding: 6px 12px !important;
    font-size: 11px !important;
    min-width: 100px !important;
    gap: 6px !important;
  }

  .gringos-header-btn img {
    width: 12px !important;
  }

  .gringos-header-btn span {
    font-size: 11px !important;
  }

  .top-header .btn.btn-danger {
    height: 39px !important;
  }
  .games-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .games-row .game-title {
    font-size: 11px;
  }
}
@media (max-width: 480px) {
  .games-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Compatibilidad con tarjetas optimizadas dentro de filas horizontales */
.games-row .game-card-optimized {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
/* No fijamos altura para que se comporte como en games.php */
/* .games-row .game-card-optimized .game-image { } */

/* =============================
   Tarjeta de juego optimizada
   Copiado desde games.php
============================= */
.game-card-optimized {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.game-card-optimized::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    145deg,
    rgba(255, 213, 77, 0.12),
    rgba(224, 181, 74, 0.12)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.game-card-optimized:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(255, 213, 77, 0.3);
  border-color: #ffd54d;
}
.game-card-optimized:hover::before {
  opacity: 1;
}

.game-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Mantener proporción uniforme para todas las portadas */
  /* aspect-ratio: 9/9; */
  height: auto;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    #fff740,
    #ffea32 14.06%,
    #ffca0a 83.85%,
    #ffad0f
  );
  filter: drop-shadow(0 1px 1px #b94a16);
  padding: 5px;
  box-sizing: border-box;
}
.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #1f2937, #111827);
}
.game-card-optimized:hover .game-image {
  transform: scale(1.05);
}

.provider-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.provider-badge.gsp {
  background: linear-gradient(135deg, #ffd54d, #e0b54a);
  color: #0a0a0f;
}
.provider-badge.veritral {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

.game-info {
  padding: 12px;
}
.game-title {
  font-size: 13px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.game-vendor {
  font-size: 10px;
  margin-bottom: 10px;
}

.game-actions-optimized {
  background-color: transparent;
}
.btn-play {
  background: linear-gradient(
    135deg,
    var(--purple-1, #7c3aed),
    var(--purple-2, #8b5cf6)
  );
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
  color: #fff;
  border: none;
  padding: 8px 12px;
  font-size: 11px;
  border-radius: 10px;
  display: inline-block;
}
.btn-play:hover {
  background: linear-gradient(
    135deg,
    var(--purple-2, #8b5cf6),
    var(--purple-1, #7c3aed)
  );
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}
.btn-play:active {
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.35);
}

.games-row .game-image {
  height: auto; /* igual que en games.php, sin recorte */
  object-fit: cover;
  border-radius: 0;
}

.games-row::-webkit-scrollbar {
  height: 8px;
}
.games-row::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
.games-row::-webkit-scrollbar-thumb {
  /* Amarillo consistente para el tema */
  background: linear-gradient(90deg, #ffd54d, #e0b54a) !important;
  border-radius: 8px;
}
.games-row::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #ffe477, #ffd54d) !important;
}

/* Asegurar color correcto también en Firefox */
.games-row {
  scrollbar-color: #ffd54d rgba(255, 255, 255, 0.08) !important; /* thumb, track */
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
}

/* Lista vertical principal */
.menu-list {
  list-style: none;
  margin: 0;
  padding: 12px 10px 18px;
}

.menu-list.main-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Ítems del menú */
.menu-item {
  display: flex;
  align-items: center;
  padding: 12px 12px;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  background: transparent; /* sin pill por defecto, como el original */
}

.menu-item .icon {
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  color: #b9c8dc; /* icono tenue azulado */
  width: 22px; /* reservar ancho para alinear texto */
}

.menu-item span {
  font-size: 15px;
  font-weight: 900;
  font-style: italic;
}

.menu-item:hover {
  color: #ffd54d;
  background: linear-gradient(
    0deg,
    rgba(224, 181, 74, 0.3) 0%,
    rgba(255, 213, 77, 0.15) 100%
  );
  border: 1px solid rgba(224, 181, 74, 0.5);
  box-shadow: 0 0 0 1px rgba(224, 181, 74, 0.3) inset;
}
.menu-item:hover .icon {
  color: #ffd54d;
}

/* Estado activo con resplandor amarillo dorado */
.menu-item.is-active,
.menu-item.active {
  position: relative;
  color: #ffd54d;
  /* Fondo activo amarillo dorado */
  background: linear-gradient(
      0deg,
      rgba(224, 181, 74, 0.49) 0%,
      rgba(255, 213, 77, 0) 100%
    ),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  /* Borde/halo amarillo dorado */
  box-shadow: 0 0 0 1px rgba(224, 181, 74, 0.5) inset,
    0 0 0 1px rgba(224, 181, 74, 0.5), 0 6px 18px rgba(224, 181, 74, 0.35);
}

@media (max-width: 900px) {
  .sidebar .sidebar-hero {
    position: relative;
    height: 140px;
    background-image: url("/media/big_media/banners/MOBILE/burger-bg.jpg");
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    overflow: hidden;
  }
  .sidebar .sidebar-hero img {
    position: absolute;
    bottom: -6px;
    left: 80%;
    transform: translateX(-50%);
    width: 121px;
    height: 120px;
    pointer-events: none;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
  }
}
.menu-item.active .icon,
.menu-item.is-active .icon {
  color: #ffd54d;
}

/* Sección de "Módulos" en el sidebar */
.rewards-list {
  padding: 8px 10px 16px;
}
.rewards-list .menu-item {
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Variantes de color para tarjetas/ítems especiales en sidebar */
.menu-item.variant-blue {
  background: linear-gradient(180deg, #0d1c33 0%, #0a172b 100%);
  border: 1px solid rgba(131, 187, 255, 0.2);
  color: #7fb2ff;
}
.menu-item.variant-green {
  background: linear-gradient(180deg, #0b3322 0%, #072016 100%);
  border: 1px solid rgba(80, 200, 120, 0.25);
  color: #6fe7a7;
}
.menu-item.variant-orange {
  background: linear-gradient(180deg, #3a1a00 0%, #2a1200 100%);
  border: 1px solid rgba(255, 187, 131, 0.25);
  color: #ffcf9e;
}
.menu-item.variant-purple {
  background: linear-gradient(180deg, #1a0b33 0%, #120024 100%);
  border: 1px solid rgba(187, 131, 255, 0.25);
  color: #cba8ff;
}
.menu-item.variant-pink {
  background: linear-gradient(180deg, #2b001f 0%, #1a0012 100%);
  border: 1px solid rgba(245, 1, 215, 0.35);
  color: #ff9ee6;
}
.menu-item.variant-cyan {
  background: linear-gradient(180deg, #001c1f 0%, #001019 100%);
  border: 1px solid rgba(1, 182, 198, 0.35);
  color: #87e9f1;
}
.menu-item.variant-brown {
  background: linear-gradient(180deg, #2b1400 0%, #1a0c00 100%);
  border: 1px solid rgba(241, 135, 1, 0.35);
  color: #ffddb8;
}
.menu-item.variant-skyblue {
  background: linear-gradient(180deg, #0a1730 0%, #071226 100%);
  border: 1px solid rgba(99, 207, 255, 0.35);
  color: #bdeaff;
}

/* Footer del sidebar: tarjeta de usuario / botón login */
.sidebar-footer {
  padding: 14px 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-footer .btn {
  background: #1a2434;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
}
.sidebar-footer .btn:hover {
  filter: brightness(1.06);
}

/* Tarjeta de usuario compacta */
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  padding: 10px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.user-info:hover {
  background: rgba(255, 255, 255, 0.1);
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.user-details .user-name {
  font-weight: 800;
  font-size: 13px;
}
.user-details .user-balance {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* =============================
   Header superior (Mafia)
   Unificación de estilos
============================= */
.top-header {
  background: rgb(10 41 102);
  box-shadow: 0 0.2rem 0.2rem 0 rgba(0, 0, 0, 0.35);
  height: 56px;
  display: grid;
  grid-template-columns: 66px 1fr auto;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

.top-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.09) 16%,
    rgba(255, 255, 255, 0) 17%
  );
  background-repeat: repeat;
  background-position: center;
  background-size: 12px 12px;
  opacity: 0.18;
  pointer-events: none;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-brand img {
  height: 32px;
  width: auto;
}
.header-brand .brand-text {
  font-weight: 900;
  font-size: 18px;
  color: #fff;
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.header-nav .nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 2px;
}
.header-nav .nav-link:hover {
  color: #fff;
}
.header-nav .nav-link.active {
  color: #ffd54d;
}
.header-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: #ffd54d;
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Estilos para botones de header 5Gringos */
.gringos-header-btn {
  position: relative !important;
  background: linear-gradient(
    180deg,
    rgb(61 109 195) 0%,
    rgb(25 66 144) 50%,
    rgb(10 41 102) 100%
  ) !important;
  background-image: none !important;
  border: 2px solid #0a0a0a !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
  font-weight: 400 !important;
  color: #fff !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  padding: 8px 16px !important;
  /* font-size: 13px !important; */
  letter-spacing: 0.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background-color: rgb(25 66 144) !important;
  min-width: 118px !important;
  /* height: auto !important; */
  border-radius: 8px !important;
  overflow: hidden !important;
  transform: skew(calc(-1 * 6deg));
}

.gringos-header-btn::before {
  content: "" !important;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  /* box-shadow: 0 5px 0 rgb(10 41 102) inset; */
  box-shadow: 0 5px 0 rgb(61 109 195) inset;
}

.gringos-header-btn::after {
  content: "" !important;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 -5px 0 rgb(10 41 102) inset;
}

.gringos-header-btn:hover {
  filter: brightness(1.03) !important;
  transform: translateY(-1px) !important;
}

/* Asegurar que reglas genéricas del header no desactiven el pseudo-elemento */
.top-header .btn.btn-danger::before {
  content: none;
}
.top-header .gringos-header-btn::before {
  content: "" !important;
}

.gringos-header-btn img {
  width: 16px !important;
  height: auto !important;
  flex-shrink: 0 !important;
}

.gringos-header-btn span {
  font-weight: 900 !important;
  text-shadow: 0 1px 0 #000, 0 -1px 0 #000, 1px 0 0 #000, -1px 0 0 #000 !important;
  font-size: 20px;
}

/* Botón de panel para roles específicos */
.btn-header-panel {
  background-image: url("/media/gringos_media/assets/button-bg-primary.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
}

.btn-header-panel:hover {
  filter: brightness(1.2) !important;
}

.header-brand img {
  height: 40px !important;
}

/* Registro: variante verde con relieve superior e inferior */
.gringos-header-btn.register-btn {
  background: linear-gradient(
    180deg,
    rgb(144 255 176) 0%,
    rgb(5 219 39) 50%,
    rgb(0 155 30) 100%
  ) !important;
}
.gringos-header-btn.register-btn::before {
  content: "" !important;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  /* box-shadow: 0 5px 0 rgb(0 155 30) inset; */
  box-shadow: 0 5px 0 rgb(144 255 176) inset;
}
.gringos-header-btn.register-btn::after {
  content: "" !important;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 -5px 0 rgb(0 155 30) inset;
}
.hamburger-btn {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  margin-left: 16px;
}
.hamburger-btn:active {
  transform: scale(0.98);
}
.header-search {
  display: flex;
  align-items: center;
  position: relative;
  margin-right: 12px;
}
.header-search-input {
  width: 360px;
  max-width: 40vw;
  padding: 10px 14px 10px 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #e6f0ff;
  outline: none;
}
.header-suggest {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 420px;
  max-width: 40vw;
  background: rgba(7, 14, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px;
  backdrop-filter: blur(6px);
  display: none;
  z-index: 200;
}
.header-suggest .empty {
  padding: 12px;
  font-size: 12px;
  color: #9fb6d1;
  display: none;
}
.header-suggest.open {
  display: block;
}
.header-suggest .section-title {
  font-size: 12px;
  font-weight: 800;
  color: #cbd5e1;
  margin: 6px 8px;
}
.header-suggest .suggest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.header-suggest .suggest-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  color: #e6f0ff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.header-suggest .suggest-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.header-suggest .thumb {
  width: 44px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
}
.header-suggest .name {
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.header-suggest .loading {
  padding: 12px;
  text-align: center;
}
.header-suggest .spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ff304d;
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.header-search-input::placeholder {
  color: rgba(201, 219, 255, 0.75);
}
.header-search::before {
  content: "\1F50D";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(201, 219, 255, 0.85);
}
.btn {
  padding: 15px 20px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
}
.btn-primary {
  background: #ffe93f;
  color: #0a0a0f;
  border: 1px solid #ffd54d;
}
.btn-primary:hover {
  filter: brightness(1.05);
}
.btn-outline {
  background: transparent;
}
.btn-outline:hover {
  background: rgba(255, 213, 77, 0.12);
}
/* Variante amarilla para el botón "Ver todos" */
.btn-outline.view-all {
  border-width: 2px !important;
  border-radius: 10px !important;
  text-transform: uppercase !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    filter 0.15s ease;
}
.btn-outline.view-all:hover {
  background: #ffd54d !important;
  border-color: #ffd54d !important;
  color: #0a0a0f !important;
  filter: brightness(1.02);
}
/* Variantes específicas del header */
.btn-ghost {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #dfe7f5;
}
.btn-ghost:hover {
  filter: brightness(1.05);
}
.btn-danger {
  background: linear-gradient(0deg, #e0b54a 0%, #ffd54d 100%);
  color: #0a0a0f;
  box-shadow: 0 2px rgb(0 0 0), 0 2px 0 0 rgb(255 255 255 / 25%) inset,
    0 -2px 0 0 rgb(0 0 0 / 0.25) inset;
}
.btn-danger:hover {
  filter: brightness(1.05);
}

/* Botón secundario (estilo oscuro tipo hamburguesa) */
.btn-secondary {
  position: relative;
  overflow: hidden;
  border-radius: 12px; /* más redondeado como el original */
  background: url("/media/spinsy_media/textura-boton.svg") repeat-x left center
      padding-box,
    linear-gradient(0deg, #404040, #404040),
    linear-gradient(238.42deg, #2e2e2e 5%, rgb(64 64 64 / 0) 76%);
  color: white;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px rgb(0 0 0), 0 2px 0 0 rgb(255 255 255 / 25%) inset,
    0 -2px 0 0 rgb(0 0 0 / 0.25) inset;
  transition: background-color var(--stb-transition-time, 0.2s),
    opacity var(--stb-transition-time, 0.2s), filter 0.2s ease;
}
.btn-secondary:hover {
  filter: brightness(1.05);
}

/* Capa interior para simular el borde y sombra del original */
.btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(66 80 108);
  border: 1px solid rgb(85 103 139);
  opacity: var(--stb-button-opacity-bg, 0.35);
  border-radius: inherit;
  pointer-events: none;
}
/* Sombra interna desde la mitad hacia abajo (reemplaza la línea blanca) */
.btn-secondary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.28) 100%
  );
  pointer-events: none;
}

/* Responsive header */
@media (max-width: 900px) {
  .top-header {
    grid-template-columns: 48px 1fr auto;
    height: 55px;
  }
  .header-brand img {
    height: 28px;
  }
  .header-nav {
    display: none;
  }
  .header-search-input {
    width: 160px;
    max-width: 50vw;
  }
  .header-actions .btn {
    font-size: 12px;
    border-radius: 6px;
  }
}

/* ===== Header: aplicar textura también al botón REGISTRO ===== */
.top-header .btn.btn-danger {
  background: url("/media/spinsy_media/textura-boton.svg") repeat-x left center
      padding-box,
    linear-gradient(0deg, #404040, #404040),
    linear-gradient(238.42deg, #2e2e2e 5%, rgb(64 64 64 / 0) 76%);
  color: var(--stb-button-color, rgb(235 240 246));
  height: 54px;
}

.register-btn {
  background-image: none !important;
}

.top-header .btn.btn-danger::before {
  content: none;
}

/* ===== Modal de Login (global) ===== */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.login-modal.open {
  display: flex;
}
.login-content {
  background: url("/media/big_media/assets/bg.png"),
    linear-gradient(180deg, rgb(10 31 79) 0%, rgb(19 59 138) 100%);
  background-size: cover, cover;
  background-position: center;
  border-radius: 16px;
  width: 560px;
  max-width: 92vw;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.7);
  padding: 24px 24px 20px;
}
.login-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}
.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.login-logo img {
  width: 120px;
  height: auto;
  display: block;
}
.login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #cf2a2a;
  border: 1px solid #000;
  color: #fff;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.login-close:hover {
  filter: brightness(1.05);
  transform: scale(1.05);
}
.login-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 16px;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
}
.login-meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 18px;
}
.login-meta a {
  color: #ffd54d;
  text-decoration: none;
  font-weight: 700;
}
.login-meta a:hover {
  text-decoration: underline;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 6px;
  font-weight: 800;
}
.form-input {
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  color: #0a0a0f;
  font-size: 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 3px 10px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  border-color: rgb(25 66 144);
  box-shadow: 0 0 0 3px rgba(25, 66, 144, 0.25);
}
.form-input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

/* Botón dorado del modal */
.btn-login {
  background: linear-gradient(
    180deg,
    rgb(144 255 176) 0%,
    rgb(5 219 39) 50%,
    rgb(0 155 30) 100%
  );
  border: 2px solid #0a0a0a;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 15px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-login:hover {
  filter: brightness(1.02);
}
/* ======= Sticky Category Bar (Reusable) ======= */
.cat-bar {
  position: sticky;
  top: 54px;
  z-index: 950;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  margin-top: 10px;
  padding-bottom: 6px;
  transition: all 0.3s ease;
}

.cat-bar.fixed {
  position: fixed;
  top: 56px;
  left: 243px;
  right: 0;
  width: auto;
  z-index: 990;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  margin-top: 0;
}
.cat-bar .cat-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 8px;
  /* max-width: 1380px; */
  /* margin: 0 auto; */
  padding: 0 12px;
}
.cat-bar .cat-scroll {
  display: flex;
  /* gap: 8px; */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  font-size: 10px;
  justify-content: flex-start;
  align-items: center;
  /* width: 80%; */
  padding: 6px 0;
  justify-content: flex-start !important;
  margin: 0 auto;
}
.cat-bar .cat-scroll::-webkit-scrollbar {
  height: 8px;
}
.cat-bar .cat-scroll::-webkit-scrollbar-track {
  background: #0a1338;
  border-radius: 8px;
}
.cat-bar .cat-scroll::-webkit-scrollbar-thumb {
  background: #0c1f45;
  border: 1px solid #0a1338;
  border-radius: 8px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  color: #fff;
  position: relative;
  min-width: 120px;
  min-height: 90px;
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  scroll-snap-align: start;
}

.cat-item::before {
  content: none;
}

/* Marco del icono con imagen de borde - superpuesto */
.cat-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  background: none;
  z-index: 2;
  margin: 0 0 -1px 0;
}

.cat-icon img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  filter: brightness(1.1);
}

.icon-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

/* Etiqueta con fondo de patrón y borde decorativo */
.cat-label {
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  padding: 8px 12px;
  position: relative;
  border: none;
  background: transparent;
  min-width: 120px;
  width: auto;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s ease;
  z-index: 1;
  margin-top: -2px;
  font-weight: 900;
}

.cat-label::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: repeat-y;
  background-position: calc(100% + 22px);
  background-size: 70px 7px, cover;
  border-radius: 4px;
  transform: skew(calc(-1 * 6deg));
  opacity: 1;
  transition: color 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
  content: "";
}

/* Efectos hover */
.cat-item:hover .cat-label {
  filter: brightness(1.1);
}

.cat-item:hover .cat-icon {
  transform: scale(1.05);
}

.cat-item:active .cat-label {
  filter: brightness(1.05);
}

.cat-icon {
  transition: all 0.3s ease;
}

.cat-arrow {
  appearance: none;
  border: 1px solid rgba(140, 170, 210, 0.18);
  /* Fondo con textura igual al de los ítems */
  background: url("/media/mafia_media/bg.webp"),
    linear-gradient(
      180deg,
      rgba(9, 19, 38, 0.45) 0%,
      rgba(7, 14, 30, 0.35) 100%
    );
  background-blend-mode: overlay;
  background-repeat: repeat;
  background-size: 280px auto;
  background-position: center;
  color: #e3efff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.3);
}
.cat-arrow:disabled {
  opacity: 0.45;
  cursor: default;
}

/* No cubrir el sidebar en vistas con rail izquierdo */
body.with-left-rail .cat-bar {
  margin-left: 280px;
  width: calc(100% - 280px);
}
@media (max-width: 1440px) {
  .cat-bar .cat-scroll {
    width: 79vw;
  }
}
@media (max-width: 1024px) {
  .cat-bar .cat-scroll {
    width: 71vw;
  }
}
@media (max-width: 768px) {
  .sport-caption {
    padding: 2px !important;
    font-size: 9px;
    text-align: center;
  }
  .auto-banner-img {
    height: 330px !important;
  }
  .supershows-section .game-image-container {
    min-height: 264px !important;
  }
  .hero-carousel .viewport {
    height: auto !important;
    overflow: visible !important;
    background: #000 !important;
  }
  .hero-carousel video {
    /* position: static !important; */
    width: 100% !important;
    height: auto !important;
    left: auto !important;
  }
  .hero-carousel .banner-overlay {
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    padding: 12px 16px !important;
  }
  .games-container.filtered {
    padding-top: 0px !important;
  }
  .game-info {
    height: 32px;
  }
  /* Header superior y navegación móvil */
  .top-header {
    /* grid-template-columns: 1fr auto; */
    height: 56px;
  }
  .header-brand {
    gap: 8px;
  }
  .header-brand img {
    width: 70px !important;
    height: 50px !important;
  }
  .header-brand .brand-text {
    font-size: 16px;
  }
  .header-nav {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 0 6px;
  }
  .header-nav .nav-link {
    scroll-snap-align: start;
    font-size: 13px;
    padding: 8px 2px;
  }
  .header-actions {
    gap: 8px;
  }
  .btn {
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 12px;
  }

  /* Sidebar en móvil - Top Down */
  .sidebar {
    transform: translateY(-150%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    width: 100%;
    top: var(--header-height);
    left: 0;
    height: auto;
    max-height: calc(100vh - var(--header-height));
    border-right: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  .sidebar.active {
    transform: translateY(0);
    display: flex !important;
  }
  /* Compatibilidad con clase antigua si algo la usa */
  .sidebar.open {
    transform: translateY(0);
    display: flex !important;
  }
  .sidebar.open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
  }
  .main-content {
    margin-left: 0;
  }

  .cat-bar {
    /* position: relative; */
    top: 0;
    z-index: 950;
    margin-top: 0;
    /* padding-bottom: 8px; */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    /* padding-top: 23px; */
    transition: all 0.3s ease;
  }

  .cat-bar.fixed {
    top: 60px;
    left: 0px;
  }

  .cat-bar .cat-scroll {
    width: 100vw;
  }

  /* Menú de acceso rápido (iconos) */
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 8px 12px 12px;
  }
  .menu-tile {
    padding: 12px 8px;
    border-radius: 12px;
  }
  .menu-tile img {
    width: 36px;
    height: 36px;
  }
  .menu-tile span {
    font-size: 12px;
  }

  /* Banners: tira y carrusel en columna */
  .banner-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 8px;
  }
  .frame-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .banner-card {
    border-radius: 16px;
  }
  .banner-img {
    height: auto;
    object-fit: cover;
  }
  .banner-overlay {
    width: 70%;
    max-width: 70%;
    gap: 4px;
  }
  .banner-overlay .slogan-title {
    font-size: 18px;
  }
  .banner-overlay .slogan-subtitle {
    font-size: 12px;
  }
  .banner-cta {
    left: 10px;
    bottom: 10px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .cat-item {
    height: auto;
    min-height: 90px;
    flex-direction: row;
    min-width: 180px;
  }
  .cat-icon {
    width: 50px;
    height: 50px;
  }
  .cat-icon img {
    width: 50px;
    height: 50px;
  }
  .cat-label {
    font-size: 10px;
    /* min-width: fit-content;
    max-width: 126px;
    padding: 0px 8px; */
    white-space: nowrap;
  }
  body.with-left-rail .cat-bar {
    margin-left: 0;
    width: 100%;
  }

  /* Fila de juegos: mostrar título y proveedor siempre visibles */
  .games-section {
    padding: 0 12px;
  }
  .games-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
  }
  .games-row .game-card-optimized {
    flex: 0 0 72vw;
    max-width: 199px;
    /* height: 250px; */
    scroll-snap-align: start;
    border-radius: 12px;
  }
  /* Asegurar que las imágenes llenen el contenedor en móvil */
  .game-card-optimized .game-image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
  }
  .game-card-optimized .game-info {
    padding: 8px 8px 10px;
  }
  .game-card-optimized .game-title {
    font-size: 14px;
    line-height: 1.2;
    color: #fff;
  }
  .game-card-optimized .game-vendor {
    font-size: 11px;
    opacity: 0.85;
    color: #cbd5e1;
  }
  .game-card-optimized .btn-play {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    width: 100%;
    text-align: center;
  }

  .btn-primary {
    background: linear-gradient(90deg, #e0b54a 0%, #ffd54d 50%, #e0b54a 100%);
    border: 1px solid #ffd54d;
    color: #0a0a0f;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
      0 8px 22px rgba(224, 181, 74, 0.35);
  }

  .games-row {
    width: 95vw;
  } /* ..game-image-container */

  .hero-carousel .viewport {
    height: 290px;
    width: 100vw;
    border-radius: none;
  }

  .cat-bar {
    top: 40px;
  }

  .sports-section {
    padding: 4px 14px;
    width: 100vw;
  }
}

/* PARA PC */
/* ===== ESTILOS EXCLUSIVOS SOLO PARA SUPER SHOWS ===== */

/* Layout especial: 3 juegos grandes por fila - SOLO SUPER SHOWS */
.supershows-section .games-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 9px !important;
  padding: 0 !important;
  margin: 0 !important;
  grid-template-columns: none !important;
}

/* Tarjetas grandes - SOLO SUPER SHOWS */
.supershows-section .game-card-optimized {
  flex: 0 0 calc(33.333% - 22px) !important;
  width: calc(33.333% - 22px) !important;
  min-width: 350px !important;
  max-width: none !important;
  height: auto !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: linear-gradient(145deg, #1a1a2e, #16213e) !important;
  border: 3px solid rgba(255, 215, 0, 0.4) !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.15) !important;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  padding: 0 !important;
  margin: 0 !important;
}

.supershows-section .game-card-optimized:hover {
  transform: translateY(-20px) scale(1.05) !important;
  box-shadow: 0 30px 70px rgba(255, 215, 0, 0.5),
    0 0 50px rgba(255, 215, 0, 0.3) !important;
  border-color: #ffd700 !important;
  z-index: 10 !important;
}

/* Contenedor de imagen extra grande - SOLO SUPER SHOWS */
.supershows-section .game-image-container {
  position: relative !important;
  width: 100% !important;
  /* height: 500px !important; */
  /* min-height: 500px !important; */
  /* max-height: 500px !important; */
  overflow: hidden !important;
  background: linear-gradient(135deg, #0f0f1e, #1a1a2e) !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: unset !important;
}

/* Imagen a tamaño completo - SOLO SUPER SHOWS */
.supershows-section .game-image-container .game-image {
  width: 100% !important;
  height: 100% !important;
  /* min-height: 500px !important; */
  max-height: 500px !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  border-radius: 0 !important;
  display: block !important;
}

.supershows-section .game-card-optimized:hover .game-image {
  transform: scale(1.15) !important;
}

/* Título grande - SOLO SUPER SHOWS */
.supershows-section .game-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  padding: 20px !important;
  text-align: center !important;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.7)
  ) !important;
  color: #ffd700 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
}

@media screen and (width: 1024px) and (height: 520px) {
  .section-header {
    width: 77vw;
  }
  .sidebar {
    width: 216px;
  }
  .cat-item {
    min-width: 110px;
    height: auto;
    min-height: 80px;
  }

  .main-content {
    margin-left: 223px !important;
  }

  /* Activar scroll horizontal en la barra de categorías */
  .cat-bar .cat-scroll {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    padding: 0px;
    width: 100%;
  }

  /* Scrollbar más visible para desktop */
  .cat-bar .cat-scroll::-webkit-scrollbar {
    height: 6px;
  }

  .cat-bar .cat-scroll::-webkit-scrollbar-track {
    background: rgba(10, 19, 56, 0.6);
    border-radius: 3px;
  }

  .cat-bar .cat-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 213, 77, 0.4);
    border-radius: 3px;
  }

  .cat-bar .cat-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 213, 77, 0.6);
  }

  /* Ajustar el ancho del contenedor */
  .cat-bar .cat-inner {
    width: 100%;
    margin: 0;
    grid-template-columns: 1fr !important;
  }

  /* Ocultar flechas de navegación si existen */
  .cat-arrow {
    display: none !important;
  }
}
/* ===== Ajustes exclusivos para laptops 1366x599 ===== */
@media screen and (width: 1366px) and (height: 599px) {
  /* Fix Hero Height and Overflow */
  .winota-hero-container {
    height: 100vh !important;
    min-height: 600px !important;
  }

  /* Adjust Hero Carousel Characters Position & Scale */
  .winota-carousel-stage {
    height: 100% !important;
    top: 5% !important; /* Push down slightly */
    right: 0% !important; /* Move closer to center to avoid edge cutoff */
    width: 50% !important;
  }

  .hero-char {
    bottom: 0 !important;
    width: 2225px !important; /* Reduce base size */
  }

  .hero-char.pos-center {
    transform: translateX(-50%) scale(0.2) !important; /* Reduce scale */
    bottom: 20px !important;
  }

  .hero-char.pos-left {
    left: 20% !important;
    transform: translateX(-50%) scale(0.15) !important;
  }

  .hero-char.pos-right {
    left: 80% !important;
    transform: translateX(-50%) scale(0.15) !important;
  }

  /* Adjust Hero Text Content */
  .winota-hero-overlay {
    left: 8% !important;
    width: 45% !important;
  }

  .hero-main-title {
    font-size: 40px !important;
  }

  .hero-main-title .highlight {
    font-size: 55px !important;
  }

  /* Fix Cat Position */
  .winota-hero-cat {
    left: 15% !important;
    width: 180px !important;
    bottom: 20px !important;
  }

  /* ===== ESTILOS EXCLUSIVOS SOLO PARA SUPER SHOWS ===== */

  /* Layout especial: 3 juegos grandes por fila - SOLO SUPER SHOWS */
  .supershows-section .games-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 9px !important;
    padding: 0 !important;
    margin: 0 !important;
    grid-template-columns: none !important;
  }

  /* Tarjetas grandes - SOLO SUPER SHOWS */
  .supershows-section .game-card-optimized {
    flex: 0 0 calc(33.333% - 22px) !important;
    width: calc(33.333% - 22px) !important;
    min-width: 350px !important;
    max-width: none !important;
    height: auto !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: linear-gradient(145deg, #1a1a2e, #16213e) !important;
    border: 3px solid rgba(255, 215, 0, 0.4) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.15) !important;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .supershows-section .game-card-optimized:hover {
    transform: translateY(-20px) scale(1.05) !important;
    box-shadow: 0 30px 70px rgba(255, 215, 0, 0.5),
      0 0 50px rgba(255, 215, 0, 0.3) !important;
    border-color: #ffd700 !important;
    z-index: 10 !important;
  }

  /* Contenedor de imagen extra grande - SOLO SUPER SHOWS */
  .supershows-section .game-image-container {
    position: relative !important;
    width: 100% !important;
    /* height: 500px !important; */
    /* min-height: 500px !important; */
    /* max-height: 500px !important; */
    overflow: hidden !important;
    background: linear-gradient(135deg, #0f0f1e, #1a1a2e) !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: unset !important;
  }

  /* Imagen a tamaño completo - SOLO SUPER SHOWS */
  .supershows-section .game-image-container .game-image {
    width: 100% !important;
    height: 100% !important;
    /* min-height: 500px !important; */
    max-height: 500px !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    border-radius: 0 !important;
    display: block !important;
  }

  .supershows-section .game-card-optimized:hover .game-image {
    transform: scale(1.15) !important;
  }

  /* Título grande - SOLO SUPER SHOWS */
  .supershows-section .game-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    padding: 20px !important;
    text-align: center !important;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.7)
    ) !important;
    color: #ffd700 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
  }
  .games-section {
    margin-top: 11px;
    width: 100vw;
  }
  .cat-item {
    min-width: 120px;
    height: auto;
    min-height: 85px;
    padding: 0px !important;
    margin-right: 0px !important;
  }

  .cat-bar .cat-scroll {
    width: 80vw;
  }
  .games-row {
    width: 99%;
  }
  .games-row .game-card-optimized {
    width: 209px;
  }
  .hero-carousel video {
    left: 29%;
  }
  /* BANNER VIDEO */
  .cat-bar .cat-inner {
    width: 100vw;
    margin: 0px;
  }
  /* No tocar carrusel de banners aquí para evitar efectos colaterales */

  /* Espaciado de encabezados de sección para ganar vertical */
  .section-header-modern {
    margin-bottom: 20px;
  }
  .section-title-main {
    font-size: 1.6rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Grids de juegos: una fila con scroll horizontal visible */
  .games-grid,
  #homeGamesGrid,
  #homeNewGrid,
  #homeBonusGrid,
  #homeDropsGrid,
  #homeLiveGrid,
  #homeCrashGrid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    width: 1070px;
  }

  .games-grid .game-card,
  #homeGamesGrid .game-card,
  #homeNewGrid .game-card,
  #homeBonusGrid .game-card,
  #homeDropsGrid .game-card,
  #homeLiveGrid .game-card,
  #homeCrashGrid .game-card {
    flex: 0 0 auto;
    width: 200px;
    scroll-snap-align: start;
    border-radius: 12px;
  }

  .game-image {
    object-fit: cover;
  }
  .game-info {
    padding: 10px;
  }
  .game-title {
    font-size: 12px;
    line-height: 1.3;
  }
  .game-provider,
  .game-vendor {
    font-size: 10px;
  }

  /* Ajustes ligeros en menú lateral compacto */
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .menu-tile {
    width: 110px;
    height: 70px;
  }
  .menu-tile span {
    font-size: 12px;
  }
  .menu-tile .icon {
    font-size: 26px;
  }

  /* Scrollbar horizontal más fino en los carriles de juegos */
  .games-grid::-webkit-scrollbar,
  #homeGamesGrid::-webkit-scrollbar,
  #homeNewGrid::-webkit-scrollbar,
  #homeBonusGrid::-webkit-scrollbar,
  #homeDropsGrid::-webkit-scrollbar,
  #homeLiveGrid::-webkit-scrollbar,
  #homeCrashGrid::-webkit-scrollbar {
    height: 8px;
  }

  .games-grid::-webkit-scrollbar-thumb,
  #homeGamesGrid::-webkit-scrollbar-thumb,
  #homeNewGrid::-webkit-scrollbar-thumb,
  #homeBonusGrid::-webkit-scrollbar-thumb,
  #homeDropsGrid::-webkit-scrollbar-thumb,
  #homeLiveGrid::-webkit-scrollbar-thumb,
  #homeCrashGrid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #ffd54d, #e0b54a) !important;
    border-radius: 6px;
  }

  /* Hover rojo para scrollbars de carriles de juegos */
  .games-grid::-webkit-scrollbar-thumb:hover,
  #homeGamesGrid::-webkit-scrollbar-thumb:hover,
  #homeNewGrid::-webkit-scrollbar-thumb:hover,
  #homeBonusGrid::-webkit-scrollbar-thumb:hover,
  #homeDropsGrid::-webkit-scrollbar-thumb:hover,
  #homeLiveGrid::-webkit-scrollbar-thumb:hover,
  #homeCrashGrid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #ffe477, #ffd54d) !important;
  }

  /* Firefox: color del scrollbar en carriles de juegos */
  .games-grid,
  #homeGamesGrid,
  #homeNewGrid,
  #homeBonusGrid,
  #homeDropsGrid,
  #homeLiveGrid,
  #homeCrashGrid {
    scrollbar-color: #ffd54d rgba(255, 255, 255, 0.08) !important;
  }

  /* Mantener .frame-grid sin cambios para el carrusel de banners */
  .cat-strip {
    gap: 0px;
    width: 1090px;
  }

  .cat-link span {
    font-size: 15px;
  }

  .section-header {
    width: 100%;
  }

  .proveedor222 {
    width: 1070px;
  }
  .sidebar {
    width: 210px;
  }
  .winota-carousel-stage {
    width: 30%;
  }
}
.top-header .header-brand {
  display: inline-flex !important;
  align-items: center;
}
.top-header .header-brand img {
  height: auto;
  display: block;
}
.game-image-container {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.game-image-container::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0) 40%
    ),
    radial-gradient(
      60% 80% at 50% -20%,
      rgba(255, 213, 77, 0.25),
      rgba(0, 0, 0, 0) 70%
    );
  pointer-events: none;
  z-index: 1;
}
.game-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.game-card-optimized:hover .game-image-container::after {
  filter: brightness(1.06);
}
.game-card-optimized:hover .game-image-container {
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 28px rgba(0, 0, 0, 0.55),
    0 0 26px rgba(255, 213, 77, 0.28);
}
/* Promo panels */
.promo-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.promo-card {
  position: relative;
  min-height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: url("/media/jocker_media/resources/promotion-card-bg.webp")
    no-repeat center / cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.promo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/media/jocker_media/games/promo-card-border.webp") no-repeat
    center / cover;
  pointer-events: none;
  z-index: 3;
}
.promo-card.overlay-sports::before {
  background-image: url("/media/jocker_media/resources/overlay-sports.webp");
}
.promo-card.overlay-casino::before {
  background-image: url("/media/jocker_media/resources/overlay-casino.webp");
}
.promo-content {
  position: absolute;
  left: 0px;
  right: 38%;
  top: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.promo-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.promo-sub {
  font-size: 18px;
  font-weight: 900;
}
.promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(0deg, #f1c232 0%, #c58c00 100%);
  border: 1px solid #e0b54a;
  color: #0a0a0f;
  font-weight: 800;
  text-decoration: none;
}
.promo-link {
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}
.promo-character {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  max-width: 42%;
}
@media (max-width: 992px) {
  .sidebar.open {
    width: 98vw;
  }
  .promo-panels {
    grid-template-columns: 1fr;
  }
  .promo-content {
    right: 42%;
  }
}
.promo-carousel {
  position: relative;
  margin: 18px 0;
}
.promo-carousel .viewport {
  overflow: hidden;
  border-radius: 12px;
}
.promo-carousel .track {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
  gap: 0;
}
.promo-carousel .slide {
  flex: 0 0 50%;
}
.promo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.promo-controls .ctrl {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.promo-controls .ctrl[disabled] {
  opacity: 0.4;
  cursor: default;
}
.promo-dots {
  display: flex;
  gap: 6px;
}
.promo-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.promo-dots .dot.active {
  background: #ffd54d;
}
.promo-card.bg-soccer {
  background-image: url("/media/jocker_media/resources/Soccer_Stadium.png");
}
.promo-card.bg-default {
  background-image: url("/media/jocker_media/resources/promotion-card-bg.webp");
}
/* Banner medio: bordes con rayos (aplica en todas las vistas) */
.mid-banner-wrap {
  position: relative;
}
.mid-banner-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background-image: url("/media/big_media/assets/lightning-top.svg");
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto 100%;
  pointer-events: none;
  z-index: 10;
}
.mid-banner-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14px;
  background-image: url("/media/big_media/assets/lightning-bottom.svg");
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 100%;
  pointer-events: none;
  z-index: 10;
}
/* Fondo sesgado para título de sección especial (supershows) */
.supershows-especial-section .section-title {
  position: relative;
  display: inline-block;
  padding: 6px 18px 8px 18px;
  color: #fff;
  z-index: auto;
}
.supershows-especial-section .section-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(25 66 144);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
  transform: skew(30deg);
  transform-origin: left center;
  pointer-events: none;
  z-index: 0;
}

/* Fondo sesgado para títulos estándar de filas de juegos */
.games-section .section-title {
  position: relative;
  display: inline-block;
  padding: 6px 18px 8px 18px;
  color: #fff;
  z-index: auto;
}
.games-section .section-title::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: skew(30deg);
  transform-origin: left center;
  pointer-events: none;
  z-index: 0;
}

/* Fondo sesgado para títulos en GSP */
.gsp-section .section-title {
  position: relative;
  display: inline-block;
  padding: 6px 18px 8px 18px;
  color: #fff;
  z-index: auto;
}
.gsp-section .section-title::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: skew(30deg);
  transform-origin: left center;
  pointer-events: none;
  z-index: 0;
}

/* Fondo sesgado para título en Deportes */
.sports-header .section-title {
  position: relative;
  display: inline-block;
  padding: 6px 18px 8px 18px;
  color: #fff;
  z-index: auto;
}
.sports-header .section-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(25 66 144);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
  transform: skew(30deg);
  transform-origin: left center;
  pointer-events: none;
  z-index: 0;
}
.section-title .title-text {
  position: relative;
  z-index: 1;
}

/* =========================================
   Mid Banner Frame Styles (Cabaret Style)
   ========================================= */

/* Disable old lightning borders */
.mid-banner-wrap::before,
.mid-banner-wrap::after {
  display: none !important;
}

/* Ensure relative positioning for absolute children */
.mid-banner-wrap {
  position: relative;
  overflow: visible !important;
  margin: 4px 0; /* Add margin to prevent clipping */
}

/* Frame Elements Common */
.frame-border,
.frame-corner {
  position: absolute;
  pointer-events: none; /* Let clicks pass through */
  z-index: 20;
}

/* Horizontal Borders */
.frame-top,
.frame-bottom {
  left: 18px; /* Leave space for corners */
  right: 18px;
  height: 20px; /* Thicker border */
  background-image: url("/media/winota_media/assets/orn-horizontal-line.png");
  background-repeat: repeat-x;
  background-size: auto 100%;
}
.frame-top {
  top: -10px;
}
.frame-bottom {
  bottom: -10px;
}

/* Vertical Borders */
.frame-left,
.frame-right {
  top: 18px;
  bottom: 18px;
  width: 20px; /* Thicker border */
  background-image: url("/media/winota_media/assets/orn-vertical-line.png");
  background-repeat: repeat-y;
  background-size: 100% auto;
}
.frame-left {
  left: -10px;
}
.frame-right {
  right: -10px;
}

/* Corners */
.frame-corner {
  width: 48px;
  height: 48px;
  background-image: url("/media/winota_media/assets/gold-rectangle.webp");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 21; /* On top of borders */
}

.frame-corner-tl {
  top: -15px;
  left: -15px;
}
.frame-corner-tr {
  top: -15px;
  right: -15px;
  transform: scaleX(-1);
}
.frame-corner-bl {
  bottom: -15px;
  left: -15px;
  transform: scaleY(-1);
}
.frame-corner-br {
  bottom: -15px;
  right: -15px;
  transform: scale(-1, -1);
}

/* =========================================
   Mid Banner Split Layout (Side-by-Side)
   ========================================= */

@media (min-width: 901px) {
  .mid-banner-split {
    display: flex;
    align-items: stretch;
    position: relative;
    background: url("/media/winota_media/assets/bg.jpg") center center / cover
      no-repeat;
    /* Remove box-shadow/border from here if parent adds it, but frame handles borders */
  }

  .banner-content-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    position: relative;
    z-index: 5;
    /* background-image: url("/media/winota_media/assets/bg.jpg"); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .banner-image-side {
    flex: 1.2; /* Give slightly more space to image if needed */
    position: relative;
    overflow: hidden; /* Clip image to container */
    border-top-right-radius: 8px; /* Assuming container has radius */
    border-bottom-right-radius: 8px;
  }

  /* Adjust image to fill its side */
  .banner-image-side .mid-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* or contain, depending on image aspect */
    display: block;
    border-radius: 0; /* Reset radius */
  }

  /* Text Styles adjustments for this layout */
  .mid-banner-split .mid-banner-title {
    font-size: 32px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
  }

  .mid-banner-split .mid-banner-title .eyebrow {
    font-size: 18px;
    color: #ffd700;
    display: block;
    margin-bottom: 5px;
  }

  .mid-banner-split .mid-banner-title .lead {
    display: block;
    font-size: 36px;
    line-height: 1.1;
  }

  .mid-banner-split .mid-banner-btn {
    background: linear-gradient(
      180deg,
      #ff00cc 0%,
      #99007a 100%
    ); /* Purple/Pink button like reference */
    border: 2px solid #ffcc00;
    color: #fff;
    font-size: 20px;
    padding: 10px 30px;
    box-shadow: 0 4px 0 #660052;
    margin-bottom: 10px;
  }

  .mid-banner-split .more-info-link {
    color: #ffd700;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    font-weight: 700;
  }
}

/* Mobile Adjustments */
@media (max-width: 900px) {
  .mid-banner-split {
    display: block;
    position: relative;
  }
  .banner-content-side {
    display: none;
    display: block;
    padding: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
  }
  .banner-image-side {
    width: 100%;
  }
}
