:root {
  --space-dark: #fef6ff;
  --space-blue: #ffffff;
  --star-white: #4c1d95;
  --nebula-pink: #f472b6;
  --comet-cyan: #38bdf8;
  --g20-accent-text: #7e22ce;
  --g20-font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sun-gold: #fbbf24;
  --planet-purple: #a78bfa;
  --ink-muted: #7c3aed;
  --line-soft: #e9d5ff;
  --shadow-card: 0 8px 24px rgba(167, 139, 250, 0.2);
  --shadow-lift: 0 16px 40px rgba(244, 114, 182, 0.25);
  --g20-radius: 24px;
  --g20-radius-sm: 16px;
  --g20-header-h: 68px;
  --g20-border: 2px solid #e9d5ff;
  --transition-fast: 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
  --g20-star-full: #fbbf24;
  --g20-star-glow: rgba(251, 191, 36, 0.35);
  --g20-star-empty: #c4b5fd;
  --g20-star-track: #fef9c3;
  --g20-star-border: transparent;
}

*, *::before, *::after { box-sizing: border-box; }

html { width: 100%; overflow-x: hidden; scroll-behavior: smooth; }

body,
.g20-body {
  background: var(--space-dark);
  color: var(--star-white);
  font-family: var(--g20-font);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.55;
  padding-top: var(--g20-header-h);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* 锚定广告：贴导航下沿；若已有首屏 AD_UNIT 位则不再抬高 body，避免空白条 */
body.g20-body:has(.anchorAdContent):not(:has(.g20-ad-slot--top)) {
  padding-top: calc(var(--g20-header-h) + 94px);
}

body.g20-body:has(.anchorAdContent):not(:has(.g20-ad-slot--top)) .anchorAdContent {
  position: fixed !important;
  top: var(--g20-header-h) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  z-index: 9999 !important;
}

body.g20-body:has(.g20-ad-slot--top) .anchorAdContent {
  display: none !important;
}

/* 详情全屏 Banner：顶到视口上沿，导航叠在头图上，消除 body 顶内边距造成的米色间隙 */
body.g20-body:has(.g20-detail-banner) {
  padding-top: 0 !important;
}

body.g20-body:has(.g20-detail-banner) .anchorAdContent {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

h1, h2, h3, h4 {
  font-family: var(--g20-font);
  font-weight: 800;
  margin-top: 0;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* 页面内容区宽度（勿用 container：与广告模板类名冲突） */
.g20-page-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.brief-comment-game {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* 游戏列表标题：单行超出省略（见 TEMPLATE_SPEC §5.1.2 / §7.1） */
.article-list .game-title,
.article-list .card-title,
.g20-feature-lead .game-title,
.g20-feature-strip .game-title,
.special-card .game-title,
.special-card-content .game-title,
.game-card .card-title,
.carousel-card .game-title,
.g20-film-card .game-title,
.g20-soft-card .game-title,
.g20-col-card .game-title,
.g20-mosaic-card .game-title,
.g20-poster-card .game-title,
.g20-scroll-body .game-title,
.g20-scroll-body h3 {
  display: block;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.special-card-content,
.carousel-card-content,
.card-content,
.g20-feature-lead-copy,
.g20-feature-strip-copy,
.g20-scroll-body {
  min-width: 0;
}

.article-list .special-card-content,
.article-list .carousel-card-content {
  padding: 12px 14px 16px;
}

.module-description {
  margin: 0 0 1.25rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 58ch;
}

/* ── Ads & legal ── */
.g20-ad-slot {
  padding-top: 16px;
  padding-bottom: 16px;
  overflow: hidden;
}

.g20-ad-slot--top {
  padding-top: 8px;
  padding-bottom: 8px;
}

.g20-ad-slot--top.g20-page-wrap {
  padding-left: 16px;
  padding-right: 16px;
}

.g20-ad-slot iframe,
.g20-ad-slot ins,
.g20-ad-slot > div {
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.g20-legal-ad {
  padding-top: 20px;
}

.g20-page-wrap > * + .legal-container { margin-top: 24px; }

.g20-page-wrap > .legal-container:first-child {
  margin-top: 20px;
}

.legal-container {
  padding: 28px 24px;
  margin-bottom: 48px;
  background: var(--space-blue);
  border: var(--g20-border);
  border-radius: var(--g20-radius);
  box-shadow: var(--shadow-card);
  line-height: 1.7;
}

.legal-container h1,
.legal-container h2 { color: var(--nebula-pink); }

.legal-container h1 {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.legal-container h2 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

/* ── Header（fixed 贴顶，避免 sticky + 锚定广告顶出空白） ── */
.g20-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10001;
  background: var(--space-blue);
  border-bottom: var(--g20-border);
  margin: 0;
}

.g20-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: auto;
  min-height: var(--g20-header-h);
  max-height: none;
}

.g20-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  max-width: none;
}

.g20-logo .logo-text {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  line-height: 1.2;
}

.logo-text {
  font-family: var(--g20-font);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--star-white);
}

.logo-img { height: 40px; width: auto; display: block; }

.g20-nav-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  min-width: 0;
  flex-wrap: nowrap;
}

.g20-nav-bar .nav-link,
.g20-nav-bar .nav-more-toggle {
  white-space: nowrap;
  flex: 0 0 auto;
}

.g20-nav-bar .nav-item--primary.is-overflow-hidden {
  display: none;
}

.g20-nav-bar .nav-more {
  position: relative;
  flex: 0 0 auto;
}

.g20-nav-bar .nav-more-toggle {
  cursor: pointer;
  border: none;
  font: inherit;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.g20-nav-bar .nav-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 8px;
  background: #fff;
  border: 3px solid #1a1625;
  border-radius: 12px;
  box-shadow: 6px 6px 0 #1a1625;
  z-index: 1200;
}

.g20-nav-bar .nav-more.active .nav-more-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.g20-nav-bar .nav-more-menu .nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.g20-nav-bar .nav-more-menu .nav-link:hover {
  background: #fef08a;
}

.g20-nav-bar .nav-link {
  padding: 8px 10px;
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: var(--g20-radius-sm);
  border: 2px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.g20-nav-bar .nav-link:hover {
  background: #fef08a;
  border-color: var(--line-soft);
}

.g20-nav-bar .nav-link.active {
  background: var(--star-white);
  color: #fff;
  border-color: var(--line-soft);
}

/* 覆盖 navigation.css 的下划线，避免顶栏错位 */
.g20-nav-bar .nav-link::after,
.g20-nav-bar .nav-more-toggle::after {
  display: none !important;
}

.g20-header-cta {
  flex-shrink: 0;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--nebula-pink);
  color: #fff;
  border: var(--g20-border);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--line-soft);
  transition: transform var(--transition-fast);
}

.g20-header-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--line-soft);
}

/* Mobile nav */
.g20-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--space-blue);
  border-top: var(--g20-border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0));
  justify-content: space-around;
  gap: 4px;
}

.g20-mobile-bar .mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--g20-radius-sm);
  border: 2px solid transparent;
}

.g20-mobile-bar .mobile-nav-item.active {
  background: #fef08a;
  border-color: var(--line-soft);
}

.g20-mob-icon { font-size: 1.1rem; line-height: 1; }

@media (max-width: 768px) {
  :root {
  --space-dark: #fef6ff;
  --space-blue: #ffffff;
  --star-white: #4c1d95;
  --nebula-pink: #f472b6;
  --comet-cyan: #38bdf8;
  --g20-accent-text: #7e22ce;
  --g20-font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sun-gold: #fbbf24;
  --planet-purple: #a78bfa;
  --ink-muted: #7c3aed;
  --line-soft: #e9d5ff;
  --shadow-card: 0 8px 24px rgba(167, 139, 250, 0.2);
  --shadow-lift: 0 16px 40px rgba(244, 114, 182, 0.25);
  --g20-radius: 24px;
  --g20-radius-sm: 16px;
  --g20-header-h: 68px;
  --g20-mobile-nav-h: 72px;
  --g20-border: 2px solid #e9d5ff;
  --transition-fast: 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
  --g20-star-full: #fbbf24;
  --g20-star-glow: rgba(251, 191, 36, 0.35);
  --g20-star-empty: #c4b5fd;
  --g20-star-track: #fef9c3;
  --g20-star-border: transparent;
}

  .g20-nav-bar,
  .g20-header-cta {
    display: none !important;
  }

  .g20-mobile-bar {
    display: flex;
  }

  /* 底部留白给 main/footer，避免 body 在 footer 后再垫一块露出页面底色 */
  body.g20-body,
  body:has(.g20-mobile-bar) {
    padding-bottom: 0;
  }

  .g20-body main {
    padding-bottom: calc(var(--g20-mobile-nav-h) + env(safe-area-inset-bottom, 0));
  }

  .g20-footer {
    margin-bottom: 0;
    padding-bottom: calc(var(--g20-mobile-nav-h) + env(safe-area-inset-bottom, 0));
  }

  .g20-site-header {
    height: auto;
  }

  .g20-header-inner {
    height: auto;
    min-height: var(--g20-header-h);
    max-height: none;
    padding: 6px 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .g20-logo {
    flex: 0 1 auto;
    max-width: 100%;
    justify-content: center;
  }

  .g20-logo .logo-img {
    height: 32px;
    width: auto;
    flex-shrink: 0;
  }

  .g20-logo .logo-text {
    font-size: 0.95rem;
    line-height: 1.15;
    display: block;
    text-align: center;
  }

  .g20-ad-slot,
  .g20-ad-slot--top {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .g20-ad-slot--top.g20-page-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .g20-ad-slot--top + .g20-spotlight,
  .g20-ad-slot--top + .daily-special,
  .g20-ad-slot--top + .g20-pick-section {
    padding-top: 12px;
  }

  .g20-spotlight {
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .g20-pick-section {
    padding-top: 12px;
  }

  .g20-ad-slot--top + .g20-spotlight + .daily-special,
  .g20-ad-slot--top + .g20-spotlight + .g20-pick-section {
    padding-top: 16px;
  }
}

@media (min-width: 769px) {
  .g20-logo {
    flex: 0 1 auto;
    max-width: min(40vw, 280px);
  }
}

/* ── Hero split ── */
.g20-hero-split {
  padding: 28px 0 40px;
  background: linear-gradient(135deg, #fef08a 0%, #fff8ef 45%, #fde68a 100%);
  border-bottom: var(--g20-border);
}

.g20-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.g20-hero-eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--g20-accent-text);
}

.g20-hero-split .hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.g20-hero-split .hero-subtitle {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-bottom: 20px;
  max-width: 42ch;
}

.g20-hero-search {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin-bottom: 14px;
}

.g20-hero-search .form-input {
  flex: 1;
  padding: 12px 16px;
  border: var(--g20-border);
  border-radius: var(--g20-radius-sm);
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}

.g20-hero-search .form-input:focus {
  box-shadow: 0 0 0 3px var(--sun-gold);
}

.hero-cta,
.g20-btn-play {
  padding: 12px 22px;
  font-family: var(--g20-font);
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--star-white);
  color: #fff;
  border: var(--g20-border);
  border-radius: var(--g20-radius-sm);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.hero-cta:hover,
.g20-btn-play:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lift);
}

.g20-hero-browse {
  display: inline-block;
  font-weight: 700;
  color: var(--g20-accent-text);
  border-bottom: 2px solid currentColor;
}

.g20-hero-aside {
  background: #fff;
  border: var(--g20-border);
  border-radius: var(--g20-radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.g20-aside-label {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.g20-quick-cats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.g20-quick-cat {
  display: block;
  padding: 12px 14px;
  font-weight: 600;
  background: var(--space-dark);
  border: 2px solid var(--line-soft);
  border-radius: var(--g20-radius-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.g20-quick-cat:hover {
  background: #fef08a;
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .g20-hero-grid { grid-template-columns: 1fr; }
  .g20-hero-aside { order: -1; }
  .g20-quick-cats {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .g20-quick-cat { flex: 1 1 calc(50% - 4px); }
}

/* ── Section headers ── */
.g20-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.g20-section-head h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0;
}

.module-link-more {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--nebula-pink);
  white-space: nowrap;
}

.g20-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  font-size: 0.65rem;
  font-family: var(--g20-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--sun-gold);
  border: 2px solid var(--line-soft);
  border-radius: 4px;
  vertical-align: middle;
}

/* ── Featured：左主卡横图 + 右双横条（非 g16 三列叠图） ── */
.g20-pick-section,
.daily-special:not(.g20-spotlight),
.g20-cat-wall {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.g20-spotlight {
  padding: 32px 0 44px;
}

.g20-feature-stage {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 34%);
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: clamp(300px, 34vw, 380px);
  max-height: 400px;
}

.g20-feature-lead {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
  background: #fff;
  border: var(--g20-border);
  border-radius: var(--g20-radius);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.g20-feature-lead:hover {
  transform: translate(-3px, -3px);
}

.g20-feature-lead-media {
  flex: 0 0 58%;
  min-width: 0;
  border-right: var(--g20-border);
  background: #e7e5e4;
  overflow: hidden;
  aspect-ratio: 7 / 4;
}

.g20-feature-lead-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}

.g20-feature-lead-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
  background: #fef08a;
  min-width: 0;
}

.g20-feature-kicker {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--g20-accent-text);
}

.g20-feature-lead .game-title {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.2;
}

.g20-feature-strip {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
  background: #fff;
  border: var(--g20-border);
  border-radius: var(--g20-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.g20-feature-strip:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lift);
}

.g20-feature-strip-thumb {
  flex: 0 0 42%;
  max-width: 140px;
  border-right: var(--g20-border);
  background: #e7e5e4;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.g20-feature-strip-thumb img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}

.g20-feature-strip-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px;
  min-width: 0;
}

.g20-feature-strip:nth-of-type(2) .g20-feature-strip-copy { background: #ecfdf5; }
.g20-feature-strip:nth-of-type(3) .g20-feature-strip-copy { background: #fce7f3; }

.g20-feature-strip .game-title {
  margin: 0 0 6px;
  font-size: 0.88rem;
  line-height: 1.25;
}

.g20-feature-lead .game-star,
.g20-feature-strip .game-star {
  margin: 0;
}

@media (max-width: 768px) {
  .g20-feature-stage {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    gap: 12px;
  }

  .g20-feature-lead {
    flex-direction: column;
    min-height: 0;
  }

  .g20-feature-lead-media {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 10;
    border-right: none;
    border-bottom: var(--g20-border);
  }

  .g20-feature-lead-copy {
    padding: 14px 16px;
  }

  .g20-feature-strip-thumb {
    flex: 0 0 36%;
    max-width: 120px;
  }
}

/* ── Poster grid (module 1) ── */
.g20-pick-section {
  padding: 16px 0 40px;
  background: #fff;
  border-top: var(--g20-border);
  border-bottom: var(--g20-border);
}

.g20-poster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.g20-poster-card {
  display: flex;
  flex-direction: column;
  background: var(--space-dark);
  border: var(--g20-border);
  border-radius: var(--g20-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.g20-poster-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lift);
}

.g20-poster-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: var(--g20-border);
  background: #e7e5e4;
}

.g20-poster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.g20-poster-card .special-card-content {
  padding: 12px 14px 16px;
  min-width: 0;
}

.g20-poster-card .game-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.25;
}

/* ── Mosaic grid (even modules) ── */
.g20-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.g20-mosaic-card {
  display: flex;
  flex-direction: column;
  border: var(--g20-border);
  border-radius: var(--g20-radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.g20-mosaic-card:hover { transform: rotate(-0.5deg) translate(-2px, -2px); }

.g20-mosaic-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: var(--g20-border);
}

.g20-mosaic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g20-mosaic-card .special-card-content {
  padding: 12px 14px 16px;
}

.g20-mosaic-card:nth-child(3n+2) {
  margin-top: 12px;
}

/* ── Filmstrip carousel (odd modules) ── */
.g20-filmstrip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: stretch;
  padding: 20px;
  background: var(--star-white);
  border: var(--g20-border);
  border-radius: var(--g20-radius);
  box-shadow: var(--shadow-card);
}

.g20-filmstrip .carousel-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0;
}

.g20-filmstrip .carousel-container::-webkit-scrollbar { display: none; }

.g20-film-card {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff8ef;
  border: var(--g20-border);
  border-radius: var(--g20-radius-sm);
  overflow: hidden;
}

.g20-film-thumb {
  aspect-ratio: 16 / 10;
  border-bottom: var(--g20-border);
  overflow: hidden;
}

.g20-film-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g20-film-card .carousel-card-content {
  padding: 12px;
}

.g20-film-btn {
  align-self: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  background: var(--sun-gold);
  border: var(--g20-border);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--line-soft);
}

.g20-film-btn:hover { background: #fef08a; }

/* ── Category wall ── */
.g20-cat-wall {
  padding: 48px 0 56px;
}

.g20-cat-wall-title {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.g20-cat-wall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.g20-cat-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  background: #fff;
  border: var(--g20-border);
  border-radius: var(--g20-radius);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.g20-cat-block:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lift);
  background: #fef08a;
}

.g20-cat-block:nth-child(odd) { background: #ecfdf5; }
.g20-cat-block:nth-child(3n) { background: #fce7f3; }

.g20-cat-block-arrow {
  font-size: 1.2rem;
  opacity: 0.5;
}

/* ── Tags chips ── */
.g20-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}

.g20-tag-chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  background: #ecfdf5;
  border: 2px solid var(--line-soft);
  border-radius: 4px;
  color: var(--g20-accent-text);
}

/* ── star_html ── */
.game-star,
.game-star .star-rating,
.star-rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 3px 8px;
  font-size: 0.8rem;
  line-height: 1;
  background: var(--g20-star-track);
  border: 2px solid var(--g20-star-border);
  border-radius: 6px;
}

.game-star .star-icon,
.game-star .star-full,
.game-star .star-empty,
.game-star .star-half,
.game-star .fa,
.game-star .fas,
.game-star .far,
.game-star i,
.star-rating i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-style: normal;
  font-size: 0.95em;
}

.game-star .star-icon::before,
.game-star .star-full::before,
.game-star .fa-star::before,
.star-rating .star-full::before {
  content: "★";
  color: var(--g20-star-full);
}

.game-star .star-half::before,
.star-rating .star-half::before {
  content: "★";
  color: var(--g20-star-full);
  opacity: 0.5;
}

.game-star .star-empty::before,
.game-star .fa-star-o::before,
.game-star .far.fa-star::before,
.star-rating .star-empty::before {
  content: "☆";
  color: var(--g20-star-empty);
}

.g20-feature-lead .game-star,
.g20-feature-strip .game-star,
.g20-poster-card .game-star,
.g20-soft-card .game-star,
.g20-col-card .game-star,
.g20-mosaic-card .game-star,
.g20-film-card .game-star,
.g20-game-card .card-meta > .game-star,
.g20-scroll-body .game-star {
  display: inline-flex;
  width: auto;
  margin: 0 0 6px;
  align-self: flex-start;
}

.game-star.game-star--detail-hero {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.game-star.game-star--detail-hero .detail-rating-visual,
.game-star.game-star--detail-hero .star-rating {
  display: inline-flex;
  gap: 4px;
  padding: 0;
  background: none;
  border: none;
  font-size: 1.25rem;
}

.game-star.game-star--detail-hero .star-empty::before,
.game-star.game-star--detail-hero .fa-star-o::before {
  color: rgba(255, 255, 255, 0.55);
}

.game-star.game-star--detail-hero .star-full::before,
.game-star.game-star--detail-hero .fa-star::before {
  color: var(--sun-gold);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

/* ── Image placeholder ── */
.g20-img-ph { object-fit: cover; background: #e7e5e4; }

.g20-img-ph.is-loading {
  background: #e7e5e4;
}

.g20-img-ph.is-error { opacity: 0.35; }

/* ── Detail: cinema banner ── */
.g20-detail-banner {
  position: relative;
  min-height: 320px;
  max-height: 52vh;
  overflow: hidden;
  border-bottom: var(--g20-border);
  margin-top: 0;
  flex-shrink: 0;
}

.g20-banner-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.g20-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 22, 37, 0.97) 0%,
    rgba(26, 22, 37, 0.82) 38%,
    rgba(26, 22, 37, 0.35) 62%,
    transparent 100%
  );
}

.g20-banner-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 32px;
  color: #fff;
  z-index: 1;
}

.g20-banner-crumb .breadcrumb-item a,
.g20-banner-crumb .breadcrumb-item span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}

.g20-banner-content h1,
.g20-banner-content #game-title {
  color: #fff;
  font-size: clamp(1.2rem, 2.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  max-width: 22em;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 14px rgba(0, 0, 0, 0.65);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.g20-banner-tags { margin-bottom: 16px; }

.g20-tag-pill {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #fff;
}

.g20-banner-play {
  background: var(--nebula-pink);
  color: #fff;
}

.g20-detail-main {
  padding-top: 32px;
}

.g20-detail-main > .g20-ad-slot {
  margin-bottom: 24px;
}

.g20-detail-main + .g20-page-wrap.g20-ad-slot {
  padding-top: 20px;
  padding-bottom: 20px;
}

.g20-detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.g20-detail-article .detail-split-block {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px dashed #d6d3d1;
}

.g20-detail-article .detail-split-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.g20-detail-article h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--nebula-pink);
}

.rich-content { line-height: 1.7; color: var(--ink-muted); }
.rich-content img { max-width: 100%; height: auto; border-radius: var(--g20-radius-sm); }

.g20-detail-article .rich-content > *:last-child {
  margin-bottom: 0;
}

.g20-aside-card {
  position: sticky;
  top: calc(var(--g20-header-h) + 16px);
  padding: 24px;
  background: #fff;
  border: var(--g20-border);
  border-radius: var(--g20-radius);
  box-shadow: var(--shadow-card);
}

.g20-aside-label {
  margin: 0 0 12px;
  font-weight: 800;
  font-family: var(--g20-font);
}

.g20-aside-play { width: 100%; }

.g20-aside-hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Related scroll strip */
.g20-related-strip {
  padding: 24px 0 48px;
  background: #fff;
  border-top: var(--g20-border);
}

.g20-related-strip .module-description {
  margin-bottom: 16px;
}

.g20-scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  margin-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: var(--star-white) var(--line-soft);
}

.g20-scroll-row::-webkit-scrollbar {
  height: 12px;
}

.g20-scroll-row::-webkit-scrollbar-track {
  background: var(--line-soft);
  border-radius: 999px;
  margin: 0 2px;
}

.g20-scroll-row::-webkit-scrollbar-thumb {
  background: var(--star-white);
  border-radius: 999px;
  border: 2px solid var(--line-soft);
  min-width: 64px;
}

.g20-scroll-row::-webkit-scrollbar-thumb:hover {
  background: var(--g20-accent-text);
}

.g20-scroll-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  border: var(--g20-border);
  border-radius: var(--g20-radius-sm);
  background: var(--space-dark);
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--line-soft);
}

.g20-scroll-thumb {
  aspect-ratio: 16 / 10;
  border-bottom: var(--g20-border);
  overflow: hidden;
}

.g20-scroll-thumb img { width: 100%; height: 100%; object-fit: cover; }

.g20-scroll-body {
  padding: 10px 12px 14px;
}

.g20-scroll-body h3 {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-family: var(--g20-font);
  font-weight: 700;
  line-height: 1.25;
}

/* ── Tags page: sidebar layout ── */
.g20-tags-page {
  padding-top: 8px;
}

.g20-tags-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 48px;
}

.g20-sidebar-panel {
  padding: 18px;
  background: #fff;
  border: var(--g20-border);
  border-radius: var(--g20-radius);
  box-shadow: var(--shadow-card);
}

.g20-sidebar-title {
  margin: 0 0 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.g20-category-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.g20-category-link {
  display: block;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--g20-radius-sm);
  border: 2px solid transparent;
}

.g20-category-link:hover { background: #fef08a; }

.g20-category-link.active {
  background: var(--star-white);
  color: #fff;
  border-color: var(--line-soft);
}

.g20-view-panel {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.g20-view-btn {
  flex: 1;
  padding: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  background: #fff;
  border: var(--g20-border);
  border-radius: var(--g20-radius-sm);
  cursor: pointer;
}

.g20-view-btn.is-active {
  background: var(--sun-gold);
}

.g20-tags-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.g20-tags-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 6px;
}

.tag-h2 {
  font-family: var(--g20-font);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0;
}

.g20-filter-toggle {
  display: none;
  padding: 10px 16px;
  font-weight: 700;
  background: var(--sun-gold);
  border: var(--g20-border);
  border-radius: var(--g20-radius-sm);
  cursor: pointer;
}

.g20-games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.g20-game-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: var(--g20-border);
  border-radius: var(--g20-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.g20-game-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lift);
}

.g20-card-cover {
  aspect-ratio: 16 / 10;
  border-bottom: var(--g20-border);
  overflow: hidden;
}

.g20-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g20-game-card .card-content {
  padding: 12px 14px 16px;
}

.g20-game-card .card-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-family: var(--g20-font);
  font-weight: 700;
}

/* List view */
.games-grid.list-view,
.g20-games-grid.list-view {
  grid-template-columns: 1fr !important;
}

.games-grid.list-view .g20-game-card,
.g20-games-grid.list-view .g20-game-card {
  flex-direction: row;
  align-items: stretch;
}

.games-grid.list-view .g20-card-cover,
.g20-games-grid.list-view .g20-card-cover {
  flex: 0 0 38%;
  max-width: 38%;
  aspect-ratio: 16 / 10;
  border-bottom: none;
  border-right: var(--g20-border);
}

.games-grid.list-view .card-content,
.g20-games-grid.list-view .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
}

.tags-box > * + .tags-layout,
.g20-tags-page > .g20-page-wrap.tags-layout {
  margin-top: 0;
}

.tags-layout:not(:last-child) {
  padding-bottom: 24px;
}

.pagination-container {
  margin-top: 28px;
  padding-top: 8px;
}

/* ── Empty state ── */
.g20-empty {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border: var(--g20-border);
  border-radius: var(--g20-radius);
  box-shadow: var(--shadow-card);
}

.g20-empty--inline {
  grid-column: 1 / -1;
}

.g20-empty-icon {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--nebula-pink);
}

.game-empty-title {
  font-family: var(--g20-font);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

/* ── Footer ── */
.g20-footer {
  margin-top: auto;
  background: var(--star-white);
  color: #fff;
  border-top: var(--g20-border);
}

.g20-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding: 36px 20px 28px;
}

.g20-footer-name {
  display: block;
  font-family: var(--g20-font);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.g20-footer-brand p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 40ch;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-link {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  transition: background var(--transition-fast);
}

.footer-social-link:hover { background: var(--nebula-pink); }

.g20-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-content: flex-start;
}

.g20-footer-nav a {
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}

.g20-footer-nav a:hover { color: var(--sun-gold); }

.g20-footer-copy {
  padding: 14px 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.g20-footer-copy p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Back to top */
.g20-back-top {
  position: fixed;
  right: 20px;
  bottom: calc(var(--g20-mobile-nav-h, 72px) + 16px + env(safe-area-inset-bottom, 0));
  z-index: 900;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sun-gold);
  color: var(--star-white);
  border: var(--g20-border);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.g20-back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 769px) {
  .g20-back-top { bottom: 24px; }
}

/* ── Game modal ── */
.g20-game-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(26, 22, 37, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.g20-game-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.g20-modal-panel {
  position: relative;
  width: min(960px, 100%);
  height: min(80vh, 640px);
  background: #000;
  border: var(--g20-border);
  border-radius: var(--g20-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.g20-modal-panel iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.g20-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 8px 14px;
  font-weight: 700;
  background: #fff;
  border: var(--g20-border);
  border-radius: var(--g20-radius-sm);
  cursor: pointer;
}

/* Breadcrumbs (non-banner) */
.breadcrumb-nav { margin: 0 0 16px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: var(--comet-cyan);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Daily section spacing */
.daily-special {
  padding: 36px 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .g20-poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g20-mosaic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g20-mosaic-card:nth-child(3n+2) { margin-top: 0; }
  .g20-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g20-cat-wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .g20-detail-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .g20-aside-card { position: static; }

  /* 导航可能高于 --g20-header-h（换行站点名），头图仍从顶开始由导航遮盖 */
  .g20-detail-banner {
    min-height: min(52vh, 360px);
  }

  .g20-banner-content h1,
  .g20-banner-content #game-title {
    font-size: clamp(1.05rem, 4.2vw, 1.28rem);
    -webkit-line-clamp: 3;
  }

  .legal-container {
    padding: 20px 16px;
  }

  .legal-container h1 {
    font-size: clamp(1.2rem, 4.8vw, 1.45rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }

  .g20-detail-main {
    padding-top: 20px;
  }

  .g20-detail-main > .g20-ad-slot {
    margin-bottom: 16px;
  }

  .g20-detail-aside {
    margin-top: 0;
  }

  .g20-detail-main + .g20-page-wrap.g20-ad-slot {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .g20-page-wrap.g20-ad-slot + .g20-related-strip {
    margin-top: 4px;
  }
  .g20-tags-layout {
    grid-template-columns: 1fr;
  }
  .g20-tags-sidebar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(26, 22, 37, 0.5);
    padding: 16px;
    align-items: flex-start;
  }
  .g20-tags-layout.g20-sidebar-open .g20-tags-sidebar {
    display: flex;
    flex-direction: column;
  }
  .g20-tags-sidebar .g20-sidebar-panel {
    width: min(320px, 100%);
    max-height: 70vh;
    overflow-y: auto;
  }
  .g20-filter-toggle { display: block; }
  .g20-poster-grid,
  .g20-mosaic-grid,
  .g20-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .g20-poster-thumb,
  .g20-mosaic-media,
  .g20-card-cover,
  .g20-film-thumb {
    aspect-ratio: 16 / 10;
  }
  .games-grid.list-view .g20-card-cover,
  .g20-games-grid.list-view .g20-card-cover {
    max-width: none;
    width: 100%;
    flex: 0 0 auto;
    border-right: none;
    border-bottom: var(--g20-border);
  }
  .games-grid.list-view .g20-game-card,
  .g20-games-grid.list-view .g20-game-card {
    flex-direction: column;
  }
  .g20-footer-inner { grid-template-columns: 1fr; }
  .g20-filmstrip {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .g20-film-btn { display: none; }
}

/* === g20 Playful bubble theme === */
.g20-body { background: var(--space-dark); }
.g20-site-header { background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); border-bottom: none; box-shadow: var(--shadow-card); border-radius: 0 0 var(--g20-radius) var(--g20-radius); }
.g20-logo .logo-text { color: var(--nebula-pink); font-weight: 800; }
.g20-header-cta { background: linear-gradient(135deg, var(--nebula-pink), var(--comet-cyan)); color: #fff; border-radius: 999px; border: none; box-shadow: var(--shadow-card); }
.g20-hero-bubble { position: relative; padding: 56px 0; overflow: hidden; }
.g20-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; pointer-events: none; }
.g20-blob-a { width: 320px; height: 320px; background: #f472b6; top: -80px; left: 10%; }
.g20-blob-b { width: 280px; height: 280px; background: #38bdf8; bottom: -60px; right: 15%; }
.g20-hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.g20-hero-bubble .hero-title { font-size: clamp(2rem, 5vw, 3rem); color: var(--star-white);  margin-inline: auto;margin-bottom: 0; }
.g20-hero-bubble .hero-subtitle { max-width: 52ch; margin: 12px auto 0; }
.g20-hero-search { display: flex; gap: 10px; justify-content: center; margin-top: 24px; width: 100%; max-width: 440px; margin-inline: auto; }
.g20-hero-search .form-input { flex: 1; border: var(--g20-border); border-radius: 999px; padding: 14px 20px; background: #fff; }
.g20-hero-search .hero-cta { border-radius: 999px; padding: 14px 28px; background: var(--nebula-pink); color: #fff; border: none; }
.g20-orbit-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  padding: 16px 0;
  justify-items: center;
}

.g20-orbit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 200px;
  min-width: 0;
}

.g20-orbit-ring {
  width: min(160px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast);
}
.g20-orbit-card:hover .g20-orbit-ring { transform: scale(1.08) rotate(3deg); }
.g20-orbit-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.g20-orbit-card .game-title { margin-top: 14px; font-size: 0.95rem; }
.g20-soft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.g20-soft-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: var(--g20-border);
  border-radius: var(--g20-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast);
}
.g20-soft-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.g20-soft-thumb { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--g20-radius) var(--g20-radius) 0 0; background: #e7e5e4; }
.g20-soft-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g20-col-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.g20-col-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border-radius: var(--g20-radius);
  border: var(--g20-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast);
}
.g20-col-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.g20-col-thumb { aspect-ratio: 16/10; overflow: hidden; background: #e7e5e4; }
.g20-col-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g20-cat-bubbles {
  padding: 48px 0 64px;
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
}

.g20-cat-title {
  margin: 0 0 24px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  text-align: center;
}

.g20-cat-orbs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.g20-cat-orb { padding: 12px 24px; border-radius: 999px; background: #fff; border: var(--g20-border); color: var(--star-white); font-weight: 600; transition: transform var(--transition-fast), background var(--transition-fast); }
.g20-cat-orb:nth-child(1) { background: #fce7f3; }
.g20-cat-orb:nth-child(2) { background: #dbeafe; }
.g20-cat-orb:nth-child(3) { background: #fef3c7; }
.g20-cat-orb:nth-child(4) { background: #dcfce7; }
.g20-cat-orb:nth-child(5) { background: #f3e8ff; }
.g20-cat-orb:nth-child(6) { background: #ffe4e6; }
.g20-cat-orb:hover { transform: scale(1.05); }
.g20-tag-chip { font-size: 0.72rem; padding: 3px 10px; background: #f3e8ff; color: var(--g20-accent-text); border-radius: 999px; }
.g20-badge { background: var(--nebula-pink); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; margin-right: 8px; }

/* 气泡主题页脚：深色底 + 浅色字（勿用浅紫渐变配白字，对比度不足） */
.g20-footer {
  margin-top: 8px;
  background: var(--star-white);
  color: #fff;
  border-top: var(--g20-border);
}

@media (max-width: 768px) {
  .g20-footer {
    margin-top: 0;
  }
}

.g20-footer-name { color: #fff; }

.g20-footer-brand p { color: rgba(255, 255, 255, 0.88); }

.g20-footer-nav a { color: rgba(255, 255, 255, 0.92); }

.g20-footer-nav a:hover { color: var(--sun-gold); }

.footer-social-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

.footer-social-link:hover {
  background: var(--nebula-pink);
  border-color: var(--nebula-pink);
  color: #fff;
}

.g20-footer-copy {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.g20-footer-copy p { color: rgba(255, 255, 255, 0.75); }

@media (max-width: 1024px) {
  .g20-soft-grid,
  .g20-col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .g20-orbit-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .g20-soft-grid,
  .g20-col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .g20-cat-bubbles { padding: 32px 0 48px; }

  .g20-orbit-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .g20-orbit-ring { width: min(140px, 100%); }
}

.g18-neon-card .game-title, .g18-dense-card .game-title, .g18-row-card .game-title,
.g20-orbit-card .game-title, .g20-soft-card .game-title, .g20-col-card .game-title,
.g21-timeline-item .game-title, .g21-minimal-card .game-title, .g21-compact-card .game-title,
.g22-stack-card .game-title, .g22-overlay-card .game-title, .g22-tide-card .game-title,
.g23-bento-cell .game-title, .g23-swiss-card .game-title, .g23-lined-card .game-title {
  display: block; max-width: 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
