/* ============================================================
   玩太佳爷 · wantaijiaye.fun
   Design System — Playful Modern + Bento + Soft Glass
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg: #FFF8F0;
  --bg-2: #FFF1E0;
  --surface: #FFFFFF;
  --surface-2: #FFFAF3;
  --line: #FFE0C7;
  --line-strong: #F5C9A6;

  /* Text */
  --ink: #1B1B2F;
  --ink-2: #4A4A66;
  --ink-3: #7A7A96;
  --ink-on-dark: #FFF8F0;

  /* Brand */
  --coral: #FF6B47;
  --coral-d: #E54A28;
  --coral-l: #FFD9CC;
  --mint: #2BC4B4;
  --mint-d: #16A899;
  --mint-l: #C9F1EC;
  --sun: #FFC93C;
  --sun-l: #FFEFB8;

  /* Category colors */
  --c-purple: #6C5CE7;
  --c-purple-l: #E5DEFF;
  --c-green: #2EAE6E;
  --c-green-l: #C8EED9;
  --c-orange: #FF8A1F;
  --c-orange-l: #FFE0BD;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 40px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(27,27,47,.05);
  --shadow-md: 0 12px 28px rgba(27,27,47,.07);
  --shadow-lg: 0 24px 60px rgba(27,27,47,.10);
  --shadow-coral: 0 16px 36px rgba(255,107,71,.32);
  --shadow-mint: 0 16px 36px rgba(43,196,180,.28);

  /* Type */
  --font-sans: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Container */
  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
h1,h2,h3,h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; }
p { margin: 0; }
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--coral) 60%, white);
  outline-offset: 3px;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- BG decoration ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  animation: floatY 18s ease-in-out infinite alternate;
}
.blob-1 { width: 520px; height: 520px; background: radial-gradient(circle, #FFCFB8 0%, rgba(255,207,184,0) 70%); top: -120px; left: -160px; }
.blob-2 { width: 480px; height: 480px; background: radial-gradient(circle, #C9F1EC 0%, rgba(201,241,236,0) 70%); top: 360px; right: -180px; animation-delay: -6s; }
.blob-3 { width: 420px; height: 420px; background: radial-gradient(circle, #FFEFB8 0%, rgba(255,239,184,0) 70%); bottom: -100px; left: 30%; animation-delay: -12s; }
.grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(27,27,47,.05) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .35;
  mix-blend-mode: multiply;
}
@keyframes floatY {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-40px,0) scale(1.05); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; letter-spacing: .01em;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
  user-select: none;
  font-size: 15px;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }

.btn-primary {
  background: var(--coral);
  color: var(--ink-on-dark);
  box-shadow: var(--shadow-coral);
}
.btn-primary:hover { background: var(--coral-d); transform: translateY(-2px); box-shadow: 0 22px 44px rgba(255,107,71,.4); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--line-strong); transform: translateY(-2px); }

.btn .btn-arrow { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.icon-btn:hover { background: var(--surface); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center;
  gap: 24px;
  padding: 14px var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
  transition: backdrop-filter .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled {
  background: rgba(255,248,240,.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(27,27,47,.05), 0 12px 30px rgba(27,27,47,.05);
  border-radius: 0;
  margin: 0 auto;
  max-width: none;
  padding-left: max(var(--pad-x), 24px);
  padding-right: max(var(--pad-x), 24px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--coral); }
.brand-mark { width: 36px; height: 36px; display: inline-flex; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.brand-text em { color: var(--ink-3); font-style: normal; font-size: 11px; letter-spacing: .04em; margin-top: 3px; }

.nav-links {
  display: flex; gap: 6px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-2);
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--surface); color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.nav-actions .nav-toggle { display: none; }
.nav-toggle { position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.drawer {
  position: fixed; top: 70px; right: 16px; left: 16px; z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
}
.drawer a {
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-weight: 600;
  color: var(--ink-2);
}
.drawer a:hover { background: var(--bg-2); color: var(--ink); }
.drawer .btn { margin-top: 8px; justify-content: center; }
.drawer.open { display: flex; }

/* ---------- Section helpers ---------- */
section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) var(--pad-x);
  position: relative;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-2); margin-top: 14px; font-size: 17px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px; font-weight: 700; letter-spacing: .05em;
  border-radius: 999px;
  border: 1px solid var(--line);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-l); }

.hl-coral { color: var(--coral); }
.hl-mint { color: var(--mint-d); }

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: -0.02em;
  margin: 18px 0 18px;
}
.hero .lead { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 36px; }
.cta-row.center { justify-content: center; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-top: 8px;
  max-width: 580px;
}
.hero-stats li {
  background: rgba(255,255,255,.6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-stats strong { display: block; font-size: 22px; font-weight: 800; color: var(--ink); }
.hero-stats span { font-size: 12px; color: var(--ink-3); margin-top: 2px; display: block; }

/* HERO BENTO ART */
.hero-bento {
  position: relative;
  aspect-ratio: 1 / 1.05;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 14px;
}
.bento-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  transform-origin: center;
  animation: floatBento 9s ease-in-out infinite alternate;
}
.bento-card.bc-1 { grid-column: 1/4; grid-row: 1/4; transform: rotate(-3deg); animation-delay: -1s; }
.bento-card.bc-2 { grid-column: 4/7; grid-row: 1/3; transform: rotate(2deg); animation-delay: -3s; }
.bento-card.bc-3 { grid-column: 4/7; grid-row: 3/5; transform: rotate(-2deg); animation-delay: -5s; }
.bento-card.bc-4 { grid-column: 1/3; grid-row: 4/7; transform: rotate(3deg); animation-delay: -2s; }
.bento-card.bc-5 { grid-column: 3/7; grid-row: 5/7; transform: rotate(-1deg); animation-delay: -4s; }

@keyframes floatBento {
  0% { transform: translateY(0) rotate(var(--r,0deg)); }
  100% { transform: translateY(-10px) rotate(var(--r,0deg)); }
}
.bento-card .bc-shape {
  height: 65%;
  position: relative;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-2));
  overflow: hidden;
}
.bento-card .bc-meta {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 14px;
  font-size: 13px;
}
.bento-card .bc-meta b { color: var(--ink); font-weight: 700; }

/* TAG */
.tag {
  display: inline-flex; align-items: center;
  width: max-content;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .04em;
}
.tag-purple { background: var(--c-purple-l); color: var(--c-purple); }
.tag-green  { background: var(--c-green-l);  color: var(--c-green); }
.tag-orange { background: var(--c-orange-l); color: var(--c-orange); }

/* sudoku card art */
.sudoku { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 14px; background: linear-gradient(135deg,#EDE7FF,#F8F4FF); }
.sudoku span { background: white; border-radius: 6px; box-shadow: inset 0 0 0 1px #DCD2FF; }
.sudoku span:nth-child(1)::before { content: "5"; }
.sudoku span:nth-child(3)::before { content: "8"; }
.sudoku span:nth-child(5)::before { content: "2"; }
.sudoku span:nth-child(7)::before { content: "9"; }
.sudoku span:nth-child(9)::before { content: "3"; }
.sudoku span::before {
  display:flex; align-items:center; justify-content:center; height:100%;
  font-weight: 700; color: var(--c-purple); font-size: 14px;
}

/* farm card art */
.farm { background: linear-gradient(180deg,#D6F2DE 0%,#FFF8E0 100%); }
.farm .sun { position: absolute; top: 14%; right: 14%; width: 28px; height: 28px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 6px rgba(255,201,60,.3); }
.farm .hill { position: absolute; bottom: 0; border-radius: 60% 60% 0 0 / 100% 100% 0 0; }
.farm .h1 { left: -10%; right: 30%; height: 60%; background: #2EAE6E; }
.farm .h2 { left: 35%; right: -10%; height: 50%; background: #6BCB77; }
.farm .tree { position: absolute; bottom: 18%; width: 16px; height: 24px; background: #1B7A4D; border-radius: 50% 50% 8px 8px; }
.farm .t1 { left: 18%; }
.farm .t2 { left: 65%; bottom: 28%; }

/* runner card art */
.runner { background: linear-gradient(180deg,#FFE5C7,#FFF7EC); }
.runner .track { position: absolute; bottom: 22%; left: 0; right: 0; height: 4px; background: var(--c-orange); border-radius: 4px; }
.runner .ball { position: absolute; bottom: 22%; left: 18%; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); box-shadow: 0 6px 12px rgba(255,107,71,.4); transform: translateY(-50%); }
.runner .block { position: absolute; bottom: 22%; width: 12px; height: 22px; background: var(--ink); border-radius: 3px; transform: translateY(-100%); }
.runner .b1 { right: 35%; }
.runner .b2 { right: 18%; height: 30px; }

/* match card art */
.match { background: linear-gradient(135deg,#F0E9FF,#FBF3FF); display: grid; grid-template-columns: repeat(2,1fr); padding: 16px; gap: 8px; }
.match .ge { border-radius: 10px; }
.match .ga { background: var(--c-purple); }
.match .gb { background: var(--coral); }
.match .gc { background: var(--mint); }
.match .gd { background: var(--sun); }

/* cafe card art */
.cafe { background: linear-gradient(180deg,#FFE4D5,#FFF8F0); }
.cafe .cup {
  position: absolute; bottom: 20%; left: 50%; transform: translateX(-50%);
  width: 40%; height: 40%;
  background: white; border-radius: 8px 8px 24px 24px;
  border: 3px solid var(--coral);
}
.cafe .cup::after { content: ""; position: absolute; right: -16px; top: 8px; width: 14px; height: 18px; border: 3px solid var(--coral); border-left: 0; border-radius: 0 8px 8px 0; }
.cafe .steam { position: absolute; bottom: 65%; width: 5px; height: 22px; background: rgba(122,122,150,.4); border-radius: 3px; animation: steam 2.5s ease-in-out infinite; }
.cafe .s1 { left: 38%; animation-delay: 0s; }
.cafe .s2 { left: 50%; animation-delay: -.6s; transform: translateX(-50%); }
.cafe .s3 { left: 62%; animation-delay: -1.2s; }
@keyframes steam {
  0% { transform: translateY(0) scale(1); opacity: .6; }
  100% { transform: translateY(-12px) scale(1.05); opacity: 0; }
}

/* float labels */
.float-tag {
  position: absolute;
  background: var(--ink);
  color: var(--ink-on-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .04em;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.float-tag.ft-1 { top: 4%; right: -2%; transform: rotate(8deg); background: var(--coral); }
.float-tag.ft-2 { bottom: 6%; left: -4%; transform: rotate(-6deg); background: var(--mint-d); }

/* ---------- Categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cat-card {
  --c: var(--c-purple);
  --cl: var(--c-purple-l);
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 28px 28px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: var(--shadow-sm);
}
.cat-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(140% 80% at 100% 0%, var(--cl) 0%, transparent 60%);
  pointer-events: none; opacity: .9;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--c) 30%, var(--line));
}
.cat-card.cat-purple { --c: var(--c-purple); --cl: var(--c-purple-l); }
.cat-card.cat-green  { --c: var(--c-green);  --cl: var(--c-green-l); }
.cat-card.cat-orange { --c: var(--c-orange); --cl: var(--c-orange-l); }

.cat-icon {
  position: relative;
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: var(--cl);
  color: var(--c);
  margin-bottom: 22px;
}
.cat-icon svg { width: 32px; height: 32px; }
.cat-card h3 { font-size: 26px; position: relative; }
.cat-card > p { color: var(--ink-2); margin: 12px 0 18px; font-size: 15px; position: relative; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; position: relative; }
.chip-row li {
  padding: 6px 12px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--ink-2);
}
.cat-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--c);
  position: relative;
  transition: gap .2s ease;
}
.cat-link svg { width: 16px; height: 16px; }
.cat-link:hover { gap: 10px; }

/* ---------- Featured Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.bento-tile {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  color: var(--ink);
}
.bento-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tile-hero { grid-column: span 2; grid-row: span 2; }
.tile-md { grid-column: span 2; grid-row: span 1; flex-direction: row; }
.tile-md .tile-art { flex: 1; }
.tile-md .tile-meta { flex: 1; padding: 18px 20px; }
.tile-sm { grid-column: span 1; grid-row: span 1; }

.tile-art { position: relative; flex: 1.2; overflow: hidden; }
.tile-meta { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.tile-meta h3 { font-size: 17px; font-weight: 800; }
.tile-meta p { color: var(--ink-2); font-size: 13.5px; }
.tile-hero .tile-meta { padding: 22px 24px 24px; gap: 8px; }
.tile-hero .tile-meta h3 { font-size: 28px; }
.play-btn {
  margin-top: 6px; width: max-content;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--ink-on-dark);
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
.bento-tile:hover .play-btn { background: var(--coral); transform: translateY(-1px); }

/* tile arts */
.art-blocks {
  background: linear-gradient(135deg,#6C5CE7 0%,#8E7AF9 100%);
  display: grid; grid-template-columns: repeat(4,1fr); grid-template-rows: repeat(2,1fr); gap: 8px; padding: 24px;
}
.art-blocks .b { border-radius: 10px; background: rgba(255,255,255,.18); }
.art-blocks .b1 { background: var(--coral); }
.art-blocks .b3 { background: var(--sun); }
.art-blocks .b5 { background: var(--mint); }
.art-blocks .b8 { background: white; }

.art-cafe { background: linear-gradient(180deg,#FFC9A4,#FFE0BD); position: relative; }
.art-cafe .cup { position: absolute; bottom: 12%; left: 25%; width: 50%; height: 55%; background: white; border-radius: 8px 8px 24px 24px; border: 3px solid var(--coral); }
.art-cafe .cup::after { content: ""; position: absolute; right: -16px; top: 10px; width: 16px; height: 22px; border: 3px solid var(--coral); border-left: 0; border-radius: 0 8px 8px 0; }
.art-cafe .small { width: 22%; height: 28%; left: 5%; bottom: 10%; }
.art-cafe .steam { position: absolute; bottom: 70%; width: 5px; height: 22px; background: rgba(255,255,255,.7); border-radius: 3px; animation: steam 2.5s ease-in-out infinite; }
.art-cafe .s1 { left: 35%; }
.art-cafe .s2 { left: 50%; animation-delay: -.6s; }
.art-cafe .s3 { left: 65%; animation-delay: -1.2s; }

.art-runner { background: linear-gradient(180deg,#FFD0A8,#FFEED9); position: relative; }
.art-runner .track { position: absolute; bottom: 28%; left: 0; right: 0; height: 5px; background: var(--c-orange); }
.art-runner .ball { position: absolute; bottom: 28%; left: 18%; width: 28px; height: 28px; border-radius: 50%; background: var(--coral); box-shadow: 0 6px 12px rgba(255,107,71,.4); transform: translateY(-50%); animation: bounce 1.6s ease-in-out infinite; }
.art-runner .block { position: absolute; bottom: 28%; width: 14px; background: var(--ink); border-radius: 3px; transform: translateY(-100%); }
.art-runner .b1 { right: 35%; height: 28px; }
.art-runner .b2 { right: 18%; height: 40px; }
@keyframes bounce {
  0%,100% { transform: translateY(-50%); }
  50% { transform: translateY(-90%); }
}

.art-sudoku {
  background: linear-gradient(135deg,#EDE7FF,#F8F4FF);
  display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; padding: 22px;
}
.art-sudoku span { background: white; border-radius: 8px; box-shadow: inset 0 0 0 1px #DCD2FF; display:flex; align-items:center; justify-content:center; font-weight: 700; color: var(--c-purple); font-size: 18px; }
.art-sudoku span:nth-child(1)::after { content: "5"; }
.art-sudoku span:nth-child(3)::after { content: "8"; }
.art-sudoku span:nth-child(5)::after { content: "2"; }
.art-sudoku span:nth-child(7)::after { content: "9"; }
.art-sudoku span:nth-child(9)::after { content: "3"; }

.art-words {
  background: linear-gradient(135deg,#F5EAFF,#FBF3FF);
  position: relative;
}
.art-words i {
  position: absolute;
  font-style: normal; font-weight: 800;
  font-size: 36px;
  color: var(--c-purple);
  font-family: "PingFang SC","Microsoft YaHei","Hiragino Sans GB",sans-serif;
}
.art-words .w1 { top: 18%; left: 18%; }
.art-words .w2 { top: 18%; right: 18%; color: var(--coral); }
.art-words .w3 { bottom: 18%; left: 18%; color: var(--mint-d); }
.art-words .w4 { bottom: 18%; right: 18%; color: var(--sun); transform: rotate(-8deg); }

.art-farm { background: linear-gradient(180deg,#D9F2DF,#FFF8E0); position: relative; overflow: hidden; }
.art-farm .sun { position: absolute; top: 18%; right: 14%; width: 26px; height: 26px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 6px rgba(255,201,60,.3); }
.art-farm .hill { position: absolute; bottom: 0; border-radius: 60% 60% 0 0 / 100% 100% 0 0; }
.art-farm .h1 { left: -15%; right: 30%; height: 60%; background: #2EAE6E; }
.art-farm .h2 { left: 30%; right: -15%; height: 50%; background: #6BCB77; }
.art-farm .tree { position: absolute; bottom: 22%; width: 14px; height: 22px; background: #1B7A4D; border-radius: 50% 50% 6px 6px; }
.art-farm .t1 { left: 22%; }
.art-farm .t2 { left: 60%; bottom: 32%; }

.art-jump { background: linear-gradient(180deg,#FFD993,#FFEDC4); position: relative; }
.art-jump .bird { position: absolute; top: 35%; left: 35%; width: 26px; height: 22px; background: var(--sun); border-radius: 60% 50% 70% 40%; box-shadow: 0 4px 8px rgba(255,138,31,.3); }
.art-jump .bird::after { content: ""; position: absolute; top: 5px; right: -3px; width: 8px; height: 8px; background: var(--c-orange); border-radius: 50% 50% 50% 0; }
.art-jump .pipe { position: absolute; width: 18px; background: var(--c-green); border-radius: 4px 4px 0 0; }
.art-jump .p1 { right: 25%; bottom: 0; height: 35%; }
.art-jump .p2 { right: 18%; top: 0; height: 30%; transform: scaleY(-1); }

/* ---------- Why ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  margin-bottom: 18px;
}
.why-icon svg { width: 30px; height: 30px; }
.icon-coral  { background: var(--coral-l); color: var(--coral-d); }
.icon-purple { background: var(--c-purple-l); color: var(--c-purple); }
.icon-mint   { background: var(--mint-l); color: var(--mint-d); }
.icon-orange { background: var(--c-orange-l); color: var(--c-orange); }
.why-card h3 { font-size: 19px; }
.why-card p { color: var(--ink-2); font-size: 14.5px; margin-top: 10px; }

/* ---------- Library ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 32px;
}
.filter {
  padding: 10px 20px;
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700; font-size: 14px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.filter:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.filter.active {
  background: var(--ink);
  color: var(--ink-on-dark);
  border-color: var(--ink);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, opacity .3s ease;
  display: flex; flex-direction: column;
  color: inherit;
}
.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.game-card.hidden { display: none; }
.game-thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: "PingFang SC","Microsoft YaHei","Hiragino Sans GB",sans-serif;
  font-weight: 800;
  color: white;
  font-size: 28px;
  text-shadow: 0 4px 16px rgba(0,0,0,.18);
  letter-spacing: .04em;
}
.game-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.35) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,.12) 0%, transparent 40%);
  pointer-events: none;
}
.game-info { padding: 14px 16px 18px; }
.game-info h4 { font-size: 16px; font-weight: 700; }
.game-info .row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-3);
}
.rating { display: inline-flex; align-items: center; gap: 4px; color: var(--coral); font-weight: 700; }
.rating svg { width: 12px; height: 12px; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
  padding-top: 0;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 18px;
}
.stat b { display: block; font-size: clamp(36px, 4vw, 56px); font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stat sup { font-size: .55em; color: var(--coral); margin-left: 2px; vertical-align: super; }
.stat span { color: var(--ink-2); font-weight: 600; font-size: 14px; }

/* ---------- Final CTA ---------- */
.final-cta { padding-top: 0; }
.final-card {
  background: linear-gradient(135deg, #1B1B2F 0%, #2D1F4E 100%);
  border-radius: var(--r-2xl);
  padding: clamp(48px, 6vw, 80px);
  text-align: center;
  color: var(--ink-on-dark);
  position: relative;
  overflow: hidden;
}
.final-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 0% 100%, rgba(255,107,71,.45) 0%, transparent 60%),
    radial-gradient(50% 50% at 100% 0%, rgba(43,196,180,.40) 0%, transparent 60%);
  pointer-events: none;
}
.final-card .eyebrow { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.85); }
.final-card h2 { font-size: clamp(32px, 5vw, 56px); position: relative; }
.final-card h2 .hl-coral { color: #FFB39A; }
.final-card p { color: rgba(255,255,255,.78); margin-top: 16px; font-size: 17px; position: relative; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 80px auto 0;
  padding: 64px var(--pad-x) 32px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px 30px;
  margin-bottom: 40px;
}
.foot-brand p { color: var(--ink-2); margin-top: 16px; font-size: 14px; max-width: 320px; }
.foot-col h4 { font-size: 13px; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 14px; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.foot-col a:hover { color: var(--coral); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--ink-3); font-size: 13px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-bento { max-width: 520px; margin-inline: auto; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .tile-hero { grid-column: span 3; grid-row: span 2; }
  .tile-md { grid-column: span 3; }
  .tile-sm { grid-column: span 1; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-actions .nav-toggle { display: inline-flex; }
  .nav-actions .icon-btn[aria-label="搜索游戏"] { display: none; }
  .hero h1 { font-size: 40px; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .tile-hero { grid-column: span 2; grid-row: span 2; }
  .tile-md { grid-column: span 2; flex-direction: column; }
  .tile-md .tile-art { width: 100%; min-height: 140px; }
  .tile-sm { grid-column: span 1; }
  .why-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .final-card { padding: 48px 28px; }
  .float-tag.ft-1 { right: 4%; }
  .float-tag.ft-2 { left: 4%; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 34px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-thumb { aspect-ratio: 16 / 9; }
}
