/* Age of Settlements v0.12.18 – Superadmin-Spieler-Login als rote Kachel im Hauptfenster */
.aos-impersonation-card {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    width: calc(100% - 28px);
    margin: 14px auto 0;
    overflow: hidden;
    border: 1px solid rgba(255, 128, 128, .76);
    border-radius: 10px;
    background:
        radial-gradient(circle at 94% 0%, rgba(255, 196, 196, .12), transparent 30%),
        linear-gradient(145deg, rgba(80, 5, 8, .97), rgba(116, 8, 12, .96) 55%, rgba(67, 3, 6, .98));
    color: #fff8f2;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .10),
        0 8px 20px rgba(53, 0, 0, .24);
    animation: aos-impersonation-card-pulse 2s ease-in-out infinite;
}

/* Sobald die Kachel im Hauptfenster liegt, übernimmt sie exakt dessen Inhaltsbreite. */
.aos-game-content > .page-shell > .aos-impersonation-card,
.aos-game-content > main.page-shell > .aos-impersonation-card {
    width: 100%;
    margin: 0 0 18px;
}

.aos-impersonation-card__head {
    min-width: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 13px 16px;
}

.aos-impersonation-card__signal {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 245, 240, .78);
    border-radius: 9px;
    background: rgba(31, 0, 2, .28);
    color: #fff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.aos-impersonation-card__copy {
    min-width: 0;
}

.aos-impersonation-card__eyebrow {
    display: block;
    margin-bottom: 1px;
    color: #ffc6bd;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.aos-impersonation-card__copy strong {
    display: block;
    margin: 0;
    color: #fff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(.98rem, 1.25vw, 1.16rem);
    font-weight: 800;
    letter-spacing: .04em;
    text-shadow: 0 1px 2px rgba(0,0,0,.40);
}

.aos-impersonation-card__copy p {
    margin: 3px 0 0;
    color: #ffe5df;
    font-size: .78rem;
    line-height: 1.4;
}

.aos-impersonation-card__copy b {
    color: #fff;
}

.aos-impersonation-card__form {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 11px 14px;
    border-left: 1px solid rgba(255, 255, 255, .11);
    background: rgba(28, 0, 2, .16);
}

.aos-impersonation-card__exit {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.84);
    border-radius: 8px;
    background: #fff7ef;
    color: #7b0808;
    font: inherit;
    font-size: .74rem;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 3px 9px rgba(48,0,0,.22);
    transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.aos-impersonation-card__exit:hover,
.aos-impersonation-card__exit:focus-visible {
    transform: translateY(-1px);
    background: #fff;
    color: #520303;
    outline: 2px solid rgba(255,255,255,.36);
    outline-offset: 2px;
    box-shadow: 0 5px 13px rgba(48,0,0,.28);
}

@keyframes aos-impersonation-card-pulse {
    0%, 100% {
        border-color: rgba(255, 128, 128, .66);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 8px 20px rgba(53,0,0,.22);
    }
    50% {
        border-color: rgba(255, 202, 202, .94);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 8px 22px rgba(154,0,0,.34), 0 0 0 1px rgba(255,74,74,.12);
    }
}

@media (max-width: 760px) {
    .aos-impersonation-card {
        width: calc(100% - 18px);
        margin-top: 9px;
        grid-template-columns: 1fr;
    }

    .aos-game-content > .page-shell > .aos-impersonation-card,
    .aos-game-content > main.page-shell > .aos-impersonation-card {
        width: 100%;
        margin: 0 0 14px;
    }

    .aos-impersonation-card__head {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .aos-impersonation-card__signal {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        font-size: 23px;
    }

    .aos-impersonation-card__form {
        padding: 0 12px 12px;
        border-left: 0;
        background: transparent;
    }

    .aos-impersonation-card__exit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aos-impersonation-card {
        animation: none;
    }

    .aos-impersonation-card__exit {
        transition: none;
    }
}
