/* ============================================================
   星光立牌馆 · Character Standee Gallery
   纯静态 · 手机适配 · config.json 驱动
   ============================================================ */

:root {
  --bg1: #ffe3ee; --bg2: #f2e3ff; --bg3: #ffe9d9;
  --ink: #5c4358; --ink-soft: rgba(92, 67, 88, .62);
  --card: rgba(255, 255, 255, .5);
  --line: rgba(255, 255, 255, .68);
  --shadow-ink: rgba(90, 40, 70, .16);
  --title-grad: linear-gradient(118deg, #e05587 8%, #9a66ea 52%, #4f8de0 96%);
}

body[data-theme="ocean"] {
  --bg1: #dfeeff; --bg2: #e6f0ff; --bg3: #dffff4;
  --ink: #33506e; --ink-soft: rgba(51, 80, 110, .62);
}
body[data-theme="mint"] {
  --bg1: #d8f6e7; --bg2: #eefbee; --bg3: #fbfae0;
  --ink: #3e6652; --ink-soft: rgba(62, 102, 82, .62);
}
body[data-theme="night"] {
  --bg1: #262c55; --bg2: #1a2244; --bg3: #31305f;
  --ink: #e9ecff; --ink-soft: rgba(233, 236, 255, .58);
  --card: rgba(30, 36, 70, .5);
  --line: rgba(255, 255, 255, .17);
  --shadow-ink: rgba(0, 0, 10, .4);
  --title-grad: linear-gradient(118deg, #ff8ab4 8%, #b795ff 52%, #7db6ff 96%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* 隐藏滚动条但保留滚动(触屏/滚轮/键盘照常) */
html { height: 100%; overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
  min-height: 100vh; min-height: 100svh;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ---------- 加载进度线 ---------- */
.progress-line { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 120;
  background: linear-gradient(90deg, var(--accent, #ff8ab4), #fff 90%);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent, #ff8ab4) 70%, transparent);
  border-radius: 0 3px 3px 0; transition: width .35s ease, opacity .6s ease; }
.progress-line.done { opacity: 0; }

/* ---------- 背景 ---------- */
.bg-aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: linear-gradient(168deg, var(--bg1) 0%, var(--bg2) 52%, var(--bg3) 100%);
  transition: background .8s ease; }
.blob { position: absolute; border-radius: 50%; filter: blur(52px); opacity: .72; will-change: transform; }
.b1 { width: 58vmax; height: 58vmax; left: -18vmax; top: -20vmax;
  background: radial-gradient(circle, color-mix(in srgb, var(--bg1) 30%, #ff9ec4) 0%, transparent 70%);
  animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 50vmax; height: 50vmax; right: -16vmax; top: 24vh;
  background: radial-gradient(circle, color-mix(in srgb, var(--bg2) 34%, #9d9bff) 0%, transparent 70%);
  animation: drift2 32s ease-in-out infinite alternate; }
.b3 { width: 46vmax; height: 46vmax; left: 8vmax; bottom: -18vmax;
  background: radial-gradient(circle, color-mix(in srgb, var(--bg3) 36%, #ffc89d) 0%, transparent 70%);
  animation: drift3 29s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(9vw, 7vh) scale(1.12) rotate(18deg); } }
@keyframes drift2 { to { transform: translate(-7vw, -9vh) scale(1.18) rotate(-14deg); } }
@keyframes drift3 { to { transform: translate(6vw, -6vh) scale(1.1); } }

.bg-grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
.bg-vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 38%, transparent 55%, var(--shadow-ink) 130%); }

.fx { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.pt { position: absolute; bottom: -3vh; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,0) 72%);
  animation: rise var(--d) linear infinite; animation-delay: var(--delay); opacity: 0; }
.pt-star { position: absolute; bottom: -4vh; left: var(--x); color: rgba(255,255,255,.9);
  font-size: var(--s); line-height: 1;
  text-shadow: 0 0 6px rgba(255,255,255,.6), 0 0 14px color-mix(in srgb, var(--accent-static, #ff8ab4) 60%, transparent);
  animation: rise var(--d) ease-in-out infinite; animation-delay: var(--delay); opacity: 0; }
@keyframes rise {
  0%   { transform: translate(0, 0) rotate(0deg) scale(.7); opacity: 0; }
  12%  { opacity: var(--o, .7); }
  85%  { opacity: var(--o, .7); }
  100% { transform: translate(var(--dx, 4vw), -108vh) rotate(160deg) scale(1.1); opacity: 0; }
}

/* ---------- 加载遮罩 ---------- */
.loader { position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 100vh; min-height: 100svh;
  background: linear-gradient(168deg, var(--bg1), var(--bg2) 60%, var(--bg3)); transition: opacity .55s ease; }
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-star { font-size: 40px; color: #e05587; animation: loaderSpin 1.5s ease-in-out infinite;
  text-shadow: 0 0 22px rgba(224, 85, 135, .5); }
@keyframes loaderSpin { 0%,100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(170deg) scale(.82); } }
.loader-text { font-size: 14px; letter-spacing: 3px; color: var(--ink); }
.loader-sub { font-size: 11px; letter-spacing: 2px; color: var(--ink-soft); }

/* ---------- 主布局 ---------- */
.app { position: relative; z-index: 3; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: max(14px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
  gap: clamp(5px, 1vh, 12px); }

/* ---------- 头部 ---------- */
.head { text-align: center; animation: fadeDown .8s .05s both; }
.head-orn { font-size: 11px; letter-spacing: 10px; color: var(--ink-soft); margin-bottom: 2px; padding-left: 10px; }
.title {
  font-size: clamp(24px, 6vw, 36px); font-weight: 800; letter-spacing: clamp(4px, 1.6vw, 9px);
  padding-left: clamp(4px, 1.6vw, 9px); /* 视觉补偿字距 */
  background: var(--title-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 10px color-mix(in srgb, #e05587 22%, transparent));
}
.subtitle { margin-top: 3px; font-size: clamp(9px, 2.4vw, 11px); letter-spacing: clamp(3px, 1vw, 5px);
  color: var(--ink-soft); font-weight: 600; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ---------- 舞台 ---------- */
.stage-wrap { position: relative; width: min(94vw, 540px); display: flex; justify-content: center; animation: fadeUp .9s .18s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.stage { position: relative; width: min(88vw, 430px);
  height: clamp(320px, 54vh, 560px);   /* 老浏览器回退 */
  height: clamp(320px, 50svh, 540px); }
.stage.switching { overflow: hidden; }
.standee { position: absolute; inset: 0; }

.aura { position: absolute; left: 50%; top: 44%; width: min(78%, 330px); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent, #ff8ab4) 42%, transparent) 0%, transparent 68%);
  filter: blur(6px); animation: auraPulse 4.2s ease-in-out infinite;
  transition: background .5s ease; }
@keyframes auraPulse { 0%,100% { transform: translate(-50%, -50%) scale(1); opacity: .85; } 50% { transform: translate(-50%, -50%) scale(1.07); opacity: 1; } }

/* 魔法阵 */
.rune { position: absolute; left: 50%; top: 44%; width: min(96%, 400px); aspect-ratio: 1;
  transform: translate(-50%, -50%); pointer-events: none; }
.rune .r1 { position: absolute; inset: 4%; border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--accent, #ff8ab4) 45%, transparent);
  animation: spin 44s linear infinite; transition: border-color .5s; }
.rune .r2 { position: absolute; inset: 14%; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent, #ff8ab4) 30%, transparent);
  animation: spinRev 30s linear infinite; transition: border-color .5s; }
.rune .r2 b { position: absolute; top: -9px; left: 50%; margin-left: -8px; font-style: normal; font-size: 15px;
  color: color-mix(in srgb, var(--accent, #ff8ab4) 65%, white); filter: drop-shadow(0 0 5px var(--accent)); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinRev { to { transform: rotate(-360deg); } }

/* 立牌主体 */
.standee { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center;
  transition: transform .38s cubic-bezier(.4, 0, .8, .4), opacity .32s ease; }
.standee.out-left  { transform: translateX(-46px) scale(.93) rotate(-2deg); opacity: 0; }
.standee.out-right { transform: translateX(46px) scale(.93) rotate(2deg); opacity: 0; }

.char-float { position: relative; flex: 1 1 auto; min-height: 0; width: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  animation: bob 4.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-9px) rotate(.4deg); } }
.char-float.hop { animation: hop .65s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hop {
  0% { transform: translateY(0) scale(1, 1); }
  30% { transform: translateY(-16px) scale(.97, 1.03); }
  60% { transform: translateY(0) scale(1.04, .96); }
  80% { transform: translateY(-4px) scale(.99, 1.01); }
  100% { transform: translateY(0) scale(1, 1); }
}
.char-img { display: block; height: 100%; width: auto; max-width: min(88vw, 430px); object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 16px 26px color-mix(in srgb, var(--accent, #ff8ab4) 34%, transparent))
          drop-shadow(0 3px 7px var(--shadow-ink));
  transition: filter .5s ease, opacity .55s ease; }
.char-img.pending { opacity: 0; }
.char-float.pending .shine { opacity: 0; }

/* ---------- 剪影占位 ---------- */
.silhouette { position: absolute; bottom: 0; left: 50%; height: 100%; aspect-ratio: var(--sil-aspect, .6);
  transform: translateX(-50%); background: var(--accent, #ff8ab4);
  -webkit-mask-image: var(--sil-url); mask-image: var(--sil-url);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  filter: blur(10px); opacity: .85; pointer-events: none; z-index: 1;
  transition: opacity .6s ease; animation: silBreathe 2.8s ease-in-out infinite; }
.silhouette.hidden { opacity: 0; }
@keyframes silBreathe { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }

/* 亚克力光泽扫过(蒙版随立绘轮廓) */
.shine { position: absolute; bottom: 0; left: 50%; height: 100%; aspect-ratio: var(--char-aspect, .62);
  transform: translateX(-50%); pointer-events: none;
  -webkit-mask-image: var(--char-url); mask-image: var(--char-url);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.shine::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(104deg, transparent 30%, rgba(255,255,255,.34) 44%, rgba(255,255,255,.62) 47%, rgba(255,255,255,.3) 52%, transparent 64%);
  transform: translateX(-160%); animation: sweep 5.2s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes sweep { 0% { transform: translateX(-160%); } 34% { transform: translateX(160%); } 100% { transform: translateX(160%); } }

/* 底座 */
.base-plate { position: relative; z-index: 1; margin-top: -7px; height: 44px; width: min(76%, 300px);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 12px; padding: 0 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.62));
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent, #ff8ab4) 30%, transparent),
              0 3px 8px var(--shadow-ink),
              inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: rotateX(10deg);
  transition: box-shadow .5s ease; }
body[data-theme="night"] .base-plate { background: linear-gradient(180deg, rgba(58,64,110,.85), rgba(40,46,86,.75)); border-color: rgba(255,255,255,.2); }
.bp-star { font-size: 10px; color: color-mix(in srgb, var(--accent, #ff8ab4) 75%, white); }
.bp-name { font-size: 17px; font-weight: 800; letter-spacing: 3px; white-space: nowrap;
  background: linear-gradient(120deg, var(--accent, #ff8ab4), color-mix(in srgb, var(--accent, #ff8ab4) 55%, #8fd0ff));
  -webkit-background-clip: text; background-clip: text; color: transparent; transition: .5s; }
.bp-title { font-size: 10px; letter-spacing: 2px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 地面光斑 */
.ground { position: absolute; left: 50%; bottom: 2px; width: 66%; height: 26px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(ellipse, color-mix(in srgb, var(--accent, #ff8ab4) 40%, transparent) 0%, transparent 70%);
  filter: blur(4px); animation: groundPulse 4.6s ease-in-out infinite; z-index: 0; transition: background .5s; }
@keyframes groundPulse { 0%,100% { transform: translateX(-50%) scaleX(1); opacity: .8; } 50% { transform: translateX(-50%) scaleX(.9); opacity: .55; } }

/* 气泡: 挂在头像左上方,小尾巴指向人脸,避开顶部中央的人脸区 */
.bubble { position: absolute; left: 2.5%; top: 8%; z-index: 6; max-width: 56%;
  padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 5px 16px var(--shadow-ink), inset 0 1px 0 rgba(255,255,255,.7);
  font-size: 8px; letter-spacing: .5px; line-height: 1.5; text-align: center; color: var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.85); transform-origin: 100% 100%;
  pointer-events: none; }
.bubble::after { content: ""; position: absolute; right: -4px; bottom: 8px; width: 8px; height: 8px;
  background: inherit; border-top: 1px solid var(--line); border-right: 1px solid var(--line);
  transform: rotate(45deg); border-top-right-radius: 2px; }
.bubble.show { animation: bubbleIn .5s cubic-bezier(.3, 1.5, .5, 1) both; visibility: visible; }
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(.7); }
  to   { opacity: 1; transform: translateY(0) scale(1); } }

/* 下载按钮 */
.dl-btn { position: absolute; right: 4px; bottom: 4px; z-index: 7; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 18px var(--shadow-ink); transition: transform .25s, box-shadow .25s, color .3s; }
.dl-btn svg { width: 14px; height: 14px; }
.dl-btn:hover { transform: scale(1.12); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent, #ff8ab4) 40%, transparent); color: var(--accent, #ff8ab4); }
.dl-btn:active { transform: scale(.94); }

/* 计数 */
.counter { position: absolute; right: 2px; top: 6px; z-index: 5; font-size: 10px; letter-spacing: 2px;
  color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* 左右箭头 */
.nav-btn { position: absolute; top: 46%; z-index: 7; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px var(--shadow-ink); transition: transform .25s, box-shadow .25s, background .3s; }
.nav-btn:hover { transform: scale(1.12); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent, #ff8ab4) 40%, transparent); }
.nav-btn:active { transform: scale(.95); }
.nav-btn.prev { left: clamp(0px, 1vw, 12px); }
.nav-btn.next { right: clamp(0px, 1vw, 12px); }

/* ---------- 角色介绍卡 ---------- */
.intro { width: min(92vw, 520px); padding: 10px 16px 11px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 6px 18px var(--shadow-ink), inset 0 1px 0 rgba(255,255,255,.6);
  animation: fadeUp .9s .35s both; }
.intro.swap { animation: introIn .55s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes introIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.intro-text { font-size: 12.5px; line-height: 1.8; letter-spacing: .5px; min-height: 5.5em;
  color: color-mix(in srgb, var(--ink) 88%, transparent); text-align: justify; }
.intro-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.intro-badge { font-size: 10px; letter-spacing: 1px; padding: 3px 10px; border-radius: 999px;
  color: color-mix(in srgb, var(--accent, #ff8ab4) 78%, var(--ink));
  border: 1px solid color-mix(in srgb, var(--accent, #ff8ab4) 45%, transparent);
  background: color-mix(in srgb, var(--accent, #ff8ab4) 10%, transparent); }

/* ---------- 角色切换条 ---------- */
.chips { width: 100%; max-width: 560px; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  animation: fadeUp .9s .3s both; }
.chips::-webkit-scrollbar { display: none; }
.chips-track { display: flex; gap: clamp(6px, 1.6vw, 12px); margin-inline: auto; padding: 10px 20px 8px; width: max-content; }
.chip { position: relative; flex: none; width: clamp(54px, 13vw, 68px); padding: 5px 5px 6px; cursor: pointer;
  border-radius: 15px; border: 1.5px solid var(--line); background: var(--card);
  display: grid; justify-items: center; gap: 3px;
  box-shadow: 0 4px 12px var(--shadow-ink);
  transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), box-shadow .35s, border-color .35s, background .3s; }
.chip img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--chip-accent, #ff8ab4) 26%, white) 0%, transparent 75%); }
.chip-name { font-size: 9.5px; letter-spacing: .3px; color: var(--ink-soft); font-weight: 600; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip:hover { transform: translateY(-3px); }
.chip.active { transform: translateY(-6px) scale(1.09); border-color: var(--chip-accent, #ff8ab4);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--chip-accent, #ff8ab4) 45%, transparent); }
.chip.active::before { content: ""; position: absolute; inset: 2px; border-radius: 12px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--chip-accent, #ff8ab4) 55%, white); }
.chip.active .chip-name { color: var(--ink); }

/* ---------- 底部 ---------- */
.foot { text-align: center; animation: fadeUp .9s .4s both; }
.tip { font-size: clamp(10px, 2.6vw, 12px); letter-spacing: 2px; color: var(--ink-soft); }
.credit { margin-top: 5px; font-size: 10px; letter-spacing: .5px; color: var(--ink-soft); opacity: .75; }

/* ---------- 提示横幅 ---------- */
.banner { position: fixed; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 50;
  transform: translateX(-50%); max-width: 92vw; padding: 8px 14px; border-radius: 10px;
  background: rgba(30, 30, 40, .78); color: #ffe9f2; font-size: 11px; letter-spacing: 1px; text-align: center;
  backdrop-filter: blur(6px); }

/* ---------- 星光迸发 ---------- */
.spark { position: absolute; z-index: 8; left: var(--sx); top: var(--sy); pointer-events: none;
  font-size: var(--ss, 14px); color: var(--sc, #fff); line-height: 1;
  text-shadow: 0 0 8px currentColor;
  animation: burst .85s cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes burst {
  0%   { transform: translate(-50%, -50%) scale(.3) rotate(0deg); opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.05) rotate(var(--rot, 90deg)); opacity: 0; } }

/* ---------- 角色 logo 漂浮(config props 驱动) ---------- */
.props { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.prop { position: absolute; left: var(--px); top: var(--py); width: var(--ps);
  opacity: var(--po, .85);
  filter: drop-shadow(0 3px 6px var(--shadow-ink));
  animation: propFloat var(--pd, 7s) ease-in-out var(--pl, 0s) infinite; }
@keyframes propFloat {
  0%   { transform: translate(0, 0) rotate(-5deg); opacity: 0; }
  12%  { opacity: var(--po, .85); }
  25%  { transform: translate(9px, -7px) rotate(4deg); }
  50%  { transform: translate(15px, 2px) rotate(-3deg); opacity: var(--po, .85); }
  75%  { transform: translate(5px, 9px) rotate(5deg); }
  88%  { opacity: var(--po, .85); }
  100% { transform: translate(0, 0) rotate(-5deg); opacity: 0; }
}

/* ---------- 窄屏适配 ---------- */
@media (max-width: 700px) {
  .nav-btn { display: none; }
  .stage { width: 100%; }
  .prop { width: calc(var(--ps) * .78); } /* 手机窄屏 logo 等比缩小 */
  .intro-text { min-height: 9.5em; } /* 保证简介卡高度恒定,切换角色时页面不上下跳动 */
}
@media (max-width: 360px) {
  .bp-title { display: none; }
  .base-plate { height: 40px; }
}
@media (hover: none) {
  .chip:hover { transform: none; }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .char-float { animation: none; }
}
