:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-strong: #111318;
  --text: #15171c;
  --muted: #68707c;
  --line: #dfe3df;
  --accent: #00a86b;
  --accent-2: #ffb02e;
  --accent-3: #2b73ff;
  --shadow: 0 18px 60px rgba(21, 23, 28, 0.12);
}

body.dark {
  color-scheme: dark;
  --bg: #0f1214;
  --surface: #181d20;
  --surface-strong: #f4f7f3;
  --text: #edf1ec;
  --muted: #9aa7a0;
  --line: #2b3336;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 176px;
}

.brand-mark {
  display: grid;
  overflow: hidden;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--bg);
  font-weight: 800;
}

.brand-mark.has-image {
  background: transparent;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-game-icon,
.preview-screenshot,
.related-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-game-icon {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.preview-screenshot {
  position: absolute;
  inset: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.brand strong {
  color: var(--text);
  font-size: inherit;
  font-weight: 750;
  line-height: normal;
}

.main-nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active,
.text-link:hover {
  color: var(--accent);
}

.header-search {
  display: flex;
  width: clamp(190px, 20vw, 280px);
  min-height: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: 0;
  padding: 0 12px;
  font-size: 14px;
}

.header-search button {
  border: 0;
  background: var(--surface-strong);
  color: var(--bg);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.header-search:focus-within {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.home-button {
  display: inline-flex;
  width: auto;
  min-width: 108px;
  gap: 7px;
  padding: 0 14px;
  font-weight: 900;
}

.home-button span {
  font-size: 18px;
  line-height: 1;
}

.home-button strong {
  font-size: 14px;
  white-space: nowrap;
}

.home-button:hover {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  color: var(--accent-strong);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 14, 0.78), rgba(8, 12, 14, 0.28) 56%, rgba(8, 12, 14, 0.08)),
    linear-gradient(0deg, var(--bg), transparent 23%);
}

.hero-content {
  position: relative;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  color: #fff;
  padding: 90px 0 130px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.search-bar {
  display: flex;
  width: min(620px, 100%);
  min-height: 58px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 18px;
  color: #15171c;
  outline: 0;
}

.search-bar button,
.download-button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0 24px;
  font-weight: 700;
  cursor: pointer;
}

.section,
.split-section {
  width: min(1180px, calc(100% - 36px));
  margin: 72px auto;
}

#games {
  margin-top: 56px;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1;
}

.compact {
  align-items: center;
}

.compact h2 {
  font-size: 30px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  justify-self: end;
}

.filter {
  min-width: 68px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 0 20px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.filter.active {
  background: var(--surface-strong);
  color: var(--bg);
}

.section-more {
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.section-more:hover {
  color: var(--accent);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 254px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px 10px 18px;
  overflow: visible;
  box-shadow: 0 12px 34px rgba(21, 23, 28, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: 0 18px 42px rgba(21, 23, 28, 0.1);
}

.app-icon-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 18px;
}

.discount-badge {
  position: absolute;
  top: -9px;
  right: -9px;
  z-index: 2;
  display: grid;
  min-width: 40px;
  height: 28px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ff4d3d;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(255, 77, 61, 0.28);
}

.game-cover {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 21px;
  color: #fff;
  font-size: 29px;
  font-weight: 900;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.36);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.62), transparent 22%),
    radial-gradient(circle at 75% 82%, rgba(0, 0, 0, 0.22), transparent 34%),
    linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 16px 32px rgba(18, 26, 32, 0.16);
}

.game-cover::before,
.game-cover::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.game-cover::before {
  width: 76px;
  height: 76px;
  left: -22px;
  bottom: -24px;
}

.game-cover::after {
  width: 36px;
  height: 36px;
  right: 12px;
  top: 14px;
}

.game-cover strong {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.game-cover.has-image {
  background: #eef6f1;
  text-shadow: none;
}

.game-cover.has-image::before,
.game-cover.has-image::after,
.game-cover.has-image .icon-orbit {
  display: none;
}

.icon-orbit {
  position: absolute;
  inset: 24px 13px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: rotate(-28deg);
}

.game-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  text-align: center;
}

.game-card h3 {
  margin: 0 0 8px;
  max-width: 100%;
  color: color-mix(in srgb, var(--text) 92%, #000);
  font-size: var(--title-size, 17px);
  font-weight: 800;
  line-height: 1.22;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  min-height: 2.45em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.player-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 22px;
  white-space: nowrap;
}

.player-meta span {
  display: inline-flex;
  align-items: center;
}

.player-meta span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 55%, transparent);
}

.tag-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 18px;
}

.tag-row span,
.meta-row span,
.fresh {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 12px;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  width: 100%;
}

.score {
  color: var(--accent);
  font-weight: 800;
  display: none;
}

.detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: #58bf74;
  color: #fff;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(88, 191, 116, 0.2);
}

.detail-button:hover {
  background: #45ad64;
}

.spotlight-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  margin: -28px auto 72px;
  align-items: stretch;
}

.promo-carousel,
.notice-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(21, 23, 28, 0.07);
}

.promo-carousel {
  position: relative;
  min-height: 330px;
  overflow: hidden;
}

.promo-track,
.promo-slide {
  height: 100%;
}

.promo-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 24px;
  padding: 34px 42px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.52), transparent 28%),
    radial-gradient(circle at 76% 70%, color-mix(in srgb, var(--p3) 54%, transparent), transparent 32%),
    linear-gradient(135deg, var(--p1), var(--p2));
}

.promo-slide.has-image {
  display: block;
  color: #fff;
}

.promo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-slide.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 18, 24, 0.72), rgba(13, 18, 24, 0.18) 58%, rgba(13, 18, 24, 0.42));
}

.promo-slide.has-image .promo-copy {
  position: absolute;
  left: clamp(24px, 5vw, 56px);
  right: clamp(24px, 5vw, 56px);
  bottom: clamp(108px, 13vw, 156px);
  max-width: 620px;
}

.promo-carousel {
  touch-action: pan-y;
}

.promo-carousel .carousel-arrow {
  display: none;
}

.promo-carousel .carousel-dots {
  display: none;
}

.promo-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.promo-art {
  position: relative;
  height: 250px;
  min-width: 0;
}

.promo-planet {
  position: absolute;
  left: 8%;
  bottom: 8%;
  width: 190px;
  height: 190px;
  border-radius: 45% 55% 48% 52%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.64), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.16));
  box-shadow: inset 0 -22px 42px rgba(0, 0, 0, 0.16), 0 24px 44px rgba(0, 0, 0, 0.16);
}

.promo-planet.forest {
  border-radius: 52% 48% 58% 42%;
}

.promo-planet.lantern {
  border-radius: 48% 52% 42% 58%;
}

.promo-ship {
  position: absolute;
  left: 34%;
  top: 32%;
  font-size: 76px;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.18));
  transform: rotate(-12deg);
}

.promo-spark {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
}

.promo-spark.one {
  right: 16%;
  top: 17%;
}

.promo-spark.two {
  right: 30%;
  bottom: 18%;
  width: 94px;
  height: 94px;
}

.promo-copy {
  position: relative;
  z-index: 1;
  color: #fff;
}

.promo-copy p {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  opacity: 0.8;
}

.promo-copy h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
}

.promo-copy span {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 19, 24, 0.42);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel-arrow.prev {
  left: 18px;
}

.carousel-arrow.next {
  right: 18px;
}

.carousel-dots {
  display: none;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.carousel-dot.active {
  width: 24px;
  background: #74d083;
}

.notice-board {
  padding: 32px 34px;
}

.notice-feature {
  display: block;
  border-radius: 8px;
}

.notice-feature:hover h2 {
  color: var(--accent-strong);
}

.notice-feature p {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.notice-feature h2 {
  margin: 0 0 12px;
  color: #47b66a;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
}

.notice-feature span {
  display: block;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.notice-feature-image {
  display: block;
  width: 100%;
  max-height: 220px;
  margin-top: 18px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(21, 23, 28, 0.1);
}

/* Final override: game names should show fully instead of being ellipsized. */
.game-card .game-title,
.game-card h3 {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 2.7em !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  font-size: var(--title-size, 17px) !important;
  line-height: 1.18 !important;
}

@media (max-width: 720px) {
  .game-card .game-title,
  .game-card h3 {
    min-height: 3em !important;
    font-size: min(var(--title-size, 13px), 13px) !important;
  }
}

@media (max-width: 430px) {
  .game-card .game-title,
  .game-card h3 {
    font-size: min(var(--title-size, 12px), 12px) !important;
    line-height: 1.15 !important;
  }
}

/* Final green home category tags. */
.main-nav a.nav-filter,
.filters .filter {
  border-color: rgba(53, 170, 96, 0.72) !important;
  background: linear-gradient(135deg, #58c978 0%, #35ad62 100%) !important;
  color: #fff !important;
  box-shadow:
    0 8px 20px rgba(28, 143, 77, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

.main-nav a.nav-filter:hover,
.main-nav a.nav-filter.active,
.filters .filter:hover,
.filters .filter.active {
  border-color: rgba(27, 130, 73, 0.88) !important;
  background: linear-gradient(135deg, #2fb060 0%, #16834f 100%) !important;
  color: #fff !important;
  box-shadow:
    0 10px 24px rgba(22, 139, 82, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

@media (max-width: 430px) {
  .main-nav a.nav-filter,
  .filters .filter {
    border-radius: 8px !important;
    box-shadow: 0 6px 14px rgba(28, 143, 77, 0.14) !important;
  }
}

/* Final EOF override: green top tags and lifted game-card score row. */
.site-header .main-nav a,
.site-header .header-search button,
.site-header .home-button,
.site-header .icon-button,
.main-nav a.nav-filter,
.filters .filter {
  border-color: rgba(53, 170, 96, 0.76) !important;
  background: linear-gradient(135deg, #58c978 0%, #35ad62 100%) !important;
  color: #fff !important;
  box-shadow:
    0 8px 20px rgba(28, 143, 77, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

.site-header .main-nav a:hover,
.site-header .main-nav a.active,
.site-header .header-search button:hover,
.site-header .home-button:hover,
.site-header .icon-button:hover,
.main-nav a.nav-filter:hover,
.main-nav a.nav-filter.active,
.filters .filter:hover,
.filters .filter.active {
  border-color: rgba(27, 130, 73, 0.9) !important;
  background: linear-gradient(135deg, #2fb060 0%, #16834f 100%) !important;
  color: #fff !important;
}

.site-header .home-button span,
.site-header .home-button strong,
.site-header .icon-button span,
.site-header #themeToggle span {
  color: #fff !important;
}

.game-card .player-meta {
  position: relative !important;
  top: -6px !important;
  margin-bottom: 14px !important;
}

@media (max-width: 720px) {
  .site-header .main-nav a,
  .main-nav a.nav-filter,
  .filters .filter {
    border-radius: 8px !important;
    box-shadow: 0 6px 14px rgba(28, 143, 77, 0.14) !important;
  }

  .game-card .player-meta {
    top: -9px !important;
    margin-bottom: 6px !important;
  }
}

/* Final true EOF override: uploaded logo image and all-page header search. */
.brand.brand-image-only {
  min-width: auto !important;
  gap: 0 !important;
}

.brand.brand-image-only > span:not(.brand-mark) {
  display: none !important;
}

.brand.brand-image-only .brand-mark.has-image {
  width: clamp(128px, 14vw, 188px) !important;
  height: clamp(48px, 5vw, 66px) !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand.brand-image-only .brand-mark.has-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.site-header .header-search.is-fixed-header-search {
  display: flex !important;
}

@media (max-width: 940px) {
  .brand.brand-image-only .brand-mark.has-image {
    width: clamp(118px, 30vw, 168px) !important;
    height: 46px !important;
  }

  .site-header .header-search.is-fixed-header-search {
    grid-area: search !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
}

@media (max-width: 430px) {
  .brand.brand-image-only .brand-mark.has-image {
    width: clamp(108px, 36vw, 150px) !important;
    height: 40px !important;
  }
}

/* Final EOF override: uploaded logo becomes the full brand image, and search stays on every header. */
.brand.brand-image-only {
  min-width: auto !important;
  gap: 0 !important;
}

.brand.brand-image-only > span:not(.brand-mark) {
  display: none !important;
}

.brand.brand-image-only .brand-mark.has-image {
  width: clamp(128px, 14vw, 188px) !important;
  height: clamp(48px, 5vw, 66px) !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand.brand-image-only .brand-mark.has-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.site-header .header-search.is-fixed-header-search {
  display: flex !important;
}

@media (max-width: 940px) {
  .brand.brand-image-only .brand-mark.has-image {
    width: clamp(118px, 30vw, 168px) !important;
    height: 46px !important;
  }

  .site-header .header-search.is-fixed-header-search {
    grid-area: search !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
}

@media (max-width: 430px) {
  .brand.brand-image-only .brand-mark.has-image {
    width: clamp(108px, 36vw, 150px) !important;
    height: 40px !important;
  }
}

/* Final header action colors: search, home, and theme buttons. */
.site-header .header-search button,
.site-header .home-button,
.site-header .icon-button {
  border-color: rgba(53, 170, 96, 0.76) !important;
  background: linear-gradient(135deg, #58c978 0%, #35ad62 100%) !important;
  color: #fff !important;
  box-shadow:
    0 8px 20px rgba(28, 143, 77, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

.site-header .header-search button:hover,
.site-header .home-button:hover,
.site-header .icon-button:hover {
  border-color: rgba(27, 130, 73, 0.9) !important;
  background: linear-gradient(135deg, #2fb060 0%, #16834f 100%) !important;
  color: #fff !important;
}

.site-header .home-button span,
.site-header .home-button strong,
.site-header .icon-button span,
.site-header #themeToggle span {
  color: #fff !important;
}

/* Final true EOF override: green header controls. */
.site-header .header-search button,
.site-header .home-button,
.site-header .icon-button {
  border-color: rgba(53, 170, 96, 0.76) !important;
  background: linear-gradient(135deg, #58c978 0%, #35ad62 100%) !important;
  color: #fff !important;
  box-shadow:
    0 8px 20px rgba(28, 143, 77, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

.site-header .header-search button:hover,
.site-header .home-button:hover,
.site-header .icon-button:hover {
  border-color: rgba(27, 130, 73, 0.9) !important;
  background: linear-gradient(135deg, #2fb060 0%, #16834f 100%) !important;
  color: #fff !important;
}

.site-header .home-button span,
.site-header .home-button strong,
.site-header .icon-button span,
.site-header #themeToggle span {
  color: #fff !important;
}

/* Final EOF override: green header controls. */
.site-header .header-search button,
.site-header .home-button,
.site-header .icon-button {
  border-color: rgba(53, 170, 96, 0.76) !important;
  background: linear-gradient(135deg, #58c978 0%, #35ad62 100%) !important;
  color: #fff !important;
  box-shadow:
    0 8px 20px rgba(28, 143, 77, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

.site-header .header-search button:hover,
.site-header .home-button:hover,
.site-header .icon-button:hover {
  border-color: rgba(27, 130, 73, 0.9) !important;
  background: linear-gradient(135deg, #2fb060 0%, #16834f 100%) !important;
  color: #fff !important;
}

.site-header .home-button span,
.site-header .home-button strong,
.site-header .icon-button span {
  color: #fff !important;
}

.site-header #themeToggle span {
  color: #fff !important;
}

/* Final fix: make all top game tags green and lift card stats. */
.site-header .main-nav a,
.site-header .header-search button,
.site-header .home-button,
.site-header .icon-button,
.main-nav a.nav-filter,
.filters .filter {
  border-color: rgba(53, 170, 96, 0.76) !important;
  background: linear-gradient(135deg, #58c978 0%, #35ad62 100%) !important;
  color: #fff !important;
  box-shadow:
    0 8px 20px rgba(28, 143, 77, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

.site-header .main-nav a:hover,
.site-header .main-nav a.active,
.site-header .header-search button:hover,
.site-header .home-button:hover,
.site-header .icon-button:hover,
.main-nav a.nav-filter:hover,
.main-nav a.nav-filter.active,
.filters .filter:hover,
.filters .filter.active {
  border-color: rgba(27, 130, 73, 0.9) !important;
  background: linear-gradient(135deg, #2fb060 0%, #16834f 100%) !important;
  color: #fff !important;
}

.site-header .home-button span,
.site-header .home-button strong,
.site-header .icon-button span,
.site-header #themeToggle span {
  color: #fff !important;
}

.game-card .player-meta {
  position: relative !important;
  top: -6px !important;
  margin-bottom: 14px !important;
}

@media (max-width: 720px) {
  .site-header .main-nav a,
  .main-nav a.nav-filter,
  .filters .filter {
    border-radius: 8px !important;
    box-shadow: 0 6px 14px rgba(28, 143, 77, 0.14) !important;
  }

  .game-card .player-meta {
    top: -9px !important;
    margin-bottom: 6px !important;
  }
}

/* Final responsive polish for badges, QQ labels, and screenshot media. */
.app-icon-wrap {
  overflow: visible !important;
}

.discount-badge {
  z-index: 20 !important;
  pointer-events: none;
}

.game-card .discount-badge {
  top: -12px !important;
  right: -12px !important;
}

.detail-page-icon .discount-badge {
  top: -10px !important;
  right: -10px !important;
}

.community-row {
  justify-content: flex-start;
  gap: 10px;
}

.community-row span {
  flex: 0 1 auto;
  max-width: min(100%, 560px);
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.45;
}

.screenshot-card.has-image {
  background: #f7faf8 !important;
}

.screenshot-card.has-image .preview-screenshot {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #f7faf8;
}

/* Detail mobile readability and media scale */
@media (max-width: 720px) {
  .detail-page-body h1 {
    font-size: clamp(26px, 8.2vw, 36px) !important;
    line-height: 1.12 !important;
    text-align: center;
  }

  .detail-lead,
  .detail-page-body > p {
    font-size: 14px !important;
    line-height: 1.62 !important;
    text-align: center;
  }

  .community-row {
    justify-content: center !important;
    width: 100%;
  }

  .community-row span {
    display: inline-flex;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    font-size: clamp(12px, 3.4vw, 14px) !important;
    line-height: 1.35 !important;
  }

  .detail-note-card h2,
  .detail-section-head h2 {
    font-size: clamp(20px, 6vw, 26px) !important;
    line-height: 1.2 !important;
  }

  .screenshot-carousel {
    margin-inline: calc(-1 * clamp(10px, 3vw, 16px));
  }

  .screenshot-card {
    min-height: clamp(320px, 76vw, 520px) !important;
    border-radius: 8px;
  }

  .screenshot-card.has-image .preview-screenshot {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .screenshot-card figcaption {
    display: none !important;
  }
}

@media (max-width: 430px) {
  .detail-page-body h1 {
    font-size: clamp(24px, 7.6vw, 32px) !important;
  }

  .screenshot-card {
    min-height: clamp(300px, 88vw, 460px) !important;
  }
}

.notice-list {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.notice-list li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.notice-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 28%, transparent);
  grid-column: 1;
  grid-row: 1;
}

.notice-list a {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-list a:hover {
  color: var(--accent);
}

.notice-list time {
  grid-column: 3;
  color: color-mix(in srgb, var(--muted) 76%, var(--surface));
  font-weight: 700;
}

.ranking-board-section {
  width: min(1180px, calc(100% - 36px));
  margin: 72px auto;
}

.rank-board-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.rank-board-head h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
}

.rank-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  width: min(440px, 100%);
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, var(--line));
}

.rank-tab {
  min-height: 46px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.rank-tab.active {
  border-radius: 999px;
  background: #58bf74;
  color: #fff;
}

.rank-more {
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
}

.rank-more:hover {
  color: var(--accent);
}

.rank-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 34px;
  box-shadow: 0 16px 44px rgba(21, 23, 28, 0.07);
}

.rank-list-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.rank-card {
  position: relative;
  min-height: 286px;
}

.rank-number {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: #c7c7c7;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.rank-number.top {
  background: #e85c5c;
}

.split-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(18px, 3vw, 28px);
}

.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ranking-list li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.ranking-list b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--accent);
}

.ranking-list h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.ranking-list p,
.topic-list p,
.news-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.topic-list {
  display: grid;
  gap: 14px;
}

.topic-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 84%, var(--accent-2));
}

.topic-list span {
  color: var(--accent-3);
  font-weight: 800;
}

.topic-list h3,
.news-grid h3 {
  margin: 0 0 8px;
}

.text-link {
  color: var(--muted);
  font-weight: 700;
}

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

.news-grid article {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

.news-grid time {
  color: var(--accent);
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.modal-card {
  position: relative;
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.floating-service {
  position: fixed;
  right: clamp(14px, 2.5vw, 30px);
  top: 50%;
  z-index: 18;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 76px;
  padding: 13px 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 94%, var(--accent));
  color: var(--text);
  box-shadow: 0 16px 34px rgba(21, 23, 28, 0.12);
  transform: translateY(-50%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.floating-service span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.floating-service strong {
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
}

.floating-service:hover {
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0, 168, 107, 0.2);
  transform: translateY(-52%);
}

.floating-service.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.92);
}

.embedded-customer .floating-service {
  display: none !important;
}

.customer-service-window {
  position: fixed;
  right: clamp(14px, 2.5vw, 30px);
  bottom: 28px;
  z-index: 60;
  display: none;
  width: min(430px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(24, 38, 30, 0.22);
}

.customer-service-window.open {
  display: block;
}

.customer-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--accent);
  color: #fff;
  padding: 14px 16px;
}

.customer-service-head strong,
.customer-service-head span {
  display: block;
}

.customer-service-head strong {
  font-size: 18px;
}

.customer-service-head span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.customer-service-actions {
  display: flex;
  gap: 8px;
}

.customer-service-actions button,
.customer-service-restore {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.customer-service-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.customer-service-frame {
  width: 100%;
  height: min(620px, calc(100vh - 210px));
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.customer-service-frame-wrap {
  display: flex;
  min-height: 0;
}

.customer-service-body p,
.customer-service-body small {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.customer-service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  padding: 12px;
}

.customer-service-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.customer-service-card strong {
  color: var(--accent);
  font-size: clamp(20px, 5vw, 28px);
}

.customer-service-body textarea {
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  font: inherit;
}

.customer-service-body > button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.customer-service-restore {
  display: none;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: var(--accent);
}

.customer-service-window.minimized {
  width: 220px;
}

.customer-service-window.minimized .customer-service-body,
.customer-service-window.minimized .customer-service-head {
  display: none;
}

.customer-service-window.minimized .customer-service-restore {
  display: flex;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.modal-cover {
  min-height: 420px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 76px;
  font-weight: 900;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.5), transparent 26%),
    linear-gradient(135deg, var(--c1), var(--c2));
}

.modal-body {
  padding: 42px 34px;
}

.modal-body h2 {
  margin: 0 0 12px;
  font-size: 34px;
}

.modal-body p {
  color: var(--muted);
  line-height: 1.7;
}

.download-button {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
}

.download-note {
  font-size: 13px;
  text-align: center;
}

.subpage {
  width: min(980px, calc(100% - 36px));
  margin: 54px auto 90px;
}

.breadcrumb {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb:hover {
  color: var(--accent);
}

.page-card,
.detail-page-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(21, 23, 28, 0.07);
}

.page-card {
  padding: clamp(28px, 5vw, 54px);
}

.page-card h1,
.detail-page-body h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
}

.page-lead,
.detail-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}

.quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 32px;
}

.quick-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 800;
}

.quick-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.detail-page-card {
  padding: clamp(24px, 4vw, 42px);
}

.category-page {
  width: min(1180px, calc(100% - 36px));
  margin: 34px auto 80px;
}

.category-crumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.category-crumb a,
.category-crumb span {
  margin-right: 10px;
}

.category-crumb a:hover {
  color: var(--accent);
}

.category-crumb strong {
  color: var(--text);
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 86%, var(--bg));
}

.category-tabs a {
  display: grid;
  min-height: 74px;
  place-items: center;
  color: var(--muted);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
}

.category-tabs a.active,
.category-tabs a:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.category-layout {
  display: block;
}

.category-main {
  overflow: visible;
}

.category-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.category-titlebar h1 {
  margin: 0;
  color: var(--text);
  font-size: 32px;
  line-height: 1.15;
}

.category-titlebar > span {
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-game-item {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}

.category-game-item:hover {
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}

.category-pic {
  position: relative;
  display: grid;
  width: 98px;
  height: 98px;
  place-items: center;
  overflow: visible;
  border-radius: 22px;
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.5), transparent 18%),
    linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
  box-shadow: 0 14px 26px rgba(21, 23, 28, 0.13);
}

.category-pic .discount-badge {
  right: -10px;
  top: -12px;
}

.category-pic strong {
  position: relative;
  z-index: 2;
  font-size: 34px;
}

.category-info {
  min-width: 0;
}

.category-game-title {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-game-title:hover {
  color: var(--accent);
}

.category-meta,
.category-desc,
.category-tags {
  margin: 8px 0 0;
}

.category-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.category-desc {
  color: color-mix(in srgb, var(--muted) 86%, var(--text));
  line-height: 1.65;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tags span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.category-view,
.category-more {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.category-view {
  min-width: 104px;
  padding: 14px 24px;
  text-align: center;
}

.category-more {
  display: block;
  width: 240px;
  margin: 28px auto 0;
  padding: 15px 20px;
  font-size: 16px;
}

.category-empty {
  padding: 54px 28px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.category-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.side-box {
  padding: 22px;
}

.app-box {
  text-align: center;
}

.fake-qr {
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
  margin: 0 auto 14px;
  border: 10px solid color-mix(in srgb, var(--accent) 12%, var(--surface));
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--text) 12px, transparent 12px) 14px 14px / 34px 34px,
    linear-gradient(var(--text) 12px, transparent 12px) 14px 14px / 34px 34px,
    var(--surface);
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
}

.side-box strong,
.side-box h2 {
  display: block;
  margin: 0 0 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.side-box p {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
}

.side-box .download-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 999px;
}

.side-rec {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
}

.side-rec b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
}

.side-rec span {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-rec em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.app-detail-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
}

.detail-page-icon {
  position: relative;
  width: 172px;
  height: 172px;
  margin: 0 auto;
}

.detail-page-icon .discount-badge {
  min-width: 54px;
  height: 36px;
  font-size: 17px;
}

.detail-page-icon .game-cover {
  width: 172px;
  height: 172px;
  border-radius: 36px;
  font-size: 54px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.detail-actions.action-button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  width: min(100%, 720px);
}

.detail-actions.action-button-grid .download-button {
  width: 100%;
  margin-top: 0;
}

.outline-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0 22px;
  font-weight: 800;
}

.outline-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.qr-panel {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 22px 18px;
  border: 1px dashed color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  text-align: center;
  overflow: hidden;
}

.qr-panel strong {
  color: var(--accent);
  font-size: 42px;
  line-height: 1;
}

.community-panel strong {
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: clamp(28px, 2.5vw, 36px);
  letter-spacing: 0;
  white-space: nowrap;
}

.community-panel span {
  color: var(--text);
  font-size: 15px;
}

.qr-panel span,
.qr-panel small {
  color: var(--muted);
  font-weight: 800;
}

.qr-panel small {
  font-size: 12px;
}

.detail-tabs {
  display: flex;
  gap: 12px;
  margin: 34px 0 24px;
  border-bottom: 1px solid var(--line);
}

.detail-tabs a {
  padding: 0 8px 14px;
  color: var(--muted);
  font-weight: 900;
}

.detail-tabs a.active,
.detail-tabs a:hover {
  color: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.detail-note-card,
.detail-section {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 94%, var(--bg));
  padding: clamp(18px, 3vw, 26px);
}

.detail-note-card h2,
.detail-section h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
}

.detail-note-card p,
.detail-long-text {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
}

.detail-rich {
  display: grid;
  gap: 12px;
}

.detail-rich p,
.detail-rich h2,
.detail-rich h3,
.detail-rich blockquote,
.detail-rich ul,
.detail-rich ol,
.detail-rich figure {
  margin: 0;
}

.detail-rich h2,
.detail-rich h3 {
  color: var(--text);
  line-height: 1.35;
}

.detail-rich h2 {
  font-size: clamp(20px, 2.2vw, 26px);
}

.detail-rich h3 {
  font-size: clamp(18px, 2vw, 22px);
}

.detail-rich ul,
.detail-rich ol {
  padding-left: 1.35em;
}

.detail-rich blockquote {
  border-left: 4px solid var(--green);
  padding: 8px 0 8px 14px;
  color: var(--text);
  background: color-mix(in srgb, var(--green) 8%, transparent);
}

.detail-rich a {
  color: var(--green);
  text-decoration: none;
}

.detail-rich img {
  display: block;
  width: min(100%, 760px);
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.screenshot-carousel {
  touch-action: pan-y;
}

.screenshot-carousel .carousel-window {
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 16px 44px rgba(21, 23, 28, 0.1);
}

.screenshot-carousel .screenshot-card {
  min-height: auto;
  aspect-ratio: 16 / 7.6;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.52), transparent 28%),
    radial-gradient(circle at 76% 70%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 32%),
    linear-gradient(135deg, var(--c1), var(--c2));
}

.screenshot-carousel .screenshot-card.has-image {
  background: #111827 !important;
}

.screenshot-carousel .screenshot-card.has-image .preview-screenshot {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  background: #111827;
}

.screenshot-carousel .carousel-arrow {
  background: rgba(17, 19, 24, 0.42);
  color: #fff;
  box-shadow: none;
}

.screenshot-carousel .carousel-arrow:hover {
  background: rgba(17, 19, 24, 0.72);
}

.screenshot-carousel .carousel-dots {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 4;
  display: flex;
}

.screenshot-carousel .carousel-dots button {
  background: rgba(255, 255, 255, 0.45);
}

.screenshot-carousel .carousel-dots button.active {
  background: var(--accent);
}

.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.detail-section-head span,
.detail-section-head a {
  color: var(--accent);
  font-weight: 900;
}

.screenshot-carousel {
  position: relative;
  display: grid;
  gap: 14px;
}

.carousel-window {
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  transition: transform 0.32s ease;
}

.screenshot-card {
  position: relative;
  flex: 0 0 100%;
  display: grid;
  min-height: clamp(260px, 34vw, 420px);
  align-content: center;
  justify-items: center;
  gap: 18px;
  margin: 0;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.34), transparent 28%),
    radial-gradient(circle at 82% 76%, rgba(0, 0, 0, 0.22), transparent 34%),
    linear-gradient(135deg, var(--c1), var(--c2));
}

.screenshot-card.has-image {
  overflow: hidden;
  background: #111827;
}

.screenshot-card.has-image .preview-screenshot {
  z-index: 1;
}

.screenshot-card.has-image figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  width: auto;
  max-width: none;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.68);
  padding: 12px 16px;
  color: #fff;
  text-align: left;
  backdrop-filter: blur(10px);
}

.screenshot-card strong {
  font-size: 58px;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.screenshot-card figcaption {
  font-size: 22px;
  font-weight: 900;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
  color: var(--text);
  cursor: pointer;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
}

.carousel-arrow:hover {
  background: var(--accent);
  color: #fff;
}

.carousel-arrow.prev {
  left: 16px;
}

.carousel-arrow.next {
  right: 16px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 28%, transparent);
  cursor: pointer;
}

.carousel-dots button.active {
  width: 26px;
  background: var(--accent);
}

.promo-carousel .carousel-dots {
  display: none;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.info-grid div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.info-grid div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.info-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.info-grid span {
  color: var(--muted);
  font-weight: 800;
}

.info-grid strong {
  color: var(--text);
  text-align: right;
}

.version-list {
  display: grid;
  gap: 12px;
}

.version-list a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.version-list span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-3)));
  color: #fff;
  font-weight: 900;
}

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

.related-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px 10px 14px;
  text-align: center;
}

.related-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-3)));
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.version-list strong,
.related-card strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-list em,
.related-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.page-download {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-top: 4px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}

.article-main,
.article-side section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(21, 23, 28, 0.07);
}

.article-main {
  padding: clamp(26px, 4vw, 46px);
}

.article-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.article-head h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.article-content {
  padding: 26px 0;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: 17px;
  font-weight: 700;
  line-height: 2;
}

.article-content h2 {
  margin: 26px 0 8px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
}

.article-rich {
  display: grid;
  gap: 14px;
}

.article-rich p,
.article-rich ul,
.article-rich ol,
.article-rich figure {
  margin: 0;
}

.article-rich h2,
.article-rich h3 {
  margin: 14px 0 0;
  color: var(--text);
  line-height: 1.32;
}

.article-rich blockquote {
  margin: 4px 0;
  border-left: 4px solid var(--accent);
  color: var(--muted);
  padding: 8px 0 8px 16px;
}

.article-rich hr {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--line);
}

.article-rich a {
  color: var(--accent-strong);
  text-decoration: none;
}

.article-rich img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.article-upload-image {
  margin: 22px 0 26px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.article-upload-image img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-visual {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  gap: 12px;
  margin: 26px 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.34), transparent 26%),
    linear-gradient(135deg, #2b73ff, #00a86b);
  color: #fff;
  text-align: center;
}

.article-visual span {
  font-size: 14px;
  font-weight: 900;
}

.article-visual strong {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.1;
}

.article-tips {
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--muted);
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.article-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.article-download strong,
.article-download span {
  display: block;
}

.article-download strong {
  color: var(--text);
  font-size: 20px;
}

.article-download span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.article-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.article-side section {
  padding: 20px;
}

.article-side h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 20px;
}

.article-side a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  color: var(--text);
  font-weight: 800;
}

.article-side a:hover {
  color: var(--accent);
}

.article-side a span {
  color: var(--accent);
}

.contact-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
}

.about-menu,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(21, 23, 28, 0.07);
}

.about-menu {
  align-self: start;
  overflow: hidden;
  padding: 10px;
}

.about-menu a {
  display: block;
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--muted);
  font-weight: 900;
}

.about-menu a:hover,
.about-menu a.active {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
}

.contact-panel {
  padding: clamp(28px, 5vw, 52px);
}

.contact-panel h1 {
  margin: 0 0 28px;
  color: var(--text);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
}

.contact-intro {
  max-width: 760px;
  margin: -12px 0 28px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.8;
}

.contact-block {
  border-top: 1px solid var(--line);
  padding: 24px 0 6px;
}

.contact-block h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 22px;
}

.contact-block p {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  margin: 0;
  padding: 12px 0;
  color: var(--muted);
  font-weight: 800;
}

.contact-block strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-notice {
  margin-top: 22px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  color: var(--muted);
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.8;
}

.site-footer {
  margin-top: 82px;
  border-top: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #1aa66d, #118456);
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 36px;
}

.footer-line {
  display: grid;
  gap: 8px;
  align-items: center;
  justify-content: center;
  justify-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
}

.footer-line strong {
  color: #fff;
  font-size: 18px;
  letter-spacing: 0;
}

.footer-line span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 14px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.footer-links a:not(:last-child)::after {
  content: none;
}

.footer-links a:hover,
.footer-nav a:hover {
  color: #fff;
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(18px, 4vw, 42px);
  margin: 34px auto 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.footer-note {
  max-width: 900px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.75;
}

.footer-note p {
  margin: 4px 0;
}

.footer-note span {
  color: #fff;
}

@media (max-width: 940px) {
  .site-header {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .header-search {
    flex: 1;
    width: auto;
    min-width: 220px;
  }

  .news-grid,
  .spotlight-section,
  .rank-list-grid,
  .split-section,
  .modal-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .spotlight-section,
  .split-section,
  .modal-card {
    grid-template-columns: 1fr;
  }

  .rank-board-head {
    grid-template-columns: 1fr auto;
  }

  .rank-tabs {
    grid-column: 1 / -1;
    order: 3;
  }

  .rank-board {
    padding: 30px 24px;
  }

  .promo-carousel {
    min-height: 300px;
  }

  .modal-cover {
    min-height: 260px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .app-detail-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .detail-actions {
    justify-content: center;
  }

  .qr-panel {
    display: none;
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .header-search {
    order: 4;
    flex-basis: 100%;
    min-width: 0;
  }

  .hero-content {
    padding: 70px 0 118px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar input {
    min-height: 54px;
  }

  .search-bar button {
    min-height: 48px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-section {
    width: min(100% - 28px, 1180px);
  }

  .promo-slide {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 24px 26px 52px;
  }

  .promo-art {
    height: 150px;
  }

  .promo-planet {
    width: 122px;
    height: 122px;
  }

  .promo-ship {
    left: 36%;
    top: 26%;
    font-size: 54px;
  }

  .notice-board {
    padding: 24px;
  }

  .notice-list li {
    font-size: 14px;
  }

  .subpage {
    margin-top: 34px;
  }

  .page-card,
  .detail-page-card {
    padding: 24px;
  }

  .article-main,
  .article-side section {
    padding: 22px;
  }

  .article-download {
    display: block;
  }

  .article-download .page-download {
    margin-top: 14px;
  }

  .contact-block p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .category-titlebar {
    display: block;
  }

  .category-titlebar > span {
    display: inline-block;
    margin-top: 10px;
  }

  .detail-page-icon,
  .detail-page-icon .game-cover {
    width: 132px;
    height: 132px;
  }

  .detail-page-icon .game-cover {
    border-radius: 28px;
    font-size: 42px;
  }

  .detail-tabs {
    overflow-x: auto;
  }

  .screenshot-card {
    min-height: 240px;
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-grid div,
  .info-grid div:nth-child(odd) {
    border-right: 0;
  }

  .info-grid div:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .version-list a {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .version-list em {
    grid-column: 2;
  }

  .floating-service {
    right: 12px;
    top: 50%;
    bottom: auto;
    width: 64px;
    padding: 10px 8px;
    transform: translateY(-50%);
  }

  .floating-service:hover {
    transform: translateY(-52%);
  }

  .floating-service span {
    width: 32px;
    height: 32px;
    font-size: 19px;
  }

  .floating-service strong {
    font-size: 12px;
  }

  .customer-service-window {
    right: 10px;
    bottom: 14px;
    width: calc(100vw - 20px);
  }

  .customer-service-frame {
    height: min(560px, calc(100vh - 180px));
    min-height: 360px;
  }

  .rank-list-grid {
    grid-template-columns: 1fr;
  }

  .rank-board-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .rank-tabs {
    margin: 18px 0;
  }

  .rank-more {
    display: inline-block;
  }

  .rank-board {
    padding: 24px 16px;
  }

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

  .footer-links {
    font-size: 14px;
  }

  .footer-links a:not(:last-child)::after {
    content: none;
  }

  .footer-nav {
    gap: 18px 26px;
    justify-content: center;
    margin: 34px 0 22px;
  }

  .footer-note {
    text-align: center;
  }

  .section-head {
    display: block;
  }

  .filters {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .section-more {
    display: inline-block;
    margin-top: 14px;
  }

  .site-footer {
    display: block;
  }

  .site-footer span {
    margin-top: 0;
  }
}

/* Sitewide readability and mobile polish */
h1,
h2,
h3,
button,
input,
.main-nav,
.brand,
.detail-button,
.download-button {
  letter-spacing: 0;
}

.brand strong,
.main-nav,
.filter,
.game-card h3,
.detail-button,
.rank-game-title,
.notice-feature h2,
.footer-links,
.footer-nav {
  font-weight: 750;
}

.hero h1,
.section-head h2,
.rank-board-head h2,
.detail-page-body h1 {
  font-weight: 800;
}

.category-list {
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
}

.section,
.split-section,
.spotlight-section,
.subpage,
.site-footer .footer-inner {
  width: min(1180px, calc(100% - 32px));
}

@media (max-width: 1180px) {
  .game-grid,
  .category-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 940px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand home theme"
      "nav nav nav"
      "search search search";
    gap: 10px 12px;
    padding: 12px 18px;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
  }

  .brand > span {
    min-width: 0;
  }

  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main-nav {
    grid-area: nav;
    grid-column: 1 / -1;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 15px;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .main-nav a.active {
    border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
    background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  }

  .header-search {
    grid-area: search;
    grid-column: 1 / -1;
    width: 100%;
  }

  .home-button {
    grid-area: home;
  }

  #themeToggle {
    grid-area: theme;
  }

  .game-grid,
  .category-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .filters {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .filter {
    min-height: 42px;
    min-width: auto;
    flex: 0 0 auto;
    padding: 0 14px;
    font-size: 14px;
  }
}

@media (max-width: 700px) {
  .section,
  .split-section,
  .spotlight-section,
  .subpage,
  .category-page,
  .site-footer .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    gap: 8px;
    padding: 8px 10px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 16px;
  }

  .brand strong {
    font-size: 14px;
    line-height: 1.15;
  }

  .brand small {
    display: none;
  }

  .home-button {
    min-width: auto;
    height: 32px;
    padding: 0 8px;
    gap: 5px;
  }

  .home-button strong {
    font-size: 12px;
  }

  .icon-button {
    width: 32px;
    height: 32px;
  }

  .home-button {
    width: auto;
    min-width: 88px;
  }

  .main-nav {
    margin: 0 -2px;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    font-size: 14px;
  }

  .main-nav a {
    min-height: 34px;
    padding: 6px 10px;
  }

  .header-search {
    order: initial;
    flex-basis: auto;
    min-height: 34px;
    border-radius: 8px;
  }

  .header-search input {
    padding: 0 10px;
    font-size: 13px;
  }

  .header-search button {
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    width: min(100% - 28px, 680px);
    margin: 0 auto;
    padding: 64px 0 92px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.08;
  }

  .hero-copy {
    margin: 16px 0 22px;
    font-size: 15px;
    line-height: 1.75;
  }

  .section,
  .split-section {
    margin: 44px auto;
  }

  #games {
    margin-top: 36px;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .section-head h2,
  .rank-board-head h2 {
    font-size: 34px;
  }

  .section-more,
  .rank-more {
    font-size: 16px;
  }

  .game-grid,
  .category-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  #gameGrid .game-card:nth-child(n + 13) {
    display: none;
  }

  .game-card {
    min-height: 194px;
    padding: 16px 6px 14px;
  }

  .app-icon-wrap,
  .game-cover {
    width: 68px;
    height: 68px;
  }

  .app-icon-wrap {
    margin-bottom: 12px;
  }

  .game-cover {
    border-radius: 17px;
    font-size: 23px;
  }

  .discount-badge {
    min-width: 30px;
    height: 22px;
    font-size: 11px;
  }

  .game-card h3 {
    font-size: min(var(--title-size, 14px), 14px);
  }

  .game-card p,
  .player-meta {
    font-size: 11px;
  }

  .player-meta {
    margin-bottom: 11px;
    flex-wrap: wrap;
    gap: 2px 6px;
    line-height: 1.35;
    white-space: normal;
  }

  .player-meta span + span::before {
    margin-right: 6px;
  }

  .detail-button {
    min-width: 78px;
    min-height: 32px;
    font-size: 12px;
  }

  .spotlight-section {
    margin: 28px auto 44px;
  }

  .promo-carousel {
    min-height: 280px;
  }

  .notice-feature h2 {
    font-size: 24px;
  }

  .notice-feature span {
    font-size: 14px;
  }

  .notice-list {
    gap: 14px;
  }

  .notice-list li {
    grid-template-columns: 10px minmax(0, 1fr) auto;
    column-gap: 10px;
  }

  .rank-game {
    grid-template-columns: 28px 64px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .rank-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .rank-board {
    padding: 18px 12px;
  }

  .rank-game-icon,
  .rank-game-icon .game-cover {
    width: 64px;
    height: 64px;
  }

  .rank-game-title {
    font-size: 16px;
  }

  .rank-game-meta,
  .rank-game-desc {
    font-size: 13px;
  }

  .rank-game .detail-button {
    min-width: 76px;
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 16px 22px;
    margin: 30px 0 20px;
    font-size: 14px;
  }

  .footer-links,
  .footer-note {
    font-size: 13px;
  }

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

  .footer-inner {
    padding: 26px 0 28px;
  }

  .footer-line {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .footer-links {
    justify-content: center;
    gap: 8px;
    line-height: 1.35;
    text-align: center;
  }

  .footer-links a {
    min-height: 30px;
    padding: 0 11px;
    font-size: 12px;
  }

  .footer-nav {
    gap: 10px 18px;
    justify-content: center;
    margin: 26px 0 16px;
    text-align: center;
  }

  .footer-note {
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
  }

  .app-detail-hero {
    gap: 18px;
  }

  .detail-page-body h1 {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 1.08;
  }

  .detail-page-body > p {
    font-size: 16px;
    line-height: 1.75;
  }

  .community-panel {
    display: grid;
    min-height: 128px;
    padding: 18px 14px;
  }

  .community-panel strong {
    font-size: clamp(26px, 11vw, 42px);
  }

  .download-button {
    width: 100%;
    min-height: 50px;
    font-size: 16px;
  }

  .detail-tabs {
    margin: 22px 0 16px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .detail-note-card,
  .detail-section {
    margin-top: 16px;
    padding: 18px;
  }

  .detail-section-head {
    align-items: flex-start;
  }

  .detail-section h2,
  .detail-note-card h2 {
    font-size: 21px;
  }

  .screenshot-card {
    min-height: 220px;
    gap: 12px;
  }

  .screenshot-card strong {
    font-size: 44px;
  }

  .screenshot-card figcaption {
    font-size: 18px;
  }

  .related-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .related-card {
    min-height: 136px;
    padding: 14px 6px 12px;
  }

  .related-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    font-size: 20px;
  }

  .related-card strong {
    max-width: 100%;
    font-size: 13px;
  }

  .related-card em {
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  .site-header {
    gap: 7px;
    padding: 7px 8px;
  }

  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand strong {
    font-size: 13px;
  }

  .home-button {
    height: 30px;
    padding: 0 7px;
  }

  .home-button span {
    font-size: 15px;
  }

  .home-button strong {
    font-size: 11px;
  }

  .icon-button {
    width: 30px;
    height: 30px;
  }

  .home-button {
    width: auto;
    min-width: 78px;
  }

  .main-nav {
    gap: 6px;
    font-size: 13px;
  }

  .main-nav a {
    min-height: 32px;
    padding: 5px 9px;
  }

  .header-search {
    min-height: 32px;
  }

  .game-grid,
  .category-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .game-card {
    min-height: 182px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .app-icon-wrap,
  .game-cover {
    width: 60px;
    height: 60px;
  }

  .game-cover {
    border-radius: 15px;
    font-size: 21px;
  }

  .game-card h3 {
    font-size: min(var(--title-size, 13px), 13px);
  }

  .player-meta {
    white-space: normal;
    gap: 4px;
  }

  .rank-game {
    grid-template-columns: 26px 58px minmax(0, 1fr);
  }

  .rank-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .rank-card {
    min-height: 182px;
  }

  .rank-game .detail-button {
    grid-column: 3;
    justify-self: start;
    margin-top: 6px;
  }

  .rank-game-icon,
  .rank-game-icon .game-cover {
    width: 58px;
    height: 58px;
  }

  .notice-list time {
    font-size: 13px;
  }

  .search-bar {
    min-height: 0;
  }

  .related-list {
    gap: 8px;
  }

  .related-card {
    min-height: 124px;
    padding: 12px 5px 10px;
  }

  .related-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 18px;
  }

  .related-card strong {
    font-size: 12px;
  }
}

/* Ranking carousel */
.rank-board {
  overflow: hidden;
}

.rank-list-grid {
  display: flex;
  grid-template-columns: none;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 2px 8px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rank-list-grid::-webkit-scrollbar {
  display: none;
}

.rank-list-grid .rank-card {
  flex: 0 0 calc((100% - 84px) / 7);
  min-width: 0;
  scroll-snap-align: start;
}

@media (max-width: 940px) {
  .rank-list-grid .rank-card {
    flex-basis: calc((100% - 20px) / 3);
  }
}

@media (max-width: 700px) {
  .rank-list-grid {
    gap: 10px;
    padding-bottom: 6px;
  }

  .rank-list-grid .rank-card {
    flex-basis: calc((100% - 20px) / 3);
  }
}

@media (max-width: 430px) {
  .rank-list-grid {
    gap: 8px;
  }

  .rank-list-grid .rank-card {
    flex-basis: calc((100% - 16px) / 3);
  }
}

/* Final media sync fixes */
.app-icon-wrap {
  overflow: visible !important;
}

.discount-badge {
  z-index: 20 !important;
  pointer-events: none;
}

.game-card .discount-badge {
  top: -12px !important;
  right: -12px !important;
}

.detail-page-icon .discount-badge {
  top: -10px !important;
  right: -10px !important;
}

.community-row {
  justify-content: flex-start;
  gap: 10px;
}

.community-row span {
  flex: 0 1 auto;
  max-width: min(100%, 560px);
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.45;
}

.screenshot-card.has-image {
  background: #f7faf8 !important;
}

.screenshot-card.has-image .preview-screenshot {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #f7faf8;
}

.empty-screenshot-note {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

/* Final detail carousel style: match the home middle carousel on desktop and mobile. */
.screenshot-carousel {
  position: relative !important;
  display: grid !important;
  gap: 0 !important;
  touch-action: pan-y !important;
}

.screenshot-carousel .carousel-window {
  overflow: hidden !important;
  border-radius: 8px !important;
  background: #111827 !important;
  box-shadow: 0 16px 44px rgba(21, 23, 28, 0.1) !important;
}

.screenshot-carousel .carousel-track {
  display: flex !important;
  transition: transform 0.32s ease !important;
}

.screenshot-carousel .screenshot-card {
  position: relative !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  min-height: auto !important;
  aspect-ratio: 16 / 7.6 !important;
  overflow: hidden !important;
  margin: 0 !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.52), transparent 28%),
    radial-gradient(circle at 76% 70%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 32%),
    linear-gradient(135deg, var(--c1), var(--c2)) !important;
}

.screenshot-carousel .screenshot-card.has-image {
  background: #111827 !important;
}

.screenshot-carousel .screenshot-card.has-image .preview-screenshot {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  background: #111827 !important;
}

.screenshot-carousel .carousel-arrow {
  z-index: 4 !important;
  background: rgba(17, 19, 24, 0.42) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.screenshot-carousel .carousel-arrow:hover {
  background: rgba(17, 19, 24, 0.72) !important;
}

.screenshot-carousel .carousel-dots {
  position: absolute !important;
  right: 0 !important;
  bottom: 16px !important;
  left: 0 !important;
  z-index: 4 !important;
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
}

.screenshot-carousel .carousel-dots button {
  width: 9px !important;
  height: 9px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.45) !important;
}

.screenshot-carousel .carousel-dots button.active {
  width: 26px !important;
  background: var(--accent) !important;
}

@media (max-width: 720px) {
  .screenshot-carousel .screenshot-card {
    aspect-ratio: 16 / 9.5 !important;
  }

  .screenshot-carousel .carousel-arrow {
    width: 34px !important;
    height: 34px !important;
    font-size: 24px !important;
  }

  .screenshot-carousel .carousel-dots {
    bottom: 12px !important;
  }
}

/* Final mobile readability and customer-service input fixes. */
@media (max-width: 720px) {
  .game-card h3,
  .game-card .game-title {
    min-height: 2.72em !important;
    margin: 0 0 3px !important;
    color: #11151c !important;
    font-size: clamp(12px, 3.35vw, 14px) !important;
    font-weight: 900 !important;
    line-height: 1.16 !important;
    letter-spacing: 0 !important;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
  }

  .player-meta {
    position: relative;
    top: -4px;
    margin-bottom: 8px !important;
    color: #697180 !important;
    font-size: clamp(10px, 2.85vw, 12px) !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
  }

  .game-card {
    padding-top: 15px !important;
  }

  .detail-page-body h1 {
    color: #10141b !important;
    font-size: clamp(30px, 9.2vw, 42px) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
  }

  .detail-lead {
    color: #5e6674 !important;
    font-size: clamp(14px, 3.8vw, 16px) !important;
    font-weight: 800 !important;
    line-height: 1.72 !important;
  }

  .detail-section h2,
  .detail-section-head h2 {
    color: #10141b !important;
    font-size: clamp(20px, 5.8vw, 24px) !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
  }

  .detail-long-text,
  .detail-rich {
    color: #5e6674 !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    line-height: 1.78 !important;
  }

  .customer-service-window {
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 24px) !important;
    overflow: hidden !important;
  }

  .customer-service-body {
    max-height: calc(100dvh - 118px) !important;
    overflow: auto !important;
  }

  .customer-service-body textarea {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 88px !important;
    max-height: 140px !important;
    resize: none !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
  }
}

@media (max-width: 430px) {
  .game-card h3,
  .game-card .game-title {
    font-size: clamp(11px, 3.45vw, 13px) !important;
    line-height: 1.14 !important;
  }

  .player-meta {
    top: -5px;
    font-size: clamp(10px, 2.9vw, 11px) !important;
  }

  .detail-page-body h1 {
    font-size: clamp(28px, 8.8vw, 36px) !important;
  }
}

/* Final home icon and multi-tag layout polish. */
#gameGrid .game-card .game-cover {
  border: 1px solid rgba(255, 255, 255, 0.56) !important;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.7), transparent 24%),
    radial-gradient(circle at 78% 78%, rgba(16, 95, 55, 0.34), transparent 34%),
    linear-gradient(135deg, #35c878 0%, #19a864 48%, #0e7d4c 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 18px 34px rgba(22, 139, 82, 0.22) !important;
}

#gameGrid .game-card .game-cover.has-image {
  border: 2px solid color-mix(in srgb, var(--accent) 58%, #fff) !important;
  background: linear-gradient(135deg, #dff8e9, #bff0d1) !important;
  box-shadow:
    0 0 0 5px rgba(79, 180, 113, 0.1),
    0 18px 34px rgba(22, 139, 82, 0.18) !important;
}

#gameGrid .game-card .game-cover strong {
  color: #fff !important;
  text-shadow: 0 4px 14px rgba(6, 80, 45, 0.44) !important;
}

.main-nav {
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px clamp(10px, 1.8vw, 22px) !important;
  white-space: normal !important;
}

.main-nav a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

.filters {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  max-width: min(100%, 760px) !important;
}

.filter {
  flex: 0 1 auto !important;
  min-width: auto !important;
  min-height: 42px !important;
  padding: 0 15px !important;
  white-space: nowrap !important;
}

@media (max-width: 940px) {
  .main-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: none !important;
  }

  .main-nav::-webkit-scrollbar,
  .filters::-webkit-scrollbar {
    display: none !important;
  }

  .main-nav a {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    padding: 7px 11px !important;
    white-space: nowrap !important;
  }

  .filters {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
    padding-bottom: 4px !important;
    scrollbar-width: none !important;
  }

  .filter {
    flex: 0 0 auto !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 430px) {
  #gameGrid .game-card .game-cover {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.36),
      0 12px 24px rgba(22, 139, 82, 0.2) !important;
  }

  .main-nav {
    gap: 6px !important;
  }

  .main-nav a {
    min-height: 31px !important;
    padding: 5px 9px !important;
    font-size: 13px !important;
  }

  .filter {
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }
}

/* Final override: home game tags use a clear green background. */
.main-nav a.nav-filter,
.filters .filter {
  border-color: rgba(53, 170, 96, 0.72) !important;
  background: linear-gradient(135deg, #58c978 0%, #35ad62 100%) !important;
  color: #fff !important;
  box-shadow:
    0 8px 20px rgba(28, 143, 77, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

.main-nav a.nav-filter:hover,
.main-nav a.nav-filter.active,
.filters .filter:hover,
.filters .filter.active {
  border-color: rgba(27, 130, 73, 0.88) !important;
  background: linear-gradient(135deg, #2fb060 0%, #16834f 100%) !important;
  color: #fff !important;
  box-shadow:
    0 10px 24px rgba(22, 139, 82, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

@media (max-width: 430px) {
  .main-nav a.nav-filter,
  .filters .filter {
    border-radius: 8px !important;
    box-shadow: 0 6px 14px rgba(28, 143, 77, 0.14) !important;
  }
}

/* Final EOF override: green top tags and lifted game-card score row. */
.site-header .main-nav a,
.site-header .header-search button,
.site-header .home-button,
.site-header .icon-button,
.main-nav a.nav-filter,
.filters .filter {
  border-color: rgba(53, 170, 96, 0.76) !important;
  background: linear-gradient(135deg, #58c978 0%, #35ad62 100%) !important;
  color: #fff !important;
  box-shadow:
    0 8px 20px rgba(28, 143, 77, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

.site-header .main-nav a:hover,
.site-header .main-nav a.active,
.site-header .header-search button:hover,
.site-header .home-button:hover,
.site-header .icon-button:hover,
.main-nav a.nav-filter:hover,
.main-nav a.nav-filter.active,
.filters .filter:hover,
.filters .filter.active {
  border-color: rgba(27, 130, 73, 0.9) !important;
  background: linear-gradient(135deg, #2fb060 0%, #16834f 100%) !important;
  color: #fff !important;
}

.site-header .home-button span,
.site-header .home-button strong,
.site-header .icon-button span,
.site-header #themeToggle span {
  color: #fff !important;
}

.game-card .player-meta {
  position: relative !important;
  top: -6px !important;
  margin-bottom: 14px !important;
}

@media (max-width: 720px) {
  .site-header .main-nav a,
  .main-nav a.nav-filter,
  .filters .filter {
    border-radius: 8px !important;
    box-shadow: 0 6px 14px rgba(28, 143, 77, 0.14) !important;
  }

  .game-card .player-meta {
    top: -9px !important;
    margin-bottom: 6px !important;
  }
}

/* Final absolute EOF override: uploaded logo image and all-page header search. */
.brand.brand-image-only {
  min-width: auto !important;
  gap: 0 !important;
}

.brand.brand-image-only > span:not(.brand-mark) {
  display: none !important;
}

.brand.brand-image-only .brand-mark.has-image {
  width: clamp(128px, 14vw, 188px) !important;
  height: clamp(48px, 5vw, 66px) !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand.brand-image-only .brand-mark.has-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.site-header .header-search.is-fixed-header-search {
  display: flex !important;
}
@media (max-width: 940px) {
  .brand.brand-image-only .brand-mark.has-image {
    width: clamp(118px, 30vw, 168px) !important;
    height: 46px !important;
  }

  .site-header .header-search.is-fixed-header-search {
    grid-area: search !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
}
@media (max-width: 430px) {
  .brand.brand-image-only .brand-mark.has-image {
    width: clamp(108px, 36vw, 150px) !important;
    height: 40px !important;
  }
}

/* Final absolute EOF override: compact collapsed nav and badge layering. */
.site-header {
  z-index: 1200 !important;
}

.game-card,
.app-icon-wrap {
  isolation: isolate;
}

.game-card .discount-badge,
.rank-card .discount-badge,
.category-list .discount-badge {
  z-index: 6 !important;
}

.site-header .main-nav {
  position: relative !important;
  gap: 8px !important;
}

.site-header .main-nav a,
.site-header .nav-more > summary {
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

.site-header .nav-more {
  position: relative !important;
  flex: 0 0 auto !important;
}

.site-header .nav-more > summary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  list-style: none !important;
  cursor: pointer !important;
  border: 1px solid rgba(53, 170, 96, 0.76) !important;
  background: linear-gradient(135deg, #58c978 0%, #35ad62 100%) !important;
  color: #fff !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  box-shadow: 0 8px 20px rgba(28, 143, 77, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

.site-header .nav-more > summary::-webkit-details-marker {
  display: none !important;
}

.site-header .nav-more > summary::after {
  content: "⌄";
  margin-left: 6px;
  font-size: 12px;
}

.site-header .nav-more-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  z-index: 1300 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(108px, 1fr)) !important;
  gap: 8px !important;
  min-width: min(360px, calc(100vw - 24px)) !important;
  padding: 10px !important;
  border: 1px solid rgba(53, 170, 96, 0.24) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 18px 44px rgba(20, 70, 44, 0.16) !important;
}

.site-header .nav-more-menu a {
  min-height: 32px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
}
@media (max-width: 940px) {
  .site-header .main-nav {
    gap: 6px !important;
  }

  .site-header .main-nav a,
  .site-header .nav-more > summary {
    min-height: 31px !important;
    padding: 0 9px !important;
    font-size: 13px !important;
  }

  .site-header .nav-more-menu {
    left: 0 !important;
    right: auto !important;
    grid-template-columns: repeat(2, minmax(98px, 1fr)) !important;
    min-width: min(330px, calc(100vw - 20px)) !important;
  }
}

/* Final footer page rich content display. */
.contact-rich {
  margin-top: 18px;
}

.contact-rich p,
.contact-rich li {
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.9;
}

.contact-rich h2,
.contact-rich h3 {
  color: var(--text);
  margin: 20px 0 10px;
}

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

@media (max-width: 720px) {
  .contact-rich p,
  .contact-rich li {
    font-size: 14px;
    line-height: 1.75;
  }
}

/* Final mobile nav override: fixed wrapping tags and visible expanded type menu. */
@media (max-width: 720px) {
  .site-header {
    overflow: visible !important;
  }

  .site-header .main-nav {
    grid-area: nav !important;
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: normal !important;
  }

  .site-header .main-nav::-webkit-scrollbar {
    display: none !important;
  }

  .site-header .main-nav a,
  .site-header .nav-more > summary {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    min-height: 30px !important;
    padding: 0 9px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }

  .site-header .nav-more {
    display: contents !important;
  }

  .site-header .nav-more > summary {
    display: inline-flex !important;
    max-width: 100% !important;
  }

  .site-header .nav-more[open] .nav-more-menu {
    order: 99 !important;
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 2px !important;
    padding: 8px !important;
    border-radius: 10px !important;
    background: rgba(245, 252, 247, 0.98) !important;
    box-shadow: none !important;
  }

  .site-header .nav-more-menu a {
    width: 100% !important;
    justify-content: center !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
}

/* Final mobile premium compact header. */
@media (max-width: 720px) {
  .site-header {
    gap: 7px !important;
    padding: 8px 12px 10px !important;
    background: rgba(250, 253, 251, 0.94) !important;
    border-bottom-color: rgba(32, 120, 70, 0.12) !important;
    box-shadow: 0 10px 28px rgba(20, 70, 44, 0.06) !important;
  }

  .site-header .brand {
    gap: 8px !important;
    padding: 2px 0 4px !important;
  }

  .site-header .brand-mark {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
    border-radius: 9px !important;
    font-size: 17px !important;
    box-shadow: 0 8px 18px rgba(18, 24, 33, 0.12) !important;
  }

  .site-header .brand strong {
    font-size: 16px !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
  }

  .site-header .main-nav {
    gap: 6px !important;
  }

  .site-header .main-nav > a,
  .site-header .nav-more > summary,
  .site-header .home-button {
    min-height: 31px !important;
    height: 31px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(45, 152, 86, 0.56) !important;
    background: linear-gradient(180deg, #68bf78 0%, #43a764 100%) !important;
    box-shadow: 0 5px 12px rgba(30, 126, 72, 0.12) !important;
  }

  .site-header .main-nav > a,
  .site-header .nav-more > summary {
    padding: 0 4px !important;
    font-size: clamp(11px, 2.9vw, 13px) !important;
    font-weight: 850 !important;
  }

  .site-header .home-button {
    gap: 5px !important;
    padding: 0 8px !important;
  }

  .site-header .home-button span {
    width: 16px !important;
    height: 16px !important;
    border-radius: 5px !important;
    font-size: 10px !important;
  }

  .site-header .home-button strong {
    font-size: clamp(11px, 2.9vw, 13px) !important;
    font-weight: 850 !important;
  }

  .site-header .header-search,
  .site-header .header-search.is-fixed-header-search {
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 16px rgba(20, 70, 44, 0.05) !important;
  }

  .site-header .header-search input {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }

  .site-header .header-search button {
    min-width: 70px !important;
    min-height: 34px !important;
    height: 34px !important;
    border-radius: 0 8px 8px 0 !important;
    font-size: 13px !important;
  }
}

@media (max-width: 380px) {
  .site-header {
    padding-inline: 9px !important;
  }

  .site-header .main-nav {
    gap: 5px !important;
  }

  .site-header .main-nav > a,
  .site-header .nav-more > summary,
  .site-header .home-button strong {
    font-size: 11px !important;
  }
}

/* Final mobile customer-service window fit. */
@media (max-width: 720px) {
  body.customer-service-open {
    overflow: hidden !important;
    touch-action: none !important;
  }

  body.customer-service-open .site-header {
    z-index: 1 !important;
  }

  .customer-service-window.open {
    left: 50% !important;
    right: auto !important;
    top: var(--service-top, max(10px, env(safe-area-inset-top))) !important;
    bottom: auto !important;
    width: min(390px, calc(100vw - 34px)) !important;
    max-width: calc(100vw - 34px) !important;
    height: var(--service-height, calc(100svh - 20px)) !important;
    max-height: calc(100svh - 28px) !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 14px !important;
    transform: translateX(-50%) !important;
    border-color: rgba(53, 170, 96, 0.28) !important;
    box-shadow: 0 18px 46px rgba(20, 70, 44, 0.2) !important;
  }

  .customer-service-head {
    flex: 0 0 auto !important;
    min-height: 42px !important;
    padding: 8px 10px 8px 12px !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #55bd76 0%, #35a762 100%) !important;
  }

  .customer-service-head strong {
    font-size: 14px !important;
    line-height: 1.1 !important;
  }

  .customer-service-head span {
    margin-top: 1px !important;
    font-size: 9px !important;
  }

  .customer-service-actions {
    gap: 6px !important;
  }

  .customer-service-actions button {
    min-width: 30px !important;
    min-height: 30px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
  }

  .customer-service-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 7px !important;
    overflow: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    background: #f8fbf9 !important;
  }

  .customer-service-frame-wrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
  }

  .customer-service-frame {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    border: 0 !important;
    border-radius: 10px !important;
  }

  .customer-service-body small {
    flex: 0 0 auto !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .customer-service-body p,
  .customer-service-card,
  .customer-service-body > button {
    flex: 0 0 auto !important;
  }

  .customer-service-body textarea {
    flex: 0 0 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    height: 76px !important;
    overflow: auto !important;
    resize: none !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
  }

  .customer-service-window.minimized {
    top: auto !important;
    left: auto !important;
    transform: none !important;
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    width: min(210px, calc(100vw - 20px)) !important;
    height: auto !important;
  }
}

@media (max-width: 380px) {
  .customer-service-window.open {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  .customer-service-head {
    padding-inline: 9px !important;
  }

  .customer-service-head strong {
    font-size: 13px !important;
  }

  .customer-service-actions button {
    min-width: 28px !important;
    min-height: 28px !important;
  }
}

/* Final removal: theme toggle is no longer shown on desktop or mobile. */
#themeToggle {
  display: none !important;
}

/* Final mobile header alignment: four tags per row and home aligned with more types. */
@media (max-width: 720px) {
  .site-header {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "brand brand"
      "nav nav"
      "search search" !important;
    gap: 8px !important;
    padding: 10px 12px 12px !important;
  }

  .site-header .brand {
    grid-area: brand !important;
    max-width: 100% !important;
  }

  .site-header .main-nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 0 !important;
    padding-bottom: 42px !important;
    overflow: visible !important;
  }

  .site-header .main-nav > a {
    width: 100% !important;
    min-height: 36px !important;
    padding: 0 4px !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: clamp(12px, 3.25vw, 14px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .site-header .nav-more {
    display: block !important;
    grid-column: 1 / span 2 !important;
    width: 100% !important;
    margin-top: 2px !important;
  }

  .site-header .nav-more > summary {
    width: 100% !important;
    min-height: 36px !important;
    padding: 0 8px !important;
    justify-content: center !important;
    font-size: clamp(12px, 3.25vw, 14px) !important;
  }

  .site-header .home-button {
    position: absolute !important;
    right: 12px !important;
    top: 92px !important;
    min-height: 34px !important;
    height: 34px !important;
    width: calc(50% - 15px) !important;
    max-width: 156px !important;
    padding: 0 10px !important;
    gap: 7px !important;
    justify-content: center !important;
    border-radius: 9px !important;
    border-color: rgba(35, 150, 82, 0.72) !important;
    background: linear-gradient(135deg, #67c879 0%, #3ead62 100%) !important;
    box-shadow: 0 8px 18px rgba(28, 143, 77, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    font-size: 13px !important;
    z-index: 5 !important;
  }

  .site-header .home-button span {
    display: inline-flex !important;
    width: 18px !important;
    height: 18px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 5px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .site-header .home-button strong {
    font-size: clamp(12px, 3.25vw, 14px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: #fff !important;
    white-space: nowrap !important;
  }

  .site-header .header-search,
  .site-header .header-search.is-fixed-header-search {
    margin-top: 0 !important;
  }

  .site-header .nav-more[open] .nav-more-menu {
    grid-column: 1 / -1 !important;
    margin-top: 6px !important;
  }
}

@media (max-width: 390px) {
  .site-header .main-nav > a,
  .site-header .nav-more > summary,
  .site-header .home-button strong {
    font-size: 12px !important;
  }

  .site-header .home-button {
    top: 90px !important;
    max-width: 146px !important;
    padding: 0 8px !important;
  }
}

/* Final mobile brand centering. */
@media (max-width: 720px) {
  .site-header .brand {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    gap: 10px !important;
    text-align: center !important;
  }

  .site-header .brand-mark {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
  }

  .site-header .brand > span:not(.brand-mark) {
    display: inline-flex !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  .site-header .brand strong {
    font-size: 18px !important;
    line-height: 1.15 !important;
  }

  .site-header .brand small {
    display: none !important;
  }
}

/* Final mobile nav layout: keep labels and home button aligned without overlap. */
@media (max-width: 720px) {
  .site-header {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-areas:
      "brand brand brand brand"
      "nav nav nav nav"
      "more more home home"
      "search search search search" !important;
  }

  .site-header .main-nav {
    grid-area: nav !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding-bottom: 0 !important;
    align-items: stretch !important;
  }

  .site-header .main-nav > a,
  .site-header .nav-more > summary {
    min-height: 35px !important;
    border-radius: 8px !important;
    font-size: clamp(12px, 3vw, 14px) !important;
    box-shadow: 0 8px 18px rgba(28, 143, 77, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  }

  .site-header .nav-more {
    grid-column: 1 / span 2 !important;
    margin-top: 0 !important;
  }

  .site-header .home-button {
    position: static !important;
    grid-area: home !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 35px !important;
    height: 35px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    align-self: stretch !important;
    justify-self: stretch !important;
  }

  .site-header .home-button span {
    width: 20px !important;
    height: 20px !important;
  }

  .site-header .header-search,
  .site-header .header-search.is-fixed-header-search {
    grid-area: search !important;
    margin-top: 0 !important;
  }

  .site-header .nav-more[open] .nav-more-menu {
    position: absolute !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-width: min(330px, calc(100vw - 24px)) !important;
    width: min(330px, calc(100vw - 24px)) !important;
    margin-top: 6px !important;
  }
}

/* Final customer-service minimized state: only show restore with new-message badge. */
.customer-service-window.minimized {
  width: auto !important;
  min-width: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.customer-service-window.minimized .customer-service-head,
.customer-service-window.minimized .customer-service-body {
  display: none !important;
}

.customer-service-window.minimized .customer-service-restore {
  position: relative !important;
  display: inline-flex !important;
  width: auto !important;
  min-width: 118px !important;
  min-height: 42px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #58c978 0%, #35ad62 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(28, 143, 77, 0.24) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.customer-service-window.minimized .customer-service-restore span {
  color: #fff !important;
}

.customer-service-window.minimized .customer-service-restore em {
  display: none;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #f05a4f;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 18px;
}

.customer-service-window.minimized.has-new-message .customer-service-restore em {
  display: inline-flex;
}

.customer-service-window.minimized.has-new-message .customer-service-restore::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 5px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #f05a4f;
}

@media (max-width: 720px) {
  .customer-service-window.minimized {
    left: auto !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    top: auto !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    height: auto !important;
  }

  .customer-service-window.minimized .customer-service-restore {
    min-width: 108px !important;
    min-height: 40px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
  }
}
