.summoner-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: summoner-preview-fade 0.18s ease-out;
}

.summoner-preview-dialog {
    position: relative;
    width: min(420px, 100%);
    min-height: 160px;
    background: #12171c;
    border: 1px solid #2a3440;
    border-radius: 8px;
    padding: 20px 18px 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    color: #e8ecef;
    animation: summoner-preview-pop 0.22s ease-out;
}

.summoner-preview-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #8b98a5;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.summoner-preview-close:hover {
    color: #fff;
}

.summoner-preview-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
    padding-right: 20px;
}

.summoner-preview-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #f99b1d;
    object-fit: cover;
}

.summoner-preview-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #e8ecef;
}

.summoner-preview-meta {
    color: #8b98a5;
    font-size: 0.9rem;
    margin-top: 2px;
}

.summoner-preview-elo {
    color: #f99b1d;
    font-weight: 700;
    margin-top: 4px;
}

.summoner-preview-champs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.summoner-preview-champ {
    text-align: center;
    background: #1a2129;
    border: 1px solid #2a3440;
    border-radius: 6px;
    padding: 8px 4px;
}

.summoner-preview-champ img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: block;
    margin: 0 auto 6px;
}

.summoner-preview-champ span {
    display: block;
    font-size: 0.72rem;
    color: #a8b4c0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summoner-preview-actions {
    display: flex;
    gap: 8px;
}

.summoner-preview-btn {
    flex: 1;
    height: 40px;
    border: 1px solid #2a3440;
    background: #1a2129;
    color: #e8ecef;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
}

.summoner-preview-btn-primary {
    background: #f99b1d;
    border-color: #f99b1d;
    color: #111;
}

.summoner-preview-btn-primary:hover {
    background: #e08a12;
}

.summoner-preview-status {
    margin: 12px 0 16px;
    text-align: center;
    color: #c5ced6;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.summoner-preview-status p {
    margin: 0;
}

.summoner-preview-error {
    color: #ff7a9a !important;
    font-weight: 700;
}

.summoner-preview-hint {
    color: #8b98a5;
    font-size: 0.85rem;
}

.summoner-preview-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #2a3440;
    border-top-color: #f99b1d;
    border-radius: 50%;
    animation: summoner-preview-spin 0.7s linear infinite;
}

@keyframes summoner-preview-spin {
    to { transform: rotate(360deg); }
}

@keyframes summoner-preview-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes summoner-preview-pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
