/* ==========================================================================
 * 🎂 女朋友专属生日网页 · 温馨手账拼贴风全局样式
 * 移动端优先设计（9:16 最佳观感，桌面端优雅居中展示）
 * ========================================================================== */

:root {
  --bg-cream: #fdf9ec;
  --bg-cream-deep: #f7efda;
  --bg-mint-soft: #eef7f1;
  --bg-espresso: #4d4235;
  --ink-primary: #352b25;
  --ink-secondary: #6e5d52;
  --ink-muted: #9a897d;
  --coral: #f06f85;
  --coral-deep: #df546d;
  --coral-soft: #fde6ea;
  --gold: #e7b854;
  --mint: #4aa896;
  --card-bg: #ffffff;
  --border-ink: #3a2f29;
  --shadow-offset: 4px 4px 0px #3a2f29;
  --shadow-soft: 0 12px 32px rgba(77, 66, 53, 0.09);
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  --font-serif: 'Noto Serif SC', 'Playfair Display', Georgia, serif;
  --font-hand: 'Caveat', 'Noto Serif SC', cursive;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background: #f2ead8;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink-primary);
  background: radial-gradient(circle at top, #f8f2e4 0%, #ede3cf 100%);
  overflow-x: hidden;
  line-height: 1.65;
}

/* 移动端优先居中容器：手机满屏，电脑呈现精致手账竖屏画卷 */
.app-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background-color: var(--bg-cream);
  background-image: radial-gradient(rgba(120, 96, 74, 0.055) 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: 0 0 60px rgba(77, 66, 53, 0.14);
  overflow-x: hidden;
}

/* 通用区块排版 */
.section-block {
  position: relative;
  padding: 64px 22px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: 10px;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.42;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0 0 12px;
}

.section-subcopy {
  font-size: 14.5px;
  color: var(--ink-secondary);
  margin: 0 0 26px;
}

/* 滚动淡入动画 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 通用按钮 */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--border-ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}

.pill-btn:active {
  transform: translate(2px, 2px);
}

.pill-btn-primary {
  background: var(--coral);
  color: #ffffff;
  box-shadow: 3px 3px 0px var(--border-ink);
}

.pill-btn-primary:hover {
  background: var(--coral-deep);
}

.pill-btn-outline {
  background: #ffffff;
  color: var(--ink-primary);
  box-shadow: 3px 3px 0px var(--border-ink);
}

/* ==========================================================================
 * 🔐 暗号门 (Passcode Gate)
 * ========================================================================== */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(165deg, #fdf9ec 0%, #f8ebd8 100%);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.gate-overlay.is-leaving {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.gate-card {
  width: 100%;
  max-width: 370px;
  background: #ffffff;
  border-radius: 26px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(77, 66, 53, 0.13);
}

.gate-card-inner {
  border: 1.5px dashed rgba(240, 111, 133, 0.55);
  border-radius: 18px;
  padding: 32px 22px 26px;
  text-align: center;
}

.gate-lock {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--coral-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.gate-title {
  font-family: var(--font-serif);
  font-size: 19.5px;
  margin: 0 0 8px;
}

.gate-subtitle {
  font-size: 14px;
  color: var(--ink-secondary);
  margin: 0 0 4px;
}

.gate-format {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin: 0 0 20px;
}

.gate-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 2px solid var(--coral);
  background: #fffdfb;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.14em;
  color: var(--ink-primary);
  outline: none;
  margin-bottom: 14px;
  transition: box-shadow 0.2s ease;
}

.gate-input:focus {
  box-shadow: 0 0 0 4px rgba(240, 111, 133, 0.18);
}

.gate-error {
  color: var(--coral-deep);
  font-size: 13px;
  margin: -4px 0 12px;
  min-height: 18px;
}

.gate-hint {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.shake {
  animation: shakeX 0.42s ease;
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* ==========================================================================
 * 🎵 首屏 (Hero) —— 9:16 拼贴背景 + 像素精准对齐的 CCD 相机屏幕照片
 * ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  background: var(--bg-cream);
  overflow: hidden;
}

/* 锁定与首屏背景图一致的 768 / 1376 纵横比，确保 CCD 屏幕照片 100% 精准嵌合 */
.hero-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 768 / 1376;
  min-height: 620px;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* 📸 复古 Canon CCD 相机液晶屏幕照片位（坐标由原图精确测算） */
.ccd-screen-slot {
  position: absolute;
  left: 2.95%;
  top: 50.8%;
  width: 18.7%;
  height: 7.85%;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(25, 22, 20, 0.5);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.32);
  background: #222;
  z-index: 6;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ccd-screen-slot:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(77, 66, 53, 0.28), inset 0 0 6px rgba(0, 0, 0, 0.2);
}

.ccd-screen-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.04) saturate(1.06) sepia(0.08);
}

.ccd-screen-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0) 45%,
    rgba(0, 0, 0, 0.12) 100%
  );
  pointer-events: none;
}

.ccd-rec-dot {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff4b5c;
  box-shadow: 0 0 6px #ff4b5c;
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.ccd-tap-tip {
  position: absolute;
  left: 3%;
  top: 59.4%;
  z-index: 6;
  font-size: 10.5px;
  font-weight: 600;
  color: #6b584b;
  background: rgba(253, 249, 236, 0.9);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(107, 88, 75, 0.22);
  pointer-events: none;
}

/* 首屏中央留白区的卡片与文字叠加层（精准避开左侧 CCD 相机与右侧 i love you 贴纸） */
.hero-overlay-center {
  position: absolute;
  left: 39.5%;
  right: 21%;
  top: 43%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1.5px solid var(--coral);
  background: rgba(255, 255, 255, 0.94);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--coral-deep);
  box-shadow: 0 4px 12px rgba(240, 111, 133, 0.14);
  margin-bottom: 8px;
}

.hero-name-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 5px;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(20px, 5.5vw, 25px);
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.hero-crayon-underline {
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 2px;
  height: 9px;
  background: linear-gradient(90deg, #ffe082, #ffc1cc, #b2dfdb);
  border-radius: 999px;
  opacity: 0.78;
  z-index: 0;
  transform: rotate(-1.2deg);
}

.hero-age-line {
  font-size: 12px;
  color: var(--ink-secondary);
  margin: 0;
  background: rgba(253, 249, 236, 0.88);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.hero-age-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--mint);
  margin: 0 2px;
}

/* 唱片音乐卡片 */
.music-pill-card {
  width: 100%;
  max-width: 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid var(--border-ink);
  border-radius: 16px;
  box-shadow: 3px 3px 0px var(--border-ink);
  cursor: pointer;
  text-align: left;
  margin-bottom: 6px;
  transition: transform 0.18s ease;
}

.music-pill-card:active {
  transform: translate(2px, 2px);
}

.vinyl-disc {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 16%, #f06f85 18%, #f06f85 38%, #3a2f29 40%, #26201c 100%);
  border: 1.5px solid var(--border-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-disc.is-spinning {
  animation: spinDisc 4s linear infinite;
}

@keyframes spinDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.music-meta {
  min-width: 0;
  flex: 1;
}

.music-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-sub {
  font-size: 10.5px;
  color: var(--coral-deep);
  font-weight: 600;
}

.hero-music-note {
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--ink-muted);
  background: rgba(253, 249, 236, 0.85);
  padding: 2px 8px;
  border-radius: 8px;
}

.hero-music-ext {
  color: var(--coral-deep);
  text-decoration: underline;
  margin-left: 4px;
}

.hero-scroll-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px 44px;
  background: linear-gradient(180deg, #fdf9ec 0%, var(--bg-cream) 100%);
  text-align: center;
}

.hero-sub-greeting {
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin: 0 0 6px;
}

.scroll-cue {
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
  animation: bounceY 1.8s ease-in-out infinite;
}

@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ==========================================================================
 * 🕯️ 吹蜡烛许愿区
 * ========================================================================== */
.candle-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 20px 26px;
  border: 2px solid var(--border-ink);
  box-shadow: var(--shadow-offset);
  text-align: center;
}

.cake-stage {
  position: relative;
  width: 220px;
  height: 195px;
  margin: 0 auto 16px;
}

.candle-flame {
  transform-origin: center bottom;
  animation: flameFlicker 0.8s ease-in-out infinite alternate;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.candle-flame.is-out {
  opacity: 0;
  transform: scale(0.1) translateY(-10px);
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.06, 0.96) rotate(2deg); }
  100% { transform: scale(0.97, 1.07) rotate(-1deg); }
}

.candle-smoke {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.candle-smoke.is-rising {
  opacity: 1;
  animation: smokeRise 1.6s ease-out forwards;
}

@keyframes smokeRise {
  0% { opacity: 0.85; transform: translateY(0) scale(0.8); }
  100% { opacity: 0; transform: translateY(-28px) scale(1.4); }
}

.wish-reveal-box {
  margin-top: 20px;
  padding: 18px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff6f8 0%, #fffbef 100%);
  border: 1.5px dashed var(--coral);
  animation: fadeScaleIn 0.55s ease forwards;
}

@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.wish-reveal-title {
  font-weight: 700;
  color: var(--coral-deep);
  font-size: 15px;
  margin: 0 0 6px;
}

.wish-reveal-text {
  font-size: 14px;
  color: var(--ink-primary);
  margin: 0;
}

/* ==========================================================================
 * 📷 照片回忆墙
 * ========================================================================== */
.photo-group {
  margin-bottom: 30px;
}

.photo-group-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid var(--border-ink);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 2px 2px 0 var(--border-ink);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.photo-polaroid {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  padding: 8px 8px 12px;
  border: 1.5px solid rgba(58, 47, 41, 0.16);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-polaroid:nth-child(odd) {
  transform: rotate(-1.1deg);
}

.photo-polaroid:nth-child(even) {
  transform: rotate(1.1deg);
}

.photo-polaroid:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 16px 34px rgba(77, 66, 53, 0.15);
}

.photo-polaroid.is-featured {
  grid-column: span 2;
  transform: rotate(0deg);
}

.photo-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #f3ede0;
}

.photo-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-num-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(53, 43, 37, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.photo-polaroid-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 0 2px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.photo-polaroid-caption {
  margin: 4px 2px 0;
  font-size: 12.5px;
  color: var(--ink-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 全屏照片灯箱 */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(28, 23, 20, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  animation: fadeScaleIn 0.25s ease;
}

.lightbox-card {
  width: 100%;
  max-width: 420px;
  background: #fffdf8;
  border-radius: 18px;
  padding: 12px 12px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-img {
  width: 100%;
  max-height: 55vh;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-muted);
}

.lightbox-caption {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--ink-primary);
  line-height: 1.65;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.lightbox-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13.5px;
  cursor: pointer;
}

/* ==========================================================================
 * 🕰️ 回忆时间轴
 * ========================================================================== */
.timeline-list {
  position: relative;
  padding-left: 28px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--coral) 0,
    var(--coral) 6px,
    transparent 6px,
    transparent 12px
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 22px;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.timeline-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1.5px solid rgba(58, 47, 41, 0.12);
  box-shadow: var(--shadow-soft);
}

.timeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.timeline-date {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--coral-deep);
}

.timeline-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.timeline-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-desc {
  font-size: 13.8px;
  color: var(--ink-secondary);
  margin: 0;
}

/* ==========================================================================
 * 💌 生日祝福信
 * ========================================================================== */
.letter-paper {
  position: relative;
  background: #fffef9;
  border-radius: 20px;
  padding: 28px 22px;
  border: 1.5px solid rgba(120, 96, 74, 0.18);
  box-shadow: 0 16px 40px rgba(77, 66, 53, 0.1);
  background-image: linear-gradient(rgba(240, 111, 133, 0.08) 1px, transparent 1px);
  background-size: 100% 32px;
}

.letter-seal-top {
  position: absolute;
  top: -16px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(240, 111, 133, 0.35);
}

.letter-salutation {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 14px;
}

.letter-paragraph {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 2;
  color: var(--ink-primary);
  margin: 0 0 14px;
}

.letter-sign {
  margin-top: 22px;
  text-align: right;
  font-family: var(--font-serif);
}

.letter-sign-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--coral-deep);
  margin: 4px 0;
}

.letter-sign-date {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ==========================================================================
 * 🎁 礼物刮刮卡
 * ========================================================================== */
.scratch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.scratch-wrapper {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 12px;
  border: 2px solid var(--border-ink);
  box-shadow: var(--shadow-offset);
}

.scratch-top-tab {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.scratch-stage {
  position: relative;
  width: 100%;
  height: 158px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff9f2 0%, #fff2f5 100%);
  border: 1.5px dashed rgba(240, 111, 133, 0.45);
  touch-action: none;
  user-select: none;
}

.scratch-prize {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.scratch-prize-emoji {
  font-size: 32px;
  margin-bottom: 4px;
}

.scratch-prize-title {
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink-primary);
  margin: 0 0 6px;
}

.scratch-prize-reason {
  font-size: 12.8px;
  color: var(--ink-secondary);
  margin: 0;
  line-height: 1.5;
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.scratch-canvas.is-revealed {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

/* ==========================================================================
 * 🎈 隐藏关卡 · 戳气球（深棕画布）
 * ========================================================================== */
.balloon-section {
  background: var(--bg-espresso);
  color: #fdf9ec;
  padding: 64px 22px 58px;
}

.balloon-section .section-eyebrow {
  color: var(--gold);
}

.balloon-section .section-heading {
  color: #ffffff;
}

.balloon-section .section-subcopy {
  color: rgba(253, 249, 236, 0.78);
}

.balloon-arena {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  margin-bottom: 16px;
}

.balloon-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  animation: balloonDrift var(--dur, 4.5s) ease-in-out infinite alternate;
  transition: transform 0.2s ease, opacity 0.25s ease;
}

.balloon-item:active {
  transform: scale(1.18);
}

.balloon-body {
  width: 54px;
  height: 66px;
  border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  position: relative;
  box-shadow: inset -8px -10px 14px rgba(0, 0, 0, 0.16),
    inset 6px 8px 12px rgba(255, 255, 255, 0.35);
}

.balloon-body::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid currentColor;
}

.balloon-string {
  width: 1.5px;
  height: 34px;
  background: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

@keyframes balloonDrift {
  0% { transform: translate(0px, 0px) rotate(-3deg); }
  50% { transform: translate(var(--dx, 12px), -14px) rotate(3deg); }
  100% { transform: translate(calc(var(--dx, 12px) * -0.7), 8px) rotate(-2deg); }
}

.balloon-quote-toast {
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  color: #fff6d9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.balloon-counter {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.secret-ending-card {
  margin-top: 18px;
  padding: 22px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff9ec 0%, #ffeef2 100%);
  color: var(--ink-primary);
  text-align: center;
  animation: fadeScaleIn 0.55s ease;
}

/* ==========================================================================
 * 📜 结尾认证卡 & 分享区
 * ========================================================================== */
.certificate-section {
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-mint-soft) 100%);
  padding: 64px 22px 136px;
}

.closing-headline {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.closing-highlight {
  position: relative;
  display: inline-block;
}

.closing-highlight::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 2px;
  height: 10px;
  background: #ffe082;
  opacity: 0.72;
  z-index: -1;
  border-radius: 999px;
}

.cert-card {
  position: relative;
  background: #ffffff;
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  margin: 24px 0 20px;
}

.cert-card-inner {
  position: relative;
  border: 1.5px dashed rgba(240, 111, 133, 0.6);
  border-radius: 14px;
  padding: 22px 16px 66px;
}

.cert-en-title {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 14px;
}

.cert-row {
  padding: 11px 0;
  border-bottom: 1px solid rgba(58, 47, 41, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 12.8px;
}

.cert-row > span:first-child {
  white-space: nowrap;
  flex-shrink: 0;
}

.cert-row:last-of-type {
  border-bottom: none;
}

.cert-days-big {
  text-align: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(58, 47, 41, 0.08);
}

.cert-days-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--coral);
  margin: 0 4px;
}

.cert-stamp {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(240, 111, 133, 0.55);
  color: rgba(240, 111, 133, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  transform: rotate(-16deg);
  pointer-events: none;
}

.cert-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-qr-box {
  margin-top: 32px;
  padding: 20px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(58, 47, 41, 0.12);
  text-align: center;
}

/* ==========================================================================
 * ✨ 全局漂浮彩蛋（隐藏星星、收集进度条、随滚动长大的小猫、音乐按钮、飘爱心）
 * ========================================================================== */
.floating-music-btn {
  position: fixed;
  top: 16px;
  right: max(16px, calc(50% - 224px));
  z-index: 120;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-espresso);
  color: #fdf9ec;
  border: 2px solid #fdf9ec;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-music-btn.is-playing {
  background: var(--coral);
  animation: spinDisc 5s linear infinite;
}

.star-counter-pill {
  position: fixed;
  left: max(14px, calc(50% - 226px));
  bottom: 16px;
  z-index: 120;
  padding: 7px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid var(--border-ink);
  box-shadow: 3px 3px 0px var(--border-ink);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.collectible-star {
  position: absolute;
  z-index: 15;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--gold);
  cursor: pointer;
  padding: 4px;
  text-shadow: 0 0 10px rgba(231, 184, 84, 0.65);
  animation: starTwinkle 2.2s ease-in-out infinite;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.collectible-star.is-collected {
  transform: scale(1.9) rotate(45deg);
  opacity: 0;
  pointer-events: none;
}

@keyframes starTwinkle {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.25); opacity: 1; }
}

/* 随滚动长大的小猫吉祥物 */
.cat-mascot-wrap {
  position: fixed;
  right: max(14px, calc(50% - 226px));
  bottom: 14px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.cat-bubble {
  max-width: 190px;
  padding: 7px 11px;
  border-radius: 14px 14px 4px 14px;
  background: #ffffff;
  border: 1.5px solid var(--border-ink);
  box-shadow: 2px 2px 0 var(--border-ink);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-primary);
  margin-bottom: 6px;
  animation: fadeScaleIn 0.3s ease;
}

.cat-avatar-btn {
  pointer-events: auto;
  background: #fff9ec;
  border: 2px solid var(--border-ink);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--border-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: width 0.25s ease, height 0.25s ease, font-size 0.25s ease;
}

/* 任意点击飘出爱心 */
.click-heart {
  position: fixed;
  z-index: 400;
  pointer-events: none;
  font-size: 18px;
  animation: floatHeartUp 1s ease-out forwards;
}

@keyframes floatHeartUp {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.7); }
  100% { opacity: 0; transform: translate(-50%, -95px) scale(1.35); }
}

/* 烟花全屏画布 */
.fireworks-canvas {
  position: fixed;
  inset: 0;
  z-index: 350;
  pointer-events: none;
}

/* ==========================================================================
 * 💿 第三页 · 方大同《才二十三》黑胶唱机样式 & CCD 独立单图弹窗
 * ========================================================================== */
.wish-next-hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mint);
}

.song-chapter-section {
  background: linear-gradient(180deg, var(--bg-cream) 0%, #f6efe0 55%, var(--bg-cream) 100%);
}

.vinyl-player-card {
  background: #fffdf8;
  border: 2px solid var(--border-ink);
  border-radius: 24px;
  padding: 28px 20px 24px;
  box-shadow: var(--shadow-offset);
  text-align: center;
}

.turntable-stage {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.big-vinyl-disc {
  position: relative;
  width: 184px;
  height: 184px;
  border-radius: 50%;
  border: 3px solid var(--border-ink);
  background: radial-gradient(
    circle,
    #2d2724 0%,
    #1d1917 34%,
    #2e2825 36%,
    #1c1816 52%,
    #2b2522 54%,
    #181412 78%,
    #2a2421 100%
  );
  box-shadow: 0 12px 28px rgba(53, 43, 37, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.big-vinyl-disc.is-spinning {
  animation: spinDisc 9s linear infinite;
}

.big-vinyl-grooves {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.big-vinyl-label {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3889b 0%, #f7cf86 100%);
  border: 2px solid #fffdf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #352b25;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.16);
}

.big-vinyl-label-age {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.big-vinyl-label-title {
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
}

/* 复古唱针 */
.tonearm {
  position: absolute;
  top: 6px;
  right: 4px;
  z-index: 4;
  transform-origin: 18px 18px;
  transform: rotate(-22deg);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.tonearm.is-playing {
  transform: rotate(12deg);
}

.tonearm-base {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d8c8b4;
  border: 2px solid var(--border-ink);
}

.tonearm-arm {
  width: 4px;
  height: 82px;
  background: #8c7a6b;
  border: 1px solid var(--border-ink);
  margin: -4px auto 0;
  border-radius: 3px;
}

.tonearm-head {
  width: 12px;
  height: 16px;
  background: var(--coral);
  border: 1.5px solid var(--border-ink);
  border-radius: 3px;
  margin: -2px auto 0;
}

.song-chapter-title {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 0 0 4px;
}

.song-chapter-artist {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 12px;
}

.sound-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 18px;
  margin-bottom: 14px;
}

.sound-wave span {
  width: 3.5px;
  height: 5px;
  border-radius: 999px;
  background: var(--coral);
  opacity: 0.45;
  transition: height 0.2s ease;
}

.sound-wave.is-active span {
  opacity: 1;
  animation: waveBar 0.9s ease-in-out infinite alternate;
}

.sound-wave.is-active span:nth-child(2) { animation-delay: 0.15s; }
.sound-wave.is-active span:nth-child(3) { animation-delay: 0.3s; }
.sound-wave.is-active span:nth-child(4) { animation-delay: 0.45s; }
.sound-wave.is-active span:nth-child(5) { animation-delay: 0.6s; }

@keyframes waveBar {
  0% { height: 5px; }
  100% { height: 18px; }
}

.song-album-note {
  font-family: var(--font-serif);
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin: 0 0 16px;
}

.song-lyrics-box {
  background: var(--bg-cream);
  border-radius: 14px;
  padding: 14px 14px;
  border: 1px dashed rgba(120, 96, 74, 0.28);
  margin-bottom: 18px;
}

.song-lyric-line {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--ink-primary);
  margin: 4px 0;
}

.song-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.song-audio-tip {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.ccd-single-modal {
  border: 2px solid var(--border-ink);
}

.ccd-modal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  font-size: 11.5px;
  color: var(--ink-secondary);
  padding: 2px 4px 8px;
}

.ccd-modal-rec {
  color: #e53935;
  font-weight: 700;
}

/* ==========================================================================
 * 🎂 手绘草莓蛋糕吹蜡烛（麦克风+点击）& 切蛋糕分给爱的人
 * ========================================================================== */
.photo-cake-stage {
  position: relative;
  width: 248px;
  aspect-ratio: 386 / 380;
  margin: 0 auto 16px;
  border-radius: 18px;
  overflow: hidden;
  background: #fefbea;
}

.photo-cake-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 点亮时的温暖摇曳光晕（精准覆盖原图火苗中心） */
.photo-flame-glow {
  position: absolute;
  left: 46.5%;
  top: 10%;
  width: 9%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 102, 0.72) 0%, rgba(255, 168, 76, 0) 72%);
  pointer-events: none;
  animation: flameFlicker 0.8s ease-in-out infinite alternate;
}

.photo-flame-glow.is-windy {
  animation: flameWindy 0.16s ease-in-out infinite alternate;
}

@keyframes flameWindy {
  0% { transform: skewX(-18deg) scale(1.15, 0.82); }
  100% { transform: skewX(20deg) scale(0.85, 1.15); }
}

/* 吹灭后：用原图同色奶油底遮住火苗，露出小烛芯与上升青烟 */
.photo-flame-extinguished {
  position: absolute;
  left: 47.6%;
  top: 10%;
  width: 6.8%;
  height: 10.6%;
  background: #fefbea;
  border-radius: 50% 50% 20% 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.extinguished-wick {
  width: 2px;
  height: 7px;
  background: #4a3b32;
  border-radius: 2px;
}

.extinguished-smoke {
  position: absolute;
  top: -12px;
  font-size: 16px;
  color: #a3978c;
  transform: rotate(-90deg);
  animation: smokeRise 1.8s ease-out forwards;
}

.dual-btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.dual-btn-row .pill-btn {
  flex: 1 1 130px;
  padding: 11px 14px;
  font-size: 13.5px;
}

.pill-btn-mint {
  background: var(--mint);
  color: #ffffff;
  box-shadow: 3px 3px 0px var(--border-ink);
}

.mic-meter-box {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff9ec;
  border: 1px dashed var(--coral);
}

.mic-meter-label {
  font-size: 12.5px;
  color: var(--coral-deep);
  font-weight: 600;
  margin-bottom: 6px;
}

.mic-meter-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #f0e4ce;
  overflow: hidden;
}

.mic-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #f7c948, #f06f85);
  transition: width 0.08s linear;
}

.mic-error-tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--coral-deep);
}

.cake-slice-panel {
  margin-top: 16px;
  padding: 20px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f5faff 0%, #fefbea 100%);
  border: 1.5px dashed #85b8e6;
  animation: fadeScaleIn 0.45s ease;
}

.slice-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: #e5f3ff;
  color: #3d77b3;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.slice-art-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 8px;
}

.slice-first-text {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 4px 0 18px;
}

.slice-textarea-label {
  display: block;
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.slice-textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid #85b8e6;
  background: #ffffff;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--ink-primary);
  resize: vertical;
  outline: none;
}

.slice-textarea:focus {
  box-shadow: 0 0 0 3px rgba(133, 184, 230, 0.25);
}

.save-toast-tip {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--mint);
  font-weight: 600;
}

.saved-slice-preview {
  margin-top: 12px;
  padding: 8px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(58, 47, 41, 0.14);
}

.saved-slice-preview img {
  width: 100%;
  max-width: 240px;
  border-radius: 10px;
  display: block;
  margin: 6px auto 0;
}

/* ==========================================================================
 * 🎰 方案 2：9 颗不重复浪漫扭蛋机
 * ========================================================================== */
.gasha-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gasha-machine {
  background: #ffffff;
  border: 2px solid var(--border-ink);
  border-radius: 24px;
  padding: 20px 18px 22px;
  box-shadow: var(--shadow-offset);
}

.gasha-dome {
  position: relative;
  width: 210px;
  height: 155px;
  margin: 0 auto;
  border-radius: 105px 105px 24px 24px;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #eef7ff 65%, #dcecff 100%);
  border: 2.5px solid var(--border-ink);
  overflow: hidden;
}

.gasha-dome-shine {
  position: absolute;
  top: 14px;
  left: 24px;
  width: 34px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  transform: rotate(22deg);
  pointer-events: none;
}

.gasha-ball {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border-ink);
  overflow: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.gasha-ball.is-gone {
  opacity: 0;
  transform: scale(0.2) translateY(30px);
}

.gasha-ball.is-shaking {
  animation: gashaBounce 0.22s ease-in-out infinite alternate;
}

@keyframes gashaBounce {
  0% { transform: translate(0, 0) rotate(-12deg); }
  100% { transform: translate(4px, -10px) rotate(12deg); }
}

.gasha-ball-top {
  display: block;
  height: 50%;
  background: var(--cap-color);
  border-bottom: 1.5px solid var(--border-ink);
}

.gasha-ball-bottom {
  display: block;
  height: 50%;
  background: #ffffff;
}

.gasha-body {
  width: 230px;
  margin: -4px auto 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8a1b2;
  border: 2.5px solid var(--border-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.gasha-count-badge {
  font-size: 11.5px;
  font-weight: 700;
  background: #fffdf8;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--border-ink);
}

.gasha-knob {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fffdf8;
  border: 2.5px solid var(--border-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.6s ease;
}

.gasha-knob.is-turning {
  transform: rotate(360deg);
}

.gasha-knob-bar {
  width: 30px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  border: 1.5px solid var(--border-ink);
}

.gasha-chute {
  width: 82px;
  height: 36px;
  border-radius: 10px;
  background: #4d4235;
  border: 2px solid var(--border-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gasha-chute-hint {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.65);
}

.gasha-chute-ball {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--cap-color) 50%, #ffffff 50%);
  border: 1.5px solid var(--border-ink);
  animation: fadeScaleIn 0.35s ease;
}

.gasha-tray {
  background: #fffdf8;
  border: 1.5px solid rgba(58, 47, 41, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
}

.gasha-tray-title {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.gasha-tray-num {
  color: var(--coral-deep);
}

.gasha-tray-empty {
  margin: 4px 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.gasha-tray-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gasha-collected-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid rgba(58, 47, 41, 0.22);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
  cursor: pointer;
}

.gasha-collected-btn.is-selected {
  border-color: var(--coral);
  background: var(--coral-soft);
  box-shadow: 2px 2px 0 var(--border-ink);
}

.gasha-mini-ball {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--cap-color) 50%, #ffffff 50%);
  border: 1.2px solid var(--border-ink);
}

.gasha-note-card {
  background: #ffffff;
  border: 2px solid var(--border-ink);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow-offset);
  animation: fadeScaleIn 0.35s ease;
}

.gasha-note-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.gasha-note-pill {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #352b25;
  border: 1px solid var(--border-ink);
}

.gasha-note-title {
  font-weight: 700;
  font-size: 15px;
}

.gasha-note-text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.75;
}

/* ==========================================================================
 * 🗺️ 方案 4：手账足迹地图
 * ========================================================================== */
.map-board {
  position: relative;
  width: 100%;
  height: 230px;
  border-radius: 22px;
  background-color: #f6f2e4;
  background-image:
    linear-gradient(rgba(120, 96, 74, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 96, 74, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 2px solid var(--border-ink);
  box-shadow: var(--shadow-offset);
  overflow: hidden;
  margin-bottom: 14px;
}

.map-route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-compass {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 999px;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0;
  transition: transform 0.2s ease;
}

.map-pin.is-active {
  transform: translate(-50%, -56%) scale(1.12);
  z-index: 4;
}

.map-pin-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--border-ink);
  box-shadow: 2px 2px 0 var(--border-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.map-pin.is-active .map-pin-dot {
  background: var(--coral-soft);
  border-color: var(--coral-deep);
}

.map-pin-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-primary);
  background: rgba(255, 255, 255, 0.92);
  padding: 1px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.map-story-card {
  background: #ffffff;
  border: 1.5px solid rgba(58, 47, 41, 0.16);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  animation: fadeScaleIn 0.3s ease;
}

.map-story-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.map-story-city {
  font-weight: 700;
  font-size: 14.5px;
}

.map-story-date {
  font-size: 12px;
  color: var(--coral-deep);
  font-weight: 600;
}

.map-story-text {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
}

/* ==========================================================================
 * 💌 方案 3：亲手拆开的火漆印信封
 * ========================================================================== */
.wax-envelope-wrap {
  text-align: center;
  cursor: pointer;
}

.wax-envelope {
  position: relative;
  width: 100%;
  height: 215px;
  border-radius: 18px;
  background: linear-gradient(160deg, #f9f0dc 0%, #f1e1c4 100%);
  border: 2px solid var(--border-ink);
  box-shadow: var(--shadow-offset);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}

.wax-envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 112px;
  background: linear-gradient(180deg, #f4e5c8 0%, #ebd7b3 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-bottom: 2px solid rgba(58, 47, 41, 0.16);
}

.wax-seal-btn {
  position: absolute;
  top: 82px;
  left: 50%;
  margin-left: -29px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #962739;
  background: radial-gradient(circle at 35% 30%, #f47589 0%, #d4425a 65%, #a82d41 100%);
  color: #fff3f5;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(168, 45, 65, 0.38);
  animation: starTwinkle 2s ease-in-out infinite;
}

.wax-envelope-body {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--ink-secondary);
}

.wax-envelope-tip {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--coral-deep);
}

.letter-unfold {
  animation: fadeScaleIn 0.55s ease;
}

.letter-line-fade {
  opacity: 0;
  animation: letterFadeIn 0.7s ease forwards;
}

@keyframes letterFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
 * 📝 方案 5：23 岁心愿清单
 * ========================================================================== */
.wishlist-pad {
  background: #fffef9;
  border: 2px solid var(--border-ink);
  border-radius: 22px;
  padding: 18px 18px 22px;
  box-shadow: var(--shadow-offset);
}

.wishlist-holes {
  display: flex;
  justify-content: space-around;
  margin-bottom: 14px;
}

.wishlist-holes span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-cream-deep);
  border: 1.5px solid rgba(58, 47, 41, 0.35);
}

.wishlist-items {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.wishlist-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px dashed rgba(120, 96, 74, 0.22);
  cursor: pointer;
  font-size: 14px;
}

.wishlist-checkbox {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 2px solid var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: #ffffff;
}

.wishlist-row.is-checked .wishlist-checkbox {
  background: var(--coral);
}

.wishlist-row.is-checked .wishlist-text {
  color: var(--ink-primary);
  font-weight: 600;
}

.wishlist-add-form {
  display: flex;
  gap: 8px;
}

.wishlist-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(58, 47, 41, 0.25);
  background: #ffffff;
  font-size: 13.5px;
  outline: none;
}

.wishlist-input:focus {
  border-color: var(--coral);
}

.wishlist-add-btn {
  padding: 9px 15px;
  font-size: 13px;
  white-space: nowrap;
}

/* ==========================================================================
 * 🐶 真正透明背景「线条小狗」贴纸（分散贴在每一页留白与背景图上）
 * ========================================================================== */
.puppy-sticker {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  user-select: none;
  transform: rotate(var(--sticker-rot, 0deg));
  animation: puppyWiggle 4.4s ease-in-out infinite alternate;
}

.puppy-sticker-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(53, 43, 37, 0.16));
}

/* 深棕气球区专用：为透明贴纸增加柔和白色轮廓描边光晕，既无方框白底又清晰醒目 */
.balloon-section .puppy-sticker-img {
  filter:
    drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.72));
}

@keyframes puppyWiggle {
  0% {
    transform: rotate(calc(var(--sticker-rot, 0deg) - 2.5deg)) translateY(0px);
  }
  100% {
    transform: rotate(calc(var(--sticker-rot, 0deg) + 2.5deg)) translateY(-3px);
  }
}

.cake-finished-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff3f6 0%, #fff8dc 100%);
  border: 1.5px solid var(--coral);
  color: var(--coral-deep);
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
  text-align: center;
  animation: fadeScaleIn 0.4s ease;
}

/* ==========================================================================
 * 📖 一页一页全屏翻页绘本模式（支持上下/左右滑动与平滑切页）
 * ========================================================================== */
.app-shell.is-paged-mode {
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pager-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-slide {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 72px;
}

.page-slide .section-block,
.page-slide .balloon-section,
.page-slide .certificate-section {
  min-height: calc(100dvh - 72px);
  padding-top: 66px;
  padding-bottom: 92px;
}

.slide-from-next {
  animation: pageSlideInNext 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.slide-from-prev {
  animation: pageSlideInPrev 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pageSlideInNext {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pageSlideInPrev {
  from {
    opacity: 0;
    transform: translateY(-26px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 顶部页码章节胶囊 */
.page-top-badge {
  position: fixed;
  top: 16px;
  left: max(14px, calc(50% - 226px));
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--border-ink);
  box-shadow: 2px 2px 0 var(--border-ink);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.page-top-dot {
  color: var(--coral);
}

/* 底部翻页控制栏 */
.pager-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 125;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(253, 249, 236, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1.5px solid rgba(58, 47, 41, 0.14);
}

.pager-nav-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border-ink);
  background: #ffffff;
  color: var(--ink-primary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--border-ink);
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.pager-nav-btn.is-next {
  background: var(--coral);
  color: #ffffff;
}

.pager-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.pager-swipe-hint {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 600;
}

/* 翻页模式下把星星胶囊与小猫抬高到导航栏上方，彻底避免遮挡 */
.star-counter-pill.is-paged-offset {
  bottom: 66px;
}

.cat-mascot-wrap.is-paged-offset {
  bottom: 64px;
}

/* ==========================================================================
 * 🐱 手绘马克笔风「生日扭蛋机」& 9 只小猫扭蛋
 * ========================================================================== */
.cat-gasha-machine {
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(8px);
  border: 2.5px solid #2e231d;
  border-radius: 26px;
  padding: 18px 14px 20px;
  box-shadow: var(--shadow-offset);
}

.cat-gasha-sign {
  width: 248px;
  margin: 0 auto -6px;
  padding: 6px;
  border-radius: 18px;
  background: #b9aca0;
  border: 2.5px solid #2e231d;
  position: relative;
  z-index: 3;
}

.cat-gasha-sign-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 12px;
  border: 2px solid #2e231d;
  background: linear-gradient(
    90deg,
    #b7e3fa 0%,
    #ffe68a 22%,
    #9ce4b8 46%,
    #ffb0c8 72%,
    #c6c2ff 100%
  );
}

.cat-paw-icon {
  font-size: 16px;
  filter: drop-shadow(0 1px 0 #2e231d);
}

.cat-gasha-sign-text {
  display: inline-flex;
  gap: 2px;
  font-family: var(--font-serif);
  font-size: 19.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  -webkit-text-stroke: 1px #2e231d;
  text-shadow: 0 2px 0 rgba(46, 35, 29, 0.35);
}

.sign-c-0 { color: #ffcf4d; }
.sign-c-1 { color: #ff7ba9; }
.sign-c-2 { color: #6fe3c1; }
.sign-c-3 { color: #7cd4ff; }
.sign-c-4 { color: #ff9c5a; }

.cat-gasha-dome {
  position: relative;
  width: 262px;
  height: 196px;
  margin: 0 auto;
  border-radius: 118px 118px 28px 28px;
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #e9f7fc 68%, #d2edf6 100%);
  border: 3px solid #2e231d;
  overflow: hidden;
  z-index: 2;
}

.cat-gasha-dome-bg-balls {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 224, 130, 0.72) 0 22px, transparent 23px),
    radial-gradient(circle at 74% 24%, rgba(79, 195, 247, 0.65) 0 24px, transparent 25px),
    radial-gradient(circle at 52% 48%, rgba(248, 187, 208, 0.55) 0 22px, transparent 23px),
    radial-gradient(circle at 82% 58%, rgba(171, 71, 188, 0.45) 0 20px, transparent 21px),
    radial-gradient(circle at 28% 82%, rgba(139, 195, 74, 0.6) 0 22px, transparent 23px);
  pointer-events: none;
}

.cat-capsule-node {
  position: absolute;
  width: 58px;
  height: 58px;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 2;
}

.cat-capsule-node.is-gone {
  opacity: 0;
  transform: scale(0.2) translateY(38px);
}

.cat-capsule-node.is-shaking {
  animation: gashaBounce 0.2s ease-in-out infinite alternate;
}

.cat-gasha-glass-shine {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 18px;
  height: 76px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  transform: rotate(-14deg);
  pointer-events: none;
  z-index: 4;
}

.cat-gasha-base {
  width: 266px;
  margin: -6px auto 0;
  padding: 16px 14px 12px;
  border-radius: 16px 16px 26px 26px;
  background: linear-gradient(180deg, #ff3e7f 0%, #f5276d 68%, #d91c5c 100%);
  border: 3px solid #2e231d;
  box-shadow: inset 0 -10px 0 rgba(255, 255, 255, 0.22);
  position: relative;
  z-index: 3;
}

.cat-gasha-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.cat-price-tag {
  width: 66px;
  padding: 6px 4px;
  border-radius: 10px;
  background: linear-gradient(180deg, #effaff 0%, #d3effa 100%);
  border: 2px solid #2e231d;
  font-size: 11px;
  font-weight: 800;
  color: #2e231d;
  text-align: center;
  line-height: 1.3;
}

.cat-knob-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cat-knob-paw {
  font-size: 12px;
  margin-bottom: -4px;
  z-index: 2;
}

.cat-silver-knob {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f5efe8 0%, #c8bdb2 70%, #9b8e82 100%);
  border: 2.6px solid #2e231d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.6s ease;
  box-shadow: 0 3px 0 #2e231d;
}

.cat-silver-knob.is-turning {
  transform: rotate(360deg);
}

.cat-silver-knob-bar {
  width: 36px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e7dfd6, #bfb3a7);
  border: 2px solid #2e231d;
  transform: rotate(-28deg);
}

.cat-coin-slot {
  width: 66px;
  padding: 6px 5px;
  border-radius: 10px;
  background: linear-gradient(180deg, #cbb392 0%, #b59872 100%);
  border: 2px solid #2e231d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.cat-coin-hole {
  width: 6px;
  height: 28px;
  border-radius: 3px;
  background: #2e231d;
  flex-shrink: 0;
}

.cat-coin-label {
  font-size: 10px;
  font-weight: 800;
  color: #2e231d;
  line-height: 1.25;
  text-align: center;
}

.cat-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 6px;
}

.cat-sticker-paw,
.cat-sticker-face {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fffdf8;
  border: 2px solid #2e231d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 6px;
}

.cat-chute-arch {
  width: 96px;
  height: 68px;
  border-radius: 48px 48px 12px 12px;
  background: linear-gradient(180deg, #fff4df 0%, #e7ccb5 100%);
  border: 4px solid #a87538;
  outline: 2.5px solid #2e231d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cat-chute-empty {
  font-size: 11px;
  font-weight: 700;
  color: #8c7058;
}

.cat-chute-drop {
  animation: fadeScaleIn 0.35s ease;
}

.cat-gasha-foot-bar {
  margin-top: 10px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #fffdf8;
  background: rgba(46, 35, 29, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ==========================================================================
 * 🌸 每一页专属日系动漫水彩生日背景图（告别纯黄色，保留清晰可读性）
 * ========================================================================== */
:root {
  --bg-anime-cake: url('./assets/bg_anime_cake.jpg');
  --bg-anime-music: url('./assets/bg_anime_music.jpg');
  --bg-anime-travel: url('./assets/bg_anime_travel.jpg');
}

.gate-overlay {
  background-image:
    linear-gradient(180deg, rgba(255, 248, 252, 0.42), rgba(246, 240, 255, 0.5)),
    var(--bg-anime-music);
  background-size: cover;
  background-position: center;
}

#candle-wish,
#gashapon,
#scratch-gifts {
  background-image:
    linear-gradient(180deg, rgba(255, 252, 255, 0.56), rgba(255, 249, 252, 0.48)),
    var(--bg-anime-cake);
  background-size: cover;
  background-position: center top;
}

#song-chapter,
#letter,
#certificate {
  background-image:
    linear-gradient(180deg, rgba(255, 250, 254, 0.58), rgba(248, 245, 255, 0.52)),
    var(--bg-anime-music);
  background-size: cover;
  background-position: center top;
}

#footprint-map,
#wish-list {
  background-image:
    linear-gradient(180deg, rgba(247, 253, 255, 0.54), rgba(244, 252, 248, 0.5)),
    var(--bg-anime-travel);
  background-size: cover;
  background-position: center top;
}

#balloon-game {
  background-image:
    linear-gradient(180deg, rgba(58, 43, 66, 0.86), rgba(77, 56, 62, 0.9)),
    var(--bg-anime-music);
  background-size: cover;
  background-position: center;
}

/* 半透明毛玻璃质感让文字在动漫背景图上更通透立体 */
.candle-card,
.vinyl-player-card,
.gasha-tray,
.gasha-note-card,
.map-story-card,
.wishlist-pad,
.scratch-wrapper,
.cert-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

/* ==========================================================================
 * 🗺️ 中国地图足迹打卡本与城市合照卡片
 * ========================================================================== */
.map-board.is-china-map {
  height: 255px;
  background-color: #eaf5fc;
}

.china-map-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.94;
  pointer-events: none;
}

.map-city-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.map-city-tab {
  padding: 6px 4px;
  border-radius: 999px;
  border: 1.5px solid rgba(58, 47, 41, 0.2);
  background: rgba(255, 255, 255, 0.88);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.map-city-tab.is-active {
  background: var(--coral);
  color: #ffffff;
  border-color: var(--border-ink);
  box-shadow: 2px 2px 0 var(--border-ink);
}

.map-story-photo-wrap {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin: 8px 0 12px;
  border: 1.5px solid rgba(58, 47, 41, 0.14);
  background: #f5efe3;
  cursor: pointer;
}

.map-story-photo {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  display: block;
}

.map-photo-zoom-tip {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(53, 43, 37, 0.72);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
}

/* ==========================================================================
 * 🐱 真实小猫头像气球 & 扭蛋机左侧对称留白
 * ========================================================================== */
.cat-side-spacer {
  width: 66px;
  flex-shrink: 0;
}

.balloon-body.is-cat-balloon {
  width: 64px;
  height: 68px;
  border-radius: 50% 50% 48% 48% / 52% 52% 48% 48%;
  border: 3px solid currentColor;
  padding: 2px;
  overflow: visible;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.balloon-cat-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  pointer-events: none;
}

/* ==========================================================================
 * ✨ 10 页常驻保活 & 底部导航栏收纳星星与小猫（彻底消除正文遮挡）
 * ========================================================================== */
.page-slide.is-hidden-slide {
  display: none;
}

.page-slide.is-active-slide {
  display: block;
}

.pager-center-dock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dock-star-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid var(--border-ink);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
  cursor: pointer;
}

.dock-cat-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff9ec;
  border: 1.5px solid var(--border-ink);
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dock-cat-btn.is-open {
  background: var(--coral-soft);
  transform: scale(1.08);
}

.dock-cat-bubble {
  position: fixed;
  bottom: 62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 130;
  max-width: 300px;
  padding: 9px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid var(--border-ink);
  box-shadow: 3px 3px 0 var(--border-ink);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
  text-align: center;
  cursor: pointer;
  animation: fadeScaleIn 0.25s ease;
}
