:is(.games-hall-page, .arcade-admin-page) {
  --game-ink: #1d2946;
  --game-muted: #465977;
  --game-line: #b9c5df;
  color: var(--game-ink);
  color-scheme: light;
}
:is(.games-hall-page, .arcade-admin-page) .merge-nav { border-bottom-color: #c6cfdf; }
:is(.games-hall-page, .arcade-admin-page) .merge-nav :is(.wordmark, .merge-directory) { color: #213466; }
:is(.games-hall-page, .arcade-admin-page) .merge-nav-button { border-color: #bac8e9; color: #233875; background: #f7f9ff; }
.games-hall-page .wallet-button { border-color: #d5b467; color: #554122; background: #fff1ce; }
:is(.games-hall-page, .arcade-admin-page) .merge-dialog { border-color: #b4c0db; background: #fffefa; color: #1a2948; }
:is(.games-hall-page, .arcade-admin-page) .merge-dialog::backdrop { background: #15203c96; backdrop-filter: blur(4px); }
:is(.games-hall-page, .arcade-admin-page) .merge-button { color: #293f79; background: #eef3ff; border-color: #b8c7eb; }
@media (hover: hover) {
  :is(.games-hall-page, .arcade-admin-page) .merge-button:enabled:hover { color: #192e6c; background: #dfe8ff; }
  :is(.games-hall-page, .arcade-admin-page) .merge-primary:enabled:hover { color: #fff; background: #1c3a9d; }
}
:is(.games-hall-page, .arcade-admin-page) .merge-primary { color: #fff; background: #2749b7; border-color: #1e367e; }
:is(.games-hall-page, .arcade-admin-page) :focus-visible { outline-color: #3157c5; }
:is(.games-hall-page, .arcade-admin-page) :is(button, a, summary) { -webkit-tap-highlight-color: #2749b721; }
:is(.games-hall-page, .arcade-admin-page) .game-account-form input { color: #1d2946; border-color: #a7b8dd; background: #f8faff; }
:is(.games-hall-page, .arcade-admin-page) .merge-dialog :is(.game-form-message, .wallet-status) { color: #815012; }
.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 { overflow-x: auto; margin-top: .45rem; }
.admin-metric-scroll table { width: 100%; border-collapse: collapse; color: #2e4271; text-align: start; font-size: .83rem; }
.admin-metric-scroll :is(th,td) { padding: .52rem .48rem; text-align: start; white-space: nowrap; border-bottom: 1px solid #e2e8f7; }
.admin-metric-scroll thead { background: #eff3ff; }
.admin-game-breakdown { margin-top: .5rem; color: #324c84; font-size: .87rem; }
.admin-game-breakdown summary { min-height: 44px; padding-block: .6rem; cursor: pointer; }
.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-list-head { display: flex; justify-content: space-between; align-items: center; gap: .55rem; margin-bottom: .59rem; }
.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-mission-copy { min-width: 0; display: grid; gap: .26rem; }
.hall-mission-copy strong { font-size: clamp(1.06rem, 3vw, 1.6rem); }
.hall-mission-copy small { color: #edf1fa; font-size: .82rem; }
.hall-mission-link { padding: .58rem .75rem; border-radius: .65rem; background: #ffe0a4; color: #432a0c; font-weight: 720; }
.hall-mission:hover .hall-mission-link { background: #ffebbf; }
.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; }
.hall-mission-workshop { border-color: #477c77; background: linear-gradient(122deg, #214b49, #1a3244); }
.hall-mission-gomoku { border-color: #6d6696; background: linear-gradient(122deg, #413653, #202d4a); }
.hall-featured .hall-mission-copy strong { font-size: clamp(.98rem, 2.5vw, 1.33rem); }
.hall-featured .hall-mission-link { font-size: .8rem; white-space: nowrap; }
.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; }
  .hall-mission-link { justify-self: start; font-size: .76rem; }
}
@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; }
