/**
 * Game Toast Alert Styles
 * Crisp HTML overlay alerts to replace blurry canvas text
 */

.game-toast-container {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: auto;
    max-width: 90vw;
}

.game-toast-alert {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    animation: toastSlideDown 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

.game-toast-alert.game-toast-success {
    background: #1e7344;
    padding: 6px 22px 6px 14px;
    color: #ffffff;
}

.game-toast-alert.game-toast-error {
    background: #A82424;
    padding: 8px 24px;
    color: #ffffff;
}

.game-toast-alert.game-toast-warning {
    background: #D97706;
    padding: 8px 24px;
    color: #ffffff;
}

.game-toast-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    margin-right: 10px;
    flex-shrink: 0;
    display: block;
}

.game-toast-text {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.game-toast-alert.toast-hiding {
    animation: toastSlideUp 0.3s ease-in forwards;
}

@keyframes toastSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastSlideUp {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-25px) scale(0.92);
    }
}

/* Mobile Responsive */
@media screen and (max-width: 480px) {
    .game-toast-container {
        top: 15px;
        max-width: 94vw;
    }

    .game-toast-alert.game-toast-success {
        padding: 5px 18px 5px 12px;
    }

    .game-toast-alert.game-toast-error,
    .game-toast-alert.game-toast-warning {
        padding: 7px 20px;
    }

    .game-toast-icon {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }

    .game-toast-text {
        font-size: 14px;
    }
}
