:root {
  --night: #08111b;
  --navy: #0b141f;
  --panel: #122335;
  --panel-raised: #183149;
  --panel-soft: #1e3d58;
  --line: rgba(138, 189, 224, 0.16);
  --line-strong: rgba(138, 189, 224, 0.3);
  --text: #f4f8fb;
  --text-soft: #a9bbca;
  --text-faint: #71899d;
  --sky: #62c9ff;
  --sky-bright: #99e1ff;
  --lime: #b7f34a;
  --lime-dark: #75aa16;
  --page: 1220px;
  --radius: 4px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 4%, rgba(33, 105, 153, 0.2), transparent 32rem),
    linear-gradient(180deg, #0a1825 0, var(--night) 44rem, #070e16 100%);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 0 58%, rgba(48, 142, 202, 0.035) 58% 70%, transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 80px);
  content: "";
  pointer-events: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Arial Narrow", "Avenir Next Condensed", "Trebuchet MS", sans-serif;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: var(--sky);
  color: var(--night);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(var(--page), calc(100% - 40px));
  margin-inline: auto;
}

/* 关键模块：暗色品牌导航和游戏发现导航构成双层顶栏。 */
.site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(111, 173, 216, 0.12);
  background: rgba(8, 15, 24, 0.94);
  box-shadow: 0 9px 30px rgba(0, 0, 0, 0.22);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 34px;
  width: min(var(--page), calc(100% - 40px));
  min-height: 78px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--text);
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-size: 21px;
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #07131f url("favicon.svg?v=20260728c") center / cover no-repeat;
  box-shadow:
    0 0 0 1px rgba(98, 201, 255, 0.14),
    0 8px 24px rgba(31, 166, 202, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.brand-mark::before,
.brand-mark::after {
  content: none;
}

.brand:hover .brand-mark {
  box-shadow:
    0 0 0 1px rgba(98, 201, 255, 0.24),
    0 10px 28px rgba(31, 166, 202, 0.3);
  transform: translateY(-1px) rotate(-2deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  position: relative;
  padding-block: 26px 24px;
  color: #dce7ef;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 2px;
  background: var(--sky);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--sky);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 auto;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.header-note span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(183, 243, 74, 0.8);
}

.discovery-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(var(--page), calc(100% - 40px));
  min-height: 48px;
  margin-inline: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
}

.discovery-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.discovery-links a {
  padding: 8px 13px;
  color: #d6e3ec;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.discovery-links a:hover {
  background: rgba(98, 201, 255, 0.09);
  color: var(--sky);
}

.header-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  flex: 0 1 430px;
  height: 32px;
  border: 1px solid #2d6588;
  background: #162b3c;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.24);
}

.header-search:focus-within {
  border-color: var(--sky);
  box-shadow: 0 0 0 2px rgba(98, 201, 255, 0.16);
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.header-search input::placeholder {
  color: #7f9caf;
  font-style: italic;
}

.header-search button {
  border: 0;
  background: linear-gradient(135deg, #47baf3, #2185bd);
  color: #07111a;
  cursor: pointer;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

/* 关键模块：首页主推荐位采用大图与紧凑资料面板的横向组合。 */
.featured-section {
  padding-top: clamp(44px, 6vw, 76px);
}

.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}

.section-label-row > span {
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.section-label,
.section-kicker {
  margin: 0;
  color: #d8e6ef;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.featured-spotlight {
  position: relative;
  display: grid;
  grid-template-areas:
    "gallery copy"
    "navigation navigation";
  grid-template-columns: minmax(0, 1.68fr) minmax(340px, 0.64fr);
  border: 1px solid rgba(108, 183, 228, 0.3);
  background: #050a0f;
  box-shadow:
    0 38px 90px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(0, 0, 0, 0.5) inset;
  isolation: isolate;
}

.featured-spotlight::before {
  position: absolute;
  z-index: 7;
  top: -1px;
  left: -1px;
  width: 34%;
  height: 3px;
  background: linear-gradient(90deg, #70d4ff, rgba(112, 212, 255, 0));
  content: "";
  pointer-events: none;
}

.featured-gallery {
  grid-area: gallery;
  min-width: 0;
  background: #020507;
}

.featured-media-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(34, 71, 91, 0.3), transparent 55%),
    #010305;
  touch-action: pan-y;
}

.featured-media-stage::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent 14% 86%, rgba(0, 0, 0, 0.2)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.38), transparent 23%);
  content: "";
  pointer-events: none;
}

.featured-media-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  background: #010305;
}

.featured-media-slide img,
.featured-media-slide video {
  width: 100%;
  height: 100%;
}

.featured-media-slide img {
  object-fit: cover;
}

.featured-media-slide video {
  position: relative;
  z-index: 4;
  object-fit: contain;
}

.featured-media-slide.is-active {
  animation: featured-media-reveal 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes featured-media-reveal {
  from {
    opacity: 0.5;
    transform: scale(1.012);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.featured-media-slide figcaption {
  position: absolute;
  z-index: 5;
  bottom: 19px;
  left: 22px;
  padding-left: 12px;
  border-left: 2px solid var(--sky);
  color: rgba(238, 247, 252, 0.88);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px #000;
}

.preview-video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #050b10;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.preview-host.is-previewing .preview-video {
  opacity: 1;
}

.media-link,
.game-card-link {
  position: absolute;
  z-index: 5;
  inset: 0;
}

.featured-badge,
.status-badge {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  padding: 6px 9px;
  background: rgba(7, 16, 25, 0.86);
  color: var(--sky-bright);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.featured-media-control {
  position: absolute;
  z-index: 6;
  top: 50%;
  display: grid;
  width: 50px;
  height: 88px;
  padding: 0;
  border: 1px solid rgba(194, 229, 249, 0.28);
  background: rgba(2, 7, 11, 0.72);
  color: #effaff;
  cursor: pointer;
  font-size: 44px;
  font-weight: 200;
  line-height: 1;
  place-items: center;
  transform: translateY(-50%);
  transition: width 180ms ease, border-color 180ms ease, background 180ms ease;
  backdrop-filter: blur(9px);
}

.featured-media-control:hover {
  width: 58px;
  border-color: var(--sky);
  background: rgba(10, 50, 74, 0.92);
}

.featured-media-control span {
  transform: translateY(-3px);
}

.featured-media-previous {
  left: 10px;
}

.featured-media-next {
  right: 10px;
}

.featured-media-count {
  position: absolute;
  z-index: 6;
  top: 17px;
  right: 18px;
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid rgba(196, 226, 243, 0.18);
  background: rgba(2, 7, 11, 0.7);
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
  backdrop-filter: blur(8px);
}

.featured-media-count [data-media-current] {
  color: var(--sky-bright);
}

.featured-copy {
  position: relative;
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(26px, 3vw, 40px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(74, 183, 241, 0.13), transparent 42%),
    linear-gradient(180deg, #132a3e, #0e1f2f);
}

.featured-copy::after {
  position: absolute;
  right: -90px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border: 34px solid rgba(98, 201, 255, 0.045);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sky);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.featured-copy h1 {
  max-width: 360px;
  margin: 0;
  font-size: clamp(48px, 4.8vw, 68px);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-transform: uppercase;
}

.featured-copy h1 span,
.catalog-hero h1 span {
  color: var(--sky);
}

.featured-copy h2 {
  max-width: 300px;
  margin: clamp(18px, 3vh, 26px) 0 7px;
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.featured-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.featured-media-nav {
  position: relative;
  grid-area: navigation;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 62px;
  padding: 12px 22px;
  border-top: 1px solid rgba(128, 184, 218, 0.16);
  background:
    linear-gradient(90deg, rgba(98, 201, 255, 0.04), transparent 36%),
    #050a0f;
}

.featured-media-status,
.featured-media-hint {
  margin: 0;
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-media-status {
  color: #bed3df;
}

.featured-media-hint {
  text-align: right;
}

.featured-dots,
.media-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.featured-dot,
.media-dot {
  position: relative;
  width: 28px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.featured-dot::before,
.media-dot::before {
  position: absolute;
  inset: 8px 0;
  border-radius: 10px;
  background: #48525a;
  content: "";
  transition: background 180ms ease, transform 180ms ease;
}

.featured-dot:hover::before,
.media-dot:hover::before {
  background: #7d8e99;
}

.featured-dot.is-active::before,
.media-dot.is-active::before {
  background: var(--sky-bright);
  transform: scaleY(1.35);
}

.favorite-toggle {
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(164, 207, 232, 0.3);
  background: rgba(5, 14, 21, 0.62);
  color: #d7e8f2;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
  backdrop-filter: blur(9px);
}

.favorite-toggle:hover {
  border-color: var(--sky);
  background: rgba(24, 66, 92, 0.84);
}

.favorite-toggle svg {
  width: 19px;
  height: 19px;
  fill: transparent;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.favorite-toggle.is-active {
  border-color: rgba(255, 205, 83, 0.62);
  background: rgba(122, 82, 7, 0.32);
  color: #ffd56d;
}

.favorite-toggle.is-active svg {
  fill: currentColor;
}

.featured-favorite {
  position: absolute;
  top: 18px;
  right: 18px;
}

.featured-favorite + .eyebrow {
  padding-right: 80px;
}

.featured-media-stage .featured-badge {
  z-index: 6;
}

.featured-copy .button-primary {
  background: linear-gradient(90deg, #35aee8, #8ddcff);
  color: #05121b;
  box-shadow: 0 12px 32px rgba(41, 151, 207, 0.2);
}

@media (min-width: 1051px) {
  .featured-gallery {
    display: flex;
  }

  .featured-media-stage {
    flex: 1 1 auto;
    min-height: 500px;
    aspect-ratio: auto;
  }
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tag-list span {
  padding: 4px 8px;
  background: rgba(98, 201, 255, 0.12);
  color: #b8d7e9;
  font-size: 11px;
  line-height: 1.2;
}

.featured-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  margin: auto 0 22px;
  padding-top: 26px;
}

.featured-meta div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.featured-meta small,
.catalog-action small {
  display: block;
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-meta strong {
  display: block;
  margin-top: 3px;
  color: #dce8ef;
  font-size: 12px;
}

.button {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.025em;
  transition: filter 160ms ease, transform 160ms ease;
}

.button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.button-primary {
  width: 100%;
  background: linear-gradient(90deg, var(--lime-dark), var(--lime));
  color: #142005;
  box-shadow: 0 9px 20px rgba(124, 176, 31, 0.18);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

/* 关键模块：游戏货架使用高密度卡片，后续悬停视频会覆盖同一图片区域。 */
.library-section,
.category-section {
  padding-top: clamp(70px, 9vw, 116px);
}

.section-head,
.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}

.section-head h2,
.catalog-toolbar h2 {
  margin: 7px 0 0;
  font-size: clamp(30px, 3.2vw, 45px);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
}

.text-link {
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-link:hover {
  border-color: var(--sky);
  color: var(--sky);
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
}

.store-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #1a3e5a, #11293e);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  isolation: isolate;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.store-card:hover,
.store-card:focus-within {
  z-index: 2;
  background: linear-gradient(145deg, #2d607e, #1b415c);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.42);
  transform: translateY(-6px);
}

.store-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050b10;
}

.store-card-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.store-card:hover .store-card-media > img {
  transform: scale(1.035);
}

.store-card .status-badge {
  top: auto;
  bottom: 0;
  left: 0;
  background: rgba(7, 16, 25, 0.9);
  color: var(--lime);
}

.store-card .status-badge-early {
  background: rgba(116, 69, 9, 0.94);
  color: #ffd99a;
}

.store-card .status-badge-featured {
  background: rgba(17, 82, 112, 0.94);
  color: #b8efff;
}

.store-card-body {
  position: relative;
  z-index: 2;
  min-height: 145px;
  padding: 17px 17px 15px;
  pointer-events: none;
}

.store-card-platform {
  margin: 0;
  color: var(--sky-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.store-card h3 {
  margin: 7px 0 25px;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.store-card-footer {
  position: absolute;
  right: 17px;
  bottom: 15px;
  left: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-faint);
  font-size: 11px;
}

.store-card-footer strong {
  padding: 4px 7px;
  background: rgba(183, 243, 74, 0.15);
  color: var(--lime);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.category-grid a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 20px;
  min-height: 160px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(98, 201, 255, 0.12), transparent 60%),
    var(--panel);
  transition: border-color 180ms ease, transform 180ms ease;
}

.category-grid a::after {
  position: absolute;
  right: -30px;
  bottom: -52px;
  width: 130px;
  height: 130px;
  border: 20px solid rgba(98, 201, 255, 0.055);
  border-radius: 50%;
  content: "";
}

.category-grid a:hover {
  border-color: var(--sky);
  transform: translateY(-4px);
}

.category-grid span {
  grid-row: 1 / 3;
  color: var(--sky);
  font-family: "Arial Narrow", sans-serif;
  font-size: 15px;
  font-weight: 900;
}

.category-grid strong {
  align-self: end;
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.category-grid small {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.developer-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 6vw, 90px);
  margin-top: clamp(76px, 10vw, 130px);
  padding: clamp(38px, 6vw, 72px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 10%, rgba(98, 201, 255, 0.14), transparent 19rem),
    linear-gradient(125deg, #10273b, #0c1926);
}

.developer-panel h2 {
  margin: 12px 0 0;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.developer-copy {
  align-self: end;
}

.developer-copy p {
  margin: 0 0 24px;
  color: var(--text-soft);
}

.developer-copy a strong {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 关键模块：目录页提供可扩展的搜索、分类筛选和横向游戏条目。 */
.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  align-items: end;
  gap: 50px;
  padding-block: clamp(62px, 8vw, 106px);
}

.catalog-hero h1 {
  margin: 0;
  font-size: clamp(54px, 7.5vw, 96px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.86;
  text-transform: uppercase;
}

.catalog-hero > p {
  margin: 0 0 5px;
  color: var(--text-soft);
  font-size: 17px;
}

.catalog-browser {
  padding-bottom: 25px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.filter-button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: #0e1c29;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--sky);
  background: var(--sky);
  color: var(--night);
}

.result-count {
  margin: 0 0 10px;
  color: var(--text-faint);
  font-size: 12px;
}

.result-count strong {
  color: var(--sky);
}

.catalog-list {
  display: grid;
  gap: 7px;
}

.catalog-row {
  position: relative;
  display: grid;
  grid-template-columns: 250px minmax(190px, 0.7fr) minmax(220px, 1fr) 120px;
  align-items: center;
  min-height: 122px;
  overflow: hidden;
  background: linear-gradient(90deg, #152d42, #102334);
  isolation: isolate;
  transition: background 180ms ease, transform 180ms ease;
}

.catalog-row:hover,
.catalog-row:focus-within {
  z-index: 2;
  background: linear-gradient(90deg, #285978, #17394f);
  transform: translateX(5px);
}

.catalog-cover {
  position: relative;
  align-self: stretch;
  min-height: 122px;
  overflow: hidden;
  background: #050b10;
}

.catalog-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.browser-game-cover--catalog {
  display: block;
  transition: filter 220ms ease, transform 420ms ease;
}

.catalog-row:hover .browser-game-cover--catalog,
.catalog-row:focus-within .browser-game-cover--catalog {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.035);
}

/* 关键模块：新增游戏使用本地 CSS 生成封面，不热链第三方图片，也不增加图片体积。 */
.generated-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 17px 19px;
  background:
    radial-gradient(circle at 78% 20%, color-mix(in srgb, var(--cover-accent) 72%, transparent), transparent 31%),
    linear-gradient(145deg, color-mix(in srgb, var(--cover-accent-alt) 60%, #111827), #070b11 74%);
  isolation: isolate;
}

.generated-cover::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(112deg, transparent 0 48%, rgba(255, 255, 255, 0.11) 48% 49%, transparent 49%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 30px);
  content: "";
  mask-image: linear-gradient(180deg, #000, transparent 86%);
}

.generated-cover::after {
  position: absolute;
  z-index: -1;
  top: -68%;
  right: -20%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--cover-accent) 60%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px color-mix(in srgb, var(--cover-accent) 10%, transparent),
    0 0 0 58px color-mix(in srgb, var(--cover-accent) 5%, transparent);
  content: "";
}

.generated-cover__orbit {
  position: absolute;
  top: 14%;
  right: 10%;
  width: 38%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.generated-cover__orbit::before,
.generated-cover__orbit::after {
  position: absolute;
  border-radius: 50%;
  background: var(--cover-accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--cover-accent) 88%, transparent);
  content: "";
}

.generated-cover__orbit::before {
  top: 7%;
  right: 5%;
  width: 8px;
  height: 8px;
}

.generated-cover__orbit::after {
  bottom: 14%;
  left: -2%;
  width: 5px;
  height: 5px;
}

.generated-cover__initials {
  position: absolute;
  top: 31%;
  right: 19%;
  color: rgba(255, 255, 255, 0.97);
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-size: 48px;
  font-weight: 950;
  letter-spacing: -0.1em;
  line-height: 0.8;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.generated-cover__name {
  max-width: 13ch;
  color: #fff;
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-transform: uppercase;
}

.generated-cover__type {
  margin-top: 7px;
  color: color-mix(in srgb, var(--cover-accent) 72%, white);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.catalog-row-copy {
  padding: 17px 21px;
}

.catalog-row-copy h3 {
  margin: 6px 0 0;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.catalog-row-copy .tag-list {
  margin-top: 13px;
}

.catalog-description {
  margin: 0;
  padding: 18px;
  color: var(--text-soft);
  font-size: 13px;
}

.catalog-action {
  justify-self: end;
  padding: 18px 21px;
  text-align: right;
}

.catalog-action strong {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 9px;
  background: rgba(183, 243, 74, 0.17);
  color: var(--lime);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.empty-state {
  padding: 60px 24px;
  border: 1px dashed var(--line-strong);
  color: var(--text-soft);
  text-align: center;
}

.empty-state strong {
  color: var(--text);
  font-size: 24px;
}

.empty-state p {
  margin: 5px 0 0;
}

.catalog-note {
  margin-top: 30px;
  margin-bottom: 80px;
  padding: 20px 24px;
  border-left: 4px solid var(--sky);
  background: rgba(19, 40, 58, 0.75);
  color: var(--text-soft);
  font-size: 14px;
}

.catalog-note strong {
  color: var(--text);
}

.catalog-note a {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 关键模块：Steam 游戏详情页使用媒体滑动栏，同时保持 OpenNice 自有视觉与清晰归属。 */
.store-detail-page {
  padding-block: clamp(48px, 6vw, 80px) 96px;
}

.store-detail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 25px;
}

.store-detail-heading h1 {
  max-width: 930px;
  margin: 7px 0 0;
  font-size: clamp(46px, 6.2vw, 82px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-transform: uppercase;
}

.store-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(310px, 0.66fr);
  align-items: start;
  gap: 14px;
}

.media-gallery {
  min-width: 0;
}

.media-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #020609;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.38);
  touch-action: pan-y;
}

.media-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  background: #020609;
}

.media-slide img,
.media-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-slide.is-active {
  animation: media-reveal 240ms ease both;
}

@keyframes media-reveal {
  from {
    opacity: 0.55;
    transform: scale(1.008);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.media-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 42px;
  height: 72px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(4, 11, 17, 0.78);
  color: var(--text);
  cursor: pointer;
  font-size: 28px;
  place-items: center;
  transform: translateY(-50%);
  backdrop-filter: blur(7px);
}

.media-control:hover {
  border-color: var(--sky);
  background: rgba(24, 69, 97, 0.92);
}

.media-control-previous {
  left: 10px;
}

.media-control-next {
  right: 10px;
}

.media-count {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 11px;
  margin: 0;
  padding: 5px 8px;
  background: rgba(4, 11, 17, 0.78);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  backdrop-filter: blur(7px);
}

.media-thumbnails {
  display: flex;
  gap: 7px;
  padding-top: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--panel-soft) transparent;
}

.media-thumbnail {
  position: relative;
  flex: 0 0 118px;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background: #03080d;
  cursor: pointer;
  scroll-snap-align: start;
  opacity: 0.66;
}

.media-thumbnail:hover,
.media-thumbnail.is-active {
  border-color: var(--sky);
  opacity: 1;
}

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

.media-thumbnail-play::after {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(4, 11, 17, 0.8);
  color: white;
  content: "▶";
  font-size: 11px;
  place-items: center;
  transform: translate(-50%, -50%);
}

.media-dots {
  min-height: 38px;
  padding-top: 4px;
}

.media-dot {
  width: 22px;
}

.media-dot::before {
  inset-block: 9px;
}

.store-summary {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(155deg, rgba(98, 201, 255, 0.09), transparent 44%),
    #102235;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.store-summary-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.store-summary-cover {
  width: 100%;
  aspect-ratio: 460 / 215;
  object-fit: cover;
}

.store-summary-body {
  padding: 24px;
}

.early-access-chip {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(255, 196, 92, 0.38);
  background: rgba(181, 105, 13, 0.16);
  color: #ffd493;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.free-to-play-chip {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(158, 211, 75, 0.42);
  background: rgba(98, 153, 32, 0.16);
  color: #c7f58b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.store-summary-text {
  margin: 17px 0 0;
  color: #c3d2dc;
  font-size: 14px;
}

.store-summary .fact-list {
  margin-top: 22px;
}

.store-summary .fact-list dd {
  color: #dbe7ee;
  font-size: 14px;
}

.store-summary .button {
  width: 100%;
  margin-top: 24px;
}

.store-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: start;
  gap: 14px;
  margin-top: 38px;
}

.store-about-card,
.steam-widget-panel,
.early-access-panel {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(27, 57, 82, 0.86), rgba(14, 31, 45, 0.92));
}

.store-about-card h2,
.steam-widget-panel h2,
.early-access-panel h2 {
  margin-bottom: 15px;
  font-size: clamp(28px, 3vw, 39px);
  letter-spacing: -0.04em;
}

.store-about-card > p,
.steam-widget-panel > p,
.early-access-panel > p {
  margin: 0;
  color: var(--text-soft);
}

.feature-list {
  display: grid;
  gap: 11px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--line);
  background: rgba(4, 12, 19, 0.28);
  color: #c7d5de;
}

.feature-list li::before {
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--sky);
  content: "◆";
  font-size: 10px;
}

.steam-widget-shell {
  width: 100%;
  margin-top: 22px;
  overflow: hidden;
  background: #0d1822;
}

.steam-widget-shell iframe {
  display: block;
  width: 100%;
  max-width: 646px;
  height: 190px;
}

.store-widget-notice {
  margin-top: 15px !important;
  padding: 13px 15px;
  border-left: 3px solid var(--sky);
  background: rgba(6, 16, 24, 0.45);
  font-size: 13px;
}

.store-widget-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--sky-bright);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.early-access-panel {
  margin-top: 14px;
  border-color: rgba(255, 196, 92, 0.23);
  background:
    linear-gradient(135deg, rgba(181, 105, 13, 0.12), transparent 58%),
    #111e2b;
}

/* 关键模块：正式发行信息沿用提示卡布局，并用冷色区别于抢先体验状态。 */
.release-panel {
  border-color: rgba(98, 201, 255, 0.25);
  background:
    linear-gradient(135deg, rgba(45, 152, 210, 0.14), transparent 58%),
    #111e2b;
}

.source-note {
  margin: 20px 0 0;
  color: var(--text-faint);
  font-size: 12px;
}

.source-note a {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 关键模块：游戏页直接展示官方 iframe，前方不插入广告、视频或其他媒体。 */
.game-page {
  padding-block: clamp(48px, 6vw, 80px) 96px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 25px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.breadcrumbs a:hover {
  color: var(--sky);
}

.game-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 25px;
}

.game-heading h1 {
  margin: 7px 0 0;
  font-size: clamp(52px, 7.5vw, 92px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-transform: uppercase;
}

.game-heading-copy {
  margin: 0 0 3px;
  color: var(--text-soft);
  font-size: 16px;
}

.game-heading-copy strong {
  display: block;
  margin-bottom: 9px;
  color: var(--sky);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-heading-side {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.game-save-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  padding: 0 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.game-save-button > span:first-child {
  color: var(--sky);
  font-size: 19px;
  line-height: 1;
}

.game-save-button:hover,
.game-save-button.is-active {
  border-color: rgba(183, 243, 74, 0.48);
  background: rgba(183, 243, 74, 0.08);
  color: var(--lime);
}

.game-frame {
  padding: 9px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #050a0e;
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.42);
}

.game-embed {
  width: 100%;
  height: clamp(600px, 75vh, 920px);
  min-height: 600px;
  overflow: hidden;
  background: #000;
}

.game-embed iframe {
  display: block;
}

/* 关键模块：第三方浏览器游戏统一使用点击启动、状态栏、全屏与源站兜底入口。 */
.player-toolbar {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  background: #0b1721;
}

.player-status,
.player-toolbar-actions {
  display: flex;
  align-items: center;
}

.player-status {
  gap: 9px;
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.035em;
}

.player-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 13px rgba(183, 243, 74, 0.74);
}

.player-toolbar-actions {
  gap: 8px;
}

.player-toolbar-actions button,
.player-toolbar-actions a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  padding: 6px 9px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.player-toolbar-actions button:hover,
.player-toolbar-actions a:hover {
  border-color: var(--sky);
  color: var(--sky-bright);
}

.game-embed--source {
  position: relative;
  background: #05090e;
}

.game-embed--source iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.player-launch {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  background: #080d13;
}

.player-cover-frame {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #080d13;
}

.player-cover-frame::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 36%, rgba(3, 8, 13, 0.82)),
    linear-gradient(90deg, transparent 68%, rgba(3, 8, 13, 0.35));
  content: "";
  pointer-events: none;
}

.player-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}

.player-cover-overlay {
  position: absolute;
  right: clamp(24px, 4vw, 58px);
  bottom: clamp(24px, 4vw, 52px);
  left: clamp(24px, 4vw, 58px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.62);
}

.player-cover-overlay span {
  color: var(--sky-bright);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.player-cover-overlay strong {
  max-width: 13ch;
  font-size: clamp(34px, 5vw, 68px);
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-transform: uppercase;
}

.generated-cover--player {
  position: relative;
  inset: auto;
  min-width: 0;
  height: 100%;
  padding: clamp(30px, 5vw, 68px);
}

.generated-cover--player .generated-cover__orbit {
  top: 12%;
  right: 15%;
  width: min(48%, 390px);
}

.generated-cover--player .generated-cover__initials {
  top: 31%;
  right: 23%;
  font-size: clamp(76px, 11vw, 154px);
}

.generated-cover--player .generated-cover__name {
  max-width: 11ch;
  font-size: clamp(35px, 5vw, 72px);
}

.generated-cover--player .generated-cover__type {
  margin-top: 14px;
  font-size: 10px;
}

.player-launch-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(32px, 5vw, 72px);
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 110% 50%, rgba(98, 201, 255, 0.13), transparent 60%),
    #0c1823;
}

.player-launch-copy > p {
  margin: 0 0 14px;
  color: var(--sky);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.player-launch-copy h2 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(35px, 4.5vw, 62px);
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.player-launch-copy > span {
  max-width: 31ch;
  margin: 18px 0 27px;
  color: var(--text-soft);
  font-size: 13px;
}

.player-launch-copy .button {
  width: min(100%, 260px);
}

.player-noscript {
  padding: 30px;
  color: var(--text-soft);
}

.embed-help {
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.attribution {
  margin: 0;
  padding: 17px 11px 9px;
  color: #c1ced8;
  font-size: 16px;
  line-height: 1.55;
}

.attribution a {
  color: var(--sky-bright);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.attribution a:hover {
  color: var(--text);
}

.game-info-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 10px;
  margin-top: 14px;
}

.info-card {
  padding: clamp(27px, 4vw, 44px);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(27, 57, 82, 0.86), rgba(14, 31, 45, 0.92));
}

.info-card h2 {
  margin-bottom: 15px;
  font-size: clamp(28px, 3vw, 39px);
  letter-spacing: -0.04em;
}

.info-card p {
  margin: 0;
  color: var(--text-soft);
}

.info-card p + p {
  margin-top: 12px;
}

.fact-list {
  display: grid;
  gap: 13px;
  margin: 0;
}

.fact-list div {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.fact-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.fact-list dt {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 3px 0 0;
  font-weight: 750;
}

.more-games {
  margin-top: 72px;
}

.more-games h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 4vw, 44px);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mini-card {
  display: block;
  min-height: 145px;
  padding: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(98, 201, 255, 0.1), transparent 62%),
    var(--panel);
  transition: border-color 160ms ease, transform 160ms ease;
}

.mini-card:hover {
  border-color: var(--sky);
  transform: translateY(-4px);
}

.mini-card span {
  color: var(--sky);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mini-card h3 {
  margin: 36px 0 0;
  font-size: 23px;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

/* 关键模块：页脚明确独立站点身份和开发者归属。 */
.site-footer {
  margin-top: 90px;
  padding: 40px 20px 50px;
  border-top: 1px solid var(--line);
  background: rgba(4, 10, 16, 0.74);
}

.footer-shell {
  display: grid;
  grid-template-columns: 0.7fr 1fr auto;
  align-items: start;
  gap: 50px;
  width: min(var(--page), 100%);
  margin-inline: auto;
}

.footer-brand .brand {
  font-size: 16px;
}

.footer-brand .brand-mark {
  width: 29px;
  height: 29px;
}

.footer-brand p,
.footer-shell > p {
  margin: 12px 0 0;
  color: var(--text-faint);
  font-size: 12px;
}

.footer-shell > p {
  max-width: 550px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 15px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 750;
}

.footer-links a:hover {
  color: var(--sky);
}

.redirect-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.redirect-card {
  max-width: 640px;
  padding: 46px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}

.redirect-card h1 {
  margin-bottom: 15px;
  font-size: clamp(42px, 8vw, 70px);
  letter-spacing: -0.05em;
}

.redirect-card p {
  color: var(--text-soft);
}

@media (max-width: 1050px) {
  .featured-spotlight {
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.72fr);
  }

  .featured-copy {
    padding: 28px;
  }

  .featured-copy h1 {
    font-size: clamp(36px, 4.5vw, 50px);
  }

  .featured-copy h2 {
    margin-top: 24px;
  }

  .featured-meta {
    padding-top: 18px;
  }

  .shelf-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-row {
    grid-template-columns: 220px minmax(200px, 0.8fr) 1fr 110px;
  }

  .mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .header-note {
    display: none;
  }

  .featured-spotlight {
    grid-template-areas:
      "gallery"
      "copy"
      "navigation";
    grid-template-columns: 1fr;
  }

  .featured-copy {
    min-height: 390px;
    padding: clamp(30px, 6vw, 46px);
  }

  .featured-copy h1 {
    max-width: 520px;
    font-size: clamp(44px, 9vw, 66px);
  }

  .featured-copy > p:not(.eyebrow) {
    max-width: 620px;
  }

  .featured-media-nav {
    grid-template-columns: 1fr auto;
  }

  .featured-media-status {
    grid-column: 1 / -1;
  }

  .featured-media-hint {
    display: none;
  }

  .developer-panel,
  .catalog-hero,
  .game-heading,
  .game-info-grid,
  .store-detail-heading,
  .store-detail-grid,
  .store-content-grid {
    grid-template-columns: 1fr;
  }

  .catalog-hero > p,
  .game-heading-copy,
  .store-detail-heading .game-heading-copy {
    max-width: 650px;
  }

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

  .catalog-row {
    grid-template-columns: 210px 1fr 105px;
  }

  .catalog-description {
    display: none;
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .page-shell {
    width: min(100% - 24px, var(--page));
  }

  .nav-shell {
    width: min(100% - 24px, var(--page));
    min-height: 64px;
    gap: 18px;
  }

  .brand {
    font-size: 17px;
  }

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

  .nav-links {
    gap: 13px;
    margin-left: auto;
  }

  .nav-links a {
    padding-block: 21px 19px;
    font-size: 11px;
  }

  .nav-links a:last-child {
    display: none;
  }

  .nav-links a::after {
    bottom: 12px;
  }

  .discovery-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
    padding: 8px 12px 11px;
  }

  .discovery-links {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .discovery-links a {
    padding: 5px 10px;
    font-size: 11px;
  }

  .header-search {
    width: 100%;
    max-width: none;
    height: 35px;
  }

  .featured-section {
    padding-top: 30px;
  }

  .featured-spotlight {
    margin-inline: -12px;
    border-right: 0;
    border-left: 0;
  }

  .featured-copy {
    min-height: 0;
    padding: 30px 24px 28px;
  }

  .featured-copy h1 {
    font-size: clamp(41px, 13vw, 58px);
  }

  .featured-copy h2 {
    margin-top: 26px;
  }

  .featured-media-control {
    width: 40px;
    height: 62px;
    font-size: 34px;
  }

  .featured-media-control:hover {
    width: 44px;
  }

  .featured-media-previous {
    left: 6px;
  }

  .featured-media-next {
    right: 6px;
  }

  .featured-media-slide figcaption {
    bottom: 12px;
    left: 14px;
    max-width: calc(100% - 90px);
    font-size: 8px;
  }

  .featured-media-count {
    top: 10px;
    right: 10px;
  }

  .featured-badge {
    top: 10px;
    left: 10px;
  }

  .featured-favorite {
    top: 14px;
    right: 14px;
  }

  .featured-media-nav {
    display: flex;
    min-height: 74px;
    padding: 11px 14px;
    flex-direction: column;
    gap: 4px;
  }

  .featured-dots {
    width: 100%;
    gap: 4px;
  }

  .featured-dot {
    flex: 1 1 0;
    width: auto;
    max-width: 36px;
  }

  .section-head,
  .catalog-toolbar {
    display: block;
  }

  .text-link {
    display: inline-block;
    margin-top: 16px;
  }

  .shelf-grid {
    display: flex;
    gap: 10px;
    margin-inline: -12px;
    padding-inline: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .shelf-grid::-webkit-scrollbar {
    display: none;
  }

  .store-card {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .category-grid a {
    min-height: 126px;
    padding: 22px;
  }

  .developer-panel {
    width: 100%;
    padding: 42px 24px;
    border-right: 0;
    border-left: 0;
  }

  .catalog-hero {
    gap: 30px;
    padding-block: 52px 65px;
  }

  .catalog-hero h1 {
    font-size: clamp(52px, 16vw, 76px);
  }

  .catalog-toolbar .filter-row {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .catalog-row {
    grid-template-columns: 128px minmax(0, 1fr);
    min-height: 112px;
  }

  .catalog-cover {
    min-height: 112px;
  }

  .catalog-row-copy {
    padding: 15px;
  }

  .catalog-row-copy h3 {
    font-size: 21px;
  }

  .catalog-row-copy .tag-list {
    gap: 4px;
    margin-top: 10px;
  }

  .catalog-action {
    display: none;
  }

  .catalog-row:hover,
  .catalog-row:focus-within {
    transform: none;
  }

  .game-page {
    padding-top: 38px;
  }

  .store-detail-page {
    padding-top: 38px;
  }

  .store-detail-heading {
    gap: 22px;
  }

  .store-detail-heading h1 {
    font-size: clamp(42px, 13.5vw, 64px);
  }

  .store-detail-grid {
    margin-inline: -12px;
  }

  .media-stage,
  .store-summary {
    border-right: 0;
    border-left: 0;
  }

  .media-thumbnails {
    padding-inline: 12px;
  }

  .media-dots {
    padding-inline: 12px;
  }

  .media-thumbnail {
    flex-basis: 102px;
  }

  .media-control {
    width: 36px;
    height: 58px;
    font-size: 23px;
  }

  .store-content-grid {
    margin-inline: -12px;
  }

  .store-about-card,
  .steam-widget-panel,
  .early-access-panel {
    padding: 27px 23px;
    border-right: 0;
    border-left: 0;
  }

  .game-heading {
    gap: 22px;
  }

  .game-heading-side {
    gap: 13px;
  }

  .game-heading h1 {
    font-size: clamp(49px, 15vw, 72px);
  }

  .game-frame {
    margin-inline: -12px;
    padding: 6px;
    border-right: 0;
    border-left: 0;
  }

  .game-embed {
    height: max(520px, 74svh);
    min-height: 520px;
  }

  .player-toolbar {
    align-items: flex-start;
    padding: 8px;
  }

  .player-toolbar-actions {
    flex: 0 0 auto;
  }

  .player-toolbar-actions button,
  .player-toolbar-actions a {
    padding: 6px 7px;
  }

  .player-launch {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(230px, 1fr);
  }

  .player-cover-frame {
    min-height: 230px;
  }

  .player-cover-overlay {
    right: 22px;
    bottom: 20px;
    left: 22px;
  }

  .player-cover-overlay strong {
    font-size: clamp(28px, 9vw, 42px);
  }

  .generated-cover--player {
    padding: 25px;
  }

  .generated-cover--player .generated-cover__orbit {
    top: 8%;
    right: 10%;
    width: 36%;
  }

  .generated-cover--player .generated-cover__initials {
    top: 25%;
    right: 17%;
    font-size: clamp(58px, 20vw, 84px);
  }

  .generated-cover--player .generated-cover__name {
    max-width: 13ch;
    font-size: clamp(28px, 9vw, 42px);
  }

  .generated-cover--player .generated-cover__type {
    margin-top: 8px;
    font-size: 8px;
  }

  .player-launch-copy {
    order: -1;
    padding: 27px 24px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .player-launch-copy h2 {
    font-size: clamp(31px, 9.5vw, 43px);
  }

  .player-launch-copy > span {
    margin: 13px 0 19px;
  }

  .attribution {
    padding: 16px 9px 9px;
    font-size: 15px;
  }

  .info-card {
    padding: 27px 23px;
  }

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

  .mini-card {
    min-height: 118px;
  }

  .mini-card h3 {
    margin-top: 25px;
  }

  .site-footer {
    padding-inline: 12px;
  }

  .footer-shell {
    display: block;
  }

  .footer-shell > p,
  .footer-links {
    margin-top: 25px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  .brand {
    gap: 8px;
    font-size: 15px;
  }

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

  .nav-links {
    gap: 9px;
  }

  .featured-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .catalog-row {
    grid-template-columns: 112px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
