/* MopCat WeChat Mini-Game Website — Creamy Vinyl Studio (EN / ZH) */
:root {
  --bg-top: #fbf8f1;
  --bg-mid: #f4eee4;
  --porcelain: #fffdf9;
  --porcelain-mid: #faf5ed;
  --porcelain-shade: #efe7da;
  --border: #d8cab6;
  --border-soft: #e9e0d2;
  --well: #ebe3d6;
  --ink: #4a3b32;
  --ink-strong: #332720;
  --ink-muted: #7c6b5d;
  --coral-top: #fba298;
  --coral: #f3867c;
  --coral-bot: #d8645a;
  --mint-bot: #479f84;
  --wx-green: #07c160;
  --shadow: 0 18px 42px rgba(92, 74, 56, 0.10), 0 4px 12px rgba(92, 74, 56, 0.05);
  --font-body: "PingFang SC", "Hiragino Sans GB", "HarmonyOS Sans SC", "SF Pro Rounded", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-num: "SF Pro Rounded", "DIN Alternate", "Avenir Next", "PingFang SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-top);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
img[data-lazy]:not([src]), img[data-desktop-src]:not([src]) { visibility: hidden; }
img.shot:not([src]) { display: none; }
a, button { font-family: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* Header */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color .22s ease, box-shadow .22s ease, backdrop-filter .22s ease;
}
.top.solid {
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(84, 62, 42, 0.08);
}
.top-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  color: var(--ink-strong);
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(176, 120, 28, 0.22);
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
  padding: 7px 14px;
  border-radius: 999px;
  transition: background-color .16s ease, color .16s ease;
}
.nav a:hover { background: rgba(235, 226, 212, 0.72); color: var(--ink-strong); }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  border: 1.5px solid var(--border);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink-strong);
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(92, 74, 56, 0.08);
  transition: transform .15s ease, border-color .15s ease;
}
.lang:hover { transform: translateY(-1px); border-color: var(--coral); }
.lang svg { width: 16px; height: 16px; fill: var(--ink-muted); flex-shrink: 0; }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 88px;
  background:
    radial-gradient(880px 520px at 18% 12%, rgba(255, 252, 240, 0.98), rgba(255, 252, 240, 0) 64%),
    radial-gradient(660px 520px at 84% 28%, rgba(255, 224, 174, 0.42), rgba(255, 224, 174, 0) 62%),
    linear-gradient(180deg, #fbf7ee 0%, #f3eadc 58%, #eadfcd 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 2;
}
.hero-card {
  background: rgba(255, 253, 249, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(216, 202, 182, 0.88);
  border-radius: 32px;
  padding: 32px 30px 26px;
  box-shadow: inset 0 2px 0 #fff, var(--shadow);
}
.hero-logo {
  width: min(340px, 86%);
  margin-bottom: 10px;
  filter: drop-shadow(0 10px 20px rgba(105, 78, 56, 0.14));
}
.hero-tag {
  font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 900;
  color: var(--ink-strong);
  margin-bottom: 20px;
  line-height: 1.3;
  text-wrap: balance;
}
.hero-tag em { font-style: normal; color: #d85a50; }

.play-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px 13px 13px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffefb 0%, #f6efe4 100%);
  border: 1.5px solid var(--border);
  box-shadow: inset 0 2px 0 #fff, 0 5px 0 #d1c1ab, 0 14px 28px rgba(92, 74, 56, 0.12);
  text-decoration: none;
  margin-bottom: 16px;
  transition: transform .16s cubic-bezier(.22, 1, .36, 1), box-shadow .16s ease;
}
.play-card:hover { transform: translateY(-2px); box-shadow: inset 0 2px 0 #fff, 0 7px 0 #d1c1ab, 0 18px 32px rgba(92, 74, 56, 0.16); }
.play-card:active { transform: translateY(3px); box-shadow: inset 0 1px 0 #fff, 0 2px 0 #d1c1ab; }
.play-qr {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 6px 14px rgba(78, 60, 44, 0.12);
  flex-shrink: 0;
}
.play-wx-badge {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--wx-green);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(7, 193, 96, 0.28);
}
.play-wx-badge svg { width: 25px; height: 25px; fill: #fff; }
.play-text b { display: block; font-size: 17px; font-weight: 900; color: var(--ink-strong); line-height: 1.3; }
.play-text span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-muted); margin-top: 3px; }
.play-text .m { display: none; }
.facts { font-size: 13.5px; font-weight: 700; color: var(--ink-muted); }

/* Hero Right Stage */
.hero-art {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-hero {
  width: 238px;
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(180deg, #fffdf9 0%, #e9dfd0 100%);
  border: 2px solid var(--border);
  box-shadow: inset 0 2px 0 #fff, 0 26px 52px rgba(78, 60, 44, 0.22);
  transform: rotate(5deg) translateX(46px) translateY(-6px);
  position: relative;
  z-index: 2;
}
.phone-screen {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 480 / 1039;
  background: #f5efe6;
}
.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .55s ease;
}
.phone-screen img.on { opacity: 1; }
.hero-diorama {
  position: absolute;
  left: -6px;
  bottom: 4px;
  width: min(320px, 62%);
  z-index: 3;
  filter: drop-shadow(0 20px 30px rgba(78, 60, 44, 0.22));
  animation: bob 5.4s ease-in-out infinite;
}
.fl { position: absolute; pointer-events: none; z-index: 1; filter: drop-shadow(0 8px 12px rgba(78, 60, 44, 0.16)); }
.fl0 { width: 40px; top: 14px; left: 28px; animation: driftA 6.2s ease-in-out infinite; }
.fl1 { width: 34px; top: 34px; right: 16px; animation: driftB 5.8s ease-in-out infinite; }
.fl2 { width: 36px; bottom: 24px; right: 20px; animation: driftA 6.8s .5s ease-in-out infinite; }
.fl3 { width: 22px; top: 84px; left: 104px; animation: twinkle 3.2s ease-in-out infinite; }
.motion-paused * { animation-play-state: paused !important; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 50px; fill: var(--bg-top); pointer-events: none; }

/* Sections */
.sec { padding: 68px 0; scroll-margin-top: 64px; }
.head { text-align: center; max-width: 600px; margin: 0 auto 32px; }
.head h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 900; color: var(--ink-strong); line-height: 1.22; margin-bottom: 8px; }
.head p { font-size: 15px; color: var(--ink-muted); text-wrap: balance; }

/* Section 1: Try Mini Peel Board */
.try { background: var(--bg-top); }
.try-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}
.try-copy h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 900; color: var(--ink-strong); margin-bottom: 6px; }
.try-copy > p { font-size: 15.5px; color: var(--ink-muted); margin-bottom: 22px; }
.how { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.how li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--porcelain);
  border: 1.5px solid var(--border-soft);
  box-shadow: inset 0 1.5px 0 #fff, 0 8px 18px rgba(92, 74, 56, 0.06);
}
.how-n {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--coral-top), var(--coral-bot));
  color: #fff;
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.how li:nth-child(2) .how-n { background: linear-gradient(180deg, #ffe07e, #e4a82a); }
.how li:nth-child(3) .how-n { background: linear-gradient(180deg, #8adbc1, #4ea98e); }
.how b { display: block; font-size: 15px; color: var(--ink-strong); }
.how div span { display: block; font-size: 13.5px; color: var(--ink-muted); }

.demo {
  background: linear-gradient(180deg, var(--porcelain) 0%, var(--porcelain-mid) 100%);
  border: 1.5px solid var(--border);
  border-radius: 28px;
  padding: 18px 20px 16px;
  box-shadow: inset 0 2px 0 #fff, var(--shadow);
}
.demo-hud { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.demo-prog {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--well);
  border: 1px solid #d5c7b4;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 800;
}
.demo-bar { width: 88px; height: 8px; border-radius: 999px; background: #dcd1c2; overflow: hidden; }
.demo-bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #ffe28c, #e5a828); transition: width .32s ease; }
.demo-reset {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--porcelain);
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  transition: transform .16s ease;
}
.demo-reset:hover { transform: rotate(-28deg); }
.demo-reset img { width: 17px; height: 17px; }
.demo-stage { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 38px; margin-bottom: 10px; }
.demo-cat {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 5px 10px rgba(78, 60, 44, 0.16));
  transition: transform .25s ease;
}
.demo-stage.win .demo-cat { transform: translateX(-50%) translateY(-5px) scale(1.06); }
.demo-frame {
  width: min(304px, 100%);
  aspect-ratio: 1;
  padding: 11px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf9, #efe6d9);
  border: 2px solid var(--border);
  box-shadow: inset 0 2px 0 #fff, 0 12px 24px rgba(92, 74, 56, 0.13);
  position: relative;
  z-index: 3;
}
.demo-pit {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  overflow: hidden;
  position: relative;
  background-color: #f3eadc;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.demo-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); gap: 2px; padding: 3px; }
.bead { transition: transform .24s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease; }
.bead img { width: 100%; height: 100%; object-fit: contain; }
.bead.pop { transform: scale(1.22) translateY(-8px); opacity: 0; }
.bead.out { opacity: 0; pointer-events: none; transform: scale(.4); }
.demo-win {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 253, 249, 0.8);
  backdrop-filter: blur(4px);
  z-index: 5;
}
.demo-win[hidden] { display: none; }
.demo-ribbon { position: relative; width: 170px; display: grid; place-items: center; }
.demo-ribbon span { position: absolute; top: 24%; color: #fff; font-size: 14.5px; font-weight: 900; text-shadow: 0 1px 3px rgba(138, 42, 34, 0.35); }
.demo-win .trophy { width: 52px; }
.demo-win button { padding: 7px 18px; border-radius: 999px; background: linear-gradient(180deg, #88dac0, var(--mint-bot)); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 3px 0 #3a8970; }
.demo-hint { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink-muted); min-height: 20px; margin-bottom: 8px; }
.demo-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: var(--well);
  border: 1.5px solid #d5c7b4;
  box-shadow: inset 0 2px 6px rgba(105, 86, 68, 0.14);
}
.bot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 4px 6px;
  border-radius: 13px;
  background: linear-gradient(180deg, #fffefb, #f5eee3);
  border: 1.5px solid #d8cab7;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #cfc0ac;
  position: relative;
  transition: transform .14s ease, opacity .18s ease;
}
.bot-btn:hover:not(:disabled) { transform: translateY(-2px); }
.bot-btn:disabled { opacity: .44; cursor: not-allowed; }
.bot-btn.ready { border-color: var(--coral); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #d9837a; }
.bot-btn img { width: 44px; height: 44px; }
.bot-btn span { font-size: 11.5px; font-weight: 800; color: var(--ink-strong); }
.bot-btn b {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 19px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink-strong);
  color: #fff;
  font-family: var(--font-num);
  font-size: 10px;
  display: grid;
  place-items: center;
}

/* Section 2: Three Pixel Worlds */
.levels { background: linear-gradient(180deg, #f6efe4 0%, #f1e8da 100%); }
.level-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lv-card {
  background: var(--porcelain);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 13px 13px 16px;
  box-shadow: inset 0 2px 0 #fff, var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.lv-media { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #f5efe6; cursor: pointer; }
.lv-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease, transform .35s ease; }
.lv-media img.shot { object-position: center 33%; opacity: 0; }
.lv-card.show-shot .lv-media img.art { opacity: 0; transform: scale(1.04); }
.lv-card.show-shot .lv-media img.shot { opacity: 1; }
.lv-num {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.94);
  color: var(--ink-strong);
  font-family: var(--font-num);
  font-size: 13.5px;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(78, 60, 44, 0.16);
  z-index: 2;
}
.lv-flip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(51, 39, 32, 0.76);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.lv-meta { padding: 0 4px; }
.lv-meta h3 { font-size: 17px; font-weight: 900; color: var(--ink-strong); margin-bottom: 3px; }
.lv-meta p { font-size: 13.5px; color: var(--ink-muted); }

/* Section 3: Unified Cast Band (Big Cat + Mecha-Mice Crew) */
.cast-band {
  background: linear-gradient(180deg, #fff4cc 0%, #f9e4a3 100%);
  border-top: 1px solid rgba(214, 174, 72, 0.35);
  border-bottom: 1px solid rgba(214, 174, 72, 0.35);
}
.cast-band .head h2 { color: #3f2b0d; }
.cast-band .head p { color: #6c4d1b; }
.cast-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 24px;
  align-items: stretch;
}
.cast-card {
  background: rgba(255, 253, 248, 0.84);
  border: 1.5px solid rgba(214, 174, 72, 0.45);
  border-radius: 26px;
  padding: 22px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 16px 32px rgba(148, 102, 18, 0.11);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.cast-card h3 { font-size: 20px; font-weight: 900; color: #3f2b0d; margin-bottom: 4px; }
.cast-card .sub { font-size: 13.5px; color: #745520; }
.cat-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 251, 240, 0.85);
  border: 1px solid rgba(214, 174, 72, 0.32);
}
.cat-big { max-height: 160px; width: auto; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(120, 82, 18, 0.18)); }
.cat-big.swap { animation: popSwap .32s cubic-bezier(.34, 1.56, .64, 1); }
.cat-cap { margin-top: 10px; font-size: 13px; font-weight: 800; color: #6d470c; text-align: center; }
.mood-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mood-btn {
  padding: 8px 4px;
  border-radius: 14px;
  background: #fffdf9;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(148, 102, 18, 0.08);
  transition: transform .14s ease, border-color .14s ease;
}
.mood-btn:hover { transform: translateY(-2px); }
.mood-btn[aria-pressed="true"] { border-color: var(--coral-bot); }
.mood-btn img { width: 46px; height: 36px; object-fit: contain; }
.mood-btn span { font-size: 11.5px; font-weight: 800; color: #4f3510; }

/* Right card: 8 Mice + Mystery Box + 4 Compact Boosters */
.squad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.mouse-fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 4px 7px;
  border-radius: 14px;
  background: #fffdf9;
  border: 1.5px solid #e6d7b8;
  transition: transform .15s ease, border-color .15s ease;
}
.mouse-fig:hover { transform: translateY(-2px); }
.mouse-fig.on { border-color: var(--coral-bot); box-shadow: 0 6px 14px rgba(216, 100, 90, 0.16); }
.mouse-fig.hello img { animation: hop .42s cubic-bezier(.34, 1.56, .64, 1); }
.mouse-fig img { width: 48px; height: 48px; object-fit: contain; }
.mouse-fig span { font-size: 11.5px; font-weight: 800; color: var(--ink-strong); }
.squad-readout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(255, 250, 236, 0.9);
  border: 1px solid rgba(214, 174, 72, 0.35);
  font-size: 13px;
  font-weight: 700;
  color: #5b3e12;
}
.squad-readout img { width: 28px; height: 28px; flex-shrink: 0; }
.mini-boosters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(188, 152, 78, 0.38);
}
.mb { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.mb img { width: 32px; height: 32px; object-fit: contain; }
.mb span { font-size: 11.5px; font-weight: 800; color: #5b3e12; }

/* Section 4: Screenshots + Closing WeChat Promo */
.shots { background: var(--bg-top); }
.shot-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 64px; }
.shot-item {
  border-radius: 20px;
  padding: 5px;
  background: var(--porcelain);
  border: 1.5px solid var(--border);
  box-shadow: 0 10px 22px rgba(92, 74, 56, 0.09);
  transition: transform .18s ease;
  text-align: center;
}
.shot-item:hover { transform: translateY(-4px); }
.shot-item img { width: 100%; border-radius: 15px; aspect-ratio: 480 / 1039; object-fit: cover; }
.shot-item span { display: block; padding: 6px 2px 3px; font-size: 12px; font-weight: 800; color: var(--ink); }

.end-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px;
}
.end-mascot { width: 196px; margin-bottom: 12px; filter: drop-shadow(0 14px 22px rgba(84, 62, 42, 0.16)); }
.end-inner h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 900; color: var(--ink-strong); margin-bottom: 6px; }
.end-inner p { font-size: 15px; color: var(--ink-muted); margin-bottom: 18px; text-wrap: balance; }
.end-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--wx-green);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 #059a4c, 0 12px 22px rgba(7, 193, 96, 0.28);
  margin-bottom: 24px;
  transition: transform .15s ease;
}
.end-cta:hover { transform: translateY(-2px); }
.wx-promo {
  width: min(520px, 100%);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(84, 62, 42, 0.11);
  border: 1.5px solid var(--border-soft);
  background: #fff;
}

/* Footer */
.foot { background: #2b211b; color: #c5b4a4; padding: 34px 0 40px; text-align: center; }
.health { max-width: 680px; margin: 0 auto 16px; }
.health b { display: block; font-size: 12.5px; color: #f0e3d5; margin-bottom: 4px; }
.health p { font-size: 12px; line-height: 1.7; color: #b4a393; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; font-size: 12.5px; color: #a69586; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: #fff; text-decoration: underline; }

/* Dialogs */
.play-dialog, .shot-dialog {
  margin: auto;
  border: 1.5px solid var(--border);
  border-radius: 26px;
  background: var(--porcelain);
  color: var(--ink);
  box-shadow: 0 28px 64px rgba(34, 24, 18, 0.34);
  padding: 26px 22px 22px;
  width: min(350px, calc(100vw - 32px));
  text-align: center;
  position: fixed;
}
.shot-dialog { width: min(390px, calc(100vw - 32px)); padding: 14px 14px 16px; }
.play-dialog::backdrop, .shot-dialog::backdrop { background: rgba(38, 28, 22, 0.56); backdrop-filter: blur(6px); }
.dlg-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--porcelain-shade);
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  display: grid;
  place-items: center;
}
.play-dialog h2 { font-size: 19px; font-weight: 900; color: var(--ink-strong); margin-bottom: 14px; }
.play-dialog img { width: 204px; height: 204px; margin: 0 auto 12px; border-radius: 50%; background: #fff; padding: 6px; box-shadow: 0 8px 18px rgba(84, 62, 42, 0.12); }
.play-dialog > p { font-size: 13.5px; color: var(--ink-muted); margin-bottom: 12px; }
.game-name { width: 100%; text-align: center; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--porcelain-mid); font-size: 16px; font-weight: 900; color: var(--ink-strong); margin-bottom: 10px; }
.copy-btn { width: 100%; padding: 11px 18px; border-radius: 999px; background: linear-gradient(180deg, var(--coral-top), var(--coral-bot)); color: #fff; font-size: 14.5px; font-weight: 800; box-shadow: 0 4px 0 #c25148; }
.copy-status { min-height: 20px; margin-top: 10px; font-size: 13px; font-weight: 800; color: #2d8a5a; }
.shot-dialog img { width: 100%; max-height: 76vh; object-fit: contain; border-radius: 16px; margin-bottom: 8px; }
.shot-dialog p { font-size: 13.5px; font-weight: 800; color: var(--ink-strong); }

/* Subpages (Privacy / Terms / 404) */
.doc-page { padding: 88px 0 60px; min-height: calc(100vh - 120px); }
.doc-card { max-width: 760px; margin: 0 auto; padding: 34px 36px; border-radius: 26px; background: var(--porcelain); border: 1.5px solid var(--border); box-shadow: var(--shadow); }
.doc-card h1 { font-size: clamp(23px, 3vw, 28px); font-weight: 900; color: var(--ink-strong); margin-bottom: 6px; }
.doc-date { font-size: 13px; color: var(--ink-muted); margin-bottom: 20px; }
.doc-card h2 { font-size: 17px; font-weight: 900; color: var(--ink-strong); margin: 20px 0 8px; }
.doc-card p, .doc-card li { font-size: 14.5px; color: var(--ink); line-height: 1.85; margin-bottom: 8px; }
.doc-card ul { padding-left: 20px; margin-bottom: 12px; }
.doc-card a { color: #cf5c52; font-weight: 700; }
.doc-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 9px 18px; border-radius: 999px; background: var(--porcelain-shade); border: 1.5px solid var(--border); color: var(--ink-strong); font-size: 14px; font-weight: 800; text-decoration: none; }
.doc-back img { width: 16px; height: 16px; }
.nf-box { max-width: 460px; margin: 72px auto; padding: 38px 26px; text-align: center; }
.nf-box img.mascot { width: 200px; margin: 0 auto 12px; }
.nf-code { font-family: var(--font-num); font-size: 50px; font-weight: 900; color: var(--coral); line-height: 1; margin-bottom: 8px; }

/* Animations */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes driftA { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(6deg); } }
@keyframes driftB { 0%, 100% { transform: translateY(0) rotate(7deg); } 50% { transform: translateY(10px) rotate(-5deg); } }
@keyframes twinkle { 0%, 100% { opacity: .45; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes popSwap { 0% { transform: scale(.88); opacity: .5; } 100% { transform: scale(1); opacity: 1; } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px) scale(1.08); } }
.rv { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
.rv.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 920px) {
  .nav { display: none; }
  .hero-inner, .try-grid, .cast-grid { grid-template-columns: 1fr; }
  .hero-card { text-align: center; }
  .hero-logo { margin-left: auto; margin-right: auto; }
  .play-card { justify-content: center; text-align: left; }
  .hero-art { min-height: 400px; }
  .phone-hero { width: 206px; transform: rotate(4deg) translateX(44px); }
  .hero-diorama { width: 245px; left: 4%; }
  .level-cards { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .shot-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; margin-bottom: 48px; }
  .shot-item { flex: 0 0 180px; scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .top-inner { padding: 10px 16px; }
  .sec { padding: 52px 0; }
  .hero { padding: 76px 0 60px; }
  .hero-card { padding: 24px 18px 20px; border-radius: 26px; }
  .play-qr { display: none; }
  .play-wx-badge { display: flex; }
  .play-text .d { display: none; }
  .play-text .m { display: block; }
  .hero-art { min-height: 350px; }
  .phone-hero { width: 182px; transform: rotate(4deg) translateX(32px); }
  .hero-diorama { width: 200px; left: 0; bottom: 0; }
  .cast-card, .doc-card { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
