/* Zahlenzauber – Tierbegleiter */
/* Tierbegleiter */
.tier .glitzer, .avatar .glitzer { animation: glitzern 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.tier .aura { animation: aura 3s ease-in-out infinite; transform-origin: 70px 78px; }
.tier .ei-wackeln { animation: eiwackeln 2.4s ease-in-out infinite; transform-origin: 0 0; }
@keyframes eiwackeln { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-7deg); } 82% { transform: rotate(6deg); } 88% { transform: rotate(-4deg); } 94% { transform: rotate(2deg); } }
.tier .schwimmen { animation: schweben 2.4s ease-in-out infinite; }
.tier .wedeln { animation: wedeln .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 100% 100%; }
@keyframes wedeln { to { transform: rotate(-14deg); } }
.tier .leuchten { animation: leuchten 1.6s ease-in-out infinite; }
@keyframes leuchten { 50% { opacity: .55; } }
.tier .flamme { animation: leuchten .5s ease-in-out infinite; }
.tier .herzschlag { animation: herzschlag 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes herzschlag { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 28% { transform: scale(1.05); } }
.tier .schlafen { animation: schlafatmen 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes schlafatmen { 50% { transform: scale(1.04); } }
.tier .zappeln { animation: zappeln 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes zappeln { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-6deg); } 80% { transform: rotate(5deg); } 90% { transform: rotate(-3deg); } }
.tier .zzz { animation: zzz 2.6s ease-in-out infinite; }
.tier .zzz.z2 { animation-delay: -1.3s; }
@keyframes zzz { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.tier.begleiter { width: 100px; height: 100px; margin-left: -18px; filter: drop-shadow(0 4px 4px rgba(18,8,60,.2)); }
.tier.begleiter.entwickelt { animation: entwickeln 1s ease-out; }
@keyframes entwickeln { 0% { filter: brightness(4) drop-shadow(0 0 20px #fff); transform: scale(.6); } 60% { transform: scale(1.25); } 100% { filter: drop-shadow(0 4px 4px rgba(18,8,60,.2)); transform: scale(1); } }
@media (max-width: 480px) { .tier.begleiter { width: 80px; height: 80px; margin-left: -16px; } }
.abschnitt-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.leer { font-weight: 700; color: var(--tinte-weich); margin: 4px 0; }
.haustiere { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.haustier { display: flex; gap: 12px; align-items: center; background: linear-gradient(180deg, #fff, var(--panel-2)); border-radius: 22px; padding: 10px 14px 10px 6px; box-shadow: inset 0 0 0 2px var(--linie); min-width: 0; }
.haustier.an { box-shadow: inset 0 0 0 3px var(--gruen), 0 8px 18px rgba(52,199,123,.2); background: linear-gradient(180deg, #fff, #ecfbf3); }
.ht-bild { background: radial-gradient(circle at 50% 60%, #fff, #efe9ff); border-radius: 18px; padding: 0; flex: none; }
.tier.gross { width: 120px; height: 120px; display: block; }
.ht-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ht-info b { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; line-height: 1.15; }
.ht-info small { font-weight: 700; color: var(--tinte-weich); font-size: .8rem; }
.stufenpunkte { display: flex; gap: 4px; }
.stufenpunkte i { width: 12px; height: 12px; border-radius: 50%; background: #e3def3; }
.stufenpunkte i.voll { background: linear-gradient(180deg, #ffe17a, var(--gold-d)); }
.ht-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.knopf.klein { font-size: .88rem; padding: 7px 12px; border-radius: 12px; display: inline-flex; align-items: center; gap: 4px; }
.eier, .ei-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.ei-wahl { margin: 14px 0 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .ei-wahl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ei-karte { background: linear-gradient(180deg, #fff, var(--panel-2)); border-radius: 18px; padding: 6px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: inset 0 0 0 2px var(--linie), 0 4px 0 #e2dbf7; transition: transform .12s; min-width: 0; }
.ei-karte:hover { transform: translateY(-3px); }
.tier.ei { width: 86px; height: 86px; }
.tier-album { background: linear-gradient(180deg, #fff, var(--panel-2)); border-radius: 20px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: inset 0 0 0 2px var(--linie); }
.tier-album.unbekannt .monster { filter: brightness(0) opacity(.18); }
.overlay.breit .overlay-karte { max-width: 560px; }
.zurueck.dunkel { background: var(--panel-2); color: var(--tinte-weich); margin-top: 6px; }
.entwicklung { background: linear-gradient(135deg, #fff3cf, #ffe7f2); border-radius: 20px; padding: 12px; margin-top: 10px; box-shadow: inset 0 0 0 2px #ffd9a0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ent-bilder { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ent-bilder .tier { width: 92px; height: 92px; }
.ent-bilder .ent-alt { width: 70px; height: 70px; opacity: .75; }
.ent-bilder .ent-neu { animation: entwickeln 1.1s ease-out; }
.pfeil { font-size: 1.6rem; color: var(--gold-d); font-weight: 800; }
.entwicklung > b { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; }
.entwicklung > span { font-weight: 700; color: var(--tinte-weich); font-size: .9rem; }
.tier-info { color: var(--tinte-weich) !important; font-size: .88rem; }
.ent-reihe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
@media (max-width: 460px) { .ent-reihe { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ent-stufe { display: flex; flex-direction: column; align-items: center; border-radius: 16px; padding: 6px 2px; background: var(--panel-2); }
.ent-stufe .tier.mini { width: 84px; height: 84px; filter: brightness(0) opacity(.2); }
.ent-stufe.erreicht .tier.mini { filter: none; }
.ent-stufe:not(.erreicht) .aura, .ent-stufe:not(.erreicht) .glitzer { display: none; }
.ent-stufe.jetzt { box-shadow: inset 0 0 0 3px var(--blau); background: #fff; }
.ent-stufe b { font-family: var(--f-display); font-weight: 600; font-size: .8rem; line-height: 1.15; }
.ent-stufe span { font-size: .7rem; font-weight: 700; color: var(--tinte-weich); }
