:root {
  --gh-page: var(--ng-shell-page, #f4f7fc);
  --gh-surface: var(--ng-shell-surface-strong, #fff);
  --gh-text: var(--ng-shell-text, #172238);
  --gh-muted: var(--ng-shell-muted, #71809a);
  --gh-line: var(--ng-shell-card-border, rgba(68, 88, 121, .14));
  --gh-primary: var(--ng-shell-primary, #2476ef);
  --gh-accent: var(--ng-shell-accent, #16b9cc);
  --gh-danger: #d75063;
  --gh-platform-surface: linear-gradient(132deg, #f9fbff 0%, #edf4ff 55%, #e2edff 100%);
  --gh-platform-wash: radial-gradient(circle at 84% 16%, rgba(47, 123, 255, .18), transparent 38%), linear-gradient(116deg, rgba(255, 255, 255, .72), transparent 55%);
  --gh-platform-media-glow: radial-gradient(circle at 61% 52%, rgba(47, 123, 255, .2), transparent 54%);
  --gh-platform-action: linear-gradient(135deg, #24334c, #101a2b);
  --gh-platform-action-border: #d7aa3b;
  --gh-platform-action-text: #fff;
  --gh-cover-shade-strong: rgba(248, 251, 255, .98);
  --gh-cover-shade-soft: rgba(248, 251, 255, .76);
  --gh-cover-shade-edge: rgba(248, 251, 255, .28);
}
html[data-theme="dark"] { --gh-cover-shade-strong: rgba(5, 12, 25, .96); --gh-cover-shade-soft: rgba(5, 12, 25, .8); --gh-cover-shade-edge: rgba(5, 12, 25, .32); }

/* Each visual family owns a deliberate day and night treatment. The card
   component consumes these tokens, so future platform data stays dynamic. */
html[data-ui-theme="original"][data-theme="light"] { --gh-platform-surface: linear-gradient(132deg, #fbfdff, #eaf2ff 58%, #deebff); --gh-platform-wash: radial-gradient(circle at 84% 14%, rgba(47, 123, 255, .2), transparent 39%), linear-gradient(116deg, rgba(255, 255, 255, .78), transparent 55%); --gh-platform-media-glow: radial-gradient(circle at 62% 52%, rgba(43, 119, 242, .24), transparent 56%); --gh-platform-action: linear-gradient(135deg, #253651, #101a2b); --gh-platform-action-border: #d9ad42; }
html[data-ui-theme="original"][data-theme="dark"] { --gh-platform-surface: linear-gradient(132deg, #172840, #0c182a 61%, #0a1423); --gh-platform-wash: radial-gradient(circle at 84% 14%, rgba(76, 145, 237, .27), transparent 40%), linear-gradient(116deg, rgba(31, 58, 91, .7), transparent 56%); --gh-platform-media-glow: radial-gradient(circle at 62% 52%, rgba(70, 144, 235, .3), transparent 57%); --gh-platform-action: linear-gradient(135deg, #347dda, #174d92); --gh-platform-action-border: #75b3ff; }
html[data-ui-theme="cosmic"][data-theme="light"] { --gh-platform-surface: linear-gradient(132deg, #fefeff, #f0efff 57%, #e4e4ff); --gh-platform-wash: radial-gradient(circle at 84% 14%, rgba(101, 90, 226, .23), transparent 40%), radial-gradient(circle at 14% 90%, rgba(35, 174, 193, .12), transparent 36%); --gh-platform-media-glow: radial-gradient(circle at 62% 52%, rgba(95, 82, 219, .26), transparent 57%); --gh-platform-action: linear-gradient(135deg, #40397e, #25204f); --gh-platform-action-border: #8e86e8; }
html[data-ui-theme="cosmic"][data-theme="dark"] { --gh-platform-surface: linear-gradient(132deg, #18245c, #0b1236 60%, #070c25); --gh-platform-wash: radial-gradient(circle at 84% 14%, rgba(112, 124, 255, .32), transparent 40%), radial-gradient(circle at 12% 96%, rgba(28, 205, 219, .16), transparent 37%); --gh-platform-media-glow: radial-gradient(circle at 62% 52%, rgba(101, 116, 255, .34), transparent 57%); --gh-platform-action: linear-gradient(135deg, #6a72e7, #393e96); --gh-platform-action-border: #a6b1ff; }
html[data-ui-theme="aurora"][data-theme="light"] { --gh-platform-surface: linear-gradient(132deg, #fbfffd, #e6faf4 58%, #d8f4ed); --gh-platform-wash: radial-gradient(ellipse at 84% 12%, rgba(43, 191, 153, .24), transparent 41%), linear-gradient(118deg, rgba(255, 255, 255, .74), transparent 57%); --gh-platform-media-glow: radial-gradient(circle at 62% 52%, rgba(35, 180, 151, .26), transparent 57%); --gh-platform-action: linear-gradient(135deg, #286f68, #174944); --gh-platform-action-border: #66d1b4; }
html[data-ui-theme="aurora"][data-theme="dark"] { --gh-platform-surface: linear-gradient(132deg, #184b47, #092d31 59%, #062226); --gh-platform-wash: radial-gradient(ellipse at 84% 12%, rgba(99, 246, 193, .27), transparent 41%), linear-gradient(118deg, rgba(27, 93, 84, .62), transparent 58%); --gh-platform-media-glow: radial-gradient(circle at 62% 52%, rgba(94, 229, 183, .3), transparent 57%); --gh-platform-action: linear-gradient(135deg, #4bc9a5, #187265); --gh-platform-action-border: #99f0d5; }
html[data-ui-theme="particles"][data-theme="light"] { --gh-platform-surface: linear-gradient(132deg, #fbfeff, #e7f5fa 58%, #d9eef6); --gh-platform-wash: linear-gradient(90deg, rgba(36, 134, 187, .07) 1px, transparent 1px), linear-gradient(rgba(36, 134, 187, .05) 1px, transparent 1px), radial-gradient(circle at 84% 14%, rgba(28, 174, 211, .2), transparent 39%); --gh-platform-media-glow: radial-gradient(circle at 62% 52%, rgba(21, 167, 205, .25), transparent 57%); --gh-platform-action: linear-gradient(135deg, #236e8f, #17445f); --gh-platform-action-border: #62c5dd; }
html[data-ui-theme="particles"][data-theme="dark"] { --gh-platform-surface: linear-gradient(132deg, #102f3d, #071b25 58%, #05131b); --gh-platform-wash: linear-gradient(90deg, rgba(28, 211, 239, .08) 1px, transparent 1px), linear-gradient(rgba(28, 211, 239, .055) 1px, transparent 1px), radial-gradient(circle at 84% 14%, rgba(24, 209, 230, .22), transparent 39%); --gh-platform-media-glow: radial-gradient(circle at 62% 52%, rgba(38, 214, 238, .29), transparent 57%); --gh-platform-action: linear-gradient(135deg, #13bdd2, #09647d); --gh-platform-action-border: #63e7f7; }
html[data-ui-theme="esports"][data-theme="light"] { --gh-platform-surface: linear-gradient(132deg, #fffefe, #f8edf3 58%, #f4e2eb); --gh-platform-wash: linear-gradient(120deg, transparent 59%, rgba(222, 49, 99, .13) 59%, rgba(89, 73, 213, .06) 81%, transparent 81%); --gh-platform-media-glow: radial-gradient(circle at 62% 52%, rgba(222, 49, 99, .22), transparent 57%); --gh-platform-action: linear-gradient(135deg, #b82f58, #672341); --gh-platform-action-border: #ee7899; }
html[data-ui-theme="esports"][data-theme="dark"] { --gh-platform-surface: linear-gradient(132deg, #1c3043, #111e2d 58%, #0c1724); --gh-platform-wash: linear-gradient(120deg, transparent 58%, rgba(34, 182, 240, .15) 58%, rgba(236, 50, 104, .08) 82%, transparent 82%); --gh-platform-media-glow: radial-gradient(circle at 62% 52%, rgba(40, 181, 231, .27), transparent 57%); --gh-platform-action: linear-gradient(135deg, #2bb4e4, #5154c8); --gh-platform-action-border: #72d5f5; }
html[data-ui-theme="arcade"][data-theme="light"] { --gh-platform-surface: linear-gradient(132deg, #fffefe, #f7ecff 58%, #f0dfff); --gh-platform-wash: radial-gradient(circle at 84% 13%, rgba(207, 71, 180, .2), transparent 38%), linear-gradient(135deg, transparent 54%, rgba(105, 76, 207, .11)); --gh-platform-media-glow: radial-gradient(circle at 62% 52%, rgba(185, 62, 179, .23), transparent 57%); --gh-platform-action: linear-gradient(135deg, #b43b9a, #6240ac); --gh-platform-action-border: #e67bd2; }
html[data-ui-theme="arcade"][data-theme="dark"] { --gh-platform-surface: linear-gradient(132deg, #382052, #211233 58%, #170d27); --gh-platform-wash: radial-gradient(circle at 84% 13%, rgba(255, 76, 207, .28), transparent 38%), linear-gradient(135deg, transparent 54%, rgba(115, 87, 255, .15)); --gh-platform-media-glow: radial-gradient(circle at 62% 52%, rgba(241, 77, 211, .3), transparent 57%); --gh-platform-action: linear-gradient(135deg, #e84fc2, #6548c4); --gh-platform-action-border: #ff9ae5; }
html[data-ui-theme="gold"][data-theme="light"] { --gh-platform-surface: linear-gradient(132deg, #fffefb, #f4eee3 58%, #ebdfc9); --gh-platform-wash: radial-gradient(circle at 84% 12%, rgba(188, 136, 43, .21), transparent 39%), linear-gradient(115deg, rgba(255, 255, 255, .69), transparent 57%); --gh-platform-media-glow: radial-gradient(circle at 62% 52%, rgba(190, 139, 53, .24), transparent 57%); --gh-platform-action: linear-gradient(135deg, #4f3c25, #21190f); --gh-platform-action-border: #c99a3a; }
html[data-ui-theme="gold"][data-theme="dark"] { --gh-platform-surface: linear-gradient(132deg, #382d1c, #201a11 58%, #15110c); --gh-platform-wash: radial-gradient(circle at 84% 12%, rgba(227, 186, 95, .25), transparent 39%), linear-gradient(115deg, rgba(102, 76, 36, .4), transparent 57%); --gh-platform-media-glow: radial-gradient(circle at 62% 52%, rgba(226, 184, 89, .27), transparent 57%); --gh-platform-action: linear-gradient(135deg, #d6ad5a, #8d601f); --gh-platform-action-border: #f0d18b; --gh-platform-action-text: #17110a; }

html[data-ui-theme="original"][data-theme="light"] { --gh-platform-title: #14223a; --gh-platform-copy-muted: #667792; --gh-platform-border: rgba(47, 123, 255, .22); }
html[data-ui-theme="original"][data-theme="dark"] { --gh-platform-title: #f3f7ff; --gh-platform-copy-muted: #a8b9d0; --gh-platform-border: rgba(107, 169, 255, .28); }
html[data-ui-theme="cosmic"][data-theme="light"] { --gh-platform-title: #26234f; --gh-platform-copy-muted: #6e6a91; --gh-platform-border: rgba(96, 78, 208, .24); }
html[data-ui-theme="cosmic"][data-theme="dark"] { --gh-platform-title: #f4f4ff; --gh-platform-copy-muted: #b6bdf1; --gh-platform-border: rgba(140, 162, 255, .3); }
html[data-ui-theme="aurora"][data-theme="light"] { --gh-platform-title: #173f3b; --gh-platform-copy-muted: #577d77; --gh-platform-border: rgba(27, 166, 147, .24); }
html[data-ui-theme="aurora"][data-theme="dark"] { --gh-platform-title: #effff9; --gh-platform-copy-muted: #a7d7ca; --gh-platform-border: rgba(128, 255, 211, .28); }
html[data-ui-theme="particles"][data-theme="light"] { --gh-platform-title: #173749; --gh-platform-copy-muted: #5a7788; --gh-platform-border: rgba(35, 126, 178, .25); }
html[data-ui-theme="particles"][data-theme="dark"] { --gh-platform-title: #eafaff; --gh-platform-copy-muted: #9ec9d3; --gh-platform-border: rgba(0, 214, 255, .28); }
html[data-ui-theme="esports"][data-theme="light"] { --gh-platform-title: #351829; --gh-platform-copy-muted: #806779; --gh-platform-border: rgba(217, 52, 99, .25); }
html[data-ui-theme="esports"][data-theme="dark"] { --gh-platform-title: #fff5fb; --gh-platform-copy-muted: #c3a9bf; --gh-platform-border: rgba(76, 178, 235, .26); }
html[data-ui-theme="arcade"][data-theme="light"] { --gh-platform-title: #3f2350; --gh-platform-copy-muted: #7f658c; --gh-platform-border: rgba(121, 72, 218, .26); }
html[data-ui-theme="arcade"][data-theme="dark"] { --gh-platform-title: #fff2fd; --gh-platform-copy-muted: #d0afd5; --gh-platform-border: rgba(250, 93, 214, .34); }
html[data-ui-theme="gold"][data-theme="light"] { --gh-platform-title: #352d22; --gh-platform-copy-muted: #7d725f; --gh-platform-border: rgba(159, 121, 62, .28); }
html[data-ui-theme="gold"][data-theme="dark"] { --gh-platform-title: #f7f1e6; --gh-platform-copy-muted: #c7baa3; --gh-platform-border: rgba(219, 175, 88, .36); }

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--gh-page); }
body.gh-body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--gh-text);
  background: var(--gh-page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.gh-body::before { content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none; background: var(--ng-shell-card-decor); opacity: .7; }
button, input { font: inherit; }
button { cursor: pointer; }
.gh-shell { min-height: 100dvh; }
.gh-access { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; color: var(--gh-muted); text-align: center; }
.gh-access[hidden], .gh-page[hidden], .gh-player[hidden], .gh-catalog-status[hidden], .gh-load-more[hidden], .gh-player-loading[hidden], #platformView[hidden], #gameView[hidden] { display: none !important; }
.gh-access.is-error a { width: max-content; margin: 8px auto 0; padding: 11px 18px; color: #fff; border-radius: 13px; background: var(--gh-primary); text-decoration: none; }
.gh-access span { max-width: 430px; }
.gh-spinner { width: 32px; height: 32px; margin: auto; border: 3px solid color-mix(in srgb, var(--gh-primary) 18%, transparent); border-top-color: var(--gh-primary); border-radius: 50%; animation: gh-spin .8s linear infinite; }
@keyframes gh-spin { to { transform: rotate(1turn); } }

.gh-header {
  position: relative;
  z-index: 30;
  width: min(100% - 28px, 1040px);
  min-height: 98px;
  margin: max(18px, env(safe-area-inset-top, 0px)) auto 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  grid-template-areas: "copy art";
  align-items: center;
  gap: 12px;
  overflow: hidden;
  color: var(--gh-text);
  border: 1px solid var(--gh-line);
  border-radius: var(--ng-shell-radius, 24px);
  background: var(--ng-shell-card-bg, var(--gh-surface));
  box-shadow: var(--ng-shell-shadow, 0 20px 50px rgba(30, 55, 90, .12));
}
.gh-header::before { content: ""; position: absolute; inset: 0; background: var(--ng-shell-card-decor); opacity: .85; pointer-events: none; }
.gh-header::after { content: ""; position: absolute; right: 20%; bottom: 0; left: 20%; z-index: 2; height: 2px; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--gh-primary), var(--gh-accent), transparent); opacity: .78; }
.gh-hero__copy { position: relative; z-index: 2; grid-area: copy; min-width: 0; }
.gh-hero__copy > span, .gh-section-head > div > span { display: block; color: var(--gh-primary); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.gh-hero__copy h1 { margin: 3px 0 2px; overflow: hidden; font-size: clamp(23px, 3vw, 30px); line-height: 1.1; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.gh-hero__copy p { margin: 0; overflow: hidden; color: var(--gh-muted); font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.gh-hero__art { position: relative; z-index: 1; grid-area: art; justify-self: end; width: 72px; height: 72px; }
.gh-hero__art .ng-ai-icon__image,
.gh-hero__art .ng-ai-icon__fallback { width: 100%; height: 100%; object-fit: contain; }
.gh-status { position: absolute; z-index: 4; top: 9px; right: 9px; display: flex; align-items: center; gap: 7px; color: var(--gh-muted); font-size: 11px; }
.gh-status i { width: 8px; height: 8px; border-radius: 50%; background: #31bd7d; box-shadow: 0 0 0 4px rgba(49, 189, 125, .12); }
.gh-status b { font-weight: 650; }

.gh-content { width: min(100% - 28px, 1040px); margin: 0 auto; padding: 12px 0 42px; }

.gh-main-categories {
  position: relative;
  z-index: 3;
  margin: 14px 0 2px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid var(--gh-line);
  border-radius: var(--ng-shell-radius-small, 17px);
  background: color-mix(in srgb, var(--gh-surface) 86%, transparent);
  box-shadow: 0 10px 28px rgba(20, 42, 76, .06);
}
.gh-main-categories button {
  min-width: 0;
  min-height: 64px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gh-muted);
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  transition: color .18s ease, transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.gh-main-categories button:hover { color: var(--gh-text); background: color-mix(in srgb, var(--gh-primary) 5%, transparent); }
.gh-main-categories button:active { transform: scale(.98); }
.gh-main-categories button:focus-visible { outline: 3px solid color-mix(in srgb, var(--gh-primary) 22%, transparent); outline-offset: 2px; }
.gh-main-categories button.is-active {
  color: #fff;
  border-color: color-mix(in srgb, var(--gh-primary) 58%, #fff);
  background: linear-gradient(135deg, color-mix(in srgb, var(--gh-primary) 88%, #17243b), color-mix(in srgb, var(--gh-accent) 78%, var(--gh-primary)));
  box-shadow: 0 10px 23px color-mix(in srgb, var(--gh-primary) 18%, transparent);
}
.gh-main-categories svg { width: 26px; height: 26px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gh-main-categories span { min-width: 0; display: grid; gap: 2px; text-align: left; }
.gh-main-categories strong { font-size: 14px; }
.gh-main-categories small { overflow: hidden; font-size: 9px; opacity: .72; text-overflow: ellipsis; white-space: nowrap; }
/* 分类切换图标：本地图片 + 昼夜切换。尺寸唯一来源在本文件，类名必须与 moniqi-nav.php 一致。
   注意两点：
   1) 不要用 data-ng-symbol-slot / .ng-theme-symbol，否则 app-shell.js 会把图标换成远程 404 图；
   2) 昼夜不能用 <source media="(prefers-color-scheme: dark)"> —— 站点昼夜由 theme-toggle.js
      按本机时间（7:00–19:00 为白天）写入 html[data-theme]，属站点级；prefers-color-scheme 是系统级，
      两者不联动，媒体查询永远不命中 → 图标会一直停在白天图。这里改按 html[data-theme] 切换。*/
.gh-main-categories .gh-tab-icon { flex: 0 0 24px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.gh-main-categories .gh-tab-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* 选择器必须带 img：否则 .gh-tab-icon__dark（0,2,0）会输给上面的 `.gh-tab-icon img`（0,2,1），
   display:block 盖掉 display:none → 白天两张图同时显示。带上 img 后为 (0,3,1) 才压得住。 */
.gh-main-categories .gh-tab-icon img.gh-tab-icon__dark { display: none; }
html[data-theme="dark"] .gh-main-categories .gh-tab-icon img.gh-tab-icon__light { display: none; }
html[data-theme="dark"] .gh-main-categories .gh-tab-icon img.gh-tab-icon__dark { display: block; }

.gh-section { margin-top: 25px; }
.gh-section-head { margin: 0 2px 13px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.gh-section-head h2 { margin: 4px 0 0; color: var(--gh-text); font-size: 22px; }
.gh-section-head p { margin: 0 0 2px; color: var(--gh-muted); font-size: 12px; }
.gh-platform-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.gh-platform-card {
  position: relative;
  isolation: isolate;
  min-height: 238px;
  aspect-ratio: 2.875 / 1;
  display: block;
  overflow: hidden;
  color: var(--gh-platform-title, var(--gh-text));
  border: 1px solid var(--gh-platform-border, var(--gh-line));
  border-radius: var(--ng-shell-radius, 24px);
  background: var(--gh-platform-surface);
  box-shadow: 0 17px 42px rgba(20, 42, 76, .1);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.gh-theme-cover { position: absolute; z-index: 0; inset: 0; display: block; overflow: hidden; pointer-events: none; }
.gh-theme-cover img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.gh-theme-cover.is-missing { display: none; }
.gh-platform-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gh-primary) 35%, var(--gh-line)); box-shadow: 0 18px 40px color-mix(in srgb, var(--gh-primary) 11%, transparent); }
.gh-platform-card:hover .gh-theme-cover img { transform: scale(1.012); }
.gh-platform-card:active { transform: scale(.985); }
.gh-platform-card:focus-visible, .gh-game-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--gh-primary) 30%, transparent); outline-offset: 3px; }
.gh-platform-copy { position: relative; z-index: 4; width: 60%; height: 100%; padding: clamp(28px, 4.2vw, 52px); display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gh-platform-copy h3 { margin: 0 0 7px; color: var(--gh-platform-title, var(--gh-text)); font-size: clamp(28px, 4.2vw, 42px); line-height: 1.08; letter-spacing: -.035em; }
.gh-platform-copy p { margin: 7px 0 0; color: var(--gh-platform-copy-muted, var(--gh-muted)); font-size: 12px; }
.gh-platform-copy em { width: max-content; min-width: 122px; min-height: 44px; margin-top: clamp(18px, 2.5vw, 29px); padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; color: var(--gh-platform-action-text); border: 2px solid var(--gh-platform-action-border); border-radius: 999px; background: var(--gh-platform-action); box-shadow: 0 9px 19px rgba(13, 24, 42, .2), inset 0 1px rgba(255, 255, 255, .15); font-size: 15px; font-style: normal; font-weight: 780; }

.gh-breadcrumb { margin: 0 0 13px; display: flex; align-items: center; gap: 8px; color: var(--gh-muted); font-size: 12px; }
.gh-breadcrumb a { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; padding: 0 4px; color: var(--gh-primary); text-decoration: none; }
.gh-breadcrumb strong { color: var(--gh-text); }
.gh-search { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-bottom: 14px; }
.gh-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.gh-search input { min-width: 0; height: 46px; padding: 0 15px; color: var(--gh-text); border: 1px solid var(--gh-line); border-radius: var(--ng-shell-radius-small, 14px); outline: none; background: var(--gh-surface); font-size: 16px; }
.gh-search input:focus { border-color: var(--gh-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gh-primary) 12%, transparent); }
.gh-search button, .gh-load-more { min-width: 88px; color: #fff; border: 0; border-radius: var(--ng-shell-radius-small, 14px); background: linear-gradient(135deg, var(--gh-primary), var(--gh-accent)); font-weight: 720; }
.gh-catalog-status { min-height: 150px; padding: 24px; display: grid; place-content: center; justify-items: center; gap: 11px; color: var(--gh-muted); border: 1px dashed var(--gh-line); border-radius: var(--ng-shell-radius-small, 16px); background: color-mix(in srgb, var(--gh-surface) 75%, transparent); text-align: center; }
.gh-catalog-status.is-error { color: var(--gh-danger); }
.gh-catalog-status button { min-height: 38px; padding: 0 14px; color: var(--gh-danger); border: 1px solid color-mix(in srgb, var(--gh-danger) 28%, var(--gh-line)); border-radius: 11px; background: var(--gh-surface); }
.gh-game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.gh-game-grid.gh-game-grid--local { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.gh-game-card {
  min-width: 0;
  display: block;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  border: 1px solid var(--gh-line);
  border-radius: var(--ng-shell-radius-small, 17px);
  background: var(--ng-shell-card-bg, var(--gh-surface));
  box-shadow: 0 9px 28px rgba(20, 42, 76, .06);
}
.gh-game-media { position: relative; aspect-ratio: 1; overflow: hidden; background: color-mix(in srgb, var(--gh-primary) 7%, var(--gh-surface)); }
.gh-game-media::after { content: ""; position: absolute; inset: auto 0 0; height: 26%; background: linear-gradient(transparent, rgba(7, 20, 40, .15)); pointer-events: none; }
.gh-game-media.is-missing {
  background-color: #eef4fb;
  background-image: url('/game-fallback-assets/game-cover-fallback-light-720.webp');
  background-image: image-set(
    url('/game-fallback-assets/game-cover-fallback-light-360.avif') type('image/avif') 1x,
    url('/game-fallback-assets/game-cover-fallback-light-720.avif') type('image/avif') 2x,
    url('/game-fallback-assets/game-cover-fallback-light-360.webp') type('image/webp') 1x,
    url('/game-fallback-assets/game-cover-fallback-light-720.webp') type('image/webp') 2x
  );
  background-position: center;
  background-size: cover;
}
html[data-theme="dark"] .gh-game-media.is-missing {
  background-color: #06101e;
  background-image: url('/game-fallback-assets/game-cover-fallback-dark-720.webp');
  background-image: image-set(
    url('/game-fallback-assets/game-cover-fallback-dark-360.avif') type('image/avif') 1x,
    url('/game-fallback-assets/game-cover-fallback-dark-720.avif') type('image/avif') 2x,
    url('/game-fallback-assets/game-cover-fallback-dark-360.webp') type('image/webp') 1x,
    url('/game-fallback-assets/game-cover-fallback-dark-720.webp') type('image/webp') 2x
  );
}
.gh-game-media.is-missing::before { content: "原封面暂不可用"; position: absolute; z-index: 2; right: 9px; bottom: 9px; padding: 4px 7px; color: #f7fbff; border: 1px solid rgba(255,255,255,.22); border-radius: 7px; background: rgba(5,14,27,.66); box-shadow: 0 5px 14px rgba(0,0,0,.18); font-size: 9px; line-height: 1.25; }
.gh-game-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s ease; }
.gh-game-media img[hidden] { display: none; }
.gh-game-card:hover .gh-game-media img { transform: scale(1.035); }
.gh-game-body { min-width: 0; padding: 10px 9px 11px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.gh-game-body > strong { max-width: 100%; overflow: hidden; color: var(--gh-text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.gh-game-action { position: relative; width: auto; min-width: 76px; height: 30px; min-height: 30px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--gh-primary); border: 1px solid color-mix(in srgb, var(--gh-primary) 28%, var(--gh-line)); border-radius: 999px; background: color-mix(in srgb, var(--gh-primary) 7%, var(--gh-surface)); font: inherit; font-size: 10px; font-weight: 720; line-height: 1; text-decoration: none; white-space: nowrap; }
.gh-game-card:not(.gh-game-card--local) .gh-game-action::before { content: ""; position: absolute; inset: -7px -5px; }
.gh-game-action:disabled { cursor: progress; opacity: .62; }
/* 整卡可点：<article class="gh-game-card"> 内一层铺满的链接 */
.gh-game-card { position: relative; }
.gh-game-card__hit { position: absolute; inset: 0; z-index: 4; border-radius: inherit; }
.gh-game-card__hit:focus-visible { outline: 3px solid color-mix(in srgb, var(--gh-primary) 30%, transparent); outline-offset: 3px; }
.gh-game-card--local {
  position: relative;
  isolation: isolate;
  min-height: 166px;
  aspect-ratio: 2.875 / 1;
  display: grid;
  grid-template-columns: minmax(0, 56%) minmax(0, 44%);
  grid-template-areas: "copy empty";
  color: var(--gh-platform-title, var(--gh-text));
  border-color: var(--gh-platform-border, var(--gh-line));
  background: var(--gh-platform-surface);
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms cubic-bezier(.2,.8,.2,1), border-color 180ms ease;
}
.gh-game-card--local:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--gh-primary) 35%, var(--gh-line)); box-shadow: 0 16px 35px color-mix(in srgb, var(--gh-primary) 12%, transparent); }
.gh-game-card--local:hover .gh-theme-cover img { transform: scale(1.012); }
.gh-game-card--local:active { transform: scale(.985); }
.gh-game-card--local .gh-game-body { position: relative; z-index: 3; grid-area: copy; padding: clamp(17px, 2.5vw, 25px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gh-game-card--local .gh-game-body h3 { max-width: 100%; overflow: hidden; margin: 0; color: var(--gh-platform-title, var(--gh-text)); font-size: clamp(23px, 3.5vw, 38px); line-height: 1.1; letter-spacing: -.035em; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.gh-game-card--local .gh-game-body p { max-width: 100%; overflow: hidden; margin: 12px 0 0; color: var(--gh-platform-copy-muted, var(--gh-muted)); font-size: clamp(11px, 1.25vw, 14px); line-height: 1.45; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.gh-game-card--local .gh-game-action { width: auto; min-width: 112px; margin-top: 17px; padding: 0 18px; color: var(--gh-platform-action-text); border-color: var(--gh-platform-action-border); border-radius: 999px; background: var(--gh-platform-action); box-shadow: 0 7px 16px rgba(13, 24, 42, .17); font-size: 12px; font-style: normal; text-decoration: none; }
.gh-load-more { min-width: 150px; height: 43px; margin: 20px auto 0; display: block; }

body.gh-player-open { overflow: hidden; }
.gh-player { position: fixed; z-index: var(--ng-layer-modal, 220); inset: 0; padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); background: rgba(5, 12, 24, .82); backdrop-filter: blur(8px); }
.gh-player-shell { position: relative; width: min(1180px, 100%); height: 100%; margin: auto; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; background: #0d1728; box-shadow: 0 24px 80px rgba(0, 0, 0, .45); }
/* A single transparent control overlays the game without reserving a toolbar. */
.gh-player-close { position: absolute; z-index: 2; top: max(8px, env(safe-area-inset-top, 0px)); right: max(8px, env(safe-area-inset-right, 0px)); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #fff; cursor: pointer; touch-action: manipulation; -webkit-appearance: none; appearance: none; }
.gh-player-close svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); }
.gh-player-close:hover { opacity: .8; }
.gh-player-close:active { opacity: .6; }
.gh-player-close:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.gh-player-stage { position: relative; min-height: 0; height: 100%; }
.gh-player-stage iframe { width: 100%; height: 100%; display: block; opacity: 0; border: 0; background: #fff; }
.gh-player-stage iframe.is-loaded { opacity: 1; }
.gh-player-loading { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: #c4d0e2; text-align: center; }
.gh-player-loading small { color: #7e8da3; }
.gh-page { animation: gh-enter .22s ease both; }
@keyframes gh-enter { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 900px) { .gh-game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media (max-width: 620px) {
  .gh-content { width: min(100% - 24px, 1040px); padding-top: 12px; }
  .gh-header { width: min(100% - 24px, 1040px); min-height: 76px; margin-top: max(12px, env(safe-area-inset-top, 0px)); padding: 9px 11px; grid-template-columns: minmax(0, 1fr) 52px; grid-template-areas: "copy art"; gap: 10px; border-radius: 19px; }
  .gh-status b { display: none; }
  .gh-hero__copy > span { font-size: 8px; letter-spacing: .13em; }
  .gh-hero__copy h1 { margin: 2px 0 0; font-size: 21px; }
  .gh-hero__copy p { display: none; }
  .gh-hero__art { width: 52px; height: 52px; }
  .gh-section { margin-top: 20px; }
  .gh-main-categories button { min-height: 58px; padding-inline: 8px; gap: 7px; }
  .gh-main-categories svg { width: 22px; height: 22px; }
  .gh-section-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .gh-platform-grid { gap: 12px; }
  .gh-platform-card { min-height: 0; aspect-ratio: 2.875 / 1; }
  .gh-platform-copy { width: 64%; padding: 12px 14px; }
  .gh-platform-copy h3 { margin-bottom: 2px; font-size: clamp(18px, 5.4vw, 23px); }
  .gh-platform-copy p { max-width: 100%; overflow: hidden; margin-top: 3px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .gh-platform-copy em { min-width: 88px; min-height: 30px; margin-top: 8px; padding: 0 12px; border-width: 1px; font-size: 11px; }
  .gh-game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .gh-game-grid.gh-game-grid--local { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .gh-game-card { border-radius: 14px; }
  .gh-game-body { padding: 9px; }
  .gh-game-card--local { min-height: 0; aspect-ratio: 2.875 / 1; border-radius: 16px; }
  .gh-game-card--local .gh-game-body { padding: 11px 14px; }
  .gh-game-card--local .gh-game-body h3 { font-size: clamp(19px, 5.6vw, 24px); }
  .gh-game-card--local .gh-game-body p { margin-top: 5px; font-size: 9px; }
  .gh-game-card--local .gh-game-action { min-width: 92px; min-height: 32px; margin-top: 8px; padding-inline: 13px; }
  .gh-player { padding: 0; backdrop-filter: none; }
  .gh-player-shell { border: 0; border-radius: 0; }
}

@media (max-width: 430px) {
  .gh-game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gh-game-body > strong { font-size: 12px; }
  html.ng-skin-active .gh-game-card:not(.gh-game-card--local) .gh-game-action { width: 100%; min-width: 0; height: 32px; min-height: 32px; padding-inline: 3px; font-size: 11px; }
}

@media (max-width: 350px) {
  .gh-content { width: min(100% - 18px, 1040px); }
  .gh-header { width: min(100% - 18px, 1040px); min-height: 72px; padding: 8px 9px; grid-template-columns: minmax(0, 1fr) 48px; grid-template-areas: "copy art"; gap: 7px; }
  .gh-hero__copy h1 { font-size: 20px; }
  .gh-hero__art { width: 48px; height: 48px; }
  .gh-search { grid-template-columns: 1fr 72px; }
  .gh-search button { min-width: 0; }
  .gh-platform-card { min-height: 0; }
  .gh-platform-copy { padding-inline: 12px 6px; }
  .gh-main-categories button { padding-inline: 5px; }
  .gh-main-categories small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gh-spinner, .gh-page { animation: none; }
  .gh-platform-card, .gh-game-card--local, .gh-game-media img, .gh-theme-cover img, .gh-main-categories button { transition: none; }
}

/* Unified trial-hall system. The seven skins provide palette and imagery only;
   geometry and interaction remain identical in every theme and colour mode. */
.gh-body {
  overflow-x: clip;
}

html[data-ui-theme] body.gh-body::before {
  animation: none !important;
}

.gh-body .ng-mobile-theme-atmosphere {
  display: none !important;
}

.gh-header {
  min-height: 100px;
  padding: 16px 18px;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 14px;
  border-radius: 22px;
  box-shadow: 0 14px 36px color-mix(in srgb, var(--gh-text) 9%, transparent);
}

.gh-header::before,
.gh-header::after { content: none; }

.gh-hero__copy > span,
.gh-section-head > div > span {
  font-size: 11px;
  font-weight: 700;
}

.gh-hero__copy h1 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
}

.gh-hero__copy p { font-size: 13px; }
.gh-hero__art { width: 54px; height: 54px; }
.gh-status { top: auto; right: 18px; bottom: 13px; }
.gh-status b { font-weight: 600; }

.gh-content { padding-bottom: 32px; }

.gh-main-categories {
  position: sticky;
  z-index: var(--ng-layer-sticky, 30);
  top: max(8px, env(safe-area-inset-top, 0px));
  min-height: 58px;
  margin-top: 14px;
  padding: 5px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--gh-surface) 94%, transparent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--gh-text) 7%, transparent);
  backdrop-filter: blur(16px) saturate(115%);
}

.gh-main-categories button {
  min-height: 46px;
  padding: 7px 10px;
  gap: 8px;
  border-radius: 10px;
  transition: color 160ms ease, transform 120ms ease, background-color 160ms ease, border-color 160ms ease;
}

.gh-main-categories button.is-active {
  color: var(--gh-primary);
  border-color: transparent;
  background: color-mix(in srgb, var(--gh-primary) 11%, var(--gh-surface));
  box-shadow: none;
}

.gh-main-categories strong { font-size: 14px; font-weight: 700; }
.gh-main-categories small { font-size: 11px; }
.gh-main-categories svg { width: 24px; height: 24px; }

.gh-section { margin-top: 24px; }
.gh-featured-platforms { margin-bottom: 24px; }
.gh-section-head { margin-bottom: 12px; }
.gh-section-head h2 { font-size: 20px; font-weight: 700; }
.gh-section-head p { font-size: 12px; }

.gh-platform-grid,
.gh-platform-grid.gh-platform-grid--featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gh-platform-card {
  min-height: 0;
  aspect-ratio: 2.875 / 1;
  border-radius: 20px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--gh-text) 7%, transparent);
  transition: transform 140ms var(--ng-shell-ease, ease), border-color 180ms ease, box-shadow 180ms ease;
}

.gh-platform-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--gh-text) 9%, transparent);
}

.gh-platform-copy {
  width: 56%;
  padding: clamp(8px, 1.2vw, 18px);
}

.gh-platform-copy h3 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 700;
}

.gh-platform-copy p { margin-top: 5px; font-size: 13px; line-height: 1.3; }
.gh-platform-copy em {
  min-width: 98px;
  min-height: 40px;
  flex-shrink: 0;
  margin-top: 9px;
  padding: 0 18px;
  border-width: 1px;
  border-radius: 11px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
}

.gh-breadcrumb[hidden],
.gh-search[hidden],
.gh-platform-grid[hidden],
.gh-game-grid[hidden],
.gh-featured-platforms[hidden] { display: none !important; }

.gh-search input,
html[data-ui-theme] body.gh-body .gh-search input {
  height: 44px;
  border-radius: 12px !important;
  font-size: 15px;
}

.gh-search button,
.gh-load-more {
  border-radius: 12px;
  font-weight: 700;
}

.gh-catalog-status {
  min-height: 150px;
  border-radius: 16px;
}

.gh-catalog-status.is-loading {
  min-height: 0;
  padding: 0;
  display: block;
  border: 0;
  background: transparent;
}

.gh-catalog-status.is-loading > strong {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.gh-skeleton-grid {
  width: 100%;
  display: grid;
  gap: 13px;
}

.gh-skeleton-grid--platform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gh-skeleton-grid--game { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.gh-skeleton-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--gh-line);
  border-radius: 16px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--gh-surface) 88%, transparent) 15%, color-mix(in srgb, var(--gh-primary) 10%, var(--gh-surface)) 35%, color-mix(in srgb, var(--gh-surface) 88%, transparent) 55%);
  background-size: 260% 100%;
  animation: gh-skeleton 1.15s ease-in-out infinite;
}

.gh-skeleton-grid--platform .gh-skeleton-card { aspect-ratio: 2.875 / 1; }
.gh-skeleton-grid--game .gh-skeleton-card { aspect-ratio: .82 / 1; }
@keyframes gh-skeleton { to { background-position: -160% 0; } }

.gh-game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gh-game-card { border-radius: 16px; box-shadow: 0 8px 22px color-mix(in srgb, var(--gh-text) 6%, transparent); }
.gh-game-body > strong { font-size: 13px; font-weight: 600; }
.gh-game-action { border-radius: 10px; font-weight: 700; }
.gh-game-card--local { border-radius: 20px; box-shadow: 0 10px 28px color-mix(in srgb, var(--gh-text) 7%, transparent); }
.gh-game-card--local .gh-game-body h3 { font-weight: 700; }
.gh-game-card--local .gh-game-action { border-radius: 11px; box-shadow: none; }

.gh-toast {
  position: fixed;
  z-index: var(--ng-layer-toast, 240);
  right: 50%;
  bottom: calc(var(--ng-shell-nav-height, 68px) + env(safe-area-inset-bottom, 0px) + 18px);
  max-width: calc(100% - 32px);
  padding: 11px 15px;
  color: #fff;
  border-radius: 12px;
  background: rgba(14, 24, 40, .94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
  transform: translateX(50%);
  font-size: 13px;
  text-align: center;
}

body.gh-player-open .ng-bottom-nav,
body.gh-player-open .theme-mode-toggle,
body.gh-player-open .ng-action-hub-toggle,
body.gh-player-open .ng-scroll-top,
body.gh-player-open .activity-hall-toggle,
body.gh-player-open .service-float-btn { display: none !important; }

.gh-player-stage iframe { transition: opacity 160ms ease; }

@media (max-width: 720px) {
  .gh-header {
    min-height: 88px;
    padding: 13px 14px;
    grid-template-columns: minmax(0, 1fr) 42px;
    border-radius: 20px;
  }
  .gh-hero__copy > span { font-size: 10px; }
  .gh-hero__copy h1 { font-size: 24px; }
  .gh-hero__copy p { display: none; }
  .gh-hero__art { width: 42px; height: 42px; }
  .gh-status { display: none; }
  .gh-content { width: min(100% - 24px, 1040px); }
  .gh-main-categories span small { display: none; }
  .gh-platform-grid,
  .gh-platform-grid.gh-platform-grid--featured { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .gh-platform-copy { width: 56%; padding: 6px 8px; }
  .gh-platform-copy h3 { font-size: clamp(22px, 6.15vw, 26px); }
  .gh-platform-copy p { margin-top: 4px; font-size: 13px; }
  .gh-platform-copy em { min-width: 94px; min-height: 38px; margin-top: 6px; }
  /* Platform game catalogs stay four across; local trial banners stay one. */
  .gh-game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .gh-game-grid.gh-game-grid--local { grid-template-columns: minmax(0, 1fr); }
  .gh-game-card:not(.gh-game-card--local) .gh-game-body { padding: 8px 4px; gap: 6px; }
  .gh-game-card:not(.gh-game-card--local) .gh-game-body > strong { font-size: 12px; }
  .gh-game-card:not(.gh-game-card--local) .gh-game-action { width: 100%; min-width: 0; height: 32px; min-height: 32px; padding-inline: 3px; font-size: 11px; }
  .gh-skeleton-grid--platform { grid-template-columns: minmax(0, 1fr); }
  .gh-skeleton-grid--game { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
}

@media (max-width: 349px) {
  .gh-content,
  .gh-header { width: min(100% - 18px, 1040px); }
  .gh-main-categories button { min-height: 44px; padding-inline: 5px; gap: 5px; }
  .gh-main-categories svg { width: 21px; height: 21px; }
  .gh-main-categories strong { font-size: 13px; }
}

@media (orientation: landscape) and (max-height: 620px) {
  .gh-player { padding: 0; }
  .gh-player-shell { width: 100%; border: 0; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .gh-skeleton-card { animation: none; }
  .gh-player-stage iframe { transition: none; }
}
