/* 灵境伙伴 20261121-story1 : 森林故事关卡 */
.home-secondary { margin-top: 10px; }
.home-secondary summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
  padding: 8px 0;
}
.adventure-story { margin: 8px 0 12px; }
#adventureStage .prompt-card,
#adventureStage .story-battle {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.listen-row { display: grid; gap: 8px; margin: 10px 0; }
.hint-text { color: #8a4b16; font-weight: 700; min-height: 1.4em; }
.observe-cue { font-weight: 800; font-size: 1.1rem; margin: 8px 0; }
.forest-scene {
  position: relative;
  height: 340px;
  margin: 10px 0 16px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, #c8f0c0 0 18%, transparent 19%),
    linear-gradient(180deg, #8fd4ff 0 38%, #8fcf7a 38% 62%, #5fa35a 62% 100%);
  box-shadow: var(--shadow);
}
.forest-scene::before,
.forest-scene::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.forest-scene::before {
  left: -20px; top: 40px;
  width: 140px; height: 220px;
  background: radial-gradient(ellipse at 50% 0, #2f6b3c 0 60%, transparent 61%);
  border-radius: 50% 50% 40% 40%;
}
.forest-scene::after {
  right: -10px; top: 20px;
  width: 160px; height: 250px;
  background: radial-gradient(ellipse at 50% 0, #245833 0 60%, transparent 61%);
  border-radius: 50% 50% 45% 45%;
}
.clue-btn {
  position: absolute;
  z-index: 2;
  min-width: 86px;
  min-height: 86px;
  padding: 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #214028;
}
.clue-btn strong { background: rgba(255,246,232,.92); border-radius: 12px; padding: 2px 8px; font-size: .95rem; }
.clue-art {
  width: 72px;
  height: 72px;
  display: block;
  filter: drop-shadow(0 4px 0 rgba(40,70,40,.18));
}
.clue-blue-flower .clue-art {
  background:
    radial-gradient(circle at 50% 58%, #fff 0 10%, transparent 11%),
    radial-gradient(circle at 50% 28%, #3b82f6 0 22%, transparent 23%),
    radial-gradient(circle at 22% 48%, #2563eb 0 22%, transparent 23%),
    radial-gradient(circle at 78% 48%, #1d4ed8 0 22%, transparent 23%),
    radial-gradient(circle at 34% 76%, #3b82f6 0 22%, transparent 23%),
    radial-gradient(circle at 66% 76%, #2563eb 0 22%, transparent 23%),
    linear-gradient(#3f8f2f, #3f8f2f) 50% 100% / 8px 18px no-repeat;
}
.clue-red-flower .clue-art {
  background:
    radial-gradient(circle at 50% 58%, #fff7d6 0 10%, transparent 11%),
    radial-gradient(circle at 50% 28%, #ef4444 0 22%, transparent 23%),
    radial-gradient(circle at 22% 48%, #dc2626 0 22%, transparent 23%),
    radial-gradient(circle at 78% 48%, #b91c1c 0 22%, transparent 23%),
    radial-gradient(circle at 34% 76%, #ef4444 0 22%, transparent 23%),
    radial-gradient(circle at 66% 76%, #dc2626 0 22%, transparent 23%),
    linear-gradient(#3f8f2f, #3f8f2f) 50% 100% / 8px 18px no-repeat;
}
.clue-leaf .clue-art {
  background:
    radial-gradient(ellipse at 50% 50%, #4ade80 0 46%, transparent 47%),
    linear-gradient(#166534, #166534) 50% 70% / 6px 24px no-repeat;
  transform: rotate(-20deg);
}
.clue-mushroom .clue-art {
  background:
    radial-gradient(ellipse at 50% 38%, #b45309 0 32%, transparent 33%),
    radial-gradient(circle at 40% 30%, #fde68a 0 6%, transparent 7%),
    radial-gradient(circle at 60% 36%, #fde68a 0 5%, transparent 6%),
    linear-gradient(#f5f0e6, #f5f0e6) 50% 72% / 22px 26px no-repeat;
}
.layout-a .clue-leaf { left: 8px; top: 86px; }
.layout-a .clue-red-flower { left: 96px; top: 150px; }
.layout-a .clue-blue-flower { right: 16px; top: 120px; }
.layout-a .clue-mushroom { left: 36px; bottom: 16px; }
.layout-b .clue-blue-flower { left: 12px; top: 128px; }
.layout-b .clue-mushroom { right: 18px; top: 80px; }
.layout-b .clue-red-flower { right: 70px; bottom: 18px; }
.layout-b .clue-leaf { left: 120px; top: 70px; }
.forest-scene.show-pointer .clue-blue-flower {
  outline: 4px dashed #1d4ed8;
  border-radius: 22px;
  background: rgba(255,255,255,.28);
}
.story-battle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  overflow: hidden;
}
.story-battle .observe-cue,
.story-battle .prompt-card,
.story-battle .hint-text,
.story-battle .friend-meter,
.story-battle .meter-label,
.story-battle .skill-row { grid-column: 1 / -1; }
.story-battle.weather-wet {
  background:
    linear-gradient(180deg, rgba(150,190,230,.35), rgba(255,255,255,.1)),
    var(--card);
}
.story-battle.weather-dark {
  background:
    linear-gradient(180deg, rgba(30,40,60,.45), rgba(40,50,40,.18)),
    var(--card);
}
.story-battle.weather-clear { background: #fffaf0; }
.battle-side { text-align: center; }
.story-battle canvas.adv-pet {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  background: var(--art-well, #fff6e8);
  border-radius: 24px;
}
.anim-shiver #advWildCanvas { animation: adv-shiver .4s ease-in-out infinite; }
.anim-wetter #advWildCanvas { animation: adv-shiver .25s ease-in-out infinite; filter: saturate(1.1) hue-rotate(20deg); }
.anim-hide #advWildCanvas { transform: translateY(8px) scale(.92); opacity: .86; }
.anim-warmed #advWildCanvas { filter: drop-shadow(0 0 12px #ffb14a); }
.anim-lit #advWildCanvas { filter: drop-shadow(0 0 16px #fff4a8); }
.anim-helped #advWildCanvas { transform: translateX(-8px); }
.friend-meter {
  height: 16px;
  background: #e5efe8;
  border-radius: 999px;
  overflow: hidden;
}
.friend-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7be3a0, #3fa66a);
}
.meter-label { margin: 0; color: var(--muted); font-weight: 700; }
.skill-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.skill-btn {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: #fff6e8;
}
.skill-btn em { font-style: normal; color: var(--muted); font-size: .9rem; }
.skill-icon { font-size: 1.4rem; }
.word-review {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.word-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff3c4;
}
@keyframes adv-shiver {
  from { transform: translateX(-3px) rotate(-2deg); }
  to { transform: translateX(3px) rotate(2deg); }
}
#adventureContinue { margin-top: 10px; }
