:root {
  --space-dark: #f8f5f0;
  --space-blue: #fff;
  --star-white: #1b4332;
  --nebula-pink: #2d6a4f;
  --comet-cyan: #40916c;
  --sun-gold: #d4a373;
  --planet-purple: #95d5b2;
  --ink-muted: #52796f;
  --ink-on-light: #1b4332;
  --line-soft: #b7e4c7;
  --g25-font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --g25-accent-text: #1b4332;
  --g25-header-h: 160px;
  --g25-masthead-h: 168px;
  --g25-header-h-mobile: 52px;
  --g25-star-full: #bc6c25;
  --g25-star-empty: #95d5b2;
  --g25-radius: 20px;
  --transition-fast: 0.15s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: var(--space-dark);
}
body, .g25-body {
  background: var(--space-dark);
  color: var(--star-white);
  font-family: var(--g25-font);
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--g25-header-h);
  line-height: 1.55;
  overflow-x: hidden;
}
.g25-body main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
/* 覆写 ads.css 中 100vh/100vw 占位导致移动端横向撑破 */
.g25-body .ad-fallback,
.g25-body .ad-content,
.g25-body .anchorAdContent,
.g25-body .anchorAdContent > div {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.g25-body .ad-fallback {
  width: 100% !important;
  display: block !important;
}
body.g25-body:has(.anchorAdContent):not(:has(.g25-ad-slot--top)) {
  padding-top: calc(var(--g25-header-h) + 94px);
}
body.g25-body:has(.anchorAdContent):not(:has(.g25-ad-slot--top)) .anchorAdContent {
  position: fixed !important;
  top: var(--g25-header-h) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  z-index: 999 !important;
}
body.g25-body:has(.g25-ad-slot--top) .anchorAdContent,
body.g25-body--detail:has(.g25-ad-slot--detail-top) .anchorAdContent { display: none !important; }

h1, h2, h3 { font-weight: 700; margin-top: 0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

.g25-page-wrap {
  width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px;
  box-sizing: border-box; min-width: 0;
}
/* 覆写 CMS/基座 .portholes / .daily-special / .special-grid，避免横向撑破裁切 */
.g25-body .daily-special,
.g25-body .g25-spotlight {
  overflow-x: visible;
  white-space: normal;
}
.g25-body .special-grid.g25-zigzag,
.g25-body .special-grid.g25-leaf-grid {
  display: flex;
  flex-direction: column;
  white-space: normal;
  overflow-x: visible;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.g25-body .g25-vine-list.portholes,
.g25-body .portholes.g25-vine-list {
  display: grid !important;
  flex-wrap: unset !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  white-space: normal !important;
  overflow-x: visible !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0 !important;
}
.brief-comment-game {
  margin: 0; font-size: 0.86rem; color: var(--ink-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-list .special-card-content, .article-list .carousel-card-content { padding: 12px 14px 16px; }
.article-list .game-title, .special-card .game-title, .game-card .card-title, .carousel-card .game-title,
.g25-gh-lead-copy .game-title, .g25-gh-strip-copy .game-title,
.g25-vine-meta .game-title,
.g25-bed-copy .game-title, .g25-leaf-card .game-title, .g25-zigzag-copy .game-title,
.g25-strip-card .game-title {
  display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.special-card-content, .carousel-card-content, .g25-gh-lead-copy, .g25-gh-strip-copy,
.g25-vine-meta, .g25-bed-copy, .g25-zigzag-copy { min-width: 0; }
.module-description { color: var(--ink-muted); margin: 0 0 1rem; }

.game-star, .star-rating { display: inline-flex; gap: 2px; align-items: center; }
.game-star .star-full::before, .fa-star::before { content: "★"; color: var(--g25-star-full); }
.game-star .star-empty::before, .fa-star-o::before { content: "☆"; color: var(--g25-star-empty); }
.game-star.game-star--detail-hero { margin: 0 0 10px; }

.g25-masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  width: 100%;
  max-width: 100%;
  background: rgba(248, 245, 240, 0.97);
  border-bottom: 2px solid var(--line-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.g25-masthead > .g25-page-wrap.g25-masthead-stack {
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.g25-masthead-stack {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 14px 20px 16px; text-align: center;
}
.g25-logo {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; flex-shrink: 0;
}
.g25-logo .logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--nebula-pink);
  letter-spacing: -0.02em;
  max-width: min(280px, 50vw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-img {
  display: block; height: 36px; width: auto; max-width: 140px;
  object-fit: contain; flex-shrink: 0;
}
.g25-masthead-nav {
  display: none; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px; max-width: 100%; min-width: 0;
}
@media (min-width: 768px) { .g25-masthead-nav { display: flex; } }
.g25-masthead-nav .nav-link,
.g25-masthead-nav .nav-more-toggle { white-space: nowrap; flex: 0 0 auto; }
.g25-masthead-nav .nav-item--primary.is-overflow-hidden { display: none; }
.g25-masthead-nav .nav-more { position: relative; flex: 0 0 auto; }
.g25-masthead-nav .nav-more-toggle {
  cursor: pointer; border: none; font: inherit; background: transparent; color: inherit; box-shadow: none;
}
.g25-masthead-nav .nav-more-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 160px; padding: 8px; background: #fff; border: 1px solid var(--line-soft);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(45, 106, 79, 0.12); z-index: 1200;
}
.g25-masthead-nav .nav-more.active .nav-more-menu { display: flex; flex-direction: column; gap: 4px; }
.g25-masthead-nav .nav-more-menu .nav-link { display: block; padding: 8px 12px; border-radius: 8px; }
.g25-masthead-nav .nav-more-menu .nav-link:hover,
.g25-masthead-nav .nav-more-menu .nav-link.active { background: var(--planet-purple); color: var(--g25-accent-text); }
.g25-masthead-nav .nav-link::after,
.g25-masthead-nav .nav-more-toggle::after { display: none !important; }
.g25-masthead-nav .nav-link {
  padding: 6px 14px; color: var(--ink-muted); border-radius: 999px; font-size: 0.86rem; font-weight: 600;
}
.g25-masthead-nav .nav-link.active, .g25-masthead-nav .nav-link:hover {
  background: var(--planet-purple); color: var(--g25-accent-text);
}
.g25-masthead-search {
  display: none; width: min(420px, 100%); gap: 8px; margin-top: 2px;
}
@media (min-width: 768px) {
  .g25-masthead-search { display: flex; }
}
.g25-masthead-search .form-input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--line-soft);
  border-radius: 999px; background: #fff; font-family: inherit; font-size: 0.88rem;
}
.g25-masthead-submit {
  padding: 10px 18px; border: none; border-radius: 999px;
  background: var(--nebula-pink); color: #fff; font-weight: 600; cursor: pointer; font-family: inherit;
}
@media (max-width: 767px) {
  .g25-masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom-width: 1px;
  }
  .g25-masthead-search { display: none; }
}
.g25-mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  display: flex; background: #fff; border-top: 1px solid var(--line-soft);
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  box-sizing: border-box;
  max-width: 100%;
}
@media (min-width: 768px) { .g25-mobile-bar { display: none; } }
.g25-mobile-bar .mobile-nav-item {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; margin: 6px 2px; min-width: 0;
  padding: 8px 6px; font-size: 0.68rem; font-weight: 600;
  color: var(--ink-muted); border-radius: 12px;
  border: 2px solid transparent;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}
.g25-mobile-bar .mobile-nav-item.active {
  color: var(--g25-accent-text);
  background: #d8f3dc;
  border-color: var(--line-soft);
  font-weight: 700;
}
.g25-mobile-bar .mobile-nav-item.active .g25-mob-icon { color: var(--nebula-pink); }
.g25-mob-icon { font-size: 1.05rem; line-height: 1; }

.g25-hero-garden {
  position: relative; padding: 20px 0 28px;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(180deg, #d8f3dc 0%, var(--space-dark) 68%);
  overflow: hidden;
  scroll-margin-top: var(--g25-header-h);
}
main > .g25-hero-garden:first-child {
  margin-top: 0;
}
.g25-hero-curve {
  position: absolute; left: -10%; right: -10%; bottom: -1px; height: 40px;
  background: var(--space-dark);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.g25-hero-center {
  position: relative; z-index: 1; text-align: center;
  width: 100%; max-width: min(920px, 100%); margin: 0 auto;
}
.g25-hero-kicker {
  position: relative; z-index: 2;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--comet-cyan); margin: 0 0 6px;
}
.g25-hero-garden .hero-title {
  font-size: clamp(1.35rem, 3.6vw, 2rem);
  margin: 0 auto; max-width: min(100%, 22em);
  line-height: 1.12;
}
.g25-hero-garden .hero-subtitle {
  margin: 6px auto 0; color: var(--ink-muted);
  max-width: min(100%, 48em);
  font-size: 0.9rem; line-height: 1.45;
}
.g25-hero-garden .hero-subtitle p { margin: 0 0 0.5em; }
.g25-hero-garden .hero-subtitle p:last-child { margin-bottom: 0; }
.g25-hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  margin: 10px 0 0; padding: 0; list-style: none;
}
.g25-hero-stats li {
  padding: 4px 12px; background: #fff; border-radius: 999px;
  font-size: 0.75rem; color: var(--ink-on-light); border: 1px solid var(--line-soft);
}
.g25-path-cats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px;
}
.g25-path-step {
  padding: 7px 14px; background: #fff; border: 2px solid var(--comet-cyan);
  border-radius: calc(var(--g25-radius) - 6px); font-weight: 600; font-size: 0.82rem;
  color: var(--nebula-pink); transition: transform var(--transition-fast);
}
.g25-path-step:hover { transform: translateY(-2px); background: var(--planet-purple); }
.g25-hero-browse {
  display: inline-block; margin-top: 10px; font-size: 0.86rem; font-weight: 600;
  color: var(--comet-cyan);
}

.g25-section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--line-soft);
}
.g25-section-head h2 { font-size: 1.2rem; color: var(--nebula-pink); }
.g25-badge { background: var(--sun-gold); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 0.7rem; margin-right: 6px; }
.module-link-more { color: var(--comet-cyan); font-weight: 600; font-size: 0.88rem; }

/* ── Greenhouse spotlight (lead + strips) ── */
.g25-greenhouse {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .g25-greenhouse {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    align-items: stretch;
  }
  .g25-gh-lead { grid-row: 1 / 3; }
}
.g25-gh-lead, .g25-gh-strip {
  background: #fff; border-radius: var(--g25-radius); overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.08);
  transition: transform var(--transition-fast);
}
.g25-gh-lead:hover, .g25-gh-strip:hover { transform: translateY(-3px); }
.g25-gh-lead-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #d8f3dc; }
.g25-gh-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 5px 12px; border-radius: 999px;
  background: var(--sun-gold); color: #fff; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.g25-gh-lead-copy { padding: 14px 16px 18px; }
.g25-gh-strip {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0; align-items: stretch;
}
.g25-gh-strip-thumb { aspect-ratio: 16/10; overflow: hidden; background: #d8f3dc; min-height: 100%; }
.g25-gh-strip-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 12px 14px; min-width: 0;
}
.g25-img-ph { background: #d8f3dc; }

/* ── Vine list (spotlight: compact rows) ── */
.g25-vine-list {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.g25-vine-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 6px 10px 6px 6px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.06);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.g25-vine-row:hover {
  border-color: var(--comet-cyan);
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.1);
  transform: translateX(2px);
}
.g25-vine-thumb {
  flex: 0 0 96px;
  width: 96px;
  max-width: 96px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #d8f3dc;
}
.g25-vine-meta {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 2px 0;
  position: static;
}
.g25-vine-meta .game-title {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.2;
}
.g25-vine-meta .game-star {
  font-size: 0.82rem;
}
.g25-vine-go {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--planet-purple);
  color: var(--g25-accent-text);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.g25-vine-row:hover .g25-vine-go {
  background: var(--nebula-pink);
  color: #fff;
}
@media (min-width: 768px) {
  .g25-vine-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
.g25-gh-lead-media img, .g25-gh-strip-thumb img, .g25-vine-thumb img, .g25-bed-thumb img,
.g25-zigzag-thumb img, .g25-strip-thumb img, .g25-leaf-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ── Pick band: full-bleed green + horizontal bed scroll ── */
.g25-pick-band {
  width: 100%;
  max-width: 100%;
  background: linear-gradient(180deg, #d8f3dc 0%, #b7e4c7 100%);
  padding: 28px 0 32px; margin: 8px 0 0;
}
.g25-section-head--light { border-bottom-color: rgba(27, 67, 50, 0.2); }
.g25-section-head--light h2 { color: var(--g25-accent-text); }
.g25-link-light { color: var(--nebula-pink); }
.g25-desc-light { color: var(--ink-on-light); opacity: 0.85; }
.g25-bed-scroll {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 12px; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--comet-cyan) transparent;
}
.g25-bed-scroll::-webkit-scrollbar { height: 6px; }
.g25-bed-scroll::-webkit-scrollbar-thumb { background: var(--comet-cyan); border-radius: 999px; }
.g25-bed-card {
  flex: 0 0 min(240px, 72vw); scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: #fff; border-radius: calc(var(--g25-radius) - 4px); overflow: hidden;
  border: 1px solid rgba(27, 67, 50, 0.12);
  box-shadow: 0 6px 18px rgba(45, 106, 79, 0.1);
  transition: transform var(--transition-fast);
}
.g25-bed-card:hover { transform: translateY(-2px); }
.g25-bed-thumb { aspect-ratio: 16/10; overflow: hidden; }
.g25-bed-copy { padding: 10px 12px 12px; }
.g25-bed-copy .game-title { font-size: 0.9rem; }
.g25-bed-copy .game-star { margin: 2px 0; }
.g25-bed-copy .g25-card-tags { margin: 4px 0; gap: 4px; }
.g25-bed-copy .g25-tag-chip--light { font-size: 0.68rem; padding: 2px 8px; }
.g25-bed-copy .brief-comment-game { font-size: 0.78rem; -webkit-line-clamp: 2; }
.g25-tag-chip--light { background: #e8f5e9; }
.g25-brief-light { color: var(--ink-muted); }

/* ── Zigzag rows (even modules) ── */
.g25-zigzag {
  display: flex; flex-direction: column; gap: 14px;
  width: 100%; max-width: 100%; min-width: 0;
}
.g25-zigzag-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #fff;
  border-radius: var(--g25-radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: box-shadow var(--transition-fast);
}
.g25-zigzag-row:hover { box-shadow: 0 10px 28px rgba(45, 106, 79, 0.12); }
.g25-zigzag-thumb {
  flex: 0 0 220px;
  width: 220px;
  max-width: 220px;
  align-self: stretch;
  margin: 10px 0 10px 12px;
  aspect-ratio: 4 / 3;
  min-height: 165px;
  border-radius: 12px;
  overflow: hidden;
  background: #d8f3dc;
}
.g25-zigzag-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  position: static;
  padding: 12px 14px 12px 0;
}
.g25-body .g25-zigzag-row.special-card .special-card-content {
  position: static;
  left: auto;
  top: auto;
  width: auto;
  margin: 0;
}

/* 覆寫 CMS/基座可能注入的 .carousel-btn { position:absolute }，避免按鈕飄到視窗右側 */
.g25-body .carousel-btn {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  transform: none;
}

/* ── Garden strip carousel (odd modules) ── */
.g25-garden-strip {
  padding: 16px; background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--g25-radius); box-shadow: 0 8px 24px rgba(45, 106, 79, 0.08);
}
.g25-strip-stage {
  position: relative;
  min-width: 0;
}
.g25-strip-stage .carousel-container {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--comet-cyan) transparent;
  padding: 4px 36px; min-width: 0;
  -webkit-overflow-scrolling: touch;
}
.g25-strip-stage .carousel-container::-webkit-scrollbar { height: 5px; }
.g25-strip-stage .carousel-container::-webkit-scrollbar-thumb {
  background: var(--comet-cyan); border-radius: 999px;
}
.g25-strip-card {
  flex: 0 0 min(260px, 76vw); scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: #fff; border-radius: calc(var(--g25-radius) - 4px);
  overflow: hidden; border: 1px solid var(--line-soft);
  transition: transform var(--transition-fast);
}
.g25-strip-card:hover { transform: translateY(-2px); }
.g25-strip-thumb { aspect-ratio: 16/10; overflow: hidden; background: #d8f3dc; }
.g25-strip-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.96);
  color: var(--nebula-pink);
  box-shadow: 0 2px 10px rgba(45, 106, 79, 0.15);
  transform: translateY(-50%);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.g25-strip-btn:hover {
  background: var(--planet-purple);
  border-color: var(--comet-cyan);
}
.g25-strip-btn:focus-visible {
  outline: 2px solid var(--sun-gold);
  outline-offset: 2px;
}
.g25-strip-btn--prev { left: 4px; }
.g25-strip-btn--next { right: 4px; }
.g25-strip-chevron {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  margin-top: -1px;
}
.g25-strip-btn--prev .g25-strip-chevron { transform: rotate(135deg); margin-left: 2px; }
.g25-strip-btn--next .g25-strip-chevron { transform: rotate(-45deg); margin-right: 2px; }

.g25-leaf-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px;
}
.g25-leaf-card {
  background: #fff; border-radius: var(--g25-radius); overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: box-shadow var(--transition-fast);
}
.g25-leaf-card:hover { box-shadow: 0 12px 28px rgba(45, 106, 79, 0.15); }
.g25-leaf-thumb { aspect-ratio: 16/10; overflow: hidden; }
.g25-related .g25-leaf-card .special-card-content,
.g25-leaf-card .special-card-content {
  padding: 10px 12px 12px;
}
.g25-related .g25-leaf-card .game-title,
.g25-leaf-card .game-title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  line-height: 1.25;
}
.g25-related .g25-leaf-card .game-star,
.g25-leaf-card .game-star {
  margin: 0 0 4px;
}
.g25-related .g25-leaf-card .brief-comment-game,
.g25-leaf-card .brief-comment-game {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
}
.g25-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.g25-tag-chip {
  font-size: 0.72rem; padding: 3px 10px; border-radius: 999px;
  background: #d8f3dc; color: var(--g25-accent-text);
}

/* ── Category panels ── */
.g25-cat-garden { padding: 32px 0 56px; }
.g25-cat-heading { margin-bottom: 16px; color: var(--nebula-pink); font-size: 1.15rem; }
.g25-cat-panels {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
@media (min-width: 768px) { .g25-cat-panels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g25-cat-panel {
  display: flex; align-items: center; justify-content: center; min-height: 88px;
  padding: 16px; border-radius: var(--g25-radius); text-align: center;
  font-weight: 700; font-size: 0.95rem; color: var(--g25-accent-text);
  border: 2px solid var(--line-soft); background: #fff;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.g25-cat-panel:hover {
  transform: translateY(-3px); border-color: var(--comet-cyan);
  background: var(--planet-purple);
}
.g25-cat-panel-0 { background: #e8f5e9; }
.g25-cat-panel-1 { background: #fff; }
.g25-cat-panel-2 { background: #fefae0; }
.g25-cat-panel-3 { background: #e8f5e9; }
.g25-cat-panel-4 { background: #fff8ef; }
.g25-cat-panel-5 { background: #d8f3dc; }
.g25-cat-panel-name { line-height: 1.3; }

.g25-pick-section { background: transparent; }
.g25-spotlight, .daily-special {
  width: 100%;
  max-width: 100%;
  padding: 24px 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}

.g25-tags-page { padding-bottom: 72px; }
.g25-tags-hero h1 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
.g25-tags-hero .tag-h2 { font-size: 0.95rem; font-weight: 500; color: var(--ink-muted); margin: 8px 0 16px; }
.g25-tags-chips { margin-bottom: 16px; }
.g25-tags-toolbar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.g25-filter-toggle {
  display: none; padding: 8px 14px; border: 1px solid var(--comet-cyan);
  background: #fff; border-radius: 999px; cursor: pointer; font-family: inherit;
}
.g25-view-btn {
  padding: 8px 12px; border: 1px solid var(--line-soft); background: #fff;
  border-radius: 8px; cursor: pointer; font-family: inherit; color: var(--ink-muted);
}
.g25-view-btn.is-active { background: var(--nebula-pink); color: #fff; border-color: var(--nebula-pink); }
.g25-drawer-backdrop {
  display: none; position: fixed; inset: 0; z-index: 1100;
  border: none; background: rgba(27, 67, 50, 0.45); cursor: pointer;
}
body.g25-drawer-open .g25-drawer-backdrop { display: block; }
.g25-tags-drawer {
  position: fixed; inset: 0; z-index: 1101; pointer-events: none;
}
body.g25-drawer-open .g25-tags-drawer { pointer-events: none; }
body.g25-drawer-open .g25-drawer-panel { pointer-events: auto; }
.g25-drawer-panel {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 88vw);
  background: #fff; padding: calc(var(--g25-header-h) + 16px) 20px 24px;
  overflow-y: auto; transform: translateX(-100%);
  transition: transform 0.2s ease;
}
body.g25-drawer-open .g25-drawer-panel { transform: translateX(0); }
.g25-drawer-list li { margin-bottom: 4px; }
.g25-drawer-link {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink-muted);
}
.g25-drawer-link:hover { background: #d8f3dc; color: var(--nebula-pink); }
.games-grid.list-view { grid-template-columns: 1fr !important; }
.games-grid.list-view .g25-leaf-card {
  display: grid; grid-template-columns: 140px minmax(0, 1fr);
}

.g25-detail-wrap { padding: 24px 0 40px; }
.g25-detail-wrap:has(> .g25-ad-slot--detail-top) { padding-top: 8px; }
.g25-detail-wrap > .g25-ad-slot--detail-top {
  padding-top: 0;
  padding-bottom: 12px;
  margin-bottom: 4px;
}
.g25-detail-card {
  width: 100%; max-width: 100%; box-sizing: border-box;
  background: #fff; border-radius: var(--g25-radius); padding: 24px;
  box-shadow: 0 12px 40px rgba(45, 106, 79, 0.12);
}
.g25-related { padding-bottom: 48px; }
.g25-related .g25-section-head { margin-bottom: 16px; }
.g25-detail-cover { border-radius: calc(var(--g25-radius) - 4px); overflow: hidden; margin-bottom: 16px; }
.g25-detail-cover img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; display: block; }
.g25-detail-card #game-title {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.25;
  word-break: break-word;
}
.g25-detail-crumb { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 12px; }
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; }
.g25-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.g25-tag-pill { padding: 4px 12px; border-radius: 999px; background: #d8f3dc; font-size: 0.8rem; }
.g25-btn-play {
  display: inline-block; margin: 12px 0 20px; padding: 14px 28px;
  background: var(--nebula-pink); color: #fff; border: none; border-radius: 999px;
  font-weight: 700; cursor: pointer; font-family: inherit;
}
.g25-detail-block { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.g25-detail-block h2 { font-size: 1.05rem; color: var(--nebula-pink); }
.rich-content { line-height: 1.7; overflow-x: auto; word-break: break-word; }

.g25-game-modal {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(27, 67, 50, 0.6); align-items: center; justify-content: center; padding: 16px;
}
.g25-game-modal.is-open { display: flex; }
.g25-modal-panel { width: min(960px, 100%); background: #fff; border-radius: var(--g25-radius); overflow: hidden; position: relative; }
.g25-modal-panel iframe { width: 100%; aspect-ratio: 16/9; border: none; display: block; }
.g25-modal-close {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  padding: 8px 12px; border: none; background: var(--nebula-pink); color: #fff; border-radius: 8px; cursor: pointer;
}

.g25-footer { margin-top: auto; background: #fff; border-top: 1px solid var(--line-soft); padding-top: 32px; }
.g25-footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding-bottom: 24px; }
.g25-footer-brand p { color: var(--ink-muted); font-size: 0.9rem; }
.footer-social-link { color: var(--comet-cyan); font-weight: 600; font-size: 0.82rem; margin-right: 12px; }
.g25-footer-nav { display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; }
.g25-footer-copy { text-align: center; padding: 14px; color: var(--ink-muted); font-size: 0.82rem; border-top: 1px solid var(--line-soft); }

.g25-ad-slot {
  padding-top: 16px;
  padding-bottom: 16px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.g25-page-wrap.g25-ad-slot {
  display: block;
}

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

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

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

.g25-body--detail .g25-detail-wrap + .g25-page-wrap.g25-ad-slot {
  padding-top: 8px;
}

@media (min-width: 768px) {
  .g25-ad-slot--top,
  .g25-page-wrap > .g25-ad-slot--detail-top {
    margin-top: calc(var(--g25-masthead-h) - var(--g25-header-h));
    padding-top: 4px;
  }
  .g25-detail-wrap > .g25-ad-slot--detail-top {
    margin-top: calc(var(--g25-masthead-h) - var(--g25-header-h) - 8px);
    padding-top: 0;
  }
}

/* 广告与详情/列表同宽：撑满 page-wrap，覆盖 ads.css 占位窄条与居中 */
.g25-ad-slot > *,
.g25-ad-slot iframe,
.g25-ad-slot ins,
.g25-ad-slot .ad-content,
.g25-ad-slot .ad-container,
.g25-ad-slot .banner-ad {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

.g25-ad-slot .ad-content {
  display: block !important;
  min-width: 0 !important;
  min-height: 250px;
  height: auto !important;
}

.g25-ad-slot .container {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.g25-page-wrap > * + .legal-container { margin-top: 24px; }
.legal-container {
  padding: 28px 24px; margin-bottom: 48px; background: #fff;
  border-radius: var(--g25-radius); border: 1px solid var(--line-soft); line-height: 1.7;
}
.legal-container h1, .legal-container h2 { color: var(--nebula-pink); }
.g25-empty { text-align: center; padding: 48px 20px; }
.g25-body .back-to-top.g25-back-top {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom, 0));
  right: 16px;
  z-index: 900;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: var(--nebula-pink);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.2);
  backdrop-filter: none;
  transform: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}
.g25-body .back-to-top.g25-back-top::before { display: none; }
.g25-body .back-to-top.g25-back-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.g25-body .back-to-top.g25-back-top:hover {
  background: var(--comet-cyan);
  transform: none;
  box-shadow: 0 6px 18px rgba(45, 106, 79, 0.25);
}
.pagination-container { margin-top: 24px; }

@media (max-width: 767px) {
  .g25-drawer-panel { padding-top: 72px; }
}
@media (max-width: 768px) {
  :root {
    --g25-header-h: var(--g25-header-h-mobile);
    --g25-masthead-h: var(--g25-header-h-mobile);
  }

  body.g25-body {
    padding-top: var(--g25-header-h-mobile);
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0));
  }

  body.g25-body:has(.anchorAdContent):not(:has(.g25-ad-slot--top)) {
    padding-top: calc(var(--g25-header-h-mobile) + 94px);
  }

  body.g25-body:has(main > .g25-hero-garden:first-child):not(:has(.g25-ad-slot--top)):not(:has(.anchorAdContent)) {
    padding-top: 0;
  }

  body.g25-body:has(main > .g25-hero-garden:first-child) main > .g25-hero-garden:first-child {
    padding-top: calc(var(--g25-header-h-mobile) + 12px);
  }

  .g25-masthead-stack {
    padding: 8px 16px;
    gap: 0;
  }

  .g25-masthead,
  .g25-hero-garden,
  .g25-spotlight,
  .daily-special,
  .g25-pick-band,
  .g25-related,
  .g25-cat-garden,
  .g25-footer {
    width: 100%;
    max-width: 100%;
  }

  .g25-masthead > .g25-page-wrap.g25-masthead-stack {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .g25-hero-garden .g25-page-wrap.g25-hero-center {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .g25-bed-scroll,
  .g25-strip-stage .carousel-container {
    max-width: 100%;
  }

  .g25-logo .logo-text {
    font-size: 1rem;
    max-width: calc(100% - 56px);
  }

  .g25-logo .logo-img { height: 32px; max-width: 128px; }

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

  .g25-page-wrap {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .g25-section-head {
    gap: 8px;
    min-width: 0;
  }
  .g25-section-head h2 {
    font-size: 1.05rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .module-link-more {
    flex-shrink: 0;
    white-space: nowrap;
  }

  body.g25-body:has(.anchorAdContent):not(:has(.g25-ad-slot--top)) .anchorAdContent {
    top: var(--g25-header-h-mobile) !important;
  }
  body.g25-body:has(.anchorAdContent):not(:has(.g25-ad-slot--top)) main > .g25-hero-garden:first-child {
    padding-top: calc(var(--g25-header-h-mobile) + 94px + 12px);
  }
  .g25-hero-garden {
    padding-bottom: 22px;
    scroll-margin-top: var(--g25-header-h-mobile);
  }
  body.g25-body:has(main > .g25-hero-garden:first-child) main > .g25-hero-garden:first-child {
    padding-bottom: 22px;
  }
  .g25-hero-garden .hero-title {
    font-size: clamp(1.2rem, 4.8vw, 1.55rem);
    max-width: min(100%, 20em);
  }
  .g25-hero-garden .hero-subtitle {
    font-size: 0.84rem;
    margin-top: 4px;
  }
  .g25-hero-stats { margin-top: 8px; }
  .g25-path-cats { margin-top: 10px; }
  .g25-path-step { padding: 6px 12px; font-size: 0.78rem; }
  .g25-hero-browse { margin-top: 8px; }

  .g25-vine-row:hover { transform: none; }
  .g25-vine-thumb {
    flex: 0 0 80px;
    width: 80px;
    max-width: 80px;
  }
  .g25-vine-row { gap: 8px; padding: 5px 8px 5px 5px; }
  .g25-vine-go {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    font-size: 0.72rem;
  }
  .g25-vine-meta .game-title { font-size: 0.82rem; }
  .g25-vine-meta .game-star { font-size: 0.75rem; }
  .g25-zigzag-thumb {
    flex: 0 0 140px;
    width: 140px;
    max-width: 140px;
    min-height: 105px;
    margin: 8px 0 8px 8px;
  }
  .g25-zigzag-row { gap: 8px; }
  .g25-zigzag-copy { padding: 10px 10px 10px 0; min-width: 0; }
  .g25-zigzag-copy .game-star { max-width: 100%; overflow: hidden; }
  .g25-garden-strip { padding: 12px; }
  .g25-strip-stage .carousel-container { padding-left: 4px; padding-right: 4px; }
  .g25-strip-btn { display: none; }
  .g25-detail-card { padding: 16px; }
  .g25-detail-card #game-title {
    font-size: clamp(1.05rem, 4.2vw, 1.28rem);
    line-height: 1.3;
    margin-bottom: 8px;
  }
  .g25-detail-card .game-star--detail-hero { margin-bottom: 8px; }
  .g25-leaf-grid, #games-grid.g25-leaf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .g25-related .g25-leaf-card .special-card-content,
  .g25-leaf-card .special-card-content {
    padding: 8px 10px 10px;
  }
  .g25-related .g25-leaf-card .game-title,
  .g25-leaf-card .game-title {
    font-size: 0.85rem;
    margin: 0 0 2px;
    line-height: 1.2;
  }
  .g25-related .g25-leaf-card .game-star,
  .g25-leaf-card .game-star {
    margin: 0 0 3px;
  }
  .g25-related .g25-leaf-card .brief-comment-game,
  .g25-leaf-card .brief-comment-game {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  .g25-filter-toggle { display: inline-block; }
  .g25-footer-inner { grid-template-columns: 1fr; }
  .games-grid.list-view .g25-leaf-card { grid-template-columns: 1fr; }
  .games-grid.list-view .g25-leaf-thumb, .games-grid.list-view .card-img { max-width: none; width: 100%; }
}
