/*
 * 柒柒崽的小窝 · 小游戏大厅
 * 页面层只负责大厅信息层级；单款游戏的样式仍隔离在各自目录。
 */

.games-page,
.games-page * {
  box-sizing: border-box;
}

.games-page {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 40px;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  background:
    radial-gradient(900px 460px at 8% -12%, var(--glow1), transparent 68%),
    radial-gradient(760px 420px at 94% 2%, var(--glow2), transparent 70%),
    var(--bg);
}

.games-page .page-head {
  align-items: center;
  margin-bottom: 18px;
}

.games-page .page-head h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
}

.games-page .page-head .sub {
  font-size: 13px;
  color: var(--muted);
}
.games-page .page-head .tag {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.games-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 28px;
  align-items: stretch;
  overflow: hidden;
  min-height: 220px;
  padding: 30px 38px;
  border: 1px solid var(--border-hi);
  border-radius: 24px;
  background:
    linear-gradient(116deg, rgba(34, 211, 238, .12), transparent 45%),
    linear-gradient(295deg, rgba(167, 139, 250, .14), transparent 58%),
    var(--panel);
}

.games-hero::before,
.games-hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, .18);
}

.games-hero::before {
  width: 430px;
  height: 430px;
  right: -126px;
  top: -204px;
}

.games-hero::after {
  width: 290px;
  height: 290px;
  right: 34px;
  bottom: -188px;
  border-color: rgba(167, 139, 250, .20);
}

.games-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.games-kicker,
.hub-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.games-kicker {
  margin-bottom: 16px;
}

.games-hero h2 {
  max-width: 650px;
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.08;
}

.games-hero h2 em {
  color: var(--accent2);
  font-style: normal;
}

.games-hero-copy p {
  max-width: 600px;
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.games-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.games-hero-actions a,
.games-hero-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.games-hero-actions a {
  border: 1px solid transparent;
  color: #04121a;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  font-weight: 700;
}

.games-hero-actions button {
  border: 1px solid var(--border-hi);
  color: var(--text);
  background: var(--panel-hi);
}

.games-hero-actions a:hover,
.games-hero-actions button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(34, 211, 238, .14);
}

.games-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 18px;
}

.games-hero-metrics div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.games-hero-metrics b {
  color: var(--text);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.games-hero-metrics span {
  color: var(--faint);
  font-size: 11px;
}

.games-hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 200px;
  place-items: center;
}

.games-stage-orbit {
  position: absolute;
  width: min(360px, 100%);
  aspect-ratio: 1;
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: 50%;
  transform: rotate(-15deg) scaleY(.66);
  box-shadow: 0 0 70px rgba(34, 211, 238, .13), inset 0 0 40px rgba(167, 139, 250, .08);
}

.games-stage-orbit::before,
.games-stage-orbit::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.games-stage-orbit::before {
  width: 7px;
  height: 7px;
  top: 13%;
  left: 18%;
}

.games-stage-orbit::after {
  width: 5px;
  height: 5px;
  right: 15%;
  bottom: 18%;
  background: var(--accent2);
  box-shadow: 0 0 16px var(--accent2);
}

.games-stage-core {
  position: relative;
  z-index: 2;
  display: flex;
  width: 166px;
  height: 166px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border-hi);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(34, 211, 238, .18), rgba(167, 139, 250, .18)), var(--panel);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .12);
  transform: rotate(-4deg);
}

.games-stage-core .stage-icon {
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .25));
}

.games-stage-core strong {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 4px;
}

.games-stage-core small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.5px;
}

.games-stage-token {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--border-hi);
  border-radius: 15px;
  color: var(--text);
  background: rgba(9, 15, 28, .72);
  box-shadow: 0 14px 26px rgba(0, 0, 0, .22);
  font-size: 22px;
}

.games-stage-token.token-one { top: 15%; left: 8%; }
.games-stage-token.token-two { top: 11%; right: 5%; color: var(--warm); font-size: 12px; font-weight: 800; }
.games-stage-token.token-three { right: 10%; bottom: 11%; }

.games-stage-note {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 250px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(7, 11, 20, .38);
  font-size: 11px;
}

.games-stage-note b {
  color: var(--text);
  font-size: 12px;
}

.hub-section {
  margin-top: 36px;
}

.hub-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.hub-section-head h2 {
  margin: 7px 0 5px;
  font-size: 24px;
  letter-spacing: .5px;
}

.hub-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hub-summary {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.hub-summary div {
  min-width: 82px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  background: var(--panel);
}

.hub-summary b {
  display: block;
  color: var(--text);
  font-size: 20px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hub-summary span {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 10px;
  white-space: nowrap;
}

.hub-section-head .hub-kicker {
  color: var(--accent2);
}

.hub-card {
  --hub-a: var(--accent);
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  animation: hub-card-in .36s ease forwards;
  animation-delay: var(--hub-delay, 0ms);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--hub-a) 72%, var(--border-hi));
  background: var(--panel-hi);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .18), 0 0 0 1px color-mix(in srgb, var(--hub-a) 14%, transparent);
}

.hub-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hub-card--native {
  background: linear-gradient(155deg, color-mix(in srgb, var(--hub-a) 13%, transparent), transparent 62%), var(--panel);
}

.hub-card--native:hover {
  box-shadow: 0 18px 34px color-mix(in srgb, var(--hub-a) 16%, transparent);
}

.hub-card--wide {
  grid-column: span 6;
}

.hub-card--wide .hub-card-art {
  min-height: 148px;
}

.hub-card--wide .hub-icon {
  font-size: 58px;
}

.hub-card--placeholder {
  opacity: .60;
  cursor: not-allowed;
}

.hub-card--placeholder:hover {
  transform: none;
  border-color: var(--border);
  background: var(--panel);
  box-shadow: none;
}

@keyframes hub-card-in {
  to { opacity: 1; transform: translateY(0); }
}

.hub-card-art {
  position: relative;
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 24%, color-mix(in srgb, var(--hub-a) 32%, transparent), transparent 48%),
    linear-gradient(135deg, color-mix(in srgb, var(--hub-a) 18%, transparent), rgba(167, 139, 250, .12));
}

.hub-card-art::before,
.hub-card-art::after {
  content: '';
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--hub-a) 34%, transparent);
  border-radius: 50%;
  transform: rotate(-16deg) scaleX(1.55);
}

.hub-card-art::before {
  width: 124px;
  height: 78px;
}

.hub-card-art::after {
  width: 210px;
  height: 124px;
  opacity: .45;
}

.hub-icon {
  position: relative;
  z-index: 1;
  font-size: 46px;
  line-height: 1;
  filter: drop-shadow(0 9px 12px rgba(0, 0, 0, .22));
}

.hub-card--native .hub-card-art {
  min-height: 158px;
}

.hub-card--native .hub-icon {
  font-size: 70px;
}

.hub-badge,
.hub-art-index {
  position: absolute;
  z-index: 2;
  color: rgba(255, 255, 255, .88);
  font-size: 10px;
  letter-spacing: .7px;
}

.hub-badge {
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(3, 6, 12, .32);
}

.hub-art-index {
  right: 12px;
  bottom: 11px;
  color: rgba(255, 255, 255, .66);
  font-variant-numeric: tabular-nums;
}

.hub-card-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 15px 16px 14px;
}

.hub-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hub-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.hub-open {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  opacity: .85;
}

.hub-card p {
  flex: 1;
  margin: 8px 0 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.hub-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--faint);
  font-size: 10px;
}

.hub-card-foot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-card-foot b {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

.hub-local .hub-card-art { --hub-a: #22d3ee; }
.hub-puzzle .hub-card-art { --hub-a: #8b7cf6; }
.hub-action .hub-card-art { --hub-a: #f472b6; }
.hub-arcade .hub-card-art { --hub-a: #fbbf24; }
.hub-board .hub-card-art { --hub-a: #22d3ee; }
.hub-memory .hub-card-art { --hub-a: #fb7185; }
.hub-typing .hub-card-art { --hub-a: #34d399; }
.hub-casual .hub-card-art { --hub-a: #f97316; }

.hub-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 76%, transparent);
}

.hub-filters {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
}

.hub-filter {
  flex-shrink: 0;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-hi);
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.hub-filter span {
  margin-left: 3px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.hub-filter:hover,
.hub-filter.active {
  border-color: rgba(34, 211, 238, .55);
  color: var(--text);
  background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(167, 139, 250, .16));
}

.hub-filter.active span {
  color: var(--accent);
}

.hub-filter[data-category="coming"] {
  color: var(--warm);
}

.hub-filter[data-category="coming"].active {
  border-color: rgba(251, 191, 36, .55);
  background: rgba(251, 191, 36, .10);
}

.hub-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--faint);
  background: var(--panel-hi);
}

.hub-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .08);
}

.hub-search span {
  font-size: 17px;
  line-height: 1;
}

.hub-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 12px;
}

.hub-search input::placeholder {
  color: var(--faint);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.hub-grid .hub-card {
  grid-column: span 3;
  min-height: 252px;
}

.hub-grid .hub-card--wide {
  grid-column: span 6;
}

.hub-grid .hub-card--native {
  display: none;
}

.hub-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 64px 16px;
  color: var(--faint);
}

.hub-empty span { font-size: 34px; }
.hub-empty strong { color: var(--muted); font-size: 15px; }
.hub-empty small { font-size: 12px; }

.hub-credit {
  margin: 18px 2px 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.6;
}

.hub-credit a {
  color: var(--muted);
}

.hub-credit a:hover {
  color: var(--accent);
}

/* 游戏弹窗：本站游戏和精选游戏共用一个本地容器。 */
.gs-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 6, 12, .74);
  backdrop-filter: blur(7px);
}

.gs-modal[hidden] { display: none; }

.gs-panel {
  display: flex;
  width: 100%;
  max-width: min(820px, 94vw);
  max-height: 92vh;
  flex-direction: column;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  background: #0d1422;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .46);
}

html[data-theme="light"] .gs-panel,
html:not([data-theme="dark"]) .gs-panel {
  background: #ffffff;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .gs-panel { background: #0d1422; }
}

.gs-modal.gs-imported-mode .gs-panel {
  width: min(1180px, 96vw);
  max-width: none;
  height: min(88vh, 820px);
  max-height: 88vh;
  padding: 0;
}

.gs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 10px;
  margin-bottom: 12px;
}

.gs-modal.gs-imported-mode .gs-head {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.gs-title {
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-close {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.gs-close:hover {
  border-color: var(--border-hi);
  background: var(--panel-hi);
}

.gs-body {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
}

.gs-modal.gs-imported-mode .gs-body {
  height: 100%;
  flex: 1;
  overflow: hidden;
}

.gs-modal.gs-imported-mode .gs-board-col {
  display: none;
}

.gs-game-col {
  min-width: 0;
  flex: 1;
}

.gs-imported-frame {
  display: block;
  width: 100%;
  height: min(72vh, 700px);
  min-height: 420px;
  border: 0;
  border-radius: 14px;
  background: #0b0f17;
}

.gs-modal.gs-imported-mode .gs-game-col,
.gs-modal.gs-imported-mode .gs-imported-frame {
  height: 100%;
  min-height: 0;
  border-radius: 0;
}

.gs-board-col {
  display: flex;
  min-width: 0;
  flex: 0 0 230px;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.gs-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
}

.glb-tag {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-hi);
  font-size: 10px;
  font-weight: 400;
}

.glb-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 13px;
}

.glb-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 5px 4px;
  border-bottom: 1px dashed var(--border);
}

.glb-list li .glb-rank { width: 24px; color: var(--faint); }
.glb-list li .glb-nm { min-width: 0; flex: 1; overflow: hidden; padding: 0 6px; text-overflow: ellipsis; white-space: nowrap; }
.glb-list li .glb-nm small { color: var(--faint); font-weight: 400; }
.glb-list li .glb-sc { color: var(--accent); font-weight: 600; }
.glb-list li.glb-top .glb-sc { color: var(--warm); }
.glb-list li.glb-empty { justify-content: center; border: 0; color: var(--faint); }

.glb-name {
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  font-size: 13px;
}

.glb-name:focus { border-color: var(--accent); }

@media (min-width: 760px) {
  .gs-body { flex-direction: row; align-items: flex-start; }
  .gs-modal.gs-imported-mode .gs-body { flex-direction: row; align-items: stretch; }
}

@media (max-width: 1020px) {
  .hub-grid .hub-card { grid-column: span 4; }
  .hub-grid .hub-card--wide { grid-column: span 8; }
}

@media (max-width: 820px) {
  .games-hero {
    grid-template-columns: 1fr;
    padding: 34px 30px;
  }

  .games-hero-stage {
    min-height: 200px;
  }

  .hub-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hub-summary {
    width: 100%;
  }

  .hub-summary div {
    flex: 1;
  }

  .hub-toolbar {
    grid-template-columns: 1fr;
  }

  .hub-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hub-grid .hub-card,
  .hub-grid .hub-card--wide {
    grid-column: span 6;
  }
}

@media (max-width: 560px) {
  .games-page {
    padding: 0 14px 30px;
  }

  .games-page .page-head {
    align-items: flex-start;
    gap: 7px;
  }

  .games-page .page-head .tag {
    flex-basis: 100%;
    margin-left: 0;
  }

  .games-hero {
    min-height: 0;
    padding: 28px 20px 22px;
    border-radius: 20px;
  }

  .games-hero h2 {
    font-size: 36px;
  }

  .games-hero-copy p {
    margin: 14px 0 20px;
    font-size: 13px;
  }

  .games-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .games-hero-actions a,
  .games-hero-actions button {
    width: 100%;
    padding-inline: 10px;
    font-size: 12px;
  }

  .games-hero-metrics {
    gap: 14px;
    margin-top: 24px;
  }

  .games-hero-metrics b { font-size: 19px; }

  .games-hero-stage {
    min-height: 190px;
  }

  .games-stage-core {
    width: 132px;
    height: 132px;
    border-radius: 28px;
  }

  .games-stage-core .stage-icon { font-size: 50px; }
  .games-stage-token { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
  .games-stage-note { right: auto; left: 50%; bottom: -4px; max-width: 220px; transform: translateX(-50%); }

  .hub-section { margin-top: 42px; }
  .hub-section-head h2 { font-size: 21px; }
  .hub-grid { gap: 10px; }
  .hub-grid .hub-card,
  .hub-grid .hub-card--wide { grid-column: span 12; }
  .hub-grid .hub-card { min-height: 214px; }
  .hub-card-art,
  .hub-card--wide .hub-card-art { min-height: 102px; }
  .hub-icon,
  .hub-card--wide .hub-icon { font-size: 39px; }
  .hub-card-body { padding: 12px 13px 12px; }
  .hub-card h3 { font-size: 15px; }
  .hub-card p { font-size: 11px; }

  .gs-modal { padding: 8px; }
  .gs-panel {
    max-height: 98vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 10px;
    border-radius: 16px;
  }
  .gs-modal.gs-imported-mode .gs-panel { width: 100%; height: 98vh; max-height: 98vh; border-radius: 16px; }
  .gs-modal.gs-imported-mode .gs-head { padding: 10px 12px; }
  .gs-title { font-size: 15px; }
  .gs-close { padding: 6px 12px; font-size: 12px; }
  .gs-body { flex-direction: column !important; }
  .gs-modal.gs-imported-mode .gs-body { flex-direction: column !important; }
  .gs-game-col { width: 100%; flex: 0 0 auto; }
  .gs-imported-frame { min-height: 0; }
  .gs-board-col {
    width: 100%;
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-card { animation: none; opacity: 1; transform: none; transition: none; }
  .hub-card:hover,
  .games-hero-actions a:hover,
  .games-hero-actions button:hover { transform: none; }
}


/* ===== evo254: 统一 tabbar+chip 风格（对齐金融/文章/艺术馆）===== */

/* tabbar 在游戏页全宽、容纳搜索框 */
#game-tabbar {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* chip+hub-filter 按钮走统一样式，覆盖旧 hub-filter */
#game-tabbar .chip.hub-filter {
  font-size: 14px !important;
  color: var(--muted) !important;
  cursor: pointer;
  padding: 9px 22px !important;
  border-radius: 999px !important;
  border: 1px solid var(--border) !important;
  background: var(--panel) !important;
  transition: all .18s !important;
  user-select: none;
  white-space: nowrap;
}
#game-tabbar .chip.hub-filter:hover {
  color: var(--text) !important;
  border-color: var(--border-hi) !important;
}
#game-tabbar .chip.hub-filter.active {
  color: #fff !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, rgba(34,211,238,0.25), rgba(167,139,250,0.25)) !important;
  border-color: rgba(34,211,238,0.5) !important;
}
/* count badge inside chip */
#game-tabbar .chip.hub-filter span {
  margin-left: 4px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
#game-tabbar .chip.hub-filter.active span {
  color: rgba(255,255,255,0.75);
}

/* 搜索框融入 tabbar 行内 */
#game-tabbar .hub-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;  /* 推到右边 */
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--faint);
  background: var(--panel-hi);
  width: auto;
  min-width: 180px;
}
#game-tabbar .hub-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34,211,238,.08);
}
#game-tabbar .hub-search span {
  font-size: 16px;
  line-height: 1;
}
#game-tabbar .hub-search input {
  width: 100%;
  min-width: 120px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 13px;
}
#game-tabbar .hub-search input::placeholder {
  color: var(--faint);
}

/* 制作中标签保持暖色 */
#game-tabbar .chip.hub-filter[data-category=coming] {
  color: var(--warm) !important;
}
#game-tabbar .chip.hub-filter[data-category=coming].active {
  border-color: rgba(251,191,36,.55) !important;
  background: rgba(251,191,36,.10) !important;
  color: #fff !important;
}

@media (max-width: 700px) {
  #game-tabbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  #game-tabbar .chip.hub-filter {
    flex-shrink: 0;
  }
  #game-tabbar .hub-search {
    margin-left: 8px;
    flex-shrink: 0;
  }
}


/* evo254-fix: 消除 page-head 与 tabbar 之间多余间距（对齐其他页面 18px） */
#game-library { margin-top: 0 !important; }
