/* ==========================================================================
   大锤游戏 手机端 & 平板端 App 壳层（大锤清单 App 骨架 × 官网/清单介绍页/妙记旗舰视觉）
   - >= 1100px 电脑网页端：由 games-hall.css 完整呈现官网旗舰布局，本文件零介入
   - 700px - 1099px 平板端：左侧 68px 毛玻璃图标侧栏 + 右侧 22px 圆角毛玻璃独立滚动主窗口
   - <= 699px 手机端：极简原生 App 顶栏 + 底部 4 Tab 毛玻璃固定导航栏
   ========================================================================== */

/* 桌面网页端（>= 1100px）严格隐藏所有 App 壳层注入元素 */
@media (min-width: 1100px) {
  .hall-app-sidebar,
  .hall-bottom-nav,
  .hall-app-topbar,
  .hall-app-net-pill,
  .hall-app-ptr,
  .hall-app-panel {
    display: none !important;
  }
}

@media (max-width: 1099px) {
  body.games-hall-page {
    --app-cobalt: #2350dc;
    --app-cobalt-strong: #1d4ed8;
    --app-cobalt-soft: #eef3ff;
    --app-cobalt-line: rgba(35, 80, 220, 0.16);
    --app-obsidian: #111827;
    --app-obsidian-ink: #ffffff;
    --app-glass: rgba(255, 255, 255, 0.84);
    --app-glass-border: rgba(255, 255, 255, 0.92);
    --app-card: #ffffff;
    --app-card-soft: #f5f7fb;
    --app-line: rgba(15, 23, 42, 0.08);
    --app-ink: #0f172a;
    --app-muted: #525e75;
    --app-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 10px 26px -16px rgba(15, 23, 42, 0.1);
    --safe-t: env(safe-area-inset-top, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
    background-color: #f5f7fb;
    background-image:
      radial-gradient(ellipse 68% 42% at 14% 0%, rgba(69, 120, 255, 0.12) 0%, transparent 60%),
      radial-gradient(ellipse 56% 42% at 88% 10%, rgba(255, 194, 88, 0.12) 0%, transparent 58%),
      linear-gradient(to right, rgba(15, 23, 42, 0.024) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(15, 23, 42, 0.024) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
    color: var(--app-ink);
  }

  html[data-game-theme="dark"] body.games-hall-page {
    --app-cobalt: #7aa2ff;
    --app-cobalt-strong: #93c5fd;
    --app-cobalt-soft: rgba(79, 134, 255, 0.16);
    --app-cobalt-line: rgba(122, 162, 255, 0.24);
    --app-obsidian: #f8fafc;
    --app-obsidian-ink: #0b0f19;
    --app-glass: rgba(15, 21, 35, 0.84);
    --app-glass-border: rgba(255, 255, 255, 0.09);
    --app-card: #141c2e;
    --app-card-soft: #182238;
    --app-line: rgba(255, 255, 255, 0.09);
    --app-ink: #f8fafc;
    --app-muted: #9aa7bd;
    --app-shadow: 0 4px 20px rgba(0, 0, 0, 0.42);
    background-color: #0b0f19;
    background-image:
      radial-gradient(ellipse 64% 44% at 78% 0%, rgba(79, 134, 255, 0.16) 0%, transparent 58%),
      radial-gradient(ellipse 46% 38% at 14% 12%, rgba(245, 179, 66, 0.09) 0%, transparent 55%),
      linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  }

  /* 隐藏原网页顶栏与桌面专属区块，改由 App 顶栏 + 平板侧栏 / 手机底栏接管 */
  body.games-hall-page > .merge-nav,
  body.games-hall-page .hall-connect-band,
  body.games-hall-page .hall-hero-stage,
  body.games-hall-page .hall-library-eyebrow,
  body.games-hall-page .hall-kbd-hint {
    display: none !important;
  }

  /* 解除桌面自居中容器宽限制，让子块贴合平板浮动窗 / 手机容器 */
  body.games-hall-page .hall-desk,
  body.games-hall-page .hall-library,
  body.games-hall-page .hall-saved-games {
    width: auto;
    margin-inline: 0;
  }

  /* 非「大厅」Tab 时，隐藏大厅原组件，只显示当前原生 Tab 页面 */
  body.games-hall-page:not([data-app-tab="hall"]) .games-hall > :not(.hall-app-topbar):not(.hall-app-net-pill):not(.hall-app-ptr):not(.hall-app-panel) {
    display: none;
  }

  /* ---- 断网离线状态轻胶囊 & 阻尼下拉刷新指示器 ---- */
  .hall-app-net-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 9px;
    padding: 7px 10px 7px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(217, 119, 6, 0.28);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    font-size: 12px;
    font-weight: 640;
    line-height: 1.25;
  }
  .hall-app-net-pill[hidden] { display: none !important; }
  html[data-game-theme="dark"] .hall-app-net-pill {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(245, 158, 11, 0.14);
    color: #fde68a;
  }
  .hall-app-net-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d97706;
    flex: none;
  }
  html[data-game-theme="dark"] .hall-app-net-dot { background: #fbbf24; }
  .hall-app-net-btn {
    margin-left: auto;
    height: 24px;
    padding: 0 9px;
    border: 0;
    border-radius: 9999px;
    background: rgba(146, 64, 14, 0.12);
    color: inherit;
    font: 700 11.5px/1 var(--sans, system-ui, sans-serif);
    cursor: pointer;
    flex: none;
  }
  html[data-game-theme="dark"] .hall-app-net-btn {
    background: rgba(251, 191, 36, 0.2);
  }

  .hall-app-ptr {
    height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: height 200ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .hall-app-ptr.is-dragging {
    transition: none;
  }
  .hall-app-ptr-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border-radius: 9999px;
    border: 1px solid var(--app-line);
    background: var(--app-card);
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 650;
    box-shadow: var(--app-shadow);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 150ms ease, transform 160ms ease, color 150ms ease, border-color 150ms ease;
  }
  .hall-app-ptr.is-active .hall-app-ptr-pill {
    opacity: 1;
    transform: scale(1);
  }
  .hall-app-ptr.is-ready .hall-app-ptr-pill,
  .hall-app-ptr.is-refreshing .hall-app-ptr-pill {
    color: var(--app-cobalt);
    border-color: var(--app-cobalt-line);
  }
  .hall-app-ptr-ico {
    flex: none;
    transition: transform 80ms linear;
  }
  .hall-app-ptr.is-refreshing .hall-app-ptr-ico {
    animation: xhPtrSpin 680ms linear infinite;
  }
  @keyframes xhPtrSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  /* 大厅 Tab 下隐藏桌面通行证大横条（已升级为独立「积分卡」Tab） */
  body.games-hall-page[data-app-tab="hall"] .hall-pass-strip {
    display: none;
  }

  /* ---- 公共 App 顶部标题栏 ---- */
  .hall-app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 2px 10px;
  }
  .hall-app-heading {
    min-width: 0;
  }
  .hall-app-title-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: nowrap;
  }
  .hall-app-home-back {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 9999px;
    border: 1px solid var(--app-line);
    background: var(--app-card);
    color: var(--app-muted);
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex: none;
  }
  .hall-app-home-back:active { transform: scale(.94); }
  .hall-app-title {
    margin: 0;
    font-size: 25px;
    font-weight: 760;
    line-height: 1.15;
    letter-spacing: -0.028em;
    color: var(--app-ink);
  }
  .hall-app-title-accent {
    display: inline-block;
    background: linear-gradient(100deg, #1d4ed8 0%, #4f46e5 52%, #d97706 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  html[data-game-theme="dark"] .hall-app-title-accent {
    background: linear-gradient(100deg, #7aa2ff 0%, #a5b4fc 52%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  .hall-app-sub {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--app-muted);
    line-height: 1.3;
  }
  .hall-app-topbar-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
  }
  .hall-app-topbar-right .wallet-button {
    min-height: 36px;
    padding: 0 11px;
    border-radius: 9999px;
    font-size: 13px;
    border: 1px solid rgba(217, 119, 6, 0.28);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #78350f;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.14);
  }
  html[data-game-theme="dark"] .hall-app-topbar-right .wallet-button {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.34);
    color: #fde68a;
    box-shadow: none;
  }
  .hall-app-audio-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 1px solid var(--app-line);
    background: var(--app-card);
    color: var(--app-ink);
    font-size: 15px;
    cursor: pointer;
    box-shadow: var(--app-shadow);
    transition: transform 110ms ease, background-color 180ms ease;
  }
  .hall-app-audio-pill:active { transform: scale(.93); }
  .hall-app-audio-pill.is-silent {
    border-style: dashed;
    opacity: .84;
  }

  /* ---- Tab 1「大厅」：珠光莫兰迪「继续玩」主卡 + 黑曜⇄珠白招牌胶囊按钮 ---- */
  body.games-hall-page .games-hall-hero {
    display: block;
    width: auto;
    padding: 11px 12px;
    margin: 0 0 9px;
    border-radius: 18px;
    border: 1px solid rgba(35, 80, 220, 0.1);
    background:
      radial-gradient(ellipse 84% 70% at 12% 0%, rgba(255, 255, 255, 0.9), transparent 64%),
      linear-gradient(142deg, #eef3ff 0%, #f3f0ff 56%, #fff7ec 100%);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.88), var(--app-shadow);
  }
  body.games-hall-page .games-hall-hero::before,
  body.games-hall-page .games-hall-hero::after {
    display: none;
  }
  body.games-hall-page .hall-hero-inner {
    display: block;
    width: 100%;
    padding-block: 0;
  }
  body.games-hall-page .hall-hero-top-row {
    margin-bottom: 8px;
  }
  body.games-hall-page .hall-hero-copy {
    display: contents;
    width: auto;
  }
  body.games-hall-page .hall-hero-compact {
    width: 100%;
    padding-block: 0;
  }
  html[data-hero-collapsed="true"] body.games-hall-page #hall-hero-full {
    display: none;
  }
  html[data-hero-collapsed="true"] body.games-hall-page #hall-hero-compact {
    display: flex;
  }
  html[data-game-theme="dark"] body.games-hall-page .games-hall-hero {
    background:
      radial-gradient(ellipse 80% 70% at 86% 0%, rgba(79, 134, 255, 0.16), transparent 66%),
      linear-gradient(142deg, #131b30 0%, #16203a 58%, #191d30 100%);
    border-color: rgba(122, 162, 255, 0.18);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), var(--app-shadow);
  }
  body.games-hall-page .games-hall-hero .hall-intro,
  body.games-hall-page .games-hall-hero .hall-stats-btn {
    display: none;
  }
  body.games-hall-page .games-hall-hero .hall-hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-top: 0;
  }
  body.games-hall-page .games-hall-hero .hall-last {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 9999px;
    border: 0;
    background: var(--app-obsidian);
    color: var(--app-obsidian-ink);
    box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.42);
    font-size: 14px;
    font-weight: 680;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html[data-game-theme="dark"] body.games-hall-page .games-hall-hero .hall-last {
    background: #f8fafc;
    color: #0b0f19;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.55);
  }
  body.games-hall-page .games-hall-hero .hall-random {
    flex: none;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 9999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.92);
    color: var(--app-ink);
    font-size: 13px;
    font-weight: 640;
  }
  html[data-game-theme="dark"] body.games-hall-page .games-hall-hero .hall-random {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: #f1f5f9;
  }
  body.games-hall-page .games-hall-hero .hall-resume-detail {
    margin: 6px 2px 0;
    color: var(--app-muted);
    font-size: 12.5px;
  }
  body.games-hall-page .games-hall-hero .hall-recent {
    margin-top: 7px;
    gap: 6px;
  }
  body.games-hall-page .games-hall-hero .hall-recent a {
    padding: 3px 10px;
    border-radius: 9999px;
    border: 1px solid var(--app-line);
    background: var(--app-card);
    color: var(--app-ink);
    font-size: 12px;
    text-decoration: none;
  }
  body.games-hall-page .games-hall-hero .hall-room-return {
    margin-top: 8px;
  }

  /* 4 枚快捷入口：柔和莫兰迪玻璃单行胶囊（保留全部测试钩子与小红点） */
  body.games-hall-page .hall-desk {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 10px;
  }
  body.games-hall-page .hall-desk .hall-service {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 36px;
    padding: 0 8px;
    border-radius: 9999px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--app-ink);
    box-shadow: var(--app-shadow);
    text-align: center;
  }
  body.games-hall-page .hall-desk .hall-daily { background: linear-gradient(145deg, #ecfdf5, #ffffff); }
  body.games-hall-page .hall-desk .hall-friends { background: linear-gradient(145deg, #eef2ff, #ffffff); }
  body.games-hall-page .hall-desk .hall-checkin { background: linear-gradient(145deg, #fff6ec, #ffffff); }
  body.games-hall-page .hall-desk .hall-inbox { background: linear-gradient(145deg, #eef9ff, #ffffff); }
  html[data-game-theme="dark"] body.games-hall-page .hall-desk .hall-service {
    border-color: rgba(255, 255, 255, 0.08);
  }
  html[data-game-theme="dark"] body.games-hall-page .hall-desk .hall-daily { background: linear-gradient(145deg, #102622, #141c2e); }
  html[data-game-theme="dark"] body.games-hall-page .hall-desk .hall-friends { background: linear-gradient(145deg, #161d38, #141c2e); }
  html[data-game-theme="dark"] body.games-hall-page .hall-desk .hall-checkin { background: linear-gradient(145deg, #271d14, #141c2e); }
  html[data-game-theme="dark"] body.games-hall-page .hall-desk .hall-inbox { background: linear-gradient(145deg, #112233, #141c2e); }

  body.games-hall-page .hall-desk .hall-service::before {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--app-cobalt);
  }
  body.games-hall-page .hall-desk .hall-daily::before { background: #10b981; }
  body.games-hall-page .hall-desk .hall-friends::before { background: #6366f1; }
  body.games-hall-page .hall-desk .hall-checkin::before { background: #f59e0b; }
  body.games-hall-page .hall-desk .hall-inbox::before { background: #2350dc; }
  body.games-hall-page .hall-desk .hall-service-icon {
    position: static;
    width: 0;
    height: 0;
    overflow: visible;
    padding: 0;
    background: none;
    box-shadow: none;
    color: transparent;
    font-size: 0;
  }
  body.games-hall-page .hall-desk .hall-service-icon svg {
    display: none;
  }
  body.games-hall-page .hall-desk .hall-desk-dot {
    top: 3px;
    right: 6px;
    width: 7px;
    height: 7px;
    border: 1.5px solid var(--app-card);
  }
  body.games-hall-page .hall-desk .hall-service > span:nth-child(2) {
    min-width: 0;
  }
  body.games-hall-page .hall-desk .hall-service strong {
    font-size: 12.5px;
    font-weight: 660;
    line-height: 1.2;
    white-space: nowrap;
    flex-wrap: nowrap;
    gap: 3px;
    color: var(--app-ink);
  }
  body.games-hall-page .hall-desk .hall-service small,
  body.games-hall-page .hall-desk .hall-service-arrow {
    display: none;
  }
  body.games-hall-page .hall-desk .hall-desk-pill {
    font-size: 10.5px;
    padding: 0 5px;
  }

  /* 游戏列表区：妙记同款悬浮磨砂指令栏 + 纯白瓷圆角卡片 */
  body.games-hall-page .hall-library {
    margin-top: 2px;
  }
  body.games-hall-page .hall-library-top {
    margin-bottom: 6px;
  }
  body.games-hall-page .hall-library h2 {
    font-size: 17px;
    font-weight: 740;
  }
  body.games-hall-page .hall-library-head {
    top: 0;
    margin-bottom: 10px;
    padding: 5px 6px;
    border-radius: 16px;
    border: 1px solid var(--app-line);
    background: var(--app-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--app-shadow);
  }
  body.games-hall-page .hall-search input {
    min-height: 36px;
    border-radius: 9999px;
    font-size: 13px;
  }
  body.games-hall-page .hall-game {
    border-radius: 18px;
    border-color: var(--app-line);
    background: var(--app-card);
    box-shadow: var(--app-shadow);
  }
  html[data-game-theme="dark"] body.games-hall-page .hall-game {
    border-color: var(--app-line);
    background: var(--app-card);
  }
  body.games-hall-page .hall-game-copy {
    padding: 9px 11px 11px;
    gap: 2px;
  }
  body.games-hall-page .hall-game-copy > span:first-child { font-size: 11px; }
  body.games-hall-page .hall-game-copy h3 { font-size: 15px; }
  body.games-hall-page .hall-game-copy p { font-size: 12px; line-height: 1.4; }

  /* 统一官网黑曜 ⇄ 珠白胶囊选中态（筛选条 + 钱包 Tab + 外观分段） */
  body.games-hall-page .wallet-tabs button[aria-selected="true"] {
    background: var(--app-obsidian);
    color: var(--app-obsidian-ink);
  }
  body.games-hall-page .hall-saved-games {
    margin-top: 16px;
  }

  /* ---- 通知小红点 ---- */
  .hall-app-dot {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 2px var(--app-card);
  }
  .hall-app-dot[hidden] { display: none; }
  .app-inline-dot {
    position: static;
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
    box-shadow: none;
  }

  /* ---- 3 个独立原生 App 页面（挑战 / 积分卡 / 我的）---- */
  .hall-app-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: app-panel-in 180ms cubic-bezier(.22, 1, .36, 1) both;
  }
  .hall-app-panel[hidden] { display: none; }
  @keyframes app-panel-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }

  .app-card {
    background: var(--app-card);
    border: 1px solid var(--app-line);
    border-radius: 20px;
    padding: 15px;
    box-shadow: var(--app-shadow);
    color: var(--app-ink);
  }
  .app-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }
  .app-card-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 740;
    line-height: 1.25;
  }
  .app-card-sub {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--app-muted);
    line-height: 1.35;
  }

  /* 挑战页 */
  .app-daily-ratio {
    flex: none;
    font-size: 18px;
    font-weight: 780;
    color: var(--app-cobalt);
    font-variant-numeric: tabular-nums;
  }
  .app-progress-track {
    height: 8px;
    border-radius: 9999px;
    overflow: hidden;
    background: var(--app-cobalt-soft);
    margin-bottom: 8px;
  }
  .app-progress-track span {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #1d4ed8, #4f46e5);
    transform-origin: left center;
    transform: scaleX(var(--p, 0));
    transition: transform 280ms cubic-bezier(.22, 1, .36, 1);
  }
  html[data-game-theme="dark"] .app-progress-track span {
    background: linear-gradient(90deg, #7aa2ff, #a5b4fc);
  }
  .app-daily-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12.5px;
    color: var(--app-muted);
  }
  .app-link-pill {
    border: 1px solid var(--app-cobalt-line);
    background: var(--app-cobalt-soft);
    color: var(--app-cobalt-strong);
    border-radius: 9999px;
    padding: 4px 11px;
    font: 660 12px/1.2 var(--sans);
    cursor: pointer;
  }
  .app-game-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .app-game-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 54px;
    padding: 9px 11px;
    border-radius: 14px;
    border: 1px solid var(--app-line);
    background: var(--app-card-soft);
    color: var(--app-ink);
    text-decoration: none;
    transition: transform 110ms ease, border-color 180ms ease;
  }
  .app-game-tile:active { transform: scale(.975); }
  .app-game-tile[data-daily-done="true"] {
    border-color: rgba(16, 185, 129, 0.34);
    background: #ecfdf5;
  }
  html[data-game-theme="dark"] .app-game-tile[data-daily-done="true"] {
    border-color: rgba(52, 211, 153, 0.34);
    background: #102a22;
  }
  .app-tile-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .app-tile-copy strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
  }
  .app-tile-copy small {
    font-size: 11.5px;
    color: var(--app-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .app-tile-tail {
    flex: none;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--app-cobalt-strong);
    white-space: nowrap;
  }
  .app-game-tile[data-daily-done="true"] .app-tile-tail { color: #059669; }
  html[data-game-theme="dark"] .app-game-tile[data-daily-done="true"] .app-tile-tail { color: #6ee7b7; }
  .app-room-live {
    border-color: var(--app-cobalt-line);
    background: var(--app-cobalt-soft);
  }
  .app-invite-form {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
  }
  .app-invite-form input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 9999px;
    border: 1px solid var(--app-line);
    background: var(--app-card-soft);
    color: var(--app-ink);
    font: inherit;
    font-size: 13.5px;
  }
  .app-cobalt-btn {
    flex: none;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 9999px;
    background: var(--app-obsidian);
    color: var(--app-obsidian-ink);
    font: 660 14px/1 var(--sans);
    cursor: pointer;
    box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.36);
    transition: transform 110ms ease, background-color 160ms ease, opacity 160ms ease;
  }
  .app-cobalt-btn:active { transform: scale(.97); }
  .app-cobalt-btn:disabled {
    opacity: .56;
    cursor: default;
    box-shadow: none;
  }
  .app-full-btn {
    width: 100%;
    margin-top: 10px;
  }
  .app-inline-status {
    margin: 6px 2px 10px;
    font-size: 12.5px;
    color: #c2410c;
  }
  html[data-game-theme="dark"] .app-inline-status { color: #fdba74; }

  /* 积分卡页（签到 + 原生嵌入钱包本体） */
  .app-gold-chip {
    flex: none;
    padding: 4px 10px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid rgba(217, 119, 6, 0.28);
    color: #92400e;
    font-size: 12.5px;
    font-weight: 740;
  }
  html[data-game-theme="dark"] .app-gold-chip {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.34);
    color: #fde68a;
  }
  .app-checkin-week { margin: 4px 0 2px; }
  .game-wallet.game-wallet-embedded {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 15px;
    border-radius: 20px;
    border: 1px solid var(--app-line);
    background: var(--app-card);
    color: var(--app-ink);
    box-shadow: var(--app-shadow);
    overflow: visible;
  }
  html[data-game-theme="dark"] .game-wallet.game-wallet-embedded {
    background: var(--app-card);
    border-color: var(--app-line);
    color: var(--app-ink);
  }
  .game-wallet.game-wallet-embedded .wallet-checkin { display: none; }

  /* Tab 4「我的」：大锤清单结构 × 官网莫兰迪双联卡 */
  .app-me-profile {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: transform 110ms ease;
  }
  .app-me-profile:active { transform: scale(.985); }
  .app-me-avatar {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--app-cobalt-soft);
    color: var(--app-cobalt-strong);
    font-size: 20px;
    font-weight: 780;
  }
  .app-me-avatar img { display: block; width: 32px; height: 32px; object-fit: contain; }
  .app-me-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .app-me-copy strong { font-size: 16.5px; font-weight: 740; line-height: 1.22; }
  .app-me-copy small { font-size: 12.5px; color: var(--app-muted); }
  .app-row-chevron { flex: none; font-size: 19px; color: var(--app-muted); line-height: 1; }

  .app-me-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .app-duo-card {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    padding: 13px 12px;
    transition: transform 110ms ease;
  }
  .app-duo-card:active { transform: scale(.975); }
  .app-duo-blue {
    background: linear-gradient(155deg, #eef2ff 0%, #dde6ff 60%, #e8e5ff 100%);
    border-color: rgba(35, 80, 220, 0.1);
  }
  .app-duo-gold {
    background: linear-gradient(155deg, #fff6ec 0%, #fde8d3 60%, #fff1e2 100%);
    border-color: rgba(217, 119, 6, 0.12);
  }
  html[data-game-theme="dark"] .app-duo-blue {
    background: linear-gradient(155deg, #161d38 0%, #1d2648 100%);
    border-color: rgba(122, 162, 255, 0.14);
  }
  html[data-game-theme="dark"] .app-duo-gold {
    background: linear-gradient(155deg, #271d14 0%, #332519 100%);
    border-color: rgba(251, 191, 36, 0.16);
  }
  .app-duo-icon { font-size: 23px; line-height: 1; flex: none; }
  .app-duo-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .app-duo-copy strong { font-size: 15px; font-weight: 740; }
  .app-duo-copy small {
    font-size: 11.5px;
    color: var(--app-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 新大锤生态横滑胶囊卡 */
  .app-eco-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
  }
  .app-eco-head strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
    font-weight: 740;
  }
  .app-inline-svg { width: 17px; height: 17px; flex: none; color: var(--app-cobalt); }
  .app-eco-actions { display: inline-flex; align-items: center; gap: 6px; }
  .app-mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid var(--app-cobalt-line);
    background: var(--app-cobalt-soft);
    color: var(--app-cobalt-strong);
    font: 660 12px/1.2 var(--sans);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
  }
  .app-eco-rail {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 0 18px 2px 0;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 84%, transparent 100%);
  }
  .app-eco-rail::-webkit-scrollbar { display: none; }
  .app-eco-pill {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 9999px;
    border: 1px solid var(--app-line);
    background: var(--app-card-soft);
    color: var(--app-ink);
    font-size: 12.5px;
    font-weight: 620;
    text-decoration: none;
    white-space: nowrap;
  }
  .app-eco-pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dot, #2350dc);
  }

  /* 站内信条 */
  .app-inbox-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    font: inherit;
  }
  .app-setting-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .app-setting-copy strong { font-size: 15px; font-weight: 700; }
  .app-setting-copy small { font-size: 12px; color: var(--app-muted); }
  .app-unread-pill {
    flex: none;
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 9999px;
    background: #e11d48;
    color: #fff;
    font-size: 11.5px;
    font-weight: 760;
    text-align: center;
  }
  .app-unread-pill[hidden] { display: none; }

  /* 主屏幕安装与离线畅玩引导卡 */
  .app-pwa-card { display: grid; gap: 8px; }
  .app-pwa-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .app-pwa-head > div { min-width: 0; display: grid; gap: 2px; }
  .app-pwa-head strong { font-size: 14.5px; font-weight: 740; }
  .app-pwa-head small { font-size: 12px; color: var(--app-muted); }
  .app-pwa-ready-tag {
    flex: none; padding: 4px 10px; border-radius: 9999px;
    background: #dcfce7; color: #166534; font-size: 11.5px; font-weight: 720; white-space: nowrap;
  }
  html[data-game-theme="dark"] .app-pwa-ready-tag { background: #143628; color: #86efac; }
  .app-pwa-ready-tag[hidden], .app-pwa-install-btn[hidden], .app-ios-steps[hidden] { display: none; }
  .app-ios-steps {
    padding: 9px 11px; border-radius: 12px;
    background: var(--app-card-soft); border: 1px solid var(--app-line);
    font-size: 12.5px; line-height: 1.5; color: var(--app-ink);
  }
  .app-ios-steps p { margin: 0 0 4px; font-size: 12px; color: var(--app-muted); }
  .app-ios-steps ol { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: 3px; }

  /* 常用设置分组列表 */
  .app-section-label {
    margin: 4px 4px 8px;
    font-size: 13.5px;
    font-weight: 720;
    color: var(--app-muted);
  }
  .app-settings-list { padding: 0; overflow: hidden; }
  .app-setting-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 14px;
    color: var(--app-ink);
    text-decoration: none;
    border-top: 1px solid var(--app-line);
    cursor: pointer;
  }
  .app-setting-row:first-child { border-top: 0; }
  .app-setting-row[hidden] { display: none; }
  .app-setting-icon {
    flex: none;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-muted);
  }
  .app-setting-icon svg { width: 19px; height: 19px; }
  .app-setting-title { flex: 1 1 auto; min-width: 0; font-size: 14.5px; font-weight: 600; }
  .app-setting-val { flex: none; font-size: 12.5px; color: var(--app-muted); }

  /* 外观内联 3 档黑曜⇄珠白胶囊 */
  .app-theme-seg {
    display: inline-grid;
    grid-template-columns: repeat(3, auto);
    gap: 2px;
    padding: 3px;
    border-radius: 9999px;
    border: 1px solid var(--app-line);
    background: var(--app-card-soft);
  }
  .app-theme-seg button {
    min-height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: var(--app-muted);
    font: 660 12px/1 var(--sans);
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
  }
  .app-theme-seg button[aria-pressed="true"] {
    background: var(--app-obsidian);
    color: var(--app-obsidian-ink);
  }

  /* iOS 开关 */
  .app-ios-switch {
    position: relative;
    flex: none;
    width: 48px;
    height: 28px;
    margin: 0;
    cursor: pointer;
    border: 0;
    border-radius: 14px;
    background: #cfd8e6;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 160ms ease;
  }
  html[data-game-theme="dark"] .app-ios-switch { background: #304168; }
  .app-ios-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .24);
    transition: transform 160ms ease;
  }
  .app-ios-switch:checked { background: #2350dc; }
  html[data-game-theme="dark"] .app-ios-switch:checked { background: #5c8dff; }
  .app-ios-switch:checked::after { transform: translateX(20px); }
}

/* ==========================================================================
   平板端（700px - 1099px）：左侧 68px 毛玻璃图标侧栏 + 右侧 22px 圆角毛玻璃浮动主窗口
   ========================================================================== */
@media (min-width: 700px) and (max-width: 1099px) {
  body.games-hall-page {
    height: 100dvh;
    overflow: hidden;
    padding: 10px;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px;
    box-sizing: border-box;
  }
  .hall-bottom-nav,
  .hall-app-audio-pill {
    display: none !important;
  }
  .hall-app-sidebar {
    position: relative;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-radius: 22px;
    background: var(--app-glass);
    border: 1px solid var(--app-glass-border);
    backdrop-filter: blur(24px) saturate(1.25);
    -webkit-backdrop-filter: blur(24px) saturate(1.25);
    box-shadow: var(--app-shadow);
  }
  .hall-side-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--app-cobalt-line);
    background: var(--app-cobalt-soft);
    color: var(--app-cobalt-strong);
    display: grid;
    place-items: center;
    font: 780 17px/1 var(--sans);
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 160ms ease;
  }
  .hall-side-avatar img { display: block; width: 28px; height: 28px; object-fit: contain; }
  .hall-side-avatar:hover { box-shadow: 0 0 0 3px rgba(35, 80, 220, 0.18); }
  .hall-side-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
  }
  .hall-side-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .hall-side-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--app-muted);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, transform 110ms ease;
  }
  .hall-side-link svg { width: 22px; height: 22px; }
  .hall-side-link:hover {
    background: rgba(15, 23, 42, 0.06);
    color: var(--app-ink);
  }
  html[data-game-theme="dark"] .hall-side-link:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .hall-side-link:active { transform: scale(.94); }
  .hall-side-link.is-active {
    background: var(--app-obsidian);
    color: var(--app-obsidian-ink);
    box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.36);
  }
  .hall-side-link.is-silent { opacity: .66; }
  .hall-side-tip {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translate(-4px, -50%);
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.94);
    color: #fff;
    font-size: 12.5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease;
    z-index: 40;
  }
  @media (hover: hover) {
    .hall-side-link:hover .hall-side-tip { opacity: 1; transform: translate(0, -50%); }
  }
  .hall-side-link:focus-visible .hall-side-tip { opacity: 1; transform: translate(0, -50%); }

  /* 右侧毛玻璃浮动主窗口 */
  body.games-hall-page main.games-hall {
    min-width: 0;
    min-height: 0;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 16px 20px 28px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 24px;
    background: var(--app-glass);
    border: 1px solid var(--app-glass-border);
    backdrop-filter: blur(28px) saturate(1.25);
    -webkit-backdrop-filter: blur(28px) saturate(1.25);
    box-shadow: 0 8px 34px -14px rgba(15, 23, 42, 0.12);
    scrollbar-width: thin;
  }
  body.games-hall-page .games-hall-hero .hall-hero-actions { justify-content: flex-start; }
  body.games-hall-page .games-hall-hero .hall-last { flex: 0 1 17rem; min-width: 11.5rem; }
  body.games-hall-page .hall-search { width: 13.5rem; }
  body.games-hall-page .games-hall-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .app-game-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   手机端（<= 699px）：无冗余网页顶栏 + 底部 4 Tab 固定毛玻璃栏（大锤清单同款）
   ========================================================================== */
@media (max-width: 699px) {
  html { scroll-padding-bottom: 92px; }
  .hall-app-sidebar { display: none !important; }

  body.games-hall-page main.games-hall {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: calc(10px + var(--safe-t)) 14px calc(82px + var(--safe-b));
    box-sizing: border-box;
  }

  .hall-app-title { font-size: 24px; }
  .hall-app-sub { font-size: 12px; }

  /* 手机端指令栏紧凑双排：全宽胶囊搜索 + 全宽单行横滑黑曜⇄珠白筛选胶囊 */
  body.games-hall-page .hall-library-top {
    margin-bottom: 5px;
  }
  body.games-hall-page .hall-library-head {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
  }
  body.games-hall-page .hall-search {
    order: 1;
    width: 100%;
  }
  body.games-hall-page .hall-search input {
    min-height: 36px;
    padding-block: 5px;
    font-size: 13px;
  }
  body.games-hall-page .hall-library-options {
    order: 2;
    width: 100%;
  }
  body.games-hall-page .hall-filters {
    width: 100%;
    gap: 4px;
    padding: 0;
  }
  body.games-hall-page .hall-filters button {
    min-height: 33px;
    padding: 4px 11px;
    font-size: 12.5px;
  }
  body.games-hall-page .hall-filters button[aria-pressed="true"] {
    background: var(--app-obsidian);
    color: var(--app-obsidian-ink);
  }

  body.games-hall-page .games-hall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  body.games-hall-page .hall-game-copy {
    padding: 8px 10px 10px;
  }
  body.games-hall-page .hall-game-copy h3 { font-size: 14.5px; }
  body.games-hall-page .hall-game-copy p { font-size: 11.5px; }

  .hall-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: var(--safe-b);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }
  html[data-game-theme="dark"] .hall-bottom-nav {
    background: rgba(11, 15, 25, 0.9);
    border-top-color: rgba(255, 255, 255, 0.09);
  }
  .hall-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 58px;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: var(--app-muted);
    font: 600 12px/1.15 var(--sans);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 160ms ease, transform 110ms ease;
  }
  .hall-bottom-link:active { transform: scale(.93); }
  .hall-bottom-link.is-active {
    color: var(--app-cobalt);
    font-weight: 740;
  }
  .hall-bottom-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
  }
  .hall-bottom-icon svg { width: 22px; height: 22px; }
  .hall-bottom-icon .hall-app-dot { top: -1px; right: 0; }

  /* 软键盘弹起时自动隐藏底栏，避免遮挡搜索或房间码输入 */
  body.games-hall-page:has(main input:focus, main textarea:focus) .hall-bottom-nav {
    display: none;
  }
}

/* 430px 以下手机保持快捷胶囊单行对称 */
@media (max-width: 430px) {
  body.games-hall-page .hall-desk .hall-service { padding: 0 5px; gap: 4px; }
  body.games-hall-page .hall-desk .hall-service strong { font-size: 12px; }
  body.games-hall-page .hall-desk .hall-desk-pill { display: none; }
}

/* 370px 以下超窄屏保护（顶层声明，兼容旧版 Safari） */
@media (max-width: 370px) {
  .hall-app-title { font-size: 21px; }
  body.games-hall-page .hall-desk .hall-service { padding: 0 4px; gap: 3px; }
  body.games-hall-page .hall-desk .hall-service strong { font-size: 11px; }
  .app-game-tiles { grid-template-columns: 1fr; }
  .app-me-duo { gap: 8px; }
  .app-duo-card { padding: 11px 9px; gap: 7px; }
  .app-theme-seg button { padding: 0 7px; font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hall-app-panel,
  .app-progress-track span,
  .hall-side-link,
  .hall-bottom-link {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   手机 / 平板「大厅」Tab 极简海报游戏墙（零冗余顶栏，封面图 + 游戏名直达）
   ========================================================================== */
@media (max-width: 1099px) {
  body.games-hall-page[data-app-tab="hall"] .hall-app-topbar {
    padding: 0 2px 8px;
  }
  body.games-hall-page[data-app-tab="hall"] .hall-app-sub {
    display: none;
  }
  body.games-hall-page .hall-toolbar {
    display: block;
    margin-bottom: 10px;
  }
  /* 挑战/好友房/签到/站内信/战绩均已收纳进底部 4 Tab 或平板侧栏，大厅主屏彻底去重 */
  body.games-hall-page .hall-toolbar .hall-desk {
    display: none !important;
  }
  body.games-hall-page .hall-toolbar .hall-library-head {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  body.games-hall-page .hall-toolbar .hall-search {
    width: 100%;
  }
  body.games-hall-page .hall-toolbar .hall-search input {
    min-height: 38px;
    border-radius: 9999px;
    background: var(--app-card);
    border: 1px solid var(--app-line);
    box-shadow: var(--app-shadow);
    font-size: 13.5px;
  }
  body.games-hall-page .hall-library {
    margin-top: 0;
  }
  body.games-hall-page .hall-game {
    border-radius: 15px;
  }
  body.games-hall-page .hall-game-copy {
    padding: 8px 8px 9px;
  }
  body.games-hall-page .hall-game-copy h3 {
    font-size: 14px;
    font-weight: 680;
  }
}
@media (min-width: 700px) and (max-width: 1099px) {
  body.games-hall-page .games-hall-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
  }
}
@media (max-width: 699px) {
  body.games-hall-page .games-hall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body.games-hall-page .hall-game {
    border-radius: 14px;
  }
  body.games-hall-page .hall-game-copy {
    padding: 7px 6px 8px;
  }
  body.games-hall-page .hall-game-copy h3 {
    font-size: 13.5px;
  }
}

/* ==========================================================================
   手机端圆角悬浮毛玻璃底栏 + 精致顶栏交互升级（Liquid Glass 掌机风）
   ========================================================================== */
@media (max-width: 1099px) {
  .hall-app-home-back {
    height: 22px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 620;
    background: rgba(15, 23, 42, .05);
    border-color: transparent;
  }
  html[data-game-theme="dark"] .hall-app-home-back {
    background: rgba(255, 255, 255, .08);
  }
  .hall-app-topbar-right { gap: 7px; }
  .hall-app-topbar-right .wallet-button {
    min-height: 34px;
    padding: 0 10px 0 8px;
    font-size: 12.5px;
    font-weight: 740;
    box-shadow: none;
  }
  .hall-app-audio-pill {
    width: 34px;
    height: 34px;
    border-color: var(--app-line);
    background: var(--app-card);
    box-shadow: none;
  }
  .hall-app-audio-pill svg { display: block; width: 16px; height: 16px; }
}

@media (max-width: 699px) {
  body.games-hall-page main.games-hall {
    padding-bottom: calc(96px + var(--safe-b));
  }
  .hall-app-title { font-size: 22px; }
  .hall-bottom-nav {
    left: 12px;
    right: 12px;
    bottom: calc(10px + var(--safe-b));
    max-width: 420px;
    margin-inline: auto;
    padding: 5px 6px;
    gap: 3px;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, .09);
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(26px) saturate(1.55);
    -webkit-backdrop-filter: blur(26px) saturate(1.55);
    box-shadow:
      0 14px 36px -10px rgba(15, 23, 42, .22),
      0 2px 6px rgba(15, 23, 42, .05),
      inset 0 1px 0 rgba(255, 255, 255, .92);
  }
  html[data-game-theme="dark"] .hall-bottom-nav {
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(17, 24, 42, .86);
    box-shadow:
      0 16px 40px -8px rgba(0, 0, 0, .68),
      inset 0 1px 0 rgba(255, 255, 255, .1);
  }
  .hall-bottom-link {
    min-height: 50px;
    padding: 5px 4px;
    gap: 2px;
    border-radius: 17px;
    font-size: 11px;
    font-weight: 620;
    transition: background-color 180ms cubic-bezier(.22, 1, .36, 1), color 160ms ease, transform 110ms ease;
  }
  .hall-bottom-link.is-active {
    background: var(--app-cobalt-soft);
    color: var(--app-cobalt);
    font-weight: 740;
  }
  html[data-game-theme="dark"] .hall-bottom-link.is-active {
    background: rgba(122, 162, 255, .18);
    color: #93c5fd;
  }
  .hall-bottom-icon { width: 24px; height: 22px; }
  .hall-bottom-icon svg { width: 20px; height: 20px; }
}

/* ==========================================================================
   极简「好友房」封面建房墙 + 「今日一局」轻推荐 + 无冗余嵌入式积分卡
   ========================================================================== */
@media (max-width: 1099px) {
  .hall-app-sub { display: none !important; }
  .hall-app-topbar { padding: 0 2px 10px; }

  .app-rooms-active-card { padding: 12px; }
  .app-rooms-active-card .app-card-head { margin-bottom: 8px; }
  .app-rooms-active-card .app-card-head h3 { font-size: 14.5px; }

  /* 极简粘码进房条（无多余大卡外框） */
  .app-invite-shell { display: flex; flex-direction: column; gap: 4px; }
  .app-invite-shell .app-invite-form { margin: 0; gap: 7px; }
  .app-invite-shell .app-invite-form input {
    min-height: 40px;
    background: var(--app-card);
    box-shadow: var(--app-shadow);
    font-size: 13.5px;
  }
  .app-invite-shell .app-cobalt-btn {
    min-height: 40px;
    padding: 0 18px;
    font-size: 13.5px;
  }

  /* 7 款联机游戏 16:9 高清封面建房网格 */
  .app-friends-posters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .app-friend-poster {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    border: 1px solid var(--app-line);
    background: var(--app-card);
    box-shadow: var(--app-shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--app-ink);
    transition: transform 120ms ease, border-color 160ms ease;
  }
  .app-friend-poster:active { transform: scale(.975); }
  .app-friend-cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #141c2e;
    overflow: hidden;
  }
  .app-friend-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .app-friend-seat {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 7px;
    border-radius: 9999px;
    background: rgba(11, 15, 25, .64);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #f8fafc;
    font-style: normal;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.3;
  }
  .app-friend-title {
    display: block;
    padding: 7px 8px 8px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 680;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 极简「今日一局」单卡轻推荐 */
  .app-daily-spot-wrap {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .app-daily-spot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
  }
  .app-daily-spot-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 720;
    color: var(--app-muted);
  }
  .app-shuffle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid var(--app-line);
    background: var(--app-card);
    color: var(--app-muted);
    font: 640 12px/1.2 var(--sans);
    cursor: pointer;
    transition: transform 110ms ease, color 140ms ease;
  }
  .app-shuffle-btn:active { transform: scale(.94); }
  .app-daily-spot {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 10px 8px 8px;
    border-radius: 16px;
    border: 1px solid var(--app-line);
    background: var(--app-card);
    box-shadow: var(--app-shadow);
    text-decoration: none;
    color: var(--app-ink);
    transition: transform 120ms ease;
  }
  .app-daily-spot:active { transform: scale(.98); }
  .app-daily-spot-thumb {
    flex: none;
    width: 96px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #141c2e;
  }
  .app-daily-spot-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .app-daily-spot-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .app-daily-spot-body strong {
    font-size: 14.5px;
    font-weight: 720;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .app-daily-spot-tag {
    font-style: normal;
    font-size: 12px;
    font-weight: 660;
    color: #d97706;
  }
  html[data-game-theme="dark"] .app-daily-spot-tag { color: #fbbf24; }
  .app-daily-spot[data-daily-done="true"] .app-daily-spot-tag { color: #059669; }
  html[data-game-theme="dark"] .app-daily-spot[data-daily-done="true"] .app-daily-spot-tag { color: #6ee7b7; }
  .app-daily-spot-cta {
    flex: none;
    padding: 6px 14px;
    border-radius: 9999px;
    background: var(--app-obsidian);
    color: var(--app-obsidian-ink);
    font-size: 12.5px;
    font-weight: 700;
  }

  /* 嵌入式「积分卡」面板去冗余外框，让金属卡直接做主角 */
  .game-wallet.game-wallet-embedded {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .game-wallet.game-wallet-embedded .xh-pass-card.xh-pass-slim {
    margin-top: 0;
    margin-bottom: 12px;
  }
  .game-wallet.game-wallet-embedded .wallet-tab-pane {
    padding: 13px;
    border-radius: 18px;
    border: 1px solid var(--app-line);
    background: var(--app-card);
    box-shadow: var(--app-shadow);
  }
  .game-wallet.game-wallet-embedded .wallet-tabs {
    margin-bottom: 10px;
  }
}

@media (min-width: 700px) and (max-width: 1099px) {
  .app-friends-posters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
  }
}

/* 真实用户头像完整铺满圆形头像框 */
@media (max-width: 1099px) {
  .app-me-avatar.has-photo,
  .hall-side-avatar.has-photo {
    padding: 0;
    overflow: hidden;
  }
  .app-avatar-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  .hall-app-install-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 0 10px;
    border-radius: 9999px;
    border: 1px solid var(--app-cobalt-line);
    background: var(--app-cobalt-soft);
    color: var(--app-cobalt);
    font: 680 12px/1 var(--sans, system-ui, sans-serif);
    white-space: nowrap;
    cursor: pointer;
    transition: transform 110ms ease, background-color 160ms ease;
  }
  .hall-app-install-pill:active { transform: scale(.94); }
  .hall-app-install-pill[hidden] { display: none !important; }
  .app-setting-stack {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .app-setting-stack .app-setting-title {
    flex: none;
  }
  .app-setting-hint {
    font-size: 11.5px;
    line-height: 1.3;
    color: var(--app-muted);
  }
}

@media (min-width: 700px) and (max-width: 1099px) and (display-mode: standalone) {
  body.games-hall-page {
    padding: max(10px, calc(var(--safe-t) + 8px)) max(10px, env(safe-area-inset-right, 0px)) max(10px, var(--safe-b)) max(10px, env(safe-area-inset-left, 0px));
  }
}

/* 手机端原生安全区精修：
   1. 顶栏无缝贴顶 sticky 实底画布 + 自适应灵动岛/状态栏呼吸距离（彻底避开 iOS 26 顶部渐进模糊带且上滑不撞时间栏）
   2. 底栏 1:1 对齐「大锤清单」贴底通栏毛玻璃导航（消除悬浮胶囊抬高 44px 靠上与底部露半截卡片问题） */
@media (max-width: 699px) {
  body.games-hall-page {
    background-image:
      radial-gradient(ellipse 72% 38% at 50% 26%, rgba(69, 120, 255, 0.09) 0%, transparent 64%),
      linear-gradient(to right, rgba(15, 23, 42, 0.02) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
  }
  html[data-game-theme="dark"] body.games-hall-page {
    background-image:
      radial-gradient(ellipse 70% 40% at 50% 26%, rgba(79, 134, 255, 0.13) 0%, transparent 62%),
      linear-gradient(to right, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
  }

  body.games-hall-page main.games-hall {
    padding: 0 14px calc(68px + clamp(4px, calc(var(--safe-b) * 0.32), 11px));
  }

  body.games-hall-page .hall-app-topbar,
  body.games-hall-page[data-app-tab] .hall-app-topbar {
    position: sticky;
    top: 0;
    z-index: 35;
    margin: 0 -14px 6px;
    padding: calc(14px + var(--safe-t) + min(10px, var(--safe-t))) 16px 10px;
    background-color: #f5f7fb;
  }
  html[data-game-theme="dark"] body.games-hall-page .hall-app-topbar,
  html[data-game-theme="dark"] body.games-hall-page[data-app-tab] .hall-app-topbar {
    background-color: #0b0f19;
  }

  body.games-hall-page .hall-bottom-nav {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    margin: 0;
    gap: 0;
    padding: 4px 6px clamp(4px, calc(var(--safe-b) * 0.32), 11px);
    border-radius: 0;
    border: 0;
    border-top: 1px solid rgba(220, 228, 242, 0.92);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.04);
  }
  html[data-game-theme="dark"] body.games-hall-page .hall-bottom-nav {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(11, 15, 25, 0.92);
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.45);
  }

  body.games-hall-page .hall-bottom-link {
    min-height: 42px;
    padding: 2px 2px 1px;
    gap: 2px;
    border-radius: 12px;
    background: transparent;
  }
  body.games-hall-page .hall-bottom-link.is-active,
  html[data-game-theme="dark"] body.games-hall-page .hall-bottom-link.is-active {
    background: transparent;
  }
}

/* ==========================================================================
   四期终极原生手感打磨（大厅壳层）：
   1. 好友房「一键粘贴微信剪贴板秒进房」胶囊
   2. 底部导航图标 Q 弹缩放（Spring Bounce）+ 4 Tab 左右顺滑方向位移
   3. 触屏隔离 :hover 残留 + 卡片 0.966x 物理按压回弹 + 禁系统长按预览框
   4. 长按游戏卡片 0.39s 弹出 iOS 级毛玻璃快捷操作菜单（Haptic Touch）
   ========================================================================== */
@media (max-width: 1099px) {
  .app-invite-quick-row {
    margin-bottom: 8px;
  }
  .app-paste-join-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 9999px;
    border: 1px dashed var(--app-cobalt-line);
    background: var(--app-cobalt-soft);
    color: var(--app-cobalt-strong);
    font: 660 12.5px/1.2 var(--sans, system-ui, sans-serif);
    cursor: pointer;
    transition: transform 100ms ease, background-color 150ms ease;
  }
  .app-paste-join-pill:active {
    transform: scale(0.975);
  }

  /* Tab 切换左右顺滑微位移 + 图标弹簧弹跳 */
  body.games-hall-page[data-tab-dir="forward"] .hall-app-panel {
    animation: xhTabSlideForward 190ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  body.games-hall-page[data-tab-dir="back"] .hall-app-panel,
  body.games-hall-page[data-app-tab="hall"][data-tab-dir="back"] .hall-library {
    animation: xhTabSlideBack 190ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hall-bottom-icon.is-bouncing,
  .hall-side-link svg.is-bouncing {
    animation: xhTabIconBounce 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

@keyframes xhTabSlideForward {
  from { opacity: 0.55; transform: translate3d(12px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes xhTabSlideBack {
  from { opacity: 0.55; transform: translate3d(-12px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes xhTabIconBounce {
  0% { transform: scale(1); }
  32% { transform: scale(0.84); }
  72% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

/* 触屏专属：隔离鼠标 :hover 粘滞、加入跟手物理下压与防系统长按链接菜单 */
@media (hover: none) and (pointer: coarse) {
  body.games-hall-page :is(.hall-game, .app-friend-poster, .app-daily-spot) {
    -webkit-touch-callout: none;
    transition: transform 110ms cubic-bezier(0.2, 0, 0, 1), box-shadow 140ms ease !important;
  }
  body.games-hall-page :is(.hall-game, .app-friend-poster):hover {
    transform: none !important;
  }
  body.games-hall-page :is(.hall-game, .app-friend-poster, .app-daily-spot):active {
    transform: scale(0.966) !important;
  }
}

.is-ctx-highlighted {
  position: relative;
  z-index: 82 !important;
  transform: scale(1.02) !important;
  box-shadow: 0 18px 42px -10px rgba(15, 23, 42, 0.38) !important;
}

/* iOS 级毛玻璃卡片长按快捷操作菜单 */
.xh-card-ctx-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 15, 25, 0.46);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: xhCtxFadeIn 140ms ease;
}
.xh-card-ctx-backdrop[hidden] {
  display: none !important;
}
.xh-card-ctx-sheet {
  position: fixed;
  width: 248px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.97);
  color: #0f172a;
  box-shadow: 0 22px 54px -12px rgba(15, 23, 42, 0.42);
  overflow: hidden;
  transform-origin: center top;
  animation: xhCtxPopIn 175ms cubic-bezier(0.22, 1, 0.36, 1);
}
html[data-game-theme="dark"] .xh-card-ctx-sheet {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(20, 28, 46, 0.97);
  color: #f8fafc;
  box-shadow: 0 24px 58px -10px rgba(0, 0, 0, 0.76);
}
.xh-card-ctx-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
html[data-game-theme="dark"] .xh-card-ctx-head {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}
.xh-card-ctx-thumb {
  width: 52px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
  flex: none;
}
.xh-card-ctx-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.xh-card-ctx-meta strong {
  font-size: 13.5px;
  font-weight: 740;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xh-card-ctx-meta small {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-game-theme="dark"] .xh-card-ctx-meta small {
  color: #94a3b8;
}
.xh-card-ctx-actions {
  display: flex;
  flex-direction: column;
}
.xh-card-ctx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 43px;
  padding: 0 14px;
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: transparent;
  color: inherit;
  font: 620 13.5px/1.2 var(--sans, system-ui, sans-serif);
  text-align: left;
  cursor: pointer;
}
.xh-card-ctx-item:first-child {
  border-top: 0;
}
html[data-game-theme="dark"] .xh-card-ctx-item {
  border-top-color: rgba(255, 255, 255, 0.07);
}
.xh-card-ctx-item:active {
  background: rgba(35, 80, 220, 0.1);
}
html[data-game-theme="dark"] .xh-card-ctx-item:active {
  background: rgba(122, 162, 255, 0.16);
}
.xh-card-ctx-item[hidden] {
  display: none !important;
}
.xh-card-ctx-item svg {
  opacity: 0.78;
  flex: none;
}

@keyframes xhCtxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes xhCtxPopIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   五期收尾封版：
   1. 手机端顶栏上滑 iOS 大标题微缩毛玻璃吸顶（顶部保持零模糊实底）
   2. 弱网首开游戏封面柔和骨架底色 + 解码完成 180ms 丝滑渐显（已缓存 0ms 直出）
   ========================================================================== */
@media (max-width: 699px) {
  body.games-hall-page .hall-app-topbar {
    border-bottom: 1px solid transparent;
    transition: background-color 180ms ease, border-color 180ms ease, padding-bottom 180ms ease;
  }
  body.games-hall-page .hall-app-title {
    transform-origin: left center;
    transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  body.games-hall-page .hall-app-topbar.is-condensed,
  body.games-hall-page[data-app-tab] .hall-app-topbar.is-condensed {
    padding-bottom: 7px;
    border-bottom-color: rgba(15, 23, 42, 0.075);
    background-color: rgba(245, 247, 251, 0.9);
    backdrop-filter: blur(20px) saturate(1.35);
    -webkit-backdrop-filter: blur(20px) saturate(1.35);
  }
  html[data-game-theme="dark"] body.games-hall-page .hall-app-topbar.is-condensed,
  html[data-game-theme="dark"] body.games-hall-page[data-app-tab] .hall-app-topbar.is-condensed {
    border-bottom-color: rgba(255, 255, 255, 0.085);
    background-color: rgba(11, 15, 25, 0.9);
  }
  body.games-hall-page .hall-app-topbar.is-condensed .hall-app-title {
    transform: scale(0.82);
  }
}

body.games-hall-page :is(.hall-cover, .app-friend-cover, .app-daily-spot-thumb) {
  background: linear-gradient(115deg, #e8edf7 0%, #f3f6fc 50%, #e8edf7 100%);
}
html[data-game-theme="dark"] body.games-hall-page :is(.hall-cover, .app-friend-cover, .app-daily-spot-thumb) {
  background: linear-gradient(115deg, #1a243a 0%, #222f4b 50%, #1a243a 100%);
}
body.games-hall-page :is(.hall-cover, .app-friend-cover, .app-daily-spot-thumb) img[data-img-ready="0"] {
  opacity: 0;
}
body.games-hall-page :is(.hall-cover, .app-friend-cover, .app-daily-spot-thumb) img[data-img-ready="1"] {
  opacity: 1;
  transition: opacity 180ms ease;
}
