    /* ── 暖石主题 Warmstone（默认）── */
    :root {
      --bg:            var(--color-bg);
      --bg2:           var(--color-bg-sunken);
      --panel:         var(--color-bg-elevated);
      --panel2:        var(--color-bg-sunken);
      --border:        var(--color-border);
      --border-glow:   rgba(180,83,9,0.12);
      --primary:       var(--color-accent);
      --primary-d:     var(--color-accent-hover);
      --primary-glow:  var(--color-accent-subtle);
      --text:          var(--color-text);
      --text-dim:      var(--color-text-muted);
      --text-mid:      var(--color-text-secondary);
      --danger:        var(--color-danger);
      --success:       var(--color-success);
      --gold:          var(--color-warning);
      --gold-dim:      var(--color-border-strong);
      --top-bar-bg:    rgba(250,248,245,0.92);
      --cover-bg:      linear-gradient(135deg,#f2efe9 0%,#e7e5e4 50%,#f2efe9 100%);
      --shadow-card:   var(--shadow-sm);
      --shadow-hover:  var(--shadow-md);
      --font-h:        var(--font-display);
      --font-b:        var(--font-body);
      --hall-viewport-height: 100dvh;
      --hall-viewport-offset-top: 0px;
      --hall-viewport-bottom-gap: 0px;
    }
    /* ── 暖石暗色 Warmstone Dark ── */
    [data-theme="dark"] {
      --bg:            var(--color-bg);
      --bg2:           var(--color-bg-sunken);
      --panel:         var(--color-bg-elevated);
      --panel2:        var(--color-bg-elevated);
      --border:        var(--color-border);
      --border-glow:   rgba(217,119,6,0.15);
      --primary:       var(--color-accent);
      --primary-d:     var(--color-accent-hover);
      --primary-glow:  var(--color-accent-subtle);
      --text:          var(--color-text);
      --text-dim:      var(--color-text-muted);
      --text-mid:      var(--color-text-secondary);
      --gold:          var(--color-warning);
      --gold-dim:      var(--color-border-strong);
      --top-bar-bg:    rgba(12,10,9,0.88);
      --cover-bg:      linear-gradient(135deg,#1c1917 0%,#292524 50%,#1c1917 100%);
      --shadow-card:   var(--shadow-sm);
      --shadow-hover:  var(--shadow-md);
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }

    body {
      min-height: 100vh;
      background: var(--bg);
      background-image:
        radial-gradient(circle at 10% 15%, rgba(180,83,9,0.05) 0%, transparent 35%),
        radial-gradient(circle at 88% 78%, rgba(161,98,7,0.04) 0%, transparent 35%),
        radial-gradient(circle at 55% 45%, rgba(180,83,9,0.02) 0%, transparent 50%);
      font-family: var(--font-b);
      color: var(--text);
      overflow-x: hidden;
    }
    /* 暖石暗色覆盖 body 背景 */
    [data-theme="dark"] body {
      background-image:
        radial-gradient(ellipse at 15% 30%, rgba(217,119,6,0.04) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 70%, rgba(180,83,9,0.03) 0%, transparent 50%);
    }

    /* ── 顶部栏 ── */
    .top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 20px;
      border-bottom: 1px solid var(--border-glow);
      background: var(--top-bar-bg);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: var(--shadow-sm);
      position: sticky;
      top: 0;
      z-index: 200;
    }

    .logo {
      font-family: var(--font-h);
      font-size: 20px;
      color: var(--primary);
      letter-spacing: 0.15em;
    }
    .logo-sub {
      font-size: 10px;
      color: var(--text-dim);
      letter-spacing: 0.05em;
      display: block;
      font-family: var(--font-b);
      margin-top: 1px;
    }

    .top-right { display: flex; align-items: center; gap: 10px; position: relative; }

    .btn-login-top {
      background: var(--primary);
      border: none;
      color: #fff;
      padding: 6px 16px;
      border-radius: 6px;
      font-size: 13px;
      cursor: pointer;
      font-family: var(--font-b);
      transition: opacity 0.2s;
    }
    .btn-login-top:hover { opacity: 0.88; }

    .user-avatar {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 700;
      color: #fff;
      cursor: pointer;
      flex-shrink: 0;
      user-select: none;
    }

    .user-dropdown {
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 12px;
      min-width: 200px;
      box-shadow: var(--shadow-lg);
      display: none;
      z-index: 300;
      animation: dropdownFade 0.2s ease-out;
    }
    @keyframes dropdownFade {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .user-dropdown.open { display: block; }

    /* ── 账户中心 侧边栏布局 ── */
    .modal-box.account-modal-box {
      max-width: 1000px;
      width: 95%;
      height: 85vh;
      border-radius: 20px;
      background: var(--bg);
      display: flex;
      flex-direction: row; /* 左右结构 */
      overflow: hidden;
      min-height: 0;
      border: 1px solid var(--border);
      box-shadow: var(--shadow-lg);
    }

    /* 左侧导航栏 */
    .account-sidebar {
      width: 240px;
      background: var(--panel);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
    }
    .account-sidebar-head {
      padding: 30px 24px 20px;
    }
    .account-sidebar-title {
      font-family: var(--font-h);
      font-size: 20px;
      color: var(--primary);
      margin-bottom: 4px;
    }
    .account-sidebar-sub {
      font-size: 11px;
      color: var(--text-dim);
      line-height: 1.4;
    }

    .account-tabs {
      display: flex;
      flex-direction: column; /* 垂直排列 */
      padding: 10px;
      gap: 6px;
      flex: 1;
      border-bottom: none;
      background: transparent;
    }
    .account-tab {
      padding: 12px 16px;
      font-size: 14px;
      color: var(--text-mid);
      cursor: pointer;
      border-radius: 12px;
      display: flex;
      align-items: center;
      gap: 12px;
      transition: all 0.2s;
    }
    .account-tab.is-active {
      background: var(--primary-glow);
      color: var(--primary);
      font-weight: 600;
    }
    .account-tab.is-active::after { display: none; }
    .account-tab:hover:not(.is-active) {
      background: var(--bg2);
      color: var(--text);
    }
    .tab-icon { font-size: 18px; width: 20px; text-align: center; }

    /* 右侧主内容区 */
    .account-main {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-width: 0;
      min-height: 0;
      background: var(--bg);
    }
    .account-main-head {
      padding: 20px 30px;
      border-bottom: 1px solid var(--border);
      background: var(--panel);
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 10;
    }

    .account-scroll {
      flex: 1;
      min-height: 0;
      padding: 30px;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      background-image: radial-gradient(circle at 1.5px 1.5px, var(--border) 1px, transparent 0);
      background-size: 32px 32px;
    }

    /* 详情资料网格 */
    .profile-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 16px;
      margin-top: 10px;
    }
    .profile-item {
      padding: 12px 16px;
      background: var(--panel2);
      border: 1px solid var(--border);
      border-radius: 12px;
    }
    .profile-label { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
    .profile-value { font-size: 13px; color: var(--text); font-weight: 500; word-break: break-all; }

    @media (max-width: 768px) {
      .modal-box.account-modal-box {
        flex-direction: column;
        height: min(90vh, calc(var(--hall-viewport-height, 100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px));
        max-height: calc(var(--hall-viewport-height, 100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
      }
      .account-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
      .account-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding: 8px;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
      }
      .account-sidebar-head { display: none; }
    }

    /* ── 全局额度卡片 ── */
    .quota-banner {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 16px;
      margin-bottom: 30px;
    }
    .quota-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 20px;
      display: flex;
      align-items: center;
      gap: 16px;
      transition: all 0.3s;
      box-shadow: var(--shadow-sm);
    }
    .quota-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-md); }
    .quota-icon {
      width: 48px;
      height: 48px;
      background: var(--bg2);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
    }
    .quota-label { font-size: 13px; color: var(--text-dim); margin-bottom: 2px; }
    .quota-value { font-family: var(--font-h); font-size: 28px; color: var(--primary); line-height: 1; }
    .quota-value small { font-size: 14px; opacity: 0.6; margin-left: 2px; }

    /* ── 流水记录列表 ── */
    .ledger-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .ledger-item {
      background: var(--panel);
      border: 1px solid var(--border);
      padding: 16px 20px;
      border-radius: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.2s;
    }
    .ledger-item:hover { background: var(--panel2); border-color: var(--primary); }
    .ledger-info { display: flex; flex-direction: column; gap: 4px; }
    .ledger-title { font-size: 15px; font-weight: 600; color: var(--text); }
    .ledger-time { font-size: 12px; color: var(--text-dim); }
    .ledger-amount { 
      font-family: var(--font-h); 
      font-size: 20px; 
      font-weight: bold;
    }
    .ledger-amount.plus { color: var(--success); }
    .ledger-amount.minus { color: var(--text-mid); }

    /* ── 游戏进度卡片（我的足迹） ── */
    .history-list { display: grid; gap: 12px; }
    .history-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--panel);
      padding: 16px 20px;
      border-radius: 20px;
      border: 1px solid var(--border);
      cursor: pointer;
      transition: all 0.2s;
    }
    .history-card:hover { border-color: var(--primary); transform: translateX(5px); background: var(--panel2); }
    .history-body { flex: 1; }
    .history-name { font-family: var(--font-h); font-size: 18px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
    .history-meta { font-size: 12px; color: var(--text-dim); }
    .history-action-hint { font-size: 13px; color: var(--primary); font-weight: 500; opacity: 0.8; }

    .account-section {
      animation: sectionFade 0.3s ease-out;
    }
    @keyframes sectionFade {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .account-scroll {
      flex: 1;
      padding: 24px;
      overflow-y: auto;
      background-image: radial-gradient(circle at 2px 2px, var(--border) 1px, transparent 0);
      background-size: 24px 24px;
    }

    /* 数据卡片 */
    .data-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 16px;
    }
    .data-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 16px;
      transition: all 0.2s;
    }
    .data-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
    .user-dropdown-email {
      font-size: 11px;
      color: var(--text-dim);
      word-break: break-all;
      margin-bottom: 10px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
    }
    .btn-sm {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text-dim);
      padding: 6px 14px;
      border-radius: 6px;
      font-size: 12px;
      cursor: pointer;
      font-family: var(--font-b);
      transition: all 0.2s;
      width: 100%;
      text-align: center;
    }
    .btn-sm:hover { border-color: var(--primary); color: var(--primary); }

    /* ── 主容器 ── */
    #main-wrap {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px 80px;
      min-height: calc(100vh - 70px);
    }

    /* ── 游戏列表网格化 ── */
    #game-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 24px;
      margin-top: 10px;
    }

    @media (max-width: 640px) {
      #game-list {
        grid-template-columns: 1fr;
        gap: 16px;
      }
      #main-wrap { padding: 0 16px 60px; }
    }

    /* ── 欢迎区 ── */
    .hero {
      padding: 40px 0 30px;
      text-align: center;
      max-width: 700px;
      margin: 0 auto;
    }
    .hero-title {
      font-family: var(--font-h);
      font-size: 32px;
      color: var(--primary);
      letter-spacing: 0.2em;
      margin-bottom: 10px;
      background: linear-gradient(to right, var(--primary), #92400e);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .hero-sub {
      font-size: 14px;
      color: var(--text-dim);
      line-height: 1.8;
    }

    .hall-toolbar {
      margin: 0 0 18px;
      padding: 16px;
      border: 1px solid var(--border);
      border-radius: 20px;
      background: rgba(255,255,255,0.88);
      box-shadow: var(--shadow-card);
      backdrop-filter: blur(10px);
    }
    [data-theme="dark"] .hall-toolbar {
      background: rgba(28,25,23,0.88);
    }
    .hall-search-row {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }
    .hall-search-box {
      flex: 1;
      min-width: 260px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 12px;
      border-radius: 9999px;
      border: 1px solid var(--border);
      background: var(--panel);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
    }
    .hall-search-icon {
      color: var(--text-dim);
      font-size: 15px;
      flex-shrink: 0;
    }
    .hall-search-input {
      flex: 1;
      min-width: 0;
      height: 42px;
      border: none;
      outline: none;
      background: transparent;
      color: var(--text);
      font-family: var(--font-b);
      font-size: 14px;
    }
    .hall-search-input::placeholder { color: var(--text-dim); }
    .hall-search-clear {
      border: none;
      background: transparent;
      color: var(--primary);
      font-size: 12px;
      cursor: pointer;
      font-family: var(--font-b);
    }
    .hall-filter-meta {
      font-size: 12px;
      color: var(--text-dim);
      white-space: nowrap;
    }
    .hall-tag-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .hall-tag-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border: 1px solid var(--border);
      background: var(--panel);
      color: var(--text-mid);
      border-radius: 9999px;
      padding: 8px 12px;
      font-size: 12px;
      cursor: pointer;
      font-family: var(--font-b);
      transition: all 0.2s;
    }
    .hall-tag-chip:hover {
      border-color: var(--primary);
      color: var(--primary);
    }
    .hall-tag-chip.active {
      border-color: var(--primary);
      color: var(--primary);
      background: var(--primary-glow);
    }
    .hall-tag-chip small {
      font-size: 10px;
      opacity: 0.75;
    }

    /* ── 节标题 ── */
    .section-title {
      font-family: var(--font-h);
      font-size: 18px;
      color: var(--text);
      margin: 30px 0 20px;
      padding-left: 14px;
      border-left: 4px solid var(--primary);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .launch-section {
      padding: 4px 18px 8px;
    }
    .launch-note {
      font-size: 12px;
      line-height: 1.7;
      color: var(--text-mid);
      margin-bottom: 12px;
    }
    .launch-mode-wrap {
      margin-bottom: 12px;
      padding: 12px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--panel2);
    }
    .launch-mode-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 10px;
    }
    .launch-mode-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .launch-mode-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 12px;
      border-radius: 9999px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.02);
      cursor: pointer;
      font-size: 12px;
      color: var(--text-mid);
    }
    .launch-mode-chip.active {
      color: var(--text);
      border-color: var(--primary);
      background: var(--primary-glow);
    }
    .launch-mode-chip small {
      opacity: .8;
    }
    .launch-toolbar {
      display: flex;
      justify-content: flex-end;
      margin-bottom: 10px;
    }
    .launch-mini-btn {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--primary);
      border-radius: 9999px;
      padding: 6px 12px;
      font-size: 12px;
      cursor: pointer;
      font-family: var(--font-b);
    }
    .launch-checkpoint-list {
      display: grid;
      gap: 10px;
    }
    .launch-checkpoint-card {
      border: 1px solid var(--border);
      background: var(--panel2);
      border-radius: 20px;
      padding: 12px 14px;
    }
    .launch-checkpoint-card.is-primary {
      border-color: var(--primary);
      box-shadow: 0 0 0 1px var(--primary-glow) inset;
    }
    .launch-checkpoint-head {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: center;
    }
    .launch-checkpoint-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
    }
    .launch-checkpoint-badge {
      flex-shrink: 0;
      font-size: 11px;
      color: var(--primary);
      background: var(--primary-glow);
      border-radius: 9999px;
      padding: 4px 8px;
    }
    .launch-checkpoint-meta {
      font-size: 11px;
      color: var(--text-dim);
      margin-top: 6px;
      line-height: 1.6;
    }
    .launch-checkpoint-actions {
      display: flex;
      gap: 8px;
      margin-top: 10px;
      flex-wrap: wrap;
    }
    .launch-checkpoint-btn {
      border: 1px solid var(--border);
      background: var(--panel);
      color: var(--text);
      border-radius: 12px;
      padding: 7px 12px;
      font-size: 12px;
      cursor: pointer;
      font-family: var(--font-b);
    }
    .launch-checkpoint-btn.is-primary {
      background: var(--primary);
      border-color: transparent;
      color: #fff;
    }
    .launch-empty {
      border: 1px dashed var(--border);
      border-radius: 12px;
      padding: 14px 12px;
      font-size: 12px;
      color: var(--text-dim);
      text-align: center;
      background: var(--panel2);
    }

    /* ── 游戏卡片 ── */
    .game-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 20px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
      -webkit-tap-highlight-color: transparent;
      box-shadow: var(--shadow-card);
      display: flex;
      flex-direction: column;
      position: relative;
    }
    .game-card:hover {
      transform: translateY(-4px);
      border-color: var(--primary);
    }
    .game-card:active { transform: translateY(-2px); }
    .game-card:focus-visible {
      outline: 3px solid rgba(180, 83, 9, 0.35);
      outline-offset: 3px;
    }

    .game-cover {
      width: 100%;
      aspect-ratio: 16/9;
      background: var(--cover-bg);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }
    .game-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .game-cover-placeholder {
      font-size: 52px;
      opacity: 0.5;
    }
    .game-cover-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(28,25,23,0.20) 0%, transparent 55%);
    }
    .game-rating-badge {
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 2;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      min-height: 24px;
      padding: 0 8px;
      border-radius: 999px;
      background: rgba(250, 248, 245, 0.92);
      color: var(--text);
      font-size: 11px;
      line-height: 1;
      font-weight: 600;
      box-shadow: var(--shadow-sm);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }
    .game-rating-badge i {
      color: #d97706;
      font-size: 10px;
    }
    [data-theme="dark"] .game-cover-overlay {
      background: linear-gradient(to top, rgba(28,25,23,0.30) 0%, transparent 55%);
    }
    [data-theme="dark"] .game-rating-badge {
      background: rgba(28, 25, 23, 0.82);
      color: #f5efe6;
    }

    .game-body { padding: 12px 14px 14px; }

    .game-title-row {
      display: flex;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 6px;
    }
    .game-name {
      font-family: var(--font-h);
      font-size: 17px;
      color: var(--text);
      font-weight: 700;
      flex: 1;
      min-width: 0;
      line-height: 1.3;
      word-break: keep-all;
      overflow-wrap: anywhere;
    }
    .game-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      justify-content: flex-end;
      flex-shrink: 0;
    }
    .game-badge {
      display: inline-flex;
      align-items: center;
      min-height: 20px;
      padding: 2px 8px;
      border-radius: 9999px;
      font-size: 10px;
      line-height: 1;
      letter-spacing: 0.04em;
      border: 1px solid var(--border);
      white-space: nowrap;
    }
    .game-badge-new {
      color: #fff;
      border-color: transparent;
      background: var(--primary);
      box-shadow: var(--shadow-md);
    }
    .game-badge-progress {
      color: var(--primary);
      background: var(--primary-glow);
      border-color: var(--primary);
    }

    /* 标签胶囊 */
    .tags-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
    .tag {
      background: var(--bg2);
      color: var(--primary);
      border: 1px solid var(--border);
      font-size: 10px;
      padding: 2px 8px;
      border-radius: 12px;
      white-space: nowrap;
    }
    [data-theme="dark"] .tag {
      background: var(--border);
      color: var(--text-mid);
      border: none;
    }

    .game-desc-card {
      font-size: 12px;
      color: var(--text-dim);
      line-height: 1.6;
      margin-bottom: 10px;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    /* 统计行（卡片底部） */
    .stats-row {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 11px;
      color: var(--text-dim);
      flex-wrap: wrap;
    }
    .stat-item { display: flex; align-items: center; gap: 3px; }
    .game-progress {
      margin-bottom: 10px;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.64);
    }
    [data-theme="dark"] .game-progress {
      background: rgba(28,25,23,0.64);
    }
    .game-progress-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.45;
      margin-bottom: 4px;
    }
    .game-progress-meta {
      font-size: 11px;
      color: var(--text-dim);
      line-height: 1.5;
    }

    /* ── 加载/空状态 ── */
    .state-box {
      text-align: center;
      padding: 60px 20px;
      color: var(--text-dim);
      font-size: 13px;
      line-height: 2;
    }
    .spinner {
      display: inline-block;
      font-size: 28px;
      animation: spin 1.2s linear infinite;
      margin-bottom: 12px;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── 错误横幅 ── */
    .error-banner {
      background: rgba(224,80,80,0.1);
      border: 1px solid rgba(224,80,80,0.3);
      color: var(--danger);
      border-radius: 6px;
      padding: 12px 16px;
      font-size: 12px;
      margin-bottom: 16px;
      display: none;
    }
    .error-banner.visible { display: flex; align-items: center; gap: 12px; }
    .error-retry-btn {
      flex-shrink: 0;
      padding: 4px 14px;
      border: 1px solid var(--danger);
      border-radius: 6px;
      background: transparent;
      color: var(--danger);
      font-size: 13px;
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.2s;
    }
    .error-retry-btn:active {
      background: rgba(224,80,80,0.15);
    }

    .hall-signals-banner {
      background: rgba(245,168,66,0.12);
      border: 1px solid rgba(245,168,66,0.35);
      color: var(--primary);
      border-radius: 6px;
      padding: 12px 16px;
      font-size: 12px;
      margin-bottom: 16px;
      display: none;
    }
    [data-theme="dark"] .hall-signals-banner {
      color: var(--primary);
      background: rgba(245,200,66,0.12);
      border-color: rgba(245,200,66,0.25);
    }
    .hall-signals-banner.visible { display: flex; align-items: center; gap: 12px; }

    [hidden] {
      display: none !important;
    }

    /* ══════════════════════════════════
       底部详情 Sheet
    ══════════════════════════════════ */
    .sheet-backdrop {
      position: fixed;
      top: var(--hall-viewport-offset-top, 0px);
      left: 0;
      right: 0;
      height: var(--hall-viewport-height, 100dvh);
      background: rgba(0,0,0,0.5);
      z-index: 400;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      overscroll-behavior: contain;
    }
    .sheet-backdrop.open {
      opacity: 1;
      pointer-events: auto;
    }

    .detail-sheet {
      position: fixed;
      bottom: var(--hall-viewport-bottom-gap, 0px);
      left: 50%;
      transform: translateX(-50%) translateY(105%);
      width: 100%;
      max-width: 540px;
      height: min(85vh, calc(var(--hall-viewport-height, 100dvh) - env(safe-area-inset-top)));
      max-height: calc(var(--hall-viewport-height, 100dvh) - env(safe-area-inset-top));
      background: var(--panel);
      border-radius: 20px 20px 0 0;
      box-shadow: var(--shadow-lg), 0 -1px 0 var(--border);
      z-index: 401;
      display: flex;
      flex-direction: column;
      will-change: transform;
      transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
      overflow: hidden;
    }
    @media (min-width: 641px) {
      .detail-sheet {
        bottom: calc(20px + var(--hall-viewport-bottom-gap, 0px));
        border-radius: 20px;
        height: min(800px, 85vh);
      }
      .detail-sheet.open {
        transform: translateX(-50%) translateY(0);
      }
    }
    .detail-sheet.open {
      transform: translateX(-50%) translateY(0);
    }

    /* 拖拽手柄 */
    .sheet-handle {
      flex-shrink: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 12px 0 8px;
      cursor: grab;
    }
    .sheet-handle:active { cursor: grabbing; }
    .sheet-handle-bar {
      width: 40px;
      height: 5px;
      background: var(--border);
      border-radius: 6px;
      opacity: 0.6;
    }

    .sheet-scroll {
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
      overflow-anchor: none;
      scroll-padding-bottom: calc(156px + env(safe-area-inset-bottom));
      padding-bottom: 40px;
    }
    .sheet-scroll::-webkit-scrollbar { width: 5px; }
    .sheet-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 12px; }

    /* Sheet 头部 */
    .sheet-header {
      position: relative;
      background: var(--cover-bg);
    }
    .sheet-close {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: rgba(0,0,0,0.3);
      backdrop-filter: blur(4px);
      border: 1px solid rgba(255,255,255,0.2);
      color: #fff;
      font-size: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
      transition: all 0.2s;
    }
    .sheet-close:hover { background: rgba(0,0,0,0.5); transform: rotate(90deg); }

    .sheet-cover {
      width: 100%;
      aspect-ratio: 18/9;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
    }
    .sheet-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .sheet-cover::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, var(--panel) 0%, transparent 40%);
    }

    /* Sheet 信息区 */
    .sheet-info { padding: 20px 24px 0; }

    .sheet-game-name {
      font-family: var(--font-h);
      font-size: 26px;
      color: var(--text);
      font-weight: 700;
      margin-bottom: 12px;
      line-height: 1.2;
    }

    .sheet-stats {
      display: flex;
      align-items: center;
      gap: 16px;
      font-size: 13px;
      color: var(--text-dim);
      margin-bottom: 15px;
    }

    .sheet-desc {
      font-size: 14px;
      color: var(--text-mid);
      line-height: 1.8;
      margin-bottom: 24px;
    }

    /* 按钮组 */
    .sheet-actions {
      padding: 0 24px 30px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .action-btn {
      height: 50px;
      border-radius: 12px;
      font-size: 15px;
      font-weight: 600;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all 0.2s;
      font-family: var(--font-b);
    }
    .action-btn.play-btn {
      grid-column: span 2;
      background: var(--primary);
      color: #fff;
      font-size: 16px;
      box-shadow: var(--shadow-md);
    }
    .action-btn.play-btn:hover {
      background: var(--primary-d);
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }
    .action-btn.secondary {
      background: var(--bg2);
      color: var(--text-mid);
      border: 1px solid var(--border);
    }
    .action-btn.secondary:hover {
      background: var(--border);
      color: var(--text);
    }
    .mode-entry-box {
      margin-bottom: 16px;
      padding: 12px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--panel2);
    }
    .mode-entry-head {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 12px;
      margin-bottom: 10px;
    }
    .mode-entry-title {
      font-size: 13px;
      color: var(--text);
      font-weight: 700;
    }
    .mode-entry-hint {
      font-size: 11px;
      color: var(--text-dim);
      text-align: right;
    }
    .mode-entry-list {
      display: grid;
      gap: 8px;
    }
    .mode-entry-btn {
      width: 100%;
      border: 1px solid var(--border);
      background: transparent;
      border-radius: 12px;
      padding: 10px 12px;
      text-align: left;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
      font-family: var(--font-b);
      color: var(--text);
    }
    .mode-entry-btn.active {
      border-color: var(--primary);
      background: var(--primary-glow);
    }
    .mode-entry-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
    }
    .mode-entry-desc {
      font-size: 11px;
      color: var(--text-dim);
      line-height: 1.6;
      margin-top: 4px;
    }

    /* 操作按钮行 */
    .sheet-actions {
      display: flex;
      gap: 8px;
      padding: 0 16px 16px;
    }
    .action-btn {
      flex: 1;
      padding: 10px 6px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text-dim);
      font-size: 12px;
      font-family: var(--font-b);
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      transition: all 0.2s;
      -webkit-tap-highlight-color: transparent;
    }
    .action-btn .btn-icon { font-size: 18px; line-height: 1; }
    .action-btn .btn-label { font-size: 10px; }
    .action-btn:hover { border-color: var(--primary); color: var(--primary); }
    .action-btn.active {
      background: var(--primary-glow);
      border-color: var(--primary);
      color: var(--primary);
    }
    .action-btn.active .btn-icon { filter: saturate(2); }
    .action-btn.play-btn {
      background: var(--primary);
      border-color: transparent;
      color: #fff;
    }
    .action-btn.restart-btn {
      border-color: rgba(185,28,28,0.35);
      color: var(--danger);
    }
    .action-btn.play-btn:hover { opacity: 0.88; }

    /* 分隔线 */
    .sheet-divider {
      height: 1px;
      background: var(--border);
      margin: 0 16px 16px;
    }

    /* 评价区 */
    .review-section { padding: 0 16px 32px; }
    .review-section-title {
      font-family: var(--font-h);
      font-size: 15px;
      color: var(--text);
      margin-bottom: 14px;
      padding-left: 8px;
      border-left: 3px solid var(--primary);
    }

    /* 写评价折叠区 */
    .write-review-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      background: var(--panel2);
      border: 1px solid var(--border);
      border-radius: 12px;
      cursor: pointer;
      margin-bottom: 12px;
      font-size: 13px;
      color: var(--text-dim);
      transition: border-color 0.2s;
      -webkit-tap-highlight-color: transparent;
    }
    .write-review-toggle:hover { border-color: var(--primary); }
    .write-review-toggle-icon { transition: transform 0.2s; }
    .write-review-toggle.open .write-review-toggle-icon { transform: rotate(180deg); }

    .write-review-form {
      background: var(--panel2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px;
      margin-bottom: 16px;
      display: none;
    }
    .write-review-form.open { display: block; }

    /* 星级选择 */
    .star-selector {
      display: flex;
      gap: 6px;
      margin-bottom: 12px;
    }
    .star-btn {
      font-size: 24px;
      background: none;
      border: none;
      cursor: pointer;
      line-height: 1;
      color: var(--gold-dim);
      transition: color 0.15s, transform 0.1s;
      -webkit-tap-highlight-color: transparent;
    }
    .star-btn.active, .star-btn:hover { color: var(--gold); }
    .star-btn:active { transform: scale(1.2); }

    .review-textarea {
      width: 100%;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 10px 12px;
      color: var(--text);
      font-family: var(--font-b);
      font-size: 13px;
      resize: none;
      height: 80px;
      outline: none;
      margin-bottom: 10px;
      transition: border-color 0.2s;
    }
    .review-textarea:focus { border-color: var(--primary); }
    .review-textarea::placeholder { color: var(--text-dim); }

    .review-nickname {
      width: 100%;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 9px 12px;
      color: var(--text);
      font-family: var(--font-b);
      font-size: 13px;
      outline: none;
      margin-bottom: 10px;
      transition: border-color 0.2s;
    }
    .review-nickname:focus { border-color: var(--primary); }
    .review-nickname::placeholder { color: var(--text-dim); }
    .review-textarea,
    .review-nickname,
    .auth-field {
      scroll-margin-top: 20px;
      scroll-margin-bottom: calc(108px + env(safe-area-inset-bottom));
    }

    .btn-submit-review {
      width: 100%;
      padding: 10px;
      background: var(--primary);
      border: none;
      border-radius: 6px;
      color: #fff;
      font-family: var(--font-h);
      font-size: 14px;
      cursor: pointer;
      letter-spacing: 0.05em;
      transition: opacity 0.2s;
    }
    .btn-submit-review:hover { opacity: 0.88; }
    .btn-submit-review:disabled { opacity: 0.4; cursor: not-allowed; }

    /* 评价列表 */
    .review-item {
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
    }
    .review-item:last-child { border-bottom: none; }

    .review-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 6px;
    }
    .review-nickname-display {
      font-size: 13px;
      color: var(--text);
      font-weight: 700;
    }
    .review-time {
      font-size: 11px;
      color: var(--text-dim);
    }
    .review-stars {
      font-size: 12px;
      margin-bottom: 5px;
      letter-spacing: 2px;
    }
    .star-filled { color: var(--gold); }
    .star-empty  { color: var(--gold-dim); }
    .review-content {
      font-size: 12px;
      color: var(--text-mid);
      line-height: 1.65;
    }

    .login-hint-review {
      text-align: center;
      padding: 16px;
      font-size: 13px;
      color: var(--text-dim);
      background: var(--panel2);
      border: 1px solid var(--border);
      border-radius: 12px;
      margin-bottom: 16px;
    }
    .login-hint-review button {
      display: inline;
      background: none;
      border: none;
      color: var(--primary);
      cursor: pointer;
      font-family: var(--font-b);
      font-size: 13px;
      padding: 0;
    }
    .login-hint-review button:hover { text-decoration: underline; }

    /* 评价加载提示 */
    .reviews-loading {
      text-align: center;
      padding: 20px;
      color: var(--text-dim);
      font-size: 12px;
    }

    /* ══════════════════════════════════
       登录模态框
    ══════════════════════════════════ */
    .modal-overlay {
      position: fixed;
      top: var(--hall-viewport-offset-top, 0px);
      left: 0;
      right: 0;
      height: var(--hall-viewport-height, 100dvh);
      background: rgba(0,0,0,0.75);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 600;
      overflow-y: auto;
      overscroll-behavior: contain;
      padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s;
    }
    .modal-overlay.visible {
      opacity: 1;
      pointer-events: auto;
    }
    .modal-box {
      width: min(400px, 92vw);
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 32px 28px 28px;
      text-align: center;
      transform: translateY(12px);
      transition: transform 0.2s;
      position: relative;
      margin: auto;
      max-height: calc(var(--hall-viewport-height, 100dvh) - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overflow-anchor: none;
    }
    .modal-overlay.visible .modal-box { transform: translateY(0); }

    :root[data-hall-keyboard-active="true"] .detail-sheet,
    :root[data-hall-keyboard-active="true"] .modal-box {
      transition: none;
    }

    .modal-logo {
      font-family: var(--font-h);
      font-size: 30px;
      color: var(--primary);
      letter-spacing: 0.15em;
      margin-bottom: 4px;
    }
    .modal-sub {
      font-size: 12px;
      color: var(--text-dim);
      margin-bottom: 24px;
    }
    .auth-tabs {
      display: flex;
      margin-bottom: 20px;
      border: 1px solid var(--border);
      border-radius: 6px;
      overflow: hidden;
    }
    .auth-tab {
      flex: 1;
      padding: 9px;
      background: transparent;
      border: none;
      color: var(--text-dim);
      font-family: var(--font-b);
      font-size: 13px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .auth-tab.active { background: var(--primary); color: #fff; font-weight: 700; }
    .auth-mode-hint {
      font-size: 12px;
      color: var(--text-dim);
      margin: -8px 0 14px;
      line-height: 1.6;
    }

    .auth-field {
      width: 100%;
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 12px 14px;
      color: var(--text);
      font-family: var(--font-b);
      font-size: 14px;
      outline: none;
      margin-bottom: 10px;
      transition: border-color 0.2s;
    }
    .auth-field:focus { border-color: var(--primary); }
    .auth-field::placeholder { color: var(--text-dim); }

    .auth-inline-row {
      display: flex;
      gap: 12px;
      align-items: center;
      padding: 12px 14px;
      margin-bottom: 10px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--bg2);
    }
    .auth-inline-main {
      min-width: 0;
      flex: 1;
    }
    .auth-inline-label {
      font-size: 13px;
      font-family: var(--font-b);
      color: var(--text);
      margin-bottom: 4px;
    }
    .auth-inline-sub {
      font-size: 12px;
      line-height: 1.5;
      color: var(--text-dim);
    }
    .btn-auth-secondary {
      flex: 0 0 auto;
      min-height: 40px;
      padding: 0 14px;
      border-radius: 999px;
      border: 1px solid var(--primary);
      background: transparent;
      color: var(--primary);
      font-family: var(--font-b);
      font-size: 12px;
      cursor: pointer;
      white-space: nowrap;
    }
    .btn-auth-secondary:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }

    .btn-auth {
      width: 100%;
      padding: 13px;
      background: var(--primary);
      border: none;
      border-radius: 6px;
      color: #fff;
      font-family: var(--font-h);
      font-size: 16px;
      cursor: pointer;
      transition: opacity 0.2s;
      margin-top: 2px;
      letter-spacing: 0.05em;
    }
    .btn-auth:hover { opacity: 0.88; }
    .btn-auth:disabled { opacity: 0.4; cursor: not-allowed; }

    .auth-msg {
      font-size: 12px;
      margin-top: 10px;
      min-height: 18px;
      line-height: 1.5;
    }
    .auth-msg.error { color: var(--danger); }
    .auth-msg.ok    { color: var(--success); }

    .modal-close {
      position: absolute;
      top: 16px;
      right: 18px;
      background: none;
      border: none;
      color: var(--text-dim);
      font-size: 20px;
      cursor: pointer;
      line-height: 1;
    }
    .modal-close:hover { color: var(--text); }

    /* 账户中心样式已抽到 /vendor/runtime-account.css */

    /* ── 正在制作中区块 ── */
    .detail-sheet {
      padding-bottom: env(safe-area-inset-bottom);
    }

    /* 2. 全局触摸目标最小高度 44px */
    .btn-login-top,
    .btn-sm,
    .btn-auth,
    .btn-auth-secondary,
    .btn-submit-review,
    .action-btn,
    .theme-toggle,
    .auth-tab,
    .write-review-toggle {
      min-height: 44px;
    }
    /* theme-toggle 已有固定宽高 34px，手机上放宽 */
    @media (max-width: 560px) {
      .theme-toggle {
        width: 40px;
        height: 40px;
      }
      .user-avatar {
        width: 40px;
        height: 40px;
      }
      .sheet-close {
        width: 36px;
        height: 36px;
        font-size: 16px;
      }
    }

    /* 3. 游戏卡片响应式布局 */
    /* 中屏（400–560px）：双列 */
    @media (max-width: 560px) and (min-width: 400px) {
      #game-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
      }
      #game-list .game-card {
        margin-bottom: 0;
      }
      .game-title-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
      }
      .game-badges {
        justify-content: flex-start;
      }
      .game-name {
        font-size: 16px;
      }
    }
    /* 小屏（<400px）：单列，撑满 */
    @media (max-width: 399px) {
      #game-list {
        display: block;
      }
      #game-list .game-card {
        margin-bottom: 12px;
      }
    }

    /* 4. 详情 Sheet 手机优化 */
    @media (max-width: 560px) {
      .detail-sheet {
        height: min(85vh, calc(var(--hall-viewport-height, 100dvh) - env(safe-area-inset-top)));
        max-height: calc(var(--hall-viewport-height, 100dvh) - env(safe-area-inset-top));
      }
      .sheet-scroll {
        max-height: calc(var(--hall-viewport-height, 100dvh) - 26px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); /* 减去拖拽手柄高度 */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
    }

    /* 5. 登录弹窗手机优化 */
    @media (max-width: 480px) {
      .modal-overlay {
        align-items: flex-start;
        justify-content: stretch;
      }
      .modal-box {
        width: calc(100% - 32px);
        padding: 24px 18px 20px;
        border-radius: 12px;
        margin: 0 auto;
        max-height: calc(var(--hall-viewport-height, 100dvh) - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
      }
      .sheet-actions {
        grid-template-columns: 1fr;
      }
      .auth-inline-row {
        align-items: stretch;
        flex-direction: column;
      }
      .btn-auth-secondary {
        width: 100%;
      }
      .sheet-cover {
        height: 196px;
      }
      .sheet-stats {
        flex-wrap: wrap;
        row-gap: 6px;
      }
      .top-right {
        gap: 10px;
      }
      .user-dropdown {
        min-width: min(220px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        right: 0;
        padding: 10px 12px;
      }
      .user-dropdown-email {
        font-size: 10px;
        line-height: 1.5;
      }
    }

    /* 5.1 手机端输入控件防自动缩放 */
    @media (max-width: 768px) {
      .hall-search-input,
      .review-textarea,
      .review-nickname,
      .auth-field {
        font-size: 16px;
      }
      .review-textarea {
        line-height: 1.55;
      }
      .review-nickname,
      .auth-field {
        min-height: 44px;
        line-height: 1.4;
      }
    }

    /* 6. top-bar 极小屏 Logo 缩小 */
    @media (max-width: 380px) {
      .logo {
        font-size: 16px;
      }
      .logo-sub {
        font-size: 9px;
      }
      .btn-login-top {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
      }
    }

    /* 7. 极小屏（≤360px）Hero 与按钮字号缩减 */
    @media (max-width: 360px) {
      .hero-title {
        font-size: 22px;
        letter-spacing: 0.1em;
      }
      .hero-sub {
        font-size: 11px;
      }
      .hero-cloud {
        font-size: 18px;
        letter-spacing: 5px;
      }
      .btn-auth {
        font-size: 14px;
        padding: 11px;
      }
      .section-title {
        font-size: 13px;
      }
      .sheet-game-name {
        font-size: 18px;
      }
      .action-btn {
        padding: 8px 4px;
      }
    }

    /* 8. #main-wrap 横向内边距统一（已有 16px，safe area 补全） */
    @media (max-width: 560px) {
      #main-wrap {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
      }
    }
