/* Centered toast — replaces top-left flash/alert noise */
.mobiplay-toast-host {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 1080;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.mobiplay-toast {
    pointer-events: auto;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    font-size: 14px;
    line-height: 1.45;
    animation: mobiplay-toast-in 0.22s ease-out;
}

.mobiplay-toast.is-leaving {
    animation: mobiplay-toast-out 0.18s ease-in forwards;
}

.mobiplay-toast--success {
    background: #065f46;
}

.mobiplay-toast--error {
    background: #991b1b;
}

.mobiplay-toast--warning {
    background: #92400e;
}

.mobiplay-toast--info {
    background: #1e3a5f;
}

.mobiplay-toast__icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    margin-top: 1px;
}

.mobiplay-toast__body {
    flex: 1 1 auto;
    min-width: 0;
}

.mobiplay-toast__close {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.75;
    padding: 0;
    line-height: 1;
    font-size: 18px;
    cursor: pointer;
}

.mobiplay-toast__close:hover {
    opacity: 1;
}

@keyframes mobiplay-toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mobiplay-toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(8px); }
}
