/* ===== Tokens ===== */
:root {
  --bg: #0e0f1a;
  --bg-2: #131527;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0ff;
  --text-soft: #a9afc9;
  --text-dim: #767d99;
  --yellow: #ffd23f;
  --pink: #ff5d8f;
  --cyan: #59d8ff;
  --green: #6ee7a0;
  --grad: linear-gradient(100deg, #ffd23f 0%, #ff5d8f 50%, #59d8ff 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1120px;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 26px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 420px at 80% 0%, rgba(255, 93, 143, 0.16), transparent 70%),
    radial-gradient(600px 400px at 10% 15%, rgba(89, 216, 255, 0.12), transparent 70%),
    radial-gradient(900px 600px at 50% 100%, rgba(255, 210, 63, 0.07), transparent 75%);
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(14, 15, 26, 0.85);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.brand-dot {
  width: 11px; height: 11px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(255, 93, 143, 0.7);
}
.nav { display: flex; gap: 28px; font-size: 14.5px; color: var(--text-soft); }
.nav a { position: relative; padding: 4px 0; transition: color 0.2s ease; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: width 0.22s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  margin: 0 auto;
  background: var(--text);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: 72px 0 50px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin-top: 22px;
  max-width: 32em;
  font-size: 16.5px;
  color: var(--text-soft);
}
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #14152a;
  box-shadow: 0 12px 30px -12px rgba(255, 93, 143, 0.8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(255, 93, 143, 0.9); }
.btn-ghost {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  gap: 42px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats span { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }

/* Now playing card */
.now-playing {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-strong), rgba(255, 255, 255, 0.02));
  padding: 24px;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.8);
}
.np-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.np-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(110, 231, 160, 0.18);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { box-shadow: 0 0 0 3px rgba(110, 231, 160, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(110, 231, 160, 0.04); }
}
.np-game { display: flex; gap: 16px; align-items: center; }
.np-cover {
  width: 78px; height: 78px;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.np-cover img { width: 100%; height: 100%; object-fit: cover; }
.np-info h3 { font-size: 17px; font-weight: 700; }
.np-info p { font-size: 13px; color: var(--text-soft); margin-top: 2px; }
.np-bar {
  margin-top: 10px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.np-bar span {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--grad);
}
.np-info small { font-size: 11.5px; color: var(--text-dim); }
.np-meta-row {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section-tint {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025) 20%, rgba(255, 255, 255, 0.025) 80%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.section-head h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 750; }
.section-head p { margin-top: 8px; font-size: 14px; color: var(--text-soft); }
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.section-label .rule { flex: 1; height: 1px; background: var(--border); }

/* Game cards */
.playing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.game-card {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 210, 63, 0.4);
  background: var(--surface-strong);
}
.platform {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.platform.pc { background: rgba(89, 216, 255, 0.15); color: var(--cyan); }
.platform.switch { background: rgba(255, 93, 143, 0.15); color: var(--pink); }
.platform.ps { background: rgba(110, 231, 160, 0.15); color: var(--green); }
.game-card h3 { font-size: 17px; font-weight: 700; }
.game-desc { margin-top: 10px; font-size: 14px; color: var(--text-soft); }
.game-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.score {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--yellow);
}
.hours { font-size: 12.5px; color: var(--text-dim); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover { border-color: var(--text-soft); color: var(--text); }
.chip.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* Review list */
.review-list { border-top: 1px solid var(--border); }
.review-item { border-bottom: 1px solid var(--border); }
.review-item.is-hidden { display: none; }
.review-row {
  display: grid;
  grid-template-columns: 78px 1fr auto 24px;
  align-items: center;
  gap: 22px;
  padding: 24px 4px;
  transition: background 0.2s ease, padding-left 0.25s ease;
}
.review-row:hover { background: rgba(255, 255, 255, 0.03); padding-left: 12px; }
.review-date {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.review-main h3 { font-size: 20px; font-weight: 700; transition: color 0.2s ease; }
.review-row:hover .review-main h3 { color: var(--yellow); }
.review-main p { margin-top: 5px; font-size: 14px; color: var(--text-soft); }
.review-tag {
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}
.review-arrow {
  color: var(--text-dim);
  font-size: 17px;
  transition: transform 0.25s ease, color 0.2s ease;
}
.review-row:hover .review-arrow { transform: translateX(5px); color: var(--yellow); }
.empty-state { padding: 36px 0; text-align: center; color: var(--text-dim); font-size: 14px; }

/* Library */
.library {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.lib-row {
  display: grid;
  grid-template-columns: 110px 1fr auto 110px;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  transition: background 0.2s ease;
}
.lib-row:last-child { border-bottom: 0; }
.lib-row:hover { background: rgba(255, 255, 255, 0.03); }
.lib-date { font-family: var(--mono); font-size: 13px; color: var(--text-dim); }
.lib-name { font-weight: 600; }
.lib-platform { font-size: 12.5px; color: var(--text-dim); }
.lib-rating { color: var(--yellow); font-size: 13px; letter-spacing: 2px; text-align: right; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}
.about-copy h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 750; margin-bottom: 20px; }
.about-copy p { color: var(--text-soft); font-size: 15px; margin-bottom: 14px; max-width: 40em; }
.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.about-facts h4 {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
  font-weight: 600;
}
.about-facts li { font-size: 14px; color: var(--text-soft); padding: 2px 0; }
.about-card {
  padding: 28px 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}
.monogram {
  width: 76px; height: 76px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 30px;
  font-weight: 700;
  color: #14152a;
  background: var(--grad);
  box-shadow: 0 14px 30px -12px rgba(255, 93, 143, 0.7);
}
.about-card-name { font-size: 18px; font-weight: 700; }
.about-card-role { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }
.social-list {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 9px;
  font-size: 13.5px;
}
.social-list a { color: var(--text-soft); transition: color 0.2s ease; }
.social-list a:hover { color: var(--yellow); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 30px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-brand { font-weight: 600; color: var(--text); }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a:hover { color: var(--yellow); }

/* ICP filing link */
.footer-beian {
  color: var(--text-dim);
  font-size: 12.5px;
  transition: color 0.2s ease;
}
.footer-beian:hover { color: var(--text-soft); }

/* ===== Article page ===== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--grad);
  z-index: 60;
}
.article-header { padding: 56px 0 30px; border-bottom: 1px solid var(--border); }
.article-wrap { max-width: 700px; margin: 0 auto; padding: 0 26px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 26px;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--yellow); }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--text-dim); }
.article-title { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; margin-top: 12px; line-height: 1.3; }
.article-body {
  padding: 36px 0 20px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--text-soft);
}
.article-body > * + * { margin-top: 22px; }
.article-body h2 { color: var(--text); font-size: 22px; margin-top: 40px; }
.article-body blockquote {
  margin: 30px 0;
  padding: 6px 0 6px 22px;
  border-left: 2px solid var(--yellow);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.article-body a { color: var(--cyan); }
.article-body strong { color: var(--text); }
.article-end {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}
.article-end a { color: var(--yellow); }

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .np-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .now-playing { max-width: 440px; }
  .playing-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 700px) {
  .container { padding: 0 20px; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(14, 15, 26, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 6px 20px 14px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }

  .hero { padding: 48px 0 30px; }
  .hero-stats { gap: 26px; }
  .hero-stats strong { font-size: 23px; }
  .playing-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }

  .review-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "date tag" "main main" "arrow arrow";
    gap: 6px 12px;
    padding: 20px 2px;
  }
  .review-date { grid-area: date; }
  .review-tag { grid-area: tag; }
  .review-main { grid-area: main; }
  .review-arrow { display: none; }
  .review-main h3 { font-size: 18px; }

  .lib-row { grid-template-columns: 84px 1fr auto; }
  .lib-rating { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
