/* ============ 基础 ============ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --pink: #FF9EC4;
  --pink-deep: #FF7BAE;
  --pink-soft: #FFE3F0;
  --purple: #B49BFF;
  --purple-soft: #EEE8FF;
  --mint: #7FDCC7;
  --sky: #8FCBF7;
  --yellow: #FFD06B;
  --ink: #5A4A63;
  --ink-2: #8C7C97;
  --ink-3: #B4A6BD;
  --card: #FFFFFF;
  --radius: 24px;
  --shadow: 0 12px 30px rgba(151, 120, 170, 0.16);
  --shadow-sm: 0 6px 16px rgba(151, 120, 170, 0.13);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: #F6EDF8;
  overscroll-behavior: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 600px at 8% -10%, #FFDEF0 0%, transparent 60%),
    radial-gradient(800px 600px at 100% 0%, #E4E1FF 0%, transparent 55%),
    radial-gradient(700px 500px at 50% 110%, #D9F6F1 0%, transparent 60%),
    #F8F1FA;
  min-height: 100dvh;
}

[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============ 手机容器 ============ */
.app {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100dvh;
  max-height: 940px;
  background: linear-gradient(180deg, #FFF6FB 0%, #F7F2FF 45%, #EFF8FF 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 480px) and (min-height: 760px) {
  .app {
    height: calc(100dvh - 40px);
    border-radius: 34px;
    box-shadow: 0 30px 70px rgba(140, 110, 160, 0.24), 0 0 0 8px rgba(255, 255, 255, 0.6);
  }
}

.screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* ============ 选择页 ============ */
.screen-select {
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  position: relative;
  overflow-y: auto;
}

.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(28px); opacity: .55; }
.b1 { width: 200px; height: 200px; background: #FFC9E1; top: -60px; left: -50px; }
.b2 { width: 180px; height: 180px; background: #D6CBFF; top: 120px; right: -70px; }
.b3 { width: 220px; height: 220px; background: #C9F1E8; bottom: -80px; left: 20px; }

.select-head { position: relative; text-align: center; padding: 12px 0 18px; }
.logo {
  width: 62px; height: 62px; margin: 0 auto 12px;
  border-radius: 22px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #FFB6D4, #FF8FB8);
  box-shadow: 0 10px 22px rgba(255, 138, 180, .38), inset 0 -4px 10px rgba(255,255,255,.35);
  animation: floaty 4s ease-in-out infinite;
}
.logo svg { width: 32px; height: 32px; color: #fff; }
.select-head h1 {
  margin: 0 0 8px;
  font-size: 27px;
  letter-spacing: 2px;
  background: linear-gradient(100deg, #FF85B3, #B08BFF 60%, #6FC8EA);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.select-head p { margin: 0; font-size: 13px; color: var(--ink-2); letter-spacing: .5px; }

.pet-choices {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: auto 0;
  padding: 12px 0;
}

.pet-card {
  position: relative;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, .82);
  border-radius: 22px;
  padding: 10px 8px 12px;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s, border-color .22s;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.pet-card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.7), transparent 50%);
  pointer-events: none;
}
.pet-card:hover { transform: translateY(-3px); }
.pet-card .preview { height: 106px; display: flex; align-items: center; justify-content: center; }
.pet-card .preview svg { width: 106px; height: 106px; overflow: visible; flex: 0 0 auto; }
.pet-card .cname { font-size: 14px; font-weight: 700; text-align: center; margin-top: 2px; position: relative; z-index: 2; }
.pet-card .cdesc { font-size: 10.5px; color: var(--ink-3); text-align: center; margin-top: 3px; line-height: 1.35; position: relative; z-index: 2; }
.pet-card.is-picked {
  border-color: var(--pink);
  box-shadow: 0 12px 26px rgba(255, 138, 180, .34);
  transform: translateY(-4px);
}
.pet-card .pick-mark {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--pink-deep); color: #fff;
  display: grid; place-items: center;
  transform: scale(0); transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.pet-card .pick-mark svg { width: 13px; height: 13px; }
.pet-card.is-picked .pick-mark { transform: scale(1); }

.select-foot { position: relative; padding-top: 14px; }
.name-field {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.85);
  border-radius: 18px;
  padding: 8px 8px 8px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.name-field span { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.name-field input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: transparent;
  font-family: var(--font); font-size: 15px; color: var(--ink);
  text-align: right; padding-right: 8px;
}
.name-field input::placeholder { color: var(--ink-3); }

.btn {
  border: none; cursor: pointer;
  font-family: var(--font); font-size: 16px; font-weight: 700; letter-spacing: 1px;
  border-radius: 18px;
  padding: 15px 20px;
  transition: transform .16s, box-shadow .2s, filter .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  width: 100%;
  color: #fff;
  background: linear-gradient(120deg, #FF9DC2, #FF85B3 40%, #B79CFF);
  box-shadow: 0 10px 22px rgba(255, 133, 179, .38);
}
.btn-primary:disabled {
  background: #E7DFEE; color: #B3A5BE; box-shadow: none; cursor: default;
}
.btn-ghost {
  background: #F3ECF9; color: var(--ink-2); font-size: 14px; padding: 12px 18px;
}
.select-tip { text-align: center; font-size: 11px; color: var(--ink-3); margin: 10px 0 0; }

/* ============ 顶部栏 ============ */
.topbar {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 8px;
  gap: 10px;
}
.pet-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar-mini {
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 15px;
  background: linear-gradient(150deg, #FFE6F2, #E9E2FF);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9), 0 5px 12px rgba(160,130,180,.16);
  overflow: hidden;
  display: grid; place-items: center;
}
.avatar-mini svg { width: 38px; height: 38px; margin-top: 2px; }
.id-text { min-width: 0; }
.title-row { display: flex; align-items: center; gap: 6px; }
.title-row strong { font-size: 16px; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.lv {
  font-size: 10px; font-weight: 700; color: #fff;
  background: linear-gradient(120deg, #FFB0CD, #B79CFF);
  padding: 2px 7px; border-radius: 8px;
}
.expbar {
  width: 96px; height: 5px; border-radius: 4px;
  background: #EDE4F3; margin-top: 5px; overflow: hidden;
}
.expbar i {
  display: block; height: 100%; width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, #FFB3D1, #B79CFF);
  transition: width .4s ease;
}
.coins {
  display: flex; align-items: center; gap: 5px;
  background: #fff;
  padding: 7px 12px 7px 8px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 14px; color: #8A6A2F;
  flex: 0 0 auto;
}
.coins .ico { width: 20px; height: 20px; }
.coins.bump { animation: coinBump .45s ease; }

/* ============ 场景 ============ */
.scene {
  position: relative;
  flex: 1 1 auto;
  min-height: 210px;
  margin: 4px 14px 0;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #DDF1FF 0%, #EFE8FF 55%, #FFF0F8 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), 0 10px 24px rgba(150, 130, 190, .13);
  isolation: isolate;
}

.sky { position: absolute; inset: 0; overflow: hidden; }
.sun {
  position: absolute; top: 22px; right: 30px;
  width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF3C4, #FFD98A 60%, #FFC96B);
  box-shadow: 0 0 30px rgba(255, 214, 130, .75);
  animation: sunPulse 6s ease-in-out infinite;
}
.cloud {
  position: absolute;
  background: rgba(255,255,255,.9);
  border-radius: 50px;
  filter: blur(.3px);
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: inherit; border-radius: 50%;
}
.cloud::before { width: 60%; height: 145%; left: 8%; top: -70%; }
.cloud::after { width: 45%; height: 120%; right: 10%; top: -48%; }
.c1 { width: 76px; height: 24px; top: 34px; left: 18px; opacity: .95; animation: drift 26s linear infinite; }
.c2 { width: 54px; height: 18px; top: 74px; left: 150px; opacity: .7; animation: drift 34s linear infinite reverse; }
.c3 { width: 92px; height: 26px; top: 132px; left: 40px; opacity: .45; animation: drift 44s linear infinite; }

.hill { position: absolute; border-radius: 50% 50% 0 0; }
.h1 { width: 240px; height: 110px; background: #D6F0E5; bottom: 26px; left: -60px; opacity: .9; }
.h2 { width: 300px; height: 130px; background: #C8EBE0; bottom: 22px; right: -100px; }
.ground {
  position: absolute; left: -10%; right: -10%; bottom: -46%;
  height: 62%; border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #B7E7C9, #98DDB4);
}
.grass {
  position: absolute; left: 0; right: 0; bottom: 0; height: 44px;
  background:
    radial-gradient(circle at 12% 100%, #A2E0BC 0 18px, transparent 19px),
    radial-gradient(circle at 32% 100%, #B0E7C9 0 14px, transparent 15px),
    radial-gradient(circle at 68% 100%, #A2E0BC 0 20px, transparent 21px),
    radial-gradient(circle at 88% 100%, #B0E7C9 0 16px, transparent 17px);
  opacity: .85;
}

.pet-stage {
  position: absolute;
  left: 50%; bottom: 16px;
  width: 86%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 3;
}
.pet-stage svg { width: 100%; height: 100%; overflow: visible; }

.sleep-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(84, 72, 130, .42), rgba(70, 62, 120, .3));
  z-index: 4;
  pointer-events: none;
  transition: opacity .4s;
}
.sleep-veil span {
  position: absolute; color: rgba(255,255,255,.9); font-weight: 800;
  animation: zzz 3.4s ease-in-out infinite;
}
.sleep-veil span:nth-child(1) { left: 62%; top: 26%; font-size: 22px; }
.sleep-veil span:nth-child(2) { left: 70%; top: 18%; font-size: 16px; animation-delay: .7s; }
.sleep-veil span:nth-child(3) { left: 77%; top: 12%; font-size: 12px; animation-delay: 1.4s; }

.bubble {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  max-width: 78%;
  background: rgba(255,255,255,.96);
  border-radius: 16px;
  padding: 9px 15px;
  font-size: 12.5px; line-height: 1.45; text-align: center;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(150,120,180,.18);
  z-index: 6;
  animation: bubbleIn .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.bubble::after {
  content: ""; position: absolute; bottom: -6px; left: 50%; margin-left: -6px;
  width: 12px; height: 12px; background: inherit; transform: rotate(45deg);
  border-radius: 2px;
}

.scene-hint {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; color: rgba(90, 74, 99, .42);
  letter-spacing: 1px; z-index: 2; pointer-events: none;
  transition: opacity .4s;
}

.fx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 7; overflow: hidden; }
.fx {
  position: absolute;
  font-size: 18px;
  animation: fxFloat 1.1s ease-out forwards;
}
.fx.heart { color: var(--pink-deep); font-size: 20px; }
.fx.plus {
  font-size: 14px; font-weight: 800; color: #FF7BAE;
  text-shadow: 0 1px 0 #fff;
}
.bubble-fx {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.95), rgba(190,235,255,.65));
  border: 1.5px solid rgba(255,255,255,.9);
  animation: bubbleUp 1.6s ease-out forwards;
}

/* ============ 状态条 ============ */
.stats {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
  margin: 10px 14px 0;
  padding: 12px 13px 11px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 8px 20px rgba(150, 130, 190, .1);
  backdrop-filter: blur(10px);
}
.stat {
  display: flex; align-items: center; gap: 6px;
  min-width: 0;
}
.stat .s-ico {
  width: 18px; height: 18px; flex: 0 0 auto;
  display: grid; place-items: center;
  color: #fff;
  border-radius: 7px;
}
.stat .s-ico svg { width: 12px; height: 12px; }
.stat:nth-child(1) .s-ico { background: linear-gradient(140deg, #FFB98A, #FF9A6B); }
.stat:nth-child(2) .s-ico { background: linear-gradient(140deg, #8ED6F9, #66BEF0); }
.stat:nth-child(3) .s-ico { background: linear-gradient(140deg, #A9DFF5, #7FD0EE); }
.stat:nth-child(4) .s-ico { background: linear-gradient(140deg, #FFB2CE, #FF92B8); }
.stat:nth-child(5) .s-ico { background: linear-gradient(140deg, #C6B0FF, #A98CFB); }
.stat .bar {
  flex: 1; height: 8px; border-radius: 6px;
  background: #EFE7F4;
  overflow: hidden;
  min-width: 0;
}
.stat .bar i {
  display: block; height: 100%; width: 100%;
  border-radius: 6px;
  transition: width .5s cubic-bezier(.34,1.2,.64,1), background .4s;
}
.stat:nth-child(1) .bar i { background: linear-gradient(90deg, #FFCB9E, #FF9A6B); }
.stat:nth-child(2) .bar i { background: linear-gradient(90deg, #A9E1FB, #5FBBEF); }
.stat:nth-child(3) .bar i { background: linear-gradient(90deg, #C0EAF8, #7FD0EE); }
.stat:nth-child(4) .bar i { background: linear-gradient(90deg, #FFC7DC, #FF87B0); }
.stat:nth-child(5) .bar i { background: linear-gradient(90deg, #D6C8FF, #A98CFB); }
.stat .val { font-size: 9.5px; color: var(--ink-3); width: 22px; text-align: right; flex: 0 0 auto; }
.stat.is-low .bar i { filter: saturate(.6); }
.stat.is-low .s-ico { animation: warnPulse 1.4s ease-in-out infinite; }

/* ============ 动作按钮 ============ */
.actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 10px 14px 8px;
}
.act {
  border: none; background: none; cursor: pointer;
  font-family: var(--font);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 0;
}
.act .bubble-btn {
  width: 100%; aspect-ratio: 1 / 1; max-width: 52px;
  border-radius: 18px;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 6px 14px rgba(150, 120, 175, .2), inset 0 -3px 8px rgba(0,0,0,.06), inset 0 3px 8px rgba(255,255,255,.45);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}
.act .bubble-btn svg { width: 23px; height: 23px; }
.act span { font-size: 10.5px; color: var(--ink-2); letter-spacing: .3px; white-space: nowrap; }
.act:active .bubble-btn { transform: scale(.9); }
.act[data-act="feed"] .bubble-btn { background: linear-gradient(150deg, #FFC69B, #FF9C6E); }
.act[data-act="water"] .bubble-btn { background: linear-gradient(150deg, #A5DFFB, #63BEF0); }
.act[data-act="bath"] .bubble-btn { background: linear-gradient(150deg, #B7E6F7, #7CD2ED); }
.act[data-act="play"] .bubble-btn { background: linear-gradient(150deg, #B7A5FF, #9678F6); }
.act[data-act="sleep"] .bubble-btn { background: linear-gradient(150deg, #C9B8FF, #9E86F0); }
.act[data-act="touch"] .bubble-btn { background: linear-gradient(150deg, #FFB6D3, #FF8AB6); }
.act.is-cool .bubble-btn { filter: grayscale(.35) brightness(1.05); }

/* ============ 底部导航 ============ */
.tabbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(226, 213, 236, .7);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  margin-top: auto;
}
.tab {
  border: none; background: none; cursor: pointer;
  font-family: var(--font);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 5px 0;
  color: var(--ink-3);
  transition: color .2s, transform .2s;
  position: relative;
}
.tab svg { width: 21px; height: 21px; }
.tab span { font-size: 9.5px; letter-spacing: .3px; }
.tab.is-active { color: var(--pink-deep); transform: translateY(-1px); }
.tab.is-active svg { filter: drop-shadow(0 3px 6px rgba(255, 130, 175, .4)); }
.tab.is-active::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 20px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #FFB0CD, #B79CFF);
  transform: translateX(-50%);
}

/* ============ 弹层 ============ */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(76, 58, 92, .34);
  backdrop-filter: blur(3px);
  animation: fadeIn .22s ease;
}
.sheet {
  width: 100%; max-width: 440px;
  max-height: 88dvh;
  background: linear-gradient(180deg, #FFF8FC, #FBF7FF);
  border-radius: 28px 28px 0 0;
  display: flex; flex-direction: column;
  box-shadow: 0 -14px 40px rgba(120, 90, 150, .22);
  animation: sheetUp .32s cubic-bezier(.2,.9,.3,1);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet-head {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 8px;
}
.sheet-head h2 { margin: 0; font-size: 18px; letter-spacing: 1px; }
.sheet-close {
  border: none; background: #F2EAF8; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-2);
}
.sheet-close svg { width: 15px; height: 15px; }
.sheet-body { overflow-y: auto; padding: 4px 18px 22px; }

/* ============ 打卡 ============ */
.checkin-hero {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(120deg, #FFE6F3, #EDE6FF);
  border-radius: 20px; padding: 14px 16px;
  margin-bottom: 14px;
}
.checkin-hero .big {
  font-size: 30px; font-weight: 800; color: var(--pink-deep);
  line-height: 1;
}
.checkin-hero .txt { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.checkin-hero .txt b { color: var(--ink); }

.days {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 9px; margin-bottom: 16px;
}
.day {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 10px 6px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition: transform .2s;
}
.day .d-label { font-size: 10px; color: var(--ink-3); margin-bottom: 4px; }
.day .d-coin { display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 700; color: #B98A2E; }
.day .d-coin svg { width: 14px; height: 14px; }
.day .d-state { font-size: 9px; color: var(--ink-3); margin-top: 3px; }
.day.is-done { background: linear-gradient(160deg, #FFF3F9, #FFE9F4); }
.day.is-done .d-state { color: var(--pink-deep); }
.day.is-today {
  border-color: var(--pink);
  box-shadow: 0 8px 20px rgba(255, 138, 180, .3);
  animation: dayPulse 2.4s ease-in-out infinite;
}
.day.is-today .d-label { color: var(--pink-deep); font-weight: 700; }
.day.is-big { grid-column: span 4; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; }
.day.is-big .d-label { margin: 0; font-size: 12px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.day.is-big .d-label svg { width: 14px; height: 14px; color: #FF9EC4; }
.day.is-big .d-state { margin: 0; }
.day.is-big .d-coin { font-size: 14px; }

.reward-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.reward-row {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 10px 12px;
  font-size: 12px; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.reward-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); flex: 0 0 auto; }

/* ============ 衣柜 ============ */
.wardrobe-tabs {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.chip {
  border: none; cursor: pointer; font-family: var(--font);
  font-size: 12.5px; padding: 7px 14px; border-radius: 12px;
  background: #F2EAF8; color: var(--ink-2);
  transition: .2s;
}
.chip.is-on { background: linear-gradient(120deg, #FFB0CD, #B79CFF); color: #fff; font-weight: 700; }

.acc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.acc {
  background: #fff; border-radius: 18px; padding: 10px 8px;
  text-align: center; box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  cursor: pointer; position: relative;
  transition: transform .2s, border-color .2s;
}
.acc:active { transform: scale(.96); }
.acc .thumb {
  height: 62px; display: grid; place-items: center; margin-bottom: 4px;
}
.acc .thumb svg { width: 58px; height: 58px; overflow: visible; }
.acc .aname { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.acc .aprice { font-size: 10px; color: #B98A2E; display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 2px; }
.acc .aprice svg { width: 11px; height: 11px; }
.acc.is-owned .aprice { color: var(--mint); }
.acc.is-worn { border-color: var(--pink); background: linear-gradient(160deg, #FFF5FA, #FFEAF4); }
.acc.is-worn::after {
  content: "穿着中"; position: absolute; top: -7px; right: 6px;
  font-size: 8.5px; color: #fff; background: var(--pink-deep);
  padding: 2px 6px; border-radius: 8px;
}
.acc .lock-tag {
  position: absolute; top: 8px; right: 8px; color: var(--ink-3); opacity: .55;
}
.acc .lock-tag svg { width: 12px; height: 12px; }

.wear-all { margin-bottom: 14px; }
.tip-line { font-size: 11px; color: var(--ink-3); text-align: center; margin: 12px 0 0; line-height: 1.6; }

/* ============ 游戏 ============ */
.game-list { display: flex; flex-direction: column; gap: 12px; }
.game-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 20px; padding: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s, border-color .2s;
}
.game-card:active { transform: scale(.98); }
.game-card .g-ico {
  width: 52px; height: 52px; border-radius: 17px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff;
  box-shadow: inset 0 -3px 8px rgba(0,0,0,.07);
}
.game-card .g-ico svg { width: 26px; height: 26px; }
.game-card .g-txt { flex: 1; min-width: 0; }
.game-card .g-txt h3 { margin: 0 0 3px; font-size: 14.5px; }
.game-card .g-txt p { margin: 0; font-size: 11px; color: var(--ink-3); line-height: 1.4; }
.game-card .g-best { font-size: 10px; color: var(--pink-deep); font-weight: 700; flex: 0 0 auto; background: #FFF0F6; padding: 5px 8px; border-radius: 9px; }
.g1 .g-ico { background: linear-gradient(150deg, #FFC08F, #FF9A6B); }
.g2 .g-ico { background: linear-gradient(150deg, #A9A0FF, #8577F0); }

/* 游戏运行界面 */
.game-wrap { display: flex; flex-direction: column; gap: 10px; }
.game-hud {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink-2);
  background: #fff; border-radius: 14px; padding: 9px 14px;
  box-shadow: var(--shadow-sm);
}
.game-hud b { font-size: 16px; color: var(--ink); }
.game-hud .time-left { color: var(--pink-deep); font-weight: 800; font-size: 16px; }
#game-canvas-wrap {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #4B4470, #6E628F 60%, #8E7FA8);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25), 0 10px 24px rgba(110,90,140,.2);
  aspect-ratio: 3 / 4;
  max-height: 52dvh;
  margin: 0 auto;
  width: 100%;
}
#game-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.game-tip { font-size: 11px; color: var(--ink-3); text-align: center; margin: 0; }

.mem-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 4px 0 10px;
}
.mcard {
  aspect-ratio: 3 / 4;
  perspective: 600px;
  cursor: pointer;
}
.mcard .inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .42s cubic-bezier(.3,.9,.3,1);
  border-radius: 14px;
}
.mcard.is-open .inner, .mcard.is-matched .inner { transform: rotateY(180deg); }
.mcard .face {
  position: absolute; inset: 0;
  border-radius: 14px;
  backface-visibility: hidden;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.mcard .back {
  background: linear-gradient(150deg, #FFC6DC, #C3AEFF);
  color: rgba(255,255,255,.9);
}
.mcard .back svg { width: 22px; height: 22px; }
.mcard .front {
  background: #fff;
  transform: rotateY(180deg);
  border: 2px solid #F6E7F1;
  color: var(--pink-deep);
}
.mcard .front svg { width: 30px; height: 30px; }
.mcard.is-matched { animation: matchPop .45s ease; }
.mcard.is-matched .front { background: linear-gradient(160deg, #FFF6FB, #FFE7F3); border-color: #FFC6DC; }

/* 结果页 */
.result-card {
  text-align: center;
  padding: 8px 0 4px;
}
.result-card .r-emoji { font-size: 0; }
.result-card .r-title { font-size: 20px; font-weight: 800; margin: 4px 0 6px; color: var(--pink-deep); }
.result-card .r-score { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.result-card .r-reward {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(120deg, #FFF3D9, #FFE9C4);
  color: #B98A2E; font-weight: 800; font-size: 15px;
  padding: 9px 18px; border-radius: 14px;
  margin-bottom: 18px;
}
.result-card .r-reward svg { width: 20px; height: 20px; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ============ 提示 toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: rgba(74, 58, 88, .92);
  color: #fff; font-size: 12.5px;
  padding: 10px 18px; border-radius: 14px;
  z-index: 90;
  animation: toastIn .3s ease;
  max-width: 80vw; text-align: center;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(70,50,90,.25);
}

/* ============ 宠物动画 ============ */
.pet-root {
  transform-box: fill-box;
  transform-origin: 50% 92%;
  animation: breathe 3.6s ease-in-out infinite;
}
.pet-stage.is-jumping .pet-root { animation: jump .62s cubic-bezier(.3,.8,.4,1); }
.pet-stage.is-shaking .pet-root { animation: wiggle .6s ease-in-out; }
.pet-stage.is-happy .pet-root { animation: bounceHappy 1.5s ease-in-out infinite; }

.pet-root .eye-group {
  transform-box: fill-box; transform-origin: center;
  animation: blink 5.2s infinite;
}
.pet-root .tail-group {
  transform-box: fill-box; transform-origin: 10% 90%;
  animation: tailWag 1.5s ease-in-out infinite;
}
.pet-root .ear-l, .pet-root .ear-r {
  transform-box: fill-box;
  animation: earTwitch 4.6s ease-in-out infinite;
}
.pet-root .ear-l { transform-origin: 80% 90%; }
.pet-root .ear-r { transform-origin: 20% 90%; animation-delay: .25s; }
.pet-root .wing-l { transform-box: fill-box; transform-origin: 90% 40%; animation: flap 1.1s ease-in-out infinite; }
.pet-root .wing-r { transform-box: fill-box; transform-origin: 10% 40%; animation: flap 1.1s ease-in-out infinite reverse; }
.pet-root .float-group { animation: floatBody 4s ease-in-out infinite; }
.pet-root .spark { animation: sparkle 2.4s ease-in-out infinite; }

.pet-root .eyes-closed, .pet-root .mouth-sad { display: none; }
.pet-root.is-sad .mouth-happy { display: none; }
.pet-root.is-sad .mouth-sad { display: block; }
.pet-root.is-sleeping .eyes-open { display: none; }
.pet-root.is-sleeping .eyes-closed { display: block; }
.pet-root.is-sleeping .eye-group { animation: none; opacity: 1; }
.pet-root.is-sleeping .float-group { animation-duration: 6s; }

/* ============ Keyframes ============ */
@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  50% { transform: translateY(-3px) scale(1.012, 1.018); }
}
@keyframes jump {
  0% { transform: translateY(0) scale(1, 1); }
  22% { transform: translateY(2px) scale(1.06, .93); }
  45% { transform: translateY(-34px) scale(.96, 1.06); }
  70% { transform: translateY(0) scale(1.05, .94); }
  85% { transform: translateY(-6px) scale(.99, 1.01); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0) scale(1); }
  20% { transform: rotate(-4deg) scale(1.02); }
  50% { transform: rotate(4deg) scale(1.02); }
  80% { transform: rotate(-2deg) scale(1.01); }
}
@keyframes bounceHappy {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.015, 1.03); }
}
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(.08); }
}
@keyframes tailWag {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(12deg); }
}
@keyframes earTwitch {
  0%, 88%, 100% { transform: rotate(0); }
  92% { transform: rotate(-7deg); }
  96% { transform: rotate(4deg); }
}
@keyframes flap {
  0%, 100% { transform: rotate(0) scale(1); }
  50% { transform: rotate(-10deg) scale(1.06); }
}
@keyframes floatBody {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes sparkle {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-6px) rotate(-3deg); }
}
@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 26px rgba(255, 214, 130, .6); }
  50% { box-shadow: 0 0 40px rgba(255, 214, 130, .95); }
}
@keyframes drift {
  0% { transform: translateX(-30px); }
  100% { transform: translateX(380px); }
}
@keyframes zzz {
  0% { opacity: 0; transform: translate(0, 6px) scale(.8); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(14px, -26px) scale(1.15); }
}
@keyframes bubbleIn {
  0% { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(.9); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes fxFloat {
  0% { opacity: 0; transform: translateY(0) scale(.6); }
  20% { opacity: 1; transform: translateY(-10px) scale(1.1); }
  100% { opacity: 0; transform: translateY(-64px) scale(.9); }
}
@keyframes bubbleUp {
  0% { opacity: 0; transform: translateY(0) scale(.5); }
  25% { opacity: .95; }
  100% { opacity: 0; transform: translateY(-90px) scale(1.15); }
}
@keyframes warnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@keyframes dayPulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(255, 138, 180, .28); }
  50% { box-shadow: 0 8px 26px rgba(255, 138, 180, .5); }
}
@keyframes coinBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.16); }
  100% { transform: scale(1); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes matchPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ==========================================================
   精美装饰层（v1.2）
   ========================================================== */

.app::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .85) 1px, transparent 1.2px);
  background-size: 20px 20px;
  opacity: .45;
  pointer-events: none;
  z-index: 0;
}
.app::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 200px;
  background: radial-gradient(420px 170px at 50% -50px, rgba(255, 255, 255, .9), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.screen { position: relative; z-index: 1; }

/* ---- 天空光晕 ---- */
.sky-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(320px 200px at 76% 4%, rgba(255, 245, 210, .75), transparent 70%),
    radial-gradient(280px 180px at 12% 22%, rgba(255, 255, 255, .6), transparent 70%);
  pointer-events: none;
}
.sun-ring {
  position: absolute; inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 225, 160, .55);
  animation: ringPulse 4.5s ease-in-out infinite;
}
.c4 { width: 62px; height: 19px; top: 108px; left: 250px; opacity: .45; animation: drift 38s linear infinite reverse; }

/* ---- 远景小屋 / 树 / 栅栏 / 小花 ---- */
.deco-house { position: absolute; left: 8%; bottom: 82px; width: 58px; height: 46px; z-index: 1; }
.deco-house .wall {
  position: absolute; left: 0; bottom: 0; width: 58px; height: 26px;
  background: linear-gradient(180deg, #FFFBFD, #FFE9F2);
  border-radius: 5px 5px 8px 8px;
  box-shadow: inset -7px 0 0 rgba(255, 214, 232, .55), 0 3px 6px rgba(160, 140, 180, .12);
}
.deco-house .roof {
  position: absolute; left: -9px; top: 0; width: 76px; height: 28px;
  background: linear-gradient(180deg, #FFC3D7, #FFA6C5);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 2px 3px rgba(255, 150, 190, .28));
}
.deco-house .win {
  position: absolute; left: 11px; bottom: 11px; width: 13px; height: 13px;
  border-radius: 3.5px; background: linear-gradient(160deg, #FFF2C0, #FFD873);
  box-shadow: 0 0 9px rgba(255, 214, 120, .95);
}
.deco-house .door {
  position: absolute; right: 11px; bottom: 0; width: 13px; height: 18px;
  border-radius: 7px 7px 2px 2px; background: #FFC9DD;
}
.deco-tree { position: absolute; bottom: 78px; width: 0; height: 0; z-index: 1; }
.deco-tree::before {
  content: ""; position: absolute; left: -3px; bottom: 0; width: 6px; height: 22px;
  background: linear-gradient(180deg, #D9B492, #C49C78); border-radius: 3px;
}
.deco-tree::after {
  content: ""; position: absolute; left: -21px; bottom: 16px; width: 42px; height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #C2F0DA, #8FD2B2);
  box-shadow: inset -5px -5px 0 rgba(120, 190, 150, .25);
}
.deco-tree i { position: absolute; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #CBF4DF, #97DBB8); }
.deco-tree i:nth-child(1) { width: 26px; height: 26px; left: -30px; bottom: 8px; }
.deco-tree i:nth-child(2) { width: 24px; height: 24px; left: 8px; bottom: 4px; }
.t1 { left: 79%; }
.t2 { left: 90%; transform: scale(.76); }
.fence {
  position: absolute; left: 5%; right: 5%; bottom: 62px; height: 13px; z-index: 1; opacity: .9;
  background: repeating-linear-gradient(90deg, #FFF9FC 0 7px, transparent 7px 17px);
}
.fence::before {
  content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 4px;
  background: #FFF9FC; border-radius: 2px; box-shadow: 0 2px 4px rgba(150, 130, 180, .1);
}
.flowers span {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFDFE, #FFD3E4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 2px 4px rgba(160, 130, 180, .15);
  animation: flowerSway 5s ease-in-out infinite;
}
.flowers span:nth-child(1) { left: 18%; bottom: 34px; }
.flowers span:nth-child(2) { left: 27%; bottom: 22px; animation-delay: .8s; }
.flowers span:nth-child(3) { left: 63%; bottom: 30px; animation-delay: 1.6s; }
.flowers span:nth-child(4) { left: 73%; bottom: 18px; animation-delay: .4s; }
.flowers span:nth-child(5) { left: 84%; bottom: 36px; animation-delay: 2.1s; }
.flowers span:nth-child(6) { left: 44%; bottom: 16px; animation-delay: 1.2s; }

/* ---- 飘落花瓣 ---- */
.petal-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.petal {
  position: absolute; top: -26px;
  width: var(--sz, 9px); height: var(--sz, 9px);
  border-radius: 60% 0 60% 60%;
  background: linear-gradient(140deg, #FFE0EC, #FFB6D2);
  opacity: 0;
  animation-name: petalFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
@keyframes petalFall {
  0% { transform: translate3d(0, -30px, 0) rotate(0deg); opacity: 0; }
  12% { opacity: .9; }
  50% { transform: translate3d(var(--sway, 30px), 160px, 0) rotate(180deg); opacity: .85; }
  90% { opacity: .5; }
  100% { transform: translate3d(0, 520px, 0) rotate(360deg); opacity: 0; }
}
@keyframes flowerSway {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-2px); }
}

/* ---- 萤火虫 ---- */
.firefly-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.firefly {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #FFF6C0;
  box-shadow: 0 0 10px 3px rgba(255, 230, 140, .7);
  opacity: 0;
  animation-name: fireflyFloat;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@keyframes fireflyFloat {
  0% { opacity: 0; transform: translateY(8px) scale(.6); }
  40% { opacity: .95; }
  70% { opacity: .7; transform: translateY(-18px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-34px) scale(.7); }
}

/* ---- 蝴蝶 ---- */
.butterfly {
  position: absolute; left: 10%; top: 46%; width: 18px; height: 13px;
  z-index: 2; pointer-events: none; opacity: .92;
  animation: butterflyPath 22s ease-in-out infinite;
}
.butterfly i {
  position: absolute; width: 9px; height: 12px; top: 0;
  border-radius: 60% 60% 50% 50%;
  background: linear-gradient(140deg, #FFD6E8, #FFA8CB);
  box-shadow: 0 2px 4px rgba(200, 130, 170, .2);
}
.butterfly .w1 { left: 0; transform-origin: right center; animation: wingFlap .46s ease-in-out infinite; }
.butterfly .w2 { right: 0; transform-origin: left center; animation: wingFlap .46s ease-in-out infinite reverse; }
@keyframes wingFlap {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(.45); }
}
@keyframes butterflyPath {
  0% { transform: translate(0, 0) rotate(-4deg); }
  25% { transform: translate(80px, -34px) rotate(6deg); }
  50% { transform: translate(180px, 16px) rotate(-3deg); }
  75% { transform: translate(70px, 44px) rotate(5deg); }
  100% { transform: translate(0, 0) rotate(-4deg); }
}

/* ---- 宠物光晕 ---- */
.pet-glow {
  position: absolute; left: 50%; bottom: 22px;
  width: 230px; height: 64px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 70%);
  filter: blur(6px); border-radius: 50%;
  pointer-events: none; z-index: 2;
  animation: glowBreath 4.6s ease-in-out infinite;
}
@keyframes glowBreath {
  0%, 100% { opacity: .7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

/* ---- 品牌署名 ---- */
.brand-mark {
  position: absolute; right: 12px; bottom: 9px;
  font-size: 9px; letter-spacing: .8px;
  color: rgba(90, 74, 99, .34);
  z-index: 5; pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}
.brand-chip {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 5px 13px;
  font-size: 11px; letter-spacing: .6px; color: #9B7FA8;
  background: rgba(255, 255, 255, .78);
  border-radius: 20px;
  box-shadow: 0 5px 14px rgba(160, 130, 180, .14), inset 0 0 0 1px rgba(255, 255, 255, .9);
}
.b-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #FFB0CD, #B79CFF);
  box-shadow: 0 0 7px rgba(255, 150, 190, .85);
}

/* ---- 选择页：朱雀限定卡 ---- */
.pet-card.is-featured {
  grid-column: span 2;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(120deg, #FFF5EC, #FFF0F8 52%, #F2EDFF);
  box-shadow: 0 10px 24px rgba(255, 168, 125, .24);
}
.pet-card.is-featured .preview { width: 86px; height: 86px; flex: 0 0 auto; }
.pet-card.is-featured .preview svg { width: 86px; height: 86px; }
.pet-card.is-featured .cmeta { flex: 1; min-width: 0; text-align: left; }
.pet-card.is-featured .cname { text-align: left; display: flex; align-items: center; gap: 6px; }
.pet-card.is-featured .cdesc { text-align: left; }
.c-badge {
  font-size: 9px; font-weight: 700; color: #fff; letter-spacing: .5px;
  background: linear-gradient(120deg, #FFB07A, #FF8A63);
  padding: 2px 7px; border-radius: 7px;
  box-shadow: 0 2px 6px rgba(255, 138, 99, .35);
}

/* ---- 按钮光泽 ---- */
.act .bubble-btn::after {
  content: "";
  position: absolute; left: 16%; top: 10%;
  width: 52%; height: 34%; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  animation: shine 4.4s ease-in-out infinite;
}
@keyframes shine {
  0%, 62%, 100% { left: -60%; }
  80% { left: 120%; }
}

/* ---- 弹层把手 ---- */
.sheet { position: relative; }
.sheet::before {
  content: "";
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 4px; border-radius: 3px;
  background: #EADFF3;
}

/* ---- 关于页 ---- */
.brand-card {
  position: relative; overflow: hidden;
  text-align: center; padding: 24px 18px 20px;
  border-radius: 22px;
  background: linear-gradient(150deg, #FFF3F9, #F2EBFF 58%, #EAF8FF);
  box-shadow: 0 10px 24px rgba(180, 155, 220, .2), inset 0 0 0 1px rgba(255, 255, 255, .8);
  margin-bottom: 14px;
}
.brand-halo {
  position: absolute; left: 50%; top: -96px;
  width: 200px; height: 200px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), transparent 66%);
}
.brand-mark-big {
  position: relative;
  width: 54px; height: 54px; margin: 0 auto 10px;
  border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #FFB6D4, #B79CFF);
  box-shadow: 0 8px 20px rgba(255, 150, 190, .42), inset 0 -3px 8px rgba(0, 0, 0, .06);
}
.brand-mark-big svg { width: 28px; height: 28px; }
.brand-title {
  position: relative;
  font-size: 19px; font-weight: 800; letter-spacing: 3px;
  background: linear-gradient(100deg, #FF8FB8, #A98BF5 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-person {
  position: relative;
  font-size: 13px; color: #8C7C97; letter-spacing: 4px; margin-top: 5px;
}
.brand-slogan { position: relative; font-size: 11.5px; color: #A99BB4; margin: 12px 0 0; letter-spacing: .5px; }

.about-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.about-row {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff; border-radius: 16px; padding: 11px 13px;
  box-shadow: 0 5px 14px rgba(160, 130, 180, .1);
}
.about-row .a-ico {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 9px;
  display: grid; place-items: center; color: #fff;
}
.about-row .a-ico svg { width: 15px; height: 15px; }
.about-row .a1 { background: linear-gradient(140deg, #FFC08F, #FF9A6B); }
.about-row .a2 { background: linear-gradient(140deg, #FFB2CE, #FF92B8); }
.about-row .a3 { background: linear-gradient(140deg, #B7A5FF, #9678F6); }
.about-row b { font-size: 12.5px; display: block; margin-bottom: 2px; }
.about-row p { margin: 0; font-size: 10.5px; color: var(--ink-3); line-height: 1.5; }

@keyframes ringPulse {
  0%, 100% { opacity: .35; transform: scale(.94); }
  50% { opacity: .8; transform: scale(1.06); }
}

/* ==========================================================
   v1.3 萌化与丰富化
   ========================================================== */

/* 小舌头：开心时吐舌 */
.pet-root .tongue { display: none; }
.pet-root:not(.is-sad):not(.is-sleeping) .tongue { display: block; }

/* 品牌署名：低调角落 */
.brand-mark {
  right: 10px; bottom: 7px;
  font-size: 8.5px; letter-spacing: .5px;
  color: rgba(90, 74, 99, .26);
  opacity: .8;
}
.brand-fine {
  display: inline-block; margin-top: 3px;
  font-size: 9.5px; letter-spacing: 1px;
  color: #C9BBd4;
}

/* ---- 彩虹 ---- */
.rainbow {
  position: absolute; left: -36px; top: 46px;
  width: 170px; height: 85px;
  border-radius: 170px 170px 0 0;
  background: radial-gradient(circle at 50% 100%,
    transparent 0 48px,
    rgba(255, 168, 195, .34) 49px 57px,
    rgba(255, 214, 150, .34) 58px 66px,
    rgba(168, 226, 190, .3) 67px 75px,
    rgba(160, 205, 250, .3) 76px 84px,
    transparent 85px);
  filter: blur(1.2px);
  pointer-events: none;
}

/* ---- 远处飞鸟 ---- */
.flybird { position: absolute; width: 16px; height: 9px; opacity: .55; }
.flybird::before, .flybird::after {
  content: ""; position: absolute; top: 0;
  width: 8px; height: 8px;
  border-top: 2.2px solid #8D7FA8;
  border-radius: 60% 60% 0 0;
}
.flybird::before { left: 0; transform: rotate(-14deg); }
.flybird::after { right: 0; transform: rotate(14deg) scaleX(-1); }
.flybird::before, .flybird::after { animation: birdFlap .7s ease-in-out infinite; }
.b1 { top: 60px; left: 40px; animation: birdFly1 26s linear infinite; }
.b2 { top: 96px; left: 260px; transform: scale(.72); animation: birdFly2 32s linear infinite; }
@keyframes birdFlap {
  0%, 100% { transform: rotate(-14deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-2.5px); }
}
@keyframes birdFly1 {
  0% { transform: translate(0, 0); }
  50% { transform: translate(190px, 22px); }
  100% { transform: translate(0, 0); }
}
@keyframes birdFly2 {
  0% { transform: translate(0, 0) scale(.72); }
  50% { transform: translate(-150px, -26px) scale(.72); }
  100% { transform: translate(0, 0) scale(.72); }
}

/* ---- 风车 ---- */
.pinwheel { position: absolute; left: 22%; bottom: 66px; width: 24px; height: 40px; z-index: 1; }
.pinwheel .head {
  position: absolute; left: 1px; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: conic-gradient(#FFB3CE 0 25%, #FFE3A8 0 50%, #A8E0C8 0 75%, #B9C8FF 0);
  box-shadow: 0 2px 6px rgba(170, 140, 180, .25), inset 0 0 0 2px rgba(255, 255, 255, .55);
  animation: pinSpin 7s linear infinite;
}
.pinwheel .head::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(255, 190, 215, .8);
}
.pinwheel .pole {
  position: absolute; left: 10.5px; top: 21px;
  width: 3px; height: 19px; border-radius: 2px;
  background: linear-gradient(180deg, #E8C9A8, #D8B48F);
}
@keyframes pinSpin { to { transform: rotate(360deg); } }

/* ---- 蒲公英 ---- */
.dandelion { position: absolute; width: 0; height: 0; z-index: 1; }
.dandelion .stem {
  position: absolute; left: -1.5px; bottom: 0;
  width: 3px; height: 26px; border-radius: 2px;
  background: linear-gradient(180deg, #CBE8C9, #AFD9AE);
}
.dandelion .puff {
  position: absolute; left: -10px; bottom: 22px;
  width: 20px; height: 20px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.95) 0 3px, transparent 4px),
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.9) 0 2.4px, transparent 3.4px),
    radial-gradient(circle at 70% 38%, rgba(255,255,255,.9) 0 2.4px, transparent 3.4px),
    radial-gradient(circle at 42% 74%, rgba(255,255,255,.9) 0 2.4px, transparent 3.4px),
    radial-gradient(circle at 66% 68%, rgba(255,255,255,.9) 0 2.4px, transparent 3.4px),
    radial-gradient(circle at 52% 30%, rgba(255,255,255,.85) 0 2px, transparent 3px);
  box-shadow: 0 0 8px rgba(255, 255, 255, .55);
  animation: dandelionSway 4.5s ease-in-out infinite;
}
.d1 { left: 34%; bottom: 64px; }
@keyframes dandelionSway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(6deg); }
}

/* ---- 石子路 ---- */
.pebbles span {
  position: absolute; height: 7px; border-radius: 50%;
  background: linear-gradient(180deg, #EAF4EC, #CFE6D4);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .8);
}
.pebbles span:nth-child(1) { left: 24%; bottom: 46px; width: 22px; }
.pebbles span:nth-child(2) { left: 40%; bottom: 40px; width: 15px; }
.pebbles span:nth-child(3) { left: 58%; bottom: 44px; width: 19px; }
.pebbles span:nth-child(4) { left: 76%; bottom: 38px; width: 13px; }

/* ---- 更多小花层次 ---- */
.flowers span:nth-child(odd) { width: 8px; height: 8px; }

/* ==========================================================
   v1.4 微信转发体验
   ========================================================== */
.wx-share-tip {
  position: fixed; left: 50%; top: 62px; transform: translateX(-50%);
  z-index: 60; width: max-content; max-width: calc(100% - 28px);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 15px;
  font-size: 11.5px; color: #9B7FA8;
  background: linear-gradient(100deg, #FFF6FA, #F6F1FF);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 190, 215, .4), 0 6px 16px rgba(180, 150, 200, .18);
  animation: tipFloat 3s ease-in-out infinite;
}
@keyframes tipFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(3px); }
}
.wx-share-tip .wx-arrow { width: 13px; height: 13px; color: #FF8FB8; flex: 0 0 auto; }
.wx-share-tip b { color: #E86FA0; }
