/* =========================================================
   阳光魔法山谷 · 选塔首页（按 2026-11-22 设计稿复刻）
   全部规则限定在 #snApp.is-valley，盖过旧主题里的山谷样式。
   卡片内部尺寸用 cqi（以设计稿 465px 宽的卡片为基准，1cqi ≈ 4.65px）。
   ========================================================= */

#snApp.is-valley {
  --vg-navy: #1b2d6b;
  --vg-navy-soft: #3a4a7e;
  --vg-pill-bg: rgba(255, 255, 255, 0.88);
  --vg-pill-shadow: 0 6px 18px -6px rgba(36, 66, 130, 0.28);
  font-family: "PingFang SC", "Hiragino Sans GB", "Yuanti SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

/* ---------- 背景 ---------- */
#snApp.is-valley .vg-bg {
  background-image: url("/tower/assets/valley/bg.webp");
  background-size: cover;
  background-position: center top;
  background-color: #cfe9f6;
}

/* ---------- 去掉旧样式的装饰 ---------- */
#snApp.is-valley :is(.sn-island, .sn-island-btn, .sn-tower-spot, .sn-bear-btn, .sn-bear-tag, .sn-week-pill, .sn-speech-cloud, .sn-valley-title, .sn-voice-mini, .sn-duo-village)::before,
#snApp.is-valley :is(.sn-island, .sn-island-btn, .sn-tower-spot, .sn-bear-btn, .sn-bear-tag, .sn-week-pill, .sn-speech-cloud, .sn-valley-title, .sn-voice-mini, .sn-duo-village)::after {
  content: none;
}
#snApp.is-valley .sn-tower-orbs,
#snApp.is-valley .sn-tower-aura,
#snApp.is-valley .vg-pet .sn-vp-slot,
#snApp.is-valley .vg-pet .sn-webp-backing {
  display: none;
}
#snApp.is-valley .vg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 顶栏 ---------- */
#snApp.is-valley .sn-hud {
  padding: 16px clamp(12px, 2.4vw, 36px) 6px;
  gap: 10px;
}
#snApp.is-valley .sn-hud-left { gap: clamp(10px, 4vw, 120px); flex-wrap: nowrap; }
#snApp.is-valley .sn-hud-right { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
#snApp.is-valley #btnOpenAtlas { order: 1; }
#snApp.is-valley #btnOpenJournal { order: 2; }
#snApp.is-valley #btnToggleMute { order: 3; }
#snApp.is-valley #btnOpenParent { order: 4; }
#snApp.is-valley #btnOpenAccount { order: 5; }

#snApp.is-valley :is(.sn-greet-pill, .sn-pill-wood, .sn-round-btn, .sn-acct-btn) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 52px;
  min-height: 52px;
  height: 52px;
  padding: 0 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: var(--vg-pill-bg);
  box-shadow: var(--vg-pill-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--vg-navy);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  opacity: 1;
  transform: none;
  touch-action: manipulation;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
#snApp.is-valley :is(.sn-pill-wood, .sn-round-btn, .sn-acct-btn) { cursor: pointer; }
#snApp.is-valley :is(.sn-pill-wood, .sn-round-btn, .sn-acct-btn):hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(36, 66, 130, 0.34);
}
#snApp.is-valley :is(.sn-pill-wood, .sn-round-btn, .sn-acct-btn):active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 3px 10px -4px rgba(36, 66, 130, 0.3);
}
#snApp.is-valley .sn-round-btn { padding: 0 16px; }
#snApp.is-valley #btnToggleMute { width: 52px; padding: 0; }
#snApp.is-valley :is(.sn-pill-wood, .sn-round-btn) svg { width: 26px; height: 26px; flex: none; }

#snApp.is-valley .sn-greet-pill {
  padding: 0 22px 0 6px;
  height: 56px;
  min-height: 56px;
  font-size: 22px;
  font-weight: 900;
}
#snApp.is-valley .sn-greet-pill b { font-weight: 900; }
#snApp.is-valley .sn-greet-pill .vg-ico-wrap { display: inline-flex; width: 42px; height: 42px; }
#snApp.is-valley .sn-greet-pill .vg-ico-wrap svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(40, 80, 180, 0.3)); }
#snApp.is-valley .sn-greet-pill em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #4a7a5a;
  background: rgba(220, 248, 230, 0.9);
  border-radius: 999px;
  padding: 4px 8px;
}

#snApp.is-valley .sn-acct-btn .sn-acct-ico { display: none; }
#snApp.is-valley .sn-acct-btn.is-logged .sn-acct-ico { display: inline; }
#snApp.is-valley .sn-acct-btn .sn-acct-label { max-width: 9em; overflow: hidden; text-overflow: ellipsis; }

#snApp.is-valley .sn-badge {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: linear-gradient(180deg, #ff7a6b, #ef4b4b);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-style: normal;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 3px 8px -2px rgba(220, 60, 60, 0.5);
}

/* ---------- 主区域 ---------- */
#snApp.is-valley .vg-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(12px, 1.2vw, 20px) 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---------- 标题 + 小伙伴说话 ---------- */
#snApp.is-valley .vg-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: clamp(4px, 0.6vw, 10px) 0 clamp(14px, 2vw, 28px);
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  text-align: center;
}
#snApp.is-valley .vg-title-wrap {
  position: relative;
  padding-top: 0.42em;
  font-size: clamp(42px, 5.9vw, 88px);
}
#snApp.is-valley .vg-sun {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2.1em;
  transform: translateX(-46%);
  filter: drop-shadow(0 2px 6px rgba(255, 190, 30, 0.45));
}
#snApp.is-valley .vg-hero h1 {
  position: relative;
  margin: 0;
  font-size: 1em;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.04em;
  color: var(--vg-navy);
  -webkit-text-stroke: 0.14em #fff;
  paint-order: stroke fill;
  text-shadow: 0 0.06em 0.18em rgba(40, 80, 160, 0.22);
}
#snApp.is-valley .vg-talk {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 36px);
  width: 100%;
  margin-top: clamp(6px, 0.9vw, 14px);
}
#snApp.is-valley .vg-wizard {
  width: clamp(110px, 16.6vw, 240px);
  height: auto;
  flex: none;
  margin-right: clamp(-28px, -1.4vw, -8px);
  margin-top: clamp(-84px, -5.2vw, -36px);
  margin-bottom: -8px;
  filter: drop-shadow(0 6px 10px rgba(60, 50, 120, 0.18));
  animation: vg-float 4.8s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}
#snApp.is-valley .vg-speech {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  max-width: 720px;
  margin: 0 0 6px;
  padding: 14px clamp(20px, 2.2vw, 34px);
  border: 1.5px solid #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px -10px rgba(36, 66, 130, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--vg-navy);
  text-align: left;
}
#snApp.is-valley .vg-speech::before {
  content: "";
  position: absolute;
  left: -14px;
  bottom: 14px;
  width: 30px;
  height: 22px;
  background: rgba(255, 255, 255, 0.94);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
#snApp.is-valley .vg-speech p {
  margin: 0;
  color: inherit;
  font-size: clamp(16px, 1.65vw, 24px);
  font-weight: 800;
  line-height: 1.35;
}
#snApp.is-valley .vg-speech span { color: inherit; background: none; }
#snApp.is-valley .vg-speech b {
  background: none;
  padding: 0;
  color: #3e6fe0;
  font-weight: 900;
}
#snApp.is-valley .vg-listen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-width: 52px;
  min-height: 56px;
  margin: 0 0 10px;
  padding: 0 clamp(18px, 2vw, 30px);
  border: 1.5px solid #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px -10px rgba(36, 66, 130, 0.32);
  color: var(--vg-navy);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.18s ease, background 0.18s ease;
}
#snApp.is-valley .vg-listen svg { width: 1.4em; height: 1.4em; color: #3e6fe0; }
#snApp.is-valley .vg-listen:hover { background: #fff; transform: translateY(-2px); }
#snApp.is-valley .vg-listen:active { transform: scale(0.97); }

/* ---------- 六张塔卡 ---------- */
#snApp.is-valley .vg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 22px);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

#snApp.is-valley .vg-card {
  --vg-bg1: #fff9ea; --vg-bg2: #ffebc2;
  --vg-title: #7a4a12; --vg-ink: #6b4a1e;
  --vg-num1: #f8c847; --vg-num2: #eea21f;
  --vg-go1: #f8bf3c; --vg-go2: #ec9a1a; --vg-go-shadow: rgba(214, 140, 20, 0.45);
  --vg-bar1: #f8c847; --vg-bar2: #f0a325;
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  align-items: stretch;
  padding: 3.2% 3.2% 3%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: clamp(22px, 2.2vw, 32px);
  background: linear-gradient(160deg, var(--vg-bg1) 0%, var(--vg-bg2) 100%);
  box-shadow:
    0 18px 36px -18px rgba(40, 70, 130, 0.38),
    0 2px 6px rgba(40, 70, 130, 0.06),
    inset 0 2px 0 rgba(255, 255, 255, 0.9);
  overflow: visible;
  transform: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: vg-rise 0.5s cubic-bezier(.2, .8, .3, 1) backwards;
}
#snApp.is-valley .vg-card:nth-child(2) { animation-delay: 0.05s; }
#snApp.is-valley .vg-card:nth-child(3) { animation-delay: 0.1s; }
#snApp.is-valley .vg-card:nth-child(4) { animation-delay: 0.15s; }
#snApp.is-valley .vg-card:nth-child(5) { animation-delay: 0.2s; }
#snApp.is-valley .vg-card:nth-child(6) { animation-delay: 0.25s; }
#snApp.is-valley .vg-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 26px 44px -20px rgba(40, 70, 130, 0.45),
    0 2px 6px rgba(40, 70, 130, 0.06),
    inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

#snApp.is-valley .vg-card.is-mint {
  --vg-bg1: #f3fcf6; --vg-bg2: #dcf3e4;
  --vg-title: #1f6542; --vg-ink: #2e5a43;
  --vg-num1: #63c98f; --vg-num2: #33a263;
  --vg-go1: #5cc487; --vg-go2: #2e9a5b; --vg-go-shadow: rgba(40, 140, 80, 0.42);
  --vg-bar1: #6fd09a; --vg-bar2: #36a866;
}
#snApp.is-valley .vg-card.is-sky {
  --vg-bg1: #f2f8ff; --vg-bg2: #dcebfd;
  --vg-title: #1e3f78; --vg-ink: #2c4a75;
  --vg-num1: #64aef3; --vg-num2: #3383e0;
  --vg-go1: #56a6f0; --vg-go2: #2c7bdb; --vg-go-shadow: rgba(40, 110, 210, 0.42);
  --vg-bar1: #6db3f5; --vg-bar2: #3a8ce6;
}
#snApp.is-valley .vg-card.is-indigo {
  --vg-bg1: #f1f5ff; --vg-bg2: #dce5fb;
  --vg-title: #1e3a7e; --vg-ink: #2a3f75;
  --vg-num1: #6890ea; --vg-num2: #3762cc;
  --vg-go1: #5d87e8; --vg-go2: #3058c3; --vg-go-shadow: rgba(48, 88, 195, 0.42);
  --vg-bar1: #6a92ec; --vg-bar2: #3e68d4;
}
#snApp.is-valley .vg-card.is-purple {
  --vg-bg1: #f7f3ff; --vg-bg2: #e7defb;
  --vg-title: #4a2c8a; --vg-ink: #4a3a7a;
  --vg-num1: #a884ec; --vg-num2: #7c56d6;
  --vg-go1: #a07ce9; --vg-go2: #744dd0; --vg-go-shadow: rgba(116, 77, 208, 0.42);
  --vg-bar1: #a785ec; --vg-bar2: #8360dc;
}
#snApp.is-valley .vg-card.is-berry {
  --vg-bg1: #fff4f7; --vg-bg2: #f9dce6;
  --vg-title: #6a2438; --vg-ink: #6b3346;
  --vg-num1: #f292b0; --vg-num2: #dc5c84;
  --vg-go1: #f08fad; --vg-go2: #d6557e; --vg-go-shadow: rgba(214, 85, 126, 0.42);
  --vg-bar1: #f293b0; --vg-bar2: #df6a91;
}

/* 卡片标题 */
#snApp.is-valley .vg-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3cqi;
  padding-right: 30cqi;
  min-height: 11cqi;
}
#snApp.is-valley .vg-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 9.6cqi;
  height: 8.8cqi;
  border-radius: 2.8cqi;
  background: linear-gradient(180deg, var(--vg-num1), var(--vg-num2));
  box-shadow: 0 1cqi 2cqi -0.6cqi var(--vg-go-shadow), inset 0 0.4cqi 0 rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 6.6cqi;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0.3cqi 0 rgba(0, 0, 0, 0.12);
}
#snApp.is-valley .vg-name {
  margin: 0;
  color: var(--vg-title);
  font-size: max(19px, 7.2cqi);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.15;
  white-space: nowrap;
}

/* 右上角的塔 */
#snApp.is-valley .vg-tower {
  position: absolute;
  z-index: 1;
  top: 1.2cqi;
  right: 2cqi;
  width: 31cqi;
  height: 42cqi;
  min-width: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.25s cubic-bezier(.3, 1.4, .5, 1);
  -webkit-tap-highlight-color: transparent;
}
#snApp.is-valley .vg-tower-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 1.4cqi 1.6cqi rgba(60, 60, 110, 0.16));
  pointer-events: none;
  user-select: none;
}
#snApp.is-valley .vg-tower:hover { transform: translateY(-1cqi) scale(1.03); }
#snApp.is-valley .vg-tower:active { transform: scale(0.97); }
#snApp.is-valley .vg-tower.is-tower-lit .vg-tower-art {
  filter: drop-shadow(0 0 2.4cqi rgba(255, 214, 80, 0.85)) drop-shadow(0 1.4cqi 1.6cqi rgba(60, 60, 110, 0.16));
}
#snApp.is-valley .vg-tower-chip {
  /* 设计稿里没有这个标签：只留给读屏，点塔照样进 6 层大厅 */
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
  left: 50%;
  bottom: 1cqi;
  transform: translateX(-50%);
  padding: 0.9cqi 2.6cqi;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1cqi 2.4cqi -1cqi rgba(60, 60, 110, 0.35);
  color: var(--vg-title);
  font-size: max(11px, 3.1cqi);
  font-weight: 800;
  white-space: nowrap;
}

/* 宠物 + 进度 */
#snApp.is-valley .vg-body {
  pointer-events: none;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  gap: 1cqi;
  flex: 1;
  margin-top: 1cqi;
}
#snApp.is-valley .vg-pet {
  pointer-events: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4cqi;
  flex: none;
  width: 38cqi;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  transform: none;
  animation: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#snApp.is-valley .vg-pet-stage {
  position: relative;
  display: block;
  width: 100%;
  height: 31cqi;
}
#snApp.is-valley .vg-pet-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 1.2cqi 1.4cqi rgba(80, 60, 40, 0.18));
  transition: transform 0.25s cubic-bezier(.3, 1.5, .5, 1);
  pointer-events: none;
  user-select: none;
}
#snApp.is-valley .vg-pet:hover .vg-pet-art { transform: translateY(-1.2cqi) rotate(-2deg); }
#snApp.is-valley .vg-pet.is-happy-jump .vg-pet-art { animation: vg-hop 0.7s cubic-bezier(.3, 1.4, .5, 1); }

#snApp.is-valley .vg-warmth {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 2cqi;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  transform: none;
  color: var(--vg-ink);
  font-size: max(13px, 3.9cqi);
  font-weight: 700;
  white-space: nowrap;
}
#snApp.is-valley .vg-warmth em {
  font-style: normal;
  font-weight: 700;
  color: var(--vg-ink);
  background: none;
  padding: 0;
}
#snApp.is-valley .vg-warmth .sn-heart {
  font-style: normal;
  color: #f0506e;
  font-size: 1.25em;
  margin-right: 0.1em;
  vertical-align: -0.08em;
}
#snApp.is-valley .vg-pat {
  display: inline-block;
  padding: 1cqi 3cqi;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.6cqi 1.6cqi -0.6cqi rgba(60, 60, 110, 0.3);
  color: var(--vg-ink);
  font-size: max(12px, 3.5cqi);
  font-weight: 800;
  transition: background 0.18s ease;
}
#snApp.is-valley .vg-pet:hover .vg-pat { background: #fff; }

#snApp.is-valley .vg-info {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  flex: 1;
  padding: 3cqi 25cqi 0 0;
}
#snApp.is-valley .vg-petname {
  margin: 0;
  color: var(--vg-ink);
  font-size: max(14px, 4.5cqi);
  font-weight: 800;
  letter-spacing: 0.04em;
}
#snApp.is-valley .vg-progress-label {
  position: static;
  display: block;
  align-self: stretch;
  width: auto;
  max-width: none;
  margin: 8.4cqi 0 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--vg-ink);
  font-size: max(13px, 4cqi);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-align: left;
}
#snApp.is-valley .vg-progress-label b { font-weight: 800; letter-spacing: 0.02em; }
#snApp.is-valley .vg-bar {
  position: relative;
  height: max(8px, 2.7cqi);
  margin-top: 2.4cqi;
  margin-right: -12cqi;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0.3cqi 0.8cqi rgba(60, 60, 110, 0.12);
  overflow: hidden;
}
#snApp.is-valley .vg-bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--vg-bar1), var(--vg-bar2));
  transition: width 0.6s ease;
}

/* 继续按钮 */
#snApp.is-valley .vg-go {
  flex-direction: row;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2cqi;
  width: auto;
  min-width: 48px;
  min-height: 48px;
  height: max(58px, 12cqi);
  margin: 2.6cqi 1.6cqi 0;
  padding: 0 4cqi;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--vg-go1) 0%, var(--vg-go2) 100%);
  box-shadow:
    0 1.6cqi 3cqi -1.2cqi var(--vg-go-shadow),
    inset 0 0.5cqi 0 rgba(255, 255, 255, 0.32),
    inset 0 -0.5cqi 0 rgba(0, 0, 0, 0.06);
  color: #fff;
  font-size: max(15px, 4.8cqi);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 0.3cqi 0.6cqi rgba(0, 0, 0, 0.16);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
#snApp.is-valley .vg-go span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#snApp.is-valley .vg-go .vg-chev { width: 1em; height: 1em; flex: none; }
#snApp.is-valley .vg-go:hover { filter: brightness(1.05); transform: translateY(-1px); }
#snApp.is-valley .vg-go:active { transform: translateY(1px) scale(0.985); filter: brightness(0.97); }

#snApp.is-valley :is(.vg-go, .vg-pet, .vg-tower, .vg-listen, .sn-pill-wood, .sn-round-btn, .sn-acct-btn):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(62, 111, 224, 0.55);
}

/* 还没开放的塔（数据未加载时） */
#snApp.is-valley .sn-horizon-clouds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
#snApp.is-valley .sn-cloud-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--vg-pill-shadow);
  color: var(--vg-navy);
}
#snApp.is-valley .sn-cloud-tag strong { display: block; font-size: 15px; }
#snApp.is-valley .sn-cloud-tag small { font-size: 12px; color: var(--vg-navy-soft); }

/* ---------- 经典绘本风：前三只用原来的手绘宠物图 ---------- */
#snApp.is-valley.is-style-storybook .vg-pet .sn-webp-backing {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center bottom;
  transform: none;
}
#snApp.is-valley.is-style-storybook .vg-pet-stage:has(.sn-webp-backing) .vg-pet-art { display: none; }

/* ---------- 少年研学风（深色） ---------- */
#snApp.is-valley.is-style-studio {
  --vg-navy: #eef2ff;
  --vg-navy-soft: #b8c4e6;
  --vg-pill-bg: rgba(22, 32, 64, 0.78);
  --vg-pill-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.6);
}
#snApp.is-valley.is-style-studio .vg-bg {
  background-image:
    linear-gradient(180deg, rgba(10, 16, 38, 0.78) 0%, rgba(12, 20, 46, 0.88) 60%, rgba(8, 12, 30, 0.94) 100%),
    url("/tower/assets/valley/bg.webp");
}
#snApp.is-valley.is-style-studio :is(.sn-greet-pill, .sn-pill-wood, .sn-round-btn, .sn-acct-btn, .vg-listen, .vg-speech) {
  border-color: rgba(140, 160, 230, 0.28);
}
#snApp.is-valley.is-style-studio :is(.sn-pill-wood, .sn-round-btn, .sn-acct-btn):hover { background: rgba(34, 48, 92, 0.92); }
#snApp.is-valley.is-style-studio .vg-hero h1 {
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: 0 0 0.3em rgba(120, 150, 255, 0.5);
}
#snApp.is-valley.is-style-studio :is(.vg-speech, .vg-listen) { background: rgba(22, 32, 64, 0.82); color: #eef2ff; }
#snApp.is-valley.is-style-studio .vg-speech::before { background: rgba(22, 32, 64, 0.82); }
#snApp.is-valley.is-style-studio :is(.vg-speech b, .vg-listen svg) { color: #8fb0ff; }
#snApp.is-valley.is-style-studio .vg-card {
  --vg-title: #fff;
  --vg-ink: #c8d2f0;
  border-color: rgba(140, 160, 230, 0.22);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--vg-num2) 22%, #172142) 0%, #121a36 100%);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
#snApp.is-valley.is-style-studio .vg-pat { background: rgba(255, 255, 255, 0.12); color: #eef2ff; }
#snApp.is-valley.is-style-studio .vg-bar { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
#snApp.is-valley.is-style-studio .vg-tower-chip { background: rgba(22, 32, 64, 0.9); color: #eef2ff; }

/* ---------- 动画 ---------- */
@keyframes vg-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes vg-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes vg-hop {
  0% { transform: none; }
  30% { transform: translateY(-14%) scale(1.04, 0.97); }
  55% { transform: translateY(0) scale(1.05, 0.94); }
  75% { transform: translateY(-4%) rotate(3deg); }
  100% { transform: none; }
}

/* ---------- 屏幕适配 ---------- */
@media (max-width: 1180px) {
  #snApp.is-valley :is(.sn-pill-wood, .sn-round-btn, .sn-acct-btn) { font-size: 15px; padding: 0 13px; gap: 6px; }
  #snApp.is-valley #btnToggleMute { padding: 0; }
  #snApp.is-valley .sn-greet-pill { font-size: 18px; padding-right: 16px; }
  #snApp.is-valley .sn-greet-pill .vg-ico-wrap { width: 38px; height: 38px; }
  #snApp.is-valley .sn-hud-right { gap: 8px; }
  #snApp.is-valley :is(.sn-pill-wood, .sn-round-btn) svg { width: 24px; height: 24px; }
}
@media (max-width: 899px) {
  #snApp.is-valley .vg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #snApp.is-valley .vg-hud-lbl { display: none; }
  #snApp.is-valley .sn-round-btn { width: 52px; padding: 0; }
  #snApp.is-valley .sn-hud { flex-wrap: wrap; }
  #snApp.is-valley .sn-hud-left { gap: 10px; }
}
@media (max-width: 599px) {
  #snApp.is-valley .vg-grid { grid-template-columns: minmax(0, 1fr); }
  #snApp.is-valley .sn-hud { justify-content: center; padding-top: 10px; }
  #snApp.is-valley .sn-hud-left,
  #snApp.is-valley .sn-hud-right { width: 100%; justify-content: center; }
  #snApp.is-valley .sn-hud-right { gap: 6px; }
  #snApp.is-valley .sn-greet-pill { height: 50px; min-height: 50px; font-size: 16px; }
  #snApp.is-valley .sn-greet-pill .vg-ico-wrap { width: 34px; height: 34px; }
  #snApp.is-valley .sn-pill-wood.is-map-entry { height: 50px; min-height: 50px; font-size: 14px; }
  #snApp.is-valley .vg-talk { margin-top: 6px; gap: 8px; flex-wrap: wrap; }
  #snApp.is-valley .vg-wizard { width: 92px; margin: -22px -14px 0 0; }
  #snApp.is-valley .vg-speech { flex: 1 1 200px; min-width: 0; min-height: 0; border-radius: 24px; padding: 12px 16px; }
  #snApp.is-valley .vg-speech p { font-size: 15px; }
  #snApp.is-valley .vg-speech::before { left: -10px; bottom: 12px; width: 22px; height: 16px; }
  #snApp.is-valley .vg-listen { margin: 0 0 0 auto; min-height: 48px; font-size: 16px; }
  #snApp.is-valley .vg-talk { justify-content: flex-start; }
  #snApp.is-valley .vg-talk .vg-listen { order: 3; }
  #snApp.is-valley .vg-card { padding: 4% 4% 3.6%; }
}

@media (prefers-reduced-motion: reduce) {
  #snApp.is-valley .vg-card,
  #snApp.is-valley .vg-wizard,
  #snApp.is-valley .vg-pet.is-happy-jump .vg-pet-art { animation: none; }
  #snApp.is-valley :is(.vg-card, .vg-tower, .vg-pet-art, .vg-go, .sn-pill-wood, .sn-round-btn, .sn-acct-btn) { transition: none; }
}
