/* ============================================================
 *  Budoudou 视觉 v3 · 玩具店糖果风
 *  - 白底 + 整条整条的彩色色带（黄 / 蓝 / 粉 / 深海军蓝），色带之间是波浪边
 *  - 字体：Baloo 2（圆胖）+ 站酷快乐体；正文 Nunito
 *  - 按钮是「软糖」按钮：实色 + 底边加深，按下会往下沉
 *  - 只覆盖视觉，结构在 index.html / style.css
 * ============================================================ */
:root {
  --white: #ffffff;
  --ink: #1f2a48;
  --ink-soft: #5b6685;
  --line: #e6eaf2;
  --yellow: #ffd84d;
  --yellow-dark: #e8b923;
  --yellow-soft: #fff4c4;
  --pink: #ff7aa2;
  --pink-dark: #ec4f7c;
  --pink-soft: #ffe2eb;
  --blue: #73c2ff;
  --blue-soft: #e1f1ff;
  --mint: #8eddb8;
  --night: #1f2a48;
  --gold: #ffc83d;
  --accent: #fff4c4;
  --pink-deep: var(--pink-dark);
  --radius: 24px;
  --shadow: 0 10px 0 -4px rgba(31, 42, 72, .06), 0 18px 34px -22px rgba(31, 42, 72, .35);
  --toon-border: 0 solid transparent;
  --toon-shadow: var(--shadow);
  --f-display: "Baloo 2", "ZCOOL KuaiLe", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-body: "Nunito", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --wave-yellow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v8c-10 0-20 10-30 10S70 8 60 8 40 18 30 18 10 8 0 8z' fill='%23ffe680'/%3E%3C/svg%3E");
  --wave-night-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20h120v-8c-10 0-20-10-30-10S70 12 60 12 40 2 30 2 10 12 0 12z' fill='%231f2a48'/%3E%3C/svg%3E");
  --wave-night-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v8c-10 0-20 10-30 10S70 8 60 8 40 18 30 18 10 8 0 8z' fill='%231f2a48'/%3E%3C/svg%3E");
  --wave-pink-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20h120v-8c-10 0-20-10-30-10S70 12 60 12 40 2 30 2 10 12 0 12z' fill='%23ffe2eb'/%3E%3C/svg%3E");
}

html, body { background: var(--white); }
.page { overflow-x: clip; }
body { font-family: var(--f-body); color: var(--ink); background-image: none; }
.app { background: transparent; box-shadow: none !important; }
.page { padding-top: 76px; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex: none; }
h1, h2, h3, .section-title, .result-name, .tap-name, .quiz-q, .col-head h1, .modal-box h3, .card-title, .g-item b, .logo-word {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.01em; font-variation-settings: normal;
}
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3, html[lang^="zh"] .section-title, html[lang^="zh"] .result-name,
html[lang^="zh"] .tap-name, html[lang^="zh"] .quiz-q, html[lang^="zh"] .col-head h1, html[lang^="zh"] .card-title, html[lang^="zh"] .g-item b {
  font-family: "ZCOOL KuaiLe", var(--f-display); font-weight: 400; letter-spacing: .02em;
}
.result-tagline, .tap-title, .quiz-num, .loading-text, .hero h1 .brand-name { font-style: normal !important; }

/* 整条色带：在 .app 的窄容器里铺满整个屏幕宽 */

/* ---------- 顶部导航 ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 45; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); box-shadow: 0 2px 0 rgba(31, 42, 72, .06);
}
.logo { display: flex; align-items: center; }
.logo-word { font-size: 26px; color: var(--pink-dark); line-height: 1; text-shadow: 2px 2px 0 var(--yellow); letter-spacing: -.02em; }
.logo:hover .logo-word { animation: wiggle .5s ease; }
.topnav { display: none; }
.nav-link { font-weight: 800; font-size: 15px; padding: 8px 12px; border-radius: 999px; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.nav-link:hover { background: var(--blue-soft); }
.nav-link.active { background: var(--yellow-soft); }
.nav-buy { background: var(--yellow); box-shadow: inset 0 -3px 0 var(--yellow-dark); }
.nav-buy:hover { background: var(--yellow); filter: brightness(1.03); }
.nav-link.nav-collection { position: static; background: transparent; border: 0; box-shadow: none; padding: 8px 12px; font-size: 15px; }
.nav-link.nav-collection:hover { background: var(--blue-soft); }
.nav-link.nav-collection:active { transform: none; }
.nav-count { background: var(--pink-dark); color: #fff; border-radius: 999px; min-width: 20px; padding: 0 6px; font-size: 12px; text-align: center; }
.lang-bar { position: static; transform: none; display: flex; gap: 2px; padding: 3px; background: var(--blue-soft); border: 0; border-radius: 999px; box-shadow: none; }
.lang-btn { min-width: 0; padding: 5px 10px; font-size: 13px; font-weight: 800; color: var(--ink-soft); border-radius: 999px; }
.lang-btn.active { background: var(--white); color: var(--ink); box-shadow: 0 2px 0 rgba(31, 42, 72, .1); }
.menu-toggle { width: 44px; height: 44px; border-radius: 14px; background: var(--yellow); box-shadow: inset 0 -3px 0 var(--yellow-dark); display: grid; place-content: center; gap: 4px; }
.menu-toggle span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.topbar.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.topbar.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.topbar.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.topbar.menu-open .topnav {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  position: absolute; top: 60px; left: 0; right: 0; padding: 12px 16px 18px;
  background: var(--white); box-shadow: 0 16px 30px -18px rgba(31, 42, 72, .45);
  animation: drop .18s ease;
}
.topbar.menu-open .nav-link { font-size: 19px; padding: 12px 14px; border-radius: 16px; justify-content: space-between; font-family: var(--f-display); }
.topbar.menu-open .lang-bar { align-self: flex-start; margin-top: 8px; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
body.tap-open .topbar { display: none; }
.lang-globe, .nav-collection > .ico { display: none; }

/* ---------- 软糖按钮 ---------- */
.btn { font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: .01em; border-radius: 18px; transition: transform .1s, box-shadow .1s, filter .15s; }
html[lang^="zh"] .btn { font-family: var(--f-body); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .35); }
.btn-primary:hover { filter: brightness(1.15); transform: none; }
.btn-buy, .sticky-buy .btn { background: var(--yellow); color: var(--ink); box-shadow: inset 0 -5px 0 var(--yellow-dark); animation: none !important; }
.btn-buy:hover { filter: brightness(1.04); transform: none; }
.btn-primary:active, .btn-buy:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
.btn-outline { background: var(--white); border: 2px solid var(--line); color: var(--ink); box-shadow: inset 0 -3px 0 var(--line); }
.btn-ghost { color: var(--ink-soft); font-family: var(--f-body); font-weight: 800; text-decoration: none; }
.btn-ghost:hover { color: var(--pink-dark); }
.price { background: rgba(31, 42, 72, .08); }
.price-old { opacity: .55; }
.icon-btn { background: var(--white); border: 2px solid var(--line); box-shadow: none; display: grid; place-items: center; color: var(--ink); }

/* ---------- 首页：黄色大色带 ---------- */
.hero { --band: #ffe680; border-image: conic-gradient(var(--band) 0 0) fill 0 // 0 100vmax; position: relative; padding: 26px 0 40px; margin-top: -16px; }
.hero::after { content: ""; position: absolute; left: -100vmax; right: -100vmax; bottom: -24px; height: 26px; background: var(--wave-yellow) repeat-x left top / 120px 26px; }
.hero-badge { background: var(--white); color: var(--ink); padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .02em; text-transform: none; box-shadow: 0 3px 0 rgba(31, 42, 72, .08); transform: rotate(-2deg); }
.hero-badge::before { display: none; }
.hero h1 { font-size: 46px; line-height: 1.02; margin: 14px 0 10px; }
.hero h1 .brand-name { color: var(--pink-dark); position: relative; white-space: nowrap; }
.hero h1 .brand-name::after { display: none; }
.hero-sub { color: var(--ink); opacity: .75; font-size: 16px; font-weight: 700; }
.hero-stack { height: 240px; }
.hero-stack .doll-img { border: 5px solid var(--white); box-shadow: 0 10px 0 -4px rgba(31, 42, 72, .1); border-radius: 30px; animation: bob 3.4s ease-in-out infinite; }
.hero-stack .doll-img:nth-child(1) { rotate: -8deg; animation-delay: -.6s; }
.hero-stack .doll-img:nth-child(2) { border-radius: 34px; animation-delay: -1.4s; }
.hero-stack .doll-img:nth-child(3) { rotate: 7deg; animation-delay: -2.2s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.doodle { position: absolute; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; z-index: 0; pointer-events: none; }
.doodle.d1 { width: 26px; top: 12px; right: 8%; rotate: 14deg; fill: var(--white); animation: twinkle 3s ease-in-out infinite; }
.doodle.d2 { width: 22px; top: 46%; left: -2px; rotate: -16deg; stroke: var(--pink-dark); fill: var(--pink-soft); }
.doodle.d3 { width: 70px; height: 12px; bottom: 26px; right: 4%; stroke: var(--pink-dark); }
.doodle.d4 { width: 16px; top: 34%; right: 2%; fill: var(--yellow); }
.hero-text, .hero-stack, .hero-actions { position: relative; z-index: 1; }
@keyframes twinkle { 0%, 100% { scale: 1; } 50% { scale: 1.25; } }

/* 滚动字条 */
.marquee { --band: var(--night); margin: 44px 0 0; color: var(--yellow); overflow: hidden; white-space: nowrap; rotate: -1.5deg; padding: 10px 0; border-image: conic-gradient(var(--band) 0 0) fill 0 // 0 100vmax; }
.marquee-track { display: inline-flex; gap: 22px; animation: marquee 28s linear infinite; font-family: var(--f-display); font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; }
.marquee-track i { font-style: normal; color: var(--pink); }
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* 板块标题：荧光笔划线 */
.section { margin-top: 46px; }
.section-title { font-size: 32px; display: inline-block; background: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 88%, transparent 88%); padding: 0 6px; }
#series, .secrets { text-align: center; }
.section-sub { color: var(--ink-soft); font-weight: 600; max-width: 560px; margin: 6px auto 18px; }
.section-title + .section-sub::after { display: none; }

/* 小崽格子：圆角方块 + 歪歪的贴纸感 */
.doll-img { background: var(--doll-bg, var(--blue-soft)); border-radius: 26px; }
.doll-img::after { display: none; }
.doll-img img { filter: drop-shadow(0 6px 5px rgba(31, 42, 72, .16)); }
.g-item { background: transparent; border: 0; box-shadow: none; padding: 0; transition: transform .2s; }
.g-item:nth-child(3n+1) .doll-img { rotate: -2deg; }
.g-item:nth-child(3n+2) .doll-img { rotate: 1.5deg; }
.g-item:nth-child(4n) .doll-img { rotate: 2.5deg; }
.g-item:hover { transform: none; }
.g-item:hover .doll-img { animation: wiggle .5s ease; }
.g-item b { font-size: 17px; margin-top: 8px; }
.g-item small { color: var(--ink-soft); font-weight: 700; font-size: 12px; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg) scale(1.04); } 60% { transform: rotate(4deg) scale(1.04); } }

/* 隐藏款：深海军蓝色带 */
.secrets { --band: var(--night); border-image: conic-gradient(var(--band) 0 0) fill 0 // 0 100vmax; padding: 34px 0 40px; margin-top: 70px; color: #fff; position: relative; }
.secrets::before, .secrets::after { content: ""; position: absolute; left: -100vmax; right: -100vmax; height: 26px; }
.secrets::before { top: -25px; background: var(--wave-night-top) repeat-x left top / 120px 26px; }
.secrets::after { bottom: -25px; background: var(--wave-night-bottom) repeat-x left top / 120px 26px; }
.secrets .section-title { color: #fff; background: linear-gradient(transparent 62%, rgba(255, 122, 162, .55) 62%, rgba(255, 122, 162, .55) 88%, transparent 88%); }
.secrets .section-sub { color: #c4cbe0; }
.secret-item, .secret-item.is-big { animation: none !important; background: transparent; border: 0; }
.secret-item b { color: #fff; }
.secret-item small { color: #c4cbe0 !important; }
.doll-img.silhouette { background: #2f3b60; }
.secret-item.is-big .doll-img.silhouette { background: #3a3f5c; box-shadow: inset 0 0 0 3px var(--gold); }
.doll-img.silhouette img { filter: brightness(0) invert(1) opacity(.13); }
.doll-img .q { font-family: var(--f-display); font-weight: 800; font-style: normal; color: var(--gold); text-shadow: none; animation: none; font-size: 54px; }
.secret-item.is-big b::before { content: "★"; color: var(--gold); margin-right: 4px; background: none; width: auto; height: auto; display: inline; animation: none; }

/* 购买色带 */
.buy-strip { --band: var(--pink-soft); box-shadow: none; background: none; border: 0; border-image: conic-gradient(var(--band) 0 0) fill 0 // 0 100vmax; border-radius: 0; padding: 42px 0 46px; margin-top: 72px; position: relative; }
.buy-strip::before { content: ""; position: absolute; left: -100vmax; right: -100vmax; top: -25px; height: 26px; background: var(--wave-pink-top) repeat-x left top / 120px 26px; }
.buy-strip .btn { max-width: 420px; margin: 0 auto; }
.footer { color: var(--ink-soft); font-weight: 600; margin-top: 26px; }

/* ---------- 答题 ---------- */
#page-quiz.active { position: relative; }
.progress { background: var(--blue-soft); height: 12px; box-shadow: none; }
.progress-bar { background: var(--pink); background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .25) 0 8px, transparent 8px 16px); }
.quiz-card { background: var(--white); border: 2px solid var(--line); box-shadow: 0 8px 0 var(--line); border-radius: 28px; }
.quiz-num { display: inline-block; background: var(--yellow); color: var(--ink); padding: 2px 12px; border-radius: 999px; font-family: var(--f-display); font-size: 15px; }
.quiz-q { font-size: 25px; line-height: 1.3; }
.opt { background: var(--white); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); border-radius: 18px; font-weight: 700; }
.opt:hover { border-color: var(--blue); box-shadow: 0 4px 0 var(--blue-soft); }
.opt.selected { border-color: var(--pink-dark); background: var(--pink-soft); box-shadow: 0 4px 0 var(--pink); }
.opt .opt-key { background: var(--blue-soft); color: var(--ink); font-family: var(--f-display); }
.opt.selected .opt-key { background: var(--pink-dark); color: #fff; }
.dot { border-width: 3px; }
.dot.d0, .dot.d1 { border-color: var(--pink-dark); }
.dot.d3, .dot.d4 { border-color: #3d9ae6; }
.dot.d2 { border-color: #b8c0d4; }
.dot.selected.d0, .dot.selected.d1 { background: var(--pink-dark); }
.dot.selected.d3, .dot.selected.d4 { background: #3d9ae6; }
.dot.selected { box-shadow: 0 0 0 5px rgba(255, 216, 77, .7); }
.lik-caps span { font-weight: 800; }
.lik-caps span:first-child { color: var(--pink-dark); }
.lik-caps span:last-child { color: #3d9ae6; }
.lik-opt[data-k="4"] .opt-key { background: var(--blue-soft); color: var(--ink); }
.lik-opt[data-k="4"].selected { border-color: #3d9ae6; background: var(--blue-soft); box-shadow: 0 4px 0 var(--blue); }
.lik-opt[data-k="4"].selected .opt-key { background: #3d9ae6; color: #fff; }
.quiz-peek .doll-img { border: 5px solid var(--white); box-shadow: 0 6px 0 var(--line); border-radius: 50%; }

/* 拆盒：牛皮纸盒 + 黄胶带 */
.box-body { background: #e8cfa6; box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .06); border-radius: 10px; }
.box-body span { color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .12); font-family: var(--f-display); }
.box-lid { background: #d9b98a; }
.box-lid::after { border-color: var(--pink-dark); }
.loading-text { font-family: var(--f-display); font-size: 20px; color: var(--ink); }

/* ---------- 结果 ---------- */
.result-head { background: var(--accent); border: 0; box-shadow: none; border-radius: 34px; }
.result-head::before, .result-head::after { display: none; }
.result-pre { font-weight: 800; }
.result-type { background: var(--white); color: var(--ink); border: 0; font-weight: 800; box-shadow: 0 3px 0 rgba(31, 42, 72, .1); }
.result-name { font-size: 54px; line-height: 1.05; }
.result-tagline { color: var(--ink); opacity: .7; font-weight: 700; }
.tag { background: var(--white); border: 0; font-weight: 700; color: var(--ink); }
.card { background: var(--white); border: 2px solid var(--line); box-shadow: 0 6px 0 var(--line); border-radius: 26px; }
.card-title { font-size: 22px; }
.card-title::before { display: none; }
.buy-card { background: var(--yellow-soft); border: 0; box-shadow: none; }
.buy-save { color: var(--pink-dark); font-weight: 800; }
.dim-labels .on { color: var(--pink-dark); }
.dim-bar { background: var(--blue-soft); height: 12px; }
.dim-fill { background: var(--pink); }
.partner .doll-img { border: 0; }
.partner b { color: var(--pink-dark); }
.fb { border-top: 2px dashed var(--line); }
.fb-btn { border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); background: var(--white); display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.fb-btn .ico { color: var(--pink-dark); }
.sticky-buy { background: rgba(255, 255, 255, .97); box-shadow: 0 -2px 0 var(--line); }
.sticky-info b { color: var(--pink-dark); }

/* ---------- 弹窗 / 表单 / 图鉴 ---------- */
.modal-mask { background: rgba(31, 42, 72, .5); backdrop-filter: blur(3px); }
.modal-box { background: var(--white); border-radius: 30px; }
.modal-close { display: grid; place-items: center; color: var(--ink-soft); }
.modal-price { color: var(--pink-dark); font-family: var(--f-display); }
.buy-row { background: var(--blue-soft); }
.field { border: 2px solid var(--line); background: var(--white); border-radius: 16px; }
.field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.demo-banner { background: var(--yellow-soft); border: 2px dashed var(--yellow-dark); }
.auth-pending { background: var(--pink-soft); color: var(--pink-dark); }
.link-btn, .col-tap-hint { color: var(--pink-dark) !important; }
.confirm-icon { color: var(--pink-dark); font-size: 48px; animation: none; }
.toast { background: var(--ink); font-weight: 700; }
.col-head h1 { font-size: 38px; }
.g-item.missing .doll-img { background: #eef1f6; }
.g-item.missing .doll-img img { filter: grayscale(1) opacity(.2); }
.own-count { background: var(--pink-dark); }
.secret-tag { background: var(--night); color: var(--gold); }
.secret-found { background: transparent; color: var(--ink); }
.secret-found small { color: var(--ink-soft); }
.secret-found .doll-img { background: #2f3b60; }
.secret-found.is-big .doll-img { box-shadow: inset 0 0 0 3px var(--gold); }
.secret-found .doll-img::before { display: none; }

@media (min-width: 960px) {
  .topbar { padding: 0 max(24px, calc(50% - 560px)); height: 68px; }
  .topnav { display: flex; align-items: center; gap: 4px; }
  .menu-toggle { display: none; }
  .page { padding-top: 96px; }
  .hero { padding: 40px 0 60px; margin-top: -24px; }
  .hero h1 { font-size: 76px; }
  .hero-stack { height: 380px; }
  .section-title { font-size: 44px; }
  .quiz-q { font-size: 32px; }
  .result-name { font-size: 66px; }
}
@media (max-width: 370px) { .logo-word { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-stack .doll-img, .doodle, .g-item:hover .doll-img { animation: none !important; }
}

/* ============================================================
 *  揭晓 + 碰一碰 v3：没有皇冠，没有旋转光线，没有从中心炸开的粒子
 * ============================================================ */
.reveal-box.is-secret { background: radial-gradient(circle at 50% 30%, #34406a, var(--night) 70%); }
.reveal-box.is-big { background: radial-gradient(circle at 50% 30%, #4a4a6a, #1a2140 72%); }
.reveal-box.is-secret .reveal-img, .reveal-box.is-big .reveal-img { box-shadow: 0 10px 0 rgba(0,0,0,.25); border-color: rgba(255,255,255,.9); }
.halo { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 216, 77, .55), rgba(255, 216, 77, 0)); animation: haloBreath 3.2s ease-in-out infinite; }
.halo-small { background: radial-gradient(closest-side, rgba(225, 214, 255, .45), rgba(225, 214, 255, 0)); }
@keyframes haloBreath { 0%, 100% { transform: scale(.9); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }
.tier-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; margin-right: 8px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .02em; vertical-align: 2px; }
.tier-big { background: linear-gradient(180deg, #ffe27a, #ffc83d); color: var(--ink); box-shadow: inset 0 -2px 0 #e0a91f; }
.tier-small { background: #e7dcff; color: var(--ink); box-shadow: inset 0 -2px 0 #c7b6f2; }
.reveal-box.is-big .reveal-name, .reveal-box.is-secret .reveal-name { color: #fff; }

/* 往上飘的小爱心 / 星星 */
.fx-up { position: absolute; z-index: 6; width: 24px; height: 24px; margin: -12px; pointer-events: none;
  animation: fxUp 1.5s cubic-bezier(.25, .7, .35, 1) both; }
.fx-up svg { width: 100%; height: 100%; fill: currentColor; stroke: none; display: block; }
@keyframes fxUp {
  0% { transform: translate(0, 0) scale(0) rotate(0); opacity: 0; }
  15% { transform: translate(calc(var(--dx) * .1), calc(var(--dy) * .1)) scale(var(--s)) rotate(calc(var(--r) * -.5)); opacity: 1; }
  45% { transform: translate(calc(var(--dx) * .55), calc(var(--dy) * .5)) scale(var(--s)) rotate(var(--r)); }
  100% { transform: translate(var(--dx), var(--dy)) scale(calc(var(--s) * .6)) rotate(calc(var(--r) * -1)); opacity: 0; }
}
.fx-glitter { position: absolute; top: -10px; z-index: 1; width: var(--sz); height: var(--sz); border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 6px rgba(255, 230, 150, .9); animation: glitterFall linear both; }
@keyframes glitterFall { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(var(--sway), 50vh); } 100% { transform: translate(0, 100vh); opacity: 0; } }

/* 碰一碰页面 */
.tap-page { background: radial-gradient(circle at 50% 32%, #fff 0%, var(--doll-bg, #ffe680) 72%); color: var(--ink); }
.tap-page.is-secret { background: radial-gradient(circle at 50% 32%, #3a4675 0%, var(--night) 70%); color: #fff; }
.tap-page.is-big { background: radial-gradient(circle at 50% 32%, #4f5480 0%, #18203d 72%); }
.tap-close { background: var(--white); border: 0; box-shadow: inset 0 -3px 0 rgba(31, 42, 72, .15), 0 4px 14px rgba(31, 42, 72, .15); color: var(--ink); display: grid; place-items: center; }
.tap-floaters { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.tap-floaters i { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .55; animation: blob 14s ease-in-out infinite alternate; }
.tap-floaters i:nth-child(1) { width: 260px; height: 260px; left: -80px; top: 12%; background: #fff; }
.tap-floaters i:nth-child(2) { width: 200px; height: 200px; right: -60px; top: 48%; background: var(--yellow); opacity: .35; animation-duration: 18s; }
.tap-floaters i:nth-child(3) { width: 220px; height: 220px; left: 30%; bottom: -90px; background: var(--pink); opacity: .22; animation-duration: 22s; }
.tap-page.is-secret .tap-floaters i { opacity: .16; }
@keyframes blob { to { transform: translate(40px, -30px) scale(1.15); } }
.tap-stage { margin-top: 64px; overflow: visible; }
.tap-doll { touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.tap-doll:focus-visible { outline: 3px dashed var(--pink); outline-offset: 6px; border-radius: 30px; }
.tap-look, .tap-act { display: block; width: 100%; height: 100%; }
.tap-look { transition: transform .5s cubic-bezier(.3, 1.3, .5, 1); }
.tap-act { transform-origin: 50% 90%; }
.tap-page.play .tap-doll { animation: tapDrop .95s cubic-bezier(.3, 1.4, .5, 1) both, tapIdle 3.4s ease-in-out .95s infinite; }
.tap-page.play .tap-bubble { animation: none; }
.tap-bubble { top: auto; bottom: calc(100% - 22px); white-space: normal; width: max-content; max-width: min(280px, 82vw); text-wrap: balance;
  background: var(--white); color: var(--ink); border: 0; border-radius: 20px; padding: 9px 16px; font-size: 15px; line-height: 1.35;
  box-shadow: 0 4px 0 rgba(31, 42, 72, .12), 0 10px 24px rgba(31, 42, 72, .14); opacity: 0; transition: opacity .25s; transform: translateX(-50%); }
.tap-bubble::after { border-top-color: var(--white); bottom: -8px; }
.tap-bubble.shown { opacity: 1; }
.tap-bubble.pop { animation: tapBubble .35s cubic-bezier(.2, 1.6, .4, 1) both !important; }
.tap-bubble:not(.shown) { animation: none !important; }
.tap-poke { opacity: .6; font-weight: 700; }
.tap-title { color: var(--pink-dark); }
.tap-page.is-secret .tap-title { color: #e7dcff; }
.tap-page.is-big .tap-name { color: #fff; }
.tap-page.is-big .tap-title { color: var(--yellow); }
.tap-extra.tier-badge { margin: 10px auto 0; }
.tap-page.is-secret .btn-primary { background: var(--white); color: var(--ink); box-shadow: inset 0 -4px 0 rgba(31, 42, 72, .18); }

/* 睡着：歪头 + 呼吸 + zzz */
.tap-zzz { position: absolute; z-index: 4; right: 26px; top: 26px; pointer-events: none; display: none; font-family: var(--f-display); font-weight: 800; color: var(--ink); }
.tap-page.is-secret .tap-zzz { color: #fff; }
.tap-page.asleep .tap-zzz { display: block; }
.tap-zzz b { position: absolute; opacity: 0; animation: zzz 2.4s ease-in infinite; font-size: 18px; }
.tap-zzz b:nth-child(2) { animation-delay: .8s; font-size: 22px; }
.tap-zzz b:nth-child(3) { animation-delay: 1.6s; font-size: 28px; }
@keyframes zzz { 0% { transform: translate(0, 0) rotate(-10deg); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(26px, -50px) rotate(12deg); opacity: 0; } }
.tap-page.asleep .tap-doll { animation: none !important; }
.tap-page.asleep .tap-look { transform: none !important; }
.tap-page.asleep .tap-act { animation: sleepy 3.4s ease-in-out infinite; }
@keyframes sleepy { 0%, 100% { transform: rotate(9deg) translateY(10px) scale(1, 1); } 50% { transform: rotate(10deg) translateY(12px) scale(1.03, .96); } }

/* 通用反应 */
.tap-act.do-startle { animation: startle .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes startle { 0% { transform: rotate(9deg) translateY(10px); } 35% { transform: translateY(-36px) scale(.94, 1.1); } 70% { transform: translateY(0) scale(1.08, .92); } 100% { transform: none; } }
.tap-act.do-dizzy { animation: dizzy 1.1s ease-in-out; }
@keyframes dizzy { 0%, 100% { transform: none; } 20% { transform: rotate(-14deg) translateX(-8px); } 40% { transform: rotate(12deg) translateX(8px); } 60% { transform: rotate(-9deg) translateX(-5px); } 80% { transform: rotate(5deg); } }
.tap-act.do-pet { animation: pet 1.2s ease-in-out; }
@keyframes pet { 0%, 100% { transform: none; } 25% { transform: rotate(-6deg) scale(1.05, .95); } 50% { transform: rotate(5deg) scale(1.03, .97); } 75% { transform: rotate(-3deg) scale(1.04, .96); } }
.tap-act.do-look-l { animation: lookL 1.6s ease-in-out; }
.tap-act.do-look-r { animation: lookR 1.6s ease-in-out; }
.tap-act.do-look-up { animation: lookUp 1.6s ease-in-out; }
@keyframes lookL { 0%, 100% { transform: none; } 25%, 70% { transform: translateX(-10px) rotate(-8deg); } }
@keyframes lookR { 0%, 100% { transform: none; } 25%, 70% { transform: translateX(10px) rotate(8deg); } }
@keyframes lookUp { 0%, 100% { transform: none; } 25%, 70% { transform: translateY(-6px) scale(.98, 1.03); } }

/* 每只自己的动法：do-poke 用全幅度，do-idle 用一半 */
.tap-act.do-idle { --amp: .5; }
.tap-act.do-poke { --amp: 1; }
.mv-hop .tap-act.do-poke, .mv-hop .tap-act.do-idle { animation: mvHop .7s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes mvHop { 0% { transform: none; } 15% { transform: scale(1.1, .88); } 45% { transform: translateY(calc(-46px * var(--amp))) scale(.94, 1.08) rotate(-4deg); } 75% { transform: scale(1.08, .92); } 100% { transform: none; } }
.mv-sway .tap-act.do-poke, .mv-sway .tap-act.do-idle { animation: mvSway 1.3s ease-in-out; }
@keyframes mvSway { 0%, 100% { transform: none; } 30% { transform: rotate(calc(-9deg * var(--amp))); } 70% { transform: rotate(calc(7deg * var(--amp))); } }
.mv-peek .tap-act.do-poke, .mv-peek .tap-act.do-idle { animation: mvPeek 1.2s ease-in-out; }
@keyframes mvPeek { 0%, 100% { transform: none; } 20% { transform: scaleX(-1); } 60% { transform: scaleX(-1) rotate(calc(5deg * var(--amp))); } 80% { transform: scaleX(1) rotate(-2deg); } }
.mv-zoom .tap-act.do-poke, .mv-zoom .tap-act.do-idle { animation: mvZoom .7s ease-out; }
@keyframes mvZoom { 0%, 100% { transform: none; } 20% { transform: translateX(calc(-40px * var(--amp))) rotate(-10deg); } 45% { transform: translateX(calc(40px * var(--amp))) rotate(10deg); } 70% { transform: translateX(calc(-12px * var(--amp))) rotate(-3deg); } }
.mv-bounce .tap-act.do-poke, .mv-bounce .tap-act.do-idle { animation: mvBounce .9s ease-out; }
@keyframes mvBounce { 0%, 100% { transform: none; } 15%, 47%, 79% { transform: scale(1.06, .94); } 31% { transform: translateY(calc(-22px * var(--amp))); } 63% { transform: translateY(calc(-14px * var(--amp))); } 90% { transform: translateY(calc(-6px * var(--amp))); } }
.mv-lean .tap-act.do-poke, .mv-lean .tap-act.do-idle { animation: mvLean 1.1s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes mvLean { 0%, 100% { transform: none; } 30%, 70% { transform: rotate(calc(13deg * var(--amp))) translateX(calc(10px * var(--amp))); } }
.mv-waddle .tap-act.do-poke, .mv-waddle .tap-act.do-idle { animation: mvWaddle 1s linear; }
@keyframes mvWaddle { 0%, 100% { transform: none; } 12% { transform: rotate(-9deg) translateX(-6px); } 25% { transform: translateX(-10px); } 37% { transform: rotate(9deg) translateX(-4px); } 50% { transform: translateX(0); } 62% { transform: rotate(-9deg) translateX(6px); } 75% { transform: translateX(10px); } 87% { transform: rotate(9deg) translateX(4px); } }
.mv-hug .tap-act.do-poke, .mv-hug .tap-act.do-idle { animation: mvHug 1s ease-in-out; }
@keyframes mvHug { 0%, 100% { transform: none; } 35%, 65% { transform: scale(calc(1 + .12 * var(--amp)), calc(1 - .08 * var(--amp))) translateY(4px); } }
.mv-tilt .tap-act.do-poke, .mv-tilt .tap-act.do-idle { animation: mvTilt 1.5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes mvTilt { 0%, 100% { transform: none; } 20%, 60% { transform: rotate(calc(-16deg * var(--amp))); } 75% { transform: rotate(calc(6deg * var(--amp))); } }
.mv-stomp .tap-act.do-poke, .mv-stomp .tap-act.do-idle { animation: mvStomp .8s cubic-bezier(.5, 0, .7, 1); }
@keyframes mvStomp { 0%, 100% { transform: none; } 40% { transform: translateY(calc(-26px * var(--amp))) rotate(-3deg); } 55% { transform: translateY(0) scale(1.14, .86); } 70% { transform: scale(.97, 1.03); } }
.mv-wiggle .tap-act.do-poke, .mv-wiggle .tap-act.do-idle { animation: mvWiggle .9s ease-in-out; }
@keyframes mvWiggle { 0%, 100% { transform: none; } 12% { transform: rotate(-12deg) translateY(-4px); } 25% { transform: rotate(12deg); } 37% { transform: rotate(-12deg) translateY(-4px); } 50% { transform: rotate(12deg); } 70% { transform: rotate(calc(360deg * var(--amp) - 360deg)) scale(1.05); } }
.mv-float .tap-act.do-poke, .mv-float .tap-act.do-idle { animation: mvFloat 2s ease-in-out; }
@keyframes mvFloat { 0%, 100% { transform: none; } 45% { transform: translateY(calc(-34px * var(--amp))) rotate(-4deg); } 70% { transform: translateY(calc(-26px * var(--amp))) rotate(3deg); } }
.mv-shy .tap-act.do-poke, .mv-shy .tap-act.do-idle { animation: mvShy 1.4s ease-in-out; }
@keyframes mvShy { 0%, 100% { transform: none; } 20%, 55% { transform: scale(.86) translateY(16px) rotate(-6deg); } 70% { transform: scale(.95) translateY(6px) rotate(4deg); } }
.mv-spin .tap-act.do-poke { animation: mvSpin .8s cubic-bezier(.3, 1.3, .5, 1); }
.mv-spin .tap-act.do-idle { animation: mvHop .7s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes mvSpin { 0% { transform: none; } 15% { transform: scale(1.08, .9); } 60% { transform: translateY(-40px) rotate(360deg); } 85% { transform: translateY(0) rotate(360deg) scale(1.06, .94); } 100% { transform: rotate(360deg); } }
.mv-purr .tap-act.do-poke, .mv-purr .tap-act.do-idle { animation: mvPurr 1.2s ease-in-out; }
@keyframes mvPurr { 0%, 100% { transform: none; } 25%, 75% { transform: scale(1.05, .95); } 50% { transform: scale(1.02, .98) rotate(-3deg); } }

@media (prefers-reduced-motion: reduce) {
  .tap-act, .tap-look, .halo, .tap-floaters i, .tap-zzz b { animation: none !important; transition: none !important; }
}
.tap-lang { position: fixed; top: 14px; left: 14px; z-index: 41; background: rgba(255, 255, 255, .85); }
.reveal-box.is-secret #reveal-go { background: var(--white); color: var(--ink); box-shadow: inset 0 -4px 0 rgba(31, 42, 72, .18); }
.reveal-box.is-secret #reveal-preview { color: #e7dcff; }
.reveal-box.is-big #reveal-go { background: var(--yellow); box-shadow: inset 0 -4px 0 var(--yellow-dark); }

/* 隐藏款专属：编号、每日一句、取名字；普通款底部的小锁提示 */
.tap-rare { margin-top: 8px; font-size: 13px; font-weight: 700; opacity: .85; }
.tap-page.is-big .tap-rare { color: var(--yellow); }
.tap-daily { margin: 16px auto 0; max-width: 340px; padding: 14px 18px; border-radius: 20px; text-align: center;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.tap-daily b { display: block; font-family: var(--f-display); font-size: 15px; letter-spacing: .04em; color: var(--yellow); margin-bottom: 6px; }
.tap-daily p { white-space: pre-line; font-size: 14.5px; line-height: 1.6; font-weight: 700; }
.tap-naming { margin-top: 12px; }
.tap-naming .link-btn { color: #e7dcff !important; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.tap-name-form { display: grid; gap: 8px; max-width: 320px; margin: 10px auto 0; }
.tap-name-form[hidden] { display: none; }
.tap-name-form input { width: 100%; padding: 11px 14px; border-radius: 14px; border: 0; font: inherit; font-weight: 700; color: var(--ink); background: var(--white); }
.tap-name-form .btn { margin: 0; }
.tap-name-note { font-size: 12px; opacity: .75; line-height: 1.5; }
.tap-lock { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 18px auto 0; max-width: 320px; font-size: 12.5px; font-weight: 700; opacity: .55; }
.tap-lock[hidden] { display: none; }
.tap-lock .ico { width: 15px; height: 15px; flex: none; }

/* 题目下面的导航：上一题 / 下一题 / 看结果 */
.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; min-height: 50px; }
.quiz-prev { font-weight: 800; font-size: 15px; color: var(--ink); background: var(--white); border-radius: 999px; padding: 11px 18px; box-shadow: inset 0 0 0 2px var(--line); }
.quiz-prev:hover { background: var(--blue-soft); }
.quiz-next { width: auto; margin: 0; padding: 12px 22px; }
.quiz-next[hidden] { display: none; }

/* ============================================================
 *  合成 / 粉碎 / 积分 / 养成
 * ============================================================ */
/* 星级标签 */
.star-tag { display: inline-block; font-size: .62em; letter-spacing: -.08em; padding: .12em .5em .14em .42em; border-radius: 999px; vertical-align: .22em; font-family: var(--f-body); font-weight: 900; line-height: 1.1; }
.star-tag.s2 { background: linear-gradient(180deg, #ffffff, #d7deea); color: #66708a; box-shadow: inset 0 -2px 0 #b8c2d6; }
.star-tag.s3 { background: linear-gradient(180deg, #ffe27a, #ffc83d); color: #8a5a00; box-shadow: inset 0 -2px 0 #e0a91f; }
.g-item .star-tag { position: absolute; left: 8px; top: 8px; font-size: 11px; z-index: 2; }
.g-item.gone .doll-img img { filter: grayscale(1) opacity(.45); }
.g-item[data-sheet] { cursor: pointer; }

/* 积分卡 */
.wallet-card { margin-bottom: 14px; }
.wallet-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wallet-label { font-weight: 800; font-size: 13px; color: var(--ink-soft); margin-right: 8px; }
.wallet-points { font-family: var(--f-display); font-size: 30px; line-height: 1; color: var(--ink); vertical-align: -3px; }
.wallet-pop { display: inline-block; margin-left: 8px; font-weight: 900; font-size: 15px; opacity: 0; }
.wallet-pop.up { color: #20a86b; } .wallet-pop.down { color: var(--pink-dark); }
.wallet-pop.show { animation: popUp 1.4s ease forwards; }
@keyframes popUp { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.wallet-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { font-weight: 800; font-size: 13px; padding: 8px 13px; border-radius: 999px; background: var(--yellow); box-shadow: inset 0 -3px 0 var(--yellow-dark); color: var(--ink); }
.chip-btn:disabled { background: var(--blue-soft); box-shadow: none; color: var(--ink-soft); }
.wallet-hint { font-size: 12px; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }

/* 某一只的面板 */
.sheet-box { max-width: 420px; text-align: center; }
.sheet-stage { position: relative; height: 210px; margin: 6px -4px 10px; border-radius: 22px; background: var(--doll-soft, #fff7d6); display: grid; place-items: center; overflow: hidden; }
.sheet-stage .doll-img { background: none !important; box-shadow: none !important; border: 0 !important; width: 170px; height: 170px; }
.sheet-stage .doll-img img { width: 100%; height: 100%; object-fit: contain; }
.sheet-stage.gone .doll-img img { filter: grayscale(1) opacity(.4); }
.sheet-stage.st-2 .doll-img img { filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 16px rgba(170, 190, 255, .9)); }
.sheet-stage.st-3 .doll-img img { filter: drop-shadow(0 0 8px #fff3b0) drop-shadow(0 0 20px rgba(255, 200, 61, .95)); animation: goldPulse 2.4s ease-in-out infinite; }
@keyframes goldPulse { 50% { filter: drop-shadow(0 0 12px #fff3b0) drop-shadow(0 0 30px rgba(255, 200, 61, 1)); } }
.sheet-bubble { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: var(--white); border-radius: 16px; padding: 6px 12px; font-weight: 800; font-size: 13.5px; box-shadow: 0 6px 16px rgba(31, 42, 72, .15); white-space: nowrap; opacity: 0; z-index: 3; }
.sheet-bubble.pop { animation: tapBubble .35s cubic-bezier(.2, 1.6, .4, 1) both, fadeLater 3.6s ease 0s forwards; }
@keyframes fadeLater { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
.sheet-name { font-size: 24px; margin: 0; }
.sheet-sub { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.love { display: flex; align-items: center; gap: 10px; margin: 12px auto 4px; max-width: 300px; font-weight: 800; font-size: 13px; }
.love span { white-space: nowrap; }
.love-bar { flex: 1; height: 9px; border-radius: 9px; background: var(--pink-soft); overflow: hidden; }
.love-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #ff9fbd, var(--pink-dark)); transition: width .5s ease; }
.sheet-copies-h { font-size: 12px; font-weight: 800; color: var(--ink-soft); margin-top: 12px; }
.copies { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 6px; }
.copy { padding: 6px 10px; border-radius: 12px; background: var(--blue-soft); font-weight: 900; font-size: 12px; color: #8a6a00; display: inline-flex; gap: 5px; align-items: center; }
.copy small { color: var(--ink-soft); font-weight: 800; }
.copy.on { background: var(--yellow); box-shadow: inset 0 -3px 0 var(--yellow-dark); }
.sheet-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 2px var(--line); font-weight: 800; font-size: 11.5px; color: var(--ink); line-height: 1.2; }
.act svg, .act .bg-swatch { width: 26px; height: 26px; }
.act .ico { width: 22px; height: 22px; }
.act.on { background: var(--yellow-soft); box-shadow: inset 0 0 0 2px var(--yellow-dark); }
.act.locked { opacity: .55; }
.act-danger { color: var(--pink-dark); }
.sheet-picker:empty { display: none; }
.sheet-picker { margin-top: 12px; padding: 12px; border-radius: 18px; background: var(--blue-soft); }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; border-radius: 14px; background: var(--white); font-size: 12px; }
.item svg, .item .bg-swatch { width: 34px; height: 34px; }
.item b { font-weight: 800; }
.item small { color: var(--ink-soft); font-weight: 700; font-size: 10.5px; }
.item.on { box-shadow: inset 0 0 0 2px var(--pink); }
.item.poor { opacity: .5; }
.item.shake { animation: shake .35s; }
.picker-note { font-size: 13.5px; line-height: 1.55; font-weight: 700; }
.picker-err { font-size: 13px; font-weight: 800; color: var(--pink-dark); margin-bottom: 6px; min-height: 0; }
.picker-err:empty { display: none; }
.confirm-row { display: flex; gap: 8px; margin-top: 10px; }
.confirm-row .btn { margin: 0; flex: 1; }
.btn-danger { background: var(--pink-dark); color: #fff; box-shadow: inset 0 -4px 0 #c7355e; }
.merge-box { margin-top: 14px; }
.merge-btn { margin: 0 0 6px; }
.merge-need { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; margin-top: 4px; }
.ladder { margin-top: 14px; text-align: left; font-size: 12.5px; line-height: 1.5; padding: 12px 14px; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--line); }
.ladder b { display: block; font-family: var(--f-display); font-size: 14px; margin-bottom: 4px; }
.ladder p { color: var(--ink-soft); padding-left: 18px; position: relative; }
.ladder p::before { content: ""; position: absolute; left: 2px; top: .45em; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 2px #c9cfdd; }
.ladder p.on { color: var(--ink); font-weight: 800; }
.ladder p.on::before { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--yellow-dark); }

/* 粉碎：抖一抖，碎成两半掉下去 */
.sheet-stage.shredding .doll-img { animation: shredShake .9s ease forwards; }
@keyframes shredShake {
  0% { transform: none; } 15% { transform: rotate(-6deg); } 30% { transform: rotate(6deg); } 45% { transform: rotate(-4deg) scale(.96); }
  60% { transform: scale(1.06); clip-path: inset(0 0 0 0); opacity: 1; }
  100% { transform: translateY(40px) scale(.6) rotate(12deg); opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 40%, 0 70%); }
}
/* 合成：三只从两边飞到中间，闪一下 */
.merge-ghost { position: absolute; width: 90px; height: 90px; object-fit: contain; top: 50%; left: 50%; margin: -45px; z-index: 2; animation: ghostIn 1s cubic-bezier(.5, 0, .7, 1) forwards; }
.merge-ghost.g0 { --sx: -130px; --sy: 30px; } .merge-ghost.g1 { --sx: 130px; --sy: 30px; } .merge-ghost.g2 { --sx: 0px; --sy: -110px; }
@keyframes ghostIn { from { transform: translate(var(--sx), var(--sy)) scale(.9); opacity: 1; } to { transform: none; opacity: 0; } }
.sheet-stage.merging .doll-img { animation: mergeSqueeze 1s ease forwards; }
@keyframes mergeSqueeze { 60% { transform: scale(.85); } 100% { transform: scale(1.12); } }
.sheet-stage.merged-flash::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0) 70%); animation: flash .8s ease forwards; pointer-events: none; }

/* 商店 */
.shop-box { max-width: 420px; }
.shop-points { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.shop-points b { color: var(--ink); font-size: 18px; }
.tabs { display: flex; gap: 6px; justify-content: center; margin: 12px 0; }
.tab { padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; background: var(--blue-soft); }
.tab.on { background: var(--ink); color: #fff; }
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.shop-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 18px; box-shadow: inset 0 0 0 2px var(--line); font-size: 13px; }
.shop-item svg, .shop-item .bg-swatch { width: 54px; height: 54px; }
.shop-item b { font-weight: 800; }
.shop-item small { color: var(--ink-soft); font-weight: 700; font-size: 11.5px; }
.shop-item .owned { font-weight: 800; color: #20a86b; font-size: 12.5px; }
.shop-item .price-pts { font-weight: 900; }
.btn.mini { padding: 7px 12px; font-size: 12.5px; margin: 4px 0 0; width: auto; }

/* 优惠券 */
.coupon-prog { margin: 12px auto 14px; }
.coupon-h { font-family: var(--f-display); margin: 18px 0 8px; font-size: 15px; }
.coupon-list { list-style: none; display: grid; gap: 6px; }
.coupon-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 14px; background: var(--blue-soft); font-weight: 800; font-size: 13px; }
.coupon-list code { font-family: var(--f-mono, monospace); letter-spacing: .04em; }

/* 名人堂 */
.fame-list { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.fame-item { width: 130px; text-align: center; }
.fame-item .doll-img { box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(255, 200, 61, .6); border-radius: 22px; }
.fame-item b { display: block; margin-top: 8px; font-family: var(--f-display); }
.fame-item small { color: var(--ink-soft); font-size: 12px; }

/* 背景（养成里买的），面板和碰一碰页面都用 */
.bg-swatch { display: inline-block; border-radius: 10px; background: #f2f4f8; box-shadow: inset 0 0 0 2px rgba(31, 42, 72, .12); }
.bg-bg_meadow { background: radial-gradient(ellipse 60% 24% at 18% 100%, #8fd16f 60%, transparent 61%), radial-gradient(ellipse 70% 26% at 86% 100%, #7cc65c 60%, transparent 61%), linear-gradient(#bfe6ff, #e9f8ff 60%, #a8dd8a 60%) !important; }
.bg-bg_stars { background: radial-gradient(circle at 18% 22%, #fff 0 1.2px, transparent 2px) 0 0 / 70px 70px, radial-gradient(circle at 62% 58%, #ffe9a0 0 1.6px, transparent 2.4px) 0 0 / 90px 90px, radial-gradient(circle at 80% 15%, #3b4a86, #141b36 70%) !important; }
.bg-bg_beach { background: radial-gradient(circle at 82% 18%, #fff6c9 0 8%, transparent 9%), linear-gradient(#bfe8ff 0 46%, #6fc3e8 46% 62%, #f6deb0 62%) !important; }
.bg-bg_sakura { background: radial-gradient(ellipse 5px 3px at 30% 30%, #ff9fbd 98%, transparent) 0 0 / 46px 52px, radial-gradient(ellipse 4px 3px at 70% 70%, #ffb8cd 98%, transparent) 0 0 / 60px 64px, linear-gradient(#fff0f5, #ffd6e4) !important; }
.bg-bg_snow { background: radial-gradient(circle at 30% 30%, #fff 0 2px, transparent 2.6px) 0 0 / 34px 34px, radial-gradient(circle at 70% 60%, #fff 0 1.4px, transparent 2px) 0 0 / 50px 50px, linear-gradient(#cfe4fb, #eef6ff) !important; }
.tap-page[class*=" bg-bg_"] { color: var(--ink); }
.tap-page.bg-bg_stars { color: #fff; }
.tap-page[class*=" bg-bg_"]:not(.bg-bg_stars) .tap-title { color: var(--pink-dark); }
.tap-page[class*=" bg-bg_"]:not(.bg-bg_stars) .tap-name { color: var(--ink); }
.tap-page[class*=" bg-bg_"]:not(.bg-bg_stars) .tap-floaters { display: none; }

/* 碰一碰页面：星级光环、亲密度、告别 */
.tap-love { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--pink-dark); }
.tap-love[hidden] { display: none; }
.tap-page.st-2 .tap-act img { filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 22px rgba(170, 190, 255, .95)); }
.tap-page.st-3 .tap-act img { filter: drop-shadow(0 0 10px #fff3b0) drop-shadow(0 0 26px rgba(255, 200, 61, 1)); animation: goldPulse 2.4s ease-in-out infinite; }
.tap-page.st-3 .tap-stage::before { content: ""; position: absolute; inset: -40px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 20% 30%, #ffe27a 0 2px, transparent 3px), radial-gradient(circle at 75% 25%, #fff 0 1.6px, transparent 2.4px), radial-gradient(circle at 60% 80%, #ffe27a 0 1.8px, transparent 2.6px), radial-gradient(circle at 30% 75%, #fff 0 1.4px, transparent 2px);
  animation: sparkleDrift 6s ease-in-out infinite alternate; }
@keyframes sparkleDrift { from { transform: translateY(6px) rotate(-3deg); opacity: .6; } to { transform: translateY(-10px) rotate(3deg); opacity: 1; } }
.tap-page.is-gone .tap-act img { filter: grayscale(.9) opacity(.55); }
.tap-page.is-gone .tap-poke, .tap-page.is-gone .tap-extra, .tap-page.is-gone .tap-daily, .tap-page.is-gone .tap-rare { display: none; }
@media (prefers-reduced-motion: reduce) {
  .sheet-stage.st-3 .doll-img img, .tap-page.st-3 .tap-act img, .tap-page.st-3 .tap-stage::before { animation: none !important; }
}
.tap-page:not(.is-secret) .tap-naming .link-btn, .tap-page[class*=" bg-bg_"]:not(.bg-bg_stars) .tap-naming .link-btn { color: var(--pink-dark) !important; }


/* ============================================================
 *  乐园 v2：粉彩影棚
 * ============================================================ */
.page-play { max-width: 1040px; margin: 0 auto; }
.play-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.play-title { font-size: 28px; line-height: 1.1; }
.play-sub { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.play-pts { font-size: 13px; font-weight: 800; color: var(--ink-soft); white-space: nowrap; }
.play-pts b { font-family: var(--f-display); font-size: 22px; color: var(--ink); }
.park { position: relative; height: min(68vh, 580px); min-height: 420px; border-radius: 26px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  background: #f2e2d3; box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 24px 48px -24px rgba(80, 60, 50, .45), 0 0 0 1px rgba(80, 60, 50, .06); isolation: isolate; }
.park-sky, .park-weather, .park-actors, .park-fx, .park-light { position: absolute; inset: 0; }
.park-far { position: absolute; left: 0; right: 0; }
.park-ground { position: absolute; left: 0; right: 0; bottom: 0; }
.park-weather { pointer-events: none; z-index: 1; }
.park-actors { z-index: 2; }
/* 一层柔光 + 暗角 + 胶片颗粒：让整个画面像拍出来的，而不是拼出来的 */
.park-light { z-index: 3; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 252, 245, .35) 0%, rgba(255, 252, 245, 0) 40%),
    radial-gradient(ellipse 120% 95% at 50% 45%, transparent 58%, rgba(70, 45, 35, .16) 100%); }
/* 很淡的颗粒，只是让平面不那么"电脑" */
.park-light::after { content: ""; position: absolute; inset: 0; opacity: .14; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.park-light.dark::after { opacity: .08; }
.park-light.dark { background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 50%, rgba(5, 8, 25, .45) 100%), linear-gradient(115deg, rgba(160, 180, 255, .12), transparent 40%); mix-blend-mode: normal; }
.park-fx { z-index: 4; pointer-events: none; }
.pg-pod, .pg-food, .pg-ball, .pg-sphere { position: absolute; left: 0; top: 0; pointer-events: none; }
.pg-pod svg { display: block; overflow: visible; }
.pg-arch { position: absolute; z-index: 1; border-radius: 999px 999px 0 0; opacity: .75; filter: blur(.6px); box-shadow: inset -14px 0 30px rgba(80, 60, 50, .08); }
.pg-sphere { border-radius: 50%; background: radial-gradient(circle at 32% 30%, #fff 0 8%, var(--c) 45%, color-mix(in srgb, var(--c) 78%, #6b4a3a) 100%); filter: blur(1.3px); opacity: .9; }
.pg-food svg { width: 100%; height: 100%; filter: drop-shadow(2px 3px 2px rgba(80, 60, 50, .25)); }
/* 布兜兜 */
.pa { position: absolute; left: 0; top: 0; cursor: grab; touch-action: none; will-change: transform; }
.pa.held { cursor: grabbing; }
.pa-body { position: absolute; inset: 0; will-change: transform; }
.pa-body img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; pointer-events: none; -webkit-user-drag: none;
  filter: drop-shadow(0 1px 1px rgba(60, 40, 30, .18)); }
/* 两层影子：脚下贴地的深影 + 外面一圈柔和的环境影，往右下偏（光从左上来） */
.pa-shadow { position: absolute; left: 14%; right: 6%; bottom: -6%; height: 16%; border-radius: 50%; transform-origin: 45% 50%;
  background: radial-gradient(closest-side, rgba(70, 45, 35, .42), rgba(70, 45, 35, .18) 55%, transparent); filter: blur(1.5px); }
.pa-ring { position: absolute; left: 14%; right: 14%; bottom: -8%; height: 16%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 3px rgba(255, 122, 162, .45); opacity: 0; transition: opacity .2s; }
.pa.sel .pa-ring { opacity: 1; }
.pa.st-2 .pa-body img { filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 12px rgba(170, 190, 255, .9)); }
.pa.st-3 .pa-body img { filter: drop-shadow(0 0 5px #fff3b0) drop-shadow(0 0 16px rgba(255, 200, 61, .95)); }
/* 晕：头上一圈小星星在转 */
.pa-dizzy { position: absolute; left: 30%; right: 30%; top: -6%; height: 22%; display: none; animation: dizzySpin 1s linear infinite; }
.pa.dizzy .pa-dizzy { display: block; }
.pa-dizzy i { position: absolute; width: 22%; aspect-ratio: 1; background: #ffd84d; clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%); }
.pa-dizzy i:nth-child(1) { left: 0; top: 40%; } .pa-dizzy i:nth-child(2) { left: 39%; top: 0; } .pa-dizzy i:nth-child(3) { right: 0; top: 50%; }
@keyframes dizzySpin { to { transform: rotate(360deg); } }
.ouch { position: absolute; width: 22px; height: 22px; margin: -11px; background: #ff7a7a; clip-path: polygon(50% 0, 60% 35%, 98% 30%, 68% 55%, 85% 95%, 50% 72%, 15% 95%, 32% 55%, 2% 30%, 40% 35%); animation: ouchPop 1.4s ease-out forwards; }
@keyframes ouchPop { 0% { transform: scale(0) rotate(-20deg); } 20% { transform: scale(1.3) rotate(10deg); } 40% { transform: scale(1); } 100% { transform: scale(.9) translateY(-14px); opacity: 0; } }
.pa-bubble { position: absolute; left: 0; top: 0; background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 14px; padding: 6px 11px; font-weight: 800; font-size: 12.5px; white-space: nowrap; max-width: 230px; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 8px 18px -6px rgba(60, 40, 30, .3); opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 2000; }
.pa-bubble.on { opacity: 1; animation: tapBubble .3s cubic-bezier(.2, 1.6, .4, 1); }
.park .fx-up { width: 18px; height: 18px; margin: -9px; }
.crumb { position: absolute; width: 4px; height: 4px; border-radius: 1px; background: #c98a44; animation: crumb .7s ease-in forwards; }
@keyframes crumb { to { transform: translate(var(--dx), 28px) rotate(120deg); opacity: 0; } }
.zz { position: absolute; font-family: var(--f-display); font-size: 14px; color: #fff; text-shadow: 0 1px 0 rgba(31, 42, 72, .5); animation: zzFloat 2.2s ease-out forwards; }
@keyframes zzFloat { from { opacity: 0; transform: translate(0, 0) scale(.7); } 20% { opacity: 1; } to { opacity: 0; transform: translate(18px, -40px) scale(1.2); } }
/* 球：光泽 + 落在表面的影子 */
.pg-ball::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -14%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 45, 35, .35), transparent); transform: scale(var(--sh, 1)); opacity: var(--sh, 1); }
.ball-in { position: absolute; inset: 0; transform: translateY(var(--lift, 0)) rotate(var(--rot, 0)); }
.ball-ball .ball-in { border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 9%, #ff9fbd 30%, #ec4f7c 78%, #b8325a 100%); }
.ball-ball .ball-in::after { content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 12%; background: rgba(255, 255, 255, .85); border-radius: 4px; }
.ball-yarn .ball-in svg { width: 100%; height: 100%; display: block; }
.pg-bubble { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .95) 0 12%, rgba(255, 255, 255, .15) 30%, rgba(170, 220, 255, .25) 70%, rgba(255, 190, 220, .5) 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8); }
.pg-bubble.pop { animation: bubblePop .25s ease-out forwards; }
@keyframes bubblePop { to { opacity: 0; transform: scale(1.8); } }
.pg-kite { position: absolute; left: 0; top: 0; width: 44px; height: 44px; }
.pg-kite svg { width: 100%; height: 100%; }
.pg-kite-line { position: absolute; left: 0; top: 0; overflow: visible; }
.wx { position: absolute; top: -12px; border-radius: 50%; animation: wxFall linear infinite; }
.wx-snow { width: 5px; height: 5px; background: #fff; box-shadow: 0 0 4px rgba(255, 255, 255, .8); }
.wx-petal { width: 9px; height: 6px; background: #ffb8cd; border-radius: 60% 0 60% 0; }
@keyframes wxFall { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(var(--sw), 50vh) rotate(180deg); } 100% { transform: translate(0, 100vh) rotate(360deg); } }
.star-dot { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out infinite; }
.park.is-night .pa:not(.st-2):not(.st-3) .pa-body img { filter: brightness(.8) saturate(.9); }
.park-msg { position: absolute; z-index: 5; left: 50%; top: 12px; transform: translateX(-50%) translateY(-8px); background: rgba(31, 42, 72, .92); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 13px;
  max-width: calc(100% - 24px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; display: flex; align-items: center; gap: 8px; }
.park-msg.on { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.park-msg .btn.mini { flex: none; }
/* 选中：名字 + 喜好 + 小怪癖 */
.play-sel { margin-top: 12px; text-align: center; }
.play-sel[hidden] { display: none; }
.sel-main { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sel-main b { font-family: var(--f-display); font-size: 19px; }
.sel-love { font-size: 12px; font-weight: 800; color: var(--pink-dark); background: var(--pink-soft); padding: 3px 9px; border-radius: 999px; }
.sel-traits { display: flex; gap: 6px 12px; justify-content: center; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }
.sel-traits .quirk { color: var(--ink); }
/* 托盘 */
.tray { display: flex; gap: 14px; margin-top: 12px; overflow-x: auto; padding: 4px 2px 8px; -webkit-overflow-scrolling: touch; }
.tray-group { flex: none; }
.tray-group > span { display: block; font-size: 11px; font-weight: 800; color: var(--ink-soft); margin: 0 0 4px 4px; letter-spacing: .04em; }
.tray-group > div { display: flex; gap: 6px; }
.tray-item { position: relative; width: 60px; height: 64px; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line), 0 6px 14px -8px rgba(60, 40, 30, .35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; touch-action: none; cursor: grab; }
.tray-item svg, .tray-item .mini-ball, .tray-item .theme-dot { width: 30px; height: 30px; pointer-events: none; }
.mini-ball { display: block; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 9%, #ff9fbd 30%, #ec4f7c 78%, #b8325a 100%); }
.theme-dot { display: block; border-radius: 9px; box-shadow: inset 0 0 0 1.5px rgba(31, 42, 72, .1); }
.tray-item small { font-size: 10.5px; font-weight: 800; color: var(--ink-soft); pointer-events: none; }
.tray-item.locked { opacity: .55; }
.tray-item.locked::after { content: ""; position: absolute; right: 6px; top: 6px; width: 8px; height: 8px; border-radius: 2px; background: var(--ink-soft); }
.tray-item.shake { animation: shake .35s; }
.tray-ghost { position: fixed; left: 0; top: 0; width: 48px; height: 48px; z-index: 9999; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(31, 42, 72, .3)); }
.tray-ghost svg, .tray-ghost .mini-ball { width: 100%; height: 100%; }
.play-visitor { margin-top: 14px; text-align: center; }
.play-visitor p { font-size: 14px; margin-bottom: 10px; }
.chip-play { background: var(--pink); color: #fff; box-shadow: inset 0 -3px 0 var(--pink-dark); }
@media (min-width: 960px) { .park { height: 580px; } .play-title { font-size: 36px; } }
@media (prefers-reduced-motion: reduce) { .wx, .star-dot, .pa-dizzy { animation: none !important; } }

/* ---------- 乐园 v3：界面浮在场景上（磨砂玻璃），特效收敛 ---------- */
.play-top { display: block; margin-bottom: 12px; }
.play-title { font-size: 26px; display: inline; margin-right: 10px; }
.play-sub { display: inline; font-size: 13px; }
.park { height: min(76vh, 660px); min-height: 480px; }
@media (min-width: 960px) { .park { height: 660px; } .play-title { font-size: 30px; } }
.glass { background: rgba(255, 255, 255, .58); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 12px 30px -14px rgba(60, 40, 30, .4); }
.park-light.dark ~ .glass, .park.is-night .glass { background: rgba(30, 36, 70, .5); border-color: rgba(255, 255, 255, .18); color: #fff; }
.park.is-night .glass small, .park.is-night .sel-traits { color: rgba(255, 255, 255, .75); }
.park .play-pts { position: absolute; z-index: 6; top: 12px; right: 12px; margin: 0; padding: 6px 12px; border-radius: 999px; font-size: 11.5px; letter-spacing: .02em; }
.park .play-pts b { font-size: 17px; margin-left: 4px; }
.park .play-sel { position: absolute; z-index: 6; top: 12px; left: 12px; margin: 0; padding: 10px 12px; border-radius: 16px; text-align: left; max-width: min(62%, 320px); }
.park .sel-main { justify-content: flex-start; gap: 6px; }
.park .sel-main b { font-size: 16px; }
.park .sel-traits { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 6px; font-size: 11.5px; line-height: 1.4; }
.park .tray { position: absolute; z-index: 6; left: 50%; bottom: 12px; transform: translateX(-50%); margin: 0; padding: 7px 8px; border-radius: 22px; max-width: calc(100% - 20px); gap: 0; }
.park .tray-group > span { display: none; }
.park .tray-group + .tray-group { margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(31, 42, 72, .1); }
.park .tray-group > div { gap: 5px; }
.park .tray-item { width: 50px; height: 54px; border-radius: 14px; background: rgba(255, 255, 255, .72); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 4px 10px -6px rgba(60, 40, 30, .4); gap: 2px; }
.park .tray-item svg, .park .tray-item .mini-ball, .park .tray-item .theme-dot { width: 26px; height: 26px; }
.park .tray-item small { font-size: 9.5px; }
.park .tray-item:active { transform: scale(.94); }
.park.is-night .tray-item { background: rgba(255, 255, 255, .14); }
.park-msg { top: auto; bottom: 86px; }
/* 气泡：小一号的磨砂玻璃，带一个小尾巴 */
.pa-bubble { background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .95);
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 12px; box-shadow: 0 8px 18px -10px rgba(60, 40, 30, .45); overflow: visible; }
.pa-bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; margin-left: -4.5px; background: inherit; border-right: 1px solid rgba(255, 255, 255, .95); border-bottom: 1px solid rgba(255, 255, 255, .95); transform: rotate(45deg); border-radius: 0 0 2px 0; }
.pa-bubble.on { animation: bubbleIn .28s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes bubbleIn { from { opacity: 0; margin-top: 6px; } to { opacity: 1; margin-top: 0; } }
/* 晕：几颗白色小光点在头上转 */
.pa-dizzy { left: 32%; right: 32%; top: -2%; height: 16%; animation-duration: 1.6s; }
.pa-dizzy i { width: 16%; clip-path: none; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff, 0 0 12px rgba(255, 220, 140, .9); }
/* 摔疼：头上一块淡淡的红 */
.ouch { width: 30px; height: 20px; margin: -10px -15px; border-radius: 50%; clip-path: none; background: radial-gradient(closest-side, rgba(255, 110, 110, .55), rgba(255, 110, 110, 0)); animation: ouchFade 1.6s ease-out forwards; }
@keyframes ouchFade { 0% { transform: scale(.4); opacity: 0; } 20% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.park .fx-up { width: 13px; height: 13px; margin: -6.5px; opacity: .92; }
.park .pa-ring { border-width: 1.5px; box-shadow: 0 0 0 2px rgba(255, 143, 171, .35); }
.auth-forgot { display: block; margin: 10px auto 0; font-size: 13px; font-weight: 800; }
.auth-msg.ok { color: #1f8a5b; }

/* ---------- 乐园 v4：倒影、浮尘、视差、入场、声音、隐藏款 ---------- */
.pa-refl { position: absolute; inset: 0; transform-origin: 50% 100%; pointer-events: none; opacity: 0;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .35) 18%, transparent 42%); mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .35) 18%, transparent 42%); filter: blur(1.2px); }
.pa-refl img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.pa-shadow { left: 18%; right: -2%; }
.mote { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: 0 0 6px 1px rgba(255, 248, 225, .9);
  animation: moteFloat linear infinite alternate; opacity: .7; }
@keyframes moteFloat { 0% { transform: translate(0, 0); opacity: .2; } 50% { opacity: .85; } 100% { transform: translate(var(--mx), var(--my)); opacity: .3; } }
/* 视差：只有背景层跟着动，地面和布兜兜不动 */
.pg-arch { translate: calc(var(--px, 0) * -10px) calc(var(--py, 0) * -5px); transition: none; }
.pg-sphere { translate: calc(var(--px, 0) * -6px) calc(var(--py, 0) * -3px); }
.park-sky { background-position: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -8px); }
.park-weather { translate: calc(var(--px, 0) * -4px) calc(var(--py, 0) * -2px); }
/* 入场：场景先亮起来，布兜兜一只只落下 */
.park.intro .park-sky, .park.intro .park-ground, .park.intro .park-far, .park.intro .pg-pod, .park.intro .pg-arch { animation: sceneIn 1s ease both; }
@keyframes sceneIn { from { filter: brightness(.55) saturate(.7); } to { filter: none; } }
.pa.waiting { opacity: 0; }
.pa { transition: opacity .25s; }
.park.spotlit .park-sky, .park.spotlit .park-ground, .park.spotlit .park-far { filter: brightness(.72); transition: filter .5s; }
.park .park-sky, .park .park-ground, .park .park-far { transition: filter .9s; }
/* 声音开关 */
.park .play-pts { right: 58px; }
.park-sound { position: absolute; z-index: 6; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.park-sound svg { width: 18px; height: 18px; }
.park-sound .mute { display: none; }
.park-sound.off .wave { display: none; }
.park-sound.off .mute { display: inline; }
.park.is-night .park-sound { color: #fff; }

/* ---------- 隐藏款：顶光、光点、铭牌、宝座 ---------- */
.pg-spot { position: absolute; left: 0; top: 0; pointer-events: none; transition: opacity .6s; }
.pg-spot .beam { position: absolute; top: 0; bottom: 8%; left: 18%; right: 18%; clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); filter: blur(5px);
  background: linear-gradient(to bottom, rgba(255, 238, 200, 0), rgba(255, 232, 180, .28)); }
.pg-spot .pool { position: absolute; left: -6%; right: -6%; bottom: -9%; height: 24%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 185, .75), rgba(255, 236, 185, .25) 55%, rgba(255, 236, 185, 0)); }
.pg-spot.sec-small .beam { background: linear-gradient(to bottom, rgba(240, 232, 255, 0), rgba(238, 228, 255, .26)); }
.pg-spot.sec-small .pool { background: radial-gradient(closest-side, rgba(246, 240, 255, .8), rgba(232, 222, 255, .28) 55%, rgba(232, 222, 255, 0)); }
.park.spotlit .pg-spot .pool { animation: spotPulse 1.8s ease; }
@keyframes spotPulse { 0% { opacity: .2; transform: scale(.6); } 40% { opacity: 1; transform: scale(1.15); } 100% { transform: none; } }
.park.is-night .pg-spot .beam { background: linear-gradient(to bottom, rgba(255, 238, 200, 0), rgba(255, 232, 180, .2)); }
.pa-aura { position: absolute; left: 6%; right: 6%; top: 4%; bottom: 10%; pointer-events: none; animation: auraSpin 9s linear infinite; }
.pa-aura i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px rgba(255, 226, 150, .85); animation: twinkle 2.6s ease-in-out infinite; }
.pa.sec-small .pa-aura i { box-shadow: 0 0 6px 2px rgba(225, 212, 255, .9); }
.pa-aura i:nth-child(1) { left: 2%; top: 30%; } .pa-aura i:nth-child(2) { left: 46%; top: -2%; animation-delay: -.6s; }
.pa-aura i:nth-child(3) { right: 0; top: 40%; animation-delay: -1.2s; } .pa-aura i:nth-child(4) { left: 20%; bottom: 4%; animation-delay: -1.8s; }
.pa-aura i:nth-child(5) { right: 18%; bottom: 14%; animation-delay: -2.2s; width: 3px; height: 3px; }
@keyframes auraSpin { to { transform: rotate(360deg); } }
.pa.is-secret .pa-body img { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .9)) drop-shadow(0 6px 10px rgba(120, 90, 40, .18)); }
.pa-plate { position: absolute; left: 50%; bottom: -15%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px 2px 9px; border-radius: 4px;
  color: #8a6420; background: linear-gradient(180deg, rgba(255, 249, 230, .92), rgba(246, 228, 180, .92)); box-shadow: 0 0 0 1px rgba(216, 180, 90, .6), 0 4px 8px -4px rgba(120, 90, 40, .45); }
.pa.sec-small .pa-plate { color: #6a5a92; background: linear-gradient(180deg, rgba(250, 248, 255, .92), rgba(228, 220, 250, .92)); box-shadow: 0 0 0 1px rgba(180, 165, 230, .6), 0 4px 8px -4px rgba(80, 60, 120, .4); }
.pa.held .pa-plate, .pa.dizzy .pa-plate { opacity: .4; }
@media (prefers-reduced-motion: reduce) { .mote, .pa-aura { animation: none !important; } }
.pa.airborne .pa-plate { opacity: 0; transition: opacity .15s; }

/* ---------- 乐园：访客串门模式 ---------- */
.pg-ghost { position: absolute; left: 0; top: 0; pointer-events: none; }
.pg-ghost img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: brightness(0) opacity(.13) blur(.4px); }
.pg-ghost.is-secret img { filter: brightness(0) opacity(.22); }
.pg-ghost b { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-family: var(--f-display); font-size: 30px; color: #e3bd5f; text-shadow: 0 2px 10px rgba(227, 189, 95, .6); animation: twinkle 2.6s ease-in-out infinite; }
.pa.leaving { opacity: 0 !important; transition: opacity .7s; }
.park-cta { position: absolute; z-index: 7; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(340px, calc(100% - 32px)); padding: 20px 18px 16px; border-radius: 22px; text-align: center; }
.park-cta[hidden] { display: none; }
.park-cta.on { animation: ctaIn .45s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes ctaIn { from { opacity: 0; transform: translate(-50%, -44%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%); } }
.park-cta .cta-title { display: block; font-family: var(--f-display); font-size: 20px; }
.park-cta p { font-size: 13.5px; line-height: 1.55; margin: 8px 0 14px; color: var(--ink-soft); }
.cta-row { display: flex; gap: 8px; }
.cta-row .btn { margin: 0; flex: 1; padding: 11px 10px; font-size: 14px; }
.sel-take { margin-top: 8px; }
.play-visitor { text-align: left; }
.perks { list-style: none; display: grid; gap: 6px; margin: 4px 0 14px; }
.perks li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.45; }
.perks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.park .play-pts small { font-size: 10px; margin-left: 1px; }

/* ================= 升星仪式 ================= */
.cer { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); color: #fff; opacity: 0; transition: opacity .35s ease; --c1: #e8eef8; --c2: #b9c6dc; --glow: rgba(214, 228, 255, .75); overflow: hidden; }
.cer.cer-gold { --c1: #fff1c4; --c2: #e9b44c; --glow: rgba(255, 210, 120, .8); }
.cer.on { opacity: 1; }
.cer.out { opacity: 0; transition-duration: .3s; }
.cer-bg { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 38%, #2a3150 0%, #141829 55%, #0b0d17 100%); }
.cer-gold .cer-bg { background: radial-gradient(120% 80% at 50% 38%, #3a2c22 0%, #1b1512 55%, #0d0a09 100%); }
.cer-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 30% at 50% 40%, var(--glow), transparent 70%); opacity: 0; transition: opacity 1.4s ease; }
.cer.converge .cer-bg::after { opacity: .35; }
.cer.bloom .cer-bg::after { opacity: .55; }
.cer-rays { position: absolute; left: 50%; top: 40%; width: 900px; height: 900px; margin: -450px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .06) 0deg 4deg, transparent 4deg 18deg); -webkit-mask: radial-gradient(circle, #000 0%, transparent 62%); mask: radial-gradient(circle, #000 0%, transparent 62%); opacity: 0; transform: scale(.6); transition: opacity 1s ease, transform 1.6s cubic-bezier(.2, .8, .2, 1); }
.cer-gold .cer-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 214, 140, .09) 0deg 4deg, transparent 4deg 18deg); }
.cer.bloom .cer-rays { opacity: 1; transform: scale(1); animation: cerSpin 40s linear infinite; }
@keyframes cerSpin { to { rotate: 360deg; } }
.cer-stage { position: relative; width: min(78vw, 340px); aspect-ratio: 1; flex: none; }
.cer-g { position: absolute; left: 50%; top: 50%; width: 52%; height: 52%; object-fit: contain; opacity: 0; will-change: transform, opacity, filter; transform: translate(-50%, -50%) scale(.62); }
.cer-core { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, var(--c1) 40%, transparent 70%); opacity: 0; transform: scale(.2); }
.cer.converge .cer-core { animation: cerCore 1.5s cubic-bezier(.6, 0, .9, .6) forwards; }
@keyframes cerCore { 0% { opacity: 0; transform: scale(.2); } 80% { opacity: 1; transform: scale(2.4); } 100% { opacity: 1; transform: scale(3.4); } }
.cer.bloom .cer-core { animation: cerBloom .9s ease-out forwards; }
@keyframes cerBloom { 0% { opacity: 1; transform: scale(3.4); } 30% { opacity: 1; transform: scale(14); } 100% { opacity: 0; transform: scale(18); } }
.cer-ring { position: absolute; left: 50%; top: 50%; width: 60%; height: 60%; translate: -50% -50%; border-radius: 50%; border: 2px solid var(--c1); box-shadow: 0 0 24px var(--glow), inset 0 0 24px var(--glow); opacity: 0; scale: .2; }
.cer.bloom .cer-ring { animation: cerRing 1.1s cubic-bezier(.1, .7, .3, 1) forwards; }
.cer.bloom .cer-ring.r2 { animation-delay: .18s; border-width: 1px; }
@keyframes cerRing { 0% { opacity: .95; scale: .2; } 100% { opacity: 0; scale: 2.2; } }
.cer-halo { position: absolute; left: 50%; top: 52%; width: 82%; height: 82%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, var(--glow) 0%, transparent 62%); opacity: 0; scale: .5; transition: opacity .8s ease .15s, scale 1.2s cubic-bezier(.2, .9, .3, 1.2) .15s; }
.cer.bloom .cer-halo { opacity: .7; scale: 1; animation: cerBreathe 3.2s ease-in-out 1.4s infinite; }
@keyframes cerBreathe { 50% { opacity: .45; scale: 1.06; } }
.cer-new { position: absolute; left: 50%; top: 50%; width: 74%; height: 74%; object-fit: contain; translate: -50% -50%; opacity: 0; scale: .2; filter: brightness(3) drop-shadow(0 0 30px var(--glow)); }
.cer.bloom .cer-new { animation: cerNew 1.15s cubic-bezier(.2, 1.5, .4, 1) .1s forwards, cerFloat 3.6s ease-in-out 1.4s infinite; }
@keyframes cerNew { 0% { opacity: 0; scale: .2; filter: brightness(3) drop-shadow(0 0 30px var(--glow)); } 35% { opacity: 1; } 100% { opacity: 1; scale: 1; filter: brightness(1) drop-shadow(0 14px 22px rgba(0, 0, 0, .45)); } }
@keyframes cerFloat { 0%, 100% { opacity: 1; scale: 1; filter: brightness(1) drop-shadow(0 14px 22px rgba(0, 0, 0, .45)); translate: -50% -50%; } 50% { opacity: 1; scale: 1; filter: brightness(1) drop-shadow(0 20px 26px rgba(0, 0, 0, .35)); translate: -50% calc(-50% - 8px); } }
.cer-sparks { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.cer-sparks i { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 10px var(--glow); opacity: 0; animation: cerSpark 1.3s cubic-bezier(.1, .8, .3, 1) var(--d) forwards; }
.cer-sparks i:nth-child(3n) { width: 3px; height: 14px; margin: -7px -1.5px; border-radius: 2px; }
@keyframes cerSpark { 0% { opacity: 1; transform: translate(0, 0) scale(var(--s)); } 70% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 30px)) scale(0); } }
.cer-stars { position: relative; display: flex; gap: 14px; margin: 6px 0 4px; height: 44px; align-items: center; }
.cer-stars i { font-style: normal; font-size: 34px; line-height: 1; color: rgba(255, 255, 255, .14); transition: color .2s; }
.cer-stars i.lit { color: var(--c1); text-shadow: 0 0 14px var(--glow), 0 0 2px #fff; animation: cerStar .55s cubic-bezier(.2, 1.8, .4, 1); }
.cer-gold .cer-stars i.lit { background: linear-gradient(180deg, #fff6d6, #f2c055 55%, #c88a1c); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 10px var(--glow)); }
@keyframes cerStar { 0% { transform: scale(.2) rotate(-40deg); } 100% { transform: scale(1) rotate(0); } }
.cer-text { position: relative; text-align: center; max-width: 340px; opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.cer.done .cer-text { opacity: 1; transform: none; pointer-events: auto; }
.cer-sub { margin: 0; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.cer-text h2 { margin: 6px 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.cer-text h2 span { color: var(--c2); }
.cer-say { margin: 0 0 10px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .88); font-style: italic; }
.cer-unlock { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--c1); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.cer-ok { display: block; margin: 0 auto; min-width: 150px; }
.cer.skip * { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .2s !important; }
.cer.skip .cer-g { opacity: 0 !important; }
.cer.skip .cer-core, .cer.skip .cer-ring { opacity: 0 !important; animation: none !important; }
.cer.skip .cer-new { opacity: 1; scale: 1; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .45)); animation: none !important; }
@media (prefers-reduced-motion: reduce) { .cer-rays, .cer-halo, .cer-new { animation: none !important; } .cer.bloom .cer-new { opacity: 1; scale: 1; filter: none; } }

/* ================= 宫殿背景 ================= */
.bg-bg_palace { background: radial-gradient(120% 60% at 50% 0%, rgba(255, 236, 180, .9), transparent 60%), repeating-linear-gradient(90deg, rgba(201, 162, 74, .14) 0 2px, transparent 2px 46px), linear-gradient(#f8f0e1, #e7d5b2) !important; }
.act-gold { background: linear-gradient(180deg, #fff6d9, #f6e1a6) !important; border-color: #e3c47a !important; }

/* ================= 通用浮层（聊天 / 来信 / 证书） ================= */
.ov { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .22s ease; }
.ov.on { opacity: 1; }
.ov-mask { position: absolute; inset: 0; background: rgba(20, 24, 40, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.ov-box { position: relative; width: min(560px, 100%); max-height: min(92dvh, 860px); background: #fffdf9; border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px -10px rgba(20, 24, 40, .35); display: flex; flex-direction: column; transform: translateY(30px); transition: transform .3s cubic-bezier(.2, .9, .3, 1); padding-bottom: env(safe-area-inset-bottom); overflow: hidden; }
.ov.on .ov-box { transform: none; }
@media (min-width: 700px) { .ov { align-items: center; } .ov-box { border-radius: 24px; } }
.chat-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(31, 42, 72, .06); color: var(--ink); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.chat-x .ico { width: 16px; height: 16px; }

/* ---- 聊天 ---- */
.chat-ov .ov-box { height: min(88dvh, 760px); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 60px 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.chat-ava { flex: none; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff, var(--doll-soft, #f2e8ff)); display: grid; place-items: center; overflow: hidden; }
.chat-ava img { width: 120%; height: 120%; object-fit: contain; margin-top: 12%; }
.chat-who { display: flex; flex-direction: column; min-width: 0; }
.chat-who b { font-size: 17px; line-height: 1.2; }
.chat-who small { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.chat-secret .chat-head { background: linear-gradient(180deg, #fffaf0, #fff); }
.chat-secret .chat-ava { box-shadow: 0 0 0 2px #e3c47a, 0 0 14px rgba(242, 201, 76, .5); }
.chat-list { flex: 1; overflow-y: auto; padding: 18px 14px 10px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(#fbf7f0, #f6f0e6); overscroll-behavior: contain; }
.cb { max-width: 80%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; animation: cbIn .25s ease; }
.cb-it { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.cb-me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.chat-secret .cb-it { border-color: #efdcae; background: linear-gradient(#fffdf6, #fff); }
.cb-sys { color: var(--ink-soft); font-size: 13px; background: transparent; border: 1px dashed var(--line); }
.cb-typing { display: flex; gap: 5px; padding: 14px 16px; }
.cb-typing i { width: 7px; height: 7px; border-radius: 50%; background: #b8bfd3; animation: cbDot 1s infinite ease-in-out; }
.cb-typing i:nth-child(2) { animation-delay: .15s; } .cb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cbDot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }
@keyframes cbIn { from { opacity: 0; transform: translateY(6px); } }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; min-width: 0; height: 44px; border-radius: 22px; border: 1.5px solid var(--line); padding: 0 16px; font: inherit; font-size: 16px; background: #faf8f4; color: var(--ink); }
.chat-form input:focus { outline: none; border-color: var(--ink); background: #fff; }
.chat-form input:disabled { opacity: .6; }
.chat-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-send svg { width: 20px; height: 20px; }
.chat-note { margin: 0; padding: 2px 16px 10px; font-size: 11px; color: var(--ink-soft); text-align: center; background: #fff; }

/* ---- 来信 ---- */
.chip-letter { position: relative; }
.chip-letter.has-new::after { content: attr(data-n); position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink-dark); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.letters { overflow-y: auto; padding: 56px 18px 22px; display: flex; flex-direction: column; gap: 16px; }
.letters-empty { text-align: center; color: var(--ink-soft); padding: 30px 10px; }
.letter { background: linear-gradient(#fffaf0, #fdf3e1); border: 1px solid #efdcae; border-radius: 16px; padding: 18px 20px; box-shadow: 0 8px 20px -14px rgba(120, 90, 30, .5); font-family: Georgia, "Songti SC", "STSong", serif; }
.letter header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-family: inherit; }
.letter header b { display: block; font-size: 16px; }
.letter header small { color: var(--ink-soft); font-size: 12px; }
.letter p { margin: 0 0 10px; line-height: 1.75; font-size: 15px; color: #3a3326; }
.letter.unread { box-shadow: 0 0 0 2px #e3c47a, 0 8px 20px -14px rgba(120, 90, 30, .5); }

/* ---- 证书 ---- */
.cert-ov .ov-box { padding: 54px 18px 18px; align-items: center; overflow-y: auto; }
.cert-wrap { width: min(360px, 78vw); aspect-ratio: 3 / 4; display: grid; place-items: center; }
.cert-img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 16px 34px -16px rgba(60, 40, 10, .55); }
.cert-loading { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #efdcae; border-top-color: #c9a24a; animation: certSpin .8s linear infinite; }
@keyframes certSpin { to { transform: rotate(360deg); } }
.cert-actions { display: flex; gap: 10px; margin-top: 16px; }
.cert-actions .btn { text-decoration: none; }
.cert-note { font-size: 12px; color: var(--ink-soft); margin: 10px 0 0; text-align: center; }

/* ---- 乐园里的「聊天」 ---- */
.sel-chat { font-weight: 800; color: var(--pink-dark) !important; }

/* ================= 添加到桌面 / 通知 ================= */
.app-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: linear-gradient(135deg, #fff, #fff6f8); border: 1px solid #f6d6e0; }
.app-card p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.app-title { font-size: 16px; }
.app-ios { display: flex; gap: 8px; align-items: flex-start; color: var(--ink) !important; }
.app-ios .ico { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.app-note { font-size: 12px !important; }
.app-later { font-size: 13px; color: var(--ink-soft); }
.app-done { color: var(--ink) !important; font-weight: 700; }
