/* Entry effect banner: floats in from the right edge, holds, then fades out. */
.entry-effect {
    position: fixed;
    left: 0;
    top: 22%;
    z-index: 9998;
    pointer-events: none;
    transform: translateX(100vw);
    transition: transform 1.8s cubic-bezier(.22,.61,.36,1);
}
.entry-effect.in { transform: translateX(8px); }
.entry-effect.out { opacity: 0; transition: transform 1.8s cubic-bezier(.22,.61,.36,1), opacity .5s linear; }

.entry-effect-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}
.entry-effect-avatar {
    position: absolute;
    border-radius: 50%;
    object-fit: cover;
}
.entry-effect-text {
    position: absolute;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    /* Fallback halo; entry-effect.js overrides this inline once it samples the
       banner background and picks a contrasting text color. */
    text-shadow: 0 0 2px rgba(0,0,0,.55), -1px -1px 0 rgba(0,0,0,.7), 1px -1px 0 rgba(0,0,0,.7), -1px 1px 0 rgba(0,0,0,.7), 1px 1px 0 rgba(0,0,0,.7);
}
/* Name shrinks/ellipsises first; medal + trailing text stay fully visible. */
.entry-effect-text .entry-effect-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.entry-effect-text > span { flex: 0 0 auto; }
.entry-effect-medal { flex: 0 0 auto; width: auto; object-fit: contain; margin: 0 4px; }
