/**
 * 皮肤 106 — 仅模板 sl6。
 * 后续页面沿用 body.skin-106、本文件，以及 partials/skin106_*。
 * 颜色只走 var(--f168-*)。壳宽沿用 --f168-shell-width（480）。
 */

body.skin-106 .header-f168__section--left {
  min-width: 0;
}

body.skin-106 .header-f168__logo img {
  max-width: 134px;
  max-height: 32px;
}

body.skin-106 .home-sticky-nav {
  z-index: 11;
  background-color: var(--f168-bg-page);
}

.skin106-home .skin106-marketing {
  display: block;
  line-height: 0;
}

.skin106-home .skin106-marketing img {
  width: 100%;
  height: auto;
  display: block;
}

.skin106-home .slide-banner .slick-dots li button {
  width: 6px;
  height: 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--f168-bg-page) 55%, transparent);
  border-color: transparent;
}

.skin106-home .slide-banner .slick-dots li.slick-active button {
  width: 16px;
  background: var(--f168-bg-page);
  border-color: transparent;
}

body.skin-106 .announce-wrap {
  min-height: 36px;
  padding: 0px;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.skin-106 .ann-icon {
  position: static;
  top: auto;
  left: auto;
  width: 21px;
  height: 21px;
  max-width: 21px;
  flex-shrink: 0;
  transform: none;
  color: var(--f168-accent);
}

body.skin-106 .ann-icon-svg {
  display: block;
  width: 21px;
  height: 21px;
}

body.skin-106 .ann-bar {
  height: 22px;
}

body.skin-106 .ann-bar-inner {
  font-size: 15px;
  line-height: 22px;
  color: color-mix(in srgb, var(--f168-text-dark) 50%, var(--f168-text-muted));
}

body.skin-106 .home-sticky-nav .user-section .container {
  padding-left: 0;
  padding-right: 0;
}

body.skin-106 .user-section__wrap {
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 10px 6px 20px 12px;
}

body.skin-106 .user-section__guest-btns {
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  width: 111px;
  flex-shrink: 0;
}

body.skin-106 .user-section__right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0;
  flex: 1;
  min-width: 0;
  padding-top: 0;
  overflow: visible;
}

body.skin-106 .user-section__nav-item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 67px;
  color: var(--f168-text-muted);
}

body.skin-106 .user-section__nav-item:hover {
  color: var(--f168-text-dark);
}

body.skin-106 .user-section__nav-icon {
  width: 100%;
  max-width: 58px;
  height: auto;
  aspect-ratio: 80 / 70;
}

body.skin-106 .user-section__nav-title {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--f168-text-dark);
  -webkit-line-clamp: 1;
}

body.skin-106 .user-section__nav-badge {
  position: absolute;
  top: -7px;
  right: -5px;
  z-index: 1;
  height: 14px;
  padding: 0 4px;
  border-radius: 7px 7px 7px 0;
  background: var(--f168-status-error);
  color: var(--f168-text-white);
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  white-space: nowrap;
}

.skin106-live {
  margin: 8px 12px 0;
}

.skin106-live__toggle {
  width: 100%;
  border: 1px solid var(--f168-border);
  background: var(--f168-bg-page);
  color: var(--f168-text-dark);
  border-radius: 8px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
}

.skin106-live__panel {
  margin-top: 8px;
}

.skin106-live__video {
  width: 100%;
  display: block;
  background: var(--f168-text-dark);
  border-radius: 8px;
}

.skin106-home .show-game-list-section {
  padding-top: 8px;
  padding-bottom: 8px;
}

.skin106-home .show-game-list__headline {
  display: none;
}

/* GG88 _game-list-box：headline + type2/3 同白底，视觉一块 */
body.skin-106 .show-game-list__panel:has(> .show-game-list__type2),
body.skin-106 .show-game-list__panel:has(> .show-game-list__type3) {
  background: var(--f168-bg-surface);
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 12px;
  box-sizing: border-box;
}

body.skin-106 .show-game-list__type2,
body.skin-106 .show-game-list__type3 {
  background: var(--f168-bg-surface);
}

body.skin-106 .show-game-list__provider-grid--col {
  padding: 0 10px;
}

body.skin-106 .show-game-list__panel:has(> .show-game-list__type2) > .skin106-game-head,
body.skin-106 .show-game-list__panel:has(> .show-game-list__type3) > .skin106-game-head {
  margin-bottom: 0;
  background-color: var(--f168-bg-surface);
}

/* GG88 _game-headline：底图条 1.1rem@64≈70px */
.skin106-game-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 70px;
  margin: 0 0 8px;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--f168-bg-surface);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  border-top-left-radius: 10px;
}

.skin106-game-head__title {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0 0 10px;
}

.skin106-game-head__icon {
  flex-shrink: 0;
  width: 42px;
  height: 32px;
  object-fit: contain;
}

.skin106-game-head__divider {
  flex-shrink: 0;
  width: 1px;
  height: 23px;
  margin-left: 3px;
  background-color: color-mix(in srgb, var(--f168-text-dark) 50%, var(--f168-text-muted));
}

.skin106-game-head__name {
  overflow: hidden;
  max-width: 101px;
  margin-left: 6px;
  color: color-mix(in srgb, var(--f168-text-dark) 50%, var(--f168-text-muted));
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.skin106-game-head__tip-wrap {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  margin-left: 10px;
  padding: 1px;
  border-radius: 15px;
  background: linear-gradient(
    to right,
    white 0%,
    color-mix(in srgb, var(--f168-accent) 28%, white) 5%,
    var(--f168-accent-secondary)
  );
}

.skin106-game-head__tip {
  display: flex;
  align-items: center;
  width: 100%;
  height: 19px;
  padding-right: 5px;
  border-radius: 13px;
  background: var(--f168-text-white);
}

.skin106-game-head__tip-icon {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.skin106-game-head__tip-text {
  margin-left: 3px;
  color: var(--f168-accent);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.skin106-game-head__all {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin: 0 19px 10px 0;
  color: var(--f168-text-white);
  text-decoration: none;
}

.skin106-game-head__all-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 22px;
  border-radius: 50%;
}

.skin106-game-head__all-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 22px;
  color: var(--f168-text-white);
}

.skin106-game-head__all-icon svg {
  width: 29px;
  height: 22px;
  display: block;
}

.skin106-game-head__all-text {
  color: var(--f168-text-white);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

/* big_win sau show_game_list (cùng thứ tự ko6 / pages.secs) */
.skin106-home > .big-win-section {
  padding: 8px 0 12px;
  margin: 0;
}

.skin106-home > .big-win-section > .container {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.skin106-app {
  display: block;
  line-height: 0;
  margin: 8px 0;
}

.skin106-app img {
  width: 100%;
  height: auto;
  display: block;
}

.skin106-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  padding: 12px 16px 4px;
}

.skin106-links a {
  color: var(--f168-text-muted);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
}

.skin106-home .image-ambassador-section__image {
  width: 100%;
  height: auto;
  display: block;
}

.skin106-home .footbox1,
.skin106-home .footbox2 {
  padding-top: 8px;
  padding-bottom: 8px;
}

.skin106-fast {
  position: fixed;
  z-index: 90;
  right: calc(50% - var(--f168-shell-half) + 8px);
  bottom: 132px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 56px;
}

.skin106-fast__item {
  display: block;
  line-height: 0;
}

.skin106-fast__item img {
  width: 56px;
  height: auto;
  display: block;
}

/* 皮肤 106 色板走 --f168-*；框和图标用 skin106 资源。 */
body.skin-106 #main-scrollbar {
  background-color: var(--f168-bg-page);
  background-image: url("../images/skin106/common/bg_pattern_tile.webp");
  background-repeat: repeat;
}

body.skin-106 .header-f168__menu-btn {
  color: var(--f168-accent);
}

body.skin-106 .header-f168__menu-icon {
  width: 22px;
  height: 22px;
}

body.skin-106 .header-f168__vip-icon {
  width: 36px;
  height: 40px;
}

body.skin-106 .home-sticky-nav {
  background-color: transparent;
  background-image: url("../images/skin106/home/img_zb_bg.webp");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center bottom;
}

body.skin-106 .user-section__btn--login,
body.skin-106 .user-section__btn--register {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: var(--f168-text-white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  box-shadow: none;
}

body.skin-106 .user-section__btn--login:hover,
body.skin-106 .user-section__btn--register:hover {
  color: var(--f168-text-white);
  opacity: 0.92;
}

body.skin-106 .user-section__btn--login {
  background-image: url("../images/skin106/home/btn_topnav_dl.webp");
}

body.skin-106 .user-section__btn--register {
  background-image: url("../images/skin106/home/btn_topnav_zc.webp");
}

body.skin-106 .ann-right {
  position: relative;
  width: 80px;
  height: 23px;
  min-width: 80px;
  margin-left: 0;
  right: auto;
  padding: 0;
  overflow: visible;
  background-image: none;
}

body.skin-106 .ann-right-img {
  display: block;
  width: 80px;
  height: 23px;
}

body.skin-106 .ann-right-text {
  display: block;
  position: absolute;
  left: 26px;
  right: 3px;
  top: 0;
  height: 23px;
  max-width: none;
  margin: 0;
  color: var(--f168-text-white);
  font-size: 10px;
  font-weight: 600;
  line-height: 23px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

body.skin-106 .ann-right-badge {
  position: absolute;
  top: -16px;
  right: 0;
  z-index: 1;
  height: 16px;
  padding: 0 5px;
  border-radius: 8px 8px 8px 0;
  background: var(--f168-status-error);
  color: var(--f168-text-white);
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
  line-height: 16px;
}

body.skin-106 .show-game-list-section {
  background: transparent;
}

body.skin-106 .show-game-list__wrap {
  gap: 8px;
}

body.skin-106 .show-game-list__sidebar.ui-sticky {
  flex: 0 0 clamp(54px, 13.2vw, 62px);
  width: clamp(54px, 13.2vw, 62px);
  min-width: clamp(54px, 13.2vw, 62px);
  margin-top: 0;
  overflow: visible;
  --sgl-tab-height: clamp(50px, 12.4vw, 58px);
  --sgl-tab-gap: 6px;
  --sgl-tab-radius: 11px;
  --sgl-tab-icon-w: clamp(32px, 8vw, 38px);
  --sgl-tab-icon-h: clamp(24px, 6vw, 29px);
  --sgl-tab-text: var(--f168-text-muted);
  --sgl-tab-text-active: var(--f168-text-white);
}

/* GG88: wrap khóa chiều cao, list bên trong pan-y scroll */
body.skin-106 .show-game-list__tabs-wrap.sidebar-tabs-theme126 {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - var(--show-game-list-sticky-top, 54px) - 78px);
  overflow: hidden;
  padding-top: 0;
}

body.skin-106 .show-game-list__tabs.lobby-scroll--y {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: none;
}

body.skin-106 .show-game-list__sidebar.ui-sticky,
body.skin-106 .show-game-list__sidebar.ui-sticky * {
  touch-action: pan-y;
}

body.skin-106 .show-game-list__tabs.lobby-scroll--y::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.skin-106 .show-game-list__tab-skin.sidebar-common-tab-item-theme-126 {
  background-image: none !important;
  background-color: var(--f168-bg-surface);
  border-radius: 11px;
  box-shadow: 2px 3px 2px color-mix(in srgb, var(--f168-accent) 16%, transparent);
}

body.skin-106 .show-game-list__tab-item.is-active .show-game-list__tab-skin--active,
body.skin-106 .show-game-list__tab-item[aria-selected="true"] .show-game-list__tab-skin--active {
  background-image: linear-gradient(
    color-mix(in srgb, var(--f168-accent) 42%, white) -6%,
    var(--f168-accent-secondary) 77%
  ) !important;
  background-color: transparent;
}

body.skin-106 .show-game-list__tab-item.is-active .show-game-list__tab-skin--active img {
  filter: brightness(0) invert(1);
}

body.skin-106 .show-game-list__tab-skin .sidebar-common-tab-name {
  height: auto;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
}

body.skin-106 .show-game-list__type1 {
  position: relative;
}

body.skin-106 .show-game-list__type1::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 64px;
  bottom: 0;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  background: linear-gradient(
    color-mix(in srgb, var(--f168-accent) 16%, white),
    color-mix(in srgb, var(--f168-accent) 3%, white) 30%
  );
  pointer-events: none;
}

body.skin-106 .show-game-list__type1 .show-game-list__scroll-wrap--col {
  position: relative;
  z-index: 1;
  width: calc(100% - 20px);
  margin-left: auto;
  margin-right: auto;
}

body.skin-106 .show-game-list__nav-top {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  aspect-ratio: 6 / 1.68;
  background-image: url("../images/skin106/home/img_rmyx_bg.webp");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-top-left-radius: 22px;
  pointer-events: none;
}

body.skin-106 .show-game-list__sub-tabs {
  position: relative;
  z-index: 1;
  width: 69.3%;
  min-height: 0;
  margin-bottom: 0;
  padding: 13px 0 13px 7px;
  border: 0;
  border-radius: 0;
  background: none;
  box-sizing: border-box;
  align-items: center;
}

body.skin-106 .show-game-list__loading-all {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 22px;
  display: flex;
  align-items: center;
  height: 22px;
  color: var(--f168-text-white);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}

body.skin-106 .show-game-list__loading-all-text {
  color: var(--f168-text-white);
  font-size: 11px;
}

body.skin-106 .show-game-list__loading-all-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 20px;
  margin-right: 2px;
  color: var(--f168-text-white);
}

body.skin-106 .show-game-list__loading-all-icon svg {
  width: 26px;
  height: 20px;
}

body.skin-106 .show-game-list__sub-tabs .ui-tabs__line {
  display: none;
}

body.skin-106 .show-game-list__sub-tab {
  flex: 1 1 0;
  padding: 0;
  color: var(--f168-text-muted);
}

body.skin-106 .show-game-list__sub-tab:hover {
  color: var(--f168-text-muted);
}

body.skin-106 .show-game-list__sub-tab-title {
  width: 92%;
  height: 29px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--f168-text-muted);
  background: var(--f168-bg-surface);
  border-radius: 16px;
  box-shadow: 0 0 3px color-mix(in srgb, var(--f168-accent) 80%, white);
  box-sizing: border-box;
}

body.skin-106 .show-game-list__sub-tab.ui-tab--active .show-game-list__sub-tab-title,
body.skin-106 .show-game-list__sub-tab .show-game-list__sub-tab-title.is-active {
  color: var(--f168-accent);
  border: 1px solid var(--f168-accent);
  border-radius: 16px 0 16px 16px;
}

/* Phân trang game list — GG88 ui-pagination (0.5rem@64 ≈ 32px) */
body.skin-106 .show-game-list__bottomline {
  display: flex;
  justify-content: center;
  float: none;
  margin-top: 13px;
  padding-top: 0;
  overflow: visible;
}

body.skin-106 .show-game-list__switch-pagination {
  display: none;
}

body.skin-106 .show-game-list__pagination.ui-pagination {
  display: flex;
  align-items: center;
  margin: 0 auto;
  font-size: 13px;
  color: color-mix(in srgb, var(--f168-text-dark) 50%, var(--f168-text-muted));
}

body.skin-106 .show-game-list__pagination .ui-pagination__items {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.skin-106 .show-game-list__pagination .ui-pagination__item {
  box-sizing: border-box;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  width: 32px;
  height: 32px;
  margin: 0 5px;
  border: 1px solid var(--f168-border);
  border-radius: 6px;
  background: var(--f168-bg-surface);
  color: color-mix(in srgb, var(--f168-text-dark) 50%, var(--f168-text-muted));
  cursor: pointer;
  user-select: none;
}

body.skin-106 .show-game-list__pagination .ui-pagination__item div {
  line-height: 1;
  padding: 0;
}

body.skin-106 .show-game-list__pagination .ui-pagination__item--active {
  border: 0;
  background: var(--f168-accent);
  color: var(--f168-text-white);
  cursor: default;
}

body.skin-106 .show-game-list__pagination .ui-pagination__button {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  height: 32px;
  margin-left: 0;
  color: color-mix(in srgb, var(--f168-text-dark) 50%, var(--f168-text-muted));
}

body.skin-106 .show-game-list__pagination .ui-pagination__button > button {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--f168-border);
  border-radius: 6px;
  background: var(--f168-bg-surface);
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.skin-106 .show-game-list__pagination .ui-pagination__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--f168-accent);
  font-size: 14px;
  line-height: 1;
}

body.skin-106 .show-game-list__pagination .ui-pagination__icon--next-icon {
  transform: scale(-1);
}

body.skin-106 .show-game-list__pagination .ui-pagination__icon svg {
  width: 1em;
  height: 1em;
  display: block;
}

body.skin-106 .footer-fix-bar__inner {
  padding: 18px 4px 4px;
}

body.skin-106 .footer-fix-bar__bg {
  background-color: transparent !important;
  background-image: url("../images/skin106/home/img_db_dt_btm.webp");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

body.skin-106 .footer-fix-bar__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

body.skin-106 .footer-fix-bar__label {
  color: var(--f168-text-muted);
}

body.skin-106 .footer-fix-bar__item.active .footer-fix-bar__label {
  color: var(--f168-accent);
}
