/* ============================================================
   首页游戏大厅 — 对齐 rryl.msgameapi.cc
   参考变量：490px 设计宽（对齐 rryl.msgameapi.cc）
   ============================================================ */

:root {
  --page-max-width: min(100vw, 490px);
  --hall-card-w-hot: calc(var(--page-max-width) * 0.277333);
  --hall-card-w: calc(var(--page-max-width) * 0.376889);
  --hall-card-h: calc(var(--page-max-width) * 0.369777);
  --hall-card-gap: calc(var(--page-max-width) * 0.021333);
  --hall-card-radius: calc(var(--page-max-width) * 0.024889);
}

@media (min-width: 490px) {
  #app {
    box-shadow: 0 0 0 1px #ffffff0f;
  }
}

/* ---------- 横滑列表高度 ---------- */
.gameListNew[data-v-2f3d11ae],
.gameListNew,
.gameListNew--lobby[data-v-2f3d11ae],
.gameListNew--lobby,
.gameListNew--hot[data-v-2f3d11ae],
.gameListNew--hot {
  display: flex;
  align-items: stretch;
  height: var(--hall-card-h);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.gameListNew[data-v-2f3d11ae]::-webkit-scrollbar,
.gameListNew::-webkit-scrollbar {
  display: none;
}

/* ---------- 卡片尺寸（与参考站一致） ---------- */
.game-item[data-v-9633ae54],
.game-item {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  cursor: pointer;
}

.game-item--portrait[data-v-9633ae54],
.game-item--portrait {
  min-width: var(--hall-card-w-hot);
  max-width: var(--hall-card-w-hot);
  height: var(--hall-card-h);
  margin-right: var(--hall-card-gap);
  border-radius: var(--hall-card-radius);
}

.game-item--square[data-v-9633ae54],
.game-item--square,
.game-item--lobby[data-v-9633ae54],
.game-item--lobby {
  min-width: var(--hall-card-w);
  max-width: var(--hall-card-w);
  height: var(--hall-card-h);
  margin-right: var(--hall-card-gap);
  border-radius: var(--hall-card-radius);
}

/* ---------- 大厅封面（全图，无黄色 GAME 占位） ---------- */
.game-lobby-card[data-v-9633ae54],
.game-lobby-card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: transparent;
  padding: 0 !important;
  display: block;
}

.game-lobby-card--live,
.game-lobby-card--slot,
.game-lobby-card--lottery,
.game-lobby-card--chess,
.game-lobby-card--default {
  background: transparent !important;
}

.game-lobby-card--has-img[data-v-9633ae54],
.game-lobby-card--has-img {
  background-color: #1c1f2b;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.game-list-page__card--lobby .game-lobby-card--has-img {
  background-size: cover;
  background-position: center top;
}

.game-lobby-card__glow,
.game-lobby-card__logo-wrap,
.game-lobby-card__logo,
.game-lobby-card__badge,
.game-lobby-card span.game-lobby-card__badge {
  display: none !important;
}

.game-lobby-card__bg,
.game-lobby-card__bg[data-v-9633ae54],
.game-lobby-card__bg-img,
.game-lobby-card img.game-lobby-card__bg-img,
.game-lobby-card__poster[data-v-9633ae54],
.game-lobby-card__poster {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border: 0;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  display: block;
  z-index: 0;
}

.game-lobby-card--contain .game-lobby-card__bg-img {
  object-fit: contain;
  background-color: rgba(0, 0, 0, 0.22);
}

/* 大厅名称：压在封面底部，透明到黑的渐变条（对齐 rryl） */
.game-lobby-card__title[data-v-9633ae54],
.game-lobby-card__title {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: calc(var(--page-max-width) * 0.048) calc(var(--page-max-width) * 0.01067) calc(var(--page-max-width) * 0.01067) !important;
  box-sizing: border-box;
  color: #fff !important;
  font-size: calc(var(--page-max-width) * 0.03467) !important;
  font-weight: 600 !important;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72)) !important;
  text-shadow: none;
  transform: none !important;
  pointer-events: none;
}

.game-img__footer[data-v-9633ae54],
.game-img__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: auto !important;
  padding: calc(var(--page-max-width) * 0.048) calc(var(--page-max-width) * 0.01067) calc(var(--page-max-width) * 0.01067) !important;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88)) !important;
  pointer-events: none;
}

.game-img__title[data-v-9633ae54],
.game-img__title,
.game-img__name[data-v-9633ae54],
.game-img__name,
.game-img__footer .game-img__title,
.game-img__footer .game-img__name,
.game-item--portrait .game-lobby-card__title,
.game-item--portrait .game-img__title,
.game-item--portrait .game-img__name {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  color: #fff !important;
  font-size: calc(var(--page-max-width) * 0.032) !important;
  font-weight: 600 !important;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: none;
}

/* ---------- 热门 / 子游戏竖图（按热门框架铺满封面） ---------- */
.game-item--portrait .game-img,
.game-item--portrait .game-lobby-card {
  width: 100%;
  height: 100%;
}

.game-img[data-v-9633ae54],
.game-img {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1c1f2b;
}

.game-img__image[data-v-9633ae54],
.game-img__image,
.game-item--portrait img[data-v-9633ae54],
.game-item--portrait img,
.game-item--square img[data-v-9633ae54],
.game-item--square img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
}

.game-img__image--contain[data-v-9633ae54],
.game-img__image--contain {
  object-fit: contain;
  padding: calc(var(--page-max-width) * 0.016);
  box-sizing: border-box;
}

.game-img__provider[data-v-9633ae54],
.game-img__provider {
  display: none !important;
}

/* ---------- 电子分类 / PG 子游戏列表（3 列网格） ---------- */
.game-list-page__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hall-card-gap);
  padding-left: calc(var(--page-max-width) * 0.03733);
  padding-right: calc(var(--page-max-width) * 0.03733);
}

.game-list-page__card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-list-page__card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 128 / 137;
  border-radius: var(--hall-card-radius);
  overflow: hidden;
}

.game-list-page__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.game-list-page__card-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: calc(var(--page-max-width) * 0.048) calc(var(--page-max-width) * 0.01067) calc(var(--page-max-width) * 0.01067);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.game-list-page__card-name {
  display: block;
  overflow: hidden;
  color: #fff !important;
  font-size: calc(var(--page-max-width) * 0.032);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 子游戏：圆形封面 + 底部白色胶囊标题（对齐第二张截图） */
.game-list-page__card:not(.game-list-page__card--lobby) .game-list-page__card-image-wrap {
  overflow: visible;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
}

.game-list-page__card:not(.game-list-page__card--lobby) .game-list-page__card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #1c1f2b;
}

.game-list-page__card:not(.game-list-page__card--lobby) .game-list-page__card-footer {
  position: static;
  width: 88%;
  max-width: 88%;
  margin-top: calc(var(--page-max-width) * 0.01867);
  padding: calc(var(--page-max-width) * 0.014) calc(var(--page-max-width) * 0.02);
  border-radius: 999px;
  background: linear-gradient(90deg, #6b2d9e, #4a1d78);
  box-sizing: border-box;
}

.game-list-page__card:not(.game-list-page__card--lobby):nth-child(3n+1) .game-list-page__card-footer {
  background: linear-gradient(90deg, #7a3ec8 0%, #5a2a96 100%);
}

.game-list-page__card:not(.game-list-page__card--lobby):nth-child(3n+2) .game-list-page__card-footer {
  background: linear-gradient(90deg, #2b7fd4 0%, #1a5aaa 100%);
}

.game-list-page__card:not(.game-list-page__card--lobby):nth-child(3n+3) .game-list-page__card-footer {
  background: linear-gradient(90deg, #d46a18 0%, #b04a10 100%);
}

.game-list-page__card:not(.game-list-page__card--lobby) .game-list-page__card-name {
  color: #fff !important;
  font-size: calc(var(--page-max-width) * 0.028);
  font-weight: 700 !important;
  text-shadow: none;
  letter-spacing: 0.02em;
}

.game-list-page__card-provider {
  display: none !important;
}

.game-list-page__card--lobby .game-lobby-card {
  aspect-ratio: 128 / 137;
  min-height: var(--hall-card-h);
  border-radius: var(--hall-card-radius);
}

/* ---------- 电子横排厂商 Tab ---------- */
.game-list-page__providers-scroll {
  padding-left: 2px;
}

.game-list-page__provider-name,
.game-list-page__provider-name[data-v-de9da89b] {
  color: #fff !important;
  font-size: calc(var(--page-max-width) * 0.02933) !important;
  font-weight: 600 !important;
  line-height: 1.2;
}

.game-list-page__provider--active .game-list-page__provider-name,
.game-list-page__provider--active .game-list-page__provider-name[data-v-de9da89b] {
  color: #fff !important;
}

/* ---------- 顶部分类 Tab（原生按钮，点击首页必回大厅） ---------- */
.menu,
.menu[data-v-463b6c5c] {
  position: sticky;
  top: var(--home-header-height, 0px);
  z-index: 1090;
}

.menu__nav,
.menu[data-v-463b6c5c] .menu__nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  height: calc(var(--page-max-width) * 0.08533);
  margin: 0;
  padding: 0 calc(var(--page-max-width) * 0.01067);
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: transparent;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.menu__nav::-webkit-scrollbar {
  display: none;
}

.menu__item,
.menu[data-v-463b6c5c] .menu__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: calc(var(--page-max-width) * 0.07467);
  margin: calc(var(--page-max-width) * 0.004) calc(var(--page-max-width) * 0.00533);
  padding: 0 calc(var(--page-max-width) * 0.02133);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #b2b3bf !important;
  font-size: calc(var(--page-max-width) * 0.032);
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
}

.menu__item:first-child,
.menu[data-v-463b6c5c] .menu__item:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #151e34;
}

.menu__item:first-child.menu__item--active,
.menu[data-v-463b6c5c] .menu__item:first-child.menu__item--active {
  background: rgba(255, 255, 255, 0.12);
}

.category-game-panel {
  position: relative;
  z-index: 1;
}

.menu__item--active,
.menu[data-v-463b6c5c] .menu__item--active {
  color: #fff !important;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
}

.menu__text,
.menu[data-v-463b6c5c] .menu__text {
  color: inherit !important;
}

.menu__icon,
.menu[data-v-463b6c5c] .menu__icon {
  width: calc(var(--page-max-width) * 0.03271);
  height: calc(var(--page-max-width) * 0.03271);
  margin-right: calc(var(--page-max-width) * 0.00935);
  flex-shrink: 0;
}

/* 顶栏主 LOGO：宝马会圆形徽章 */
.logo1,
.logo1[data-v-26f46598],
.activity .headerGlobal .logo1 {
  width: min(22.4vw, 96px) !important;
  height: min(14.4vw, 62px) !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.film-list-page__subs {
  display: flex;
  flex-wrap: wrap;
  gap: min(1.6vw, 7px);
  padding: min(2.133vw, 9px) min(3.733vw, 16px) 0;
}
.film-list-page__sub {
  height: min(7.2vw, 31px);
  padding: 0 min(2.4vw, 10px);
  border: min(.133vw, .6px) solid rgba(255, 255, 255, .08);
  border-radius: min(3.2vw, 14px);
  background: #ffffff0a;
  color: #ffffffb8;
  font-size: min(3.2vw, 13px);
  cursor: pointer;
}
.film-list-page__sub--active {
  background: linear-gradient(175deg, #21162747, #fcf5ff2e);
  border-color: #ffffff2e;
  color: #fff;
}

.record-date-wrap {
  display: none !important;
}
.record-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 12px 10px;
  margin: 0;
  position: relative;
  z-index: 1;
}
.record-toolbar .record-date-field {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 140px;
  min-width: 0;
  color: #d5d8e2;
  font-size: 12px;
}
.record-toolbar .record-date-sep {
  color: #7582a2;
  font-size: 12px;
  flex: 0 0 auto;
}
.record-toolbar .record-date-input,
.record-date-wrap .record-date-input {
  height: 32px;
  width: 100%;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #1c2233;
  color: #fff;
  font-size: 12px;
}
.transRecord .filter,
.report .filter {
  position: absolute !important;
  top: min(2.133vw, 9.131px) !important;
  right: min(2.133vw, 9.131px) !important;
  left: auto !important;
  display: block !important;
  width: auto !important;
  min-width: 22% !important;
  height: auto !important;
  overflow: visible !important;
  z-index: 10050 !important;
  box-sizing: content-box !important;
  padding: 0 !important;
  margin: 0 !important;
  justify-content: unset !important;
}
.transRecord .filter-box,
.report .filter-box {
  display: flex !important;
  width: 100% !important;
}
.transRecord .typePop,
.report .typePop {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: 88px;
  margin-top: 4px !important;
  overflow: visible !important;
  z-index: 10051 !important;
}
.transRecord .typePop .filterBox,
.report .typePop .filterBox {
  display: block !important;
  width: 100% !important;
}
.transRecord .typePop .filterBox .text,
.report .typePop .filterBox .text {
  display: block !important;
  text-align: center !important;
  white-space: nowrap !important;
  padding: 8px 10px !important;
}
.transRecord .record-tabs {
  margin-top: 0;
}
.ordinaryGame .mine_icon,
.hotGame .mine_icon {
  object-fit: contain;
  background: transparent;
}

.transfer-dialog input,
.transfer-dialog__row input,
.transfer-page input[name="transfer_amount"] {
  pointer-events: auto !important;
  -webkit-user-select: text !important;
  user-select: text !important;
  touch-action: manipulation !important;
  background: #fff !important;
  color: #222 !important;
  opacity: 1 !important;
  caret-color: #222 !important;
}
