/* Collection tile for a skanimal type */
.skanimal-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-radius);
    background: var(--sc-surface);
}

.skanimal-type-card.is-discovered {
    border-color: rgba(var(--sc-primary-rgb), 0.3);
    background:
        radial-gradient(circle at 50% 45%, rgba(var(--sc-primary-rgb), 0.22), transparent 65%),
        linear-gradient(180deg, var(--sc-surface-2), var(--sc-surface));
}

.skanimal-type-number {
    position: absolute;
    top: 6px;
    left: 8px;
    z-index: 1;
    color: var(--sc-text-faint);
    font-family: var(--sc-font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.skanimal-type-card.is-discovered .skanimal-type-number {
    color: var(--sc-primary);
}

.skanimal-type-card-body {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 20px 10px 6px;
}

.skanimal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45));
}

.skanimal-type-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    background: rgba(var(--sc-bg-rgb), 0.45);
    color: var(--sc-text-muted);
    font-size: 12px;
    font-weight: 700;
}

.skanimal-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
    color: var(--sc-text-faint);
    font-size: 34px;
}

/* Bigger reveal used by the "new type discovered" popup */
.popup-content .skanimal-type-card {
    max-width: 260px !important;
    max-height: none !important;
    box-shadow: 0 0 0 2px var(--sc-gold), 0 0 40px rgba(255, 200, 61, 0.4);
    animation: skanimal-type-reveal 0.6s var(--sc-ease-spring) backwards;
}

@keyframes skanimal-type-reveal {
    from {
        opacity: 0;
        transform: scale(0.6) rotate(-6deg);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
