/* wsjgames game hub · warm editorial arcade */
:root {
  --paper: #f7f3e8;
  --paper-deep: #eee8d9;
  --surface: #fffdf8;
  --surface-soft: rgba(255, 253, 248, 0.76);
  --ink: #21332a;
  --ink-soft: #526258;
  --muted: #7b877f;
  --line: rgba(37, 56, 46, 0.12);
  --forest: #263a30;
  --forest-deep: #17251f;
  --lime: #d9f66f;
  --lime-deep: #aacb3e;
  --coral: #ff785a;
  --coral-deep: #d7553b;
  --blue: #5a79db;
  --shadow-soft: 0 20px 55px rgba(45, 59, 44, 0.1);
  --shadow-card: 0 10px 30px rgba(38, 52, 42, 0.08);
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 2%, rgba(255, 255, 255, 0.86), transparent 25rem),
    radial-gradient(circle at 92% 9%, rgba(204, 224, 252, 0.42), transparent 27rem),
    linear-gradient(155deg, #faf7ef 0%, var(--paper) 48%, #eee9db 100%);
  font-family: "Avenir Next", "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.player-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(255, 120, 90, 0.35);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

svg {
  display: block;
}

.ambient {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.28;
  background-image: radial-gradient(rgba(43, 66, 51, 0.2) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.ambient-grid {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 92rem;
  height: 58rem;
  border: 1px solid rgba(45, 71, 51, 0.065);
  border-radius: 50%;
  transform: translateX(-50%) rotate(-8deg);
  box-shadow:
    0 0 0 5rem rgba(255, 255, 255, 0.08),
    0 0 0 13rem rgba(67, 90, 66, 0.025);
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
}

.blob-coral {
  top: 9rem;
  left: -8rem;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(255, 159, 133, 0.16), transparent 68%);
}

.blob-mint {
  top: 34rem;
  right: -9rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(161, 207, 169, 0.17), transparent 68%);
}

.blob-blue {
  top: 21rem;
  right: 23%;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.13);
}

.ambient-star {
  position: absolute;
  color: var(--coral);
  opacity: 0.45;
}

.star-one {
  top: 12rem;
  right: 6%;
  font-size: 23px;
  transform: rotate(13deg);
}

.star-two {
  top: 44rem;
  left: 4%;
  color: var(--lime-deep);
  font-size: 17px;
  transform: rotate(-9deg);
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  width: min(var(--content), calc(100% - 48px));
  min-height: 88px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  overflow: hidden;
  border-radius: 13px;
  background: var(--forest);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    0 7px 16px rgba(31, 53, 42, 0.16);
}

.brand-mark::before {
  position: absolute;
  top: 12px;
  left: 8px;
  width: 27px;
  height: 21px;
  border-radius: 8px;
  content: "";
  background: var(--lime);
}

.brand-mark-line {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 15px;
  width: 13px;
  height: 3px;
  border-radius: 999px;
  background: var(--forest);
}

.brand-mark-line::after {
  position: absolute;
  top: -5px;
  left: 5px;
  width: 3px;
  height: 13px;
  border-radius: 999px;
  content: "";
  background: inherit;
}

.brand-mark-dot {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 9px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 5px 5px 0 var(--forest);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Trebuchet MS", "Microsoft YaHei", sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.52);
  box-shadow: 0 5px 18px rgba(44, 60, 45, 0.04);
  backdrop-filter: blur(12px);
}

.main-nav a {
  padding: 7px 13px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.18s ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.header-status {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.56);
  font-size: 10px;
  font-weight: 650;
}

.header-status strong {
  color: var(--ink);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #66b27f;
  box-shadow: 0 0 0 4px rgba(102, 178, 127, 0.13);
}

main {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 690px;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 0.88fr);
  align-items: center;
  gap: clamp(32px, 7vw, 90px);
  padding: 52px 18px 72px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67776d;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.eyebrow i {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--coral);
}

.hero h1 {
  max-width: 660px;
  margin: 20px 0 22px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(48px, 5.2vw, 76px);
  font-weight: 900;
  letter-spacing: -0.072em;
  line-height: 1.08;
}

.hero h1 span {
  color: var(--ink);
}

.hero h1 em {
  position: relative;
  display: inline-block;
  color: var(--coral);
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.09em;
}

.hero h1 em::after {
  position: absolute;
  right: 2%;
  bottom: 1px;
  left: 5%;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: rgba(255, 120, 90, 0.14);
  transform: rotate(-2deg);
}

.hero-lead {
  max-width: 500px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

.button:active {
  transform: translateY(0) scale(0.985);
}

.button-primary {
  color: #fff;
  background: var(--forest);
  box-shadow: 0 12px 22px rgba(37, 59, 47, 0.2);
}

.button-primary:hover {
  background: var(--forest-deep);
  box-shadow: 0 15px 28px rgba(37, 59, 47, 0.25);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.65);
}

.button-secondary:hover {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 9px 20px rgba(37, 56, 46, 0.08);
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.search-box {
  display: flex;
  width: min(100%, 390px);
  height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 11px 0 14px;
  border: 1px solid rgba(39, 61, 48, 0.11);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.65);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.search-box:focus-within {
  border-color: rgba(255, 120, 90, 0.42);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(50, 62, 46, 0.07);
}

.search-box svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
}

.search-box input::placeholder {
  color: #9aa49e;
}

.search-box kbd {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--paper);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 9px;
}

.search-note {
  color: var(--muted);
  font-size: 9px;
}

.hero-stage {
  position: relative;
  min-height: 565px;
  overflow: clip;
  isolation: isolate;
}

.hero-stage::before {
  position: absolute;
  z-index: -3;
  top: 32px;
  right: 5px;
  width: 420px;
  height: 430px;
  border-radius: 42% 58% 51% 49% / 45% 39% 61% 55%;
  content: "";
  background: linear-gradient(145deg, #e7edc3, #d8e2b4);
  transform: rotate(8deg);
  box-shadow: 0 25px 70px rgba(76, 94, 55, 0.1);
}

.hero-stage::after {
  position: absolute;
  z-index: -4;
  right: 34px;
  bottom: 35px;
  width: 310px;
  height: 85px;
  border-radius: 50%;
  content: "";
  background: rgba(49, 64, 43, 0.14);
  filter: blur(20px);
}

.stage-orbit {
  position: absolute;
  z-index: -2;
  border: 1px dashed rgba(53, 77, 58, 0.15);
  border-radius: 50%;
  animation: orbit-turn 32s linear infinite;
}

.orbit-one {
  top: 12px;
  right: -35px;
  width: 470px;
  height: 470px;
}

.orbit-two {
  top: 105px;
  right: 42px;
  width: 320px;
  height: 320px;
  animation-direction: reverse;
  animation-duration: 24s;
}

.feature-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--surface);
  box-shadow: 0 28px 65px rgba(43, 56, 40, 0.16);
}

.feature-main {
  top: 55px;
  left: 35px;
  width: min(400px, 78%);
  padding: 11px 11px 13px;
  border-radius: 27px;
  transform: rotate(-4.5deg);
}

.feature-screen {
  position: relative;
  overflow: hidden;
  border-radius: 19px;
  background: #e9dfc8;
}

.feature-screen img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  transform: scale(1.01);
}

.screen-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.3), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.12));
  pointer-events: none;
}

.feature-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 3px 0 5px;
}

.feature-meta > span {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.feature-meta > strong {
  font-size: 15px;
  font-weight: 900;
}

.feature-meta > button {
  display: inline-flex;
  min-height: 33px;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 0 10px;
  border-radius: 9px;
  color: #fff;
  background: var(--forest);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.feature-meta > button i {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--lime);
}

.feature-mini {
  z-index: 3;
  right: 0;
  bottom: 19px;
  width: 240px;
  padding: 11px;
  border-radius: 22px;
  transform: rotate(4deg);
  background: #eff8ff;
}

.feature-mini img {
  display: block;
  width: 100%;
  border-radius: 14px;
}

.mini-card-top {
  display: flex;
  justify-content: space-between;
  padding: 1px 3px 8px;
  color: #69869b;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feature-mini > button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 2px;
  color: #314f62;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.feature-mini > button span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #4e8bdf;
  font-size: 11px;
}

.floating-chip {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 8px 20px rgba(43, 59, 45, 0.1);
  backdrop-filter: blur(12px);
  font-size: 9px;
  font-weight: 800;
}

.floating-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6cb482;
  box-shadow: 0 0 0 3px rgba(108, 180, 130, 0.13);
}

.floating-chip b {
  color: #508a63;
}

.chip-one {
  top: 300px;
  right: 22px;
  transform: rotate(3deg);
}

.chip-two {
  bottom: 130px;
  left: 3px;
  transform: rotate(-3deg);
}

.stage-spark {
  position: absolute;
  z-index: 4;
  color: var(--coral);
  font-size: 26px;
  animation: float-soft 4s ease-in-out infinite;
}

.spark-a {
  top: 20px;
  right: 17px;
}

.spark-b {
  bottom: 97px;
  right: 60px;
  color: #8aa344;
  font-size: 17px;
  animation-delay: -1.6s;
}

.recent-section {
  padding: 25px 0 36px;
}

.section-label {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 14px;
}

.section-label > span {
  padding-bottom: 3px;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.section-label h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.recent-card {
  display: flex;
  min-width: 0;
  min-height: 72px;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.7);
  box-shadow: 0 5px 18px rgba(44, 58, 43, 0.04);
  cursor: pointer;
  text-align: left;
  transition: 0.18s ease;
}

.recent-card:hover {
  border-color: color-mix(in srgb, var(--recent-accent) 35%, transparent);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.recent-icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--recent-accent);
  font-size: 20px;
}

.recent-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.recent-copy small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.recent-copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-arrow {
  color: var(--muted);
  font-size: 13px;
}

.library-section {
  padding: 74px 0 86px;
  scroll-margin-top: 24px;
}

.library-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.library-heading h2 {
  margin: 11px 0 8px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(31px, 4vw, 47px);
  font-weight: 900;
  letter-spacing: -0.065em;
}

.library-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.library-count {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding-bottom: 7px;
  color: var(--muted);
}

.library-count strong {
  color: var(--ink);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 32px;
  font-weight: 900;
}

.library-count span {
  font-size: 9px;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 26px 0 18px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-button {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.58);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
  transition: 0.18s ease;
}

.filter-button span {
  display: grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  border-radius: 6px;
  background: rgba(40, 61, 48, 0.07);
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 8px;
}

.filter-button:hover {
  border-color: rgba(39, 61, 48, 0.22);
  color: var(--ink);
  background: var(--surface);
}

.filter-button.is-active {
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
  box-shadow: 0 7px 15px rgba(37, 59, 47, 0.16);
}

.filter-button.is-active span {
  color: var(--forest);
  background: var(--lime);
}

.view-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.sort-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

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

.game-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.8);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.game-card:not(.is-coming):hover {
  border-color: color-mix(in srgb, var(--card-accent) 38%, transparent);
  box-shadow: 0 22px 48px rgba(43, 56, 42, 0.13);
  transform: translateY(-6px);
}

.game-card.is-recent::before {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--card-accent), transparent 78%);
}

.game-card.is-coming {
  background: rgba(250, 249, 243, 0.66);
}

.card-hit-area {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.card-cover {
  position: relative;
  overflow: hidden;
  margin: 9px 9px 0;
  border-radius: 19px;
  background: var(--card-accent-soft);
}

.card-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(24, 39, 30, 0.16), transparent 35%);
  pointer-events: none;
}

.card-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 1.48;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game-card:hover .card-cover img {
  transform: scale(1.035);
}

.is-coming .card-cover img {
  filter: saturate(0.7);
  opacity: 0.82;
}

.card-status,
.card-version {
  position: absolute;
  z-index: 3;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.93);
  background: rgba(27, 48, 37, 0.6);
  backdrop-filter: blur(9px);
  font-size: 8px;
  font-weight: 800;
}

.card-status {
  left: 10px;
}

.card-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(217, 246, 111, 0.14);
}

.is-coming .card-status i {
  background: #c9d0c9;
}

.card-version {
  right: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Trebuchet MS", sans-serif;
}

.favorite-button {
  position: absolute;
  z-index: 4;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(27, 48, 37, 0.5);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: 0.18s ease;
}

.favorite-button:hover {
  background: rgba(27, 48, 37, 0.72);
  transform: scale(1.05);
}

.favorite-button.is-favorite {
  border-color: #ffd7cb;
  color: var(--coral);
  background: #fff7f2;
}

.favorite-button svg,
.player-tool svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.favorite-button.is-favorite svg,
.player-tool.is-favorite svg {
  fill: currentColor;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 17px 16px;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-english {
  display: block;
  margin-bottom: 4px;
  color: var(--card-accent);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.card-title-row h3 {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.card-glyph {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  border-radius: 11px;
  color: var(--card-accent);
  background: var(--card-accent-soft);
  font-size: 17px;
}

.card-body > p {
  min-height: 44px;
  margin: 11px 0 13px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-list span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.44);
  font-size: 8px;
  font-weight: 650;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.card-footer > span:first-child {
  color: var(--muted);
  font-size: 8px;
}

.play-link {
  position: relative;
  z-index: 3;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border-radius: 9px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  transition: 0.18s ease;
}

.play-link:hover {
  background: var(--card-accent);
}

.play-link span {
  font-size: 11px;
}

.coming-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7f897f;
  font-size: 9px;
  font-weight: 750;
}

.coming-label i {
  width: 15px;
  height: 1px;
  background: #b9c0b8;
}

.empty-state {
  padding: 60px 20px;
  border: 1px dashed rgba(40, 62, 48, 0.18);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.42);
  text-align: center;
}

.empty-illustration {
  position: relative;
  display: inline-flex;
  width: 84px;
  height: 54px;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  margin-bottom: 14px;
}

.empty-illustration i {
  width: 20px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-deep);
  transform: rotate(-8deg);
}

.empty-illustration i:nth-child(2) {
  height: 43px;
  background: var(--surface);
  transform: rotate(3deg);
}

.empty-illustration i:nth-child(3) {
  transform: rotate(11deg);
}

.empty-state h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.empty-state p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 10px;
}

.empty-state button {
  padding: 8px 13px;
  border-radius: 9px;
  color: #fff;
  background: var(--forest);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.about-section {
  padding: 20px 0 92px;
}

.about-card {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: 0.72fr 1.35fr 1fr;
  align-items: center;
  gap: 26px;
  padding: 35px;
  border-radius: 30px;
  color: #f5f4e9;
  background:
    radial-gradient(circle at 0 0, rgba(217, 246, 111, 0.14), transparent 19rem),
    linear-gradient(135deg, #2a4034, #1b2a23);
  box-shadow: 0 24px 55px rgba(27, 43, 34, 0.18);
}

.about-card::after {
  position: absolute;
  right: -60px;
  bottom: -130px;
  width: 250px;
  height: 250px;
  border: 1px dashed rgba(217, 246, 111, 0.22);
  border-radius: 50%;
  content: "";
}

.about-mark {
  position: relative;
  display: grid;
  width: 116px;
  height: 116px;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.055);
  transform: rotate(-5deg);
}

.about-mark i {
  border-radius: 10px;
  background: var(--lime);
  opacity: 0.88;
}

.about-mark i:nth-child(2),
.about-mark i:nth-child(3) {
  opacity: 0.35;
}

.about-copy .eyebrow {
  color: rgba(255, 255, 255, 0.46);
}

.about-copy h2 {
  margin: 9px 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.about-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1.85;
}

.about-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.about-facts div {
  display: flex;
  min-height: 83px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.about-facts strong {
  color: var(--lime);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 22px;
  font-weight: 900;
}

.about-facts span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 7px;
  line-height: 1.4;
}

.site-footer {
  display: flex;
  width: min(var(--content), calc(100% - 48px));
  min-height: 86px;
  align-items: center;
  gap: 22px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: "Trebuchet MS", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.brand-mark.small {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 8px;
  transform: scale(0.78);
  transform-origin: left center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  margin-left: auto;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--coral-deep);
}

/* 站内游戏播放层 */
.player-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 10px;
  background: rgba(22, 37, 29, 0.93);
  backdrop-filter: blur(14px);
  animation: layer-in 0.2s ease both;
}

.player-shell {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: #e8eadf;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.3);
  animation: player-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.player-shell:fullscreen {
  border: 0;
  border-radius: 0;
}

.player-header {
  display: grid;
  min-height: 64px;
  grid-template-columns: 1fr minmax(180px, auto) 1fr;
  align-items: center;
  gap: 14px;
  padding: 0 12px 0 15px;
  color: rgba(255, 255, 255, 0.9);
  background: #23372d;
}

.player-back {
  display: inline-flex;
  width: max-content;
  min-height: 36px;
  align-items: center;
  gap: 5px;
  padding: 0 11px 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  transition: 0.18s ease;
}

.player-back:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.player-back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.player-game-info {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.player-game-icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  border-radius: 10px;
  color: var(--forest);
  background: var(--player-accent, var(--lime));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.3);
  font-size: 17px;
}

.player-game-info > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.player-game-info strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-game-info small {
  overflow: hidden;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.43);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 5px;
}

.player-tool,
.player-close {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  text-decoration: none;
  transition: 0.18s ease;
}

.player-tool:hover,
.player-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.player-tool.is-favorite {
  color: var(--coral);
  background: rgba(255, 120, 90, 0.08);
}

.player-tool.is-active {
  color: var(--lime);
}

.player-close {
  margin-left: 3px;
  border-color: rgba(255, 120, 90, 0.2);
  color: #ffb5a3;
  background: rgba(255, 120, 90, 0.07);
}

.player-frame-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--paper);
}

.player-frame-wrap iframe {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper);
}

.game-loader {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.94), transparent 20rem),
    var(--paper);
}

.game-loader strong {
  margin-top: 9px;
  font-size: 13px;
}

.game-loader > span:last-child {
  color: var(--muted);
  font-size: 9px;
}

.loader-cube {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  animation: loader-hop 1.2s ease-in-out infinite;
}

.loader-cube i {
  position: absolute;
  display: block;
  border-radius: 4px;
}

.loader-cube i:first-child {
  top: 4px;
  left: 7px;
  width: 30px;
  height: 14px;
  background: var(--gold, #efbc5a);
  transform: skewY(-8deg);
}

.loader-cube i:nth-child(2) {
  top: 16px;
  left: 7px;
  width: 30px;
  height: 24px;
  border-radius: 4px 4px 8px 8px;
  background: linear-gradient(145deg, #dc8b59, #b86640);
}

.loader-cube i:nth-child(3) {
  top: 21px;
  left: 15px;
  width: 14px;
  height: 3px;
  background: rgba(255, 244, 220, 0.7);
}

.toast {
  position: fixed;
  z-index: 200;
  bottom: 24px;
  left: 50%;
  max-width: calc(100% - 30px);
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #fff;
  background: rgba(30, 49, 38, 0.92);
  box-shadow: 0 10px 30px rgba(17, 28, 21, 0.22);
  font-size: 10px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(8deg); }
}

@keyframes orbit-turn {
  to { transform: rotate(360deg); }
}

@keyframes layer-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes player-in {
  from { opacity: 0; transform: translateY(13px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes loader-hop {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-8px) rotate(2deg); }
  65% { transform: translateY(1px) rotate(-1deg); }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.8fr);
    gap: 25px;
    padding-right: 0;
    padding-left: 0;
  }

  .hero-stage {
    transform: scale(0.9);
    transform-origin: center right;
  }

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

  .about-card {
    grid-template-columns: 105px 1fr;
  }

  .about-facts {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .site-header {
    width: min(100% - 30px, 720px);
    grid-template-columns: 1fr auto;
    min-height: 76px;
  }

  .main-nav {
    display: none;
  }

  main {
    width: min(100% - 30px, 720px);
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 42px 0 52px;
  }

  .hero-copy {
    max-width: 650px;
  }

  .hero h1 {
    font-size: clamp(46px, 8vw, 64px);
  }

  .hero-stage {
    width: min(100%, 590px);
    min-height: 510px;
    margin: 0 auto;
    transform: scale(0.94);
    transform-origin: top center;
  }

  .feature-main {
    left: 5%;
  }

  .feature-mini {
    right: 2%;
  }

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

  .library-section {
    padding-top: 48px;
  }

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

  .game-card {
    border-radius: 23px;
  }

  .about-card {
    grid-template-columns: 1fr;
    padding: 27px;
  }

  .about-mark {
    width: 82px;
    height: 82px;
    padding: 10px;
    border-radius: 20px;
  }

  .about-copy h2 {
    font-size: 21px;
  }

  .about-facts {
    grid-column: auto;
  }

  .site-footer {
    width: min(100% - 30px, 720px);
  }

  .player-layer {
    padding: 0;
  }

  .player-shell {
    border: 0;
    border-radius: 0;
  }

  .player-header {
    min-height: 58px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 8px;
  }

  .player-back span {
    display: none;
  }

  .player-back {
    width: 35px;
    padding: 0;
    justify-content: center;
  }

  .player-game-info {
    justify-content: flex-start;
  }

  .player-game-icon {
    display: none;
  }

  .player-actions {
    gap: 3px;
  }

  .player-tool {
    width: 32px;
    height: 32px;
  }

  .player-tool:nth-of-type(3) {
    display: none;
  }

  .player-game-info small {
    max-width: 130px;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 20px);
    min-height: 68px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
    flex-basis: 37px;
    border-radius: 11px;
    transform: scale(0.88);
    transform-origin: left center;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .brand-copy small {
    font-size: 6px;
  }

  .header-status {
    padding: 7px 9px;
    font-size: 8px;
  }

  main {
    width: calc(100% - 20px);
  }

  .hero {
    min-height: auto;
    padding-top: 37px;
  }

  .hero h1 {
    margin-top: 16px;
    font-size: clamp(41px, 12vw, 54px);
    letter-spacing: -0.075em;
  }

  .hero-lead {
    font-size: 12px;
    line-height: 1.8;
  }

  .hero-actions {
    margin-top: 21px;
  }

  .button {
    min-height: 44px;
    flex: 1;
    padding: 0 12px;
    font-size: 10px;
  }

  .hero-search {
    margin-top: 17px;
  }

  .search-note {
    display: none;
  }

  .search-box {
    width: 100%;
  }

  .hero-stage {
    min-height: 388px;
    transform: none;
  }

  .hero-stage::before {
    top: 20px;
    right: -20px;
    width: 330px;
    height: 340px;
  }

  .feature-main {
    top: 27px;
    left: 10px;
    width: 76%;
  }

  .feature-mini {
    right: 10px;
    bottom: 15px;
    width: 168px;
  }

  .feature-meta > span {
    display: none;
  }

  .feature-meta > strong {
    font-size: 12px;
  }

  .feature-meta > button {
    padding: 0 8px;
    font-size: 8px;
  }

  .chip-one {
    top: 215px;
    right: 4px;
  }

  .chip-two {
    bottom: 84px;
    left: -2px;
  }

  .orbit-one {
    right: -125px;
  }

  .orbit-two {
    right: -25px;
  }

  .spark-a {
    right: 0;
  }

  .recent-section {
    padding-top: 25px;
  }

  .section-label {
    display: block;
  }

  .section-label > span {
    display: block;
    margin-bottom: 5px;
  }

  .library-section {
    padding: 42px 0 61px;
  }

  .library-heading {
    display: block;
  }

  .library-heading h2 {
    font-size: 32px;
  }

  .library-heading p {
    line-height: 1.7;
  }

  .library-count {
    display: none;
  }

  .library-toolbar {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 20px;
  }

  .view-note {
    display: none;
  }

  .filter-list {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .game-grid {
    gap: 12px;
  }

  .card-cover {
    margin: 7px 7px 0;
    border-radius: 17px;
  }

  .card-body {
    padding: 15px;
  }

  .card-title-row h3 {
    font-size: 19px;
  }

  .card-body > p {
    min-height: 0;
  }

  .about-section {
    padding-bottom: 63px;
  }

  .about-card {
    padding: 23px 19px;
    border-radius: 23px;
  }

  .about-mark {
    width: 69px;
    height: 69px;
  }

  .about-copy p {
    font-size: 10px;
  }

  .about-facts {
    gap: 5px;
  }

  .about-facts div {
    min-height: 72px;
  }

  .about-facts strong {
    font-size: 18px;
  }

  .site-footer {
    width: calc(100% - 20px);
    min-height: 74px;
    gap: 10px;
  }

  .site-footer p {
    display: none;
  }

  .player-header {
    padding-top: env(safe-area-inset-top);
    min-height: calc(56px + env(safe-area-inset-top));
  }

  .player-tool:nth-of-type(2),
  .player-tool:nth-of-type(3) {
    display: none;
  }

  .player-game-info strong {
    font-size: 12px;
  }

  .player-game-info small {
    max-width: 120px;
  }

  .toast {
    bottom: max(18px, env(safe-area-inset-bottom));
  }
}

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