/* Naiwa 奶蛙 — naiwa visual language and content
   tokens come from data/content.json (server injects :root overrides) */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}

:root {
  --paper: #f7f7ef;
  --ink: #263d2d;
  --green: #315c40;
  --lime: #dfeaaf;
  --line: #d7dacd;
  --muted: #616a5d;
  --yellow: #edce64;
  --dark: #294b36;
  --focus: #b39021;
  --wrap: 1260px;
  --pad: 48px;
  --ease-out: cubic-bezier(0.22, 0.9, 0.28, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
input, textarea, select { font: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -120px; z-index: 99; background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: 6px; font-size: 13px; transition: top 0.2s; }
.skip:focus { top: 16px; }

/* ── header ──────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1.8px; }
.brand-flower { font-size: 26px; color: #74934c; animation: spin 14s linear infinite; }
.brand-cn {
  font-size: 11px; font-weight: 400; letter-spacing: 2px; margin-left: 14px;
  padding-left: 16px; border-left: 1px solid #bbc4b5; font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
}
.nav-links { display: flex; gap: 6px; font-size: 13px; }
.nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink); transition: color 0.2s; }
.nav-links a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 12px; height: 2px;
  background: #74934c; transform: scaleX(0); transform-origin: left; transition: transform 0.28s var(--ease-out);
}
.nav-links a:hover { color: #74934c; }
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 14px; }
.lang { border: 1px solid #bac5b5; border-radius: 30px; padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; transition: border-color 0.2s, background 0.2s; }
.lang:hover { border-color: var(--green); background: #fff; }
.lang svg { width: 16px; height: 16px; }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 30px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; transition: transform 0.2s var(--ease-out), box-shadow 0.2s; }
.nav-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgb(25 45 32 / 18%); }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 30px; place-items: center; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { content: ''; display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform 0.25s; }
.menu-btn i::before { position: absolute; top: -6px; }
.menu-btn i::after { position: absolute; top: 6px; }

/* ── hero ─────────────────────────────────────────────── */
.hero-band { position: relative; overflow-x: clip; }
.hero { position: relative; display: grid; grid-template-columns: 1.06fr 1fr; gap: 30px; align-items: center; min-height: 730px; padding: 94px 0 74px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 2px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #7e9b42; box-shadow: 0 0 0 4px #8eaf5420; animation: pulse 2.4s ease-in-out infinite; }
h1 { font-size: clamp(42px, 5.1vw, 74px); line-height: 1.22; letter-spacing: -3.5px; font-weight: 800; margin: 22px 0 22px; }
h1 .line { display: block; }
.green { color: #709355; }
.hero-sub { font-size: 16px; line-height: 1.95; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 34px; min-height: 54px; padding: 18px 25px; border-radius: 6px; font-size: 13px; font-weight: 600; transition: transform 0.2s var(--ease-out), box-shadow 0.2s; }
.button:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgb(25 45 32 / 13%); }
.button:active { transform: translateY(-1px) scale(0.985); }
.button.dark { color: var(--paper); background: var(--ink); }
.button.light { color: var(--ink); background: var(--lime); }
.text-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 13px; transition: gap 0.2s; }
.text-link:hover { gap: 20px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 47px; font-size: 11px; color: var(--muted); }
.tiny-face { width: 35px; height: 35px; flex: 0 0 35px; border: 1px solid #bdc9b2; border-radius: 50%; overflow: hidden; background: #fff; display: grid; place-items: center; }
.tiny-face img { width: 26px; height: 26px; object-fit: contain; }

.hero-art { position: relative; padding: 0 28px 5px 34px; }
.hero-photo {
  position: relative; z-index: 2; background: #fff; border: 1px solid var(--line); border-radius: 3px;
  padding: 16px 16px 9px; box-shadow: 0 22px 40px rgb(32 62 37 / 8%); transform: rotate(5deg);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s; overflow: hidden;
}
.hero-photo::after {
  content: ''; position: absolute; inset: -40% -10%; z-index: 5; pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, rgb(255 255 255 / 62%) 48%, transparent 60%);
  transform: translate(-30%) rotate(18deg); opacity: 0; animation: sheen 7s ease-in-out infinite;
}
.hero-photo:hover { transform: rotate(1deg) translateY(-5px); box-shadow: 0 30px 50px rgb(32 62 37 / 13%); }
.hero-photo > img { height: 367px; width: 100%; object-fit: cover; object-position: center 44%; background: radial-gradient(120% 90% at 50% 15%, #f2f6e4 0%, #e7eed6 60%, #dfe7cb 100%); }
.photo-top, .photo-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.photo-top { font-family: 'Space Grotesk', sans-serif; font-size: 9px; letter-spacing: 1.5px; padding: 0 0 12px; }
.photo-caption { font-size: 16px; font-weight: 500; padding: 13px 4px 2px; }
.smile { font-size: 26px; line-height: 1; }
.art-orbit { position: absolute; width: 102%; height: 80%; left: -8px; top: 68px; border: 1px solid #c4d1b6; border-radius: 50%; transform: rotate(-28deg); }
.doodle-star { position: absolute; left: -5px; top: -35px; z-index: 4; font-size: 80px; line-height: 1; color: #789653; transform: rotate(-15deg); animation: twinkle 4.5s ease-in-out infinite; }
.floating-note {
  position: absolute; bottom: 74px; left: -11px; z-index: 3; display: flex; align-items: center; gap: 9px;
  padding: 15px 23px; background: #e9f0d3; border: 1px solid #cdd7b8; border-radius: 6px; font-size: 13px;
  box-shadow: 0 7px 18px rgb(30 49 35 / 8%); transform: rotate(-7deg); animation: float 6s ease-in-out infinite;
}
.note-dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: #799746; }
.round-stamp {
  position: absolute; right: -2px; top: -15px; z-index: 4; width: 89px; height: 89px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: var(--yellow); border: 1px dashed #6c5b30; border-radius: 50%; outline: 5px solid var(--yellow);
  font-family: 'Space Grotesk', sans-serif; font-size: 23px; transform: rotate(16deg); animation: breathe 5s ease-in-out infinite;
}
.round-stamp small { font-size: 8px; letter-spacing: 1px; }
.hero-bottom { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: space-between; font-family: 'Space Grotesk', sans-serif; font-size: 9px; letter-spacing: 2px; color: var(--muted); }

/* bilingual switch: both copies live in the DOM, CSS picks one */
html[lang='en'] [data-lang='zh-CN'], html[lang='zh-CN'] [data-lang='en'] { display: none; }

/* ── ribbon ───────────────────────────────────────────── */
.ribbon { overflow: hidden; background: var(--lime); border-block: 1px solid #ccd69f; padding: 15px 0; }
.ribbon-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ribbon span { white-space: nowrap; font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif; font-size: 17px; font-weight: 500; letter-spacing: 3px; word-spacing: 30px; padding-right: 30px; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }

/* ── sections ─────────────────────────────────────────── */
.section { padding: 90px 0; }
.section-tag { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 28px; margin-bottom: 40px; font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif; font-size: 10px; letter-spacing: 1.8px; color: var(--muted); }
.small-star { font-size: 22px; color: #6c8c4d; }
h2 { font-size: 43px; line-height: 1.4; letter-spacing: -2px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 500; }
.lead { font-size: 21px; line-height: 1.7; }
.body-copy { font-size: 14px; line-height: 2; color: var(--muted); }

/* chat */
.chat-section { background: #efefe4; border-block: 1px solid #e0e2d5; }
.chat-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: center; }
.phone {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 22px 22px; box-shadow: 12px 13px 0 rgb(32 62 44 / 10%); transform: rotate(-1.2deg);
}
.phone-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif; font-size: 10px; letter-spacing: 1.5px; color: var(--muted); }
.phone-title { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0; color: var(--ink); font-family: 'DM Sans', 'Noto Sans SC', sans-serif; }
.chat-thread { display: flex; flex-direction: column; gap: 16px; min-height: 320px; }
.chat-row { display: flex; gap: 10px; align-items: flex-start; }
.js .chat-row:not(.is-shown):not(.typing) { display: none; }
.chat-row.is-shown { display: flex; animation: chat-in 0.42s var(--ease-spring) both; }
.chat-row.me { justify-content: flex-end; }
.chat-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 4px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.chat-avatar img { width: 26px; height: 26px; object-fit: contain; }
.chat-col { display: flex; flex-direction: column; gap: 5px; max-width: 78%; }
.chat-row.me .chat-col { align-items: flex-end; }
.bubble { position: relative; padding: 11px 15px; border-radius: 4px; background: #fff; border: 1px solid #dfe3d4; font-size: 14px; line-height: 1.6; display: flex; align-items: center; gap: 9px; }
.chat-row.me .bubble { background: #a8e566; border-color: #93d957; color: #1d2b1d; }
.bubble img { width: 34px; height: 34px; object-fit: contain; }
.chat-time { font-size: 10px; color: var(--muted); letter-spacing: 0.5px; }
.typing-dots { display: inline-flex; gap: 5px; align-items: center; padding: 4px 2px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: #6f7d68; opacity: 0.35; animation: dot 1.2s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: 0.16s; }
.typing-dots i:nth-child(3) { animation-delay: 0.32s; }
.chat-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: 1.5px; color: var(--muted); font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif; }

/* story */
.story-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.meanings { margin-top: 26px; display: grid; gap: 12px; }
.meanings li { display: flex; align-items: baseline; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 14px; color: var(--muted); }
.meanings strong { font-family: 'DM Sans', 'Noto Sans SC', sans-serif; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -1px; }
.story-sign { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif; font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.handwritten { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 25px; letter-spacing: -1px; color: #6d8252; }

/* playground — visual studies of the same original image */
.play-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: end; margin-bottom: 42px; }
/* on-chain */
.network-pill { padding: 6px 12px; border-radius: 30px; background: var(--lime); color: #4a5a35; font-size: 9px; letter-spacing: 1px; }
.chain-intro { margin: 18px 0 34px; }
.ca-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px 28px; box-shadow: 0 6px 20px rgb(32 62 44 / 5%); }
.ca-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif; font-size: 10px; letter-spacing: 1.6px; color: var(--muted); }
.ca-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.ca-bar code { flex: 1 1 340px; min-width: 0; font-family: 'Space Grotesk', ui-monospace, monospace; font-size: 17px; letter-spacing: 0.2px; word-break: break-all; }
.ca-copy { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 30px; background: var(--lime); border: 1px solid #c9d68f; font-size: 12px; font-weight: 600; transition: transform 0.18s var(--ease-out), background 0.18s; }
.ca-copy:hover { transform: translateY(-2px); background: #d5e29a; }
.ca-copy svg { width: 15px; height: 15px; }
.ca-status { min-height: 22px; margin-top: 12px; font-size: 11px; letter-spacing: 0.4px; color: var(--green); user-select: all; }
.trade-row { display: grid; grid-template-columns: repeat(3, minmax(0, 176px)); gap: 14px; margin-top: 22px; }
.trade-btn { display: flex; align-items: center; gap: 11px; min-height: 56px; padding: 0 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; font-weight: 600; transition: transform 0.2s var(--ease-out), box-shadow 0.2s; }
.trade-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 18px rgb(25 45 32 / 12%); }
.trade-btn .ext { width: 15px; height: 15px; margin-left: auto; opacity: 0.5; }
.trade-btn .mark { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; }
.trade-btn .mark svg { width: 17px; height: 17px; }
.trade-btn .mark.serif { background: transparent; color: var(--ink); font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.trade-btn.gmgn { background: var(--lime); border-color: #c9d68f; }
.trade-btn.cake { background: var(--yellow); border-color: #dcc268; }
.trade-btn .mark:not(.serif) { background: #2f3f2c; }
.buy-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin: 56px 0 22px; padding-top: 26px; border-top: 1px solid var(--line); }
.buy-head h3 { font-size: 25px; letter-spacing: -1px; font-weight: 650; }
.buy-head span { font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif; font-size: 10px; letter-spacing: 1.8px; color: var(--muted); }
.buy-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.buy-cards li { background: #f1f2e5; border: 1px solid #e2e4d3; border-radius: 8px; padding: 24px; }
.buy-n { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 6px; background: var(--lime); font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; color: #4a5a35; }
.buy-cards li:nth-child(3) .buy-n { background: var(--yellow); color: #5b4a15; }
.buy-cards strong { display: block; margin-top: 16px; font-size: 17px; font-weight: 650; letter-spacing: -0.4px; }
.buy-cards p { margin-top: 9px; font-size: 12px; line-height: 1.85; color: var(--muted); }
.chain-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 26px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.chain-note .live-dot { margin-top: 7px; flex: 0 0 7px; }

/* playground — community mini-games */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 10px; }
.game-card { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; transition: transform 0.18s var(--ease-out), border-color 0.18s, box-shadow 0.18s; }
.game-card:hover { transform: translateY(-2px); border-color: #b9c79e; box-shadow: 6px 7px 0 rgb(32 62 44 / 6%); }
.game-n { flex: 0 0 22px; font-family: 'Space Grotesk', sans-serif; font-size: 10px; letter-spacing: 0.6px; color: var(--muted); }
.game-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-go { flex: 0 0 auto; opacity: 0.35; transition: opacity 0.18s, transform 0.18s; }
.game-card:hover .game-go { opacity: 1; transform: translate(2px, -2px); }
.play-more { margin-top: 22px; }
.play-note { margin-top: 18px; font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif; font-size: 10px; letter-spacing: 1.6px; color: var(--muted); }

/* idea dialog */
#idea-dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 0; background: transparent; color: var(--ink); }
#idea-dialog::backdrop { background: rgb(18 32 22 / 46%); }
.dlg-in { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 34px 32px 28px; box-shadow: 16px 18px 0 rgb(32 62 44 / 12%); }
.dlg-eyebrow { font-family: 'Space Grotesk', sans-serif; font-size: 9px; letter-spacing: 2.2px; color: var(--muted); }
.dlg-in h2 { margin-top: 12px; font-size: 27px; letter-spacing: -1.2px; }
.dlg-note { margin: 14px 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.dlg-in label { display: block; margin: 18px 0 7px; font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif; font-size: 10px; letter-spacing: 1.4px; color: var(--muted); }
.dlg-in input, .dlg-in textarea { width: 100%; padding: 13px 14px; border: 1px solid #cfd4c2; border-radius: 6px; background: #fffef8; color: var(--ink); font: inherit; font-size: 14px; }
.dlg-in textarea { resize: vertical; line-height: 1.7; }
.dlg-in input:focus-visible, .dlg-in textarea:focus-visible, .ca-copy:focus-visible, .game-card:focus-visible, .trade-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.dlg-actions { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.dlg-actions .button { flex: 1 1 auto; }
.dlg-actions .button[disabled] { opacity: 0.55; }
.dlg-status { min-height: 22px; margin-top: 14px; font-size: 12px; color: var(--green); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
body.dlg-open { overflow: hidden; }
.dlg-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 20px; color: var(--muted); transition: background 0.18s, color 0.18s; }
.dlg-close:hover { background: #e9ecdb; color: var(--ink); }

/* buy — dark */
.buy-section { background: var(--dark); color: #f3f4e6; }
.buy-section .section-tag { color: #a9b8a0; }
.buy-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.pill { display: inline-block; margin-bottom: 22px; padding: 7px 13px; border: 1px solid #75866a; border-radius: 30px; font-size: 9px; letter-spacing: 1px; color: #d4e2bc; }
.buy-layout h2 { color: #f3f4e6; }
.buy-sub { margin: 18px 0 6px; font-size: 13px; line-height: 2; color: #c0cdb7; }
.steps { counter-reset: s; margin-top: 26px; }
.steps li { display: flex; align-items: flex-start; gap: 17px; padding: 22px 0; border-bottom: 1px solid rgb(255 255 255 / 12%); }
.steps li:first-child { border-top: 1px solid rgb(255 255 255 / 12%); }
.step-n { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--dark); font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; }
.steps strong { display: block; font-size: 15px; font-weight: 500; }
.steps p { margin-top: 7px; font-size: 11px; line-height: 1.8; color: #a7b89d; }
.buy-panel { background: #f2f2e6; color: var(--ink); border-radius: 5px; padding: 28px; transform: rotate(2deg); box-shadow: 12px 13px 0 rgb(16 32 22 / 28%); }
.buy-panel-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #cdd2c1; font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif; font-size: 10px; letter-spacing: 1.5px; }
.buy-btn { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 54px; border-radius: 6px; font-size: 13px; font-weight: 600; transition: transform 0.2s var(--ease-out), box-shadow 0.2s; }
.buy-btn + .buy-btn { margin-top: 12px; }
.buy-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 18px rgb(25 45 32 / 16%); }
.buy-btn.fomo { background: #a8e566; color: #1d2b1d; }
.buy-btn.cake { background: #fff; border: 1px solid #d3d8c6; }
.buy-note { margin-top: 18px; font-size: 10px; line-height: 1.9; color: #7d8872; }

/* faq */
.faq-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); padding-bottom: 19px; margin-bottom: 20px; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 20px; line-height: 1; color: #6c8c4d; transition: transform 0.28s var(--ease-out); }
.faq-list details[open] summary::after { content: '−'; }
.faq-panel { overflow: hidden; }
.faq-panel p { padding-top: 4px; font-size: 12px; line-height: 1.95; color: var(--muted); }

/* footer */
.footer { border-top: 1px solid var(--line); padding-top: 35px; padding-bottom: 25px; }
.footer-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 25px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 46px; height: 46px; object-fit: contain; }
.footer-brand b { display: block; font-size: 16px; font-weight: 600; }
.footer-brand span { display: block; font-size: 11px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 30px; font-size: 11px; transition: border-color 0.2s, background 0.2s; }
.footer-links a:hover { border-color: var(--green); background: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding-top: 25px; border-top: 1px solid var(--line); font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif; font-size: 8px; letter-spacing: 1.5px; color: var(--muted); }

/* toast */
#toast { position: fixed; bottom: 25px; left: 50%; z-index: 60; background: var(--ink); color: #fff; border-radius: 30px; padding: 13px 23px; font-size: 12px; opacity: 0; transform: translate(-50%, 30px); pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease-out); }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ── motion states (only when JS is running) ──────────── */
.js [data-rise] { opacity: 0; transform: translateY(24px); }
.js [data-rise].is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: var(--delay, 0ms); }
.js .hero [data-rise] { opacity: 0; transform: translateY(24px); }
.js .hero.is-ready [data-rise] { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: var(--delay, 0ms); }
.js [data-fade] { opacity: 0; }
.js [data-fade].is-in { opacity: 1; transition: opacity 0.7s var(--ease-out) var(--delay, 0ms); }

@keyframes chat-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 70%, 100% { opacity: 0.35; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-5px); } }
@keyframes pulse { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes breathe { 0%, 100% { transform: rotate(16deg) scale(1); filter: brightness(1); } 50% { transform: rotate(16deg) scale(1.03); filter: brightness(1.1); } }
@keyframes twinkle { 0%, 100% { opacity: 0.5; transform: rotate(-15deg) scale(0.85); } 50% { opacity: 1; transform: rotate(5deg) scale(1.12); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-7deg) translateY(-7px); } }
@keyframes sheen { 0% { opacity: 0; transform: translate(-30%) rotate(18deg); } 12% { opacity: 0.9; } 40%, 100% { opacity: 0; transform: translate(30%) rotate(18deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 1050px) {
  :root { --pad: 32px; }
  .brand-cn { display: none; }
  .hero { min-height: 660px; padding-top: 70px; gap: 15px; }
  .hero-art { padding-inline: 15px; }
  .hero-photo > img { height: 320px; }
  .doodle-star { font-size: 60px; left: -10px; }
  .round-stamp { width: 75px; height: 75px; font-size: 20px; }
  h1 { letter-spacing: -3px; }
  .story-layout, .buy-layout, .chat-layout, .faq-layout, .play-head { gap: 40px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .nav-cta { display: none; }
  .header-in { height: 76px; }
  body.menu-open .nav-links {
    display: flex; flex-direction: column; gap: 4px; position: absolute; left: 22px; right: 22px; top: 76px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: 0 20px 40px rgb(20 35 25 / 14%);
  }
  body.menu-open .nav-links a { min-height: 48px; padding: 0 14px; }
  .hero, .story-layout, .buy-layout, .chat-layout, .faq-layout, .play-head, .buy-cards, .trade-row { grid-template-columns: 1fr; }
  .trade-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .ca-card { padding: 20px; }
  .ca-bar code { font-size: 14px; }
  .buy-head { flex-direction: column; gap: 6px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .game-card { align-items: flex-start; min-height: 46px; padding: 10px 12px; gap: 8px; font-size: 12.5px; }
  .game-n { flex: 0 0 17px; font-size: 9px; }
  .game-name { white-space: normal; overflow: visible; line-height: 1.45; }
  .game-go { font-size: 11px; }
  .dlg-in { padding: 30px 20px 24px; }
  .hero { padding-top: 50px; padding-bottom: 70px; gap: 40px; }
  .hero-copy { position: relative; z-index: 5; }
  h1 { font-size: clamp(40px, 7.4vw, 58px); line-height: 1.16; letter-spacing: -2.5px; margin: 23px 0; }
  .hero-note { margin-top: 27px; }
  .hero-art { max-width: 430px; width: 100%; margin: 0 auto; padding: 12px 35px 30px; }
  .doodle-star { left: 5px; top: -9px; }
  .round-stamp { right: 14px; top: 1px; }
  .floating-note { left: 1px; bottom: 76px; padding: 12px 15px; font-size: 11px; }
  .hero-bottom { font-size: 7px; letter-spacing: 1px; }
  .section { padding: 60px 0; }
  h2 { font-size: 33px; letter-spacing: -1.3px; }
  .lead { font-size: 18px; }
  .ribbon span { font-size: 13px; word-spacing: 20px; }
  .chat-thread { min-height: 0; }
  .buy-panel { transform: rotate(0.6deg); }
  .footer-brand span { display: none; }
}
@media (max-width: 400px) {
  h1 { font-size: 38px; letter-spacing: -2px; }
  .hero-photo > img { height: 290px; }
  .round-stamp { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-rise], .js .hero [data-rise] { opacity: 1; transform: none; }
  .js [data-fade] { opacity: 1; }
  .chat-row { opacity: 1; transform: none; }
}

@media print { .header, .ribbon, .hero-bottom { display: none; } }
