/* Besucher und Requisiten (siehe base-visitors.js): Händler mit Rucksack und Decke, Schneebälle, Drachen, gehaltener Fisch */
.bv-prop { position: absolute; pointer-events: none; }
.bv-figure { pointer-events: auto; background: none; border: 0; padding: 0; animation: bvIn 1.4s ease-out both; cursor: pointer; }
.bv-figure.is-out, .bv-stand.is-out { opacity: 0; transition: opacity 3s ease-in; }
.bv-stand { transform-origin: 20% 100%; animation: bvIn 1.4s ease-out both; }
.bv-stand .bv-pixel, .bv-stand svg { width: 100%; height: 100%; image-rendering: pixelated; overflow: visible; display: block; }
@keyframes bvIn { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
/* Schneeball im Flug und der Schneestaub beim Aufprall */
.bv-snowball { z-index: 9; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #dce8f6 70%); box-shadow: 0 2px 3px rgba(40, 60, 90, 0.35); }
.bv-puff { z-index: 9; }
.bv-puff i { position: absolute; left: 50%; top: 50%; width: 26%; height: 26%; margin: -13% 0 0 -13%; border-radius: 50%; background: #fff; box-shadow: 0 0 4px rgba(200, 220, 245, 0.9); animation: bvPuff 0.65s ease-out both; }
.bv-puff i:nth-child(1) { --dx: -80%; --dy: -70%; } .bv-puff i:nth-child(2) { --dx: 85%; --dy: -55%; } .bv-puff i:nth-child(3) { --dx: -50%; --dy: 55%; } .bv-puff i:nth-child(4) { --dx: 70%; --dy: 45%; }
@keyframes bvPuff { 0% { transform: translate(0, 0) scale(0.5); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1.5); opacity: 0; } }
/* gefangener Fisch: wird hochgehalten und zappelt */
.bv-fish { z-index: 9; font-size: 2.1rem; line-height: 1; text-align: center; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); animation: bvWiggle 0.45s ease-in-out infinite alternate; }
@keyframes bvWiggle { from { rotate: -22deg; } to { rotate: 22deg; } }
/* Drachen und Schnur */
.bv-kite { z-index: 9; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25)); }
.bv-kite svg { width: 100%; height: 100%; display: block; }
.bv-kiteline { z-index: 8; height: 2px !important; background: rgba(255, 255, 255, 0.85); transform-origin: 0 50%; box-shadow: 0 0 2px rgba(0, 0, 0, 0.3); }
/* neue Gesten: Schneeball werfen (Arm schwingt nach vorn) und getroffen werden (kurzes Zucken) */
@keyframes pxGestureThrow { 0%, 100% { transform: rotate(0deg); } 22% { transform: rotate(-168deg); } 42% { transform: rotate(-176deg); } 60% { transform: rotate(-28deg); } 80% { transform: rotate(8deg); } }
.gesture-throw .pixel-avatar .px-arm-right, .pixel-avatar.gesture-throw .px-arm-right { animation: pxGestureThrow 0.9s ease-in-out; z-index: 6; }
@keyframes pxGestureHit { 0% { transform: none; } 18% { transform: translateX(-4px) rotate(-9deg); } 45% { transform: translateX(3px) rotate(6deg); } 70% { transform: translateX(-1px) rotate(-3deg); } 100% { transform: none; } }
.base-npc.gesture-hit .base-npc-body { animation: pxGestureHit 0.6s ease-out; }
@media (prefers-reduced-motion: reduce) { .bv-figure, .bv-stand, .bv-fish { animation: none; } }
/* Shop der fahrenden Händlerin (base-haendler-shop.js): nutzt die Karten des Medaillenshops */
.hs-overlay { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.55); }
.hs-box { width: min(560px, 100%); max-height: 100%; overflow-y: auto; padding: 14px; background: #f4e9cf; border: 3px solid var(--cs-ink, #2b1a0e); border-radius: 14px; box-shadow: 4px 4px 0 var(--cs-ink, #2b1a0e); }
.hs-buy { grid-auto-flow: column; gap: 6px; }
.hs-buy button { min-width: 64px; min-height: 40px; }
.hs-close { appearance: none; justify-self: end; padding: 10px 20px; border: 2px solid var(--cs-ink, #2b1a0e); border-radius: 8px; background: #fff; color: inherit; font: 800 0.85rem/1 inherit; cursor: pointer; }
@media (max-width: 520px) { .hs-buy { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; } }
.bv-stand.is-pending { opacity: 0; animation: none; }
