/* Final UI polish layer. Keep this file last in every page. */
:root {
  --brand: #b91c1c;
  --brand-strong: #991b1b;
  --brand-deep: #7f1d1d;
  --brand-soft: #fff5f5;
  --ink: #111827;
  --ink-2: #263244;
  --muted: #667085;
  --muted-2: #94a3b8;
  --line: #e6eaf0;
  --line-soft: #f0f2f5;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --surface-panel: #fbfcfd;
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-sm: 0 8px 20px rgba(17, 24, 39, 0.055);
  --shadow-md: 0 16px 36px rgba(17, 24, 39, 0.075);
  --radius: 8px;
  --radius-sm: 6px;
  --ease: 180ms ease;
}

/* Final mobile footer fix: keep every footer block readable and stop horizontal clipping. */
@media (max-width: 760px) {
  body .site-footer {
    overflow: hidden !important;
  }

  body .site-footer .footer-inner {
    width: min(100% - 24px, 1240px) !important;
    padding: 20px 0 16px !important;
  }

  body .site-footer .footer-main {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body .site-footer .footer-brand,
  body .site-footer .footer-main > section,
  body .site-footer .footer-main > section:first-child,
  body .site-footer .footer-main > section:not(:first-child) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-column: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    gap: 8px !important;
    align-items: start !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body .site-footer .footer-brand {
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  body .site-footer .footer-logo {
    width: 164px !important;
    height: 48px !important;
    margin: 0 !important;
  }

  body .site-footer .footer-main h3 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
  }

  body .site-footer .footer-main p {
    display: block !important;
    overflow: visible !important;
    margin: 0 !important;
    color: #e5e7eb !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    -webkit-line-clamp: unset !important;
  }

  body .site-footer .footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 0 !important;
    scrollbar-width: auto !important;
  }

  body .site-footer .footer-links li {
    display: block !important;
  }

  body .site-footer .footer-links a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 30px !important;
    max-width: 100% !important;
    padding: 0 12px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body .site-footer .footer-bottom {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    margin-top: 16px !important;
    padding-top: 14px !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
  }
}

/* Runtime data hardening for Nuxt preview pages. */
body.layout-02.refined-02 .hero-sidefile.preview-hero {
  background-position: center !important;
  background-size: cover !important;
}

body.layout-02.refined-02 .hero-card {
  min-width: 0 !important;
}

body.layout-02.refined-02 .hero-card img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
}

body.layout-02.refined-02 .intro-news-row,
body.layout-03 .server-content > .wrap {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px) !important;
  align-items: start !important;
}

body.layout-02.refined-02 .intro-left-stack,
body.layout-02.refined-02 .intro-section,
body.layout-02.refined-02 .screenshots-section,
body.layout-02.refined-02 .comments-section,
body.layout-02.refined-02 .latest-news-side,
body.layout-03 .content-main,
body.layout-03 .content-card,
body.layout-03 .server-side-panel {
  min-width: 0 !important;
}

body.layout-02.refined-02 .cms-intro,
body.layout-03 .server-cms-intro {
  overflow: hidden !important;
}

.cms-text,
.server-cms-intro,
.cms-intro {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cms-text h1,
.cms-text h2,
.cms-text h3,
.cms-text h4 {
  margin: 18px 0 10px;
  color: #111827;
  line-height: 1.35;
}

.cms-text p {
  margin: 0 0 14px;
  color: #475569;
  font-size: 15px;
  line-height: 1.9;
}

.cms-text img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px 0;
  border-radius: 8px;
}

.cms-text table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.cms-text ul,
.cms-text ol {
  margin: 12px 0 16px;
  padding-left: 22px;
  color: #475569;
  line-height: 1.85;
}

body.layout-02.refined-02 .intro-news-row .shot-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.layout-02.refined-02 .intro-news-row .shot-grid figure,
body.layout-03 .shot-grid figure {
  min-width: 0 !important;
  margin: 0 !important;
  border: 1px solid #eef2f7 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  overflow: hidden !important;
}

body.layout-02.refined-02 .intro-news-row .shot-grid img,
body.layout-03 .shot-grid img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
}

body.layout-02.refined-02 .comments-section .comment-list {
  display: grid !important;
  gap: 10px !important;
}

body.layout-02.refined-02 .comments-section .comment-list article {
  display: grid !important;
  gap: 7px !important;
  min-width: 0 !important;
  padding: 13px 14px !important;
  border: 1px solid #eef2f7 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
}

body.layout-02.refined-02 .comments-section .comment-list strong {
  overflow: hidden !important;
  color: #111827 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.layout-02.refined-02 .comments-section .comment-list p {
  margin: 0 !important;
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
  overflow-wrap: anywhere !important;
}

body.layout-02.refined-02 .latest-news-side {
  position: sticky !important;
  top: 16px !important;
  align-self: start !important;
}

body.layout-02.refined-02 .latest-news-side .news-list a {
  min-width: 0 !important;
}

body.layout-02.refined-02 .latest-news-side .news-list strong {
  min-width: 0 !important;
}

body.layout-03 .download-address-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

body.layout-03 .download-address-grid a,
body.layout-03 .benefit-grid div,
body.layout-03 .guide-list article,
body.layout-03 .server-board-item {
  min-width: 0 !important;
}

body.layout-03 .download-address-grid span,
body.layout-03 .benefit-grid p,
body.layout-03 .guide-list p,
body.layout-03 .board-name b,
body.layout-03 .board-time b {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

body.layout-03 .benefit-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
}

body.layout-03 .guide-list article {
  align-items: start !important;
}

body.layout-03 .guide-list article > div {
  min-width: 0 !important;
}

body.layout-03 .side-download-card {
  overflow: hidden !important;
}

@media (max-width: 1120px) {
  body.layout-02.refined-02 .intro-news-row,
  body.layout-03 .server-content > .wrap {
    grid-template-columns: 1fr !important;
  }

  body.layout-02.refined-02 .latest-news-side,
  body.layout-03 .server-side-panel {
    position: static !important;
  }
}

@media (max-width: 760px) {
  body.layout-02.refined-02 .intro-news-row .shot-grid,
  body.layout-03 .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.layout-02.refined-02 .comments-section .comment-list article {
    padding: 12px !important;
  }

  body.layout-03 .download-address-grid,
  body.layout-03 .benefit-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  body.layout-02.refined-02 .intro-news-row .shot-grid,
  body.layout-03 .shot-grid {
    grid-template-columns: 1fr !important;
  }
}

.hero-bg-starfire {
  --hero-img: url("https://images.unsplash.com/photo-1511882150382-421056c89033?auto=format&fit=crop&w=1800&q=82");
}

.server-bg-starfire {
  --hero-img: url("https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1800&q=82");
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(153, 27, 27, 0.35) rgba(241, 245, 249, 0.9);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  color: var(--ink-2);
  background:
    radial-gradient(circle at 16% -4%, rgba(185, 28, 28, 0.055), transparent 28rem),
    linear-gradient(180deg, #fbfcfd 0, #f3f5f8 34rem, #f5f6f8 100%);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

img {
  max-width: 100%;
}

a,
button,
input {
  letter-spacing: 0;
}

a,
button,
.filter-chip,
.read-link,
.game-entry,
.recommend-action,
.recommend-info-action,
.detail-action,
.server-view {
  transition:
    color var(--ease),
    background var(--ease),
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease),
    opacity var(--ease);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(185, 28, 28, 0.42);
  outline-offset: 2px;
}

.topline {
  color: #d6dbe3;
  background:
    linear-gradient(90deg, #201111 0, #2b1515 48%, #211313 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topline-inner {
  min-height: 38px;
}

.top-status strong,
.top-brand {
  color: #ffffff;
}

.top-value::before,
.top-values .top-value::before {
  background: rgba(255, 255, 255, 0.58);
}

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(230, 234, 240, 0.95);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.055);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 76px;
  gap: 22px;
}

.logo {
  width: 184px;
  height: 52px;
}

.search {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.search:focus-within {
  border-color: rgba(185, 28, 28, 0.45);
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.08);
}

.search input {
  color: var(--ink);
}

.search input::placeholder {
  color: #98a2b3;
}

.search button {
  min-width: 76px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(180deg, var(--brand) 0, var(--brand-strong) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.search button:hover {
  background: linear-gradient(180deg, #c32626 0, var(--brand-strong) 100%);
}

.channel-nav {
  gap: 8px;
}

.channel-nav a {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #344054;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.channel-nav a:hover {
  color: var(--brand-strong);
  border-color: rgba(185, 28, 28, 0.28);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.channel-nav a.active {
  color: #ffffff;
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--brand) 0, var(--brand-strong) 100%);
  box-shadow: 0 10px 18px rgba(153, 27, 27, 0.16);
}

.page,
.wrap,
.topline-inner,
.header-inner,
.footer-inner {
  width: min(1240px, calc(100% - 32px));
}

main,
.page {
  padding-top: 20px;
}

.section-title,
.panel-title,
.mobile-section-head,
.server-section-title,
.news-feed-head {
  margin-bottom: 16px;
}

.section-title h2,
.panel-title h2,
.mobile-section-head h2,
.server-section-title h2,
.news-list-panel .section-title h2,
.article-content h2,
.backend-article-content h2 {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
}

.section-title span,
.panel-title a,
.mobile-section-head a,
.server-section-title span {
  color: var(--brand-strong);
  font-weight: 900;
}

.content-section,
.hot-recommend,
.filter-panel,
.game-list-panel,
.game-detail-panel,
.mobile-news-section,
.news-list-panel,
.side-card,
.article-card,
.article-side-card,
.related-section,
.server-main-card,
.server-side-panel > section,
.server-news,
.side-download-card,
.server-section,
.hero-card,
.ad-showcase,
.rank-table-shell,
.recommend-layout,
.news-fusion-layout,
.topic-card,
.recommend-info,
.recommend-item,
.news-cover-story,
.news-feed,
.article-summary-card,
.backend-article-content {
  border-color: var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.content-section,
.hot-recommend,
.filter-panel,
.game-list-panel,
.mobile-news-section,
.news-list-panel,
.article-card,
.related-section,
.server-section,
.server-main-card {
  padding: 20px;
}

.content-section + .content-section,
.filter-panel + .news-page-grid,
.hot-recommend + .filter-panel,
.mobile-layout,
.article-layout,
.related-section,
.server-content-wrap,
.server-main-layout {
  margin-top: 18px;
}

.hero-layout,
.hero,
.server-hero,
.ad-showcase {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.hero-layout,
.ad-showcase,
.server-hero,
.hero-sidefile {
  overflow: hidden;
}

.hero-layout h1,
.hero h1,
.server-hero h1,
.article-head h1 {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
}

.hero-layout p,
.hero p,
.server-hero p,
.news-copy p,
.game-main p,
.article-content p,
.backend-article-content p,
.article-summary-card p,
.server-copy p {
  color: var(--muted);
}

.hero-sidefile::before,
.server-hero::before {
  opacity: 0.76;
}

.hero-tags span,
.game-tags span,
.tag,
.hot-ribbon,
.category-pill,
.download-tag,
.article-info-clean span,
.news-tag,
.topic-tag,
.rank-platform,
.server-tag,
.hero-mini-tag {
  border-radius: 999px;
  border-color: rgba(185, 28, 28, 0.16);
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-weight: 900;
}

.filter-panel {
  gap: 14px;
}

.filter-row {
  align-items: center;
}

.chip-group,
.filter-options,
.sort-tabs,
.rank-table-tabs,
.recommend-tabs {
  gap: 8px;
}

.filter-chip,
.filter-options a,
.sort-tabs a,
.rank-table-tabs a,
.recommend-tabs a {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: #475467;
  background: var(--surface-panel);
  font-size: 13px;
  font-weight: 900;
}

.filter-chip:hover,
.filter-options a:hover,
.sort-tabs a:hover,
.rank-table-tabs a:hover,
.recommend-tabs a:hover {
  color: var(--brand-strong);
  border-color: rgba(185, 28, 28, 0.28);
  background: var(--brand-soft);
}

.filter-chip.active,
.filter-options a.active,
.sort-tabs a.active,
.rank-table-tabs a.active,
.recommend-tabs a.active {
  color: #ffffff;
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--brand) 0, var(--brand-strong) 100%);
  box-shadow: 0 8px 16px rgba(153, 27, 27, 0.14);
}

.button,
button,
.read-link,
.game-entry,
.recommend-action,
.recommend-info-action,
.detail-action,
.server-view,
.ad-primary,
.ad-secondary,
.side-download-actions a,
.load-more button {
  min-height: 34px;
  border-radius: var(--radius-sm);
  font-weight: 900;
}

.read-link,
.game-entry,
.recommend-action,
.recommend-info-action,
.detail-action,
.server-view,
.ad-primary,
.side-download-actions .download,
.load-more button {
  color: #ffffff;
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--brand) 0, var(--brand-strong) 100%);
  box-shadow: 0 8px 16px rgba(153, 27, 27, 0.14);
}

.ad-secondary,
.side-download-actions .qq {
  color: var(--brand-strong);
  border: 1px solid rgba(185, 28, 28, 0.2);
  background: var(--brand-soft);
}

.read-link:hover,
.game-entry:hover,
.recommend-action:hover,
.recommend-info-action:hover,
.detail-action:hover,
.server-view:hover,
.ad-primary:hover,
.ad-secondary:hover,
.side-download-actions a:hover,
.load-more button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(153, 27, 27, 0.18);
}

.news-item,
.game-row,
.rank-table-row,
.recommend-item,
.hot-card,
.topic-card,
.news-feed-item,
.side-rank a,
.latest-news-row,
.server-board-item,
.download-list a,
.mobile-news-list a,
.related-grid a,
.game-mini-list a,
.article-game {
  border-color: var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.news-item,
.game-row,
.rank-table-row,
.recommend-item,
.hot-card,
.topic-card,
.news-feed-item,
.side-rank a,
.latest-news-row,
.server-board-item,
.download-list a,
.mobile-news-list a,
.related-grid a,
.game-mini-list a {
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease),
    background var(--ease);
}

.news-item:hover,
.game-row:hover,
.game-row.is-active,
.rank-table-row:hover,
.recommend-item:hover,
.hot-card:hover,
.topic-card:hover,
.news-feed-item:hover,
.side-rank a:hover,
.latest-news-row:hover,
.server-board-item:hover,
.download-list a:hover,
.mobile-news-list a:hover,
.related-grid a:hover,
.game-mini-list a:hover {
  border-color: rgba(185, 28, 28, 0.26);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.news-thumb,
.game-cover,
.hot-card img,
.topic-card img,
.related-grid img,
.article-cover,
.article-game img,
.game-detail-image,
.recommend-item img,
.rank-game-cell img,
.server-shot-grid img,
.hero-card img,
.fixed-ad img {
  background: #eef1f5;
  object-fit: cover;
}

.news-copy h2,
.game-main h3,
.recommend-item h3,
.hot-card h3,
.topic-card h3,
.article-game h3,
.news-cover-story h3 {
  color: var(--ink);
  font-weight: 900;
}

.news-meta,
.filter-result,
.game-detail-facts,
.article-info,
.top-status,
.rank-table-head,
.server-meta,
.footer-bottom {
  color: var(--muted);
}

.news-page-grid,
.article-layout,
.mobile-layout,
.server-main-layout,
.recommend-layout,
.news-fusion-layout {
  gap: 18px;
}

.side-stack,
.demo-side,
.server-side-panel,
.game-detail-panel {
  top: 18px;
}

.article-head-clean {
  gap: 14px;
}

.article-head h1 {
  max-width: 820px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
}

.article-info-clean {
  gap: 8px;
}

.article-info-clean span {
  min-height: 30px;
  padding: 0 11px;
  border-color: var(--line);
  background: var(--surface-panel);
}

.article-info-clean b {
  color: var(--brand-strong);
}

.article-summary-clean,
.article-note {
  border-left-color: var(--brand);
  background: linear-gradient(180deg, #fffafa 0, #ffffff 100%);
}

.backend-article-content {
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), var(--shadow-xs);
}

.backend-article-content h2 {
  font-size: 21px;
}

.backend-article-content p {
  font-size: 15px;
  line-height: 2;
}

.rank-num-pill,
.game-no,
.side-rank em,
.latest-news-row em,
.server-news-list em {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.rank-num-pill.hot,
.side-rank a:nth-child(-n + 3) em,
.latest-news-row:nth-child(-n + 3) em,
.server-news-list a:nth-child(-n + 3) em {
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand) 0, var(--brand-strong) 100%);
}

.load-more {
  color: var(--muted);
}

.site-footer {
  margin-top: 32px;
  color: #d5dbe5;
  background:
    radial-gradient(circle at 12% 0, rgba(185, 28, 28, 0.22), transparent 24rem),
    linear-gradient(180deg, #211313 0, #171112 100%);
  border-top: 4px solid var(--brand-strong);
}

.footer-inner {
  padding-top: 34px;
}

.footer-main h2,
.footer-main h3 {
  color: #ffffff;
}

.footer-links a {
  color: #d5dbe5;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-logo {
  width: 210px;
  height: 60px;
}

.is-loading,
[aria-busy="true"] {
  position: relative;
  color: var(--muted);
  pointer-events: none;
}

.is-loading::after,
[aria-busy="true"]::after {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.5em;
  border: 2px solid rgba(185, 28, 28, 0.18);
  border-top-color: var(--brand);
  border-radius: 50%;
  content: "";
  vertical-align: -0.12em;
  animation: final-spin 760ms linear infinite;
}

.empty-state,
.is-empty,
.error-state {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 120px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-panel);
  text-align: center;
}

.error-state {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

[disabled],
[aria-disabled="true"],
.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

@keyframes final-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: auto minmax(240px, 1fr);
  }

  .channel-nav {
    grid-column: 1 / -1;
    width: 100%;
    padding-bottom: 4px;
    overflow-x: auto;
  }

  .news-page-grid,
  .article-layout,
  .mobile-layout,
  .server-main-layout,
  .recommend-layout,
  .news-fusion-layout,
  .hero-layout,
  .hero-sidefile .wrap,
  .server-hero .wrap {
    grid-template-columns: 1fr;
  }

  .side-stack,
  .server-side-panel,
  .game-detail-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .page,
  .wrap,
  .topline-inner,
  .header-inner,
  .footer-inner {
    width: min(100% - 24px, 1240px);
  }

  main,
  .page {
    padding-top: 14px;
  }

  .topline-inner {
    gap: 8px;
  }

  .header-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
    padding: 12px 0;
  }

  .logo {
    width: 168px;
    height: 48px;
  }

  .search {
    width: 100%;
    min-width: 0;
  }

  .search button {
    min-width: 68px;
  }

  .channel-nav {
    display: flex;
    gap: 8px;
    margin: 0 -2px;
    padding: 0 2px 4px;
    scroll-snap-type: x proximity;
  }

  .channel-nav a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 11px;
    scroll-snap-align: start;
  }

  .content-section,
  .hot-recommend,
  .filter-panel,
  .game-list-panel,
  .mobile-news-section,
  .news-list-panel,
  .article-card,
  .related-section,
  .server-section,
  .server-main-card,
  .backend-article-content {
    padding: 16px;
  }

  .content-section + .content-section,
  .filter-panel + .news-page-grid,
  .hot-recommend + .filter-panel,
  .mobile-layout,
  .article-layout,
  .related-section,
  .server-content-wrap,
  .server-main-layout {
    margin-top: 14px;
  }

  .chip-group,
  .filter-options,
  .sort-tabs,
  .rank-table-tabs,
  .recommend-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-chip,
  .filter-options a,
  .sort-tabs a,
  .rank-table-tabs a,
  .recommend-tabs a {
    flex: 0 0 auto;
  }

  .news-item,
  .game-row,
  .rank-table-row {
    min-height: auto;
  }

  .news-copy h2,
  .game-main h3 {
    white-space: normal;
  }

  .article-head h1 {
    font-size: 27px;
  }

  .backend-article-content h2 {
    font-size: 19px;
  }

  .backend-article-content p {
    font-size: 14px;
    line-height: 1.9;
  }

  .footer-logo {
    width: 188px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* Second pass: typography rhythm, image readability, compact responsive polish. */
:root {
  --font-xs: 12px;
  --font-sm: 13px;
  --font-md: 14px;
  --font-lg: 16px;
  --font-xl: 20px;
  --font-2xl: 26px;
  --font-3xl: 34px;
  --line-tight: 1.28;
  --line-normal: 1.65;
  --line-loose: 1.9;
  --control-h: 38px;
  --control-h-sm: 34px;
  --card-pad: 18px;
  --shadow-clean: 0 10px 28px rgba(16, 24, 40, 0.06);
  --shadow-hover: 0 16px 34px rgba(16, 24, 40, 0.09);
}

body {
  font-size: var(--font-md);
  line-height: var(--line-normal);
}

p,
li,
td,
th,
input,
textarea,
button {
  font-size: var(--font-md);
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: var(--line-tight);
}

h2,
.section-title h2,
.panel-title h2,
.mobile-section-head h2,
.server-section-title h2 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: var(--line-tight);
}

h3,
.news-copy h2,
.game-main h3,
.hot-card h3,
.recommend-item h3,
.topic-body h3,
.article-game h3,
.news-cover-story h3 {
  font-size: var(--font-lg);
  line-height: 1.38;
}

.topline,
.news-meta,
.filter-result,
.article-info,
.rank-table-head,
.footer-bottom,
.tag,
.hot-ribbon,
.download-tag,
.rank-platform,
.server-tag {
  font-size: var(--font-xs);
}

.section-title,
.panel-title,
.mobile-section-head,
.server-section-title {
  align-items: center;
  gap: 14px;
}

.content-section,
.hot-recommend,
.filter-panel,
.game-list-panel,
.game-detail-panel,
.mobile-news-section,
.news-list-panel,
.side-card,
.article-card,
.article-side-card,
.related-section,
.server-main-card,
.server-side-panel > section,
.server-news,
.side-download-card,
.server-section,
.rank-table-shell,
.recommend-layout,
.news-fusion-layout,
.topic-card,
.recommend-info,
.recommend-item,
.news-cover-story,
.news-feed,
.article-summary-card,
.backend-article-content {
  border-color: #e9edf3;
  box-shadow: var(--shadow-clean);
}

.content-section,
.hot-recommend,
.filter-panel,
.game-list-panel,
.mobile-news-section,
.news-list-panel,
.article-card,
.related-section,
.server-section,
.server-main-card {
  padding: var(--card-pad);
}

.news-item,
.game-row,
.rank-table-row,
.recommend-item,
.hot-card,
.topic-card,
.news-feed-item,
.side-rank a,
.latest-news-row,
.server-board-item,
.download-list a,
.mobile-news-list a,
.related-grid a,
.game-mini-list a {
  box-shadow: none;
}

.news-item:hover,
.game-row:hover,
.game-row.is-active,
.rank-table-row:hover,
.recommend-item:hover,
.hot-card:hover,
.topic-card:hover,
.news-feed-item:hover,
.side-rank a:hover,
.latest-news-row:hover,
.server-board-item:hover,
.download-list a:hover,
.mobile-news-list a:hover,
.related-grid a:hover,
.game-mini-list a:hover {
  box-shadow: var(--shadow-hover);
}

.search,
.filter-chip,
.filter-options a,
.sort-tabs a,
.rank-table-tabs a,
.recommend-tabs a,
.read-link,
.game-entry,
.recommend-action,
.recommend-info-action,
.detail-action,
.server-view,
.ad-primary,
.ad-secondary,
.side-download-actions a,
.load-more button,
.comment-form button {
  min-height: var(--control-h);
}

.filter-chip,
.filter-options a,
.sort-tabs a,
.rank-table-tabs a,
.recommend-tabs a,
.read-link,
.game-entry,
.recommend-action,
.recommend-info-action,
.detail-action,
.server-view,
.ad-primary,
.ad-secondary,
.side-download-actions a,
.load-more button,
.comment-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
}

.search button,
.comment-form button,
.load-more button {
  cursor: pointer;
}

.search button:active,
.filter-chip:active,
.filter-options a:active,
.read-link:active,
.game-entry:active,
.recommend-action:active,
.recommend-info-action:active,
.detail-action:active,
.server-view:active,
.ad-primary:active,
.ad-secondary:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(153, 27, 27, 0.14);
}

.hero-layout,
.ad-showcase,
.hero-sidefile,
.server-hero {
  position: relative;
  isolation: isolate;
}

.ad-showcase::before,
.hero-sidefile::after,
.server-hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

.ad-showcase > *,
.hero-sidefile > *,
.server-hero > * {
  position: relative;
  z-index: 1;
}

.ad-showcase::before {
  background:
    linear-gradient(90deg, rgba(8, 12, 22, 0.78) 0%, rgba(8, 12, 22, 0.56) 42%, rgba(8, 12, 22, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 12, 22, 0.12), rgba(8, 12, 22, 0.4));
}

.hero-sidefile::after,
.server-hero::after {
  background:
    linear-gradient(90deg, rgba(8, 12, 22, 0.78) 0%, rgba(8, 12, 22, 0.48) 52%, rgba(8, 12, 22, 0.24) 100%);
}

body.layout-02.refined-02 .hero,
body.layout-02.refined-02 .hero-sidefile {
  border-radius: 0 !important;
}

body.layout-02.refined-02 .hero-sidefile:not(.preview-hero) {
  background:
    linear-gradient(90deg, rgba(8, 12, 22, 0.5) 0%, rgba(8, 12, 22, 0.24) 48%, rgba(8, 12, 22, 0.08) 100%),
    var(--hero-img) center / cover !important;
}

body.layout-02.refined-02 .hero-sidefile::after {
  background:
    linear-gradient(90deg, rgba(8, 12, 22, 0.28) 0%, rgba(8, 12, 22, 0.14) 52%, rgba(8, 12, 22, 0.04) 100%) !important;
}

body.layout-02.refined-02 .hero-copy {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.78), rgba(69, 10, 10, 0.58)) !important;
}

.ad-showcase h1,
.ad-showcase h2,
.ad-showcase h3,
.ad-showcase p,
.ad-showcase strong,
.ad-showcase span,
.hero-sidefile .hero-copy,
.hero-sidefile .hero-copy h1,
.hero-sidefile .hero-copy p,
.hero-sidefile .crumb,
.server-hero .hero-copy,
.server-hero .hero-copy h1,
.server-hero .hero-copy p {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
}

.ad-showcase h1,
.ad-showcase h2,
.ad-showcase h3,
.hero-sidefile .hero-copy h1,
.server-hero .hero-copy h1 {
  color: #ffffff;
}

.ad-showcase p,
.hero-sidefile .hero-copy p,
.server-hero .hero-copy p {
  color: rgba(255, 255, 255, 0.86);
}

.hero-info-panel,
.server-board,
.recommend-info,
.game-detail-panel,
.article-side-card,
.side-card {
  backdrop-filter: blur(8px);
}

.hot-card img,
.topic-card img,
.news-thumb,
.recommend-item img,
.related-grid img,
.article-game img,
.game-detail-image,
.news-lead img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.game-cover,
.rank-game-cell img,
.game-mini-list img,
.flyout-mini-game img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-card img,
.article-cover,
.server-shot-grid img {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

body.layout-02.refined-02 .hero-card img {
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
  object-position: center !important;
}

.hot-card,
.recommend-item,
.topic-card,
.news-item,
.game-row {
  overflow: hidden;
}

.hot-card p,
.recommend-item p,
.topic-body p,
.news-copy p,
.game-main p,
.article-game p,
.recommend-info p {
  line-height: 1.72;
}

.news-copy h2,
.game-main h3,
.hot-card h3,
.recommend-item h3 {
  margin-bottom: 2px;
}

.article-content p,
.backend-article-content p,
.cms-intro p,
.server-copy p,
.comment p {
  line-height: var(--line-loose);
}

.comment-form,
.side-comment-form {
  border: 1px solid #e9edf3;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-clean);
}

.comment-form input,
.comment-form textarea {
  min-height: var(--control-h);
  border: 1px solid #e9edf3;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface-panel);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.comment-form textarea {
  min-height: 112px;
  line-height: 1.75;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: rgba(185, 28, 28, 0.44);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.08);
  outline: none;
}

.load-more {
  display: grid;
  place-items: center;
  min-height: 48px;
  margin-top: 12px;
  border: 1px dashed #e3e7ee;
  border-radius: var(--radius);
  background: var(--surface-panel);
  color: var(--muted);
  font-size: var(--font-sm);
  font-weight: 900;
}

.load-more::before {
  width: 18px;
  height: 18px;
  margin-bottom: 4px;
  border: 2px solid rgba(185, 28, 28, 0.14);
  border-top-color: var(--brand);
  border-radius: 999px;
  content: "";
  animation: final-spin 900ms linear infinite;
}

.empty-state,
.is-empty {
  min-height: 144px;
  border-color: #dfe5ee;
  color: var(--muted);
}

.empty-state::before,
.is-empty::before {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  content: "!";
  font-weight: 900;
}

.error-state::before {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  content: "!";
  font-weight: 900;
}

@media (max-width: 1120px) {
  .hero-layout,
  .mobile-board,
  .news-page-grid,
  .article-layout,
  .server-main-layout {
    gap: 16px;
  }

  .ad-showcase::before,
  .hero-sidefile::after,
  .server-hero::after {
    background: linear-gradient(180deg, rgba(8, 12, 22, 0.76) 0%, rgba(8, 12, 22, 0.42) 100%);
  }
}

@media (max-width: 760px) {
  :root {
    --card-pad: 15px;
    --control-h: 36px;
  }

  body {
    font-size: 13px;
  }

  h1 {
    font-size: clamp(26px, 8vw, 32px);
  }

  h2,
  .section-title h2,
  .panel-title h2,
  .mobile-section-head h2,
  .server-section-title h2 {
    font-size: 20px;
  }

  h3,
  .news-copy h2,
  .game-main h3,
  .hot-card h3,
  .recommend-item h3,
  .topic-body h3 {
    font-size: 16px;
  }

  .topline-inner {
    font-size: 12px;
  }

  .content-section,
  .hot-recommend,
  .filter-panel,
  .game-list-panel,
  .mobile-news-section,
  .news-list-panel,
  .article-card,
  .related-section,
  .server-section,
  .server-main-card,
  .backend-article-content {
    padding: var(--card-pad);
  }

  .hot-card img,
  .topic-card img,
  .news-thumb,
  .recommend-item img,
  .related-grid img,
  .news-lead img {
    aspect-ratio: 16 / 10;
  }

  .game-row,
  .news-item {
    gap: 12px;
  }

  .game-entry,
  .read-link {
    width: 100%;
  }

  .article-info-clean {
    align-items: flex-start;
  }

  .article-info-clean span {
    min-height: 28px;
    padding: 0 9px;
  }

  .backend-article-content {
    gap: 13px;
  }

  .comment-form textarea {
    min-height: 104px;
  }
}

/* Targeted UI fixes: shared header, home carousel dots, news cover readability, mobile stability. */
[data-static-panel][hidden] {
  display: none !important;
}

.ad-slide[style*="--slide-img"] {
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.54), rgba(15, 23, 42, 0.34)),
    var(--slide-img) !important;
}

.static-empty {
  display: grid;
  place-items: center;
  min-height: 88px;
  padding: 18px;
  border: 1px dashed #e5e7eb;
  border-radius: 8px;
  color: #64748b;
  background: #f8fafc;
  font-size: 14px;
  font-weight: 800;
}

:root {
  --nav-icon-bg: #fff1f2;
  --nav-icon-line: #fecdd3;
  --nav-icon-ink: #9f1239;
}

.topline {
  color: #e5e7eb;
  background:
    linear-gradient(90deg, #241414 0%, #301717 50%, #211313 100%);
}

.site-slogan {
  min-width: 0;
}

.site-slogan > span:first-child,
.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.site-slogan > span:first-child::before,
.top-brand::before {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 18px;
  border-radius: 999px;
  color: #7f1d1d;
  background: #ffffff;
  content: "911";
  font-size: 10px;
  line-height: 1;
}

.top-values {
  gap: 6px;
}

.top-value {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fee2e2;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.top-value::before,
.top-values .top-value::before {
  width: 4px;
  height: 4px;
  margin-right: 6px;
  background: #fca5a5;
}

.top-status {
  min-width: 0;
  color: #cbd5e1;
}

.top-status span {
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.site-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
  border-bottom-color: #eceff4;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.055);
}

.header-inner {
  grid-template-columns: 192px minmax(280px, 1fr) auto;
  gap: 18px;
}

.search {
  position: relative;
  min-width: 0;
  border-color: #e5e7eb;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.055);
}

.search::before {
  flex: 0 0 auto;
  align-self: center;
  width: 14px;
  height: 14px;
  margin-left: 13px;
  border: 2px solid #9ca3af;
  border-radius: 999px;
  content: "";
}

.search::after {
  position: absolute;
  left: 27px;
  top: 25px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #9ca3af;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.search input {
  padding-left: 9px;
}

.search button {
  flex: 0 0 76px;
  width: 76px;
  min-width: 76px;
  background: linear-gradient(180deg, #991b1b 0%, #7f1d1d 100%);
}

.search button::before,
.search button::after {
  display: none;
}

.search button:hover {
  background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);
}

.channel-nav {
  gap: 7px;
  min-width: 0;
}

.channel-nav a {
  gap: 6px;
  min-height: 36px;
  padding: 0 11px;
  border-color: #e5e7eb;
  color: #344054;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.035);
}

.channel-nav a::before {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--nav-icon-line);
  border-radius: 7px;
  color: var(--nav-icon-ink);
  background: var(--nav-icon-bg);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  content: "";
  flex: 0 0 auto;
}

.channel-nav a[href$="index.html"]::before {
  content: "首";
}

.channel-nav a[href$="mobile-games.html"]::before {
  content: "手";
}

.channel-nav a[href$="pc-games.html"]::before {
  content: "PC";
  font-size: 9px;
}

.channel-nav a[href$="web-games.html"]::before {
  content: "页";
}

.channel-nav a[href$="single-games.html"]::before {
  content: "单";
}

.channel-nav a[href$="game-news.html"]::before {
  content: "讯";
}

.channel-nav a:first-child:not(.active) {
  color: #344054;
  border-color: #e5e7eb;
  background: #ffffff;
}

.channel-nav a:hover,
.channel-nav a:first-child:not(.active):hover {
  color: #991b1b;
  border-color: #fecdd3;
  background: #fff7f7;
  box-shadow: 0 8px 18px rgba(153, 27, 27, 0.09);
}

.channel-nav a.active {
  color: #ffffff;
  border-color: #991b1b;
  background: linear-gradient(180deg, #b91c1c 0%, #991b1b 100%);
  box-shadow: 0 10px 20px rgba(153, 27, 27, 0.16);
}

.channel-nav a.active::before {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.ad-showcase {
  min-height: 414px;
}

.ad-copy {
  padding-bottom: 44px;
}

.ad-actions {
  margin-top: 20px;
}

.ad-dots {
  left: 30px;
  right: auto;
  bottom: 24px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  pointer-events: none;
}

.ad-dots span {
  flex: 0 0 auto;
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.24);
}

.ad-dots span:first-child {
  width: 42px;
  background: #ef4444;
}

.news-cover-story {
  position: relative;
  isolation: isolate;
  gap: 10px;
  padding: 22px;
}

.news-cover-story::before {
  position: absolute;
  inset: auto 16px 16px 16px;
  z-index: 0;
  height: 172px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(20, 24, 34, 0.82), rgba(20, 24, 34, 0.72));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  content: "";
  backdrop-filter: blur(10px);
}

.news-cover-story > * {
  position: relative;
  z-index: 1;
}

.news-cover-story .news-tag {
  color: #991b1b;
  background: #fff7f7;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.news-cover-story h3 {
  max-width: 94%;
  margin: 14px 0 6px;
  color: #ffffff;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.32;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
}

.news-cover-story p {
  max-width: 94%;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.8;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.news-menu a,
.news-feed-head,
.news-feed-item {
  border-color: #e9edf3;
}

#news-channel .news-feed-item-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-top: 1px solid #e9edf3;
  color: inherit;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

#news-channel .news-feed-item-title[hidden],
.mobile-news-section .mobile-news-list-item[hidden],
.latest-news-part .latest-news-row[hidden],
.news-switch-pages[hidden],
.news-switch-pages button[hidden] {
  display: none !important;
}

#news-channel .news-feed-item-title:first-of-type {
  border-top: 0;
}

#news-channel .news-feed-item-title h3 {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#news-channel .news-feed-item-time {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  white-space: nowrap;
}

#news-channel .news-feed-item-title:hover {
  background: #fff7f7;
}

#news-channel .news-feed-item-title:hover h3 {
  color: var(--brand, #b91c1c);
}

#news-channel .news-feed-item-title:hover .news-feed-item-time {
  color: #64748b;
}

.news-switch-pages {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.news-switch-pages button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  color: #64748b;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.news-switch-pages button:hover,
.news-switch-pages button:focus-visible {
  border-color: #b91c1c;
  color: #b91c1c;
  outline: none;
}

.news-switch-pages button.active {
  border-color: #b91c1c;
  color: #fff;
  background: #b91c1c;
}

.game-home-news-pages {
  width: 100%;
  justify-content: center;
  margin: 14px 0 0;
}

@media (max-width: 640px) {
  .news-switch-pages {
    gap: 3px;
  }

  .news-switch-pages button {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: auto minmax(280px, 1fr);
  }

  .channel-nav {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .channel-nav a {
    flex: 0 0 auto;
  }

  .ad-slide {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .slide-detail {
    max-width: 520px;
  }

  .news-cover-story::before {
    height: 160px;
  }

  .mobile-board,
  .news-page-grid,
  .article-layout,
  .server-main-layout,
  .server-content > .wrap {
    grid-template-columns: 1fr !important;
  }

  .game-detail-panel,
  .side-stack,
  .server-side-panel,
  .server-news {
    position: static !important;
    top: auto !important;
    min-height: auto !important;
  }
}

@media (max-width: 760px) {
  .topline-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 9px 0;
  }

  .site-slogan,
  .top-values,
  .top-status {
    flex-wrap: wrap;
    width: 100%;
    white-space: normal;
  }

  .top-status {
    gap: 6px;
    overflow-x: auto;
  }

  .top-status span {
    flex: 0 0 auto;
  }

  .header-inner {
    grid-template-columns: 1fr !important;
    gap: 11px;
    padding: 12px 0;
  }

  .logo {
    justify-self: start;
  }

  .search {
    grid-row: auto !important;
    width: 100%;
    min-width: 0;
  }

  .search button {
    flex-basis: 68px;
    width: 68px;
    min-width: 68px;
  }

  .channel-nav {
    grid-column: auto;
    margin: 0 -2px;
    padding: 0 2px 5px;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    scroll-snap-type: x proximity;
  }

  .channel-nav a {
    min-height: 34px;
    padding: 0 10px;
    scroll-snap-align: start;
  }

  .ad-showcase,
  .ad-track,
  .ad-slide {
    min-height: 470px;
  }

  .ad-slide {
    padding: 18px;
  }

  .ad-copy {
    padding-bottom: 48px;
  }

  .ad-copy h1 {
    max-width: 100%;
    font-size: 27px;
  }

  .ad-copy p {
    max-width: 100%;
    line-height: 1.7;
  }

  .ad-actions {
    gap: 8px;
  }

  .ad-primary,
  .ad-secondary {
    flex: 1 1 150px;
    min-width: 0;
    padding: 0 12px;
  }

  .ad-dots {
    left: 18px;
    bottom: 18px;
  }

  .ad-dots span {
    width: 28px;
  }

  .ad-dots span:first-child {
    width: 36px;
  }

  .slide-detail {
    align-self: end;
    max-width: none;
    padding: 14px;
  }

  .detail-data {
    grid-template-columns: 1fr 1fr;
  }

  .news-cover-story {
    min-height: 320px;
    padding: 18px;
  }

  .news-cover-story::before {
    inset: auto 12px 12px 12px;
    height: 196px;
  }

  .news-cover-story h3,
  .news-cover-story p {
    max-width: 100%;
  }

  .news-cover-story h3 {
    font-size: 22px;
  }

  .news-menu {
    height: auto !important;
    grid-template-rows: none !important;
  }

  .filter-row,
  .news-item,
  .article-table div,
  .article-image-row,
  .related-grid,
  .footer-main {
    grid-template-columns: 1fr !important;
  }

  .filter-options,
  .chip-group,
  .sort-tabs,
  .rank-table-tabs,
  .recommend-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .filter-options a,
  .filter-chip,
  .sort-tabs a,
  .rank-table-tabs a,
  .recommend-tabs a {
    flex: 0 0 auto;
  }

  .hot-grid,
  .mobile-news-grid,
  .topic-grid,
  .server-shot-grid,
  .related-grid {
    grid-template-columns: 1fr !important;
  }

  .game-row {
    grid-template-columns: 40px 78px minmax(0, 1fr) !important;
    align-items: start;
    gap: 9px;
    padding: 10px;
    transform: none !important;
  }

  .game-no {
    width: 40px;
    height: 46px;
  }

  .game-cover {
    width: 78px !important;
    height: 56px !important;
    grid-column: 2;
    grid-row: 1;
  }

  .game-main {
    grid-column: 3;
    grid-row: 1;
  }

  .game-main p,
  .news-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .game-entry {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  .game-detail-panel {
    min-height: auto !important;
  }

  .news-item {
    gap: 10px;
  }

  .news-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .news-copy h2 {
    white-space: normal;
  }

  .news-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-items: stretch;
    width: 100%;
  }

  .read-link {
    width: auto;
    min-width: 82px;
  }

  .mobile-news-list a {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .mobile-news-list strong {
    white-space: normal;
  }
}

/* Header correction: cleaner shared top bar and subtle nav icons. */
.topline {
  background: #211313;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topline-inner {
  min-height: 38px;
  gap: 18px;
}

.site-slogan {
  gap: 12px;
  color: #f8fafc;
}

.site-slogan > span:first-child,
.top-brand {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.site-slogan > span:first-child::before,
.top-brand::before {
  display: none;
}

.top-values {
  gap: 0;
  color: #fecaca;
}

.top-value {
  height: auto;
  padding: 0 0 0 14px;
  border-radius: 0;
  background: transparent;
  color: #fecaca;
  font-size: 12px;
  font-weight: 800;
}

.top-value::before,
.top-values .top-value::before {
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: #fca5a5;
}

.top-status {
  justify-content: flex-end;
  gap: 8px;
}

.top-status span {
  height: 24px;
  padding: 0 11px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  line-height: 22px;
}

.site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #eef1f5;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.045);
}

.header-inner {
  grid-template-columns: 240px minmax(320px, 540px) minmax(0, 1fr);
  gap: 22px;
  min-height: 82px;
}

.logo {
  justify-self: start;
  width: 220px;
  height: 62px;
}

.search {
  height: 42px;
  border-color: #e4e7ec;
  border-radius: 8px;
  box-shadow: 0 5px 14px rgba(17, 24, 39, 0.045);
}

.search::before {
  width: 13px;
  height: 13px;
  margin-left: 14px;
  border-color: #98a2b3;
}

.search::after {
  left: 27px;
  top: 25px;
  width: 7px;
  background: #98a2b3;
}

.search:focus-within {
  border-color: rgba(153, 27, 27, 0.42);
  box-shadow: 0 0 0 4px rgba(153, 27, 27, 0.08);
}

.search input {
  font-size: 14px;
}

.search button {
  flex-basis: 88px;
  width: 88px;
  min-width: 88px;
  border-radius: 0 7px 7px 0;
  background: #991b1b;
  font-size: 14px;
}

.search button:hover {
  background: #7f1d1d;
}

.channel-nav {
  justify-content: flex-end;
  gap: 10px;
}

.channel-nav a {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #263244;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.045);
  font-size: 14px;
}

.channel-nav a::before {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 0;
  background: currentColor;
  color: #991b1b;
  content: "";
}

.channel-nav a[href$="index.html"]::before {
  clip-path: polygon(50% 6%, 94% 43%, 84% 43%, 84% 94%, 60% 94%, 60% 64%, 40% 64%, 40% 94%, 16% 94%, 16% 43%, 6% 43%);
}

.channel-nav a[href$="mobile-games.html"]::before {
  width: 12px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: linear-gradient(currentColor, currentColor) center bottom 2px / 4px 2px no-repeat;
  clip-path: none;
}

.channel-nav a[href$="pc-games.html"]::before {
  width: 17px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: linear-gradient(currentColor, currentColor) center bottom -5px / 10px 2px no-repeat;
  clip-path: none;
}

.channel-nav a[href$="web-games.html"]::before {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  clip-path: none;
}

.channel-nav a[href$="single-games.html"]::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: transparent;
  clip-path: none;
  transform: rotate(45deg);
}

.channel-nav a[href$="game-news.html"]::before {
  width: 14px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background:
    linear-gradient(currentColor, currentColor) 3px 4px / 8px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 3px 9px / 8px 2px no-repeat;
  clip-path: none;
}

.channel-nav a:first-child:not(.active),
.channel-nav a:first-child {
  color: #263244;
  border-color: #e5e7eb;
  background: #ffffff;
}

.channel-nav a:hover,
.channel-nav a:first-child:hover {
  color: #991b1b;
  border-color: #f1c6c6;
  background: #fffafa;
  box-shadow: 0 8px 18px rgba(153, 27, 27, 0.08);
}

.channel-nav a.active,
.channel-nav a:first-child.active {
  color: #ffffff;
  border-color: #b91c1c;
  background: #b91c1c;
  box-shadow: 0 9px 18px rgba(153, 27, 27, 0.16);
}

.channel-nav a.active::before {
  color: #ffffff;
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: 220px minmax(280px, 1fr);
    gap: 14px;
  }

  .channel-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .topline-inner {
    gap: 7px;
  }

  .site-slogan {
    gap: 8px;
  }

  .top-value {
    padding-left: 10px;
  }

  .top-status span {
    height: 22px;
    padding: 0 9px;
    line-height: 20px;
  }

  .header-inner {
    grid-template-columns: 1fr !important;
    min-height: auto;
  }

  .logo {
    width: 180px;
    height: 51px;
  }

  .search {
    height: 40px;
  }

  .search button {
    flex-basis: 72px;
    width: 72px;
    min-width: 72px;
  }

  .channel-nav {
    gap: 8px;
  }

  .channel-nav a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .channel-nav a::before {
    width: 14px;
    height: 14px;
  }
}

/* Header width and icon collision fix. */
.topline-inner,
.header-inner {
  width: min(1800px, calc(100% - 72px));
}

.header-inner {
  grid-template-columns: 220px minmax(360px, 540px) max-content;
}

.channel-nav {
  min-width: max-content;
}

.channel-nav a[href$="index.html"]::before,
.channel-nav a[href$="mobile-games.html"]::before,
.channel-nav a[href$="pc-games.html"]::before,
.channel-nav a[href$="web-games.html"]::before,
.channel-nav a[href$="single-games.html"]::before,
.channel-nav a[href$="game-news.html"]::before {
  content: "";
}

@media (max-width: 1440px) {
  .topline-inner,
  .header-inner {
    width: min(1240px, calc(100% - 32px));
  }

  .header-inner {
    grid-template-columns: 220px minmax(280px, 1fr);
    padding: 12px 0;
  }

  .channel-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .channel-nav a {
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  .topline-inner,
  .header-inner {
    width: min(100% - 24px, 1240px);
  }
}

/* Header rollback: keep original structure, only narrow search to avoid crowding. */
.topline-inner,
.header-inner {
  width: min(1240px, calc(100% - 32px));
}

.topline-inner {
  min-height: 38px;
}

.site-slogan > span:first-child,
.top-brand {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
}

.top-value {
  height: auto;
  padding: 0 0 0 12px;
  background: transparent;
}

.top-status span {
  height: 24px;
  padding: 0 10px;
}

.header-inner {
  grid-template-columns: 192px 340px minmax(0, 1fr);
  gap: 18px;
  min-height: 76px;
  padding: 0;
}

.logo {
  width: 192px;
  height: 54px;
}

.search {
  width: 340px;
  max-width: 100%;
  justify-self: start;
}

.search button {
  flex-basis: 76px;
  width: 76px;
  min-width: 76px;
}

.channel-nav {
  justify-content: flex-end;
  min-width: 0;
  width: 100%;
  overflow: visible;
}

.channel-nav a {
  min-height: 36px;
  padding: 0 11px;
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: 192px minmax(260px, 1fr);
    gap: 14px 18px;
    padding: 12px 0;
  }

  .search {
    width: min(420px, 100%);
  }

  .channel-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 760px) {
  .topline-inner,
  .header-inner {
    width: min(100% - 24px, 1240px);
  }

  .header-inner {
    grid-template-columns: 1fr !important;
    gap: 11px;
    padding: 12px 0;
  }

  .logo {
    width: 176px;
    height: 50px;
  }

  .search {
    width: 100%;
  }
}

@media (min-width: 1121px) {
  .header-inner {
    grid-template-columns: 192px 340px minmax(0, 1fr) !important;
    gap: 18px;
    min-height: 76px;
    padding: 0;
  }

  .search {
    width: 340px;
  }

  .channel-nav {
    grid-column: auto !important;
    justify-content: flex-end;
    width: 100%;
    min-width: 0;
    padding-bottom: 0;
    overflow: visible;
  }
}

/* Final shared header: common content, compact tags, narrow search, stable mobile. */
.topline {
  background: #211313 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topline-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  width: min(1240px, calc(100% - 32px)) !important;
  min-height: 40px;
  gap: 12px;
  padding: 0;
}

.site-slogan,
.top-values,
.top-status {
  display: flex !important;
  align-items: center !important;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
}

.top-brand,
.site-slogan > span:first-child,
.top-value,
.top-status span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 24px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  color: #fee2e2 !important;
  background: rgba(255, 255, 255, 0.075) !important;
  font-size: 12px !important;
  font-weight: 900;
  line-height: 22px;
}

.top-brand,
.site-slogan > span:first-child {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.top-brand::before,
.site-slogan > span:first-child::before {
  display: none !important;
  content: none !important;
}

.top-value::before,
.top-values .top-value::before,
.top-values span::before {
  display: inline-block !important;
  width: 4px !important;
  height: 4px !important;
  margin-right: 7px !important;
  border-radius: 999px;
  background: #fca5a5 !important;
  content: "" !important;
}

.top-status {
  justify-content: flex-end;
  margin-left: auto;
}

.top-status strong {
  color: #ffffff !important;
}

.site-header {
  background: #ffffff !important;
  border-bottom: 1px solid #eceff4 !important;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.045) !important;
}

.header-inner {
  width: min(1240px, calc(100% - 32px)) !important;
  min-height: 76px !important;
}

.logo {
  width: 192px !important;
  height: 54px !important;
}

.search {
  width: 340px !important;
  max-width: 100%;
  height: 40px;
  justify-self: start;
  border: 1px solid #e4e7ec !important;
  border-radius: 8px !important;
  box-shadow: 0 5px 14px rgba(17, 24, 39, 0.045) !important;
}

.search button {
  flex: 0 0 76px !important;
  width: 76px !important;
  min-width: 76px !important;
  background: #991b1b !important;
}

.search button:hover {
  background: #7f1d1d !important;
}

.channel-nav {
  width: 100%;
  min-width: 0 !important;
  justify-content: flex-end;
  gap: 8px;
  overflow: visible;
}

.channel-nav a {
  min-height: 36px !important;
  padding: 0 11px !important;
  border-color: #e5e7eb !important;
  border-radius: 8px !important;
  color: #263244 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.045);
}

.channel-nav a::before {
  color: #991b1b !important;
  background-color: #991b1b !important;
}

.channel-nav a.active,
.channel-nav a:first-child.active {
  color: #ffffff !important;
  border-color: #b91c1c !important;
  background: #b91c1c !important;
}

.channel-nav a.active::before,
.channel-nav a:first-child.active::before {
  color: #ffffff !important;
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

.channel-nav a[href$="mobile-games.html"].active::before,
.channel-nav a[href$="pc-games.html"].active::before,
.channel-nav a[href$="web-games.html"].active::before,
.channel-nav a[href$="single-games.html"].active::before,
.channel-nav a[href$="game-news.html"].active::before {
  background-color: transparent !important;
}

@media (min-width: 1121px) {
  .header-inner {
    display: grid !important;
    grid-template-columns: 192px 340px minmax(0, 1fr) !important;
    align-items: center;
    gap: 18px;
    padding: 0 !important;
  }

  .channel-nav {
    grid-column: auto !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: 192px minmax(260px, 1fr) !important;
    gap: 12px 16px;
    padding: 12px 0 !important;
  }

  .search {
    width: min(420px, 100%) !important;
  }

  .channel-nav {
    grid-column: 1 / -1 !important;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 760px) {
  .topline-inner,
  .header-inner {
    width: min(100% - 24px, 1240px) !important;
  }

  .topline-inner {
    justify-content: flex-start;
    gap: 7px;
    padding: 8px 0;
    flex-wrap: wrap;
  }

  .site-slogan {
    flex: 1 1 100%;
    gap: 6px;
    flex-wrap: wrap;
    white-space: normal;
  }

  .top-values {
    width: auto !important;
    flex: 0 0 auto;
    gap: 6px;
    flex-wrap: wrap;
  }

  .top-status {
    justify-content: flex-start;
    flex: 1 1 100%;
    margin-left: 0;
    gap: 6px;
    flex-wrap: wrap;
    white-space: normal;
  }

  .top-brand,
  .site-slogan > span:first-child,
  .top-value,
  .top-status span {
    height: 22px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    line-height: 20px;
  }

  .header-inner {
    grid-template-columns: 1fr !important;
    gap: 10px;
    min-height: auto !important;
    padding: 12px 0 !important;
  }

  .logo {
    width: 176px !important;
    height: 50px !important;
  }

  .search {
    width: 100% !important;
  }

  .search button {
    flex-basis: 72px !important;
    width: 72px !important;
    min-width: 72px !important;
  }

  .channel-nav {
    grid-column: auto !important;
    justify-content: flex-start;
    flex-wrap: nowrap !important;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
    white-space: nowrap !important;
  }

  .channel-nav a {
    flex: 0 0 auto;
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 13px;
  }
}

/* Final nav icon correction: scope to the top navigation only, do not affect page filters. */
.site-header .channel-nav a::before {
  display: inline-grid !important;
  place-items: center;
  width: 18px !important;
  height: 18px !important;
  border: 1px solid #f5c2c7 !important;
  border-radius: 6px !important;
  color: #991b1b !important;
  background: #fff7f7 !important;
  font-size: 10px !important;
  font-weight: 900;
  line-height: 1 !important;
  clip-path: none !important;
  mask: none !important;
  transform: none !important;
  box-shadow: none !important;
  flex: 0 0 18px;
  content: "";
}

.site-header .channel-nav a[href$="index.html"]::before {
  content: "首" !important;
}

.site-header .channel-nav a[href$="mobile-games.html"]::before {
  content: "手" !important;
}

.site-header .channel-nav a[href$="pc-games.html"]::before {
  content: "PC" !important;
  font-size: 9px !important;
}

.site-header .channel-nav a[href$="web-games.html"]::before {
  content: "页" !important;
}

.site-header .channel-nav a[href$="single-games.html"]::before {
  content: "单" !important;
}

.site-header .channel-nav a[href$="game-news.html"]::before {
  content: "讯" !important;
}

.site-header .channel-nav a.active::before,
.site-header .channel-nav a:first-child.active::before {
  border-color: rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

.mobile-header-values {
  display: none;
}

@media (max-width: 760px) {
  .topline {
    display: none !important;
  }

  .site-header {
    border-bottom-color: #eef1f5 !important;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05) !important;
  }

  .header-inner {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 0 11px !important;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
    width: 168px !important;
    height: 48px !important;
  }

  .mobile-header-values {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-header-values::-webkit-scrollbar {
    display: none;
  }

  .mobile-header-values span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 24px;
    padding: 0 8px;
    border: 1px solid #f1c6c6;
    border-radius: 999px;
    color: #991b1b;
    background: #fff7f7;
    font-size: 12px;
    font-weight: 900;
    line-height: 22px;
  }

  .mobile-header-values span::before {
    width: 4px;
    height: 4px;
    margin-right: 5px;
    border-radius: 999px;
    background: #dc2626;
    content: "";
  }

  .search {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: 38px;
  }

  .channel-nav {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    margin: 0;
  }
}

/* Mobile repair: keep download ranking compact and footer readable. */
@media (max-width: 760px) {
  #download-rank .rank-table-shell {
    overflow: hidden;
    border-radius: 8px;
  }

  #download-rank .rank-table-tabs {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    background: #f8fafc;
    scroll-snap-type: x proximity;
  }

  #download-rank .rank-table-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    scroll-snap-align: start;
  }

  #download-rank .rank-table-head {
    display: none !important;
  }

  #download-rank .rank-table-row {
    display: grid !important;
    grid-template-columns: 40px 60px minmax(0, 1fr) !important;
    gap: 8px 10px;
    align-items: center;
    min-height: 0;
    padding: 12px;
    transform: none !important;
    box-shadow: none;
  }

  #download-rank .rank-table-row:hover {
    transform: none !important;
  }

  #download-rank .rank-num-pill {
    grid-column: 1;
    grid-row: 1 / 3;
    justify-self: center;
    align-self: center;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 9px;
    font-size: 12px;
  }

  #download-rank .rank-num-pill::before {
    display: none !important;
    content: none !important;
  }

  #download-rank .rank-game-cell {
    display: contents !important;
  }

  #download-rank .rank-game-cell img {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 60px !important;
    height: 60px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 8px;
    object-fit: cover;
  }

  #download-rank .rank-game-cell > div {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
  }

  #download-rank .rank-table-row h3 {
    overflow: hidden;
    margin: 0 0 3px;
    font-size: 15px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #download-rank .rank-table-row p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  #download-rank .rank-table-row > span {
    min-width: 0 !important;
    height: 23px !important;
    padding: 0 8px !important;
    font-size: 12px;
    line-height: 23px;
    white-space: nowrap;
  }

  #download-rank .rank-table-row > .rank-download-tag,
  #download-rank .rank-table-row > .rank-launch-tag {
    display: none !important;
  }

  .site-footer {
    margin-top: 24px;
  }

  .footer-inner {
    width: min(100% - 24px, 1240px) !important;
    padding: 18px 0 14px;
  }

  .footer-main {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .footer-main > section {
    min-width: 0;
  }

  .footer-logo {
    width: 154px !important;
    height: 44px !important;
    margin: 0;
  }

  .footer-main > section:first-child {
    display: grid;
    grid-template-columns: 154px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-main > section:not(:first-child) {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .footer-main h3 {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 26px;
  }

  .footer-main p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: 12px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .footer-links {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
  }

  .footer-links li {
    display: contents;
  }

  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: #e5e7eb;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  .footer-links a:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.09);
  }

  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 12px;
    padding-top: 10px;
    font-size: 11px;
    line-height: 1.6;
  }
}

@media (max-width: 760px) {
  .footer-inner {
    padding: 14px 0 12px;
  }

  .footer-main {
    gap: 8px;
  }

  .footer-logo {
    width: 132px !important;
    height: 38px !important;
  }

  .footer-main > section:first-child {
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 44px;
    padding-bottom: 8px;
  }

  .footer-main p {
    -webkit-line-clamp: 1;
  }

  .footer-main > section:not(:first-child) {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 30px;
    align-items: center;
  }

  .footer-main h3 {
    font-size: 14px;
    line-height: 28px;
  }

  .footer-links {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .footer-links::-webkit-scrollbar {
    display: none;
  }

  .footer-links a {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 0 8px;
  }

  .footer-bottom {
    margin-top: 10px;
    padding-top: 9px;
    line-height: 1.55;
  }
}

/* Final mobile header: logo + value tags only on the first row. */
@media (max-width: 760px) {
  .topline {
    display: none !important;
  }

  .site-header .header-inner {
    grid-template-columns: 168px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    width: min(100% - 24px, 1240px) !important;
    padding: 10px 0 11px !important;
  }

  .site-header .logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 168px !important;
    height: 48px !important;
  }

  .mobile-header-values {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
    overflow: hidden !important;
    gap: 5px !important;
  }

  .mobile-header-values span {
    flex: 0 0 auto !important;
  }
}

@media (max-width: 380px) {
  .site-header .header-inner {
    grid-template-columns: 146px minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .site-header .logo {
    width: 146px !important;
    height: 42px !important;
  }

  .mobile-header-values {
    gap: 4px !important;
  }

  .mobile-header-values span {
    height: 22px !important;
    padding: 0 6px !important;
    font-size: 11px !important;
    line-height: 20px !important;
  }

  .mobile-header-values span::before {
    width: 3px !important;
    height: 3px !important;
    margin-right: 4px !important;
  }
}

@media (max-width: 340px) {
  .site-header .header-inner {
    grid-template-columns: 128px minmax(0, 1fr) !important;
  }

  .site-header .logo {
    width: 128px !important;
    height: 37px !important;
  }
}

/* Game detail mobile polish: compact hero and card-style server list. */
@media (max-width: 760px) {
  body.layout-02.refined-02 .hero-sidefile {
    min-height: 0 !important;
    margin: 12px 12px 14px !important;
    border-radius: 10px !important;
    background-position: center top !important;
  }

  body.layout-02.refined-02 .hero-sidefile::after {
    background:
      linear-gradient(180deg, rgba(8, 12, 22, 0.56) 0%, rgba(8, 12, 22, 0.72) 100%),
      linear-gradient(90deg, rgba(8, 12, 22, 0.64), rgba(69, 10, 10, 0.42)) !important;
  }

  body.layout-02.refined-02 .hero-sidefile .wrap {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 12px !important;
  }

  body.layout-02.refined-02 .hero-sidefile .hero-card {
    display: none !important;
  }

  body.layout-02.refined-02 .hero-sidefile .hero-copy {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: 16px !important;
    border-radius: 10px !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: linear-gradient(135deg, rgba(20, 13, 24, 0.9), rgba(69, 10, 10, 0.74)) !important;
    box-shadow: none !important;
  }

  body.layout-02.refined-02 .hero-sidefile .crumb {
    margin-bottom: 10px !important;
    gap: 6px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }

  body.layout-02.refined-02 .hero-sidefile h1 {
    margin: 0 !important;
    font-size: 30px !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
  }

  body.layout-02.refined-02 .hero-sidefile p {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 10px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
  }

  body.layout-02.refined-02 .hero-sidefile .hero-tags {
    gap: 7px !important;
    margin-top: 13px !important;
  }

  body.layout-02.refined-02 .hero-sidefile .hero-tags span {
    max-width: 100% !important;
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    line-height: 26px !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .hero-sidefile .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    max-width: none !important;
    margin-top: 14px !important;
  }

  body.layout-02.refined-02 .hero-sidefile .metric {
    min-width: 0 !important;
    padding: 10px 8px !important;
    border-radius: 8px !important;
    text-align: center !important;
  }

  body.layout-02.refined-02 .hero-sidefile .metric b {
    font-size: 20px !important;
    line-height: 1.1 !important;
  }

  body.layout-02.refined-02 .hero-sidefile .metric span {
    display: block !important;
    margin-top: 5px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  body.layout-02.refined-02 .server-refined {
    padding: 14px !important;
    border-radius: 10px !important;
    overflow: visible !important;
  }

  body.layout-02.refined-02 .server-refined .section-title {
    align-items: flex-start !important;
    margin-bottom: 12px !important;
  }

  body.layout-02.refined-02 .server-refined .section-title h2 {
    font-size: 24px !important;
    line-height: 1.15 !important;
  }

  body.layout-02.refined-02 .server-refined .section-title span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 24px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    background: #fff1f2 !important;
    color: #991b1b !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .server-refined-table,
  body.layout-02.refined-02 .server-refined-table thead,
  body.layout-02.refined-02 .server-refined-table tbody,
  body.layout-02.refined-02 .server-refined-table tr,
  body.layout-02.refined-02 .server-refined-table td {
    display: block !important;
    width: 100% !important;
  }

  body.layout-02.refined-02 .server-refined-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: visible !important;
  }

  body.layout-02.refined-02 .server-refined-table thead {
    display: none !important;
  }

  body.layout-02.refined-02 .server-refined-table tbody {
    display: grid !important;
    gap: 10px !important;
  }

  body.layout-02.refined-02 .server-refined-table tr {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px 12px !important;
    padding: 12px !important;
    border: 1px solid #eef2f7 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.035) !important;
  }

  body.layout-02.refined-02 .server-refined-table td {
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: left !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(1) {
    grid-column: 1 / -1 !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(2) {
    grid-column: 1 !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(3) {
    grid-column: 1 / -1 !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(4) {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: end !important;
  }

  body.layout-02.refined-02 .server-name {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    min-height: 0 !important;
    column-gap: 10px !important;
    row-gap: 3px !important;
    align-items: center !important;
  }

  body.layout-02.refined-02 .server-name::before {
    width: 40px !important;
    height: 40px !important;
    border-radius: 9px !important;
    font-size: 15px !important;
  }

  body.layout-02.refined-02 .server-name strong {
    overflow: hidden !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .server-name > span:not(.server-badge) {
    display: -webkit-box !important;
    overflow: hidden !important;
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  body.layout-02.refined-02 .server-badge {
    height: 22px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    line-height: 22px !important;
  }

  body.layout-02.refined-02 .server-time {
    display: inline-grid !important;
    grid-template-columns: auto auto !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: start !important;
    padding-left: 50px !important;
    text-align: left !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .server-time span {
    height: 22px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 22px !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .benefit-tags {
    justify-content: flex-start !important;
    gap: 6px !important;
    padding-left: 50px !important;
  }

  body.layout-02.refined-02 .benefit-tags span {
    height: 24px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    line-height: 24px !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .server-view {
    min-width: 72px !important;
    height: 36px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 360px) {
  body.layout-02.refined-02 .hero-sidefile {
    margin-right: 10px !important;
    margin-left: 10px !important;
  }

  body.layout-02.refined-02 .hero-sidefile .hero-copy {
    padding: 14px !important;
  }

  body.layout-02.refined-02 .hero-sidefile h1 {
    font-size: 28px !important;
  }

  body.layout-02.refined-02 .hero-sidefile .metric {
    padding: 9px 5px !important;
  }

  body.layout-02.refined-02 .hero-sidefile .metric b {
    font-size: 18px !important;
  }

  body.layout-02.refined-02 .server-refined-table tr {
    grid-template-columns: 1fr !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(4) {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: stretch !important;
  }

  body.layout-02.refined-02 .server-view {
    width: 100% !important;
  }
}

.search-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 18px auto 4px;
  padding: 0 20px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  background: #fff7f7;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.search-load-more:hover {
  border-color: #b91c1c;
  background: #fff1f2;
}

.search-load-more[hidden] {
  display: none !important;
}

.contact-list strong a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(185, 28, 28, 0.35);
  text-underline-offset: 3px;
}

.contact-list strong a:hover {
  color: #b91c1c;
  text-decoration-color: currentColor;
}

@media (max-width: 760px) {
  body.layout-02.refined-02 .hero,
  body.layout-02.refined-02 .hero-sidefile {
    border-radius: 0 !important;
  }

  body.layout-02.refined-02 .hero-sidefile::after {
    background:
      linear-gradient(180deg, rgba(8, 12, 22, 0.42) 0%, rgba(8, 12, 22, 0.62) 100%),
      linear-gradient(90deg, rgba(8, 12, 22, 0.36), rgba(69, 10, 10, 0.28)) !important;
  }
}

/* Shared final footer and fixed server actions. */
.site-footer {
  margin-top: 28px !important;
  border-top: 0 !important;
  background: #1f1212 !important;
}

.footer-inner {
  width: min(100% - 32px, 1240px) !important;
  padding: 24px 0 18px !important;
}

.footer-main {
  display: grid !important;
  grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(132px, 0.7fr)) !important;
  gap: 18px !important;
  align-items: start !important;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  width: 190px !important;
  height: 54px !important;
  margin: 0 0 10px !important;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-main h3 {
  margin: 2px 0 10px !important;
  color: #ffffff !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
}

.footer-main p {
  max-width: 520px;
  margin: 0 !important;
  color: #cbd5e1 !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
}

.footer-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.footer-links li {
  display: contents !important;
}

.footer-links a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: #e5e7eb !important;
  font-size: 12px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.footer-links a:hover {
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.footer-bottom {
  display: flex !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-top: 18px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}

body.layout-03 {
  padding-bottom: 78px;
}

.layout-03 .side-download-card .side-download-actions {
  display: none !important;
}

.server-bottom-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(153, 27, 27, 0.16);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -16px 34px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.server-bottom-actions-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px 142px;
  gap: 10px;
  align-items: center;
  width: min(100%, 1240px);
  margin: 0 auto;
}

.server-bottom-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.server-bottom-copy strong {
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-bottom-copy span {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-bottom-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.server-bottom-actions a::before {
  margin-right: 7px;
  font-size: 13px;
}

.server-bottom-download {
  color: #ffffff !important;
  background: #991b1b;
  box-shadow: 0 10px 22px rgba(153, 27, 27, 0.22);
}

.server-bottom-download::before {
  content: "↓";
}

.server-bottom-qq {
  border: 1px solid #f1c6c6;
  color: #7f1d1d !important;
  background: #fff7f7;
}

.server-bottom-qq::before {
  content: "+";
}

.server-bottom-actions a:hover {
  transform: translateY(-1px);
}

.server-bottom-download:hover {
  background: #7f1d1d;
}

.server-bottom-qq:hover {
  background: #fee2e2;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 760px) {
  .footer-inner {
    width: min(100% - 24px, 1240px) !important;
    padding: 16px 0 14px !important;
  }

  .footer-main {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .footer-brand {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-logo {
    width: 132px !important;
    height: 38px !important;
    margin: 0 !important;
  }

  .footer-main p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px !important;
    line-height: 1.55 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .footer-block {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }

  .footer-main h3 {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 28px !important;
  }

  .footer-links {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding-bottom: 2px !important;
    scrollbar-width: none;
  }

  .footer-links::-webkit-scrollbar {
    display: none;
  }

  .footer-links a {
    flex: 0 0 auto !important;
    min-height: 24px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }

  .footer-bottom {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 3px !important;
    margin-top: 10px !important;
    padding-top: 9px !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
  }

  body.layout-03 {
    padding-bottom: 66px;
  }

  .server-bottom-actions {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  }

  .server-bottom-actions-inner {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .server-bottom-copy {
    display: none;
  }

  .server-bottom-actions a {
    height: 42px;
    border-radius: 8px;
    font-size: 14px;
  }
}

/* Search results page. */
.search-results-page .page {
  padding-top: 18px;
}

.search-summary-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 247, 247, 0.95), rgba(255, 255, 255, 0.96)),
    #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.045);
}

.search-summary-copy {
  min-width: 0;
}

.search-summary-copy > span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #991b1b;
  background: #fef2f2;
  font-size: 12px;
  font-weight: 900;
}

.search-summary-copy h1 {
  margin: 9px 0 7px;
  color: #111827;
  font-size: 32px;
  line-height: 1.16;
  letter-spacing: 0;
}

.search-summary-copy p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.75;
}

.search-summary-copy strong {
  color: #991b1b;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  height: 42px;
  overflow: hidden;
  border: 1px solid #f1c6c6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(127, 29, 29, 0.08);
}

.search-page-form input {
  min-width: 0;
  padding: 0 13px;
  border: 0;
  color: #111827;
  outline: 0;
}

.search-page-form button {
  border: 0;
  color: #ffffff;
  background: #991b1b;
  font-weight: 900;
  cursor: pointer;
}

.search-page-form button:hover {
  background: #7f1d1d;
}

.search-filter-panel {
  margin-top: 14px !important;
}

.search-board {
  margin-top: 0 !important;
}

.search-results-page .game-row {
  min-height: 96px;
}

.search-results-page .game-main {
  display: grid;
  gap: 5px;
}

.search-hit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.search-hit-tags span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: #991b1b;
  background: #fef2f2;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.search-hit-tags span:nth-child(2) {
  color: #92400e;
  background: #fffbeb;
}

.search-hit-tags span:nth-child(3) {
  color: #0f766e;
  background: #f0fdfa;
}

.search-related-news {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .search-summary-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .search-results-page .page {
    padding-top: 12px;
  }

  .search-summary-panel {
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
  }

  .search-summary-copy h1 {
    font-size: 26px;
  }

  .search-summary-copy p {
    font-size: 13px;
    line-height: 1.65;
  }

  .search-page-form {
    grid-template-columns: minmax(0, 1fr) 84px;
    height: 38px;
  }

  .search-page-form button {
    font-size: 13px;
  }

  .search-results-page .game-row {
    grid-template-columns: 40px 78px minmax(0, 1fr) !important;
    min-height: 0;
  }

  .search-results-page .game-entry {
    grid-column: 3;
    justify-self: start;
    min-height: 30px;
  }

  .search-results-page .game-main p {
    -webkit-line-clamp: 1;
  }

  .search-hit-tags span {
    height: 20px;
    padding: 0 7px;
    font-size: 11px;
  }
}

/* Game detail server cards: clean mobile layout. */
@media (max-width: 760px) {
  body.layout-02.refined-02 .server-refined {
    padding: 12px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
  }

  body.layout-02.refined-02 .server-refined .section-title {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    margin-bottom: 12px !important;
  }

  body.layout-02.refined-02 .server-refined .section-title h2 {
    font-size: 24px !important;
    line-height: 1.15 !important;
  }

  body.layout-02.refined-02 .server-refined .section-title span {
    min-height: 26px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .server-refined-table tbody {
    gap: 12px !important;
  }

  body.layout-02.refined-02 .server-refined-table tr {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 8px 12px !important;
    align-items: start !important;
    padding: 14px !important;
    border-color: #e7edf5 !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fffefe 100%) !important;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.035) !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(1) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(4) {
    grid-column: 2 !important;
    grid-row: 4 !important;
    justify-self: start !important;
  }

  body.layout-02.refined-02 .server-name {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    column-gap: 12px !important;
    row-gap: 4px !important;
    align-items: center !important;
    min-height: 0 !important;
    text-align: left !important;
  }

  body.layout-02.refined-02 .server-name::before {
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
    align-self: center !important;
    width: 44px !important;
    height: 58px !important;
    border-radius: 9px !important;
    color: #be123c !important;
    background: #fff7f7 !important;
    font-size: 16px !important;
    box-shadow: inset 0 0 0 3px #ffffff !important;
  }

  body.layout-02.refined-02 .server-badge {
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: 22px !important;
    padding: 0 8px !important;
    color: #64748b !important;
    background: #f8fafc !important;
    font-size: 12px !important;
    line-height: 22px !important;
  }

  body.layout-02.refined-02 .server-name strong {
    grid-column: 2 !important;
    grid-row: 2 !important;
    font-size: 20px !important;
    line-height: 1.22 !important;
  }

  body.layout-02.refined-02 .server-name > span:not(.server-badge) {
    grid-column: 2 !important;
    grid-row: 3 !important;
    max-width: 100% !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    -webkit-line-clamp: 2 !important;
  }

  body.layout-02.refined-02 .server-time {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
    padding-left: 0 !important;
    color: #0f172a !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  body.layout-02.refined-02 .server-time span {
    height: 26px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    color: #64748b !important;
    background: #f3f6fa !important;
    font-size: 13px !important;
    line-height: 26px !important;
  }

  body.layout-02.refined-02 .benefit-tags {
    justify-content: flex-start !important;
    gap: 7px !important;
    padding-left: 0 !important;
  }

  body.layout-02.refined-02 .benefit-tags span {
    height: 26px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    line-height: 26px !important;
  }

  body.layout-02.refined-02 .server-view {
    width: 118px !important;
    min-width: 118px !important;
    height: 36px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    box-shadow: 0 8px 18px rgba(153, 27, 27, 0.16) !important;
  }
}

@media (max-width: 360px) {
  body.layout-02.refined-02 .server-refined-table tr {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    padding: 12px !important;
  }

  body.layout-02.refined-02 .server-name {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    column-gap: 10px !important;
  }

  body.layout-02.refined-02 .server-name::before {
    width: 40px !important;
    height: 54px !important;
  }

  body.layout-02.refined-02 .server-name strong {
    font-size: 18px !important;
  }

  body.layout-02.refined-02 .server-time {
    font-size: 16px !important;
  }
}

/* Final correction: align server cards and only emphasize server name. */
@media (max-width: 760px) {
  body.layout-02.refined-02 .server-refined-table tbody {
    gap: 10px !important;
  }

  body.layout-02.refined-02 .server-refined-table tr {
    grid-template-columns: 52px minmax(0, 1fr) 78px !important;
    gap: 8px 12px !important;
    align-items: center !important;
    padding: 13px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(1) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: center !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(3) {
    grid-column: 2 / -1 !important;
    grid-row: 3 !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(4) {
    grid-column: 3 !important;
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: end !important;
  }

  body.layout-02.refined-02 .server-name {
    grid-template-columns: 52px auto minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 8px !important;
    row-gap: 5px !important;
    align-items: center !important;
  }

  body.layout-02.refined-02 .server-name::before {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 9px !important;
    font-size: 15px !important;
    box-shadow: inset 0 0 0 2px #ffffff !important;
  }

  body.layout-02.refined-02 .server-badge {
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: 22px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    line-height: 22px !important;
  }

  body.layout-02.refined-02 .server-name strong {
    grid-column: 3 !important;
    grid-row: 1 !important;
    overflow: hidden !important;
    color: #0f172a !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .server-name > span:not(.server-badge) {
    grid-column: 2 / -1 !important;
    grid-row: 2 !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    -webkit-line-clamp: 2 !important;
  }

  body.layout-02.refined-02 .server-time {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    align-items: center !important;
    padding-left: 0 !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  body.layout-02.refined-02 .server-time span {
    height: 20px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    color: #64748b !important;
    background: #f3f6fa !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
  }

  body.layout-02.refined-02 .benefit-tags {
    justify-content: flex-start !important;
    gap: 6px !important;
    padding-left: 0 !important;
  }

  body.layout-02.refined-02 .benefit-tags span {
    height: 24px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    line-height: 24px !important;
  }

  body.layout-02.refined-02 .server-view {
    width: 76px !important;
    min-width: 76px !important;
    height: 32px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    box-shadow: none !important;
  }
}

@media (max-width: 360px) {
  body.layout-02.refined-02 .server-refined-table tr {
    grid-template-columns: 48px minmax(0, 1fr) 72px !important;
    gap: 8px 10px !important;
  }

  body.layout-02.refined-02 .server-name {
    grid-template-columns: 48px auto minmax(0, 1fr) !important;
  }

  body.layout-02.refined-02 .server-name::before {
    width: 40px !important;
    height: 40px !important;
  }

  body.layout-02.refined-02 .server-name strong {
    font-size: 17px !important;
  }

  body.layout-02.refined-02 .server-view {
    width: 72px !important;
    min-width: 72px !important;
  }
}

/* Final mobile server-card choice: name-first card, no view button. */
@media (max-width: 760px) {
  body.layout-02.refined-02 .server-refined-table tbody {
    gap: 12px !important;
  }

  body.layout-02.refined-02 .server-refined-table tr {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    align-items: stretch !important;
    padding: 18px !important;
    border: 1px solid #e3e8f0 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  body.layout-02.refined-02 .server-refined-table td,
  body.layout-02.refined-02 .server-refined-table td:nth-child(1),
  body.layout-02.refined-02 .server-refined-table td:nth-child(2),
  body.layout-02.refined-02 .server-refined-table td:nth-child(3) {
    grid-column: 1 !important;
    grid-row: auto !important;
    align-self: stretch !important;
    justify-self: stretch !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(4) {
    display: none !important;
  }

  body.layout-02.refined-02 .server-name {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    gap: 6px 14px !important;
    align-items: center !important;
    min-height: 0 !important;
    text-align: left !important;
  }

  body.layout-02.refined-02 .server-name::before {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: start !important;
    width: 56px !important;
    height: 56px !important;
    border: 1px solid #fecdd3 !important;
    border-radius: 12px !important;
    color: #be123c !important;
    background: linear-gradient(180deg, #fff8f8 0%, #fff3f3 100%) !important;
    box-shadow: inset 0 0 0 2px #fff !important;
    font-size: 21px !important;
    font-weight: 900 !important;
  }

  body.layout-02.refined-02 .server-name strong {
    grid-column: 2 !important;
    grid-row: 1 !important;
    overflow: hidden !important;
    color: #071326 !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .server-badge {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    height: 24px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    color: #52637d !important;
    background: #eef2f7 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 24px !important;
  }

  body.layout-02.refined-02 .server-name > span:not(.server-badge) {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    display: block !important;
    overflow: visible !important;
    margin-top: 8px !important;
    color: #52637d !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    -webkit-line-clamp: unset !important;
  }

  body.layout-02.refined-02 .server-time,
  body.layout-02.refined-02 .benefit-tags {
    display: flex !important;
    align-items: center !important;
    min-height: 44px !important;
    width: 100% !important;
    gap: 6px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    color: #334155 !important;
    background: #f8fafc !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    white-space: normal !important;
  }

  body.layout-02.refined-02 .server-time::before {
    content: "开区时间：" !important;
    flex: 0 0 auto !important;
    color: #334155 !important;
    font-weight: 900 !important;
  }

  body.layout-02.refined-02 .server-time span {
    display: none !important;
  }

  body.layout-02.refined-02 .benefit-tags::before {
    content: "福利：" !important;
    flex: 0 0 auto !important;
    color: #334155 !important;
    font-weight: 900 !important;
  }

  body.layout-02.refined-02 .benefit-tags span {
    display: inline !important;
    height: auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: #334155 !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
  }

  body.layout-02.refined-02 .benefit-tags span:not(:last-child)::after {
    content: "、";
  }
}

@media (max-width: 360px) {
  body.layout-02.refined-02 .server-refined-table tr {
    padding: 14px !important;
  }

  body.layout-02.refined-02 .server-name {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 5px 12px !important;
  }

  body.layout-02.refined-02 .server-name::before {
    width: 52px !important;
    height: 52px !important;
    font-size: 20px !important;
  }

  body.layout-02.refined-02 .server-name strong {
    font-size: 22px !important;
  }
}

/* Mobile server-card refinement: remove type badge and color benefit tags. */
@media (max-width: 760px) {
  body.layout-02.refined-02 .server-badge {
    display: none !important;
  }

  body.layout-02.refined-02 .server-name {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 10px 14px !important;
  }

  body.layout-02.refined-02 .server-name::before {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.layout-02.refined-02 .server-name strong {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
  }

  body.layout-02.refined-02 .server-name > span:not(.server-badge) {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    margin-top: 2px !important;
  }

  body.layout-02.refined-02 .benefit-tags {
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 10px 12px !important;
  }

  body.layout-02.refined-02 .benefit-tags span {
    display: inline-flex !important;
    align-items: center !important;
    height: 26px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 26px !important;
  }

  body.layout-02.refined-02 .benefit-tags span::after {
    content: none !important;
  }

  body.layout-02.refined-02 .benefit-tags span:nth-child(1) {
    color: #9f1239 !important;
    background: #fff1f2 !important;
  }

  body.layout-02.refined-02 .benefit-tags span:nth-child(2) {
    color: #92400e !important;
    background: #fff7ed !important;
  }

  body.layout-02.refined-02 .benefit-tags span:nth-child(3) {
    color: #047857 !important;
    background: #ecfdf5 !important;
  }
}

@media (max-width: 360px) {
  body.layout-02.refined-02 .server-name {
    grid-template-columns: 64px minmax(0, 1fr) !important;
  }
}

/* Mobile server-card scale polish: smaller number and tighter title spacing. */
@media (max-width: 760px) {
  body.layout-02.refined-02 .server-name {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    column-gap: 10px !important;
  }

  body.layout-02.refined-02 .server-name::before {
    width: 46px !important;
    height: 46px !important;
    border-radius: 10px !important;
    font-size: 18px !important;
  }

  body.layout-02.refined-02 .server-name strong {
    font-size: 21px !important;
    line-height: 1.18 !important;
  }
}

@media (max-width: 360px) {
  body.layout-02.refined-02 .server-name {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    column-gap: 9px !important;
  }

  body.layout-02.refined-02 .server-name::before {
    width: 44px !important;
    height: 44px !important;
    font-size: 17px !important;
  }

  body.layout-02.refined-02 .server-name strong {
    font-size: 20px !important;
  }
}

/* Final global topline unification: keep every page identical to inner pages. */
.topline {
  background: #211313 !important;
}

.topline-inner {
  min-height: 40px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.site-slogan {
  gap: 7px !important;
}

.top-brand,
.site-slogan > span:first-child {
  height: 24px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 22px !important;
}

.top-brand::before,
.top-brand::after,
.site-slogan > span:first-child::before,
.site-slogan > span:first-child::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  content: none !important;
}

.top-values {
  gap: 7px !important;
}

.top-value,
.top-values .top-value {
  height: 24px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  color: #fee2e2 !important;
  background: rgba(255, 255, 255, 0.075) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 22px !important;
}

.top-values .top-value::before,
.top-values span::before {
  display: inline-block !important;
  width: 4px !important;
  height: 4px !important;
  margin-right: 7px !important;
  border-radius: 999px !important;
  background: #fca5a5 !important;
  content: "" !important;
}

@media (max-width: 760px) {
  .topline {
    display: none !important;
  }
}

/* Final Nuxt migration fixes: visible nav icons and responsive server CTA. */
.channel-nav a::before,
.site-header .channel-nav a::before {
  display: inline-grid !important;
  place-items: center !important;
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  border: 1px solid #fecdd3 !important;
  border-radius: 6px !important;
  color: #991b1b !important;
  background: #fff1f2 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.channel-nav a[href="/"]::before,
.channel-nav a[href="./index.html"]::before,
.channel-nav a[href$="index.html"]::before {
  content: "首" !important;
}

.channel-nav a[href="/mobile-games"]::before,
.channel-nav a[href="./mobile-games.html"]::before,
.channel-nav a[href$="mobile-games.html"]::before {
  content: "手" !important;
}

.channel-nav a[href="/pc-games"]::before,
.channel-nav a[href="./pc-games.html"]::before,
.channel-nav a[href$="pc-games.html"]::before {
  content: "PC" !important;
  font-size: 10px !important;
}

.channel-nav a[href="/web-games"]::before,
.channel-nav a[href="./web-games.html"]::before,
.channel-nav a[href$="web-games.html"]::before {
  content: "页" !important;
}

.channel-nav a[href="/single-games"]::before,
.channel-nav a[href="./single-games.html"]::before,
.channel-nav a[href$="single-games.html"]::before {
  content: "单" !important;
}

.channel-nav a[href="/game-news"]::before,
.channel-nav a[href="./game-news.html"]::before,
.channel-nav a[href$="game-news.html"]::before {
  content: "讯" !important;
}

.channel-nav a.active::before,
.channel-nav a:first-child.active::before,
.site-header .channel-nav a.active::before {
  color: #b91c1c !important;
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

body.layout-03 {
  padding-bottom: 0 !important;
}

.layout-03 .side-download-card .side-download-actions {
  display: grid !important;
}

.server-bottom-actions {
  display: none !important;
}

@media (max-width: 760px) {
  body.layout-03 {
    padding-bottom: 66px !important;
  }

  .layout-03 .side-download-card .side-download-actions {
    display: none !important;
  }

  .server-bottom-actions {
    display: block !important;
  }
}

/* Compact shared footer and service pages. */
.site-footer .footer-inner {
  padding-top: 26px !important;
  padding-bottom: 18px !important;
}

.site-footer .footer-main {
  gap: 18px !important;
  align-items: start !important;
}

.site-footer .footer-main h2,
.site-footer .footer-main h3 {
  margin-bottom: 9px !important;
}

.site-footer .footer-links {
  gap: 5px !important;
}

.site-footer .footer-bottom {
  margin-top: 18px !important;
  padding-top: 12px !important;
}

body .site-header .channel-nav a.active::before,
body .site-header .channel-nav a:first-child.active::before,
body .channel-nav a.active::before,
body .channel-nav a:first-child.active::before {
  color: #b91c1c !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.68) !important;
}

/* Dynamic preview pages: keep real backend content in the final front-end layout. */
body.layout-02.refined-02 .intro-news-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 16px !important;
  align-items: start !important;
  width: 100% !important;
}

body.layout-02.refined-02 .intro-left-stack {
  display: grid !important;
  gap: 16px !important;
  min-width: 0 !important;
}

body.layout-02.refined-02 .detail-side-stack {
  position: sticky !important;
  top: 16px !important;
  display: grid !important;
  gap: 16px !important;
  min-width: 0 !important;
  align-self: start !important;
}

body.layout-02.refined-02 .latest-news-part,
body.layout-02.refined-02 .side-comment-form,
body.layout-02.refined-02 .hot-graphics-section,
body.layout-02.refined-02 .comments-section,
body.layout-02.refined-02 .screenshots-section,
body.layout-03 .server-news,
body.layout-03 .side-download-card,
body.layout-03 .content-card {
  min-width: 0 !important;
}

body.layout-02.refined-02 .latest-news-table {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

body.layout-02.refined-02 .latest-news-row {
  min-width: 0 !important;
}

body.layout-02.refined-02 .latest-news-row strong,
body.layout-03 .server-news .news-list strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.layout-02.refined-02 .hot-graphics-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.layout-02.refined-02 .hot-graphic-card {
  min-width: 0 !important;
  color: inherit !important;
}

body.layout-02.refined-02 .comments-refined .comment-list {
  display: grid !important;
  gap: 12px !important;
}

body.layout-02.refined-02 .comments-refined .comment {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  gap: 12px !important;
  min-width: 0 !important;
}

body.layout-02.refined-02 .comment-meta {
  min-width: 0 !important;
}

body.layout-02.refined-02 .comment-meta h4 {
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.layout-02.refined-02 .comment-form input,
body.layout-02.refined-02 .comment-form textarea {
  display: block !important;
  width: 100% !important;
  margin-bottom: 10px !important;
}

body.layout-02.refined-02 .comment-form button {
  width: 100% !important;
  height: 40px !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #fff !important;
  background: #991b1b !important;
  font-weight: 900 !important;
}

body.layout-03 .server-side-panel {
  display: grid !important;
  gap: 14px !important;
  min-width: 0 !important;
}

body.layout-03 .server-news .news-list a {
  min-width: 0 !important;
}

body.layout-03 .benefit-grid,
body.layout-03 .shot-grid,
body.layout-03 .guide-list,
body.layout-03 .download-address-grid {
  min-width: 0 !important;
}

@media (max-width: 1120px) {
  body.layout-02.refined-02 .intro-news-row,
  body.layout-03 .server-content > .wrap {
    grid-template-columns: 1fr !important;
  }

  body.layout-02.refined-02 .detail-side-stack,
  body.layout-03 .server-side-panel {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 760px) {
  body.layout-02.refined-02 .hot-graphics-grid,
  body.layout-02.refined-02 .intro-news-row .shot-grid,
  body.layout-03 .shot-grid {
    grid-template-columns: 1fr !important;
  }

  body.layout-02.refined-02 .comments-refined .comment {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    padding: 12px !important;
  }

  body.layout-02.refined-02 .comments-refined .avatar {
    width: 40px !important;
    height: 40px !important;
  }

  body.layout-02.refined-02 .latest-news-part .latest-news-row,
  body.layout-03 .server-news .news-list a {
    grid-template-columns: 26px minmax(0, 1fr) 42px !important;
  }
}

.service-page {
  padding: 26px 0 0 !important;
}

.service-shell {
  display: grid;
  gap: 16px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.service-hero,
.service-card {
  border: 1px solid #eadede;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(33, 19, 19, 0.055);
}

.service-hero {
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(185, 28, 28, 0.08), rgba(255, 255, 255, 0) 54%),
    #ffffff;
}

.service-kicker {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #991b1b;
  background: #fff1f2;
  font-size: 13px;
  font-weight: 900;
}

.service-hero h1 {
  margin: 14px 0 10px;
  color: #111827;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
}

.service-hero p {
  max-width: 780px;
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}

.service-card {
  padding: 22px;
}

.service-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 20px;
  line-height: 1.25;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-list div,
.service-note li,
.sitemap-card a {
  border: 1px solid #f1e5e5;
  border-radius: 10px;
  background: #fbfaf9;
}

.contact-list div {
  display: grid;
  gap: 5px;
  padding: 15px;
}

.contact-list span {
  color: #991b1b;
  font-size: 13px;
  font-weight: 900;
}

.contact-list strong {
  color: #111827;
  font-size: 18px;
}

.contact-list p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.75;
}

.service-note ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-note li {
  padding: 12px 13px;
  color: #334155;
  font-size: 14px;
  line-height: 1.7;
}

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

.sitemap-card {
  display: grid;
  align-content: start;
  gap: 9px;
}

.sitemap-card a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sitemap-card a:hover {
  border-color: #fecaca;
  color: #991b1b;
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .service-grid,
  .sitemap-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .site-footer .footer-inner {
    padding-top: 22px !important;
    padding-bottom: 16px !important;
  }

  .site-footer .footer-main {
    grid-template-columns: 1fr 1fr !important;
    gap: 18px 22px !important;
  }

  .site-footer .footer-brand {
    grid-column: 1 / -1 !important;
  }

  .site-footer .footer-bottom {
    gap: 6px !important;
  }

  .service-page {
    padding-top: 18px !important;
  }

  .service-shell {
    width: min(100% - 24px, 1240px);
    gap: 12px;
  }

  .service-hero,
  .service-card {
    border-radius: 10px;
  }

  .service-hero,
  .service-card {
    padding: 18px;
  }

  .service-hero p {
    font-size: 14px;
    line-height: 1.8;
  }

  .service-grid,
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
}

/* Link-heavy sitemap page. */
.sitemap-shell {
  gap: 18px;
}

.sitemap-hero {
  padding-bottom: 24px;
}

.sitemap-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sitemap-stats span {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  border: 1px solid #f3d4d4;
  border-radius: 999px;
  color: #7f1d1d;
  background: #fff7f7;
  font-size: 13px;
  font-weight: 800;
}

.sitemap-stats b {
  margin-right: 4px;
  color: #b91c1c;
  font-size: 18px;
}

.sitemap-section {
  display: grid;
  gap: 12px;
}

.sitemap-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.sitemap-section-head h2 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.2;
}

.sitemap-section-head span {
  color: #991b1b;
  font-size: 13px;
  font-weight: 900;
}

.sitemap-game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sitemap-group {
  padding: 18px !important;
}

.sitemap-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #111827;
  font-size: 18px;
}

.sitemap-group h3 span {
  margin-left: auto;
  color: #991b1b;
  font-size: 12px;
  font-weight: 900;
}

.sitemap-group h3::before {
  display: inline-block;
  width: 8px;
  height: 18px;
  border-radius: 999px;
  background: #b91c1c;
  content: "";
}

.sitemap-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sitemap-links a,
.server-map-links a {
  min-width: 0;
  border: 1px solid #f1e5e5;
  border-radius: 9px;
  background: #fbfaf9;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sitemap-links a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.sitemap-links a:hover,
.server-map-links a:hover,
.sitemap-news-list a:hover {
  border-color: #fecaca;
  color: #991b1b;
  box-shadow: 0 8px 18px rgba(127, 29, 29, 0.07);
  transform: translateY(-1px);
}

.server-map-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.server-map-links a {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
}

.server-map-links b {
  color: #111827;
  font-size: 16px;
}

.server-map-links span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.sitemap-news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.sitemap-news-list a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid #f1e5e5;
  color: #334155;
  transition: color 0.18s ease, background 0.18s ease;
}

.sitemap-news-list em {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 24px;
  border-radius: 7px;
  color: #991b1b;
  background: #fff1f2;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.sitemap-news-list strong {
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sitemap-news-list span {
  color: #94a3b8;
  font-size: 12px;
  text-align: right;
}

@media (max-width: 1120px) {
  .sitemap-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .server-map-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sitemap-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .sitemap-section-head h2 {
    font-size: 21px;
  }

  .sitemap-game-grid,
  .server-map-links,
  .sitemap-news-list {
    grid-template-columns: 1fr;
  }

  .sitemap-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sitemap-news-list a {
    grid-template-columns: 42px minmax(0, 1fr) 48px;
  }
}

/* Final mobile footer fix: keep every footer block readable and stop horizontal clipping. */
@media (max-width: 760px) {
  body .site-footer {
    overflow: hidden !important;
  }

  body .site-footer .footer-inner {
    width: min(100% - 24px, 1240px) !important;
    padding: 20px 0 16px !important;
  }

  body .site-footer .footer-main {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body .site-footer .footer-brand,
  body .site-footer .footer-main > section,
  body .site-footer .footer-main > section:first-child,
  body .site-footer .footer-main > section:not(:first-child) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-column: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    gap: 8px !important;
    align-items: start !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body .site-footer .footer-brand {
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  body .site-footer .footer-logo {
    width: 164px !important;
    height: 48px !important;
    margin: 0 !important;
  }

  body .site-footer .footer-main h3 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
  }

  body .site-footer .footer-main p {
    display: block !important;
    overflow: visible !important;
    margin: 0 !important;
    color: #e5e7eb !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    -webkit-line-clamp: unset !important;
  }

  body .site-footer .footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 0 !important;
    scrollbar-width: auto !important;
  }

  body .site-footer .footer-links li {
    display: block !important;
  }

  body .site-footer .footer-links a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 30px !important;
    max-width: 100% !important;
    padding: 0 12px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body .site-footer .footer-bottom {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    margin-top: 16px !important;
    padding-top: 14px !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
  }
}
.news-preview-page {
  padding: 28px 0 44px;
}

.news-preview-wrap {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}

.news-preview-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.news-preview-article,
.recommend-game-card,
.news-preview-error {
  border: 1px solid #eadede;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(33, 19, 19, 0.06);
}

.news-preview-article {
  min-width: 0;
  padding: 28px;
}

.news-preview-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #991b1b;
  font-size: 14px;
  font-weight: 900;
}

.news-preview-crumb a {
  color: inherit;
  text-decoration: none;
}

.news-preview-article h1 {
  margin: 18px 0 14px;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

.news-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.news-preview-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 800;
}

.news-preview-summary {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid #f4d9d9;
  border-radius: 12px;
  color: #475569;
  background: #fff7f7;
  font-size: 16px;
  line-height: 1.8;
}

.news-preview-content {
  color: #1f2937;
  font-size: 17px;
  line-height: 1.9;
}

.news-preview-content h2,
.news-preview-content h3,
.news-preview-content p,
.news-preview-content ul,
.news-preview-content ol,
.news-preview-content figure {
  margin-top: 0;
  margin-bottom: 18px;
}

.news-preview-content h2 {
  padding-top: 10px;
  color: #111827;
  font-size: 26px;
  line-height: 1.35;
}

.news-preview-content h3 {
  color: #111827;
  font-size: 22px;
  line-height: 1.4;
}

.news-preview-content img {
  max-width: 100%;
  border-radius: 12px;
}

.news-preview-content figcaption {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

.news-preview-side {
  position: sticky;
  top: 18px;
}

.recommend-game-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.recommend-game-card > span {
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #991b1b;
  background: #fff1f2;
  font-size: 13px;
  font-weight: 900;
}

.recommend-game-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 11px;
  object-fit: cover;
}

.recommend-game-card h2,
.recommend-game-card p {
  margin: 0;
}

.recommend-game-card h2 {
  color: #111827;
  font-size: 22px;
  line-height: 1.3;
}

.recommend-game-card p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.recommend-game-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recommend-game-card em {
  padding: 6px 10px;
  border-radius: 999px;
  color: #334155;
  background: #f8fafc;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.news-preview-error {
  padding: 28px;
}

@media (max-width: 900px) {
  .news-preview-shell {
    grid-template-columns: 1fr;
  }

  .news-preview-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .news-preview-page {
    padding-top: 16px;
  }

  .news-preview-article {
    padding: 18px;
  }

  .news-preview-content {
    font-size: 16px;
  }
}

body.news-preview-layout {
  min-width: 0 !important;
  overflow-x: hidden !important;
  background: #f5f6f8 !important;
}

body.news-preview-layout .topline,
body.news-preview-layout .site-header {
  width: 100% !important;
  transform: none !important;
}

body.news-preview-layout .site-header {
  position: relative !important;
  top: auto !important;
  z-index: 20 !important;
  overflow: visible !important;
  border-bottom: 1px solid #f1d7d7 !important;
  background: #fff !important;
}

body.news-preview-layout .header-inner {
  min-height: 78px !important;
  align-items: center !important;
}

body.news-preview-layout .logo img {
  width: 188px !important;
  height: auto !important;
  object-fit: contain !important;
}

body.news-preview-layout .news-preview-page {
  clear: both !important;
  min-height: 420px !important;
  padding: 30px 0 46px !important;
}

body.news-preview-layout .news-preview-shell {
  width: min(1240px, calc(100% - 32px)) !important;
  margin-right: auto !important;
  margin-left: auto !important;
  grid-template-columns: minmax(0, 820px) 300px !important;
  justify-content: center !important;
  gap: 20px !important;
}

body.news-preview-layout .news-preview-article {
  min-width: 0 !important;
  padding: 26px !important;
}

body.news-preview-layout .news-preview-article h1 {
  max-width: 100% !important;
  margin: 18px 0 14px !important;
  font-size: clamp(22px, 2vw, 26px) !important;
  line-height: 1.32 !important;
  word-break: break-word !important;
}

body.news-preview-layout .news-preview-content {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

body.news-preview-layout .news-preview-content p {
  color: #263244 !important;
}

body.news-preview-layout .news-preview-side {
  width: 300px !important;
  min-width: 0 !important;
}

body.news-preview-layout .recommend-game-card {
  width: 100% !important;
}

body.news-preview-layout .recommend-game-card img {
  height: auto !important;
  object-fit: cover !important;
}

@media (max-width: 980px) {
  body.news-preview-layout .news-preview-shell {
    grid-template-columns: 1fr !important;
  }

  body.news-preview-layout .news-preview-side {
    width: 100% !important;
    position: static !important;
  }
}

@media (max-width: 760px) {
  body.news-preview-layout .topline {
    display: none !important;
  }

  body.news-preview-layout .header-inner {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 14px 0 !important;
  }

  body.news-preview-layout .logo img {
    width: 172px !important;
  }

  body.news-preview-layout .news-preview-page {
    padding: 16px 0 28px !important;
  }

  body.news-preview-layout .news-preview-shell {
    width: min(100% - 24px, 1240px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    gap: 14px !important;
  }

  body.news-preview-layout .news-preview-article {
    padding: 16px !important;
  }
}

/* Keep admin-uploaded game covers aligned with the saved 360x240 crop. */
.hot-card img,
.recommend-item img,
.recommend-info img,
.game-detail-image,
.recommend-game-card img,
body.layout-02.refined-02 .hero-card img,
body.news-preview-layout .recommend-game-card img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
  object-position: center !important;
}

.game-cover {
  width: 108px !important;
  height: 72px !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
  object-position: center !important;
}

.rank-game-cell img {
  width: 66px !important;
  height: 44px !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
  object-position: center !important;
}

.article-game {
  grid-template-columns: 96px minmax(0, 1fr) !important;
}

.article-game img {
  width: 96px !important;
  height: auto !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
  object-position: center !important;
}

.flyout-hot-card img {
  width: 84px !important;
  height: 56px !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
  object-position: center !important;
}

@media (max-width: 760px) {
  .game-cover {
    width: 78px !important;
    height: 52px !important;
  }

  #download-rank .rank-game-cell img,
  .rank-game-cell img {
    width: 66px !important;
    height: 44px !important;
    aspect-ratio: 3 / 2 !important;
  }
}

/* Front page and game-list publishing adjustments. */
a.ad-slide,
a.rank-table-row,
a.recommend-item,
a.game-row,
a.news-item {
  color: inherit !important;
  text-decoration: none !important;
}

a.slide-server-card {
  color: inherit !important;
  text-decoration: none !important;
}

.ad-copy,
.slide-detail {
  min-width: 0;
}

.ad-showcase,
.ad-track,
.ad-slide {
  height: 414px !important;
  max-height: 414px !important;
}

.ad-showcase,
.ad-track,
.ad-slide,
.ad-copy {
  overflow: hidden !important;
}

.ad-copy {
  height: 100%;
  min-height: 0;
  justify-content: flex-end !important;
}

.ad-copy h1 {
  flex: 0 0 auto;
}

.ad-copy p {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 11em;
  overflow: hidden;
}

.ad-meta {
  flex: 0 0 auto;
}

.game-tag-list,
.game-row-tags {
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px;
}

.game-row-tags {
  margin-top: 8px;
}

.game-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.tag-color-1 {
  color: #9f1239 !important;
  background: #ffe4e6 !important;
}

.tag-color-2 {
  color: #075985 !important;
  background: #e0f2fe !important;
}

.tag-color-3 {
  color: #166534 !important;
  background: #dcfce7 !important;
}

.tag-color-4 {
  color: #7c2d12 !important;
  background: #ffedd5 !important;
}

.tag-color-5 {
  color: #5b21b6 !important;
  background: #ede9fe !important;
}

.tag-color-6 {
  color: #0f766e !important;
  background: #ccfbf1 !important;
}

.category-flyout .flyout-hot-card em {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#latest-games .recommend-info .recommend-panel > p {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#latest-games .recommend-detail-desc {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.slide-detail .detail-data span {
  align-items: flex-start !important;
  justify-content: center;
  min-height: 54px !important;
  flex-direction: column;
  gap: 4px;
}

.slide-detail .detail-data b,
.slide-detail .detail-data em {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slide-detail .detail-data b {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.slide-detail .detail-data em {
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.slide-server-detail {
  align-self: center !important;
  display: flex !important;
  height: auto !important;
  min-height: 0 !important;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px !important;
  padding: 18px !important;
}

.slide-server-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.slide-server-head span {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.slide-server-head em {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fee2e2;
  background: rgba(239, 68, 68, 0.22);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.slide-server-cards {
  display: grid;
  gap: 10px;
}

.slide-server-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px;
  border-radius: 8px;
  color: #172033;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.slide-server-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.slide-server-card:nth-child(2) {
  background: linear-gradient(135deg, #e0f2fe, #ffffff);
}

.slide-server-card:nth-child(3) {
  background: linear-gradient(135deg, #dcfce7, #ffffff);
}

.slide-server-card i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #991b1b;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.slide-server-card:nth-child(2) i {
  background: #0369a1;
}

.slide-server-card:nth-child(3) i {
  background: #15803d;
}

.slide-server-card b,
.slide-server-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slide-server-card b {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.slide-server-card small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.slide-server-card em {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #991b1b;
  background: #fee2e2;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.slide-server-card.server-status-testing em {
  color: #0369a1;
  background: #e0f2fe;
}

.slide-server-card.is-empty {
  min-height: 92px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.9));
}

.slide-server-card.is-empty i {
  background: #64748b;
}

.slide-server-card.is-empty em {
  color: #475569;
  background: #e2e8f0;
}

.detail-server-list li {
  color: #f8fafc !important;
  font-weight: 800;
}

.recommend-item {
  grid-template-columns: 46px 116px minmax(0, 1fr) !important;
}

.game-row {
  grid-template-columns: 46px 116px minmax(0, 1fr) !important;
}

.hot-meta.game-tag-list span,
.ad-meta.game-tag-list span {
  width: auto !important;
}

.game-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.game-pagination button {
  min-width: 38px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #475569;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.game-pagination button.active {
  border-color: #991b1b;
  color: #ffffff;
  background: #991b1b;
}

.game-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.news-pagination button,
.news-pagination a,
.news-pagination span.news-page-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #475569;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.news-pagination .news-page-step {
  min-width: 72px;
}

.news-pagination button.active,
.news-pagination a.active {
  border-color: #991b1b;
  color: #ffffff;
  background: #991b1b;
}

.news-pagination button:disabled,
.news-pagination .is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.news-page-ellipsis {
  display: inline-flex;
  width: 26px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 900;
}

.home-news-panels {
  grid-column: 2 / -1;
  min-width: 0;
}

.home-news-panel:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
  gap: 14px;
}

.news-menu a.active {
  border-color: #fed7aa !important;
  color: #ea580c !important;
  background: #fff7ed !important;
}

.server-map-links.sitemap-server-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.server-map-links.sitemap-server-compact a {
  align-items: center;
  min-height: 40px;
  padding: 7px 9px;
  gap: 0;
}

.server-map-links.sitemap-server-compact b {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-map-links.sitemap-server-compact span {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recommend-info .recommend-panel {
  display: none !important;
}

.recommend-info .recommend-panel.is-active {
  display: flex !important;
}

.recommend-layout:has(.recommend-item:hover) .recommend-panel.is-active {
  display: flex !important;
}

.recommend-item.is-active {
  border-color: #f97316 !important;
  background: #fff7ed !important;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.12) !important;
}

.recommend-item.is-active .recommend-index {
  border-color: #f97316 !important;
  color: #ffffff !important;
  background: #f97316 !important;
  box-shadow: none !important;
}

.recommend-item.is-active .recommend-index::before {
  color: #ffffff !important;
}

.recommend-info-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin-top: 14px !important;
}

.recommend-info-list > span,
.server-info-lines .server-info-line {
  display: flex !important;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  color: #334155;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 800;
}

.recommend-info-list > span::before,
.server-info-lines .server-info-line::before {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 999px;
  background: #991b1b;
  content: "";
}

.server-info-lines {
  display: grid !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
}

.server-info-lines .server-info-line {
  align-items: center;
  min-height: 36px;
  padding-top: 7px;
  padding-bottom: 7px;
  color: #7c2d12 !important;
  background: #ffedd5 !important;
  white-space: normal;
  line-height: 1.55;
  text-decoration: none !important;
}

.server-info-lines .server-info-line:nth-child(2) {
  color: #075985 !important;
  background: #e0f2fe !important;
}

.server-info-lines .server-info-line:nth-child(3) {
  color: #166534 !important;
  background: #dcfce7 !important;
}

.recommend-info-list em {
  min-width: 0;
  color: inherit;
  font-style: normal;
  font-weight: 900;
}

.game-info-grid span {
  gap: 4px;
  min-width: 0;
}

.game-library-detail {
  display: flex !important;
  min-height: 602px;
  padding: 14px !important;
  flex-direction: column;
}

.game-library-detail .recommend-panel {
  display: flex !important;
  height: 100%;
  flex-direction: column;
}

.game-library-detail h3 {
  margin: 14px 0 8px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
}

.game-library-detail p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.75;
}

.game-library-detail .recommend-info-action {
  margin-top: 16px !important;
}

.recommend-info .recommend-panel .recommend-info-action {
  margin-top: 16px !important;
}

.detail-facts .detail-latest {
  align-items: flex-start !important;
  min-height: auto !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

[data-detail-latest] {
  white-space: normal;
  line-height: 1.65;
}

.server-info-lines[data-detail-latest] {
  display: grid !important;
  gap: 8px !important;
}

@media (max-width: 980px) {
  .home-news-panels {
    grid-column: 1 / -1;
  }

  .home-news-panel:not([hidden]) {
    grid-template-columns: 1fr;
  }

  .server-map-links.sitemap-server-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .recommend-item,
  .game-row {
    grid-template-columns: 40px 78px minmax(0, 1fr) !important;
  }

  .game-tag {
    min-height: 22px;
    padding: 0 8px;
    font-size: 11px;
  }

  .server-map-links.sitemap-server-compact {
    grid-template-columns: 1fr;
  }
}

/* New transparent logo asset: keep the 1336x500 artwork ratio across generated pages. */
body .site-header .logo,
body .logo {
  width: 160px !important;
  height: 60px !important;
  padding: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
}

body .site-header .logo img,
body .logo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

body .site-footer .footer-logo,
body .footer-logo {
  width: 176px !important;
  height: 66px !important;
  padding: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

body .site-footer .footer-logo img,
body .footer-logo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 760px) {
  body .site-header .logo,
  body .logo {
    width: 144px !important;
    height: 54px !important;
  }

  body .site-footer .footer-logo,
  body .footer-logo {
    width: 152px !important;
    height: 57px !important;
  }
}

.ai-news-content {
  display: grid !important;
  gap: 16px !important;
}

.ai-news-section {
  position: relative !important;
  display: grid !important;
  gap: 12px !important;
  overflow: hidden !important;
  padding: 18px 20px !important;
  border: 1px solid #edf0f5 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05) !important;
}

.ai-news-section::before {
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 4px !important;
  background: var(--ai-section-accent, #b91c1c) !important;
  content: "" !important;
}

.ai-news-intro {
  border-color: #f4d9d9 !important;
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%) !important;
}

.ai-tone-red {
  --ai-section-accent: #b91c1c;
  --ai-section-soft: #fff1f2;
  --ai-section-ink: #991b1b;
}

.ai-tone-blue {
  --ai-section-accent: #2563eb;
  --ai-section-soft: #eff6ff;
  --ai-section-ink: #1d4ed8;
}

.ai-tone-amber {
  --ai-section-accent: #d97706;
  --ai-section-soft: #fffbeb;
  --ai-section-ink: #92400e;
}

.ai-tone-green {
  --ai-section-accent: #16a34a;
  --ai-section-soft: #f0fdf4;
  --ai-section-ink: #166534;
}

.ai-tone-violet {
  --ai-section-accent: #7c3aed;
  --ai-section-soft: #f5f3ff;
  --ai-section-ink: #6d28d9;
}

.ai-tone-cyan {
  --ai-section-accent: #0891b2;
  --ai-section-soft: #ecfeff;
  --ai-section-ink: #0e7490;
}

.ai-tone-slate {
  --ai-section-accent: #475569;
  --ai-section-soft: #f8fafc;
  --ai-section-ink: #334155;
}

.ai-style-soft {
  background: linear-gradient(180deg, var(--ai-section-soft, #fff7f7) 0%, #ffffff 100%) !important;
}

.ai-style-line {
  border-top: 3px solid var(--ai-section-accent, #b91c1c) !important;
}

.ai-style-note {
  background: linear-gradient(90deg, var(--ai-section-soft, #fff7f7) 0%, #ffffff 68%) !important;
}

.ai-style-solid .ai-news-badge {
  color: #ffffff !important;
  background: var(--ai-section-accent, #b91c1c) !important;
}

.backend-article-content .ai-news-section h2,
.news-preview-content .ai-news-section h2 {
  display: flex !important;
  gap: 10px !important;
  align-items: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #0f172a !important;
  font-size: 21px !important;
  line-height: 1.45 !important;
}

.backend-article-content .ai-news-section h2 strong,
.news-preview-content .ai-news-section h2 strong {
  min-width: 0 !important;
  font-weight: 900 !important;
}

.ai-news-badge,
.ai-news-section-no {
  display: inline-flex !important;
  min-width: 42px !important;
  height: 26px !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  color: var(--ai-section-ink, #991b1b) !important;
  background: var(--ai-section-soft, #fff1f2) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.backend-article-content .ai-news-paragraph,
.news-preview-content .ai-news-paragraph {
  margin: 0 !important;
  color: #334155 !important;
  font-size: 15px !important;
  line-height: 2 !important;
}

.backend-article-content .ai-news-paragraph-lead,
.news-preview-content .ai-news-paragraph-lead {
  color: #1f2937 !important;
}

.ai-news-list {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ai-news-list li {
  position: relative !important;
  margin: 0 !important;
  padding: 9px 12px 9px 28px !important;
  border-radius: 8px !important;
  color: #334155 !important;
  background: #f8fafc !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}

.ai-news-list li::before {
  position: absolute !important;
  left: 12px !important;
  top: 18px !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: var(--ai-section-accent, #b91c1c) !important;
  content: "" !important;
}

@media (max-width: 1120px) {
  .ad-showcase,
  .ad-track,
  .ad-slide {
    height: 560px !important;
    max-height: 560px !important;
  }
}

@media (max-width: 760px) {
  .ad-showcase,
  .ad-track,
  .ad-slide {
    height: 520px !important;
    max-height: 520px !important;
  }

  .ad-copy p {
    max-height: 8.5em;
  }
}

@media (max-width: 760px) {
  .ai-news-section {
    padding: 16px !important;
  }

  .backend-article-content .ai-news-section h2,
  .news-preview-content .ai-news-section h2 {
    font-size: 19px !important;
  }
}

.backend-article-content .ai-news-content,
.news-preview-content .ai-news-content {
  display: block !important;
}

.backend-article-content .ai-news-section,
.news-preview-content .ai-news-section {
  display: block !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 0 22px !important;
  border: 0 !important;
  border-bottom: 1px solid #eef2f7 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.backend-article-content .ai-news-section + .ai-news-section,
.news-preview-content .ai-news-section + .ai-news-section {
  padding-top: 22px !important;
}

.backend-article-content .ai-news-section::before,
.news-preview-content .ai-news-section::before {
  display: none !important;
}

.backend-article-content .ai-news-section h2,
.news-preview-content .ai-news-section h2 {
  display: block !important;
  margin: 0 0 14px !important;
  padding: 0 0 0 13px !important;
  border: 0 !important;
  border-left: 4px solid #b91c1c !important;
  color: #111827 !important;
  background: transparent !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
}

.backend-article-content .ai-news-badge,
.news-preview-content .ai-news-badge,
.backend-article-content .ai-news-section-no,
.news-preview-content .ai-news-section-no {
  display: none !important;
}

.backend-article-content .ai-news-paragraph,
.news-preview-content .ai-news-paragraph {
  margin: 12px 0 0 !important;
  color: #334155 !important;
  background: transparent !important;
  font-size: 16px !important;
  line-height: 1.95 !important;
}

.backend-article-content .ai-news-paragraph-lead,
.news-preview-content .ai-news-paragraph-lead {
  margin-top: 0 !important;
  padding-left: 14px !important;
  border-left: 3px solid #e5e7eb !important;
  color: #1f2937 !important;
  font-size: 16px !important;
}

.backend-article-content .ai-news-paragraph strong,
.news-preview-content .ai-news-paragraph strong,
.backend-article-content .ai-news-list strong,
.news-preview-content .ai-news-list strong {
  color: #991b1b !important;
  font-weight: 900 !important;
}

.backend-article-content .ai-news-paragraph em,
.news-preview-content .ai-news-paragraph em,
.backend-article-content .ai-news-list em,
.news-preview-content .ai-news-list em {
  color: #475569 !important;
  font-style: normal !important;
  font-weight: 800 !important;
}

.backend-article-content .article-game-link,
.news-preview-content .article-game-link {
  color: #b91c1c !important;
  font-weight: 900 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
}

.backend-article-content .article-game-link:hover,
.news-preview-content .article-game-link:hover {
  color: #7f1d1d !important;
}

.backend-article-content .ai-news-list,
.news-preview-content .ai-news-list {
  display: grid !important;
  gap: 8px !important;
  margin: 14px 0 0 !important;
  padding: 0 0 0 20px !important;
  list-style: disc !important;
}

.backend-article-content .ai-news-list li,
.news-preview-content .ai-news-list li {
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: #334155 !important;
  background: transparent !important;
  font-size: 15px !important;
  line-height: 1.85 !important;
}

.backend-article-content .ai-news-list li::before,
.news-preview-content .ai-news-list li::before {
  display: none !important;
}

@media (max-width: 760px) {
  .backend-article-content .ai-news-section,
  .news-preview-content .ai-news-section {
    padding-bottom: 18px !important;
  }

  .backend-article-content .ai-news-section h2,
  .news-preview-content .ai-news-section h2 {
    font-size: 19px !important;
  }

  .backend-article-content .ai-news-paragraph,
  .news-preview-content .ai-news-paragraph {
    font-size: 15px !important;
  }
}

/* Latest static publishing interactions. */
.ad-showcase.is-manual-carousel .ad-track,
.ad-showcase.is-manual-carousel:hover .ad-track {
  animation: none !important;
  transition: transform 0.42s ease !important;
  will-change: transform;
}

.ad-showcase.is-manual-carousel {
  position: relative;
}

.ad-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.ad-control {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.62);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  pointer-events: auto;
}

.ad-control:hover {
  background: rgba(153, 27, 27, 0.88);
}

.ad-dots span {
  cursor: pointer;
}

.ad-dots span.is-active,
.ad-dots span:first-child.is-active {
  width: 40px !important;
  background: #ffffff !important;
  opacity: 1 !important;
}

.ad-dots span:first-child:not(.is-active) {
  width: 10px !important;
  background: rgba(255, 255, 255, 0.44) !important;
}

a.news-cover-story,
a.news-lead {
  color: inherit !important;
  text-decoration: none !important;
}

.news-cover-story[style*="--news-cover-img"] {
  background-image:
    linear-gradient(135deg, rgba(17, 24, 39, 0.78), rgba(127, 29, 29, 0.48)),
    var(--news-cover-img) !important;
  background-position: center !important;
  background-size: cover !important;
}

.hot-meta.game-tag-list,
.game-row-tags {
  max-height: none !important;
  overflow: visible !important;
}

.search-result-row[hidden],
.search-result-row.is-search-hidden {
  display: none !important;
}

[data-search-empty][hidden],
[data-detail-action][hidden] {
  display: none !important;
}

.search-board .list-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .ad-controls {
    left: 10px;
    right: 10px;
  }

  .ad-control {
    width: 36px;
    height: 36px;
    font-size: 25px;
  }
}

/* Search result rows and carousel controls: layout corrections. */
.search-results-page .search-result-row,
.search-results-page .game-row.search-result-row {
  grid-template-columns: 64px 164px minmax(0, 1fr) 84px !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: 126px !important;
  padding: 16px !important;
}

.search-results-page .search-result-row .game-no {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: center !important;
}

.search-results-page .search-result-row .game-cover {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 164px !important;
  height: 92px !important;
}

.search-results-page .search-result-row .game-main {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  min-width: 0 !important;
}

.search-results-page .search-result-row .game-main p {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-results-page .search-result-row .game-entry {
  grid-column: 4 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ad-showcase.is-manual-carousel .ad-controls {
  left: auto !important;
  right: 24px !important;
  top: auto !important;
  bottom: 54px !important;
  width: auto;
  gap: 8px;
  justify-content: flex-end;
  transform: none !important;
}

.ad-showcase.is-manual-carousel .ad-control {
  width: 32px !important;
  height: 32px !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(15, 23, 42, 0.28) !important;
  box-shadow: none !important;
  font-size: 22px !important;
  opacity: 0.62;
  backdrop-filter: blur(6px);
}

.ad-showcase.is-manual-carousel:hover .ad-control {
  opacity: 0.9;
}

.ad-showcase.is-manual-carousel .ad-control:hover {
  background: rgba(153, 27, 27, 0.48) !important;
}

@media (max-width: 900px) {
  .search-results-page .search-result-row,
  .search-results-page .game-row.search-result-row {
    grid-template-columns: 52px 120px minmax(0, 1fr) !important;
    gap: 12px !important;
    min-height: 0 !important;
  }

  .search-results-page .search-result-row .game-cover {
    width: 120px !important;
    height: 76px !important;
  }

  .search-results-page .search-result-row .game-entry {
    grid-column: 3 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    width: 76px !important;
  }
}

@media (max-width: 760px) {
  .ad-showcase.is-manual-carousel .ad-controls {
    right: 14px !important;
    bottom: 48px !important;
  }

  .ad-showcase.is-manual-carousel .ad-control {
    width: 30px !important;
    height: 30px !important;
    font-size: 20px !important;
  }
}

/* Subdomain final pages use clean paths or absolute URLs, not *.html filenames. */
.channel-nav a:first-child::before,
.channel-nav a[href="/"]::before {
  content: "首" !important;
}

.channel-nav a[href*="/mobile-games"]::before {
  content: "手" !important;
}

.channel-nav a[href*="/pc-games"]::before {
  content: "PC" !important;
  font-size: 9px !important;
}

.channel-nav a[href*="/web-games"]::before {
  content: "页" !important;
}

.channel-nav a[href*="/single-games"]::before {
  content: "单" !important;
}

.channel-nav a[href*="/game-news"]::before {
  content: "讯" !important;
}

body.layout-02.refined-02 .latest-news-side .server-news .section-title h2 {
  font-size: 22px !important;
  line-height: 1.25 !important;
}

body.layout-02.refined-02 .server-side-panel .server-news {
  box-sizing: border-box !important;
  width: 100% !important;
  overflow: hidden !important;
}

body.layout-02.refined-02 .server-side-panel .server-news .section-title {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
}

body.layout-02.refined-02 .server-side-panel .server-news .section-title h2 {
  min-width: 0 !important;
  overflow: hidden !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.layout-02.refined-02 .server-side-panel .server-news .section-title span {
  justify-self: end !important;
  white-space: nowrap !important;
}

body.layout-02.refined-02 .latest-news-side .server-news .news-list {
  display: grid !important;
  gap: 8px !important;
}

body.layout-02.refined-02 .server-side-panel .server-news .news-list {
  display: grid !important;
  gap: 8px !important;
  width: 100% !important;
}

body.layout-02.refined-02 .latest-news-side .server-news .news-list a {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 54px !important;
  gap: 10px !important;
  align-items: center !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 0 10px !important;
}

body.layout-02.refined-02 .server-side-panel .server-news .news-list a {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 54px !important;
  gap: 10px !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 0 10px !important;
  overflow: hidden !important;
}

body.layout-02.refined-02 .latest-news-side .server-news .news-list em {
  justify-self: start !important;
  white-space: nowrap !important;
}

body.layout-02.refined-02 .server-side-panel .server-news .news-list em {
  justify-self: start !important;
  white-space: nowrap !important;
}

body.layout-02.refined-02 .latest-news-side .server-news .news-list strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.layout-02.refined-02 .server-side-panel .server-news .news-list strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.layout-02.refined-02 .latest-news-side .server-news .news-list span {
  justify-self: end !important;
  color: #64748b !important;
  white-space: nowrap !important;
}

body.layout-02.refined-02 .server-side-panel .server-news .news-list span {
  justify-self: end !important;
  color: #64748b !important;
  text-align: right !important;
  white-space: nowrap !important;
}

/* Static publish fixes: full type chips, clickable server rows, connected section hero. */
.game-type-filter-panel .filter-row {
  align-items: flex-start !important;
}

.game-type-filter-panel .all-type-options {
  display: flex !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
  max-height: none !important;
  padding-bottom: 0 !important;
}

.game-type-filter-panel .all-type-options a {
  flex: 0 0 auto !important;
}

body.layout-02.refined-02 .server-refined-table {
  table-layout: fixed !important;
}

body.layout-02.refined-02 .server-refined-table th:nth-child(1),
body.layout-02.refined-02 .server-refined-table td:nth-child(1) {
  width: 24% !important;
}

body.layout-02.refined-02 .server-refined-table th:nth-child(2),
body.layout-02.refined-02 .server-refined-table td:nth-child(2) {
  width: 44% !important;
  text-align: left !important;
}

body.layout-02.refined-02 .server-refined-table th:nth-child(3),
body.layout-02.refined-02 .server-refined-table td:nth-child(3) {
  width: 20% !important;
}

body.layout-02.refined-02 .server-refined-table th:nth-child(4),
body.layout-02.refined-02 .server-refined-table td:nth-child(4) {
  width: 12% !important;
}

body.layout-02.refined-02 .server-refined-table tr.server-click-row {
  cursor: pointer !important;
}

body.layout-02.refined-02 .server-refined-table tr.server-click-row:focus-visible td {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.16) !important;
}

body.layout-02.refined-02 .server-refined-table .benefit-tags {
  justify-content: flex-start !important;
}

body.layout-02.refined-02 .server-refined-table .server-view {
  position: relative !important;
  z-index: 1 !important;
}

body.layout-03 .hero-dashboard-refined .wrap {
  grid-template-columns: minmax(0, 1fr) 340px !important;
  gap: 0 !important;
  align-items: stretch !important;
}

body.layout-03 .hero-info-panel {
  height: 100% !important;
  border-right: 0 !important;
  border-radius: 10px 0 0 10px !important;
}

body.layout-03 .hero-opening-board {
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 12px !important;
  min-height: 0 !important;
  padding: 18px !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 0 10px 10px 0 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(82, 16, 16, 0.84)) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

body.layout-03 .hero-opening-board .board-title {
  margin-bottom: 0 !important;
}

body.layout-03 .hero-opening-board .board-title span {
  color: #ffffff !important;
}

body.layout-03 .hero-opening-board .board-title strong {
  color: #fee2e2 !important;
  background: rgba(239, 68, 68, 0.22) !important;
}

body.layout-03 .hero-opening-board .board-list {
  display: grid !important;
  gap: 10px !important;
  align-content: center !important;
}

body.layout-03 .hero-opening-board .server-board-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 72px !important;
  min-height: 66px !important;
  padding: 10px 12px !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

body.layout-03 .hero-opening-board .server-board-item:only-child {
  min-height: 82px !important;
}

body.layout-03 .hero-opening-board .board-name em {
  color: #fee2e2 !important;
  background: rgba(239, 68, 68, 0.2) !important;
}

body.layout-03 .hero-opening-board .board-name b,
body.layout-03 .hero-opening-board .board-time b {
  color: #ffffff !important;
}

body.layout-03 .hero-opening-board .board-name small,
body.layout-03 .hero-opening-board .board-time small {
  color: #cbd5e1 !important;
}

body.layout-03 .hero-opening-board .empty-state {
  margin: 0 !important;
  color: #fee2e2 !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 1120px) {
  body.layout-03 .hero-dashboard-refined .wrap {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.layout-03 .hero-info-panel,
  body.layout-03 .hero-opening-board {
    border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 760px) {
  .game-type-filter-panel .filter-row {
    grid-template-columns: 1fr !important;
  }

  .game-type-filter-panel .all-type-options {
    width: 100% !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  body.layout-02.refined-02 .server-refined-table tr.server-click-row {
    grid-template-columns: 52px minmax(0, 1fr) 78px !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(1) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100% !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(2) {
    grid-column: 2 / -1 !important;
    grid-row: 3 !important;
    width: 100% !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(4) {
    grid-column: 3 !important;
    grid-row: 2 !important;
    width: 100% !important;
    justify-self: end !important;
  }

  body.layout-02.refined-02 .server-refined-table .benefit-tags {
    padding-left: 0 !important;
  }

  body.layout-03 .hero-opening-board .server-board-item {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.layout-03 .hero-opening-board .board-time {
    justify-items: start !important;
  }
}

/* 2026-06-20: static section and homepage fixes. */
.ad-showcase.is-manual-carousel .ad-controls {
  left: auto !important;
  right: 22px !important;
  top: auto !important;
  bottom: 18px !important;
  width: auto !important;
  transform: none !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  pointer-events: auto !important;
}

.ad-showcase.is-manual-carousel .ad-control {
  width: 30px !important;
  height: 30px !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  background: rgba(15, 23, 42, 0.22) !important;
  box-shadow: none !important;
  opacity: 0.78 !important;
}

.ad-showcase.is-manual-carousel .ad-control:hover {
  background: rgba(185, 28, 28, 0.5) !important;
  opacity: 1 !important;
}

body.layout-03 .server-hero,
body.layout-03 .hero-dashboard-refined,
body.layout-03 .preview-hero {
  border-radius: 0 !important;
}

body.layout-03 .hero-dashboard-refined .wrap {
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 16px !important;
}

body.layout-03 .hero-info-panel {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 10px !important;
  overflow: visible !important;
}

body.layout-03 .hero-opening-board {
  justify-content: flex-start !important;
  border-radius: 10px !important;
}

body.layout-03 .hero-opening-board .server-board-item {
  grid-template-columns: minmax(0, 1fr) minmax(118px, auto) !important;
  gap: 14px !important;
}

body.layout-03 .hero-opening-board .board-name {
  min-width: 0 !important;
}

body.layout-03 .hero-opening-board .board-time {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  min-width: 118px !important;
  gap: 4px !important;
}

body.layout-03 .hero-opening-board .board-time b {
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  white-space: nowrap !important;
}

body.layout-03 .side-download-card {
  display: grid !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
  padding: 16px !important;
}

body.layout-03 .side-download-card .section-title {
  margin-bottom: 0 !important;
}

body.layout-03 .side-download-card p {
  margin: 0 !important;
}

body.layout-03 .side-download-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.layout-03 .side-entry-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  background: #b91c1c !important;
  font-weight: 900 !important;
}

body.layout-03 .side-entry-action.secondary {
  color: #7f1d1d !important;
  background: #fff1f2 !important;
}

body.layout-03 .side-entry-action.is-disabled {
  pointer-events: none !important;
  opacity: 0.58 !important;
}

@media (max-width: 1120px) {
  body.layout-03 .hero-dashboard-refined .wrap {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

@media (max-width: 760px) {
  .ad-showcase.is-manual-carousel .ad-controls {
    right: 14px !important;
    bottom: 14px !important;
  }

  body.layout-03 .hero-opening-board .server-board-item {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.layout-03 .hero-opening-board .board-time {
    align-items: flex-start !important;
  }

  body.layout-03 .side-download-actions {
    grid-template-columns: 1fr !important;
  }
}

/* 2026-06-20: homepage title links and section opening cards. */
.ad-copy .ad-title-link {
  color: inherit !important;
  text-decoration: none !important;
}

.ad-copy .ad-title-link:hover {
  color: #fee2e2 !important;
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
}

body.layout-03 .hero-opening-board .board-list {
  grid-template-columns: 1fr !important;
}

body.layout-03 .hero-opening-board .server-board-item {
  width: 100% !important;
  grid-template-columns: minmax(0, 1fr) minmax(132px, auto) !important;
}

body.layout-03 .hero-opening-board .board-time {
  min-width: 132px !important;
}

@media (max-width: 760px) {
  body.layout-03 .hero-opening-board .server-board-item {
    grid-template-columns: 1fr !important;
  }

  body.layout-03 .hero-opening-board .board-time {
    min-width: 0 !important;
  }
}

/* 2026-06-20: game detail title and section hero meta alignment. */
body.layout-02.refined-02 .game-hero-title {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 10px 12px !important;
}

body.layout-02.refined-02 .game-hero-title small {
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 0.42em !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

body.layout-02.refined-02 .server-section > .section-title h2,
body.layout-02.refined-02 .intro-news-row .section-title h2 {
  font-size: 20px !important;
  line-height: 1.35 !important;
}

body.layout-02.refined-02 .server-section > .section-title {
  align-items: flex-start !important;
}

body.layout-03 .hero-info-panel .hero-meta-grid {
  margin-top: 12px !important;
  align-items: stretch !important;
}

body.layout-03 .hero-info-panel .hero-meta-grid span {
  align-content: center !important;
  min-height: 58px !important;
  padding-top: 12px !important;
  padding-bottom: 10px !important;
}

@media (max-width: 760px) {
  body.layout-02.refined-02 .game-hero-title {
    gap: 8px !important;
  }

  body.layout-02.refined-02 .game-hero-title small {
    width: 100% !important;
    font-size: 0.46em !important;
  }

  body.layout-02.refined-02 .server-section > .section-title h2,
  body.layout-02.refined-02 .intro-news-row .section-title h2 {
    font-size: 18px !important;
  }
}

/* 2026-06-20: compact server section headings and reusable news layouts. */
body.layout-03 .content-card > .section-title h2,
body.layout-03 .server-news .section-title h2,
body.layout-03 .side-download-card .section-title h2 {
  max-width: 100% !important;
  font-size: 16px !important;
  line-height: 1.38 !important;
  overflow-wrap: anywhere !important;
}

body.layout-03 .side-download-card h3 {
  font-size: 16px !important;
  line-height: 1.38 !important;
  overflow-wrap: anywhere !important;
}

.rich-editor .news-layout,
.backend-article-content .news-layout,
.news-preview-content .news-layout {
  display: grid;
  gap: 18px;
  color: #263244;
  font-size: 16px;
  line-height: 1.92;
}

.rich-editor .news-layout h2,
.backend-article-content .news-layout h2,
.news-preview-content .news-layout h2 {
  margin: 10px 0 0;
  padding-left: 12px;
  border-left: 4px solid var(--news-accent, #b91c1c);
  color: #111827;
  font-size: 24px;
  line-height: 1.35;
}

.rich-editor .news-layout p,
.backend-article-content .news-layout p,
.news-preview-content .news-layout p {
  margin: 0;
}

.rich-editor .news-layout .news-lead,
.backend-article-content .news-layout .news-lead,
.news-preview-content .news-layout .news-lead {
  padding: 0 0 0 14px;
  border-left: 2px solid var(--news-soft, #fecaca);
  color: #334155;
  font-size: 17px;
}

.rich-editor .news-layout strong,
.backend-article-content .news-layout strong,
.news-preview-content .news-layout strong {
  color: var(--news-accent, #b91c1c);
}

.rich-editor .news-layout em,
.backend-article-content .news-layout em,
.news-preview-content .news-layout em {
  color: var(--news-second, #0f766e);
  font-style: normal;
  font-weight: 700;
}

.rich-editor .news-layout ul,
.rich-editor .news-layout ol,
.backend-article-content .news-layout ul,
.backend-article-content .news-layout ol,
.news-preview-content .news-layout ul,
.news-preview-content .news-layout ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.rich-editor .news-layout li::marker,
.backend-article-content .news-layout li::marker,
.news-preview-content .news-layout li::marker {
  color: var(--news-accent, #b91c1c);
  font-weight: 900;
}

.rich-editor .news-layout blockquote,
.backend-article-content .news-layout blockquote,
.news-preview-content .news-layout blockquote {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--news-second, #0f766e);
  color: #475569;
  background: #f8fafc;
}

.rich-editor .news-layout figure,
.backend-article-content .news-layout figure,
.news-preview-content .news-layout figure {
  margin: 4px 0;
}

.rich-editor .news-layout figcaption,
.backend-article-content .news-layout figcaption,
.news-preview-content .news-layout figcaption {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.news-layout-1 { --news-accent: #b91c1c; --news-second: #0f766e; --news-soft: #fecaca; }
.news-layout-2 { --news-accent: #991b1b; --news-second: #1d4ed8; --news-soft: #fee2e2; }
.news-layout-3 { --news-accent: #be123c; --news-second: #047857; --news-soft: #ffe4e6; }
.news-layout-4 { --news-accent: #9f1239; --news-second: #0e7490; --news-soft: #fecdd3; }
.news-layout-5 { --news-accent: #dc2626; --news-second: #4338ca; --news-soft: #fee2e2; }
.news-layout-6 { --news-accent: #7f1d1d; --news-second: #15803d; --news-soft: #fecaca; }
.news-layout-7 { --news-accent: #a21caf; --news-second: #0f766e; --news-soft: #f5d0fe; }
.news-layout-8 { --news-accent: #c2410c; --news-second: #0369a1; --news-soft: #fed7aa; }
.news-layout-9 { --news-accent: #b45309; --news-second: #be123c; --news-soft: #fde68a; }
.news-layout-10 { --news-accent: #0f766e; --news-second: #b91c1c; --news-soft: #ccfbf1; }
.news-layout-11 { --news-accent: #1d4ed8; --news-second: #b45309; --news-soft: #dbeafe; }
.news-layout-12 { --news-accent: #4338ca; --news-second: #15803d; --news-soft: #e0e7ff; }
.news-layout-13 { --news-accent: #0e7490; --news-second: #be123c; --news-soft: #cffafe; }
.news-layout-14 { --news-accent: #047857; --news-second: #991b1b; --news-soft: #d1fae5; }
.news-layout-15 { --news-accent: #4d7c0f; --news-second: #7e22ce; --news-soft: #ecfccb; }
.news-layout-16 { --news-accent: #be185d; --news-second: #2563eb; --news-soft: #fce7f3; }
.news-layout-17 { --news-accent: #7c2d12; --news-second: #047857; --news-soft: #ffedd5; }
.news-layout-18 { --news-accent: #334155; --news-second: #b91c1c; --news-soft: #e2e8f0; }
.news-layout-19 { --news-accent: #155e75; --news-second: #c2410c; --news-soft: #cffafe; }
.news-layout-20 { --news-accent: #6d28d9; --news-second: #0f766e; --news-soft: #ede9fe; }

.news-layout-2 h2,
.news-layout-6 h2,
.news-layout-10 h2,
.news-layout-14 h2,
.news-layout-18 h2 {
  border-left-width: 0;
  padding-left: 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--news-soft);
}

.news-layout-4 .news-lead,
.news-layout-8 .news-lead,
.news-layout-12 .news-lead,
.news-layout-16 .news-lead,
.news-layout-20 .news-lead {
  padding: 12px 14px;
  border: 1px solid var(--news-soft);
  border-left: 4px solid var(--news-accent);
  background: #fbfcfd;
}

.backend-article-content .news-layout,
.news-preview-content .news-layout {
  display: block;
  color: #263244;
  font-size: 17px;
  line-height: 1.95;
}

.backend-article-content .news-layout > .news-lead,
.news-preview-content .news-layout > .news-lead {
  margin: 0 0 26px;
  padding: 0 0 0 18px;
  border-left: 4px solid var(--news-accent, #b91c1c);
  color: #1f2937;
  font-size: 18px;
  line-height: 1.9;
  font-weight: 700;
}

.backend-article-content .news-section,
.news-preview-content .news-section {
  position: relative;
  margin: 0 0 34px;
  padding-top: 24px;
  border-top: 1px solid #e7edf4;
}

.backend-article-content .news-section:first-of-type,
.news-preview-content .news-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.backend-article-content .news-heading-wrap,
.news-preview-content .news-heading-wrap {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0 0 15px;
}

.backend-article-content .news-section-no,
.news-preview-content .news-section-no {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 36px;
  border: 1px solid var(--news-soft, #fecaca);
  border-radius: 8px;
  color: var(--news-accent, #b91c1c);
  background: #fff;
  font-size: 14px;
  font-weight: 900;
}

.backend-article-content .news-layout h2.news-heading,
.backend-article-content .news-layout .news-heading,
.news-preview-content .news-layout h2.news-heading,
.news-preview-content .news-layout .news-heading {
  margin: 0;
  padding: 0;
  border: 0;
  color: #111827;
  font-size: 26px;
  line-height: 1.36;
}

.backend-article-content .news-section-body,
.news-preview-content .news-section-body {
  display: grid;
  gap: 14px;
}

.backend-article-content .news-layout .news-paragraph,
.news-preview-content .news-layout .news-paragraph {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.backend-article-content .news-layout .news-callout,
.news-preview-content .news-layout .news-callout {
  margin: 2px 0;
  padding: 13px 15px;
  border-left: 4px solid var(--news-second, #0f766e);
  color: #475569;
  background: #f8fafc;
  line-height: 1.9;
}

.backend-article-content .news-layout .news-list,
.news-preview-content .news-layout .news-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 24px;
  color: #334155;
  line-height: 1.9;
}

.backend-article-content .news-layout .news-figure,
.news-preview-content .news-layout .news-figure {
  margin: 6px 0;
}

.backend-article-content .news-layout .news-figure img,
.news-preview-content .news-layout .news-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.backend-article-content .news-layout strong,
.backend-article-content .news-layout .article-game-link,
.news-preview-content .news-layout strong,
.news-preview-content .news-layout .article-game-link {
  color: var(--news-accent, #b91c1c);
  font-weight: 900;
}

.backend-article-content .news-layout .article-game-link,
.news-preview-content .news-layout .article-game-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.backend-article-content .news-layout em,
.news-preview-content .news-layout em {
  color: var(--news-second, #0f766e);
  font-style: normal;
  font-weight: 800;
}

.news-layout-2 .news-heading-wrap,
.news-layout-6 .news-heading-wrap,
.news-layout-10 .news-heading-wrap,
.news-layout-14 .news-heading-wrap,
.news-layout-18 .news-heading-wrap {
  grid-template-columns: 1fr;
}

.news-layout-2 .news-section-no,
.news-layout-6 .news-section-no,
.news-layout-10 .news-section-no,
.news-layout-14 .news-section-no,
.news-layout-18 .news-section-no {
  display: none;
}

.backend-article-content .news-layout-2 h2.news-heading,
.backend-article-content .news-layout-6 h2.news-heading,
.backend-article-content .news-layout-10 h2.news-heading,
.backend-article-content .news-layout-14 h2.news-heading,
.backend-article-content .news-layout-18 h2.news-heading,
.news-preview-content .news-layout-2 h2.news-heading,
.news-preview-content .news-layout-6 h2.news-heading,
.news-preview-content .news-layout-10 h2.news-heading,
.news-preview-content .news-layout-14 h2.news-heading,
.news-preview-content .news-layout-18 h2.news-heading {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--news-soft, #fecaca);
}

.backend-article-content .news-layout-3 .news-section,
.backend-article-content .news-layout-7 .news-section,
.backend-article-content .news-layout-11 .news-section,
.backend-article-content .news-layout-15 .news-section,
.backend-article-content .news-layout-19 .news-section,
.news-preview-content .news-layout-3 .news-section,
.news-preview-content .news-layout-7 .news-section,
.news-preview-content .news-layout-11 .news-section,
.news-preview-content .news-layout-15 .news-section,
.news-preview-content .news-layout-19 .news-section {
  padding: 0 0 0 20px;
  border-top: 0;
  border-left: 2px solid var(--news-soft, #fecaca);
}

.backend-article-content .news-layout-3 .news-section + .news-section,
.backend-article-content .news-layout-7 .news-section + .news-section,
.backend-article-content .news-layout-11 .news-section + .news-section,
.backend-article-content .news-layout-15 .news-section + .news-section,
.backend-article-content .news-layout-19 .news-section + .news-section,
.news-preview-content .news-layout-3 .news-section + .news-section,
.news-preview-content .news-layout-7 .news-section + .news-section,
.news-preview-content .news-layout-11 .news-section + .news-section,
.news-preview-content .news-layout-15 .news-section + .news-section,
.news-preview-content .news-layout-19 .news-section + .news-section {
  margin-top: 34px;
}

.backend-article-content .news-layout-4 > .news-lead,
.backend-article-content .news-layout-8 > .news-lead,
.backend-article-content .news-layout-12 > .news-lead,
.backend-article-content .news-layout-16 > .news-lead,
.backend-article-content .news-layout-20 > .news-lead,
.news-preview-content .news-layout-4 > .news-lead,
.news-preview-content .news-layout-8 > .news-lead,
.news-preview-content .news-layout-12 > .news-lead,
.news-preview-content .news-layout-16 > .news-lead,
.news-preview-content .news-layout-20 > .news-lead {
  padding: 15px 17px;
  border: 1px solid var(--news-soft, #fecaca);
  border-left: 4px solid var(--news-accent, #b91c1c);
  border-radius: 8px;
  background: #fbfcfd;
}

.news-layout-5 .news-section-no,
.news-layout-9 .news-section-no,
.news-layout-13 .news-section-no,
.news-layout-17 .news-section-no {
  border-color: transparent;
  color: #fff;
  background: var(--news-accent, #b91c1c);
}

.cms-text .news-layout {
  display: block;
  color: #263244;
  font-size: 16px;
  line-height: 1.95;
}

.cms-text .news-layout > .news-lead {
  margin: 0 0 24px;
  padding: 0 0 0 16px;
  border-left: 4px solid var(--news-accent, #b91c1c);
  color: #1f2937;
  font-size: 17px;
  line-height: 1.9;
  font-weight: 700;
}

.cms-text .news-section {
  position: relative;
  margin: 0 0 30px;
  padding-top: 22px;
  border-top: 1px solid #e7edf4;
}

.cms-text .news-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.cms-text .news-heading-wrap {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 0 14px;
}

.cms-text .news-section-no {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 34px;
  border: 1px solid var(--news-soft, #fecaca);
  border-radius: 8px;
  color: var(--news-accent, #b91c1c);
  background: #fff;
  font-size: 14px;
  font-weight: 900;
}

.cms-text .news-layout h2.news-heading,
.cms-text .news-layout .news-heading {
  margin: 0;
  padding: 0;
  border: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.38;
}

.cms-text .news-section-body {
  display: grid;
  gap: 13px;
}

.cms-text .news-layout .news-paragraph {
  margin: 0;
  color: #334155;
  font-size: 15px;
  line-height: 2;
}

.cms-text .news-layout .news-callout {
  margin: 2px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--news-second, #0f766e);
  color: #475569;
  background: #f8fafc;
  line-height: 1.9;
}

.cms-text .news-layout .news-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: #334155;
  line-height: 1.9;
}

.cms-text .news-layout .news-figure {
  margin: 4px 0;
}

.cms-text .news-layout .news-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.cms-text .news-layout strong,
.cms-text .news-layout .article-game-link {
  color: var(--news-accent, #b91c1c);
  font-weight: 900;
}

.cms-text .news-layout .article-game-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cms-text .news-layout em {
  color: var(--news-second, #0f766e);
  font-style: normal;
  font-weight: 800;
}

.cms-text .news-layout-2 h2.news-heading,
.cms-text .news-layout-6 h2.news-heading,
.cms-text .news-layout-10 h2.news-heading,
.cms-text .news-layout-14 h2.news-heading,
.cms-text .news-layout-18 h2.news-heading {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--news-soft, #fecaca);
}

.cms-text .news-layout-3 .news-section,
.cms-text .news-layout-7 .news-section,
.cms-text .news-layout-11 .news-section,
.cms-text .news-layout-15 .news-section,
.cms-text .news-layout-19 .news-section {
  padding: 0 0 0 18px;
  border-top: 0;
  border-left: 2px solid var(--news-soft, #fecaca);
}

.cms-text .news-layout-3 .news-section + .news-section,
.cms-text .news-layout-7 .news-section + .news-section,
.cms-text .news-layout-11 .news-section + .news-section,
.cms-text .news-layout-15 .news-section + .news-section,
.cms-text .news-layout-19 .news-section + .news-section {
  margin-top: 30px;
}

.cms-text .news-layout-4 > .news-lead,
.cms-text .news-layout-8 > .news-lead,
.cms-text .news-layout-12 > .news-lead,
.cms-text .news-layout-16 > .news-lead,
.cms-text .news-layout-20 > .news-lead {
  padding: 13px 15px;
  border: 1px solid var(--news-soft, #fecaca);
  border-left: 4px solid var(--news-accent, #b91c1c);
  border-radius: 8px;
  background: #fbfcfd;
}

body.layout-02.refined-02 .comments-refined {
  display: block !important;
}

body.layout-02.refined-02 .comments-refined .comment-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body.layout-02.refined-02 .comments-refined .comment {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  min-width: 0 !important;
  padding: 15px !important;
  border: 1px solid #eef2f7 !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%) !important;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.055) !important;
}

body.layout-02.refined-02 .comments-refined .avatar {
  display: grid !important;
  place-items: center !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: linear-gradient(145deg, #b91c1c, #7f1d1d) !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 18px rgba(127, 29, 29, 0.18) !important;
}

body.layout-02.refined-02 .comment-body {
  display: grid !important;
  gap: 9px !important;
  min-width: 0 !important;
}

body.layout-02.refined-02 .comment-meta {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-width: 0 !important;
}

body.layout-02.refined-02 .comment-author-line {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}

body.layout-02.refined-02 .comment-meta h4 {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #111827 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.layout-02.refined-02 .comment-meta time {
  flex: 0 0 auto !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

body.layout-02.refined-02 .comment-rating {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  min-height: 24px !important;
  padding: 0 7px !important;
  border: 1px solid #fed7aa !important;
  border-radius: 999px !important;
  background: #fff7ed !important;
  min-width: 0 !important;
}

body.layout-02.refined-02 .comment-stars {
  display: inline-flex !important;
  gap: 2px !important;
  line-height: 1 !important;
}

body.layout-02.refined-02 .comment-stars i {
  color: #cbd5e1 !important;
  font-size: 14px !important;
  font-style: normal !important;
}

body.layout-02.refined-02 .comment-stars i.is-active {
  color: #f59e0b !important;
}

body.layout-02.refined-02 .comment-rating b {
  display: inline-flex !important;
  align-items: center !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: #92400e !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.layout-02.refined-02 .comments-refined .comment p {
  margin: 0 !important;
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.85 !important;
}

@media (max-width: 900px) {
  body.layout-02.refined-02 .comments-refined .comment-list {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 520px) {
  body.layout-02.refined-02 .comments-refined .comment {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    padding: 13px !important;
  }

  body.layout-02.refined-02 .comments-refined .avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    font-size: 17px !important;
  }

  body.layout-02.refined-02 .comment-meta {
    display: grid !important;
    gap: 6px !important;
  }
}

body.single-game-page .hero-title-block h1 {
  max-width: 100% !important;
}

body.single-game-page .download-address-section {
  background: linear-gradient(180deg, #fff 0, #fff7f7 100%) !important;
}

body.single-game-page .download-address-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 12px !important;
}

body.single-game-page .download-address-grid a {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  gap: 6px 12px !important;
  align-items: center !important;
  min-height: 78px !important;
  padding: 14px !important;
  border: 1px solid #fee2e2 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(127, 29, 29, .06) !important;
}

body.single-game-page .download-address-grid a:hover {
  border-color: #fca5a5 !important;
  transform: translateY(-1px);
}

body.single-game-page .download-address-grid a.is-disabled {
  pointer-events: none !important;
  opacity: .62 !important;
}

body.single-game-page .download-address-grid i {
  grid-row: 1 / span 2 !important;
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 8px !important;
  color: #991b1b !important;
  background: #fff1f2 !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

body.single-game-page .download-address-grid b {
  grid-column: 2 !important;
  min-width: 0 !important;
  color: #0f172a !important;
  font-size: 15px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.single-game-page .download-address-grid small {
  grid-column: 2 !important;
  color: #64748b !important;
  font-size: 12px !important;
}

body.single-game-page .download-address-grid em {
  grid-column: 3 !important;
  grid-row: 1 / span 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 7px !important;
  color: #ffffff !important;
  background: #991b1b !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

@media (max-width: 520px) {
  body.single-game-page .download-address-grid a {
    grid-template-columns: 38px minmax(0, 1fr) !important;
  }

  body.single-game-page .download-address-grid em {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    width: 100% !important;
  }
}

/* Single game section page refresh. */
body.layout-02.refined-02 .shot-grid figure > a.screenshot-lightbox-trigger,
body.layout-03 .shot-grid figure > a.screenshot-lightbox-trigger {
  position: relative !important;
  display: block !important;
  min-width: 0 !important;
  color: inherit !important;
}

body.layout-02.refined-02 .shot-grid figure > a.screenshot-lightbox-trigger::after,
body.layout-03 .shot-grid figure > a.screenshot-lightbox-trigger::after {
  position: absolute;
  inset: auto 10px 10px auto;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.78);
  font-size: 12px;
  font-weight: 900;
  content: "查看大图";
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--ease), transform var(--ease);
}

body.layout-02.refined-02 .shot-grid figure > a.screenshot-lightbox-trigger:hover::after,
body.layout-03 .shot-grid figure > a.screenshot-lightbox-trigger:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(8, 12, 22, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}

.screenshot-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.screenshot-lightbox img {
  display: block;
  max-width: min(1120px, calc(100vw - 64px));
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #0f172a;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.screenshot-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 82px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.screenshot-lightbox-close b {
  font-size: 24px;
  line-height: 1;
}

body.single-game-page.layout-03 .hero-dashboard-refined {
  min-height: 440px !important;
  background-position: center !important;
  background-size: cover !important;
}

body.single-game-page.layout-03 .hero-dashboard-refined .wrap {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
  gap: 26px !important;
  min-height: 440px !important;
  padding: 34px 0 !important;
  align-items: center !important;
}

body.single-game-page.layout-03 .hero-info-panel {
  max-width: 790px !important;
  min-height: 310px !important;
  padding: 26px !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(86, 18, 28, 0.66)) !important;
}

body.single-game-page.layout-03 .hero-game-row {
  grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 18px !important;
}

body.single-game-page.layout-03 .hero-game-thumb {
  width: 112px !important;
  border-radius: 14px !important;
}

body.single-game-page.layout-03 .hero-game-copy .hero-title-block h1 {
  font-size: clamp(32px, 4vw, 48px) !important;
  line-height: 1.08 !important;
}

body.single-game-page.layout-03 .hero-summary {
  max-width: 700px !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}

body.single-game-page.layout-03 .server-board-refined {
  min-height: 280px !important;
  padding: 18px !important;
}

body.single-game-page.layout-03 .server-board-refined .board-title span {
  font-size: 20px !important;
}

body.single-game-page.layout-03 .server-board-item {
  grid-template-columns: minmax(0, 1fr) auto !important;
  padding: 13px !important;
}

body.single-game-page.layout-03 .server-content {
  padding-top: 22px !important;
}

body.single-game-page.layout-03 .server-content > .wrap {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) !important;
  gap: 20px !important;
}

body.single-game-page.layout-03 .content-main {
  gap: 18px !important;
}

body.single-game-page .system-config-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 12px !important;
}

body.single-game-page .system-config-grid .config-card {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  min-width: 0 !important;
  min-height: 116px !important;
  padding: 14px !important;
  border: 1px solid #e6eaf0 !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #fbfcfd 0, #ffffff 100%) !important;
}

body.single-game-page .system-config-grid em {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  background: #1f2937 !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

body.single-game-page .system-config-grid h3 {
  margin: 0 0 7px !important;
  color: #111827 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
}

body.single-game-page .system-config-grid p {
  margin: 0 !important;
  color: #667085 !important;
  font-size: 13px !important;
  line-height: 1.72 !important;
  overflow-wrap: anywhere !important;
}

body.single-game-page .single-comments-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px) !important;
  gap: 14px !important;
  align-items: start !important;
}

body.single-game-page .single-comments-section .comment-list {
  display: grid !important;
  gap: 12px !important;
}

body.single-game-page .single-comments-section .comment {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  gap: 12px !important;
  min-width: 0 !important;
  padding: 13px !important;
  border: 1px solid #e6eaf0 !important;
  border-radius: 8px !important;
  background: #fbfcfd !important;
}

body.single-game-page .single-comments-section .avatar {
  display: grid !important;
  place-items: center !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  background: #991b1b !important;
  font-weight: 900 !important;
}

body.single-game-page .single-comments-section .comment-body,
body.single-game-page .single-comments-section .comment-meta,
body.single-game-page .single-comments-section .comment-author-line {
  min-width: 0 !important;
}

body.single-game-page .single-comments-section .comment-meta {
  display: grid !important;
  gap: 6px !important;
}

body.single-game-page .single-comments-section .comment-author-line {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}

body.single-game-page .single-comments-section h4 {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #111827 !important;
  font-size: 14px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.single-game-page .single-comments-section time {
  color: #94a3b8 !important;
  font-size: 12px !important;
}

body.single-game-page .single-comments-section p {
  margin: 0 !important;
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.78 !important;
  overflow-wrap: anywhere !important;
}

body.single-game-page .comment-rating {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  min-height: 24px !important;
  padding: 0 7px !important;
  border: 1px solid #fed7aa !important;
  border-radius: 999px !important;
  color: #b45309 !important;
  background: #fff7ed !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

body.single-game-page .comment-stars {
  display: inline-flex !important;
  gap: 2px !important;
  line-height: 1 !important;
}

body.single-game-page .comment-stars i {
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  color: #cbd5e1 !important;
  background: transparent !important;
  font-size: 14px !important;
  font-style: normal !important;
  line-height: 1 !important;
}

body.single-game-page .comment-stars i.is-active {
  color: #f59e0b !important;
  background: transparent !important;
}

body.single-game-page .comment-rating b {
  color: #92400e !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.single-game-page .single-comment-form {
  position: static !important;
  padding: 14px !important;
  border: 1px solid #e6eaf0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

body.single-game-page .single-comment-form h3 {
  margin: 0 0 10px !important;
  color: #111827 !important;
  font-size: 16px !important;
}

body.single-game-page .single-comment-form input,
body.single-game-page .single-comment-form textarea {
  width: 100% !important;
  margin-bottom: 10px !important;
  padding: 10px !important;
  border: 1px solid #e6eaf0 !important;
  border-radius: 6px !important;
}

body.single-game-page .single-comment-form textarea {
  min-height: 118px !important;
  resize: vertical !important;
}

body.single-game-page .single-comment-form button {
  width: 100% !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  background: #991b1b !important;
  font-weight: 900 !important;
}

body.single-game-page .single-recommend-list {
  display: grid !important;
  gap: 10px !important;
}

body.single-game-page .single-recommend-card {
  display: grid !important;
  grid-template-columns: 86px minmax(0, 1fr) !important;
  gap: 10px !important;
  min-width: 0 !important;
  padding: 10px !important;
  border: 1px solid #e6eaf0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

body.single-game-page .single-recommend-card img {
  width: 86px !important;
  aspect-ratio: 4 / 3 !important;
  border-radius: 7px !important;
  object-fit: cover !important;
}

body.single-game-page .single-recommend-card div {
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
}

body.single-game-page .single-recommend-card strong {
  overflow: hidden !important;
  color: #111827 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.single-game-page .single-recommend-card p {
  display: -webkit-box !important;
  min-height: 38px !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #667085 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

body.single-game-page .single-recommend-card span {
  display: flex !important;
  gap: 7px !important;
  align-items: center !important;
  min-width: 0 !important;
  color: #991b1b !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body.single-game-page .single-recommend-card em {
  overflow: hidden !important;
  color: #667085 !important;
  font-style: normal !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 1120px) {
  body.single-game-page.layout-03 .hero-dashboard-refined .wrap,
  body.single-game-page.layout-03 .server-content > .wrap,
  body.single-game-page .single-comments-layout {
    grid-template-columns: 1fr !important;
  }

  body.single-game-page.layout-03 .server-board-refined {
    min-height: 0 !important;
  }
}

@media (max-width: 760px) {
  .screenshot-lightbox {
    padding: 18px;
  }

  .screenshot-lightbox img {
    max-width: calc(100vw - 36px);
    max-height: calc(100vh - 80px);
  }

  body.single-game-page.layout-03 .hero-dashboard-refined,
  body.single-game-page.layout-03 .hero-dashboard-refined .wrap {
    min-height: 380px !important;
  }

  body.single-game-page.layout-03 .hero-dashboard-refined .wrap {
    padding: 24px 0 !important;
  }

  body.single-game-page.layout-03 .hero-info-panel {
    min-height: 0 !important;
    padding: 18px !important;
  }

  body.single-game-page.layout-03 .hero-game-row {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  body.single-game-page.layout-03 .hero-game-thumb {
    width: 72px !important;
  }

  body.single-game-page .system-config-grid,
  body.single-game-page .single-comments-layout {
    grid-template-columns: 1fr !important;
  }

  body.single-game-page .single-comments-section .comment {
    grid-template-columns: 40px minmax(0, 1fr) !important;
  }

  body.single-game-page .single-comments-section .avatar {
    width: 40px !important;
    height: 40px !important;
  }

  body.single-game-page .single-recommend-card {
    grid-template-columns: 78px minmax(0, 1fr) !important;
  }

  body.single-game-page .single-recommend-card img {
    width: 78px !important;
  }
}

/* 2026-06-21: mobile interaction cleanup and game-detail server table polish. */
@media (max-width: 760px) {
  #ad-showcase .ad-badge {
    display: none !important;
  }

  #latest-games .recommend-layout,
  .mobile-board {
    grid-template-columns: 1fr !important;
  }

  #latest-games .recommend-info,
  #latest-games .recommend-detail-stack,
  .game-library-detail {
    display: none !important;
  }

  body.layout-02.refined-02 .server-refined {
    padding: 14px !important;
  }

  body.layout-02.refined-02 .server-refined-table,
  body.layout-02.refined-02 .server-refined-table thead,
  body.layout-02.refined-02 .server-refined-table tbody,
  body.layout-02.refined-02 .server-refined-table tr,
  body.layout-02.refined-02 .server-refined-table td {
    display: block !important;
    width: 100% !important;
  }

  body.layout-02.refined-02 .server-refined-table thead {
    display: none !important;
  }

  body.layout-02.refined-02 .server-refined-table tbody {
    display: grid !important;
    gap: 10px !important;
  }

  body.layout-02.refined-02 .server-refined-table tr.server-click-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05) !important;
  }

  body.layout-02.refined-02 .server-refined-table td,
  body.layout-02.refined-02 .server-refined-table td:nth-child(1),
  body.layout-02.refined-02 .server-refined-table td:nth-child(2),
  body.layout-02.refined-02 .server-refined-table td:nth-child(3),
  body.layout-02.refined-02 .server-refined-table td:nth-child(4) {
    grid-column: auto !important;
    grid-row: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(4) {
    display: none !important;
  }

  body.layout-02.refined-02 .server-name {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    min-height: 0 !important;
    text-align: left !important;
  }

  body.layout-02.refined-02 .server-name::before {
    display: none !important;
    content: none !important;
  }

  body.layout-02.refined-02 .server-name strong {
    display: block !important;
    overflow: hidden !important;
    color: #0f172a !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .server-name > span:not(.server-badge) {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  body.layout-02.refined-02 .server-time {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    min-height: 0 !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    color: #7f1d1d !important;
    background: #fff7ed !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
  }

  body.layout-02.refined-02 .server-time::before {
    flex: 0 0 auto !important;
    color: #92400e !important;
    content: "最新开区：" !important;
  }

  body.layout-02.refined-02 .server-time span {
    display: inline-flex !important;
    align-items: center !important;
    height: 22px !important;
    margin-left: auto !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    color: #991b1b !important;
    background: #fee2e2 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  body.layout-02.refined-02 .benefit-tags {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    min-height: 0 !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
  }

  body.layout-02.refined-02 .benefit-tags::before {
    flex: 0 0 100% !important;
    color: #475569 !important;
    content: "福利信息" !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  body.layout-02.refined-02 .benefit-tags span {
    display: inline-flex !important;
    align-items: center !important;
    height: 24px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    color: #334155 !important;
    background: #ffffff !important;
    box-shadow: inset 0 0 0 1px #e5e7eb !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 24px !important;
  }

  body.layout-02.refined-02 .benefit-tags span::after {
    content: none !important;
  }
}

/* 2026-06-22: single game section formal hero and detail polish. */
body.single-game-page.layout-03 .hero-dashboard-refined {
  position: relative !important;
  isolation: isolate !important;
  min-height: 560px !important;
  overflow: hidden !important;
  background: #08111f !important;
}

body.single-game-page.layout-03 .hero-dashboard-refined::before {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  background: var(--single-hero-bg) center / cover no-repeat !important;
  content: "" !important;
}

body.single-game-page.layout-03 .hero-dashboard-refined::after {
  z-index: 0 !important;
  background:
    linear-gradient(90deg, rgba(5, 9, 18, 0.94) 0%, rgba(5, 9, 18, 0.82) 50%, rgba(5, 9, 18, 0.34) 100%),
    linear-gradient(180deg, rgba(5, 9, 18, 0.10), rgba(5, 9, 18, 0.36)) !important;
}

body.single-game-page.layout-03 .hero-dashboard-refined > * {
  position: relative !important;
  z-index: 1 !important;
}

body.single-game-page.layout-03 .hero-dashboard-refined .wrap {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px) !important;
  gap: 26px !important;
  min-height: 560px !important;
  padding: 48px 0 !important;
  align-items: center !important;
}

body.single-game-page.layout-03 .hero-info-panel {
  max-width: 790px !important;
  min-height: 0 !important;
  padding: 26px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 8px !important;
  background: rgba(11, 18, 32, 0.90) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: blur(8px) !important;
}

body.single-game-page.layout-03 .hero-game-row {
  grid-template-columns: 96px minmax(0, 1fr) !important;
  gap: 16px !important;
}

body.single-game-page.layout-03 .hero-game-thumb {
  width: 96px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

body.single-game-page.layout-03 .hero-game-copy .hero-title-block h1 {
  color: #ffffff !important;
  font-size: clamp(34px, 4.4vw, 58px) !important;
  line-height: 1.08 !important;
  text-shadow: none !important;
}

body.single-game-page.layout-03 .hero-summary {
  max-width: 680px !important;
  padding: 0 !important;
  border-bottom: 0 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 15px !important;
  line-height: 1.82 !important;
  text-shadow: none !important;
}

body.single-game-page.layout-03 .single-hero-actions {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-top: 8px !important;
}

body.single-game-page.layout-03 .single-hero-actions .btn {
  min-width: 126px !important;
  height: 42px !important;
  border-radius: 7px !important;
  font-size: 14px !important;
}

body.single-game-page.layout-03 .single-hero-actions .primary {
  color: #ffffff !important;
  background: #c1121f !important;
}

body.single-game-page.layout-03 .single-hero-actions .soft {
  color: #fee2e2 !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  background: rgba(255, 255, 255, 0.10) !important;
}

body.single-game-page.layout-03 .hero-meta-grid span {
  min-height: 58px !important;
  padding: 10px 12px !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

body.single-game-page.layout-03 .server-board-refined {
  align-self: stretch !important;
  display: grid !important;
  align-content: center !important;
  min-height: 0 !important;
  padding: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px) !important;
}

body.single-game-page.layout-03 .server-board-refined .board-title span {
  color: #ffffff !important;
  font-size: 20px !important;
}

body.single-game-page.layout-03 .server-board-refined .board-title strong {
  color: #fee2e2 !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

body.single-game-page.layout-03 .server-board-item,
body.single-game-page.layout-03 .server-board-item.is-main {
  grid-template-columns: minmax(0, 1fr) auto !important;
  padding: 12px !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

body.single-game-page.layout-03 .board-name em {
  color: #fee2e2 !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

body.single-game-page.layout-03 .board-name b,
body.single-game-page.layout-03 .board-time b {
  color: #ffffff !important;
}

body.single-game-page.layout-03 .board-time small {
  color: rgba(255, 255, 255, 0.62) !important;
}

body.single-game-page .system-config-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  gap: 12px !important;
}

body.single-game-page .system-config-grid .config-card {
  position: relative !important;
  min-height: 112px !important;
  padding: 15px !important;
  border: 1px solid #e5eaf1 !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045) !important;
}

body.single-game-page .system-config-grid .config-card::before {
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 3px !important;
  border-radius: 8px 0 0 8px !important;
  background: #2563eb !important;
  content: "" !important;
}

body.single-game-page .system-config-grid em {
  color: #1d4ed8 !important;
  background: #dbeafe !important;
}

body.single-game-page .system-config-grid .config-card:nth-child(6n+2)::before {
  background: #0f766e !important;
}

body.single-game-page .system-config-grid .config-card:nth-child(6n+2) em {
  color: #0f766e !important;
  background: #ccfbf1 !important;
}

body.single-game-page .system-config-grid .config-card:nth-child(6n+3)::before {
  background: #b45309 !important;
}

body.single-game-page .system-config-grid .config-card:nth-child(6n+3) em {
  color: #92400e !important;
  background: #fef3c7 !important;
}

body.single-game-page .system-config-grid .config-card:nth-child(6n+4)::before {
  background: #be123c !important;
}

body.single-game-page .system-config-grid .config-card:nth-child(6n+4) em {
  color: #be123c !important;
  background: #ffe4e6 !important;
}

body.single-game-page .system-config-grid .config-card:nth-child(6n+5)::before {
  background: #4f46e5 !important;
}

body.single-game-page .system-config-grid .config-card:nth-child(6n+5) em {
  color: #4338ca !important;
  background: #e0e7ff !important;
}

body.single-game-page .system-config-grid .config-card:nth-child(6n+6)::before {
  background: #16a34a !important;
}

body.single-game-page .system-config-grid .config-card:nth-child(6n+6) em {
  color: #15803d !important;
  background: #dcfce7 !important;
}

body.single-game-page .single-comments-layout {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

body.single-game-page .single-comment-form {
  display: grid !important;
  gap: 12px !important;
  padding: 16px !important;
  border: 1px solid #e6eaf0 !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #fff7f7 0, #ffffff 100%) !important;
}

body.single-game-page .single-comment-form-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

body.single-game-page .single-comment-form-head h3,
body.single-game-page .single-comment-list-head h3 {
  margin: 0 !important;
  color: #111827 !important;
  font-size: 16px !important;
}

body.single-game-page .single-comment-form-head p {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 13px !important;
}

body.single-game-page .single-comment-fields {
  display: grid !important;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 120px !important;
  gap: 10px !important;
  align-items: stretch !important;
}

body.single-game-page .single-comment-form input,
body.single-game-page .single-comment-form textarea {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 10px 11px !important;
  border: 1px solid #e6eaf0 !important;
  border-radius: 7px !important;
  background: #ffffff !important;
}

body.single-game-page .single-comment-form textarea {
  min-height: 42px !important;
  resize: vertical !important;
}

body.single-game-page .single-comment-form button {
  width: 100% !important;
  height: auto !important;
  min-height: 42px !important;
  border: 0 !important;
  border-radius: 7px !important;
  color: #ffffff !important;
  background: #991b1b !important;
  font-weight: 900 !important;
}

body.single-game-page .comments-refined {
  padding: 14px !important;
  border: 1px solid #e6eaf0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

body.single-game-page .single-comment-list-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

body.single-game-page .single-comment-list-head span {
  display: inline-flex !important;
  align-items: center !important;
  height: 24px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  color: #991b1b !important;
  background: #fff1f2 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

@media (max-width: 1120px) {
  body.single-game-page.layout-03 .hero-dashboard-refined .wrap {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  body.single-game-page.layout-03 .server-board-refined {
    align-self: auto !important;
  }
}

@media (max-width: 760px) {
  body.single-game-page.layout-03 .hero-dashboard-refined,
  body.single-game-page.layout-03 .hero-dashboard-refined .wrap {
    min-height: 0 !important;
  }

  body.single-game-page.layout-03 .hero-dashboard-refined .wrap {
    padding: 28px 0 !important;
  }

  body.single-game-page.layout-03 .hero-info-panel {
    padding: 18px !important;
  }

  body.single-game-page.layout-03 .hero-game-row {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  body.single-game-page.layout-03 .hero-game-thumb {
    width: 72px !important;
  }

  body.single-game-page .single-comment-form-head {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  body.single-game-page .single-comment-fields {
    grid-template-columns: 1fr !important;
  }
}

/* 2026-06-24: recommendation blocks and single-game hero refresh. */
body.layout-02.refined-02 .related-game-section,
body.layout-03 .section-related-section,
body.layout-03 .related-game-section {
  min-width: 0 !important;
  padding: 16px !important;
  border: 1px solid #e6eaf0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045) !important;
}

body.layout-02.refined-02 .related-card-list,
body.layout-03 .related-card-list {
  display: grid !important;
  gap: 10px !important;
  min-width: 0 !important;
}

body.layout-02.refined-02 .related-game-card,
body.layout-03 .related-game-card,
body.layout-03 .related-section-card {
  display: grid !important;
  grid-template-columns: 86px minmax(0, 1fr) !important;
  gap: 10px !important;
  min-width: 0 !important;
  padding: 10px !important;
  border: 1px solid #eef2f7 !important;
  border-radius: 8px !important;
  color: inherit !important;
  background: #fbfdff !important;
}

body.layout-02.refined-02 .related-game-card:hover,
body.layout-03 .related-game-card:hover,
body.layout-03 .related-section-card:hover {
  border-color: #fecdd3 !important;
  background: #fff7f7 !important;
}

body.layout-02.refined-02 .related-game-card img,
body.layout-03 .related-game-card img,
body.layout-03 .related-section-card img {
  width: 86px !important;
  aspect-ratio: 4 / 3 !important;
  border-radius: 7px !important;
  object-fit: cover !important;
}

body.layout-02.refined-02 .related-game-card div,
body.layout-03 .related-game-card div,
body.layout-03 .related-section-card div {
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
}

body.layout-02.refined-02 .related-game-card strong,
body.layout-03 .related-game-card strong,
body.layout-03 .related-section-card strong {
  overflow: hidden !important;
  color: #111827 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.layout-02.refined-02 .related-game-card p,
body.layout-03 .related-game-card p,
body.layout-03 .related-section-card p {
  display: -webkit-box !important;
  min-height: 38px !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #667085 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

body.layout-02.refined-02 .related-game-card span,
body.layout-03 .related-game-card span,
body.layout-03 .related-section-card span {
  display: flex !important;
  gap: 7px !important;
  align-items: center !important;
  min-width: 0 !important;
  color: #991b1b !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body.layout-02.refined-02 .related-game-card em,
body.layout-03 .related-game-card em,
body.layout-03 .related-section-card em {
  overflow: hidden !important;
  color: #667085 !important;
  font-style: normal !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.single-game-page.layout-03 .hero-dashboard-refined {
  min-height: 540px !important;
  background: #07101f !important;
}

body.single-game-page.layout-03 .hero-dashboard-refined::after {
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.96) 0%, rgba(3, 7, 18, 0.76) 44%, rgba(3, 7, 18, 0.28) 100%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.08), rgba(3, 7, 18, 0.42)) !important;
}

body.single-game-page.layout-03 .hero-dashboard-refined .wrap {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
  min-height: 540px !important;
  padding: 54px 0 !important;
}

body.single-game-page.layout-03 .hero-info-panel {
  max-width: 780px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.single-game-page.layout-03 .hero-info-panel::before {
  content: none !important;
}

body.single-game-page.layout-03 .hero-game-row {
  grid-template-columns: 104px minmax(0, 1fr) !important;
  gap: 18px !important;
}

body.single-game-page.layout-03 .hero-game-thumb {
  width: 104px !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.30) !important;
}

body.single-game-page.layout-03 .hero-game-copy .hero-title-block h1 {
  font-size: clamp(38px, 4.8vw, 62px) !important;
  line-height: 1.05 !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.36) !important;
}

body.single-game-page.layout-03 .hero-summary {
  max-width: 720px !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 16px !important;
  line-height: 1.82 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34) !important;
}

body.single-game-page.layout-03 .hero-meta-grid span {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.13) !important;
  backdrop-filter: blur(8px) !important;
}

body.single-game-page.layout-03 .server-board-refined {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0f172a !important;
}

body.single-game-page.layout-03 .server-board-refined .board-title span,
body.single-game-page.layout-03 .board-name b,
body.single-game-page.layout-03 .board-time b {
  color: #0f172a !important;
}

body.single-game-page.layout-03 .board-time small {
  color: #64748b !important;
}

body.single-game-page .system-config-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 12px !important;
}

body.single-game-page .system-config-grid .config-card {
  min-height: 118px !important;
  border: 1px solid #e5eaf1 !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055) !important;
}

@media (max-width: 760px) {
  body.layout-02.refined-02 .related-game-card,
  body.layout-03 .related-game-card,
  body.layout-03 .related-section-card {
    grid-template-columns: 76px minmax(0, 1fr) !important;
  }

  body.layout-02.refined-02 .related-game-card img,
  body.layout-03 .related-game-card img,
  body.layout-03 .related-section-card img {
    width: 76px !important;
  }

  body.single-game-page.layout-03 .hero-dashboard-refined .wrap {
    min-height: 0 !important;
    padding: 34px 0 !important;
  }

  body.single-game-page.layout-03 .hero-game-row {
    grid-template-columns: 72px minmax(0, 1fr) !important;
  }

  body.single-game-page.layout-03 .hero-game-thumb {
    width: 72px !important;
  }
}

/* 2026-06-24: compact same-type recommendations and single-game hero parity. */
body.layout-02.refined-02 .detail-side-stack .related-game-section {
  padding: 14px !important;
  border: 1px solid #e7ecf3 !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045) !important;
}

body.layout-02.refined-02 .detail-side-stack .related-card-list {
  gap: 8px !important;
}

body.layout-02.refined-02 .detail-side-stack .related-game-card {
  grid-template-columns: 72px minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 9px !important;
  border: 1px solid #edf1f6 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

body.layout-02.refined-02 .detail-side-stack .related-game-card img {
  width: 72px !important;
  height: 72px !important;
  aspect-ratio: 1 !important;
  border-radius: 7px !important;
}

body.layout-02.refined-02 .detail-side-stack .related-game-card strong {
  font-size: 14px !important;
}

body.layout-02.refined-02 .detail-side-stack .related-game-card p {
  min-height: 34px !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  -webkit-line-clamp: 2 !important;
}

body.layout-03 .server-side-panel .section-related-section,
body.layout-03 .server-side-panel .related-game-section {
  padding: 12px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

body.layout-03 .server-side-panel .related-card-list {
  gap: 7px !important;
}

body.layout-03 .server-side-panel .related-game-card,
body.layout-03 .server-side-panel .related-section-card {
  grid-template-columns: 56px minmax(0, 1fr) !important;
  gap: 8px !important;
  min-height: 72px !important;
  padding: 8px !important;
  border: 1px solid #edf1f6 !important;
  border-radius: 7px !important;
  background: #ffffff !important;
}

body.layout-03 .server-side-panel .related-game-card img,
body.layout-03 .server-side-panel .related-section-card img {
  width: 56px !important;
  height: 56px !important;
  aspect-ratio: 1 !important;
  border-radius: 6px !important;
}

body.layout-03 .server-side-panel .related-game-card div,
body.layout-03 .server-side-panel .related-section-card div {
  gap: 3px !important;
}

body.layout-03 .server-side-panel .related-game-card strong,
body.layout-03 .server-side-panel .related-section-card strong {
  font-size: 13px !important;
}

body.layout-03 .server-side-panel .related-game-card p,
body.layout-03 .server-side-panel .related-section-card p {
  min-height: 18px !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  -webkit-line-clamp: 1 !important;
}

body.layout-03 .server-side-panel .related-game-card span,
body.layout-03 .server-side-panel .related-section-card span {
  gap: 5px !important;
  font-size: 11px !important;
}

body.single-game-page.layout-02.refined-02 .single-game-hero {
  min-height: 430px !important;
  background-position: center !important;
  background-size: cover !important;
}

body.single-game-page.layout-02.refined-02 .single-game-hero .wrap {
  display: grid !important;
  grid-template-columns: 440px minmax(0, 1fr) !important;
  gap: 34px !important;
  align-items: center !important;
  min-height: 430px !important;
}

body.single-game-page.layout-02.refined-02 .single-game-hero .hero-card {
  position: static !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: auto !important;
  align-self: center !important;
}

body.single-game-page.layout-02.refined-02 .single-game-hero .hero-copy {
  grid-column: 2 !important;
  max-width: 700px !important;
}

body.single-game-page.layout-02.refined-02 .single-game-hero .metric-grid {
  max-width: 520px !important;
}

body.single-game-page.layout-02.refined-02 .single-game-hero .metric b {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.single-game-page .server-content > .wrap {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px) !important;
  gap: 18px !important;
}

body.single-game-page .content-card .section-title {
  margin-bottom: 12px !important;
}

body.single-game-page .content-card .section-title h2 {
  font-size: 16px !important;
  line-height: 1.35 !important;
}

body.single-game-page .content-card .section-title span {
  font-size: 11px !important;
}

body.single-game-page .game-intro {
  background: #ffffff !important;
}

body.single-game-page .server-cms-intro {
  display: block !important;
  padding: 16px !important;
  overflow: hidden !important;
  border: 1px solid #e7ecf3 !important;
  border-radius: 8px !important;
  background: #fbfcfd !important;
}

body.single-game-page .server-cms-intro .cms-text {
  display: grid !important;
  gap: 12px !important;
  color: #475569 !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
}

body.single-game-page .server-cms-intro .cms-text h1,
body.single-game-page .server-cms-intro .cms-text h2,
body.single-game-page .server-cms-intro .cms-text h3,
body.single-game-page .server-cms-intro .cms-text h4 {
  margin: 4px 0 0 !important;
  color: #111827 !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
}

body.single-game-page .server-cms-intro .cms-text p {
  margin: 0 !important;
  color: #475569 !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
}

body.single-game-page .server-cms-intro .cms-text ul,
body.single-game-page .server-cms-intro .cms-text ol {
  margin: 0 !important;
  padding-left: 20px !important;
  color: #475569 !important;
}

body.single-game-page .server-cms-intro .cms-text li {
  margin: 4px 0 !important;
  line-height: 1.8 !important;
}

body.single-game-page .server-cms-intro .cms-text .single-intro-prose {
  display: grid !important;
  gap: 12px !important;
}

body.single-game-page .server-cms-intro .cms-text .single-intro-section {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.single-game-page .server-cms-intro .cms-text .single-intro-lead {
  margin: 0 !important;
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.9 !important;
}

body.single-game-page .server-cms-intro .cms-text img {
  max-width: 100% !important;
  height: auto !important;
  margin: 2px 0 !important;
  border-radius: 8px !important;
}

body.single-game-page .single-comments-section time {
  display: none !important;
}

body.single-game-home .comments-section time {
  display: none !important;
}

@media (max-width: 1120px) {
  body.single-game-page.layout-02.refined-02 .single-game-hero .wrap,
  body.single-game-page .server-content > .wrap {
    grid-template-columns: 1fr !important;
  }

  body.single-game-page.layout-02.refined-02 .single-game-hero .hero-card,
  body.single-game-page.layout-02.refined-02 .single-game-hero .hero-copy {
    grid-column: auto !important;
  }
}

@media (max-width: 760px) {
  body.layout-02.refined-02 .detail-side-stack .related-game-card,
  body.layout-03 .server-side-panel .related-game-card,
  body.layout-03 .server-side-panel .related-section-card {
    grid-template-columns: 52px minmax(0, 1fr) !important;
  }

  body.layout-02.refined-02 .detail-side-stack .related-game-card img,
  body.layout-03 .server-side-panel .related-game-card img,
  body.layout-03 .server-side-panel .related-section-card img {
    width: 52px !important;
    height: 52px !important;
  }

  body.single-game-page.layout-02.refined-02 .single-game-hero {
    min-height: 390px !important;
  }

  body.single-game-page.layout-02.refined-02 .single-game-hero .wrap {
    min-height: 390px !important;
    gap: 18px !important;
    padding: 24px 0 !important;
  }

  body.single-game-page .content-card .section-title h2 {
    font-size: 15px !important;
  }
}

/* 2026-06-24: clean single-game intro and download card layout. */
body.single-game-page .server-cms-intro .cms-text .news-layout {
  display: grid !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: none !important;
  color: #334155 !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
}

body.single-game-page .server-cms-intro .cms-text .news-layout > .news-lead {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid #e7ecf3 !important;
  border-left: 3px solid #991b1b !important;
  border-radius: 8px !important;
  color: #334155 !important;
  background: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.9 !important;
}

body.single-game-page .server-cms-intro .cms-text .news-section,
body.single-game-page .server-cms-intro .cms-text .news-layout-3 .news-section,
body.single-game-page .server-cms-intro .cms-text .news-layout-7 .news-section,
body.single-game-page .server-cms-intro .cms-text .news-layout-11 .news-section,
body.single-game-page .server-cms-intro .cms-text .news-layout-15 .news-section,
body.single-game-page .server-cms-intro .cms-text .news-layout-19 .news-section {
  display: grid !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid #e7ecf3 !important;
  border-left: 3px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

body.single-game-page .server-cms-intro .cms-text .news-heading-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
}

body.single-game-page .server-cms-intro .cms-text .news-section-no {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 28px !important;
  border: 1px solid #e7ecf3 !important;
  border-radius: 7px !important;
  color: #991b1b !important;
  background: #fef2f2 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body.single-game-page .server-cms-intro .cms-text .news-layout h2.news-heading,
body.single-game-page .server-cms-intro .cms-text .news-layout .news-heading {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #0f172a !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

body.single-game-page .server-cms-intro .cms-text .news-section-body {
  display: grid !important;
  gap: 8px !important;
}

body.single-game-page .server-cms-intro .cms-text .news-layout .news-paragraph,
body.single-game-page .server-cms-intro .cms-text .news-layout p {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.85 !important;
}

body.single-game-page .download-address-section {
  background: #ffffff !important;
}

body.single-game-page .download-address-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.single-game-page .download-address-grid a {
  min-height: 66px !important;
  padding: 10px 12px !important;
  border-color: #e7ecf3 !important;
  box-shadow: none !important;
}

body.single-game-page .download-address-grid i {
  width: 36px !important;
  height: 36px !important;
}

body.single-game-page .download-address-grid b {
  font-size: 14px !important;
}

body.single-game-page .download-address-grid em {
  height: 32px !important;
  padding: 0 12px !important;
}

@media (max-width: 760px) {
  body.single-game-page .download-address-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 2026-06-25: final mobile footer simplification and game-home server table alignment. */
@media (max-width: 760px) {
  body .site-footer .footer-inner {
    width: min(100% - 24px, 1240px) !important;
    padding: 22px 0 16px !important;
  }

  body .site-footer .footer-main {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 0 !important;
  }

  body .site-footer .footer-main > .footer-block {
    display: none !important;
  }

  body .site-footer .footer-brand,
  body .site-footer .footer-main > section:first-child {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 8px !important;
    width: min(100%, 340px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: center !important;
  }

  body .site-footer .footer-logo,
  body .footer-logo {
    justify-self: center !important;
    width: 168px !important;
    height: 48px !important;
    margin: 0 auto !important;
  }

  body .site-footer .footer-logo img,
  body .footer-logo img {
    margin: 0 auto !important;
  }

  body .site-footer .footer-brand p,
  body .site-footer .footer-main p {
    display: block !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    overflow: visible !important;
    color: #d5dbe5 !important;
    font-size: 13px !important;
    line-height: 1.75 !important;
    text-align: center !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
  }

  body .site-footer .footer-bottom {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 4px !important;
    margin-top: 14px !important;
    padding-top: 12px !important;
    text-align: center !important;
  }

  body.layout-02.refined-02 .server-refined-table td:first-child {
    justify-self: stretch !important;
    justify-items: start !important;
    text-align: left !important;
  }

  body.layout-02.refined-02 .server-refined-table .server-name {
    width: 100% !important;
    align-items: start !important;
    justify-items: start !important;
    text-align: left !important;
  }

  body.layout-02.refined-02 .server-refined-table .server-name strong,
  body.layout-02.refined-02 .server-refined-table .server-name > span {
    width: 100% !important;
    margin-left: 0 !important;
    text-align: left !important;
  }
}

/* 2026-06-25: mobile-only section detail hero and sticky actions. */
.mobile-hero-game-name,
.mobile-section-fixed-actions {
  display: none;
}

@media (max-width: 760px) {
  body.layout-03:not(.single-game-page) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  }

  body.layout-03:not(.single-game-page) .hero-dashboard-refined,
  body.layout-03:not(.single-game-page) .hero-dashboard-refined .wrap {
    min-height: 300px !important;
  }

  body.layout-03:not(.single-game-page) .hero-dashboard-refined .wrap {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    align-content: center !important;
    padding: 14px 0 !important;
  }

  body.layout-03:not(.single-game-page) .hero-info-panel {
    display: grid !important;
    align-content: center !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 12px !important;
    border-radius: 10px !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-row {
    display: grid !important;
    grid-template-columns: 74px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-thumb {
    width: 74px !important;
    min-width: 74px !important;
    margin: 0 !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-thumb img {
    width: 74px !important;
    height: 74px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-copy {
    display: grid !important;
    min-width: 0 !important;
    gap: 6px !important;
    justify-items: start !important;
    text-align: left !important;
  }

  body.layout-03:not(.single-game-page) .hero-panel-head,
  body.layout-03:not(.single-game-page) .hero-summary {
    display: none !important;
  }

  body.layout-03:not(.single-game-page) .hero-title-block {
    width: 100% !important;
    min-width: 0 !important;
    justify-self: start !important;
    text-align: left !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-copy .hero-title-block h1,
  body.layout-03:not(.single-game-page) .hero-info-panel h1 {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 0.22em !important;
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 22px !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  body.layout-03:not(.single-game-page) .mobile-hero-game-name {
    display: inline !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: #fecaca !important;
    background: transparent !important;
    font-size: inherit !important;
    font-weight: 900 !important;
    white-space: normal !important;
  }

  body.layout-03:not(.single-game-page) .hero-section-name {
    display: inline !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    background: transparent !important;
    font-size: inherit !important;
    font-weight: 900 !important;
    white-space: normal !important;
  }

  body.layout-03:not(.single-game-page) .hero-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body.layout-03:not(.single-game-page) .hero-meta-grid span {
    min-height: 50px !important;
    padding: 8px !important;
    border-radius: 8px !important;
  }

  body.layout-03:not(.single-game-page) .hero-meta-grid b,
  body.layout-03:not(.single-game-page) .hero-meta-grid em {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.layout-03:not(.single-game-page) .hero-tags-refined {
    gap: 6px !important;
  }

  body.layout-03:not(.single-game-page) .hero-opening-board {
    display: none !important;
  }

  body.layout-03:not(.single-game-page) .server-bottom-actions {
    display: none !important;
  }

  body.layout-03:not(.single-game-page) .mobile-section-fixed-actions {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 90 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #e5e7eb !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 -14px 30px rgba(15, 23, 42, 0.14) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }

  body.layout-03:not(.single-game-page) .mobile-section-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    min-width: 0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  body.layout-03:not(.single-game-page) .mobile-section-action.download {
    color: #ffffff !important;
    background: #991b1b !important;
    box-shadow: 0 8px 18px rgba(153, 27, 27, 0.22) !important;
  }

  body.layout-03:not(.single-game-page) .mobile-section-action.qq {
    border: 1px solid #fecaca !important;
    color: #7f1d1d !important;
    background: #fff1f2 !important;
  }

  body.layout-03:not(.single-game-page) .mobile-section-action.is-disabled {
    pointer-events: none !important;
    opacity: 0.52 !important;
  }
}

/* 2026-06-25: mobile correction for server rows, footer blocks and section tags. */
@media (max-width: 900px) {
  body .site-footer .footer-main {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 0 !important;
  }

  body .site-footer .footer-main > *:not(:first-child),
  body .site-footer .footer-block,
  body .site-footer .footer-links {
    display: none !important;
  }

  body .site-footer .footer-main > :first-child,
  body .site-footer .footer-brand {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    width: min(100%, 340px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
  }

  body .site-footer .footer-main > :first-child h3,
  body .site-footer .footer-main > :first-child ul {
    display: none !important;
  }

  body .site-footer .footer-logo,
  body .site-footer .footer-logo img {
    justify-self: center !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body .site-footer .footer-brand p,
  body .site-footer .footer-main > :first-child p {
    max-width: 320px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center !important;
  }

  body .site-footer .footer-bottom {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
  }

  body.layout-02.refined-02 .server-refined {
    padding: 12px !important;
    overflow: visible !important;
  }

  body.layout-02.refined-02 .server-refined-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: visible !important;
    counter-reset: server-row !important;
  }

  body.layout-02.refined-02 .server-refined-table thead {
    display: none !important;
  }

  body.layout-02.refined-02 .server-refined-table tbody {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  body.layout-02.refined-02 .server-refined-table tr {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
    padding: 14px !important;
    border: 1px solid #e7ecf3 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.055) !important;
    counter-increment: server-row !important;
  }

  body.layout-02.refined-02 .server-refined-table td,
  body.layout-02.refined-02 .server-refined-table td:first-child,
  body.layout-02.refined-02 .server-refined-table td:last-child {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(2) {
    display: grid !important;
    gap: 8px !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid #eef2f7 !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(2)::before {
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    content: "福利信息" !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(3) {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    margin-top: 12px !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    background: #fff7ed !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(3)::before {
    color: #7f1d1d !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    content: "最新开区：" !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(4) {
    display: none !important;
  }

  body.layout-02.refined-02 .server-name {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  body.layout-02.refined-02 .server-name::before {
    display: none !important;
    content: none !important;
  }

  body.layout-02.refined-02 .server-name strong {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.layout-02.refined-02 .server-name > span:not(.server-badge) {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: -webkit-box !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
    text-align: left !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  body.layout-02.refined-02 .benefit-tags {
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  body.layout-02.refined-02 .benefit-tags span {
    height: 30px !important;
    padding: 0 10px !important;
    border: 1px solid #e7ecf3 !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 28px !important;
  }

  body.layout-02.refined-02 .server-time {
    display: contents !important;
    color: #991b1b !important;
    font-size: 18px !important;
    font-weight: 900 !important;
  }

  body.layout-02.refined-02 .server-time span {
    justify-self: end !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    color: #991b1b !important;
    background: #ffe4e6 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-copy .hero-tags-refined {
    display: flex !important;
    order: 2 !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin: 0 !important;
    gap: 6px !important;
  }

  body.layout-03:not(.single-game-page) .hero-info-panel > .hero-tags-refined {
    display: flex !important;
    order: 2 !important;
    justify-content: flex-start !important;
    width: calc(100% - 82px) !important;
    margin: -2px 0 0 82px !important;
    gap: 6px !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-copy .hero-title-block {
    order: 1 !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-copy .hero-tags-refined span {
    height: 24px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    line-height: 22px !important;
  }

  body.layout-03:not(.single-game-page) .hero-info-panel > .hero-tags-refined span {
    height: 24px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    line-height: 22px !important;
  }

  body.layout-03:not(.single-game-page) .hero-info-panel > .hero-meta-grid {
    order: 3 !important;
  }
}

@media (max-width: 900px) {
  body .site-footer .footer-main > section.footer-block,
  body .site-footer .footer-main > section.footer-block:not(:first-child),
  body .site-footer .footer-main > section:nth-child(n + 2) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body .site-footer .footer-main > section.footer-brand,
  body .site-footer .footer-main > section:first-child.footer-brand {
    display: grid !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(3) {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  body.layout-02.refined-02 .server-time {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-width: 0 !important;
    color: #991b1b !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .server-time span {
    flex: 0 0 auto !important;
  }
}

/* 2026-06-25: final section hero title and mobile server-card corrections. */
body.layout-03:not(.single-game-page) .hero-info-panel .hero-panel-head {
  display: none !important;
}

body.layout-03:not(.single-game-page) .hero-game-copy {
  gap: 10px !important;
}

body.layout-03:not(.single-game-page) .hero-game-copy .hero-title-block {
  width: 100% !important;
}

body.layout-03:not(.single-game-page) .hero-game-copy .hero-title-block h1,
body.layout-03:not(.single-game-page) .hero-info-panel h1 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 0.22em !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(24px, 2vw, 30px) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
}

body.layout-03:not(.single-game-page) .hero-game-title-name,
body.layout-03:not(.single-game-page) .mobile-hero-game-name,
body.layout-03:not(.single-game-page) .hero-title-separator,
body.layout-03:not(.single-game-page) .hero-section-name {
  display: inline !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: inherit !important;
  font-weight: 900 !important;
  line-height: inherit !important;
  white-space: normal !important;
}

body.layout-03:not(.single-game-page) .hero-game-title-name {
  color: #fee2e2 !important;
}

body.layout-03:not(.single-game-page) .hero-title-separator {
  display: none !important;
}

body.layout-03:not(.single-game-page) .hero-section-name {
  color: #ffffff !important;
}

body.layout-03:not(.single-game-page) .hero-summary {
  display: block !important;
  max-width: 780px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 16px !important;
  line-height: 1.72 !important;
}

body.layout-03:not(.single-game-page) .hero-game-copy .hero-tags-refined,
body.layout-03:not(.single-game-page) .hero-tags-refined {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  width: 100% !important;
  margin: 2px 0 0 !important;
  gap: 8px !important;
}

body.layout-03:not(.single-game-page) .hero-info-panel {
  display: grid !important;
}

body.layout-03:not(.single-game-page) .hero-game-row {
  order: 1 !important;
}

body.layout-03:not(.single-game-page) .hero-info-panel > .hero-tags-refined {
  order: 2 !important;
}

body.layout-03:not(.single-game-page) .hero-info-panel > .hero-meta-grid {
  order: 3 !important;
}

@media (min-width: 901px) {
  body.layout-03:not(.single-game-page) .hero-game-copy {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 10px !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-copy .hero-title-block {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: auto !important;
    max-width: 100% !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-copy .hero-title-block h1,
  body.layout-03:not(.single-game-page) .hero-info-panel h1 {
    font-size: clamp(24px, 2vw, 30px) !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-copy .hero-tags-refined {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    margin: 0 !important;
    align-self: start !important;
  }

  body.layout-03:not(.single-game-page) .hero-summary {
    grid-column: 1 !important;
    grid-row: 3 !important;
    margin: 0 !important;
  }
}

@media (max-width: 900px) {
  body.layout-02.refined-02 .server-refined-table thead,
  body.layout-02.refined-02 .server-refined-table th {
    display: none !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(2)::before {
    display: none !important;
    content: none !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(2) {
    margin-top: 10px !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  body.layout-03:not(.single-game-page) .hero-dashboard-refined,
  body.layout-03:not(.single-game-page) .hero-dashboard-refined .wrap {
    min-height: 240px !important;
  }

  body.layout-03:not(.single-game-page) .hero-dashboard-refined .wrap {
    padding: 10px 0 !important;
    align-content: center !important;
  }

  body.layout-03:not(.single-game-page) .hero-info-panel {
    display: grid !important;
    gap: 10px !important;
    padding: 14px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, rgba(21, 24, 36, 0.93), rgba(92, 18, 22, 0.88)) !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-row {
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: start !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-thumb,
  body.layout-03:not(.single-game-page) .hero-game-thumb img {
    width: 82px !important;
    height: 82px !important;
    min-width: 82px !important;
    border-radius: 10px !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-copy {
    align-self: start !important;
    display: grid !important;
    gap: 8px !important;
    min-width: 0 !important;
    justify-items: start !important;
    text-align: left !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-copy .hero-title-block h1,
  body.layout-03:not(.single-game-page) .hero-info-panel h1 {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: baseline !important;
    gap: 0.22em !important;
    max-width: 100% !important;
    color: #ffffff !important;
    font-size: 24px !important;
    line-height: 1.12 !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-copy .hero-summary,
  body.layout-03:not(.single-game-page) .hero-summary {
    display: none !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-copy .hero-tags-refined,
  body.layout-03:not(.single-game-page) .hero-info-panel > .hero-tags-refined {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin: 0 !important;
    gap: 6px !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-copy .hero-tags-refined span,
  body.layout-03:not(.single-game-page) .hero-info-panel > .hero-tags-refined span {
    height: 24px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    line-height: 22px !important;
    white-space: nowrap !important;
  }

  body.layout-03:not(.single-game-page) .hero-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  }
}

body.layout-03:not(.single-game-page) .hero-info-panel:not(:has(.hero-game-title-name, .mobile-hero-game-name)) .hero-panel-head {
  display: flex !important;
}

body.layout-03:not(.single-game-page) .hero-info-panel:not(:has(.hero-game-title-name, .mobile-hero-game-name)) .hero-panel-head .eyebrow {
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fee2e2 !important;
  background: transparent !important;
  font-size: inherit !important;
  font-weight: 900 !important;
  line-height: inherit !important;
}

@media (max-width: 900px) {
  body.layout-03:not(.single-game-page) .hero-info-panel:not(:has(.hero-game-title-name, .mobile-hero-game-name)) .hero-game-copy {
    gap: 2px !important;
  }

  body.layout-03:not(.single-game-page) .hero-info-panel:not(:has(.hero-game-title-name, .mobile-hero-game-name)) .hero-panel-head,
  body.layout-03:not(.single-game-page) .hero-info-panel:not(:has(.hero-game-title-name, .mobile-hero-game-name)) .hero-title-block {
    width: 100% !important;
    color: #ffffff !important;
    font-size: 23px !important;
    line-height: 1.15 !important;
    text-align: left !important;
  }

  body.layout-03:not(.single-game-page) .hero-info-panel > .hero-tags-refined {
    width: calc(100% - 94px) !important;
    margin: -2px 0 0 94px !important;
  }
}

/* 2026-06-25: mobile section title aligns with tags and removes separators. */
body.layout-03:not(.single-game-page) .hero-title-separator {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  content: none !important;
}

@media (max-width: 900px) {
  body.layout-03:not(.single-game-page) .hero-game-row {
    align-items: start !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-copy {
    justify-self: stretch !important;
    align-self: start !important;
    justify-items: stretch !important;
    align-items: start !important;
    text-align: left !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-copy .hero-title-block,
  body.layout-03:not(.single-game-page) .hero-title-block {
    justify-self: stretch !important;
    align-self: start !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-copy .hero-title-block h1,
  body.layout-03:not(.single-game-page) .hero-info-panel h1 {
    justify-self: stretch !important;
    justify-content: flex-start !important;
    align-items: baseline !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
    transform: none !important;
  }

  body.layout-03:not(.single-game-page) .hero-game-copy .hero-tags-refined,
  body.layout-03:not(.single-game-page) .hero-info-panel > .hero-tags-refined {
    justify-self: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
  }
}

.rank-table-row .rank-type-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 76px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.rank-table-row .rank-type-mobile {
  color: #047857 !important;
  background: #d1fae5 !important;
}

.rank-table-row .rank-type-pc {
  color: #1d4ed8 !important;
  background: #dbeafe !important;
}

.rank-table-row .rank-type-web {
  color: #b45309 !important;
  background: #fef3c7 !important;
}

.rank-table-row .rank-type-single {
  color: #be123c !important;
  background: #ffe4e6 !important;
}

.rank-table-row .rank-type-other {
  color: #475569 !important;
  background: #f1f5f9 !important;
}

body.single-game-page .server-side-panel {
  position: sticky;
  top: 18px;
  align-self: start;
}

body.single-game-page .single-hot-news-section {
  margin-bottom: 14px;
}

.comment-submit-form .single-comment-fields {
  display: grid;
  gap: 10px;
}

.comment-identity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.comment-editor-wrap {
  position: relative;
  display: grid;
  gap: 10px;
}

.comment-submit-form textarea {
  padding-bottom: 10px;
}

.comment-emoji-toggle {
  display: inline-flex !important;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 58px;
  height: 38px !important;
  padding: 0 10px !important;
  border: 1px solid #fecaca !important;
  border-radius: 6px !important;
  color: #991b1b !important;
  background: #fff7f7 !important;
  font-size: 12px !important;
}

.comment-emoji-toggle span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: #ffffff;
  background: #991b1b;
  font-size: 12px;
  line-height: 1;
}

.comment-emoji-panel {
  position: absolute;
  right: 0;
  bottom: 48px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, 34px);
  gap: 6px;
  padding: 10px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .18);
}

.comment-emoji-panel[hidden] {
  display: none !important;
}

.comment-emoji-panel button {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 6px !important;
  color: #111827 !important;
  background: #f8fafc !important;
}

.comment-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.comment-captcha {
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.comment-captcha input {
  margin: 0 !important;
}

.comment-submit-form .comment-submit-button {
  display: inline-flex !important;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 112px;
  height: 42px !important;
  margin: 0 !important;
}

.comment-submit-form .comment-submit-button span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: #991b1b;
  background: #ffffff;
  font-size: 12px;
  line-height: 1;
}

.comment-form-message {
  min-height: 20px;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.comment-form-message.is-error {
  color: #b91c1c;
}

.comment-form-message.is-success {
  color: #047857;
}

@media (max-width: 1120px) {
  body.single-game-page .server-side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .comment-identity-row {
    grid-template-columns: 1fr;
  }

  .comment-form-actions {
    align-items: stretch;
    flex-direction: column;
    justify-content: stretch;
  }

  .comment-emoji-toggle {
    width: 100% !important;
  }

  .comment-submit-form .comment-submit-button {
    width: 100% !important;
  }
}

.news-preview-layout .news-preview-article h1 {
  font-size: 30px !important;
  line-height: 1.35 !important;
}

.news-preview-layout .news-preview-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.news-preview-layout .news-preview-meta .news-meta-tag {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.news-preview-layout .news-preview-meta .source {
  color: #991b1b !important;
  background: #fee2e2 !important;
}

.news-preview-layout .news-preview-meta .time {
  color: #0369a1 !important;
  background: #e0f2fe !important;
}

.news-preview-layout .news-preview-meta .type {
  color: #047857 !important;
  background: #d1fae5 !important;
}

@media (max-width: 760px) {
  .news-preview-layout .news-preview-article h1 {
    font-size: 24px !important;
  }
}

/* 2026-06-28: force the formal comment area to match demo scheme A. */
body.layout-02.refined-02 .comments-refined,
body.single-game-page .single-comments-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  align-items: stretch !important;
}

body.layout-02.refined-02 .comments-refined .comment-submit-form,
body.single-game-page .single-comments-layout .comment-submit-form {
  order: 1 !important;
}

body.layout-02.refined-02 .comments-refined .comment-list,
body.single-game-page .single-comments-layout .comments-refined {
  order: 2 !important;
}

body.layout-02.refined-02 .comments-refined > .empty-state {
  order: 3 !important;
}

.comment-submit-form.single-comment-form {
  display: grid !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 16px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06) !important;
}

.comment-submit-form .single-comment-form-head {
  display: grid !important;
  gap: 4px !important;
  align-items: start !important;
  justify-content: start !important;
}

.comment-submit-form .single-comment-form-head h3 {
  margin: 0 !important;
  color: #111827 !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
}

.comment-submit-form .single-comment-form-head p {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.comment-submit-form .single-comment-fields {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.comment-submit-form .comment-identity-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: end !important;
}

.comment-submit-form input,
.comment-submit-form textarea {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #dbe3ef !important;
  border-radius: 6px !important;
  color: #111827 !important;
  background: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.comment-submit-form textarea {
  min-height: 100px !important;
  resize: vertical !important;
}

.comment-submit-form .comment-captcha {
  display: inline-flex !important;
  gap: 8px !important;
  align-items: center !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.comment-submit-form .comment-captcha input {
  width: 74px !important;
}

.comment-submit-form .comment-editor-wrap {
  position: relative !important;
  display: grid !important;
  gap: 10px !important;
}

.comment-submit-form .comment-form-actions,
.comment-submit-form .comment-emoji-action-row {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.comment-submit-form .comment-emoji-row {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
  min-width: 0 !important;
}

.comment-submit-form .comment-emoji-row button,
.comment-submit-form .comment-emoji-panel button {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  color: #111827 !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

.comment-submit-form .comment-emoji-toggle {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 92px !important;
  height: 38px !important;
}

.comment-submit-form .comment-submit-button {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  gap: 6px !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 112px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  background: #991b1b !important;
  font-weight: 900 !important;
}

body.layout-02.refined-02 .comment-meta,
body.single-game-page .single-comments-section .comment-meta {
  display: flex !important;
  gap: 10px !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
}

body.layout-02.refined-02 .comment-author-line,
body.single-game-page .single-comments-section .comment-author-line {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
}

body.layout-02.refined-02 .comment-meta h4,
body.single-game-page .single-comments-section h4 {
  flex: 0 1 auto !important;
}

@media (max-width: 760px) {
  .comment-submit-form .comment-identity-row {
    grid-template-columns: 1fr !important;
  }

  .comment-submit-form .comment-form-actions,
  .comment-submit-form .comment-emoji-action-row {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .comment-submit-form .comment-submit-button,
  .comment-submit-form .comment-emoji-toggle {
    width: 100% !important;
  }
}

/* 2026-06-28: high-specificity override for legacy formal comment CSS. */
body.layout-02.refined-02 .comments-refined .comment-submit-form .single-comment-fields,
body.single-game-page .single-comments-layout .comment-submit-form .single-comment-fields,
body.single-game-page .single-comments-section .comment-submit-form .single-comment-fields {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  align-items: stretch !important;
}

body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-identity-row,
body.single-game-page .single-comments-layout .comment-submit-form .comment-identity-row,
body.single-game-page .single-comments-section .comment-submit-form .comment-identity-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: end !important;
}

body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-captcha,
body.single-game-page .single-comments-layout .comment-submit-form .comment-captcha,
body.single-game-page .single-comments-section .comment-submit-form .comment-captcha {
  display: inline-flex !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  white-space: nowrap !important;
}

body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-captcha input,
body.single-game-page .single-comments-layout .comment-submit-form .comment-captcha input,
body.single-game-page .single-comments-section .comment-submit-form .comment-captcha input {
  width: 74px !important;
  max-width: 74px !important;
  margin: 0 !important;
}

body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-form-actions,
body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-emoji-action-row,
body.single-game-page .single-comments-layout .comment-submit-form .comment-form-actions,
body.single-game-page .single-comments-layout .comment-submit-form .comment-emoji-action-row,
body.single-game-page .single-comments-section .comment-submit-form .comment-form-actions,
body.single-game-page .single-comments-section .comment-submit-form .comment-emoji-action-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: space-between !important;
}

body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-emoji-toggle,
body.single-game-page .single-comments-layout .comment-submit-form .comment-emoji-toggle,
body.single-game-page .single-comments-section .comment-submit-form .comment-emoji-toggle {
  display: none !important;
}

body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-emoji-row,
body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-emoji-panel,
body.single-game-page .single-comments-layout .comment-submit-form .comment-emoji-row,
body.single-game-page .single-comments-layout .comment-submit-form .comment-emoji-panel,
body.single-game-page .single-comments-section .comment-submit-form .comment-emoji-row,
body.single-game-page .single-comments-section .comment-submit-form .comment-emoji-panel {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  display: flex !important;
  grid-template-columns: none !important;
  flex: 1 1 auto !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
  min-width: 0 !important;
  max-width: calc(100% - 130px) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-emoji-panel[hidden],
body.single-game-page .single-comments-layout .comment-submit-form .comment-emoji-panel[hidden],
body.single-game-page .single-comments-section .comment-submit-form .comment-emoji-panel[hidden] {
  display: flex !important;
}

body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-emoji-row button,
body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-emoji-panel button,
body.single-game-page .single-comments-layout .comment-submit-form .comment-emoji-row button,
body.single-game-page .single-comments-layout .comment-submit-form .comment-emoji-panel button,
body.single-game-page .single-comments-section .comment-submit-form .comment-emoji-row button,
body.single-game-page .single-comments-section .comment-submit-form .comment-emoji-panel button {
  display: grid !important;
  flex: 0 0 34px !important;
  place-items: center !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  color: #111827 !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-submit-button,
body.single-game-page .single-comments-layout .comment-submit-form .comment-submit-button,
body.single-game-page .single-comments-section .comment-submit-form .comment-submit-button {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  gap: 6px !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 112px !important;
  max-width: 150px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  background: #991b1b !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

@media (max-width: 760px) {
  body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-identity-row,
  body.single-game-page .single-comments-layout .comment-submit-form .comment-identity-row,
  body.single-game-page .single-comments-section .comment-submit-form .comment-identity-row {
    grid-template-columns: 1fr !important;
  }

  body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-form-actions,
  body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-emoji-action-row,
  body.single-game-page .single-comments-layout .comment-submit-form .comment-form-actions,
  body.single-game-page .single-comments-layout .comment-submit-form .comment-emoji-action-row,
  body.single-game-page .single-comments-section .comment-submit-form .comment-form-actions,
  body.single-game-page .single-comments-section .comment-submit-form .comment-emoji-action-row {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-emoji-row,
  body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-emoji-panel,
  body.single-game-page .single-comments-layout .comment-submit-form .comment-emoji-row,
  body.single-game-page .single-comments-layout .comment-submit-form .comment-emoji-panel,
  body.single-game-page .single-comments-section .comment-submit-form .comment-emoji-row,
  body.single-game-page .single-comments-section .comment-submit-form .comment-emoji-panel {
    max-width: none !important;
  }

  body.layout-02.refined-02 .comments-refined .comment-submit-form .comment-submit-button,
  body.single-game-page .single-comments-layout .comment-submit-form .comment-submit-button,
  body.single-game-page .single-comments-section .comment-submit-form .comment-submit-button {
    width: 100% !important;
    max-width: none !important;
  }
}

/* 2026-06-28: normalize old generated comment forms to scheme A after JS reorders DOM. */
body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form],
body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form],
body.single-game-page .single-comments-section form.comment-form[data-comment-form],
body.single-game-page .single-comments-layout form.comment-form[data-comment-form],
body.single-game-home .comments-section form.comment-form[data-comment-form] {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  overflow: visible !important;
}

body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .single-comment-fields,
body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .single-comment-fields,
body.single-game-page .single-comments-section form.comment-form[data-comment-form] .single-comment-fields,
body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .single-comment-fields,
body.single-game-home .comments-section form.comment-form[data-comment-form] .single-comment-fields {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  align-items: stretch !important;
}

body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .comment-identity-row,
body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .comment-identity-row,
body.single-game-page .single-comments-section form.comment-form[data-comment-form] .comment-identity-row,
body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .comment-identity-row,
body.single-game-home .comments-section form.comment-form[data-comment-form] .comment-identity-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: end !important;
}

body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] input,
body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] textarea,
body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] input,
body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] textarea,
body.single-game-page .single-comments-section form.comment-form[data-comment-form] input,
body.single-game-page .single-comments-section form.comment-form[data-comment-form] textarea,
body.single-game-page .single-comments-layout form.comment-form[data-comment-form] input,
body.single-game-page .single-comments-layout form.comment-form[data-comment-form] textarea,
body.single-game-home .comments-section form.comment-form[data-comment-form] input,
body.single-game-home .comments-section form.comment-form[data-comment-form] textarea {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .comment-captcha,
body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .comment-captcha,
body.single-game-page .single-comments-section form.comment-form[data-comment-form] .comment-captcha,
body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .comment-captcha,
body.single-game-home .comments-section form.comment-form[data-comment-form] .comment-captcha {
  display: inline-flex !important;
  gap: 8px !important;
  align-items: center !important;
  white-space: nowrap !important;
}

body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .comment-captcha input,
body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .comment-captcha input,
body.single-game-page .single-comments-section form.comment-form[data-comment-form] .comment-captcha input,
body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .comment-captcha input,
body.single-game-home .comments-section form.comment-form[data-comment-form] .comment-captcha input {
  width: 74px !important;
  max-width: 74px !important;
}

body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .comment-editor-wrap,
body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .comment-editor-wrap,
body.single-game-page .single-comments-section form.comment-form[data-comment-form] .comment-editor-wrap,
body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .comment-editor-wrap,
body.single-game-home .comments-section form.comment-form[data-comment-form] .comment-editor-wrap {
  position: static !important;
  display: grid !important;
  gap: 10px !important;
  overflow: visible !important;
}

body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .comment-form-actions,
body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .comment-emoji-action-row,
body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .comment-form-actions,
body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .comment-emoji-action-row,
body.single-game-page .single-comments-section form.comment-form[data-comment-form] .comment-form-actions,
body.single-game-page .single-comments-section form.comment-form[data-comment-form] .comment-emoji-action-row,
body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .comment-form-actions,
body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .comment-emoji-action-row,
body.single-game-home .comments-section form.comment-form[data-comment-form] .comment-form-actions,
body.single-game-home .comments-section form.comment-form[data-comment-form] .comment-emoji-action-row {
  position: static !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin: 0 !important;
}

body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .comment-emoji-toggle,
body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .comment-emoji-toggle,
body.single-game-page .single-comments-section form.comment-form[data-comment-form] .comment-emoji-toggle,
body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .comment-emoji-toggle,
body.single-game-home .comments-section form.comment-form[data-comment-form] .comment-emoji-toggle {
  display: none !important;
}

body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .comment-emoji-row,
body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .comment-emoji-panel,
body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .comment-emoji-row,
body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .comment-emoji-panel,
body.single-game-page .single-comments-section form.comment-form[data-comment-form] .comment-emoji-row,
body.single-game-page .single-comments-section form.comment-form[data-comment-form] .comment-emoji-panel,
body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .comment-emoji-row,
body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .comment-emoji-panel,
body.single-game-home .comments-section form.comment-form[data-comment-form] .comment-emoji-row,
body.single-game-home .comments-section form.comment-form[data-comment-form] .comment-emoji-panel {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
  min-width: 0 !important;
  max-width: calc(100% - 130px) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .comment-emoji-row button,
body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .comment-emoji-panel button,
body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .comment-emoji-row button,
body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .comment-emoji-panel button,
body.single-game-page .single-comments-section form.comment-form[data-comment-form] .comment-emoji-row button,
body.single-game-page .single-comments-section form.comment-form[data-comment-form] .comment-emoji-panel button,
body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .comment-emoji-row button,
body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .comment-emoji-panel button,
body.single-game-home .comments-section form.comment-form[data-comment-form] .comment-emoji-row button,
body.single-game-home .comments-section form.comment-form[data-comment-form] .comment-emoji-panel button {
  display: grid !important;
  flex: 0 0 34px !important;
  place-items: center !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .comment-submit-button,
body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .comment-submit-button,
body.single-game-page .single-comments-section form.comment-form[data-comment-form] .comment-submit-button,
body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .comment-submit-button,
body.single-game-home .comments-section form.comment-form[data-comment-form] .comment-submit-button {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  gap: 6px !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 112px !important;
  max-width: 150px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 6px !important;
}

@media (max-width: 760px) {
  body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .comment-identity-row,
  body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .comment-identity-row,
  body.single-game-page .single-comments-section form.comment-form[data-comment-form] .comment-identity-row,
  body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .comment-identity-row,
  body.single-game-home .comments-section form.comment-form[data-comment-form] .comment-identity-row {
    grid-template-columns: 1fr !important;
  }

  body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .comment-form-actions,
  body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .comment-form-actions,
  body.single-game-page .single-comments-section form.comment-form[data-comment-form] .comment-form-actions,
  body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .comment-form-actions,
  body.single-game-home .comments-section form.comment-form[data-comment-form] .comment-form-actions {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .comment-emoji-row,
  body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .comment-emoji-panel,
  body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .comment-emoji-row,
  body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .comment-emoji-panel,
  body.single-game-page .single-comments-section form.comment-form[data-comment-form] .comment-emoji-row,
  body.single-game-page .single-comments-section form.comment-form[data-comment-form] .comment-emoji-panel,
  body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .comment-emoji-row,
  body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .comment-emoji-panel,
  body.single-game-home .comments-section form.comment-form[data-comment-form] .comment-emoji-row,
  body.single-game-home .comments-section form.comment-form[data-comment-form] .comment-emoji-panel {
    max-width: none !important;
  }

  body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form] .comment-submit-button,
  body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form] .comment-submit-button,
  body.single-game-page .single-comments-section form.comment-form[data-comment-form] .comment-submit-button,
  body.single-game-page .single-comments-layout form.comment-form[data-comment-form] .comment-submit-button,
  body.single-game-home .comments-section form.comment-form[data-comment-form] .comment-submit-button {
    width: 100% !important;
    max-width: none !important;
  }
}

/* 2026-06-28: game comment form should stay in normal document flow, not sticky while scrolling. */
body.layout-02.refined-02 .comments-section form.comment-form[data-comment-form],
body.layout-02.refined-02 .comments-refined form.comment-form[data-comment-form],
body.single-game-home .comments-section form.comment-form[data-comment-form],
body.single-game-page .single-comments-section form.comment-form[data-comment-form],
body.single-game-page .single-comments-layout form.comment-form[data-comment-form],
form.comment-submit-form.single-comment-form {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  align-self: stretch !important;
}

/* 2026-06-30: keep single-game sidebar cards in normal flow on all breakpoints. */
body.single-game-page .server-side-panel {
  display: grid !important;
  gap: 16px !important;
  align-items: start !important;
}

body.single-game-page .server-side-panel > .server-news,
body.single-game-page.layout-02.refined-02 .server-side-panel > .server-news,
body.single-game-page.layout-02.refined-02 .server-side-panel .server-news,
body.single-game-page .single-hot-news-section,
body.single-game-page .single-recommend-section {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

body.single-game-page .single-hot-news-section .news-list,
body.single-game-page .single-recommend-section .single-recommend-list {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.single-game-page .single-hot-news-section .news-list {
  gap: 8px !important;
}

body.single-game-page .single-recommend-section .single-recommend-list {
  gap: 10px !important;
}

@media (max-width: 1120px) {
  body.single-game-page .server-side-panel {
    position: static !important;
    top: auto !important;
  }
}

/* 2026-07-01: news pagination and list/detail refinements. */
.news-lead-stack {
  display: grid !important;
  gap: 12px !important;
}

.news-lead-stack .news-lead {
  min-width: 0 !important;
}

.news-preview-layout .news-preview-article h1 {
  font-size: 22px !important;
  line-height: 1.36 !important;
}

.news-preview-layout .news-preview-meta a.news-meta-tag {
  text-decoration: none !important;
}

.news-preview-layout .news-preview-meta .game {
  color: #7c2d12 !important;
  background: #ffedd5 !important;
}

.news-pagination a,
.news-pagination span.news-page-step {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  color: #475569 !important;
  background: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.news-pagination a.active {
  border-color: #991b1b !important;
  color: #ffffff !important;
  background: #991b1b !important;
}

.news-pagination .is-disabled {
  cursor: not-allowed !important;
  opacity: .48 !important;
}

@media (max-width: 760px) {
  .news-preview-layout .news-preview-article h1 {
    font-size: 18px !important;
    line-height: 1.42 !important;
  }
}

/* 2026-07-01: site chrome refresh (topline + header nav icons). */
.topline {
  position: relative !important;
  overflow: hidden !important;
  color: rgba(255, 255, 255, 0.9) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(239, 68, 68, 0.22) 0, transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(127, 29, 29, 0.35) 0, transparent 36%),
    linear-gradient(90deg, #1a1011 0%, #241416 52%, #181112 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.topline::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 48px
  );
  pointer-events: none;
  content: "";
}

.topline-inner {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) auto auto !important;
  align-items: center !important;
  width: min(1240px, calc(100% - 32px)) !important;
  min-height: 44px !important;
  margin: 0 auto !important;
  gap: 20px !important;
  padding: 8px 0 !important;
}

.topline-main {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.topline .top-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 30px !important;
  padding: 0 12px 0 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.topline .top-brand::before {
  display: none !important;
  content: none !important;
}

.top-brand-mark {
  display: inline-grid !important;
  place-items: center !important;
  width: 30px !important;
  height: 22px !important;
  border-radius: 999px !important;
  color: #7f1d1d !important;
  background: linear-gradient(180deg, #fff 0%, #fee2e2 100%) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
}

.topline-slogan {
  margin: 0 !important;
  overflow: hidden !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.topline-features {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.top-feature {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 32px !important;
  padding: 0 12px 0 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.92) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.top-feature-icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.top-feature-icon svg {
  width: 13px !important;
  height: 13px !important;
  fill: none !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.top-feature-save .top-feature-icon {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.88)) !important;
  border: 1px solid rgba(253, 230, 138, 0.35) !important;
}

.top-feature-save .top-feature-icon svg { stroke: #fffbeb !important; }

.top-feature-time .top-feature-icon {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.92), rgba(29, 78, 216, 0.86)) !important;
  border: 1px solid rgba(147, 197, 253, 0.32) !important;
}

.top-feature-time .top-feature-icon svg { stroke: #eff6ff !important; }

.top-feature-easy .top-feature-icon {
  background: linear-gradient(145deg, rgba(220, 38, 38, 0.94), rgba(185, 28, 28, 0.88)) !important;
  border: 1px solid rgba(254, 202, 202, 0.34) !important;
}

.top-feature-easy .top-feature-icon svg { stroke: #fff1f2 !important; }

.topline-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.topline-links {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.topline-links a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

.topline-links a svg {
  width: 13px !important;
  height: 13px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.topline-link-primary {
  color: #fff !important;
  background: rgba(185, 28, 28, 0.42) !important;
  border: 1px solid rgba(252, 165, 165, 0.28) !important;
}

.topline-link-ghost {
  color: rgba(255, 255, 255, 0.86) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.top-status,
.topline .site-slogan .top-values {
  display: none !important;
}

.site-header {
  position: relative !important;
  z-index: 20 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(230, 234, 240, 0.95) !important;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.055) !important;
  backdrop-filter: blur(10px);
}

.site-header .header-inner {
  display: grid !important;
  grid-template-columns: 184px minmax(280px, 1fr) auto !important;
  align-items: center !important;
  min-height: 72px !important;
  gap: 22px !important;
  padding: 12px 0 !important;
}

.site-header .search {
  display: flex !important;
  align-items: stretch !important;
  height: 42px !important;
  min-width: 0 !important;
  border: 1px solid #e6eaf0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04) !important;
  overflow: hidden !important;
}

.site-header .search:focus-within {
  border-color: rgba(185, 28, 28, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.08) !important;
}

.site-header .search-icon {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  color: #94a3b8 !important;
  font-size: 14px !important;
  flex: 0 0 auto !important;
}

.site-header .search::before,
.site-header .search::after,
.site-header .search button::before,
.site-header .search button::after {
  display: none !important;
  content: none !important;
}

.site-header .search input {
  flex: 1 !important;
  min-width: 0 !important;
  border: 0 !important;
  padding: 0 12px 0 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-header .search button {
  flex: 0 0 auto !important;
  min-width: 62px !important;
  width: auto !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: linear-gradient(180deg, #b91c1c 0, #991b1b 100%) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.site-header .channel-nav {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.site-header .channel-nav a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 38px !important;
  padding: 0 12px 0 8px !important;
  border: 1px solid #e6eaf0 !important;
  border-radius: 8px !important;
  color: #344054 !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.site-header .channel-nav a::before {
  display: none !important;
  content: none !important;
}

.site-header .nav-icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
  flex: 0 0 auto !important;
}

.site-header .nav-icon svg {
  width: 14px !important;
  height: 14px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.site-header .nav-icon-home {
  color: #991b1b !important;
  background: linear-gradient(180deg, #fff5f5 0%, #ffe4e6 100%) !important;
  border: 1px solid #fecdd3 !important;
}

.site-header .nav-icon-mobile {
  color: #047857 !important;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%) !important;
  border: 1px solid #a7f3d0 !important;
}

.site-header .nav-icon-pc {
  color: #1d4ed8 !important;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
  border: 1px solid #bfdbfe !important;
}

.site-header .nav-icon-web {
  color: #0f766e !important;
  background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 100%) !important;
  border: 1px solid #99f6e4 !important;
}

.site-header .nav-icon-single {
  color: #7c3aed !important;
  background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%) !important;
  border: 1px solid #ddd6fe !important;
}

.site-header .nav-icon-news {
  color: #c2410c !important;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%) !important;
  border: 1px solid #fed7aa !important;
}

.site-header .channel-nav a:hover {
  color: #991b1b !important;
  border-color: rgba(185, 28, 28, 0.28) !important;
  background: #fff1f2 !important;
  transform: translateY(-1px);
}

.site-header .channel-nav a.active {
  color: #fff !important;
  border-color: #b91c1c !important;
  background: linear-gradient(180deg, #b91c1c 0, #991b1b 100%) !important;
  box-shadow: 0 10px 18px rgba(153, 27, 27, 0.16) !important;
}

.site-header .channel-nav a.active .nav-icon {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

@media (max-width: 1120px) {
  .topline-inner {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 10px 0 !important;
  }

  .topline-main {
    flex-wrap: wrap !important;
  }

  .topline-slogan {
    white-space: normal !important;
  }

  .topline-features,
  .topline-actions {
    justify-content: flex-start !important;
  }

  .site-header .header-inner {
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    gap: 12px !important;
  }

  .site-header .search {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
  }

  .site-header .channel-nav {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .site-header .channel-nav::-webkit-scrollbar {
    display: none !important;
  }

  .site-header .channel-nav a {
    flex: 0 0 auto !important;
  }
}

@media (max-width: 760px) {
  .topline {
    display: none !important;
  }

  .site-header .header-inner {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    align-items: center !important;
    width: min(100% - 24px, 1240px) !important;
    min-height: 0 !important;
    gap: 10px 12px !important;
    padding: 10px 0 11px !important;
  }

  .site-header .logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 168px !important;
    height: 48px !important;
    justify-self: start !important;
  }

  .site-header .mobile-header-values {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .site-header .mobile-header-values::-webkit-scrollbar {
    display: none !important;
  }

  .site-header .mobile-header-values .top-feature {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
    height: 26px !important;
    padding: 0 8px 0 3px !important;
    border: 1px solid #e6eaf0 !important;
    border-radius: 999px !important;
    color: #344054 !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .site-header .mobile-header-values .top-feature-icon {
    display: inline-grid !important;
    place-items: center !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 5px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    flex: 0 0 auto !important;
  }

  .site-header .mobile-header-values .top-feature-icon svg {
    width: 10px !important;
    height: 10px !important;
    fill: none !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  .site-header .mobile-header-values .top-feature-save .top-feature-icon {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.88)) !important;
    border: 1px solid rgba(253, 230, 138, 0.35) !important;
  }

  .site-header .mobile-header-values .top-feature-save .top-feature-icon svg {
    stroke: #fffbeb !important;
  }

  .site-header .mobile-header-values .top-feature-time .top-feature-icon {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.92), rgba(29, 78, 216, 0.86)) !important;
    border: 1px solid rgba(147, 197, 253, 0.32) !important;
  }

  .site-header .mobile-header-values .top-feature-time .top-feature-icon svg {
    stroke: #eff6ff !important;
  }

  .site-header .mobile-header-values .top-feature-easy .top-feature-icon {
    background: linear-gradient(145deg, rgba(220, 38, 38, 0.94), rgba(185, 28, 28, 0.88)) !important;
    border: 1px solid rgba(254, 202, 202, 0.34) !important;
  }

  .site-header .mobile-header-values .top-feature-easy .top-feature-icon svg {
    stroke: #fff1f2 !important;
  }

  .site-header .mobile-header-values span::before {
    display: none !important;
    content: none !important;
  }

  .site-header .search {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: 38px !important;
    min-width: 0 !important;
  }

  .site-header .search-icon {
    width: 38px !important;
    flex: 0 0 38px !important;
  }

  .site-header .search button {
    min-width: 58px !important;
    width: auto !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }

  .site-header .channel-nav {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 0 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none !important;
    gap: 8px !important;
  }

  .site-header .channel-nav::-webkit-scrollbar {
    display: none !important;
  }

  .site-header .channel-nav a {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 10px 0 6px !important;
    font-size: 12px !important;
    scroll-snap-align: start;
    transform: none !important;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04) !important;
  }

  .site-header .channel-nav a:hover,
  .site-header .channel-nav a.active {
    transform: none !important;
  }

  .site-header .channel-nav a.active {
    box-shadow: 0 6px 14px rgba(153, 27, 27, 0.14) !important;
  }

  .site-header .nav-icon {
    width: 20px !important;
    height: 20px !important;
    border-radius: 6px !important;
  }

  .site-header .nav-icon svg {
    width: 12px !important;
    height: 12px !important;
  }
}

@media (max-width: 380px) {
  .site-header .header-inner {
    grid-template-columns: 146px minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .site-header .logo {
    width: 146px !important;
    height: 42px !important;
  }

  .site-header .mobile-header-values {
    gap: 3px !important;
  }

  .site-header .mobile-header-values .top-feature {
    height: 24px !important;
    padding: 0 6px 0 2px !important;
    font-size: 10px !important;
  }

  .site-header .mobile-header-values .top-feature-icon {
    width: 16px !important;
    height: 16px !important;
    border-radius: 4px !important;
  }

  .site-header .mobile-header-values .top-feature-icon svg {
    width: 9px !important;
    height: 9px !important;
  }
}

/* 2026-07-01: home category panel + flyout hover UI */
.category-panel {
  position: relative !important;
  z-index: 12 !important;
  padding: 16px !important;
  border: 1px solid #e6eaf0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.055) !important;
}

.category-panel .panel-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}

.category-panel .panel-title h2 {
  position: relative !important;
  margin: 0 !important;
  padding-left: 12px !important;
  color: #111827 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

.category-panel .panel-title h2::before {
  display: block !important;
  position: absolute !important;
  top: 3px !important;
  bottom: 3px !important;
  left: 0 !important;
  width: 4px !important;
  border-radius: 999px !important;
  background: #b91c1c !important;
  content: "" !important;
}

.category-list {
  display: grid !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.category-list li {
  position: relative !important;
  border: 1px solid #e6eaf0 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  overflow: visible !important;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease !important;
}

.category-list li::before {
  display: none !important;
  content: none !important;
}

.category-list li::after {
  position: absolute !important;
  top: 50% !important;
  right: -18px !important;
  width: 18px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #dc2626 !important;
  opacity: 0 !important;
  transform: translateY(-50%) !important;
  transition: opacity 0.18s ease !important;
  content: "" !important;
  pointer-events: none !important;
}

.category-list a {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-height: 76px !important;
  padding: 12px 12px 12px 16px !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #334155 !important;
  text-decoration: none !important;
  transition: color 0.18s ease, background 0.18s ease !important;
}

.category-list a:hover {
  color: #334155 !important;
  background: transparent !important;
}

.category-list .category-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.category-list strong {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  color: #1f2937 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.category-list strong::before {
  display: none !important;
  content: none !important;
}

.category-list .cat-icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 6px !important;
  flex: 0 0 auto !important;
}

.category-list .cat-icon svg {
  width: 10px !important;
  height: 10px !important;
  fill: none !important;
  stroke: #fff !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.category-list .cat-icon-mobile {
  background: #dc2626 !important;
}

.category-list .cat-icon-pc {
  background: #7f1d1d !important;
}

.category-list .cat-icon-web {
  background: #6d28d9 !important;
}

.category-list .cat-icon-single {
  background: #a16207 !important;
}

.category-list .count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-width: 34px !important;
  height: 22px !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #991b1b !important;
  background: color-mix(in srgb, #991b1b 10%, #ffffff) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.category-list em {
  display: block !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-style: normal !important;
  line-height: 1.55 !important;
}

.category-list li:hover,
.hero-layout[data-active-category="mobile"] .category-item-mobile,
.hero-layout[data-active-category="pc"] .category-item-pc,
.hero-layout[data-active-category="web"] .category-item-web,
.hero-layout[data-active-category="single"] .category-item-single,
.hero-layout:has(.category-flyout:nth-child(1):hover) .category-item-mobile,
.hero-layout:has(.category-flyout:nth-child(2):hover) .category-item-pc,
.hero-layout:has(.category-flyout:nth-child(3):hover) .category-item-web,
.hero-layout:has(.category-flyout:nth-child(4):hover) .category-item-single {
  border-color: #fca5a5 !important;
  background: #fef2f2 !important;
  box-shadow: 0 10px 22px rgba(127, 29, 29, 0.1) !important;
  transform: translateX(3px) !important;
}

.category-list li:hover::after,
.hero-layout[data-active-category="mobile"] .category-item-mobile::after,
.hero-layout[data-active-category="pc"] .category-item-pc::after,
.hero-layout[data-active-category="web"] .category-item-web::after,
.hero-layout[data-active-category="single"] .category-item-single::after,
.hero-layout:has(.category-flyout:nth-child(1):hover) .category-item-mobile::after,
.hero-layout:has(.category-flyout:nth-child(2):hover) .category-item-pc::after,
.hero-layout:has(.category-flyout:nth-child(3):hover) .category-item-web::after,
.hero-layout:has(.category-flyout:nth-child(4):hover) .category-item-single::after {
  opacity: 1 !important;
}

.category-list li:hover strong,
.hero-layout[data-active-category="mobile"] .category-item-mobile strong,
.hero-layout[data-active-category="pc"] .category-item-pc strong,
.hero-layout[data-active-category="web"] .category-item-web strong,
.hero-layout[data-active-category="single"] .category-item-single strong,
.hero-layout:has(.category-flyout:nth-child(1):hover) .category-item-mobile strong,
.hero-layout:has(.category-flyout:nth-child(2):hover) .category-item-pc strong,
.hero-layout:has(.category-flyout:nth-child(3):hover) .category-item-web strong,
.hero-layout:has(.category-flyout:nth-child(4):hover) .category-item-single strong {
  color: #991b1b !important;
}

.category-flyouts {
  left: 220px !important;
  z-index: 11 !important;
}

.category-flyout {
  position: absolute !important;
  inset: 0 !important;
  display: none !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 18px !important;
  min-height: 414px !important;
  padding: 22px !important;
  border-radius: 10px !important;
  color: #fff !important;
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.22) !important;
  animation: categoryFlyoutIn 0.2s ease !important;
}

.category-flyout::before {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: -30px !important;
  width: 30px !important;
  content: "" !important;
}

@keyframes categoryFlyoutIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-layout:has(.category-list li:nth-child(1):hover) .category-flyout:nth-child(1),
.hero-layout[data-active-category="mobile"] .category-flyout:nth-child(1),
.hero-layout:has(.category-flyout:nth-child(1):hover) .category-flyout:nth-child(1),
.hero-layout:has(.category-list li:nth-child(2):hover) .category-flyout:nth-child(2),
.hero-layout[data-active-category="pc"] .category-flyout:nth-child(2),
.hero-layout:has(.category-flyout:nth-child(2):hover) .category-flyout:nth-child(2),
.hero-layout:has(.category-list li:nth-child(3):hover) .category-flyout:nth-child(3),
.hero-layout[data-active-category="web"] .category-flyout:nth-child(3),
.hero-layout:has(.category-flyout:nth-child(3):hover) .category-flyout:nth-child(3),
.hero-layout:has(.category-list li:nth-child(4):hover) .category-flyout:nth-child(4),
.hero-layout[data-active-category="single"] .category-flyout:nth-child(4),
.hero-layout:has(.category-flyout:nth-child(4):hover) .category-flyout:nth-child(4) {
  display: grid !important;
}

.flyout-hot-list {
  display: grid !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  min-height: 100% !important;
}

.flyout-hot-card {
  display: grid !important;
  grid-template-columns: 84px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 11px !important;
  min-width: 0 !important;
  padding: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 8px !important;
  color: #fff !important;
  background: rgba(15, 23, 42, 0.66) !important;
  text-decoration: none !important;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease !important;
}

.flyout-hot-card:hover {
  border-color: rgba(254, 202, 202, 0.42) !important;
  background: rgba(185, 28, 28, 0.78) !important;
  transform: translateX(3px) !important;
}

.flyout-hot-card img {
  width: 84px !important;
  height: 70px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
}

.flyout-hot-card span {
  color: #fecaca !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.flyout-hot-card strong {
  display: block !important;
  margin-top: 4px !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
}

.flyout-hot-card em {
  display: block !important;
  margin-top: 5px !important;
  color: #e5e7eb !important;
  font-size: 12px !important;
  font-style: normal !important;
  line-height: 1.5 !important;
}

.flyout-mini-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(46px, 1fr) !important;
  gap: 8px !important;
  min-height: 100% !important;
}

.flyout-mini-game {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  padding: 7px !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 8px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.09) !important;
  text-decoration: none !important;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease !important;
}

.flyout-mini-game:hover {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-2px) !important;
}

.flyout-mini-game img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 7px !important;
  object-fit: cover !important;
  flex: 0 0 auto !important;
}

.flyout-mini-game span {
  min-width: 0 !important;
  overflow: hidden !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.flyout-mini-game.flyout-more {
  justify-content: center !important;
  border-style: dashed !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.flyout-mini-game.flyout-more span {
  color: #fecaca !important;
  font-weight: 900 !important;
}

.flyout-empty {
  display: grid !important;
  place-items: center !important;
  min-height: 120px !important;
  padding: 16px !important;
  border: 1px dashed rgba(255, 255, 255, 0.18) !important;
  border-radius: 8px !important;
  color: #cbd5e1 !important;
  font-size: 13px !important;
}

@media (max-width: 1120px) {
  .category-flyouts {
    left: 210px !important;
  }

  .category-flyout {
    grid-template-columns: 260px minmax(0, 1fr) !important;
    padding: 18px !important;
  }

  .flyout-mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .category-panel .panel-title {
    margin-bottom: 12px !important;
  }

  .category-list li::after {
    display: none !important;
  }

  .category-flyouts {
    display: none !important;
  }

  .category-list a {
    min-height: 68px !important;
    padding: 10px 10px 10px 12px !important;
    gap: 3px !important;
  }

  .category-list .category-head {
    gap: 6px !important;
  }

  .category-list strong {
    gap: 5px !important;
    font-size: 13px !important;
  }

  .category-list .cat-icon {
    width: 16px !important;
    height: 16px !important;
    border-radius: 5px !important;
  }

  .category-list .cat-icon svg {
    width: 9px !important;
    height: 9px !important;
  }

  .category-list .count {
    min-width: 30px !important;
    height: 20px !important;
    padding: 0 7px !important;
    font-size: 11px !important;
  }

  .category-list em {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }
}

/* 20260701: mobile ad-showcase — copy at top, server panel follows tags */
@media (max-width: 760px) {
  .ad-showcase,
  .ad-track,
  .ad-slide {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
  }

  .ad-slide[style*="--slide-img"] {
    background-image:
      linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.42) 34%, rgba(15, 23, 42, 0.28) 52%, rgba(15, 23, 42, 0.88) 76%, rgba(15, 23, 42, 0.96) 100%),
      var(--slide-img) !important;
    background-position: center top !important;
    background-size: cover !important;
  }

  .ad-slide {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px 14px 50px !important;
    overflow: hidden !important;
  }

  .ad-copy {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
  }

  .ad-copy .ad-badge {
    height: 24px !important;
    margin-bottom: 4px !important;
    font-size: 11px !important;
  }

  .ad-copy h1 {
    margin: 0 0 6px !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
  }

  .ad-copy p {
    margin: 0 !important;
    max-height: 2.8em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-height: 1.45 !important;
    font-size: 12px !important;
  }

  .ad-meta.game-tag-list {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .slide-detail.slide-server-detail {
    flex: 0 0 auto !important;
    align-self: stretch !important;
    margin-top: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 12px !important;
    gap: 10px !important;
    overflow: visible !important;
  }

  .slide-server-head {
    flex: 0 0 auto !important;
    padding-bottom: 10px !important;
  }

  .slide-server-head span {
    font-size: 15px !important;
  }

  .slide-server-head em {
    height: 24px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
  }

  .slide-server-cards {
    display: grid !important;
    grid-auto-rows: minmax(62px, auto) !important;
    max-height: none !important;
    overflow: visible !important;
    gap: 10px !important;
  }

  .slide-server-cards:has(.slide-server-card:only-child) {
    grid-auto-rows: minmax(72px, auto) !important;
  }

  .slide-server-card {
    min-height: 62px !important;
    padding: 10px 12px !important;
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .slide-server-cards:has(.slide-server-card:only-child) .slide-server-card {
    min-height: 72px !important;
  }

  .slide-server-card i {
    width: 38px !important;
    height: 38px !important;
    font-size: 12px !important;
  }

  .slide-server-card b {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  .slide-server-card small {
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .slide-server-card em {
    height: 24px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
  }

  .ad-dots {
    z-index: 8 !important;
    left: 14px !important;
    bottom: 14px !important;
  }

  .ad-controls {
    z-index: 8 !important;
    top: auto !important;
    bottom: 10px !important;
    left: auto !important;
    right: 14px !important;
    width: auto !important;
    gap: 8px !important;
    transform: none !important;
    justify-content: flex-end !important;
  }

  .ad-showcase.is-manual-carousel .ad-controls {
    top: auto !important;
    bottom: 10px !important;
    right: 14px !important;
  }

  .ad-control {
    width: 32px !important;
    height: 32px !important;
    font-size: 22px !important;
  }
}

/* 20260701-home-rank-latest-v1: download rank + latest games home sections */
#download-rank .panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

#download-rank .panel-title h2 {
  position: relative;
  margin: 0;
  padding-left: 12px !important;
  color: var(--ink, #111827);
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

#download-rank .panel-title h2::before {
  display: block !important;
  position: absolute !important;
  top: 3px !important;
  bottom: 3px !important;
  left: 0 !important;
  width: 4px !important;
  border-radius: 999px !important;
  background: #b91c1c !important;
  content: "" !important;
}

#latest-games .panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

#latest-games .panel-title h2 {
  position: relative;
  margin: 0;
  padding-left: 12px !important;
  color: var(--ink, #111827);
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

#latest-games .panel-title h2::before {
  display: block !important;
  position: absolute !important;
  top: 3px !important;
  bottom: 3px !important;
  left: 0 !important;
  width: 4px !important;
  border-radius: 999px !important;
  background: #b91c1c !important;
  content: "" !important;
}

#news-channel .panel-title,
#topics .panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

#news-channel .panel-title h2,
#topics .panel-title h2 {
  position: relative;
  margin: 0;
  padding-left: 12px !important;
  color: var(--ink, #111827);
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

#news-channel .panel-title h2::before,
#topics .panel-title h2::before {
  display: block !important;
  position: absolute !important;
  top: 3px !important;
  bottom: 3px !important;
  left: 0 !important;
  width: 4px !important;
  border-radius: 999px !important;
  background: #b91c1c !important;
  content: "" !important;
}

#topics a.topic-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  color: inherit;
  text-decoration: none;
}

#topics .topic-card-action {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  margin-top: auto;
  padding: 0 12px;
  border-radius: 6px;
  color: #ffffff;
  background: #f97316;
  font-size: 12px;
  font-weight: 800;
}

#topics .topic-card-action::before {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
  content: "";
}

#topics a.topic-card:hover .topic-card-action {
  background: #ea580c;
}

#latest-games #latestGameTabs.rank-table-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#latest-games #latestGameTabs.rank-table-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius-sm, 8px);
  color: #475467;
  background: var(--surface-panel, #fff);
  font-size: 13px;
  font-weight: 900;
}

#latest-games #latestGameTabs.rank-table-tabs a:hover {
  color: var(--brand-strong, #991b1b);
  border-color: rgba(185, 28, 28, 0.28);
  background: var(--brand-soft, #fff1f2);
}

#latest-games #latestGameTabs.rank-table-tabs a.active {
  color: #fff;
  border-color: var(--brand, #b91c1c);
  background: linear-gradient(180deg, var(--brand, #b91c1c) 0, var(--brand-strong, #991b1b) 100%);
  box-shadow: 0 8px 16px rgba(153, 27, 27, 0.14);
}

#latest-games #latestGamePanels {
  margin: 0;
  padding: 0;
}

#latest-games [data-static-panel] {
  margin: 0;
  padding: 0;
}

#download-rank .rank-table-shell {
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid var(--line-soft, #e9edf3);
  border-radius: var(--radius, 12px);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

#download-rank .rank-table-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
  padding: 12px 12px 10px;
  border: 0 !important;
  border-bottom: 1px solid var(--line-soft, #e9edf3) !important;
  border-radius: 0 !important;
  background: var(--surface-soft, #f8fafc);
}

#download-rank .rank-table-tabs a {
  border-radius: 999px;
}

#download-rank .rank-table-head,
#download-rank .rank-table-row {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1.45fr) 104px 108px !important;
  gap: 10px;
  align-items: center;
  padding-left: 14px;
  padding-right: 14px;
}

#download-rank .rank-table-head {
  min-height: 38px;
  margin: 0;
  border-bottom: 1px solid var(--line-soft, #e9edf3);
  border-top: 0;
  background: #fafafa;
  font-size: 12px;
  font-weight: 900;
}

#download-rank #downloadRankPanels {
  margin: 0;
  padding: 0;
}

#download-rank [data-static-panel] {
  margin: 0;
  padding: 0;
}

#download-rank .rank-table-head span:nth-child(1),
#download-rank .rank-table-head span:nth-child(3),
#download-rank .rank-table-head span:nth-child(4) {
  text-align: center;
  justify-self: center;
}

#download-rank .rank-table-row {
  min-height: 80px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft, #e9edf3);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  text-decoration: none;
}

#download-rank .rank-table-row:last-child {
  border-bottom: 0;
}

#download-rank .rank-table-row:hover {
  background: var(--brand-soft, #fff1f2);
  box-shadow: inset 3px 0 0 var(--brand, #b91c1c);
  transform: none;
}

#download-rank .rank-num-pill {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: visible;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #94a3b8, #64748b);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

#download-rank .rank-num-pill.rank-1 {
  background: linear-gradient(145deg, #fcd34d, #d97706);
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.28);
}

#download-rank .rank-num-pill.rank-2 {
  background: linear-gradient(145deg, #e2e8f0, #64748b);
  box-shadow: 0 6px 14px rgba(100, 116, 139, 0.22);
}

#download-rank .rank-num-pill.rank-3 {
  background: linear-gradient(145deg, #fdba74, #c2410c);
  box-shadow: 0 6px 14px rgba(194, 65, 12, 0.22);
}

#download-rank .rank-num-pill.rank-1::before,
#download-rank .rank-num-pill.rank-2::before,
#download-rank .rank-num-pill.rank-3::before {
  position: absolute;
  top: -9px;
  left: 50%;
  display: grid !important;
  place-items: center;
  width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  border-radius: 999px;
  color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
  transform: translateX(-50%);
  content: "" !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

#download-rank .rank-num-pill.rank-1::before {
  background-color: #92400e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l2 10h8l2-10-4 2-2-3-2 3-4-2z'/%3E%3Cpath d='M4 9h16'/%3E%3C/svg%3E");
}

#download-rank .rank-num-pill.rank-2::before {
  background-color: #475569;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 17V7'/%3E%3Cpath d='M7 7h10l-1.2 4H8.2L7 7z'/%3E%3C/svg%3E");
}

#download-rank .rank-num-pill.rank-3::before {
  background-color: #7c2d12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 14l-2.5 4.5h5L12 14z'/%3E%3Cpath d='M8 18h8'/%3E%3Cpath d='M7 10h10l-1.5 4H8.5L7 10z'/%3E%3C/svg%3E");
}

#download-rank .rank-num-pill:not(.rank-1):not(.rank-2):not(.rank-3)::before {
  display: none !important;
  content: none !important;
}

#download-rank .rank-game-cell {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

#download-rank .rank-game-cell img {
  width: 66px;
  height: 44px;
  aspect-ratio: 3 / 2 !important;
  border-radius: var(--radius-sm, 8px);
  object-fit: cover;
}

#download-rank .rank-game-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

#download-rank .rank-table-row h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

#download-rank .rank-game-title-row .game-tag {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
  flex-shrink: 0;
}

#download-rank .rank-table-row p {
  margin: 4px 0 0;
  color: var(--muted, #64748b);
  font-size: 12px;
  line-height: 1.55;
}

#download-rank .rank-table-row .rank-num-pill,
#download-rank .rank-table-row .rank-download-tag,
#download-rank .rank-table-row .rank-launch-tag {
  justify-self: center;
}

#download-rank .rank-type-tag {
  display: none !important;
}

#download-rank .rank-type-tag svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

#download-rank .rank-download-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 78px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--brand-line, #fecaca);
  border-radius: 999px;
  color: var(--brand-strong, #991b1b);
  background: var(--brand-soft, #fff1f2);
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#download-rank .rank-download-tag svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: var(--brand, #b91c1c);
}

#download-rank .rank-download-tag::before,
#download-rank .rank-table-row > .rank-download-tag::before,
#download-rank .rank-table-row > span.rank-download-tag::before,
#download-rank .rank-table-row > span:nth-of-type(1).rank-download-tag::before {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  clip-path: none !important;
  content: none !important;
}

#download-rank .rank-launch-tag::before,
#download-rank .rank-table-row > .rank-launch-tag::before,
#download-rank .rank-table-row > span.rank-launch-tag::before,
#download-rank .rank-table-row > span:nth-of-type(2).rank-launch-tag::before {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  clip-path: none !important;
  content: none !important;
}

#download-rank .rank-launch-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 72px;
  min-height: 28px;
  padding: 0 10px 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: none;
  text-align: center;
  white-space: nowrap;
}

#download-rank .rank-launch-tag time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#download-rank .rank-launch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #64748b;
}

#download-rank .rank-launch-icon svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

#download-rank .rank-launch-date {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.01em;
}

#download-rank .rank-launch-tag.is-new {
  border-color: #fecdd3;
  background: #fff1f2;
}

#download-rank .rank-launch-tag.is-new .rank-launch-icon,
#download-rank .rank-launch-tag.is-new .rank-launch-date {
  color: #be123c;
}

#download-rank .rank-launch-tag.is-upcoming {
  border-color: #bae6fd;
  background: #f0f9ff;
}

#download-rank .rank-launch-tag.is-upcoming .rank-launch-icon,
#download-rank .rank-launch-tag.is-upcoming .rank-launch-date {
  color: #0284c7;
}

#download-rank .rank-launch-tag.is-set {
  border-color: #e2e8f0;
  background: #f8fafc;
}

#download-rank .rank-launch-tag.is-set .rank-launch-icon {
  color: #64748b;
}

#download-rank .rank-launch-tag.is-set .rank-launch-date {
  color: #475569;
}

#download-rank .rank-launch-tag.is-empty {
  min-height: 28px;
  padding: 0 10px 0 8px;
  border-style: dashed;
  border-color: #e2e8f0;
  background: #fafafa;
}

#download-rank .rank-launch-tag.is-empty .rank-launch-icon,
#download-rank .rank-launch-tag.is-empty .rank-launch-date {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

#latest-games .recommend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#latest-games .recommend-list {
  display: grid;
  gap: 10px;
  grid-column: 1;
  grid-row: 1;
}

#latest-games .recommend-item {
  display: grid;
  grid-template-columns: 46px 108px minmax(0, 1fr) !important;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius, 12px);
  background: var(--surface-soft, #f8fafc);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

#latest-games .recommend-item:hover {
  border-color: rgba(185, 28, 28, 0.22);
  background: var(--brand-soft, #fff1f2);
  box-shadow: var(--shadow-hover);
  transform: translateX(3px);
}

#latest-games .recommend-item.is-active {
  border-color: var(--brand, #b91c1c) !important;
  background: var(--brand-soft, #fff1f2) !important;
  box-shadow: inset 3px 0 0 var(--brand, #b91c1c), var(--shadow-sm) !important;
  transform: translateX(3px);
}

#latest-games .recommend-item.is-active .recommend-index {
  color: #fff !important;
  background: var(--brand, #b91c1c) !important;
  border-color: var(--brand, #b91c1c) !important;
  box-shadow: none !important;
}

#latest-games .recommend-item.is-active .recommend-index::before {
  color: #fff !important;
}

#latest-games .recommend-index {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 48px;
  border: 1px solid var(--brand-line, #fecaca);
  border-radius: var(--radius-sm, 8px);
  color: var(--brand, #b91c1c);
  background: #fff;
  font-size: 15px;
  font-weight: 900;
}

#latest-games .recommend-item img {
  width: 108px;
  height: 72px;
  aspect-ratio: 3 / 2 !important;
  border-radius: var(--radius-sm, 8px);
  object-fit: cover;
}

#latest-games .recommend-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

#latest-games .recommend-title-row h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

#latest-games .recommend-title-row .game-tag {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

#latest-games .recommend-main p {
  margin: 6px 0 0;
  color: var(--muted, #64748b);
  font-size: 12px;
  line-height: 1.55;
}

#latest-games .recommend-detail-stack {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

#latest-games .recommend-detail-stack .recommend-info {
  display: none;
  position: sticky;
  top: 16px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

#latest-games .recommend-detail-stack .recommend-info.is-active {
  display: block !important;
}

#latest-games .recommend-detail-card {
  overflow: hidden;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius, 12px);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

#latest-games .recommend-detail-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

#latest-games .recommend-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#latest-games .recommend-detail-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.72) 100%);
  content: "";
  pointer-events: none;
}

#latest-games .recommend-detail-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

#latest-games .recommend-detail-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

#latest-games .recommend-detail-desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#latest-games .recommend-detail-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#latest-games .recommend-stat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft, #e9edf3);
  border-radius: var(--radius-sm, 8px);
  background: #fff;
}

#latest-games .recommend-stat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

#latest-games .recommend-stat-icon svg {
  width: 15px;
  height: 15px;
}

#latest-games .recommend-stat-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

#latest-games .recommend-stat-text em {
  color: var(--muted-2, #94a3b8);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

#latest-games .recommend-stat-text strong {
  overflow: hidden;
  color: var(--ink, #0f172a);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#latest-games .recommend-stat-download .recommend-stat-icon {
  color: var(--brand, #b91c1c);
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

#latest-games .recommend-stat-qq .recommend-stat-icon {
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

#latest-games .recommend-detail-servers {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line-soft, #e9edf3);
  border-radius: var(--radius-sm, 8px);
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

#latest-games .recommend-servers-head strong {
  font-size: 13px;
}

#latest-games .recommend-server-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line-soft, #e9edf3);
  border-radius: var(--radius-sm, 8px);
  color: inherit;
  text-decoration: none;
}

#latest-games .recommend-server-row.row-tone-1 {
  background: #fff7f7;
  border-color: #fecaca;
}

#latest-games .recommend-server-row.row-tone-2 {
  background: #eff6ff;
  border-color: #bfdbfe;
}

#latest-games .recommend-server-row.row-tone-3 {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

#latest-games .recommend-server-row:hover {
  border-color: rgba(185, 28, 28, 0.22);
  box-shadow: var(--shadow-xs);
}

#latest-games .recommend-server-row.row-tone-1:hover {
  background: #ffe4e6;
}

#latest-games .recommend-server-row.row-tone-2:hover {
  background: #dbeafe;
}

#latest-games .recommend-server-row.row-tone-3:hover {
  background: #d1fae5;
}

#latest-games .recommend-server-row i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand, #b91c1c);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

#latest-games .recommend-server-row:nth-child(3) i {
  background: #0369a1;
}

#latest-games .recommend-server-row:nth-child(4) i {
  background: #15803d;
}

#latest-games .recommend-server-row b {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

#latest-games .recommend-server-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted, #64748b);
  font-size: 11px;
}

#latest-games .recommend-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border-radius: var(--radius-sm, 8px);
  color: #fff;
  background: linear-gradient(180deg, var(--brand, #b91c1c) 0, var(--brand-strong, #991b1b) 100%);
  box-shadow: 0 8px 18px rgba(153, 27, 27, 0.18);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1120px) {
  #latest-games .recommend-layout {
    grid-template-columns: 1fr;
  }

  #latest-games .recommend-detail-stack {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  #latest-games .recommend-detail-stack {
    display: none !important;
  }
}

@media (max-width: 760px) {
  #download-rank .rank-table-row {
    grid-template-columns: 44px 60px minmax(0, 1fr) !important;
  }

  #download-rank .rank-num-pill {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  #download-rank .rank-num-pill.rank-1::before,
  #download-rank .rank-num-pill.rank-2::before,
  #download-rank .rank-num-pill.rank-3::before {
    display: none !important;
    content: none !important;
  }

  #download-rank .rank-game-cell > div {
    grid-column: 3;
    grid-row: 1;
  }

  #download-rank .rank-type-tag,
  #download-rank .rank-download-tag,
  #download-rank .rank-launch-tag {
    display: none !important;
  }

  #latest-games .recommend-layout {
    gap: 0;
  }

  #latest-games .recommend-detail-stack {
    display: none !important;
  }

  #latest-games .recommend-item {
    grid-template-columns: 40px 86px minmax(0, 1fr) !important;
  }

  #latest-games .recommend-item img {
    width: 86px;
    height: 58px;
  }

  #news-channel .news-fusion-layout {
    gap: 12px;
  }

  #news-channel .news-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: stretch;
    height: auto !important;
    padding: 10px;
    overflow-x: auto;
    border: 1px solid var(--line-soft, #e9edf3);
    border-radius: 12px;
    background: var(--surface-soft, #f8fafc);
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    grid-template-rows: none !important;
  }

  #news-channel .news-menu a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line-soft, #e2e8f0);
    border-radius: 999px;
    color: #475569;
    background: #fff;
    box-shadow: none;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    scroll-snap-align: start;
    transform: none !important;
  }

  #news-channel .news-menu a:first-child {
    color: #475569;
    background: #fff;
  }

  #news-channel .news-menu a:first-child:hover {
    color: var(--brand-strong, #991b1b);
    background: #fff7f7;
  }

  #news-channel .news-menu a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    color: #64748b;
    background: #f1f5f9;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
  }

  #news-channel .news-menu a.active,
  #news-channel .news-menu a:first-child.active {
    border-color: var(--brand, #b91c1c);
    color: #fff;
    background: linear-gradient(180deg, var(--brand, #b91c1c) 0, var(--brand-strong, #991b1b) 100%);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.18);
  }

  #news-channel .news-menu a.active span,
  #news-channel .news-menu a:first-child.active span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
  }

  #news-channel .news-menu a:hover {
    border-color: #fecaca;
    color: var(--brand-strong, #991b1b);
    background: #fff7f7;
    transform: none !important;
  }

  #news-channel .home-news-panels {
    grid-column: auto;
    min-width: 0;
  }

  #news-channel .home-news-panel:not([hidden]) {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #topics .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  #topics .topic-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-xs);
  }

  #topics .topic-card:hover {
    transform: none;
  }

  #topics .topic-card img {
    display: block;
    width: 100%;
    height: 78px;
    min-height: 78px;
    max-height: 78px;
    aspect-ratio: auto;
    object-fit: cover;
  }

  #topics .topic-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 10px 10px 12px;
  }

  #topics .topic-body h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    padding-right: 2px;
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #topics .topic-body h3::before {
    display: none;
  }

  #topics .topic-body p {
    display: none;
  }

  #topics .topic-body .topic-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 30px;
    margin-top: 0;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0;
    font-weight: 800;
  }

  #topics .topic-body .topic-card-action::after {
    content: "进入";
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
  }

  #topics .topic-body .topic-card-action::before {
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 5px solid currentColor;
    content: "";
  }

  #download-rank .rank-game-title-row .game-tag {
    display: none !important;
  }
}

/* Ensure rank crown/medal icons beat any legacy nth-of-type badge rules. */
#download-rank .rank-table-row:nth-of-type(1) .rank-num-pill.rank-1::before,
#download-rank .rank-table-row:nth-of-type(2) .rank-num-pill.rank-2::before,
#download-rank .rank-table-row:nth-of-type(3) .rank-num-pill.rank-3::before,
#download-rank .rank-num-pill.rank-1::before,
#download-rank .rank-num-pill.rank-2::before,
#download-rank .rank-num-pill.rank-3::before {
  display: grid !important;
  content: "" !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 11px 11px !important;
}

#download-rank .rank-table-row:nth-of-type(1) .rank-num-pill.rank-1::before,
#download-rank .rank-num-pill.rank-1::before {
  background-color: #92400e !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l2 10h8l2-10-4 2-2-3-2 3-4-2z'/%3E%3Cpath d='M4 9h16'/%3E%3C/svg%3E") !important;
}

#download-rank .rank-table-row:nth-of-type(2) .rank-num-pill.rank-2::before,
#download-rank .rank-num-pill.rank-2::before {
  background-color: #475569 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 17V7'/%3E%3Cpath d='M7 7h10l-1.2 4H8.2L7 7z'/%3E%3C/svg%3E") !important;
}

#download-rank .rank-table-row:nth-of-type(3) .rank-num-pill.rank-3::before,
#download-rank .rank-num-pill.rank-3::before {
  background-color: #7c2d12 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 14l-2.5 4.5h5L12 14z'/%3E%3Cpath d='M8 18h8'/%3E%3Cpath d='M7 10h10l-1.5 4H8.5L7 10z'/%3E%3C/svg%3E") !important;
}

/* home.css hides all panel-title bars; restore for home rank/latest sections. */
#download-rank.content-section .panel-title h2::before,
#latest-games.content-section .panel-title h2::before,
#news-channel.content-section .panel-title h2::before,
#topics.content-section .panel-title h2::before,
section#download-rank .panel-title h2::before,
section#latest-games .panel-title h2::before,
section#news-channel .panel-title h2::before,
section#topics .panel-title h2::before {
  display: block !important;
}

#latest-games .recommend-layout .recommend-item.is-active {
  border-color: #b91c1c !important;
  background: #fff1f2 !important;
  box-shadow: inset 3px 0 0 #b91c1c, 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

#latest-games .recommend-layout .recommend-item.is-active .recommend-index {
  color: #fff !important;
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}

/* 20260701-game-list-v18: game list page UI polish */
main.game-list-page .hot-recommend .panel-title h2,
main.game-list-page .game-list-panel .list-head h2,
main.game-list-page .mobile-news-section .panel-title h2 {
  position: relative;
  margin: 0;
  padding-left: 12px !important;
  color: var(--ink, #111827);
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

main.game-list-page .hot-recommend .panel-title h2::before,
main.game-list-page .game-list-panel .list-head h2::before,
main.game-list-page .mobile-news-section .panel-title h2::before {
  display: block !important;
  position: absolute !important;
  top: 3px !important;
  bottom: 3px !important;
  left: 0 !important;
  width: 4px !important;
  border-radius: 999px !important;
  background: #b91c1c !important;
  content: "" !important;
}

main.game-list-page .mobile-news-section .panel-title a {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

main.game-list-page .mobile-news-section .panel-title a:hover {
  color: #b91c1c;
}

main.game-list-page .list-head {
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

main.game-list-page .sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

main.game-list-page .sort-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius-sm, 8px);
  color: #475467;
  background: var(--surface-panel, #fff);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

main.game-list-page .sort-tabs a:hover {
  color: var(--brand-strong, #991b1b);
  border-color: rgba(185, 28, 28, 0.28);
  background: var(--brand-soft, #fff1f2);
}

main.game-list-page .sort-tabs a.active {
  color: #fff;
  border-color: var(--brand, #b91c1c);
  background: linear-gradient(180deg, var(--brand, #b91c1c) 0, var(--brand-strong, #991b1b) 100%);
  box-shadow: 0 8px 16px rgba(153, 27, 27, 0.14);
}

main.game-list-page .hot-grid {
  gap: 12px;
}

main.game-list-page .hot-card {
  gap: 8px;
  padding: 10px;
  border-color: var(--line, #e5e7eb);
  border-radius: var(--radius-sm, 8px);
  background: var(--surface-soft, #f8fafc);
}

main.game-list-page .hot-card img {
  aspect-ratio: 16 / 9 !important;
  border-radius: var(--radius-sm, 8px);
}

main.game-list-page .hot-card h3 {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main.game-list-page .hot-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 2.4em;
  font-size: 12px;
  line-height: 1.5;
}

main.game-list-page .hot-ribbon {
  top: 16px;
  left: 16px;
  height: 20px;
  padding: 0 7px;
  font-size: 10px;
  line-height: 20px;
}

main.game-list-page .filter-panel {
  padding: 16px 18px;
}

main.game-list-page .filter-label {
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

main.game-list-page .filter-options a {
  min-height: 32px;
  border-radius: 999px;
}

main.game-list-page .game-row-list {
  display: grid;
  gap: 10px;
}

main.game-list-page .game-row {
  grid-template-columns: 46px 108px minmax(0, 1fr) !important;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 10px;
  border-color: var(--line, #e5e7eb);
  border-radius: var(--radius, 12px);
  background: var(--surface-soft, #f8fafc);
  transform: none;
}

main.game-list-page .game-row:hover {
  border-color: rgba(185, 28, 28, 0.22);
  background: var(--brand-soft, #fff1f2);
  box-shadow: var(--shadow-hover, 0 10px 24px rgba(127, 29, 29, 0.08));
  transform: translateX(3px);
}

main.game-list-page .game-row.is-active {
  border-color: var(--brand, #b91c1c) !important;
  background: var(--brand-soft, #fff1f2) !important;
  box-shadow: inset 3px 0 0 var(--brand, #b91c1c), var(--shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.06)) !important;
  transform: translateX(3px);
}

main.game-list-page .game-cover {
  width: 108px !important;
  height: 72px !important;
  aspect-ratio: 3 / 2 !important;
  border-radius: var(--radius-sm, 8px);
  object-fit: cover;
}

main.game-list-page .game-no {
  display: grid;
  place-items: center;
  width: 42px;
  height: 48px;
  border: 1px solid var(--brand-line, #fecaca);
  border-radius: var(--radius-sm, 8px);
  color: var(--brand, #b91c1c);
  background: #fff;
  box-shadow: none;
}

main.game-list-page .game-no span {
  display: none;
}

main.game-list-page .game-no strong {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

main.game-list-page .game-no.rank-1,
main.game-list-page .game-no.rank-2,
main.game-list-page .game-no.rank-3 {
  color: #fff;
  border-color: transparent;
}

main.game-list-page .game-no.rank-1 {
  background: linear-gradient(145deg, #fcd34d, #d97706);
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.22);
}

main.game-list-page .game-no.rank-2 {
  background: linear-gradient(145deg, #e2e8f0, #64748b);
  box-shadow: 0 6px 14px rgba(100, 116, 139, 0.18);
}

main.game-list-page .game-no.rank-3 {
  background: linear-gradient(145deg, #fdba74, #c2410c);
  box-shadow: 0 6px 14px rgba(194, 65, 12, 0.18);
}

main.game-list-page .game-row.is-active .game-no:not(.rank-1):not(.rank-2):not(.rank-3) {
  color: #fff;
  border-color: var(--brand, #b91c1c);
  background: var(--brand, #b91c1c);
}

main.game-list-page .game-main {
  min-width: 0;
}

main.game-list-page .game-main h3 {
  overflow: hidden;
  margin: 0 0 2px;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main.game-list-page .game-main p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

main.game-list-page .game-row-tags {
  margin-top: 6px;
}

main.game-list-page .mobile-board {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0;
}

main.game-list-page .game-list-panel {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
}

main.game-list-page .game-list-panel > .recommend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

main.game-list-page .game-list-panel .recommend-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

main.game-list-page .recommend-detail-stack {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

main.game-list-page .recommend-detail-stack .recommend-info {
  display: none;
  position: sticky;
  top: 16px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

main.game-list-page .recommend-detail-stack .recommend-info.is-active {
  display: block !important;
}

main.game-list-page .recommend-detail-card {
  overflow: hidden;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius, 12px);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

main.game-list-page .recommend-detail-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

main.game-list-page .recommend-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main.game-list-page .recommend-detail-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.72) 100%);
  content: "";
  pointer-events: none;
}

main.game-list-page .recommend-detail-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

main.game-list-page .recommend-detail-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

main.game-list-page .recommend-detail-desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

main.game-list-page .recommend-detail-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

main.game-list-page .recommend-stat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft, #e9edf3);
  border-radius: var(--radius-sm, 8px);
  background: #fff;
}

main.game-list-page .recommend-stat-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

main.game-list-page .recommend-stat-icon svg {
  width: 16px;
  height: 16px;
}

main.game-list-page .recommend-stat-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

main.game-list-page .recommend-stat-text em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

main.game-list-page .recommend-stat-text strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main.game-list-page .recommend-stat-download .recommend-stat-icon {
  color: var(--brand, #b91c1c);
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

main.game-list-page .recommend-stat-qq .recommend-stat-icon {
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

main.game-list-page .recommend-detail-servers {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line-soft, #e9edf3);
  border-radius: var(--radius-sm, 8px);
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

main.game-list-page .recommend-servers-head strong {
  font-size: 13px;
}

main.game-list-page .recommend-server-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line-soft, #e9edf3);
  border-radius: var(--radius-sm, 8px);
  color: inherit;
  text-decoration: none;
}

main.game-list-page .recommend-server-row.row-tone-1 {
  background: #fff7f7;
  border-color: #fecaca;
}

main.game-list-page .recommend-server-row.row-tone-2 {
  background: #eff6ff;
  border-color: #bfdbfe;
}

main.game-list-page .recommend-server-row.row-tone-3 {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

main.game-list-page .recommend-server-row:hover {
  border-color: rgba(185, 28, 28, 0.22);
  box-shadow: var(--shadow-xs);
}

main.game-list-page .recommend-server-row.row-tone-1:hover {
  background: #ffe4e6;
}

main.game-list-page .recommend-server-row.row-tone-2:hover {
  background: #dbeafe;
}

main.game-list-page .recommend-server-row.row-tone-3:hover {
  background: #d1fae5;
}

main.game-list-page .recommend-server-row i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand, #b91c1c);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

main.game-list-page .recommend-server-row:nth-child(3) i {
  background: #0369a1;
}

main.game-list-page .recommend-server-row:nth-child(4) i {
  background: #15803d;
}

main.game-list-page .recommend-server-row b {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

main.game-list-page .recommend-server-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted, #64748b);
  font-size: 11px;
}

main.game-list-page .recommend-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border-radius: var(--radius-sm, 8px);
  color: #fff;
  background: linear-gradient(180deg, var(--brand, #b91c1c) 0, var(--brand-strong, #991b1b) 100%);
  box-shadow: 0 8px 18px rgba(153, 27, 27, 0.18);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1120px) {
  main.game-list-page .hot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  main.game-list-page .game-list-panel > .recommend-layout {
    grid-template-columns: 1fr;
  }

  main.game-list-page .recommend-detail-stack {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  main.game-list-page .mobile-board {
    grid-template-columns: 1fr !important;
  }

  main.game-list-page .recommend-detail-stack {
    display: none !important;
  }
}

@media (max-width: 760px) {
  main.game-list-page .list-head {
    align-items: stretch;
    flex-direction: column;
  }

  main.game-list-page .sort-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  main.game-list-page .sort-tabs::-webkit-scrollbar {
    display: none;
  }

  main.game-list-page .sort-tabs a {
    flex: 0 0 auto;
  }

  main.game-list-page .filter-row {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  main.game-list-page .filter-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  main.game-list-page .filter-options::-webkit-scrollbar {
    display: none;
  }

  main.game-list-page .filter-options a {
    flex: 0 0 auto;
  }

  main.game-list-page .hot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  main.game-list-page .hot-card p,
  main.game-list-page .hot-meta {
    display: none !important;
  }

  main.game-list-page .hot-card h3 {
    font-size: 14px;
    white-space: normal;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  main.game-list-page .game-row {
    grid-template-columns: 40px 86px minmax(0, 1fr) !important;
    gap: 10px;
    min-height: 0;
    padding: 10px;
    transform: none !important;
  }

  main.game-list-page .game-row:hover,
  main.game-list-page .game-row.is-active {
    transform: none !important;
  }

  main.game-list-page .game-cover {
    width: 86px !important;
    height: 58px !important;
  }

  main.game-list-page .game-no {
    width: 40px;
    height: 46px;
  }

  main.game-list-page .game-no strong {
    font-size: 14px;
  }

  main.game-list-page .game-row-tags {
    display: none !important;
  }

  main.game-list-page .game-main h3 {
    font-size: 15px;
    white-space: normal;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  main.game-list-page .game-main p {
    -webkit-line-clamp: 1;
  }
}

/* 20260701-game-news-v21: news list page polish */
main.news-list-page .filter-result {
  display: none !important;
}

a.news-item {
  cursor: pointer;
}

a.news-item:hover {
  border-color: rgba(185, 28, 28, 0.26);
  box-shadow: var(--shadow-md, 0 10px 24px rgba(127, 29, 29, 0.08));
  transform: translateY(-1px);
}

a.news-item .read-link {
  pointer-events: none;
}

a.news-item:hover .read-link {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(153, 27, 27, 0.18);
}

/* 20260701-home-flyout-v23: game detail titles, hero metrics, server table polish, home category flyout stability */
body.layout-02.refined-02 .hero-sidefile .hero h1,
body.layout-02.refined-02 .game-hero-title {
  font-size: 32px !important;
  line-height: 1.15 !important;
}

body.layout-02.refined-02 .game-hero-title small {
  font-size: 0.38em !important;
}

body.layout-02.refined-02 .section-title {
  align-items: center !important;
  margin-bottom: 10px !important;
}

body.layout-02.refined-02 .section-title h2,
body.layout-02.refined-02 .server-refined .section-title h2 {
  position: relative !important;
  margin: 0 !important;
  padding-left: 9px !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}

body.layout-02.refined-02 .section-title h2::before {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: #b91c1c;
  content: "";
}

body.layout-02.refined-02 .server-section > .section-title h2,
body.layout-02.refined-02 .intro-news-row .section-title h2 {
  font-size: 17px !important;
}

body.layout-02.refined-02 .section-title > span,
body.layout-02.refined-02 .server-refined .section-title > span {
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

body.layout-02.refined-02 .comment-form h3 {
  font-size: 14px !important;
}

body.layout-02.refined-02 .cms-text h4 {
  font-size: 14px !important;
}

body.layout-02.refined-02 .comment-meta h4 {
  font-size: 14px !important;
}

body.layout-02.refined-02 .related-game-card strong {
  font-size: 13px !important;
}

body.layout-02.refined-02 .hero-sidefile .hero-copy .metric-grid {
  gap: 10px !important;
  max-width: 540px !important;
  margin-top: 16px !important;
}

body.layout-02.refined-02 .hero-sidefile .hero-copy .metric {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-height: 76px !important;
  padding: 11px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  text-align: center !important;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease !important;
}

body.layout-02.refined-02 .hero-sidefile .hero-copy .metric:hover {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  transform: translateY(-1px) !important;
}

body.layout-02.refined-02 .hero-sidefile .hero-copy .metric b {
  order: 2 !important;
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.02em !important;
}

body.layout-02.refined-02 .hero-sidefile .hero-copy .metric span {
  order: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

body.layout-02.refined-02 .hero-sidefile .hero-copy .metric span::before {
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
  background: currentColor !important;
  content: "" !important;
  mask: var(--metric-icon) center / contain no-repeat !important;
  -webkit-mask: var(--metric-icon) center / contain no-repeat !important;
  opacity: 0.92 !important;
}

body.layout-02.refined-02 .hero-sidefile .hero-copy .metric-rating {
  border-color: rgba(251, 191, 36, 0.28) !important;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.14) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
}

body.layout-02.refined-02 .hero-sidefile .hero-copy .metric-rating span {
  color: rgba(254, 243, 199, 0.92) !important;
  --metric-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.2 4.5 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5L4.8 8.2l5-.7L12 3z'/%3E%3C/svg%3E") !important;
}

body.layout-02.refined-02 .hero-sidefile .hero-copy .metric-downloads {
  border-color: rgba(147, 197, 253, 0.28) !important;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.14) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
}

body.layout-02.refined-02 .hero-sidefile .hero-copy .metric-downloads span {
  color: rgba(219, 234, 254, 0.92) !important;
  --metric-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E") !important;
}

body.layout-02.refined-02 .hero-sidefile .hero-copy .metric-servers {
  border-color: rgba(110, 231, 183, 0.28) !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
}

body.layout-02.refined-02 .hero-sidefile .hero-copy .metric-servers span {
  color: rgba(209, 250, 229, 0.92) !important;
  --metric-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4l3 2'/%3E%3C/svg%3E") !important;
}

body.layout-02.refined-02 .server-refined-table tr.server-click-row {
  cursor: pointer !important;
}

@media (min-width: 901px) {
  body.layout-02.refined-02 .server-refined-table {
    border-spacing: 0 8px !important;
  }

  body.layout-02.refined-02 .server-refined-table th {
    height: 36px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
    letter-spacing: 0.02em !important;
  }

  body.layout-02.refined-02 .server-refined-table th:nth-child(1),
  body.layout-02.refined-02 .server-refined-table td:nth-child(1) {
    width: 28% !important;
  }

  body.layout-02.refined-02 .server-refined-table th:nth-child(2),
  body.layout-02.refined-02 .server-refined-table td:nth-child(2) {
    width: 38% !important;
    padding-left: 28px !important;
  }

  body.layout-02.refined-02 .server-refined-table th:nth-child(3),
  body.layout-02.refined-02 .server-refined-table td:nth-child(3) {
    width: 22% !important;
  }

  body.layout-02.refined-02 .server-refined-table td {
    padding: 12px 14px !important;
    vertical-align: middle !important;
  }

  body.layout-02.refined-02 .server-refined-table tr.server-click-row:hover td {
    border-color: #fecdd3 !important;
    background: #fffbfb !important;
    box-shadow: 0 6px 16px rgba(127, 29, 29, 0.06) !important;
  }

  body.layout-02.refined-02 .server-refined-table tr.server-click-row:hover td:first-child {
    box-shadow: inset 3px 0 0 #ef4444 !important;
  }

  body.layout-02.refined-02 .server-name {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 10px !important;
    row-gap: 3px !important;
    min-height: 48px !important;
    align-items: start !important;
  }

  body.layout-02.refined-02 .server-name::before {
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    border-color: #fecdd3 !important;
    background: linear-gradient(180deg, #fffafa, #fff1f2) !important;
  }

  body.layout-02.refined-02 .server-name strong {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: block !important;
    overflow: hidden !important;
    color: #111827 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .server-name > span:not(.server-badge) {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  body.layout-02.refined-02 .server-badge {
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: 22px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
  }

  body.layout-02.refined-02 .server-refined-table .benefit-tags {
    justify-content: flex-start !important;
    gap: 6px !important;
    padding-left: 4px !important;
  }

  body.layout-02.refined-02 .server-refined-table .benefit-tags::before {
    content: none !important;
    display: none !important;
  }

  body.layout-02.refined-02 .server-refined-table .benefit-tags span {
    height: 24px !important;
    padding: 0 8px !important;
    border: 1px solid transparent !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 22px !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .server-refined-table .benefit-tags span:nth-child(1) {
    color: #991b1b !important;
    border-color: #fecdd3 !important;
    background: #fff5f5 !important;
  }

  body.layout-02.refined-02 .server-refined-table .benefit-tags span:nth-child(2) {
    color: #b45309 !important;
    border-color: #fde68a !important;
    background: #fffbeb !important;
  }

  body.layout-02.refined-02 .server-refined-table .benefit-tags span:nth-child(3) {
    color: #0f766e !important;
    border-color: #99f6e4 !important;
    background: #f0fdfa !important;
  }

  body.layout-02.refined-02 .server-refined-table .server-time {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding-left: 0 !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .server-refined-table .server-time::before {
    content: none !important;
    display: none !important;
  }

  body.layout-02.refined-02 .server-refined-table .server-time span {
    display: inline-flex !important;
    align-items: center !important;
    height: 22px !important;
    margin-left: 0 !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    color: #64748b !important;
    background: #f1f5f9 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .server-refined-table .server-time span.server-status-open {
    color: #15803d !important;
    background: #ecfdf5 !important;
  }

  body.layout-02.refined-02 .server-refined-table .server-time span.server-status-testing {
    color: #c2410c !important;
    background: #fff7ed !important;
  }

  body.layout-02.refined-02 .server-refined-table .server-view {
    min-width: 58px !important;
    height: 30px !important;
    padding: 0 11px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
  }

  body.layout-02.refined-02 .server-refined-table .server-view::after {
    font-size: 12px !important;
  }
}

@media (max-width: 900px) {
  body.layout-02.refined-02 .server-refined-table th:nth-child(1),
  body.layout-02.refined-02 .server-refined-table td:nth-child(1),
  body.layout-02.refined-02 .server-refined-table th:nth-child(2),
  body.layout-02.refined-02 .server-refined-table td:nth-child(2),
  body.layout-02.refined-02 .server-refined-table th:nth-child(3),
  body.layout-02.refined-02 .server-refined-table td:nth-child(3),
  body.layout-02.refined-02 .server-refined-table th:nth-child(4),
  body.layout-02.refined-02 .server-refined-table td:nth-child(4) {
    width: 100% !important;
    padding: 0 !important;
  }

  body.layout-02.refined-02 .server-refined-table tr.server-click-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 14px !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(2)::before,
  body.layout-02.refined-02 .server-refined-table td:nth-child(3)::before {
    display: none !important;
    content: none !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(2),
  body.layout-02.refined-02 .server-refined-table td:nth-child(3) {
    display: block !important;
    grid-column: auto !important;
    grid-row: auto !important;
    grid-template-columns: none !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.layout-02.refined-02 .server-name {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    min-height: 0 !important;
  }

  body.layout-02.refined-02 .server-name::before {
    display: none !important;
    content: none !important;
  }

  body.layout-02.refined-02 .server-name strong {
    grid-column: 1 !important;
    grid-row: 1 !important;
    overflow: visible !important;
    color: #0f172a !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    text-overflow: unset !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.layout-02.refined-02 .server-name > span:not(.server-badge) {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: block !important;
    overflow: visible !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    -webkit-line-clamp: unset !important;
  }

  body.layout-02.refined-02 .server-refined-table .benefit-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
  }

  body.layout-02.refined-02 .server-refined-table .benefit-tags::before {
    flex: 0 0 100% !important;
    margin: 0 0 2px !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    content: "福利信息" !important;
  }

  body.layout-02.refined-02 .server-refined-table .benefit-tags span {
    display: inline-flex !important;
    height: 26px !important;
    padding: 0 9px !important;
    border: 1px solid transparent !important;
    font-size: 12px !important;
    line-height: 24px !important;
    border-radius: 999px !important;
  }

  body.layout-02.refined-02 .server-refined-table .server-time {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px 8px !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    color: #991b1b !important;
    background: #fff7ed !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .server-refined-table .server-time::before {
    flex: 0 0 auto !important;
    color: #92400e !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    content: "最新开区：" !important;
  }

  body.layout-02.refined-02 .server-refined-table .server-time span {
    display: inline-flex !important;
    align-items: center !important;
    height: 24px !important;
    margin-left: auto !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    color: #991b1b !important;
    background: #fee2e2 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body.layout-02.refined-02 .server-refined-table .server-time span.server-status-open {
    color: #15803d !important;
    background: #ecfdf5 !important;
  }

  body.layout-02.refined-02 .server-refined-table .server-time span.server-status-testing {
    color: #c2410c !important;
    background: #fff7ed !important;
  }

  body.layout-02.refined-02 .server-refined-table td:nth-child(4) {
    display: none !important;
  }
}

@media (max-width: 760px) {
  body.layout-02.refined-02 .hero-sidefile .hero h1,
  body.layout-02.refined-02 .game-hero-title {
    font-size: 26px !important;
  }

  body.layout-02.refined-02 .server-section > .section-title h2,
  body.layout-02.refined-02 .intro-news-row .section-title h2 {
    font-size: 15px !important;
  }

  body.layout-02.refined-02 .section-title h2,
  body.layout-02.refined-02 .server-refined .section-title h2 {
    font-size: 14px !important;
  }

  body.layout-02.refined-02 .hero-sidefile .hero-copy .metric {
    min-height: 68px !important;
    padding: 10px 6px !important;
  }

  body.layout-02.refined-02 .hero-sidefile .hero-copy .metric b {
    font-size: 18px !important;
  }

  body.layout-02.refined-02 .hero-sidefile .hero-copy .metric span {
    font-size: 10px !important;
  }

  body.layout-02.refined-02 .hero-sidefile .hero-copy .metric span::before {
    width: 12px !important;
    height: 12px !important;
    flex-basis: 12px !important;
  }
}

/* 2026-07-13: consolidated static-page responsive and accessibility corrections. */
:where(a, button, input, select, textarea, [contenteditable="true"], [tabindex]):focus-visible {
  outline: 3px solid #b91c1c !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #ffffff !important;
}

:is(.news-preview-content, .backend-article-content, .article-content, .cms-text, .server-cms-intro) table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

:is(.news-preview-content, .backend-article-content, .article-content, .cms-text, .server-cms-intro) :is(iframe, video) {
  width: 100% !important;
  max-width: 100% !important;
}

:is(.news-preview-content, .backend-article-content, .article-content, .cms-text, .server-cms-intro) pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

.screenshot-lightbox {
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  padding:
    max(18px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left)) !important;
}

.screenshot-lightbox img {
  max-height: calc(100dvh - 96px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
}

.screenshot-lightbox-close {
  top: max(12px, env(safe-area-inset-top)) !important;
  right: max(12px, env(safe-area-inset-right)) !important;
}

/* WHY: earlier 1120px/760px rules stack the topline and header into a 326px tablet header. */
@media (max-width: 900px), (max-width: 1120px) and (max-height: 520px) and (orientation: landscape) {
  .topline {
    display: none !important;
  }

  .site-header .header-inner,
  body.news-preview-layout .site-header .header-inner {
    display: grid !important;
    grid-template-columns: minmax(150px, 184px) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    width: min(100% - 24px, 1240px) !important;
    min-height: 0 !important;
    gap: 8px 12px !important;
    padding: 8px 0 9px !important;
  }

  .site-header .logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 156px !important;
    height: 44px !important;
    justify-self: start !important;
  }

  .site-header .mobile-header-values {
    display: none !important;
  }

  .site-header .search,
  body.news-preview-layout .site-header .search {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 44px !important;
    min-width: 0 !important;
  }

  .site-header .channel-nav,
  body.news-preview-layout .site-header .channel-nav {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .site-header .channel-nav a {
    height: 44px !important;
    min-height: 44px !important;
  }

  .filter-chip,
  .filter-options a,
  .rank-table-tabs a,
  .recommend-tabs a,
  .news-pagination button,
  .news-pagination a,
  .game-entry,
  .read-link,
  .server-view,
  .screenshot-lightbox-close {
    min-height: 44px !important;
  }

  .ad-showcase.is-manual-carousel .ad-control {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  body .site-footer .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-items: stretch !important;
    gap: 14px !important;
  }

  body .site-footer .footer-main > section.footer-brand {
    grid-column: 1 / -1 !important;
  }

  body .site-footer .footer-main > section.footer-block {
    display: grid !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px !important;
    overflow: visible !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
  }

  body .site-footer .footer-main > section.footer-block:nth-child(3) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body .site-footer .footer-main > section.footer-block .footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    overflow: visible !important;
  }

  body .site-footer .footer-main > section.footer-block .footer-links a {
    min-height: 44px !important;
    padding: 0 11px !important;
  }
}

/* WHY: the one-column news override created an implicit grid column and clipped search/nav to half width. */
@media (max-width: 520px) {
  .site-header .header-inner,
  body.news-preview-layout .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    gap: 8px !important;
  }

  .site-header .logo,
  body.news-preview-layout .site-header .logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 146px !important;
    height: 42px !important;
  }

  .site-header .search,
  body.news-preview-layout .site-header .search {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
  }

  .site-header .channel-nav,
  body.news-preview-layout .site-header .channel-nav {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  .search-results-page .search-result-row,
  .search-results-page .game-row.search-result-row {
    grid-template-columns: 32px 78px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 10px 8px !important;
    padding: 12px !important;
    overflow: visible !important;
  }

  .search-results-page .search-result-row .game-no {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }

  .search-results-page .search-result-row .game-cover {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 78px !important;
    height: 58px !important;
  }

  .search-results-page .search-result-row .game-main {
    grid-column: 3 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }

  .search-results-page .search-result-row .game-entry {
    grid-column: 2 / -1 !important;
    grid-row: 2 !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 44px !important;
  }

  body .site-footer .footer-main {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body .site-footer .footer-main > section.footer-brand {
    grid-column: 1 !important;
  }
}

@media (max-width: 360px) {
  body.layout-02.refined-02 .hero-sidefile .hero-copy .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    max-width: none !important;
  }

  body.layout-02.refined-02 .hero-sidefile .hero-copy .metric:nth-child(3) {
    grid-column: 1 / -1 !important;
  }

  body.layout-02.refined-02 .hero-sidefile .hero-copy .metric b {
    min-width: 0 !important;
    font-size: 18px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}
