/* ZZVibe Games Hub — scoped to the BB-Custom games experience. */
body.bb3 .bb-games-page {
  --bb-games-violet: #8559e9;
  --bb-games-violet-deep: #6339c9;
  --bb-games-pink: #dd5fc6;
  --bb-games-cyan: #42a5dd;
  --bb-games-card-shadow: 0 16px 42px rgba(31, 23, 51, 0.09);
  color: var(--bb3-text, #191a1f);
}

body.bb3 .bb-games-page .tag_cont_fluid {
  width: min(1380px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: 0 22px 42px;
}

body.bb3 .bb-games-shell {
  display: grid;
  gap: 28px;
}

body.bb3 .bb-games-hero {
  position: relative;
  isolation: isolate;
  min-height: 390px;
  overflow: hidden;
  padding: 28px clamp(26px, 4vw, 58px) 38px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 22%, rgba(93, 210, 255, 0.36), transparent 27%),
    radial-gradient(circle at 18% 112%, rgba(243, 112, 191, 0.42), transparent 39%),
    linear-gradient(128deg, #20143e 0%, #5530b4 48%, #8758e7 100%);
  box-shadow: 0 26px 70px rgba(77, 46, 153, 0.24);
}

body.bb3 .bb-games-hero::before,
body.bb3 .bb-games-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

body.bb3 .bb-games-hero::before {
  top: -120px;
  right: -70px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.035), 0 0 0 92px rgba(255, 255, 255, 0.025);
}

body.bb3 .bb-games-hero::after {
  inset: 0;
  opacity: 0.2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 0.8px, transparent 0.8px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, #000, transparent 65%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 65%);
}

body.bb3 .bb-games-hero-nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

body.bb3 .bb-games-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.bb3 .bb-games-brand-mark {
  display: inline-grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.bb3 .bb-games-brand-mark svg {
  width: 20px;
  height: 20px;
}

body.bb3 .bb-games-tabs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(22, 13, 50, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.bb3 .bb-games-tabs a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.78) !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

body.bb3 .bb-games-tabs a:hover,
body.bb3 .bb-games-tabs a:focus-visible {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

body.bb3 .bb-games-tabs a.is-active {
  color: #2a174e !important;
  background: #fff;
  box-shadow: 0 5px 18px rgba(26, 14, 58, 0.2);
}

body.bb3 .bb-games-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
}

body.bb3 .bb-games-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.bb3 .bb-games-eyebrow::before {
  width: 25px;
  height: 2px;
  content: "";
  border-radius: 99px;
  background: #67d3ff;
  box-shadow: 0 0 15px rgba(103, 211, 255, 0.8);
}

body.bb3 .bb-games-hero h1 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

body.bb3 .bb-games-hero-copy {
  max-width: 590px;
  margin: 19px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
}

body.bb3 .bb-games-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 27px;
}

body.bb3 .bb-games-primary-btn,
body.bb3 .bb-games-secondary-btn {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 19px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

body.bb3 .bb-games-primary-btn {
  color: #351864 !important;
  background: #fff;
  box-shadow: 0 12px 25px rgba(29, 14, 63, 0.24);
}

body.bb3 .bb-games-secondary-btn {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

body.bb3 .bb-games-primary-btn:hover,
body.bb3 .bb-games-secondary-btn:hover {
  transform: translateY(-2px);
}

body.bb3 .bb-games-primary-btn:hover {
  box-shadow: 0 16px 30px rgba(29, 14, 63, 0.3);
}

body.bb3 .bb-games-secondary-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.16);
}

body.bb3 .bb-games-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 27px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
}

body.bb3 .bb-games-hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

body.bb3 .bb-games-hero-stat::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: #71e4c0;
  box-shadow: 0 0 0 4px rgba(113, 228, 192, 0.13);
}

body.bb3 .bb-games-hero-art {
  position: relative;
  min-height: 265px;
}

body.bb3 .bb-games-hero-card {
  position: absolute;
  display: block;
  overflow: hidden;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 45px rgba(22, 10, 52, 0.34);
  text-decoration: none !important;
  transform: translateZ(0);
  transition: transform 190ms ease, box-shadow 190ms ease;
}

body.bb3 .bb-games-hero-card:hover {
  z-index: 5;
  box-shadow: 0 29px 58px rgba(22, 10, 52, 0.42);
}

body.bb3 .bb-games-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

body.bb3 .bb-games-hero-card:hover img {
  transform: scale(1.045);
}

body.bb3 .bb-games-hero-card::after {
  position: absolute;
  inset: 42% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(18, 8, 41, 0.92));
}

body.bb3 .bb-games-hero-card-main {
  inset: 5px 85px 5px 0;
  z-index: 3;
  transform: rotate(-2.5deg);
}

body.bb3 .bb-games-hero-card-main:hover {
  transform: rotate(-1deg) translateY(-4px);
}

body.bb3 .bb-games-hero-card-small {
  right: 0;
  width: 46%;
  height: 48%;
  z-index: 2;
  transform: rotate(4deg);
}

body.bb3 .bb-games-hero-card-small:nth-child(2) {
  top: -1px;
}

body.bb3 .bb-games-hero-card-small:nth-child(3) {
  right: 10px;
  bottom: -5px;
  transform: rotate(7deg);
}

body.bb3 .bb-games-hero-card-small:hover {
  transform: rotate(2deg) translateY(-3px);
}

body.bb3 .bb-games-hero-card-small:nth-child(3):hover {
  transform: rotate(5deg) translateY(-3px);
}

body.bb3 .bb-games-hero-card-info {
  position: absolute;
  right: 15px;
  bottom: 14px;
  left: 15px;
  z-index: 2;
}

body.bb3 .bb-games-hero-card-info span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.bb3 .bb-games-hero-card-info strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #fff;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bb3 .bb-games-section {
  min-width: 0;
}

body.bb3 .bb-games-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

body.bb3 .bb-games-section-kicker {
  margin: 0 0 5px;
  color: var(--bb-games-violet);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.bb3 .bb-games-section h2 {
  margin: 0;
  color: var(--bb3-text, #191a1f);
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 850;
  letter-spacing: -0.028em;
  line-height: 1.15;
}

body.bb3 .bb-games-section-description {
  max-width: 600px;
  margin: 7px 0 0;
  color: var(--bb3-muted, #777b86);
  font-size: 13px;
  line-height: 1.55;
}

body.bb3 .bb-games-result-count {
  flex: 0 0 auto;
  color: var(--bb3-muted, #777b86);
  font-size: 12px;
  font-weight: 700;
}

body.bb3 .bb-games-popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

body.bb3 .bb-games-popular-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--bb3-border, rgba(23, 25, 31, 0.09));
  border-radius: 21px;
  background: #26212e;
  box-shadow: var(--bb3-shadow-sm, 0 7px 22px rgba(15, 16, 19, 0.04));
}

body.bb3 .bb-games-popular-card > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

body.bb3 .bb-games-popular-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 11, 25, 0.04) 22%, rgba(16, 11, 25, 0.9) 100%);
}

body.bb3 .bb-games-popular-card:hover > img {
  transform: scale(1.05);
}

body.bb3 .bb-games-popular-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 17px;
  color: #fff !important;
  text-decoration: none !important;
}

body.bb3 .bb-games-popular-rank {
  position: absolute;
  top: 13px;
  left: 13px;
  display: inline-grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #362060;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 18px rgba(16, 9, 32, 0.19);
  font-size: 12px;
  font-weight: 900;
}

body.bb3 .bb-games-popular-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

body.bb3 .bb-games-popular-meta strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bb3 .bb-games-popular-meta span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 11px;
  font-weight: 650;
}

body.bb3 .bb-games-popular-play {
  display: inline-grid;
  width: 37px;
  min-width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #5c34b9;
  box-shadow: 0 8px 20px rgba(15, 7, 35, 0.25);
}

body.bb3 .bb-games-popular-play svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

body.bb3 .bb-games-library {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--bb3-border, rgba(23, 25, 31, 0.09));
  border-radius: 26px;
  background: var(--bb3-surface, #fff);
  box-shadow: var(--bb-games-card-shadow);
}

body.bb3 .bb-games-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 13px;
  margin: 20px 0 15px;
}

body.bb3 .bb-games-search {
  position: relative;
  display: flex;
  align-items: center;
}

body.bb3 .bb-games-search > svg {
  position: absolute;
  left: 15px;
  width: 19px;
  height: 19px;
  color: var(--bb3-muted, #777b86);
  pointer-events: none;
}

body.bb3 .bb-games-search input {
  width: 100%;
  height: 47px;
  padding: 10px 46px 10px 44px;
  color: var(--bb3-text, #191a1f);
  border: 1px solid transparent;
  border-radius: 15px;
  outline: none;
  background: var(--bb3-surface-raised, #eef0f4);
  font-size: 14px;
  transition: background 160ms ease, border 160ms ease, box-shadow 160ms ease;
}

body.bb3 .bb-games-search input::placeholder {
  color: var(--bb3-muted, #777b86);
}

body.bb3 .bb-games-search input:focus {
  border-color: rgba(133, 89, 233, 0.46);
  background: var(--bb3-surface, #fff);
  box-shadow: 0 0 0 4px var(--bb3-accent-soft, rgba(131, 88, 232, 0.12));
}

body.bb3 .bb-games-search-clear {
  position: absolute;
  right: 9px;
  display: none;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--bb3-muted, #777b86);
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
  line-height: 30px;
}

body.bb3 .bb-games-search-clear.is-visible {
  display: block;
}

body.bb3 .bb-games-search-clear:hover {
  color: var(--bb3-text, #191a1f);
  background: var(--bb3-surface-hover, #eceef2);
}

body.bb3 .bb-games-sort {
  position: relative;
}

body.bb3 .bb-games-sort select {
  min-width: 180px;
  height: 47px;
  padding: 8px 40px 8px 14px;
  color: var(--bb3-text, #191a1f);
  border: 1px solid var(--bb3-border, rgba(23, 25, 31, 0.09));
  border-radius: 15px;
  outline: none;
  background: var(--bb3-surface, #fff);
  font-size: 13px;
  font-weight: 700;
}

body.bb3 .bb-games-category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -4px 22px;
  padding: 4px;
  scrollbar-width: none;
}

body.bb3 .bb-games-category-bar::-webkit-scrollbar {
  display: none;
}

body.bb3 .bb-games-category {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 39px;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  color: var(--bb3-text-soft, #50535c);
  border: 1px solid var(--bb3-border, rgba(23, 25, 31, 0.09));
  border-radius: 999px;
  background: var(--bb3-surface, #fff);
  font-size: 12px;
  font-weight: 750;
  transition: transform 150ms ease, color 150ms ease, border 150ms ease, background 150ms ease;
}

body.bb3 .bb-games-category::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--category-color, var(--bb-games-violet));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--category-color, var(--bb-games-violet)) 16%, transparent);
}

body.bb3 .bb-games-category[data-category="all"] { --category-color: #8559e9; }
body.bb3 .bb-games-category[data-category="arcade"] { --category-color: #de5fc6; }
body.bb3 .bb-games-category[data-category="puzzle"] { --category-color: #3b9bd6; }
body.bb3 .bb-games-category[data-category="action"] { --category-color: #e45f6f; }
body.bb3 .bb-games-category[data-category="racing"] { --category-color: #e59c33; }
body.bb3 .bb-games-category[data-category="casual"] { --category-color: #3aae77; }
body.bb3 .bb-games-category[data-category="cards"] { --category-color: #5967d9; }
body.bb3 .bb-games-category[data-category="strategy"] { --category-color: #8c64c9; }

body.bb3 .bb-games-category:hover {
  color: var(--bb3-text, #191a1f);
  border-color: var(--bb3-border-strong, rgba(23, 25, 31, 0.14));
  background: var(--bb3-surface-hover, #eceef2);
  transform: translateY(-1px);
}

body.bb3 .bb-games-category.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--bb-games-violet), var(--bb-games-violet-deep));
  box-shadow: 0 9px 21px rgba(100, 57, 201, 0.22);
}

body.bb3 .bb-games-category.is-active::before {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}

body.bb3 .bb-games-category-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--bb3-surface-raised, #eef0f4);
  color: var(--bb3-muted, #777b86);
  font-size: 10px;
  font-weight: 850;
}

body.bb3 .bb-games-category.is-active .bb-games-category-count {
  color: #fff;
  background: rgba(255, 255, 255, 0.17);
}

body.bb3 .bb-game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

body.bb3 .bb-game-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bb3-border, rgba(23, 25, 31, 0.09));
  border-radius: 20px;
  background: var(--bb3-surface-soft, #f4f5f7);
  box-shadow: 0 1px 1px rgba(22, 19, 31, 0.02);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.bb3 .bb-game-card[hidden] {
  display: none !important;
}

body.bb3 .bb-game-card:hover {
  z-index: 2;
  border-color: var(--bb3-border-strong, rgba(23, 25, 31, 0.14));
  box-shadow: 0 17px 36px rgba(29, 21, 51, 0.12);
  transform: translateY(-4px);
}

body.bb3 .bb-game-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.28 / 1;
  background: var(--bb3-surface-raised, #eef0f4);
}

body.bb3 .bb-game-card-media::after {
  position: absolute;
  inset: 46% 0 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(transparent, rgba(19, 13, 30, 0.44));
  opacity: 0;
  transition: opacity 180ms ease;
}

body.bb3 .bb-game-card:hover .bb-game-card-media::after {
  opacity: 1;
}

body.bb3 .bb-game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

body.bb3 .bb-game-card:hover .bb-game-card-media img {
  transform: scale(1.045);
}

body.bb3 .bb-game-card-category,
body.bb3 .bb-game-card-new {
  position: absolute;
  z-index: 2;
  top: 11px;
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.bb3 .bb-game-card-category {
  left: 11px;
  color: #fff;
  background: rgba(25, 17, 39, 0.66);
}

body.bb3 .bb-game-card-new {
  right: 11px;
  color: #43216e;
  background: rgba(255, 255, 255, 0.9);
}

body.bb3 .bb-game-card-play-icon {
  position: absolute;
  z-index: 3;
  right: 13px;
  bottom: 13px;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: #6038ba;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(19, 10, 39, 0.25);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 170ms ease, transform 170ms ease;
}

body.bb3 .bb-game-card:hover .bb-game-card-play-icon,
body.bb3 .bb-game-card-media:focus-visible .bb-game-card-play-icon {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.bb3 .bb-game-card-play-icon svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

body.bb3 .bb-game-card-body {
  padding: 14px;
}

body.bb3 .bb-game-card-title {
  display: block;
  overflow: hidden;
  margin: 0;
  color: var(--bb3-text, #191a1f) !important;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.35;
  text-decoration: none !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.bb3 .bb-game-card-title:hover {
  color: var(--bb-games-violet) !important;
}

body.bb3 .bb-game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

body.bb3 .bb-game-card-meta {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--bb3-muted, #777b86);
  font-size: 11px;
  font-weight: 650;
}

body.bb3 .bb-game-card-meta svg {
  width: 14px;
  height: 14px;
}

body.bb3 .bb-game-card-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  color: var(--bb-games-violet) !important;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none !important;
}

body.bb3 .bb-game-card-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 150ms ease;
}

body.bb3 .bb-game-card-cta:hover svg {
  transform: translateX(2px);
}

body.bb3 .bb-games-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 35px 20px;
  text-align: center;
}

body.bb3 .bb-games-empty[hidden] {
  display: none;
}

body.bb3 .bb-games-empty-icon {
  display: inline-grid;
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  place-items: center;
  color: var(--bb-games-violet);
  border-radius: 21px;
  background: var(--bb3-accent-soft, rgba(131, 88, 232, 0.12));
}

body.bb3 .bb-games-empty-icon svg {
  width: 30px;
  height: 30px;
}

body.bb3 .bb-games-empty h3 {
  margin: 0;
  color: var(--bb3-text, #191a1f);
  font-size: 18px;
}

body.bb3 .bb-games-empty p {
  max-width: 390px;
  margin: 8px auto 0;
  color: var(--bb3-muted, #777b86);
  line-height: 1.6;
}

body.bb3 .bb-games-library-hero {
  min-height: 255px;
}

body.bb3 .bb-games-library-hero .bb-games-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.55fr);
}

body.bb3 .bb-games-library-orbit {
  position: relative;
  display: grid;
  min-height: 150px;
  place-items: center;
}

body.bb3 .bb-games-library-orbit::before,
body.bb3 .bb-games-library-orbit::after {
  position: absolute;
  width: 150px;
  height: 150px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 50%;
}

body.bb3 .bb-games-library-orbit::after {
  width: 210px;
  height: 210px;
  border-style: dashed;
  opacity: 0.56;
}

body.bb3 .bb-games-library-count {
  position: relative;
  z-index: 2;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 36px rgba(20, 9, 45, 0.24);
  text-align: center;
  transform: rotate(5deg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.bb3 .bb-games-library-count strong {
  display: block;
  color: #fff;
  font-size: 38px;
  line-height: 1;
}

body.bb3 .bb-games-library-count span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 750;
}

body.bb3.bb3-dark .bb-games-library {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

body.bb3.bb3-dark .bb-game-card {
  background: var(--bb3-surface-soft, #21242b);
}

body.bb3.bb3-dark .bb-games-category-count {
  background: rgba(255, 255, 255, 0.08);
}

body.bb3.bb3-dark .bb-games-sort select {
  background: var(--bb3-surface-raised, #24272f);
}

@media (max-width: 1199px) {
  body.bb3 .bb-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.bb3 .bb-games-popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  body.bb3 .bb-games-hero-grid,
  body.bb3 .bb-games-library-hero .bb-games-hero-grid {
    grid-template-columns: 1fr;
  }

  body.bb3 .bb-games-hero-art {
    width: min(560px, 100%);
    min-height: 245px;
    margin: 5px auto 0;
  }

  body.bb3 .bb-games-library-orbit {
    display: none;
  }
}

@media (max-width: 767px) {
  body.bb3 .bb-games-page .tag_cont_fluid {
    padding: 0 12px 28px;
  }

  body.bb3 .bb-games-shell {
    gap: 23px;
  }

  body.bb3 .bb-games-hero {
    min-height: 0;
    padding: 20px 19px 26px;
    border-radius: 24px;
  }

  body.bb3 .bb-games-hero-nav {
    align-items: flex-start;
    margin-bottom: 27px;
  }

  body.bb3 .bb-games-brand span:last-child {
    display: none;
  }

  body.bb3 .bb-games-tabs a {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 11px;
  }

  body.bb3 .bb-games-hero h1 {
    font-size: clamp(34px, 11vw, 50px);
  }

  body.bb3 .bb-games-hero-copy {
    font-size: 14px;
  }

  body.bb3 .bb-games-hero-art {
    min-height: 210px;
  }

  body.bb3 .bb-games-hero-card-main {
    right: 65px;
  }

  body.bb3 .bb-games-section-head {
    align-items: flex-start;
  }

  body.bb3 .bb-games-library {
    padding: 19px 14px 18px;
    border-radius: 22px;
  }

  body.bb3 .bb-games-toolbar {
    grid-template-columns: 1fr;
  }

  body.bb3 .bb-games-sort select {
    width: 100%;
  }

  body.bb3 .bb-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.bb3 .bb-games-popular-grid {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }

  body.bb3 .bb-games-popular-card {
    min-height: 165px;
  }
}

@media (max-width: 479px) {
  body.bb3 .bb-games-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.bb3 .bb-games-primary-btn,
  body.bb3 .bb-games-secondary-btn {
    width: 100%;
  }

  body.bb3 .bb-games-hero-stats {
    gap: 10px 15px;
  }

  body.bb3 .bb-games-hero-art {
    min-height: 180px;
  }

  body.bb3 .bb-games-hero-card-main {
    right: 54px;
  }

  body.bb3 .bb-games-popular-grid {
    grid-template-columns: 1fr;
  }

  body.bb3 .bb-games-popular-card {
    min-height: 180px;
  }

  body.bb3 .bb-game-grid {
    gap: 10px;
  }

  body.bb3 .bb-game-card {
    border-radius: 17px;
  }

  body.bb3 .bb-game-card-body {
    padding: 11px;
  }

  body.bb3 .bb-game-card-title {
    font-size: 13px;
  }

  body.bb3 .bb-game-card-cta span {
    display: none;
  }

  body.bb3 .bb-game-card-category,
  body.bb3 .bb-game-card-new {
    top: 8px;
    min-height: 23px;
    padding: 4px 7px;
    font-size: 8px;
  }

  body.bb3 .bb-game-card-category {
    left: 8px;
  }

  body.bb3 .bb-game-card-new {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.bb3 .bb-games-page *,
  body.bb3 .bb-games-page *::before,
  body.bb3 .bb-games-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
