/* Player ID field with a "?" help popup showing where to find it in Hero Wars */
.pid-group { position: relative; z-index: 50; }   /* keep the popup above the fields and buttons below */
.pid-group input { padding-right: 48px !important; }
.pid-help {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    font: 800 14px/1 Inter, Arial, sans-serif; cursor: help; user-select: none;
    color: #111; background: #fbbf24; box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3);
    z-index: 5;
}
.pid-help:focus { outline: 2px solid #fff; outline-offset: 2px; }
.pid-tip {
    position: absolute; right: -8px; top: calc(100% + 12px); width: 280px; max-width: 80vw;
    padding: 12px; border-radius: 12px; text-align: left; cursor: default;
    font: 500 12.5px/1.45 Inter, Arial, sans-serif; color: #e5e7eb;
    background: #15120f; border: 1px solid rgba(251, 191, 36, 0.55); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.pid-tip b { color: #fde68a; }
.pid-tip > b:first-child { display: block; font-size: 13.5px; margin-bottom: 4px; }
.pid-tip img { display: block; width: 100%; height: auto; margin-top: 8px; border-radius: 8px; }
.pid-tip::after {
    content: ''; position: absolute; right: 14px; bottom: 100%;
    border: 8px solid transparent; border-bottom-color: rgba(251, 191, 36, 0.55);
}
.pid-help:hover .pid-tip, .pid-help:focus .pid-tip, .pid-help:focus-within .pid-tip {
    opacity: 1; visibility: visible; transform: translateY(0);
}
@media (max-width: 520px) {
    .pid-tip { position: fixed; left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -46%); width: 88vw; }
    .pid-help:hover .pid-tip, .pid-help:focus .pid-tip, .pid-help:focus-within .pid-tip { transform: translate(-50%, -50%); }
    .pid-tip::after { display: none; }
}

/* Sign-up avatar picker: 12 hero icons in three even rows of 4 */
#avatar-grid { max-width: 226px; margin: 0 auto; }
