/**
 * Pro feature prompt (partials/pro-feature-prompt) + the lock marks on locked features.
 * Self-contained: boards on the v2 shell don't load score-keeper/base.css. Brand palette
 * only — brand blue #2ba8ff / #0066cc for the Season Pass ticket, ink for Pro.
 */

/* ---------- Overlay + card ---------- */
.pfg-overlay {
    position: fixed;
    inset: 0;
    z-index: 9950; /* above board modals (9900) and the trial banner; below the trial wall (10600) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.pfg-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pfg-overlay[hidden] {
    display: none !important;
}

.pfg-overlay .score-modal-backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.pfg-modal {
    --pfg-card: var(--bg-primary, #ffffff);
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 1.6rem 1.25rem 1.25rem;
    border-radius: 18px;
    background: var(--pfg-card);
    color: var(--text-primary, #0a0a0a);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35), 0 2px 6px rgba(2, 6, 23, 0.15);
    text-align: center;
    transform: translateY(8px) scale(0.98);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pfg-overlay.active .pfg-modal {
    transform: none;
}

.pfg-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary, #6c757d);
    cursor: pointer;
}

.pfg-close:hover {
    background: var(--bg-tertiary, #e9ecef);
    color: var(--text-primary, #0a0a0a);
}

.pfg-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(43, 168, 255, 0.12);
    color: #2ba8ff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pfg-message {
    margin: 0.8rem 0.5rem 1.15rem;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-primary, #0a0a0a);
}

.pfg-actions {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* ---------- Season Pass ticket ---------- */
.pfg-ticket {
    --notch: 9px;
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 84px;
    border-radius: 12px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
        linear-gradient(135deg, #2ba8ff 0%, #0066cc 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 102, 204, 0.32);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pfg-ticket:hover,
.pfg-ticket:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 102, 204, 0.4);
    color: #ffffff;
}

.pfg-ticket:focus-visible,
.pfg-pro:focus-visible {
    outline: 3px solid rgba(43, 168, 255, 0.55);
    outline-offset: 3px;
}

.pfg-ticket-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.8rem 0.9rem 0.8rem 1rem;
    min-width: 0;
}

.pfg-ticket-kicker {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
}

.pfg-ticket-kicker i {
    margin-right: 0.2rem;
}

.pfg-ticket-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.pfg-ticket-meta {
    font-size: 0.74rem;
    opacity: 0.85;
}

/* Stub: perforated edge with a notch top and bottom, cut in the card's colour. */
.pfg-ticket-stub {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.7rem 0.85rem;
    border-left: 2px dashed rgba(255, 255, 255, 0.55);
    text-align: center;
}

.pfg-ticket-stub::before,
.pfg-ticket-stub::after {
    content: '';
    position: absolute;
    left: calc(var(--notch) * -1 - 1px);
    width: calc(var(--notch) * 2);
    height: calc(var(--notch) * 2);
    border-radius: 50%;
    background: var(--pfg-card);
}

.pfg-ticket-stub::before { top: calc(var(--notch) * -1); }
.pfg-ticket-stub::after { bottom: calc(var(--notch) * -1); }

.pfg-ticket-price {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.pfg-ticket-cta {
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.pfg-ticket-cta i {
    font-size: 0.6rem;
    margin-left: 0.15rem;
}

/* ---------- "or" divider ---------- */
.pfg-or {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.75rem 0.25rem;
    color: var(--text-tertiary, #adb5bd);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pfg-or::before,
.pfg-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color, #dee2e6);
}

/* ---------- Sign up for Pro ---------- */
.pfg-pro {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #0a0a0a 0%, #1f2937 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* A light sweep across the button on hover. */
.pfg-pro::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s ease;
    pointer-events: none;
}

.pfg-pro:hover,
.pfg-pro:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.36);
    color: #ffffff;
}

.pfg-pro:hover::after {
    left: 120%;
}

.pfg-pro-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(43, 168, 255, 0.16);
    color: #2ba8ff;
    font-size: 0.95rem;
}

.pfg-pro-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.pfg-pro-text strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.pfg-pro-text small {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.65);
}

.pfg-pro-arrow {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.15s ease;
}

.pfg-pro:hover .pfg-pro-arrow {
    transform: translateX(3px);
}

/* ---------- Just today's game? (the 24-Hour Day Pass, partials/day-pass/offer card) ---------- */
.pfg-day {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.6rem;
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    border: 2px solid #2ba8ff;
    background: var(--pfg-card);
    color: var(--text-primary, #0a0a0a);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pfg-day:hover,
.pfg-day:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 102, 204, 0.22);
    color: var(--text-primary, #0a0a0a);
}

.pfg-day:focus-visible {
    outline: 3px solid rgba(43, 168, 255, 0.55);
    outline-offset: 3px;
}

.pfg-day-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(43, 168, 255, 0.12);
    color: #0066cc;
    font-size: 0.95rem;
}

.pfg-day-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.pfg-day-text strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.pfg-day-text small {
    font-size: 0.74rem;
    color: var(--text-secondary, #6c757d);
}

.pfg-day-arrow {
    font-size: 0.8rem;
    color: #2ba8ff;
    transition: transform 0.15s ease;
}

.pfg-day:hover .pfg-day-arrow {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .pfg-overlay,
    .pfg-modal,
    .pfg-ticket,
    .pfg-pro,
    .pfg-pro::after,
    .pfg-pro-arrow,
    .pfg-day,
    .pfg-day-arrow {
        transition: none;
    }
}

/* ---------- Lock marks on locked controls ---------- */
.pfg-lock {
    font-size: 0.7em;
    margin-left: 0.3em;
    opacity: 0.75;
}

[data-pro-locked] {
    cursor: pointer;
}

/* Locked shooting row: the values are hidden, the row reads as one tappable Pro control. */
.team-shot-stats.is-pro-locked .shot-stat-value {
    opacity: 0.45;
}

/* Locked shot clock on the board: a dimmed 24 with a lock. */
.shot-clock-container.is-pro-locked .shot-clock {
    opacity: 0.35;
}

.shot-clock-container.is-pro-locked .shot-clock-lock {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2ba8ff;
}

/* Football play-log pop-up: the player / play type / note fields, locked (the yards stay live). */
.play-log-pro-fields.is-pro-locked {
    position: relative;
    margin: 0 0 0.5rem;
    padding: 0.5rem 0.6rem 0.25rem;
    border-radius: 10px;
    border: 1px dashed rgba(43, 168, 255, 0.45);
}

.play-log-pro-fields.is-pro-locked > .pfg-badge {
    margin-bottom: 0.35rem;
}

.play-log-pro-fields.is-pro-locked .play-log-field,
.play-log-pro-fields.is-pro-locked .play-log-actions {
    opacity: 0.45;
    pointer-events: none; /* taps land on the wrapper, which opens the Pro prompt */
}

/* Locked pop-ups (basketball fouls, football scores): the Pro message in place of the player fields. */
.pfg-inline,
.foul-attrib-locked {
    --pfg-card: var(--bg-primary, #ffffff);
    text-align: center;
    padding: 0.25rem 0 0.5rem;
}

.pfg-inline .pfg-message,
.foul-attrib-locked .pfg-message {
    margin-top: 0.6rem;
}

.pfg-inline .pfg-inline-continue,
.foul-attrib-locked .foul-team-foul-btn {
    margin-top: 0.9rem;
}
