.game-hall-page .game-hall-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  gap: 6px;
  padding: 0 12px 0 42px;
}

.game-hall-page .game-hall-header h1 { margin: 0; font-size: 18px; font-weight: 600; white-space: nowrap; }
.game-hall-wallet { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.game-hall-avatar { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #8b714955; border-radius: 50%; background: #2b2720; color: #d8bf89; font-size: 12px; font-weight: 700; }
.game-hall-balance { display: flex; min-height: 25px; align-items: center; gap: 3px; padding: 1px 6px 1px 3px; border: 1px solid #8c775b; border-radius: 999px; background: #262118; color: #fff9ec; font-size: 13px; font-variant-numeric: tabular-nums; }
.game-hall-balance img { width: 16px; height: 16px; object-fit: contain; }
.game-hall-balance span { color: #d3c5ac; font-size: 15px; line-height: 1; }
.game-hall-deposit { display: grid; width: 30px; height: 30px; place-items: center; }
.game-hall-deposit img { width: 28px; height: 28px; object-fit: contain; }

.game-hall-body { padding: 12px 12px max(28px, env(safe-area-inset-bottom)); }
.game-hall-page[data-category="recommendations"] .game-hall-body { padding: 0 15px max(28px, env(safe-area-inset-bottom)); }
.game-hall-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; margin: 0 0 14px; }
.game-hall-filters { display: flex; align-items: center; gap: 8px; overflow: auto; scrollbar-width: none; }
.game-hall-filters button { flex: none; min-width: 53px; min-height: 30px; padding: 3px 16px; border: 1px solid #3e3932; border-radius: 999px; background: #1c1916; color: #ac987d; font-size: 14px; white-space: nowrap; }
.game-hall-filters button[aria-pressed="true"] { border-color: transparent; background: linear-gradient(#191715, #101010) padding-box, linear-gradient(100deg, #ccad6a, #3a3127) border-box; color: #e5c581; }
.game-hall-search-toggle { display: grid; width: 29px; height: 34px; place-items: center; color: #eadcc9; }
.game-hall-controls:has([data-hall-notice]:not([hidden])) { grid-template-columns: minmax(0, 1fr) auto auto; }
/* 2026-11-25：「展开全部厂商」按钮 + 面板；标签行右侧渐隐提示还能往右滑 */
.game-hall-controls { grid-auto-flow: column; grid-template-columns: minmax(0, 1fr); grid-auto-columns: auto; }
.game-hall-controls:has([data-hall-notice]:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
.game-hall-filters { cursor: grab; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 22px; }
.game-hall-filters:active { cursor: grabbing; }
.game-hall-more[aria-expanded="true"] { color: #e5c581; }
.game-hall-provider-panel:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; padding: 12px; border: 1px solid #3e3932; border-radius: 12px; background: #1a1714; }
.game-hall-provider-panel button { min-height: 30px; padding: 3px 12px; border: 1px solid #3e3932; border-radius: 999px; background: #211d19; color: #ac987d; font-size: 13px; white-space: nowrap; }
.game-hall-provider-panel button[aria-pressed="true"] { border-color: #ccad6a; color: #e5c581; }
.game-hall-search { margin-bottom: 14px; }
.game-hall-search input { width: 100%; min-height: 38px; padding: 7px 12px; border: 1px solid #594935; border-radius: 8px; background: #27221c; color: #fff6e5; font: inherit; }
.game-hall-search input::placeholder { color: #ae9a81; }

.game-hall-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.game-hall-tile { position: relative; min-width: 0; aspect-ratio: 1; overflow: hidden; border: 1px solid #7e6b583f; border-radius: 12px; background: #272119; }
.game-hall-game { position: relative; display: block; width: 100%; height: 100%; color: #fff; text-align: center; }
.game-hall-game img { width: 100%; height: 100%; object-fit: cover; }
.game-hall-game::after { position: absolute; inset: 53% 0 0; background: linear-gradient(transparent, #120a05bd); content: ''; }
.game-hall-tile-art { background: radial-gradient(ellipse at 45% 15%, var(--game-tile-color), #1d1713); }
.game-hall-tile-art img { object-fit: contain; padding: 13px 6px 10px; }
.game-hall-tile-reference {
  background: linear-gradient(180deg, var(--game-tile-color), #211915);
}
.game-hall-tile-reference img {
  position: absolute;
  inset: 10% 0 auto;
  height: 75%;
  object-fit: cover;
  mask-image: linear-gradient(transparent, #000 9%, #000 84%, transparent);
}
.game-hall-page[data-category="lottery"] .game-hall-tile-reference {
  background: linear-gradient(180deg, var(--game-tile-color), #0e2850);
}
.game-hall-game strong { position: absolute; z-index: 1; inset: auto 3px 5px; overflow: hidden; font-size: 11px; font-weight: 750; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px #000; }
.game-hall-provider { position: absolute; inset: 0 auto auto 0; max-width: 70%; overflow: hidden; padding: 2px 7px; border-radius: 10px 0 8px 0; background: #302925b8; color: #dfbc83; font-size: 10px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.game-hall-provider.game-hall-hot { color: #ff5259; }
.game-hall-star { position: absolute; z-index: 2; inset: 1px 2px auto auto; display: grid; width: 21px; height: 22px; place-items: center; border-radius: 6px; color: #fff6e5; filter: drop-shadow(0 1px 2px #000); }
.game-hall-star[aria-pressed="true"] { color: #ffca57; }
.game-hall-end { margin-top: 15px; color: #ae9a81; font-size: 12px; text-align: center; }
.game-hall-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.game-hall-notice {
  position: fixed;
  inset: 20px 0 auto;
  width: min(calc(100% - 32px), calc(var(--demo-width) - 36px));
  max-width: none;
  height: calc(100dvh - 44px);
  max-height: none;
  margin: 0 auto;
  padding: 36px 0 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #fff2de;
}

.game-hall-notice::backdrop, .game-hall-preview::backdrop { background: #0e0d0b9c; }
.game-hall-notice-close { position: absolute; inset: 0 -1px auto auto; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 5px; color: #f4e5d0; font-size: 30px; font-weight: 300; line-height: .7; }
.game-hall-notice-panel { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid #65534373; border-radius: 9px; background: #211c17; }
.game-hall-notice-image { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; border-radius: 8px; scrollbar-width: thin; scrollbar-color: #8f7457 transparent; }
.game-hall-notice-image img { display: block; width: 100%; height: auto; }
.game-hall-notice-footer { display: grid; flex: none; gap: 9px; justify-items: center; padding: 15px 14px max(15px, env(safe-area-inset-bottom)); }
.game-hall-notice-footer label { display: flex; min-height: 24px; align-items: center; gap: 7px; font-size: 14px; }
.game-hall-notice-footer input { width: 20px; height: 20px; accent-color: #cba872; }
.game-hall-notice-footer button, .game-hall-preview button { width: min(100%, 275px); min-height: 44px; border-radius: 11px; }
.game-hall-preview { width: min(calc(100% - 32px), 310px); padding: 18px; border: 1px solid #69523c; border-radius: 13px; background: #211c17; color: #fff5e4; text-align: center; }
.game-hall-preview h2 { margin: 0 0 14px; font-size: 18px; }
.game-hall-preview img { width: 130px; height: 130px; margin-inline: auto; border-radius: 12px; object-fit: contain; }
.game-hall-preview p { margin: 10px 0 15px; color: #bea788; font-size: 13px; }

@media (max-width: 340px) {
  .game-hall-grid { gap: 8px; }
  .game-hall-filters { gap: 6px; }
  .game-hall-filters button { padding-inline: 11px; }
}

/* Game notice text sections from admin (系统配置 → 游戏须知) */
.game-hall-notice-text { display: grid; gap: 14px; padding: 16px 14px 18px; color: #f1e4d3; }
.game-hall-notice-title { margin: 4px 0 2px; text-align: center; color: #f6dfb8; font-size: 20px; font-weight: 700; }
.game-hall-notice-text section { display: grid; gap: 8px; justify-items: center; }
.game-hall-notice-text h3 { padding: 5px 22px; border-radius: 6px; background: linear-gradient(180deg, #b8323a, #7c1d22); color: #fff1df; font-size: 15px; font-weight: 600; box-shadow: inset 0 1px #ffffff33; }
.game-hall-notice-text p { width: 100%; margin: 0; padding: 12px 14px; border: 1px solid #ffffff1f; border-radius: 8px; background: #ffffff0a; font-size: 13px; line-height: 1.7; white-space: pre-line; }
.game-hall-notice-image img[hidden], .game-hall-notice-text[hidden] { display: none; }
