/* Gameplay only. Question and answer panels intentionally have no rules here. */
.leaf-fall-scene {
  background:linear-gradient(90deg,#1c302d38,#1b2e2b15 45%,#10281e50),url('/bio-land/icons/leaf-fall/forest.webp?v=1') center 65%/cover;
  border:1px solid #c8b58266;border-radius:16px;isolation:isolate;
  min-height:240px;padding:14px 24px 12px;
}
.leaf-fall-scene::before {content:none;}
.leaf-fall-scene .boss-hero {filter:drop-shadow(0 5px 5px #14281a55);align-self:flex-end;margin-bottom:12px;}
.leaf-fall-scene .leaf-fall-naturalist {width:116px;height:164px;object-fit:contain;}
.leaf-fall-scene .boss-hero-lbl {background:#173c2ff0;color:#f4e8c5;border-color:#c4ad6b88;font:700 10px/1.4 system-ui;letter-spacing:.3px;}
.leaf-fall-scene .boss-col {flex:0 1 280px;max-width:280px;}
.leaf-fall-scene .boss-threat-header {font:700 10px/1.4 system-ui;color:#fff1cf;background:#243e30d9;padding:3px 8px;border-radius:8px;text-align:center;}
.leaf-fall-scene .boss-art-card {background:linear-gradient(145deg,#163b2dec,#102a22f5);border-color:#d3bc7b9c;box-shadow:0 5px 14px #11251d55;}
.leaf-fall-scene .boss-art-holder {width:160px;height:126px;}
.leaf-fall-scene .leaf-fall-tree {object-fit:contain;border-radius:0;filter:none;}
.leaf-fall-scene .boss-art-name {font:700 14px/1.25 system-ui;color:#fff4d7;}
.leaf-fall-scene .boss-art-tag {font:500 10px/1.3 system-ui;background:#47664c66;color:#e6eccb;border-radius:8px;padding:4px 6px;}
.leaf-fall-scene .boss-art-badge {font:600 10px/1.3 system-ui;background:#7a5c2ad9;color:#fff3d5;box-shadow:none;}
.leaf-fall-scene .g-bar {background:#1c3426;border:1px solid #cbb37566;}
.leaf-fall-scene .g-bar > i {background:linear-gradient(90deg,#bd6939,#e3bd61);}
.leaf-fall-leaves {position:absolute;inset:0;overflow:hidden;z-index:0;pointer-events:none;}
.leaf-fall-particle {position:absolute;top:-35px;left:var(--left);width:13px;height:20px;color:var(--leaf-color);opacity:.7;animation:leaf-fall-drift var(--duration) var(--delay) linear infinite;}
.leaf-fall-particle svg {display:block;width:100%;height:100%;}
@keyframes leaf-fall-drift {0%{transform:translate(-8px,-20px) rotate(-30deg);opacity:0}10%{opacity:.7}85%{opacity:.7}100%{transform:translate(34px,330px) rotate(280deg);opacity:0}}
@media(max-width:600px){
  .leaf-fall-scene {padding:10px 12px;gap:8px;min-height:218px;}
  .leaf-fall-scene .leaf-fall-naturalist {width:88px;height:140px;}
  .leaf-fall-scene .boss-hero {margin-bottom:10px;}
  .leaf-fall-scene .boss-hero-lbl {font-size:8px;padding:2px 4px;letter-spacing:0;}
  .leaf-fall-scene .boss-col {flex:1 1 55%;min-width:0;}
  .leaf-fall-scene .boss-art-card {padding:6px;}
  .leaf-fall-scene .boss-art-holder {width:100%;max-width:140px;height:100px;}
  .leaf-fall-scene .boss-art-name {font-size:12px;}
  .leaf-fall-scene .boss-art-tag {font-size:9px;padding:3px 4px;}
  .leaf-fall-scene .boss-threat-header {font-size:8px;}
}
@media(prefers-reduced-motion:reduce){.leaf-fall-particle{animation:none;display:none;}}

/* Keep the scene and quiz usable as the available height changes. */
.leaf-fall-game {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: clamp(8px, 1.8vw, 22px);
  gap: 8px;
}
.leaf-fall-game > * { flex-shrink: 0; }
.leaf-fall-game .g-question {
  min-height: 0;
  margin: 0;
  padding: 4px 0 8px;
}
.leaf-fall-game .kid-prompt {
  gap: 8px;
  padding: 8px 12px;
  max-width: 100%;
}
.leaf-fall-game .kid-hero { font-size: clamp(16px, 2.8vw, 28px); }
.leaf-fall-game .kid-arrow,
.leaf-fall-game .kid-target { font-size: clamp(18px, 3vw, 28px); }
.leaf-fall-game .kid-target { min-height: 34px; min-width: 42px; padding: 3px 7px; }
.leaf-fall-game .g-options { gap: 8px; }
.leaf-fall-game .g-opt {
  min-height: 44px;
  padding: clamp(9px, 1.5vh, 16px) 8px;
  font-size: clamp(14px, 2.7vw, 23px);
}
@media (max-height: 850px) {
  .leaf-fall-scene { min-height: 0; padding: 8px 12px; gap: 5px; }
  .leaf-fall-scene .leaf-fall-naturalist { height: clamp(82px, 17vh, 132px); }
  .leaf-fall-scene .boss-art-holder { height: clamp(60px, 13vh, 108px); }
  .leaf-fall-scene .boss-art-card { gap: 3px; padding: 5px 7px; }
  .leaf-fall-scene .boss-col { gap: 4px; }
}
@media (min-width: 640px) and (max-height: 510px) {
  .leaf-fall-game {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-content: start;
    align-items: start;
  }
  .leaf-fall-game > .leaf-fall-scene { grid-row: 1 / span 2; }
  .leaf-fall-game > .g-msg { grid-column: 2; margin: 0; }
  .leaf-fall-game .boss-art-name { font-size: 12px; }
  .leaf-fall-game .boss-art-holder { width: min(120px, 100%); }
  .leaf-fall-game .leaf-fall-naturalist { width: min(82px, 22vw); }
  .leaf-fall-game .kid-hero { font-size: clamp(15px, 2.5vw, 22px); }
}
