/* Shared effect presentation. This component is currently used by Stygian public-select only. */
.effect-overlay.stygian-public-effect {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    animation: stygian-public-effect-fade-in 0.3s ease forwards;
}

.effect-overlay.stygian-public-effect.is-closing {
    animation: stygian-public-effect-fade-out 0.5s ease forwards;
}

.stygian-public-effect__scene {
    position: relative;
    z-index: 100;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.3);
    transform: scale(0.5);
    animation: stygian-public-effect-zoom-in 0.5s ease forwards;
}

.stygian-public-effect__background {
    position: absolute;
    inset: 0;
    background-image: url('../../images/flashdemo/stars.png');
    background-position: center;
    background-size: cover;
    animation: stygian-public-effect-background-blur 2s ease 1s forwards;
}

.stygian-public-effect__character {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(-50%);
}

.stygian-public-effect__character--left {
    left: 18%;
    animation: stygian-public-effect-enter-left 0.5s ease 0.5s forwards;
}

.stygian-public-effect__character--right {
    right: 18%;
    animation: stygian-public-effect-enter-right 0.5s ease 0.7s forwards;
}

.stygian-public-effect__image {
    width: 360px;
    height: 360px;
    border-radius: 15px;
    object-fit: cover;
}

.stygian-public-effect__name {
    margin-top: 15px;
    padding: 10px 20px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #FFD700;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    white-space: pre-line;
}

@keyframes stygian-public-effect-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes stygian-public-effect-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes stygian-public-effect-zoom-in {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes stygian-public-effect-background-blur {
    from { filter: blur(0); }
    to { filter: blur(10px); }
}

@keyframes stygian-public-effect-enter-left {
    from { opacity: 0; transform: translateY(-50%) translateX(-50px) translateY(-30px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0) translateY(0); }
}

@keyframes stygian-public-effect-enter-right {
    from { opacity: 0; transform: translateY(-50%) translateX(50px) translateY(30px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0) translateY(0); }
}
