/* Die nächtliche Waldszene */
.wald { position: fixed; inset: 0; overflow: hidden; background: #070b18; --mx: 0; --my: 0; user-select: none; -webkit-user-select: none; }
.w-ebene, .w-ebene-wrap { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-ebene-wrap > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-himmel { transform: translate(calc(var(--mx) * -4px), calc(var(--my) * -3px)) scale(1.02); }
.w-ebene-wrap[data-tiefe="1"] { transform: translate(calc(var(--mx) * -7px), calc(var(--my) * -4px)) scale(1.03); }
.w-ebene-wrap[data-tiefe="2"] { transform: translate(calc(var(--mx) * -12px), calc(var(--my) * -6px)) scale(1.04); }
.w-ebene-wrap[data-tiefe="3"], .w-pilze { transform: translate(calc(var(--mx) * -18px), calc(var(--my) * -8px)) scale(1.05); transform-origin: 50% 100%; }
.w-ebene-wrap.vorn { transform: translate(calc(var(--mx) * -30px), calc(var(--my) * -10px)) scale(1.08); pointer-events: none; z-index: 1200; }
.w-himmel .funkel { animation: funkeln 4s ease-in-out infinite; }
@keyframes funkeln { 50% { opacity: .1; } }
.w-himmel .mond { filter: drop-shadow(0 0 18px rgba(220, 230, 255, .55)); }

/* Nebel */
.w-nebel { position: absolute; left: -30%; width: 160%; pointer-events: none; opacity: .5; mix-blend-mode: screen; }
.w-nebel.n1 { top: 42%; height: 30%; background: radial-gradient(40% 50% at 30% 50%, rgba(150, 170, 220, .16), transparent 70%), radial-gradient(35% 45% at 75% 55%, rgba(150, 170, 220, .12), transparent 70%); animation: nebel 70s linear infinite alternate; }
.w-nebel.n2 { top: 58%; height: 26%; background: radial-gradient(30% 50% at 20% 50%, rgba(170, 185, 230, .13), transparent 70%), radial-gradient(40% 50% at 65% 40%, rgba(170, 185, 230, .1), transparent 70%); animation: nebel 95s linear infinite alternate-reverse; z-index: 1; }
.w-nebel.n3 { top: 78%; height: 30%; background: radial-gradient(30% 40% at 40% 60%, rgba(180, 195, 235, .1), transparent 70%), radial-gradient(25% 40% at 85% 50%, rgba(180, 195, 235, .08), transparent 70%); animation: nebel 120s linear infinite alternate; z-index: 1150; }
@keyframes nebel { to { transform: translateX(18%); } }

/* Pilze */
.w-pilze { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pilz {
  position: absolute; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto;
  filter: brightness(.74) saturate(.78) hue-rotate(-8deg) drop-shadow(0 0 0 transparent);
  transition: filter .35s, transform .35s;
  transform-origin: 50% 90%;
  animation: atmen 6s ease-in-out infinite;
}
.pilz svg { width: 100%; height: 100%; display: block; overflow: visible; pointer-events: none; }
.pilz:hover, .pilz:focus-visible { filter: brightness(1.05) saturate(1) drop-shadow(0 0 10px rgba(255, 230, 160, .55)); transform: translateY(-2px) scale(1.04); outline: none; animation-play-state: paused; }
.pilz:not(.pflueckbar) { cursor: zoom-in; }
@keyframes atmen { 50% { transform: scale(1.012, .992); } }
.pilz.reif .reif-ring { position: absolute; left: 50%; bottom: 4%; width: 40%; aspect-ratio: 4/1; transform: translateX(-50%); border-radius: 50%; border: 1.5px solid rgba(255, 236, 170, .35); animation: reifRing 3.5s ease-out infinite; pointer-events: none; }
@keyframes reifRing { 0% { opacity: .9; transform: translateX(-50%) scale(.6); } 100% { opacity: 0; transform: translateX(-50%) scale(1.6); } }
.pilz.rar::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--glitzer) center / 90px 90px; mix-blend-mode: screen; opacity: .45; -webkit-mask: radial-gradient(closest-side, #000, transparent); mask: radial-gradient(closest-side, #000, transparent); animation: glitzerZiehen 6s linear infinite; }
@keyframes glitzerZiehen { to { background-position: 0 -180px; } }
.pilz.leuchtend { filter: brightness(1.05) saturate(1.1) drop-shadow(0 0 8px rgba(120, 255, 230, .9)) drop-shadow(0 0 22px rgba(120, 255, 230, .5)); animation: atmen 6s ease-in-out infinite, leuchtPuls 2.6s ease-in-out infinite; }
@keyframes leuchtPuls { 50% { filter: brightness(1.2) saturate(1.2) drop-shadow(0 0 14px rgba(140, 255, 235, 1)) drop-shadow(0 0 36px rgba(120, 255, 230, .6)); } }
.pilz .aura { position: absolute; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(120, 255, 230, .25), transparent 60%); pointer-events: none; z-index: -1; }
.pilz.biolumi .leuchten, .buehne-pilz .leuchten { animation: bioPuls 3s ease-in-out infinite; }
@keyframes bioPuls { 50% { opacity: .55; } }
.pilz .leuchten { opacity: 1; }
.pilz.welk { filter: brightness(.55) saturate(.25) sepia(.4); transform: rotate(4deg) scaleY(.94); }
.pilz .pilz-schatten { opacity: .5; }

/* Teilchen */
.w-teilchen { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1100; mix-blend-mode: screen; }

/* Eule */
.w-eule { position: absolute; left: 0; top: 0; width: 110px; height: 64px; margin: -32px 0 0 -55px; z-index: 1300; display: none; cursor: pointer; --fl: 0; }
.w-eule.fliegt { display: block; }
.w-eule svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 6px rgba(180, 200, 255, .25)); }
.w-eule .fl-l { transform-origin: -6px -2px; transform: scaleY(calc(1 - var(--fl) * 1.6)) rotate(calc(var(--fl) * -18deg)); }
.w-eule .fl-r { transform-origin: 6px -2px; transform: scaleY(calc(1 - var(--fl) * 1.6)) rotate(calc(var(--fl) * 18deg)); }
.w-eule.gefangen svg { animation: euleGlanz 1.2s ease-out; }
@keyframes euleGlanz { 30% { filter: drop-shadow(0 0 20px #ffe9a0) brightness(1.8); } }

/* Lagerfeuer und Korb */
.w-lager { position: absolute; left: max(10px, 2vw); bottom: max(10px, 2vh); width: clamp(170px, 22vw, 260px); height: clamp(110px, 14vw, 160px); border: 0; padding: 0; background: none; cursor: pointer; z-index: 1250; }
.feuer-schein { position: absolute; left: -60%; bottom: -70%; width: 200%; height: 220%; background: radial-gradient(closest-side, rgba(255, 150, 60, .28), rgba(255, 110, 40, .1) 50%, transparent); pointer-events: none; animation: flackern 2.3s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes flackern { 20% { opacity: .8; } 45% { opacity: 1; } 60% { opacity: .85; } 80% { opacity: .95; } }
.feuer-svg { position: absolute; left: 0; bottom: 0; width: 55%; height: auto; overflow: visible; }
.korb-svg { position: absolute; right: 0; bottom: 0; width: 50%; height: auto; transition: transform .3s; filter: brightness(.95); }
.w-lager:hover .korb-svg { transform: translateY(-4px) rotate(-3deg); }
.flammen .fl { transform-origin: 0 -8px; animation: flamme 1.1s ease-in-out infinite alternate; mix-blend-mode: screen; }
.flammen .f2 { animation-duration: .8s; animation-delay: -.3s; } .flammen .f3 { animation-duration: 1.3s; animation-delay: -.6s; } .flammen .f4 { animation-duration: .6s; }
@keyframes flamme { 0% { transform: scale(1, 1) skewX(0); } 50% { transform: scale(.92, 1.1) skewX(4deg); } 100% { transform: scale(1.05, .9) skewX(-5deg); } }
.funken .fu { animation: funke 3.5s linear infinite; opacity: 0; }
@keyframes funke { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(12px, -70px); opacity: 0; } }
.korb-zahl { position: absolute; right: 8%; top: 2%; padding: 3px 9px; border-radius: 99px; background: rgba(20, 14, 8, .85); border: 1.5px solid #c49a5a; color: #ffe8bf; font: 800 13px/1.2 var(--f-ui); }
.korb-zahl.voll { border-color: #ffb347; color: #ffb347; animation: pochen 1.2s ease-in-out infinite; }
@keyframes pochen { 50% { transform: scale(1.12); } }

/* Gebietsstimmungen */
.gebiet-wiese .w-himmel { filter: brightness(1.08); }
.gebiet-nadel .w-nebel { opacity: .65; }
.gebiet-totholz .w-nebel { opacity: .8; }
