.place-animation-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.98);
    transition:
        opacity 180ms ease,
        transform 180ms cubic-bezier(0.18, 0.86, 0.28, 1);
    z-index: 1340;
}

.place-animation-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(255, 238, 162, 0.24), transparent 42%),
        rgba(0, 0, 0, 0.18);
}

.place-animation-overlay.is-visible {
    opacity: 1;
    transform: scale(1);
}

.place-animation-overlay.is-leaving {
    opacity: 0;
    transform: scale(1.03);
    transition-duration: 170ms;
}

.place-animation-panel {
    position: relative;
    min-width: min(680px, 94vw);
    max-width: 94vw;
    padding: 18px 22px 20px;
    border: 1px solid rgba(255, 226, 126, 0.72);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(55, 42, 20, 0.92), rgba(18, 18, 24, 0.94)),
        rgba(20, 20, 26, 0.96);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.42),
        inset 0 0 24px rgba(255, 217, 108, 0.16);
    overflow: hidden;
}

.place-animation-panel::after {
    content: "";
    position: absolute;
    inset: -40% -20%;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.22), transparent 65%);
    transform: translateX(-38%);
    animation: place-animation-shine 900ms ease both;
}

.place-animation-eyebrow {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    color: #ffe278;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-align: center;
}

.place-animation-card-list {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 132px;
    padding: 2px 0 8px;
}

.place-animation-card-preview {
    flex: 0 0 auto;
    margin: 0;
    cursor: default;
    pointer-events: none;
    transform: translateY(8px) scale(0.92);
    opacity: 0;
    animation: place-animation-card-in 260ms cubic-bezier(0.18, 0.86, 0.28, 1) both;
    animation-delay: calc(var(--place-animation-card-index, 0) * 42ms);
}

.place-animation-card-preview.card,
.place-animation-card-preview.cg-card-shell {
    pointer-events: none;
}

.place-animation-title {
    position: relative;
    z-index: 1;
    color: #fff2bc;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-shadow:
        0 2px 0 rgba(84, 45, 4, 0.65),
        0 0 18px rgba(255, 204, 80, 0.38);
}

@keyframes place-animation-card-in {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.88);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes place-animation-shine {
    0% {
        transform: translateX(-42%);
    }
    100% {
        transform: translateX(42%);
    }
}

@media (max-width: 720px) {
    .place-animation-panel {
        padding: 15px 14px 17px;
    }

    .place-animation-card-list {
        gap: 8px;
        transform: scale(0.9);
        transform-origin: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .place-animation-overlay,
    .place-animation-card-preview,
    .place-animation-panel::after {
        animation: none;
        transition: none;
    }
}
