/* Zahlenzauber – Events, Wetter, Überraschungen */
/* Events */
.event-banner { position: relative; isolation: isolate; overflow: hidden; width: 100%; text-align: left; display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 12px; padding: 12px 16px 12px 10px; margin-bottom: 16px; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, var(--ev, #8e5bea), #3a2a7a); box-shadow: var(--schatten); }
/* color-mix nur, wo der Browser es kann (Safari 15 nicht: mit var() würde der Hintergrund sonst ganz verschwinden) */
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .event-banner { background: linear-gradient(135deg, var(--ev, #8e5bea), color-mix(in srgb, var(--ev, #8e5bea) 55%, #1b1150)); }
}
.event-banner > *:not(.wetter) { position: relative; z-index: 2; }
.ev-bild .monster.ev-monster { width: 84px; height: 84px; display: block; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); animation: wippen 2s ease-in-out infinite; }
.ev-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ev-eyebrow { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }
.ev-text h3 { font-size: 1.35rem; }
.ev-text p { margin: 0; font-size: .85rem; font-weight: 700; opacity: .92; line-height: 1.35; }
.ev-text small { font-size: .8rem; font-weight: 700; }
.ev-text .quest-balken { flex: none; height: 22px; margin-top: 4px; background: rgba(255,255,255,.25); box-shadow: none; }
.ev-text .quest-balken em { color: #fff; display: flex; align-items: center; justify-content: center; gap: 4px; }
.w-icon { width: 16px; height: 16px; vertical-align: -3px; }
.ev-beloh { background: rgba(255,255,255,.2); border-radius: 18px; padding: 4px; display: grid; place-items: center; min-width: 64px; min-height: 64px; }
.avatar.belohnungsbild { width: 54px; height: 74px; }
@media (max-width: 480px) { .event-banner { grid-template-columns: 64px 1fr; } .ev-bild .monster.ev-monster { width: 64px; height: 64px; } .ev-beloh { display: none; } }
.event-info { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--tinte); }
.event-info small { color: var(--tinte-weich); }
.ev-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 12px 0; }
.ev-stufe { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--panel-2); border-radius: 16px; padding: 10px 6px; }
.ev-stufe b { font-family: var(--f-display); font-weight: 600; font-size: .9rem; }
.ev-stufe span { font-size: .75rem; font-weight: 700; color: var(--tinte-weich); }
.ev-stufe.erreicht { background: #e6f9ee; box-shadow: inset 0 0 0 2px var(--gruen); }
.ev-stufe.erreicht span { color: var(--gruen-d); }
.event-beloh .avatar.belohnungsbild, .event-beloh svg { width: 46px; height: 60px; flex: none; }
.shop-item.spezial .preis { background: #ffe9f3; color: #c2307a; }

/* Wetter */
.wetter { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.wetter i { position: absolute; top: -12%; display: block; animation: fallen linear infinite; }
.wetter.schnee i { width: calc(8px * var(--g)); height: calc(8px * var(--g)); border-radius: 50%; background: #fff; opacity: .9; box-shadow: 0 0 6px rgba(255,255,255,.8); }
.wetter.blaetter i { width: calc(14px * var(--g)); height: calc(10px * var(--g)); border-radius: 0 80% 0 80%; background: #ff9a3d; opacity: .9; }
.wetter.blaetter i:nth-child(3n) { background: #e8552e; } .wetter.blaetter i:nth-child(3n+1) { background: #ffc93c; }
@keyframes fallen { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(18px, 60vh) rotate(180deg); } 100% { transform: translate(-10px, 120vh) rotate(360deg); } }
.arena .wetter { z-index: 2; }

/* Überraschungen */
.monster.schillernd { animation: atmen 2.2s ease-in-out infinite, schimmern 3s linear infinite !important; }
@keyframes schimmern { 0% { filter: hue-rotate(0) saturate(1.5) drop-shadow(0 0 10px #fff); } 100% { filter: hue-rotate(360deg) saturate(1.5) drop-shadow(0 0 10px #fff); } }
.schillermarke { color: #ff8fc7; animation: leuchten 1s ease-in-out infinite; }
.tier-album.glanz { box-shadow: inset 0 0 0 3px #ff8fc7, 0 6px 14px rgba(255,143,199,.3); }
.schatz { position: absolute; top: 8px; right: 10px; width: 62px; height: 54px; padding: 0; background: none; z-index: 3; animation: schatzhuepfen 1.6s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255,225,122,.9)) drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.schatz svg { width: 100%; height: 100%; }
@keyframes schatzhuepfen { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-8px) rotate(-6deg); } 60% { transform: translateY(-8px) rotate(6deg); } }
.truhe-offen svg { width: 120px; height: 105px; position: relative; animation: wippen 1.2s ease-in-out infinite; }
.ueberraschung { background: linear-gradient(135deg, #ffe7f2, #efe8ff); border-radius: 16px; padding: 10px 14px; color: #8a2a6a !important; }
.fund { display: flex; align-items: center; gap: 10px; text-align: left; background: #fff6d8; border-radius: 16px; padding: 6px 12px 6px 6px; margin-top: 10px; font-weight: 700; font-size: .92rem; }
.tier.fund-bild { width: 56px; height: 56px; flex: none; }
