:is(.games-hall-page, .arcade-admin-page) {
  --game-ink: #0f172a;
  --game-muted: #525e75;
  --game-line: rgba(15, 23, 42, .09);
  color: var(--game-ink);
  color-scheme: light;
}
:is(.games-hall-page, .arcade-admin-page) .merge-nav { border-bottom-color: rgba(15, 23, 42, .075); }
:is(.games-hall-page, .arcade-admin-page) .merge-nav :is(.wordmark, .merge-directory) { color: #0f172a; }
:is(.games-hall-page, .arcade-admin-page) .merge-nav-button { border-color: rgba(15, 23, 42, .11); color: #1e293b; background: rgba(255, 255, 255, .92); }
.games-hall-page .wallet-button { border-color: rgba(217, 119, 6, .28); color: #78350f; background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); }
:is(.games-hall-page, .arcade-admin-page) .merge-dialog {
  border-color: rgba(15, 23, 42, .09);
  border-radius: 1.38rem;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 24px 60px -18px rgba(15, 23, 42, .26);
}
:is(.games-hall-page, .arcade-admin-page) .merge-dialog::backdrop { background: rgba(11, 15, 25, .56); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
:is(.games-hall-page, .arcade-admin-page) .merge-button {
  border-radius: 9999px;
  color: #1e293b;
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, .08);
  font-weight: 620;
}
@media (hover: hover) {
  :is(.games-hall-page, .arcade-admin-page) .merge-button:enabled:hover { color: #0f172a; background: #e2e8f0; }
  :is(.games-hall-page, .arcade-admin-page) .merge-primary:enabled:hover { color: #fff; background: #2350dc; border-color: transparent; }
}
:is(.games-hall-page, .arcade-admin-page) .merge-primary {
  border-radius: 9999px;
  color: #ffffff;
  background: #111827;
  border-color: transparent;
  font-weight: 660;
}
:is(.games-hall-page, .arcade-admin-page) :focus-visible { outline-color: #2350dc; }
:is(.games-hall-page, .arcade-admin-page) :is(button, a, summary) { -webkit-tap-highlight-color: #2350dc21; }
:is(.games-hall-page, .arcade-admin-page) .game-account-form input { color: #0f172a; border-color: rgba(15, 23, 42, .14); background: #f8faff; border-radius: .82rem; }
:is(.games-hall-page, .arcade-admin-page) .merge-dialog :is(.game-form-message, .wallet-status) { color: #92400e; }
.games-hall-page .wallet-balance { border-color: #ddbd78; color: #583b21; background: #fff0cf; }
.games-hall-page .wallet-balance strong { color: #794620; }
.games-hall-page .wallet-section { border-color: #d1d9ec; }
.games-hall-page .wallet-section h3,
.games-hall-page .wallet-theme strong { color: #263b6f; }
.games-hall-page .wallet-section h3 span,
.games-hall-page .wallet-theme [data-wallet-price] { color: #54617c; }
.games-hall-page .wallet-games li { border-color: #c0cce9; color: #384d80; background: #eef2fb; }
.games-hall-page .wallet-games .is-earned { border-color: #c2a15a; color: #58351c; background: #ffedcc; }

.hub-dialog { width: min(30rem, calc(100% - 1.4rem)); max-height: min(42rem, 90dvh); padding: clamp(.9rem, 4vw, 1.42rem); }
.hub-dialog .game-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .45rem; margin-bottom: .75rem; }
.hub-dialog .game-dialog-header h2 { font-size: clamp(1.23rem, 5vw, 1.55rem); }
.hub-caption { color: #526382; font-size: .87rem; line-height: 1.53; }
.hub-dialog .hub-caption { margin-block: .48rem .88rem; }
.hub-checkin-offer { display: flex; align-items: center; justify-content: center; gap: .44rem; padding: .85rem .45rem; border: 1px solid #ecd192; border-radius: .79rem; background: linear-gradient(151deg, #fff6df, #ffedbd); color: #7d531a; }
.hub-checkin-offer .wallet-coin { --coin-size: 2.5rem; }
.hub-checkin-offer strong { color: #55300a; font: 840 clamp(1.82rem, 7vw, 2.69rem)/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.hub-checkin-streak { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .5rem; font-size: .9rem; }
.hub-checkin-streak span { color: #725022; }
.hub-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .22rem; list-style: none; padding: 0; margin: .47rem 0 .81rem; }
.hub-week li { display: grid; justify-items: center; gap: .15rem; min-width: 0; color: #4a5879; }
.hub-week li span { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border: 1px solid #ccd4e5; border-radius: .39rem; background: #f2f5fc; color: #8092b2; font-weight: 860; transition: transform var(--xh-dur-base, 260ms) var(--xh-ease-pop, ease), background-color var(--xh-dur-fast, 180ms) var(--xh-ease-spring, ease), border-color var(--xh-dur-fast, 180ms) var(--xh-ease-spring, ease); }
.hub-week li small { font-size: .68rem; white-space: nowrap; }
.hub-week .is-today > span { border-color: #758bbf; background: #e7efff; }
.hub-week .is-stamped > span { border-color: #d0a556; background: #fbdc92; color: #633f16; }
.hub-week .is-stamped.is-today > span { outline: 2px solid #ab7332; outline-offset: -3px; }
.hub-dialog .hub-feedback, .hub-feedback { margin: .45rem 0 .65rem; color: #526382; font-size: .87rem; overflow-wrap: anywhere; }
.hub-feedback:empty { display: none; }
.hub-primary { width: 100%; min-height: 46px; margin-top: .25rem; }
.hub-primary:disabled { opacity: 1; background: #eef1f6; border-color: #d1d9e6; color: #56617a; }
.hub-inbox-dialog { width: min(34rem, calc(100% - 1.4rem)); }
.hub-inbox-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .45rem; margin-bottom: .42rem; color: #536480; font-size: .85rem; }
.hub-mail, .admin-history { display: grid; gap: .52rem; margin: 0; list-style: none; padding: 0; }
.hub-letter { border: 1px solid #c7d3ed; border-radius: .67rem; background: #f8faff; }
.hub-letter.is-unread { border-color: #93a8e8; background: #ecf2ff; }
.hub-letter summary { position: relative; display: grid; gap: .14rem; min-height: 46px; padding: .65rem 2rem .65rem .75rem; color: #1b3168; cursor: pointer; list-style: none; overflow-wrap: anywhere; }
.hub-letter summary::-webkit-details-marker { display: none; }
.hub-letter summary::after { content: "›"; position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); color: #4161a3; font-size: 1.3rem; transition: transform var(--xh-dur-fast, 180ms) var(--xh-ease-spring, ease); }
.hub-letter[open] summary::after { transform: translateY(-50%) rotate(90deg); }
.hub-letter summary small { color: #4b6289; font-size: .76rem; }
.hub-letter.is-unread summary small::before { content: ""; display: inline-block; width: .42rem; aspect-ratio: 1; margin-right: .39rem; border-radius: 50%; background: #ab3359; vertical-align: .06rem; }
.hub-mail-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.hub-letter .hub-mail-body { margin: 0 .75rem .7rem; padding-top: .6rem; border-top: 1px solid #ced8ed; font-size: .92rem; }
.hub-mail-action { display: inline-flex; align-items: center; min-height: 44px; margin: 0 .75rem .68rem; }
.hub-more { margin-top: .62rem; }
.hall-stats-dialog { width: min(38rem, calc(100% - 1.25rem)); max-height: min(46rem, 90dvh); overflow: auto; }
.hall-stats-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .44rem; margin: 0 0 .85rem;
}
.hall-stats-kpis div {
  padding: .55rem .45rem; border: 1px solid #cad5ed; border-radius: .68rem; background: #f4f7ff; text-align: center;
}
.hall-stats-kpis dt { color: #516282; font-size: .74rem; }
.hall-stats-kpis dd { margin: .16rem 0 0; color: #1d3988; font-size: clamp(1rem, 3.2vw, 1.32rem); font-weight: 840; font-variant-numeric: tabular-nums; }
.hall-stats-section { margin-top: .85rem; padding-top: .75rem; border-top: 1px solid #d5ddf0; }
.hall-stats-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.hall-stats-subhead h3 { margin: 0; color: #1d3166; font-size: .98rem; }
.hall-stats-subhead span { color: #546687; font-size: .78rem; font-variant-numeric: tabular-nums; }
.hall-title-card {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem;
  margin: .35rem 0 .68rem; padding: .48rem .68rem; border: 1px solid #d7c08e; border-radius: .72rem;
  background: linear-gradient(135deg, #fff9ea, #f7ecce);
}
.hall-title-pill { font-size: .9rem; font-weight: 820; color: #4d2f09; }
.hall-title-card[data-tier="grand-hammer"] { border-color: #d6a244; background: linear-gradient(135deg, #fff4d1, #fde0a2); }
.hall-title-card[data-tier="card-master"] { border-color: #82bfa3; background: linear-gradient(135deg, #ebfbf2, #d4f3e2); }
.hall-title-card[data-tier="card-master"] .hall-title-pill { color: #154e38; }
.hall-title-card[data-tier="king-crown"] { border-color: #d8a63c; background: linear-gradient(135deg, #272017, #594318); }
.hall-title-card[data-tier="king-crown"] .hall-title-pill { color: #ffe799; }
.hall-title-card[data-tier="radiant-aura"] { border-color: #50d9c8; background: linear-gradient(120deg, #161d47, #482f92 55%, #165e6d); }
.hall-title-card[data-tier="radiant-aura"] .hall-title-pill { color: #fff8c8; }
.hall-shop-jump { min-height: 34px; padding: .2rem .66rem; font-size: .78rem; border-color: #c5a15d; background: #fff; color: #4f310c; box-shadow: none; }
.hall-shop-jump:hover { background: #ffefc9; border-color: #b5883b; }
.hall-badges-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .44rem; list-style: none; margin: 0; padding: 0; }
.hall-badge-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .46rem;
  padding: .48rem .56rem; border: 1px solid #d1daee; border-radius: .66rem; background: #f5f7fc; color: #4f5f7c;
}
.hall-badge-card[data-unlocked="true"] { border-color: #d7b261; background: linear-gradient(155deg, #fff9e6, #ffefc6); color: #3c260a; }
.hall-badge-icon { font-size: 1.32rem; line-height: 1; filter: grayscale(1); opacity: .55; }
.hall-badge-card[data-unlocked="true"] .hall-badge-icon { filter: none; opacity: 1; }
.hall-badge-card strong { display: block; font-size: .84rem; color: #243764; }
.hall-badge-card[data-unlocked="true"] strong { color: #573409; }
.hall-badge-card small { display: block; font-size: .72rem; line-height: 1.25; }
.hall-badge-card b { font-size: .7rem; font-weight: 780; white-space: nowrap; padding: .12rem .36rem; border-radius: 999px; background: #e6ecf8; color: #455983; font-variant-numeric: tabular-nums; }
.hall-badge-card[data-unlocked="true"] b { background: #e8b853; color: #442704; }
.hall-game-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .38rem; list-style: none; margin: 0; padding: 0; }
.hall-game-stats a {
  display: flex; align-items: center; justify-content: space-between; gap: .4rem;
  padding: .46rem .58rem; border: 1px solid #ccd6ee; border-radius: .56rem; background: #f8faff; color: #203770; text-decoration: none; font-size: .8rem;
}
.hall-game-stats a:hover { background: #e9f0ff; border-color: #9cb3e6; }
.hall-game-stats strong { font-size: .82rem; white-space: nowrap; }
.hall-game-stats span { color: #526487; font-size: .74rem; text-align: end; font-variant-numeric: tabular-nums; }
@media (max-width: 34rem) {
  .hall-stats-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-badges-grid, .hall-game-stats { grid-template-columns: minmax(0, 1fr); }
}

.arcade-admin-page { background: radial-gradient(ellipse at 76% 0, #dfe8fc, transparent 35rem), #eef1f7; }
.arcade-admin { width: min(68rem, calc(100% - 3rem)); margin-inline: auto; padding: clamp(1.25rem, 4vw, 3rem) 0 2.6rem; }
.arcade-admin > h1 { margin-bottom: 1rem; color: #1a2e59; font-size: clamp(2.02rem, 5.8vw, 3.6rem); line-height: 1.11; letter-spacing: -.051em; }
.admin-gate { padding: 1.05rem; border: 1px solid #bdcce9; border-radius: .85rem; background: #fbfcff; }
.admin-gate button { margin-top: .6rem; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .63rem; margin: 0; }
.admin-stats div, .admin-workspace > section { min-width: 0; padding: clamp(.7rem, 2.4vw, 1.26rem); border: 1px solid #c0cce6; border-radius: .9rem; background: #fff; box-shadow: 0 .35rem 1.23rem #253d6d0d; }
.admin-stats dt { color: #526481; font-size: .82rem; }
.admin-stats dd { margin: .13rem 0 0; color: #223f96; font-weight: 840; font-size: clamp(1.52rem, 5.3vw, 2.38rem); font-variant-numeric: tabular-nums; }
.admin-date { margin: .48rem 0 1rem; color: #4e6283; font-size: .83rem; }
.admin-activity { padding: clamp(.7rem, 2.4vw, 1.15rem); margin-bottom: .8rem; border: 1px solid #c0cce6; border-radius: .9rem; background: #fff; }
.admin-activity h2 { color: #233a72; font-size: 1.24rem; }
.admin-activity .hub-caption { margin: .25rem 0 .6rem; }

.admin-metric-scroll :is(th,td) { padding: .52rem .48rem; text-align: start; white-space: nowrap; border-bottom: 1px solid #e2e8f7; }

.admin-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); gap: .8rem; align-items: start; }
.admin-workspace h2 { color: #233a72; font-size: 1.29rem; }
.admin-workspace .hub-caption { margin: .29rem 0 .6rem; }
.admin-compose, .admin-compose label { display: grid; gap: .34rem; }
.admin-compose { gap: .62rem; }
.admin-compose label { color: #344a78; font-size: .87rem; font-weight: 720; }
.admin-compose :is(input, textarea, select) { width: 100%; min-width: 0; min-height: 44px; padding: .55rem .64rem; border: 1px solid #abbcde; border-radius: .52rem; color: #152747; background: #f7faff; font: 440 1rem/1.4 var(--sans); }
.admin-compose textarea { resize: vertical; }
.admin-compose .merge-button { justify-self: start; }

.admin-history li { padding: .6rem .68rem; border: 1px solid #c8d4ee; border-radius: .57rem; background: #f2f6ff; color: #233a72; font-size: .92rem; overflow-wrap: anywhere; }
.admin-history li div { margin-top: .16rem; color: #4b6388; font-size: .77rem; }

@media (max-width: 50rem) {
  .arcade-admin { width: min(34rem, calc(100% - 1.5rem)); }
  .admin-workspace { grid-template-columns: 1fr; }
}
@media (max-width: 24rem) {
  .admin-stats { gap: .3rem; }
  .admin-stats div { padding: .49rem; }
  .admin-stats dt { font-size: .74rem; }
}
.hall-mission {
  display: grid; grid-template-columns: min(22vw, 11rem) minmax(0, 1fr) auto; align-items: center; gap: .9rem;
  margin: 1rem 0 1.35rem; padding: .65rem; border-radius: 1rem; border: 1px solid #486287;
  background: linear-gradient(115deg, #223b60, #192a46); color: #fff2d4; text-decoration: none;
}
.hall-mission img { width: 100%; height: auto; border-radius: .58rem; }

.hall-featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 1.4rem; }
.hall-featured .hall-mission { margin: 0; grid-template-columns: min(24%, 7.4rem) minmax(0, 1fr) auto; gap: .62rem; }

.admin-player-workspace { margin-bottom: 1rem; }
.admin-player-search { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.admin-player-search label { flex: 1 1 13rem; }
.admin-player-search input { width: 100%; padding: .6rem .68rem; min-height: 42px; border: 1px solid #9daac0; border-radius: .55rem; font: inherit; }
.admin-player-list li { display: grid; gap: .25rem; }
.admin-player-list small { overflow-wrap: anywhere; }
.admin-player-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .24rem; }
.admin-player-dialog { width: min(calc(100% - 1.2rem), 42rem); }
.admin-player-dialog td { overflow-wrap: anywhere; }
.admin-player-dialog h3 { margin-top: .95rem; }
@media (max-width: 540px) {
  .hall-mission { grid-template-columns: min(29vw, 8rem) 1fr; gap: .6rem; }
  .hall-mission img { grid-row: 1 / 3; }

}
@media (max-width: 900px) {
  .hall-featured { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .hall-featured .hall-mission img { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-letter summary::after, .hub-week li span { transition: none !important; animation: none !important; }
}
.game-reduced-motion :is(.hub-letter summary::after, .hub-week li span) { transition: none !important; animation: none !important; }

/* === 大厅弹窗深色夜览模式（1:1 官网 #0b0f19 / #141c2e 曜石体系） === */
html[data-game-theme="dark"] .games-hall-page .merge-dialog {
  background: #141c2e;
  border-color: rgba(255, 255, 255, .1);
  color: #f8fafc;
  box-shadow: 0 28px 68px rgba(0, 0, 0, .65);
}
html[data-game-theme="dark"] .games-hall-page .merge-button {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .12);
  color: #e2e8f0;
}
html[data-game-theme="dark"] .games-hall-page .merge-primary {
  background: #f8fafc;
  border-color: transparent;
  color: #0b0f19;
}
@media (hover: hover) {
  html[data-game-theme="dark"] .games-hall-page .merge-button:enabled:hover { background: rgba(255, 255, 255, .13); color: #ffffff; }
  html[data-game-theme="dark"] .games-hall-page .merge-primary:enabled:hover { background: #93c5fd; color: #071024; }
}
html[data-game-theme="dark"] .games-hall-page .game-account-form input { background: #0f1523; border-color: rgba(255, 255, 255, .12); color: #f8fafc; }
html[data-game-theme="dark"] .games-hall-page .merge-dialog :is(.game-form-message, .wallet-status) { color: #ffda88; }
html[data-game-theme="dark"] .hub-caption,
html[data-game-theme="dark"] .hub-feedback,
html[data-game-theme="dark"] .hub-inbox-toolbar { color: #a7b8d8; }
html[data-game-theme="dark"] .hub-checkin-offer { background: linear-gradient(151deg, #332714, #241b11); border-color: #8f6c2f; color: #ffd988; }
html[data-game-theme="dark"] .hub-checkin-offer strong { color: #ffe6a3; }
html[data-game-theme="dark"] .hub-checkin-streak span { color: #f6cf7e; }
html[data-game-theme="dark"] .hub-week li { color: #a8b9d8; }
html[data-game-theme="dark"] .hub-week li span { background: #1a2540; border-color: #314570; color: #8ea3cb; }
html[data-game-theme="dark"] .hub-week .is-today > span { border-color: #6790f0; background: #20315c; color: #d8e5ff; }
html[data-game-theme="dark"] .hub-week .is-stamped > span { border-color: #d6a44e; background: #4a3514; color: #ffe49c; }
html[data-game-theme="dark"] .hub-primary:disabled { background: #1d263d; border-color: #2f3e61; color: #8c9ec2; }
html[data-game-theme="dark"] .hub-letter { background: #19243f; border-color: #2d4069; }
html[data-game-theme="dark"] .hub-letter.is-unread { background: #1e2d52; border-color: #4b6cb8; }
html[data-game-theme="dark"] .hub-letter summary { color: #eef3ff; }
html[data-game-theme="dark"] .hub-letter summary small { color: #9cb1d6; }
html[data-game-theme="dark"] .hub-letter .hub-mail-body { border-top-color: #2c3f68; color: #d5e1f7; }
html[data-game-theme="dark"] .hall-title-card {
  background: linear-gradient(135deg, #2b2419, #1a2440);
  border-color: #8c703b;
}
html[data-game-theme="dark"] .hall-title-pill { color: #ffe7ad; }
html[data-game-theme="dark"] .hall-shop-jump { background: #3b63d6; border-color: #577feb; color: #fff; }
html[data-game-theme="dark"] .hall-stats-kpis div { background: #1a2540; border-color: #2f426c; }
html[data-game-theme="dark"] .hall-stats-kpis dt { color: #9eb1d4; }
html[data-game-theme="dark"] .hall-stats-kpis dd { color: #9ec0ff; }
html[data-game-theme="dark"] .hall-stats-section { border-top-color: #2a3b61; }
html[data-game-theme="dark"] .hall-stats-subhead h3 { color: #eef3ff; }
html[data-game-theme="dark"] .hall-stats-subhead span { color: #9eb0d3; }
html[data-game-theme="dark"] .hall-badge-card { background: #19243f; border-color: #2e4068; color: #a7b8d8; }
html[data-game-theme="dark"] .hall-badge-card strong { color: #e2ecff; }
html[data-game-theme="dark"] .hall-badge-card b { background: #243356; color: #c4d5f5; }
html[data-game-theme="dark"] .hall-badge-card[data-unlocked="true"] { background: linear-gradient(155deg, #352914, #261d10); border-color: #9e7a36; color: #ffe7b0; }
html[data-game-theme="dark"] .hall-badge-card[data-unlocked="true"] strong { color: #ffeaad; }
html[data-game-theme="dark"] .hall-game-stats a { background: #19243f; border-color: #2e4068; color: #e2ecff; }
html[data-game-theme="dark"] .hall-game-stats span { color: #9db0d4; }
