/* PoolPlayer Perks (PPP) Set / Unset popup -- shared by the v1 pages that show
   the badge (player.aspx, tournament-bracket.aspx); built by scripts/ppp-v1.js.

   Styled to match the v2 pages' popups (sub-tournament-new's .greyout +
   .stn-modal, Jason 2026-11-10): frosted-glass backdrop, card, v2 buttons and
   Google Sans (loaded for EAs by PoolPlayerPerksService.V1Includes). The v1
   pages have no theme tokens and no dark mode, so these are the v2 LIGHT
   values written out: --card #fcfcfd, --foreground #1c2024, --border #d9d9e0,
   --radius 8px; buttons as .sg-btn-primary / -secondary in sg-bridge.css.
   Deliberately NOT v1's .greyout / .button30 classes, which would restyle it.

   The badge's own size and colours stay with each page (the player page uses
   fixed colours, the bracket follows each tournament's colour scheme); this
   file loads later, so a badge size here would win. */
.ppp-greyout[hidden], .ppp-popup[hidden], .ppp-popup [hidden] { display: none; }

.ppp-greyout {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(20, 28, 48, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ppp-popup {
    position: fixed;
    z-index: 501;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 32px);
    max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-sizing: border-box;
    background: #fcfcfd;
    color: #1c2024;
    border: 1px solid #d9d9e0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    padding: 22px 26px;
    text-align: left;
    font-family: "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.45;
}
.ppp-popup-title { margin: 0 0 16px; font-size: 1.2em; font-weight: 700; }
/* The v2 name and question are <p>s; these are their margins (they collapse
   the same way), so the spacing matches. */
.ppp-popup-who { font-weight: 700; margin: 16px 0 4px; }
.ppp-popup-prompt { margin: 16px 0; }
.ppp-popup-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.ppp-popup-msg { margin-top: 14px; text-align: center; font-weight: 600; }

.ppp-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 4px;
    border: 0;
    /* No font-family, on purpose: .sg-btn sets none either, so v2 buttons render
       in the browser's default button font (Arial), not Google Sans. Matched. */
    font-size: 1em;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
}
.ppp-btn-primary { background: #5a678b; color: #fff; }
.ppp-btn-primary:hover { background: #4a5775; }
.ppp-btn-secondary { background: #ddd; color: #333; }
.ppp-btn-secondary:hover { background: #ccc; }
.ppp-btn:disabled { opacity: .6; cursor: default; }
/* Popup opened by mouse: no ring on the auto-focused button (see ppp-v1.js open()). */
.ppp-popup.ppp-mouse .ppp-btn:focus { outline: none; }
