/* ── Overlay ─────────────────────────────────────────────────────── */
#pcv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
}
#pcv-overlay.pcv-visible {
    display: flex;
}

/* ── Modal Box ───────────────────────────────────────────────────── */
#pcv-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 340px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    animation: pcv-pop 0.22s ease;
}
@keyframes pcv-pop {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* ── Header ──────────────────────────────────────────────────────── */
#pcv-modal-header {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 16px 20px;
    text-transform: uppercase;
}

/* ── Body ────────────────────────────────────────────────────────── */
#pcv-modal-body {
    padding: 28px 24px 22px;
    text-align: center;
}

/* ── Spinner ─────────────────────────────────────────────────────── */
.pcv-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #f0e8d8;
    border-top-color: #f5a623;
    border-radius: 50%;
    animation: pcv-spin 0.7s linear infinite;
    margin: 0 auto 14px;
}
@keyframes pcv-spin {
    to { transform: rotate(360deg); }
}
.pcv-checking {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* ── Icon ────────────────────────────────────────────────────────── */
.pcv-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-weight: 700;
}
.pcv-icon-ok  { background: #e8f8ee; color: #27ae60; }
.pcv-icon-err { background: #fdecea; color: #e74c3c; }

/* ── Player name ─────────────────────────────────────────────────── */
.pcv-player-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
    word-break: break-word;
}
.pcv-sub {
    font-size: 13px;
    color: #999;
    margin: 0 0 20px;
}

/* ── Error message ───────────────────────────────────────────────── */
.pcv-error-msg {
    font-size: 15px;
    color: #e74c3c;
    margin: 0 0 20px;
    font-weight: 600;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
#pcv-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 4px;
}
#pcv-modal-actions button {
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    min-width: 100px;
}
#pcv-modal-actions button:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}
#pcv-confirm {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: #fff;
}
#pcv-cancel {
    background: #2c2c2c;
    color: #fff;
}
