#omnichess-toast-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 320px;
    max-width: calc(100vw - 32px);
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999999999;
    pointer-events: none;
}

@media (max-width: 480px) {
    #omnichess-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
}

.omnichess-toast {
    min-width: 220px;
    color: #e4e4e7;
    background-color: #29292e;
    border: 1px solid #3f3f46;
    border-radius: 6px;
    padding: 10px 32px 10px 12px;
    position: relative;
    overflow: hidden;
    pointer-events: all;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    animation: omnichess-toast-fadein 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.omnichess-toast-fadeout {
    animation: omnichess-toast-fadeout 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.omnichess-toast-pulse {
    animation: omnichess-toast-pulse 0.25s ease-in-out;
}

.omnichess-toast-success {
    border-left: 3px solid #10b981;
}

.omnichess-toast-message {
    border-left: 3px solid #3b82f6;
}

.omnichess-toast-warning {
    border-left: 3px solid #f59e0b;
}

.omnichess-toast-error {
    border-left: 3px solid #ef4444;
}

.omnichess-toast-instance {
    border-left: 3px solid #a1a1aa;
}

.omnichess-toast-icon {
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.omnichess-toast-content {
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
    font-family: system-ui, -apple-system, sans-serif;
    flex-grow: 1;
}

.omnichess-toast-content small {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}

.omnichess-toast-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 10px;
    color: #a1a1aa;
    opacity: 0.6;
    background: transparent;
    border: none;
    border-radius: 3px;
    transition: opacity 0.2s, background-color 0.2s, color 0.2s;
    padding: 0;
    box-sizing: border-box;
}

.omnichess-toast-close-btn:hover {
    opacity: 1;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.omnichess-toast-close-btn.highlight {
    background-color: #f59e0b;
    color: #1f1f23;
    opacity: 1;
}

.omnichess-toast-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.05);
}

.omnichess-toast-progress-bar {
    height: 100%;
    width: 0%;
    transition: width 0.1s linear;
}

.omnichess-toast-success .omnichess-toast-progress-bar {
    background-color: #10b981;
}

.omnichess-toast-message .omnichess-toast-progress-bar {
    background-color: #3b82f6;
}

.omnichess-toast-warning .omnichess-toast-progress-bar {
    background-color: #f59e0b;
}

.omnichess-toast-error .omnichess-toast-progress-bar {
    background-color: #ef4444;
}

.omnichess-toast-instance .omnichess-toast-progress-bar {
    background-color: #a1a1aa;
}

@keyframes omnichess-toast-fadein {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes omnichess-toast-fadeout {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

@keyframes omnichess-toast-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}