/* The predictions board (includes/predictions.php, js/predictions.js). Loaded by the
   free picks page and the dashboard's bookmaker page; builds on auth.css colours. */

.pb-wrap {
    --pb-line: #1f3c2d;
    --pb-raised: #10241b;
    --pb-deep: #0b1712;
    --pb-up: #b9e660;
    --pb-down: #ff8a7a;
    --pb-won: #3fbf6a;
    --pb-partial: #f5c542;   /* golden yellow: one of two picks on a ticket won */
    --pb-lost: #e2574c;
    position: relative;
}

.pb-loading-shell {
    height: 540px;
    border: 1px solid var(--pb-line);
    border-radius: 26px;
    background: linear-gradient(180deg, #12291f, var(--pb-deep));
}

.pb {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--pb-line);
    border-radius: 26px;
    background:
        radial-gradient(700px 260px at 50% -40px, rgba(185, 230, 96, 0.14), transparent 70%),
        radial-gradient(500px 300px at 0% 100%, rgba(8, 145, 58, 0.18), transparent 70%),
        linear-gradient(180deg, #12291f 0%, var(--pb-deep) 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.pb-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: none;
    border-radius: 50%;
    background: var(--c, var(--pb-up));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--pb-up)) 22%, transparent);
}

.pb-eyebrow {
    margin: 0 0 4px;
    color: var(--auth-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pb-hint {
    margin: 8px 0 0;
    color: var(--auth-muted);
    font-size: 14px;
}

.pb-hint a {
    color: var(--auth-lime);
}

/* Header and round details */

.pb-head {
    display: flex;
    align-items: center;
    gap: 18px;
}

.pb-brand {
    flex: none;
    padding: 10px 18px;
    border-radius: 14px;
    background: var(--brand-bg);
    color: var(--brand-fg);
    font-size: 22px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.02em;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}

.pb-head__title {
    flex: 1;
    min-width: 0;
}

.pb-head h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.pb-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 10px 16px;
    border: 1px solid var(--pb-line);
    border-radius: 16px;
    background: rgba(11, 23, 18, 0.7);
}

.pb-clock span {
    color: var(--auth-muted);
    font-size: 12px;
}

.pb-clock strong {
    color: var(--auth-lime);
    font-size: 28px;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.pb-clock.is-urgent strong {
    color: #ffcf5c;
}

.pb-clock.is-closed strong {
    color: var(--auth-muted);
}

.pb-meta {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, auto));
    justify-content: start;
    gap: 8px;
    margin: 20px 0 0;
}

.pb-meta > div {
    padding: 8px 14px;
    border: 1px solid var(--pb-line);
    border-radius: 12px;
    background: rgba(11, 23, 18, 0.55);
}

.pb-meta dt {
    color: var(--auth-subtle);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pb-meta dd {
    margin: 2px 0 0;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.pb-copy {
    padding: 0;
    border: 0;
    background: none;
    color: var(--auth-text);
    font: inherit;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}

.pb-copy .bi {
    color: var(--auth-subtle);
    font-size: 12px;
}

.pb-copy.is-copied .bi::before {
    content: "\f26e";
    color: var(--auth-lime);
}

.pb-copy--small {
    color: var(--auth-subtle);
    font-size: 12px;
}

/* Model pickers */

.pb-pickers {
    margin: 22px 0 6px;
}

.pb-toggle {
    position: relative;
    display: inline-flex;
    padding: 5px;
    border: 1px solid var(--pb-line);
    border-radius: 18px;
    background: rgba(11, 23, 18, 0.7);
}

.pb-toggle__option {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: 10px;
    min-width: 170px;
    padding: 10px 18px;
    border: 0;
    border-radius: 14px;
    background: none;
    color: var(--auth-muted);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.pb-toggle__option .pb-dot {
    grid-row: span 2;
}

.pb-toggle__option strong {
    font-size: 17px;
}

.pb-toggle__option small {
    color: var(--auth-subtle);
    font-size: 12px;
}

.pb-toggle__option[aria-checked="true"] {
    color: var(--auth-text);
}

.pb-toggle__option:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.pb-toggle__thumb {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    border: 1px solid rgba(185, 230, 96, 0.45);
    border-radius: 14px;
    background: linear-gradient(180deg, #1d4330, #143024);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, width 0.25s ease;
}

.pb-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 16px;
}

.pb-deck__label {
    margin: 0 0 8px;
    color: var(--auth-subtle);
    font-size: 13px;
}

.pb-deck__label strong {
    margin-right: 6px;
    color: var(--auth-text);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pb-deck__tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pb-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid var(--pb-line);
    border-radius: 16px;
    background: rgba(11, 23, 18, 0.6);
    color: var(--auth-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.pb-tile:hover:not(:disabled) {
    transform: translateY(-2px);
}

.pb-tile[aria-checked="true"] {
    border-color: var(--c);
    background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, transparent), rgba(11, 23, 18, 0.6) 70%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent);
}

.pb-tile:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.pb-tile__top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-tile__top strong {
    font-size: 16px;
}

.pb-tile__top small {
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    color: var(--auth-subtle);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pb-tile__stat {
    color: var(--auth-muted);
    font-size: 13px;
}

.pb-tile__stat em {
    color: var(--auth-text);
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
}

.pb-tile__spark {
    height: 26px;
}

.pb-markets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.pb-market-chip {
    padding: 8px 14px;
    border: 1px solid var(--pb-line);
    border-radius: 999px;
    background: transparent;
    color: var(--auth-muted);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.pb-market-chip em {
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--auth-lime);
    color: #0b1712;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.pb-market-chip[aria-checked="true"] {
    border-color: var(--auth-lime);
    background: var(--auth-pill);
    color: var(--auth-text);
}

/* The match card */

.pb-stage {
    position: relative;
    margin: 18px 0 0;
    padding: 26px 20px 18px;
    border: 1px solid var(--pb-line);
    border-radius: 22px;
    background:
        radial-gradient(420px 180px at 50% 0%, rgba(255, 255, 255, 0.07), transparent 70%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 60px, transparent 60px 120px),
        linear-gradient(180deg, #153826, #0f2a1d);
    min-height: 330px;
}

.pb-stage::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.pb-match {
    position: relative;
    display: grid;
    grid-template-columns: 1fr minmax(170px, 220px) 1fr;
    align-items: center;
    gap: 12px;
    animation: pb-in 0.35s ease;
}

@keyframes pb-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.pb-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    text-align: center;
}

.pb-jersey {
    display: block;
    width: min(200px, 100%);
    height: auto;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.4));
}

.pb-team figcaption strong {
    display: block;
    font-size: 19px;
}

.pb-team figcaption span {
    color: var(--auth-subtle);
    font-size: 13px;
}

.pb-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.pb-market {
    padding: 12px 22px;
    border-radius: 14px;
    background: linear-gradient(180deg, #1aa14a, #0d7a35);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(8, 145, 58, 0.35);
}

.pb-odds {
    color: var(--auth-lime);
    font-size: 18px;
    font-weight: 700;
}

.pb-ring {
    display: grid;
    place-items: center;
    align-content: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, #10241b 79%, transparent 80% 100%),
        conic-gradient(var(--auth-lime) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0);
}

.pb-ring strong {
    font-size: 22px;
    line-height: 1;
}

.pb-ring small {
    color: var(--auth-subtle);
    font-size: 11px;
}

.pb-matchno {
    color: var(--auth-muted);
    font-size: 13px;
}

.pb-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.pb-page {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--pb-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--auth-muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.pb-page.is-on {
    border-color: var(--auth-lime);
    background: var(--auth-lime);
    color: #0b1712;
}

.pb-arrow {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--auth-muted);
    cursor: pointer;
}

.pb-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.pb-pager__label {
    flex-basis: 100%;
    color: var(--auth-subtle);
    font-size: 13px;
    text-align: center;
}

.pb-reason {
    max-width: 640px;
    margin: 14px auto 0;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(11, 23, 18, 0.55);
    color: #cfdcd3;
    font-size: 15px;
    text-align: center;
}

.pb-reason .bi {
    color: var(--auth-lime);
}

.pb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 280px;
    padding: 20px;
    color: var(--auth-muted);
    text-align: center;
}

.pb-empty > .bi {
    color: var(--auth-lime);
    font-size: 34px;
}

.pb-empty.is-warn > .bi {
    color: #ffcf5c;
}

.pb-empty p {
    max-width: 460px;
    margin: 0;
}

.pb-empty a {
    color: var(--auth-lime);
}

.pb-empty__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pb-cta {
    display: inline-block;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--auth-lime);
    color: #0b1712 !important;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.pb-cta--ghost {
    border: 1px solid var(--pb-line);
    background: transparent;
    color: var(--auth-text) !important;
}

.pb-match.is-loading .pb-center p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 14px;
}

.pb-ghost-shirt {
    width: min(180px, 80%);
    aspect-ratio: 1;
    border-radius: 30% 30% 18% 18%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    background-size: 200% 100%;
    animation: pb-shimmer 1.2s linear infinite;
}

@keyframes pb-shimmer {
    to { background-position: -200% 0; }
}

.pb-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--pb-line);
    border-top-color: var(--auth-lime);
    border-radius: 50%;
    animation: pb-spin 0.8s linear infinite;
}

@keyframes pb-spin {
    to { transform: rotate(360deg); }
}

/* Stake and record */

.pb-lower {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.pb-panel {
    padding: 20px;
    border: 1px solid var(--pb-line);
    border-radius: 20px;
    background: rgba(11, 23, 18, 0.6);
}

.pb-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.pb-panel__head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 17px;
}

.pb-panel__head .pb-hint {
    margin: 0;
}

.pb-seg {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--pb-line);
    border-radius: 12px;
    background: var(--pb-deep);
}

.pb-seg button {
    padding: 7px 14px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--auth-muted);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.pb-seg button[aria-checked="true"] {
    background: #1a7f3c;
    color: #fff;
    font-weight: 600;
}

.pb-money {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--pb-line);
    border-radius: 14px;
    background: var(--pb-deep);
}

.pb-money:focus-within {
    border-color: var(--auth-lime);
}

.pb-money span {
    color: var(--auth-subtle);
    font-size: 20px;
}

.pb-money input {
    width: 100%;
    height: 52px;
    border: 0;
    outline: 0;
    background: none;
    color: var(--auth-text);
    font: inherit;
    font-size: 24px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 14px;
}

.pb-chips button {
    padding: 6px 12px;
    border: 1px solid var(--pb-line);
    border-radius: 999px;
    background: none;
    color: var(--auth-muted);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.pb-chips button:hover {
    border-color: var(--auth-lime);
    color: var(--auth-text);
}

.pb-calc,
.pb-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
}

.pb-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 12px;
}

.pb-calc > div,
.pb-stats > div {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.pb-calc dt,
.pb-stats dt {
    color: var(--auth-subtle);
    font-size: 12px;
}

.pb-calc dd,
.pb-stats dd {
    margin: 2px 0 0;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.is-up {
    color: var(--pb-up);
}

.is-down {
    color: var(--pb-down);
}

.pb-allowances {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--pb-line);
}

.pb-allowances div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    font-size: 13px;
}

.pb-allowances span {
    color: var(--auth-muted);
}

.pb-allowances i {
    grid-column: span 2;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--auth-lime) var(--w), rgba(255, 255, 255, 0.08) var(--w));
}

.pb-rate {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: 10px;
}

.pb-rate strong {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
}

.pb-rate span {
    color: var(--auth-muted);
}

.pb-spark {
    display: block;
    width: 100%;
    height: 44px;
    margin-top: 12px;
}

.pb-spark--tile {
    height: 26px;
    margin: 0;
}

.pb-zero {
    stroke: rgba(255, 255, 255, 0.18);
    stroke-dasharray: 4 4;
}

.pb-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pb-history-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border: 1px solid var(--pb-line);
    border-radius: 999px;
    background: linear-gradient(180deg, #1d3a2b, #142a1f);
    color: var(--auth-text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.pb-history-button:hover {
    border-color: var(--auth-lime);
}

.pb-history-button .bi {
    color: var(--auth-lime);
}

/* Previous predictions */

.pb-locked {
    overflow: hidden;
}

.pb-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 16px;
    overflow-y: auto;
    background: rgba(3, 10, 7, 0.78);
    backdrop-filter: blur(6px);
}

.pb-modal[hidden] {
    display: none;
}

.pb-modal__panel {
    width: 100%;
    max-width: 1040px;
    padding: 26px;
    border: 1px solid var(--pb-line);
    border-radius: 24px;
    background: linear-gradient(180deg, #12291f, var(--pb-deep));
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.pb-modal__panel.is-entering {
    animation: pb-in 0.25s ease;
}

.pb-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.pb-modal__head h2 {
    margin: 0;
    font-size: 26px;
}

.pb-live {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0;
    color: var(--auth-muted);
    font-size: 13px;
}

.pb-live__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5d5d;
    animation: pb-pulse 1.6s ease-in-out infinite;
}

@keyframes pb-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 93, 93, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(255, 93, 93, 0); }
}

.pb-close {
    width: 40px;
    height: 40px;
    flex: none;
    border: 1px solid var(--pb-line);
    border-radius: 50%;
    background: none;
    color: var(--auth-text);
    cursor: pointer;
}

.pb-hctrl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0;
}

.pb-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pb-legend button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--pb-line);
    border-radius: 999px;
    background: none;
    color: var(--auth-text);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.pb-legend button[aria-pressed="false"] {
    color: var(--auth-subtle);
    text-decoration: line-through;
    opacity: 0.6;
}

.pb-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.pb-kpi {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px;
    border: 1px solid var(--pb-line);
    border-top: 3px solid var(--c);
    border-radius: 16px;
    background: rgba(11, 23, 18, 0.6);
    font-size: 13px;
}

.pb-kpi p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 600;
}

.pb-kpi strong {
    font-size: 30px;
    font-weight: 800;
}

.pb-kpi > span {
    color: var(--auth-muted);
}

.pb-kpi > span.is-up {
    color: var(--pb-up);
}

.pb-kpi > span.is-down {
    color: var(--pb-down);
}

.pb-kpi.is-muted {
    opacity: 0.45;
}

.pb-chart {
    position: relative;
    margin-top: 18px;
    padding: 12px 8px 4px;
    border: 1px solid var(--pb-line);
    border-radius: 18px;
    background: rgba(11, 23, 18, 0.6);
}

.pb-chart svg {
    display: block;
    overflow: visible;
}

.pb-grid {
    stroke: rgba(255, 255, 255, 0.06);
}

.pb-axis {
    fill: var(--auth-subtle);
    font-size: 11px;
}

.pb-cursor {
    stroke: rgba(255, 255, 255, 0.35);
    stroke-dasharray: 3 3;
}

.pb-endpoint {
    stroke: #0b1712;
    stroke-width: 2;
}

.pb-chart__empty {
    padding: 70px 20px;
    color: var(--auth-muted);
    text-align: center;
}

.pb-tip {
    position: absolute;
    top: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 170px;
    padding: 10px 12px;
    border: 1px solid var(--pb-line);
    border-radius: 12px;
    background: rgba(8, 18, 13, 0.95);
    font-size: 13px;
    transform: translateX(-50%);
    pointer-events: none;
}

.pb-tip[hidden] {
    display: none;
}

.pb-tip span {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.pb-tip small {
    flex-basis: 100%;
    padding-left: 15px;
    color: var(--auth-subtle);
}

.pb-ticks {
    display: grid;
    gap: 8px;
    margin: 16px 0 6px;
}

.pb-ticks__row {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.pb-ticks__row > span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-ticks__row > div {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.pb-ticks i {
    width: 10px;
    height: 18px;
    border-radius: 3px;
}

.pb-ticks i.is-won {
    background: #3fbf6a;
}

.pb-ticks i.is-lost {
    background: #e2574c;
}

.pb-ticks i.is-partial {
    background: var(--pb-partial);
}

.pb-ticks em {
    color: var(--auth-subtle);
    font-style: normal;
}

.pb-rounds {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.pb-round {
    padding: 14px;
    border: 1px solid var(--pb-line);
    border-radius: 16px;
    background: rgba(11, 23, 18, 0.6);
}

.pb-round header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.pb-round header span {
    color: var(--auth-subtle);
}

.pb-round__model + .pb-round__model {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--pb-line);
}

.pb-round__name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.pb-round ul {
    display: grid;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.pb-round li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.pb-mini {
    display: flex;
}

.pb-mini .pb-jersey {
    width: 26px;
    filter: none;
}

.pb-mini .pb-jersey + .pb-jersey {
    margin-left: -6px;
}

.pb-round__teams small {
    display: block;
    color: var(--auth-subtle);
    font-size: 12px;
}

.pb-pill {
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pb-pill.is-won {
    background: rgba(185, 230, 96, 0.14);
    color: var(--auth-lime);
}

.pb-pill.is-lost {
    background: rgba(255, 107, 94, 0.14);
    color: #ffb4ab;
}

.pb-pill.is-partial {
    background: rgba(245, 197, 66, 0.16);
    color: var(--pb-partial);
}

.pb-noscript {
    padding: 20px;
    color: var(--auth-muted);
}

/* Phones and tablets */

/* Bets: pick 1, pick 2, or both picks on one ticket */

.pb-wrap .is-won {
    color: var(--pb-won);
}

.pb-wrap .is-partial {
    color: var(--pb-partial);
}

.pb-wrap .is-lost {
    color: var(--pb-lost);
}

.pb-calc .is-won dd {
    color: var(--pb-up);
}

.pb-calc .is-partial dd {
    color: var(--pb-partial);
}

.pb-calc .is-won dt,
.pb-calc .is-partial dt {
    color: var(--auth-subtle);
}

.pb-calc dd small {
    display: block;
    color: var(--auth-subtle);
    font-size: 12px;
    font-weight: 500;
}

.pb-calc .is-partial {
    box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.35);
}

.pb-bet-tag {
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--auth-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

.pb-outcomes {
    display: flex;
    grid-column: span 2;
    height: 8px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.pb-outcomes b.is-won {
    background: var(--pb-won);
}

.pb-outcomes b.is-partial {
    background: var(--pb-partial);
}

.pb-outcomes b.is-lost {
    background: var(--pb-lost);
}

.pb-kpi .pb-outcomes {
    height: 6px;
    margin: 4px 0;
}

.pb-counts {
    font-size: 15px;
}

.pb-kpi .pb-counts {
    font-size: 13px;
}

.pb-kpi p .pb-bet-tag {
    margin-left: auto;
}

.pb-bet-note {
    margin: -6px 0 18px;
    padding: 10px 14px;
    border-left: 3px solid var(--auth-lime);
    border-radius: 0 12px 12px 0;
    background: rgba(255, 255, 255, 0.04);
    color: #cfdcd3;
    font-size: 14px;
}

.pb-seg--bet button[aria-checked="true"] {
    background: var(--auth-lime);
    color: #0b1712;
}

.pb-chart-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0 -8px;
}

.pb-chart-head p {
    margin: 0;
    font-size: 15px;
}

.pb-key {
    display: flex;
    gap: 14px;
    font-size: 13px;
}

.pb-key span::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: -1px;
}

.pb-line-label {
    font-size: 12px;
    font-weight: 700;
}

.pb-tip .pb-bet-tag {
    align-self: flex-start;
}

.pb-tip small b {
    font-weight: 700;
}

.pb-ticks__row small {
    color: var(--auth-subtle);
    font-size: 11px;
}

.pb-pickno {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--auth-muted);
    font-size: 11px;
    font-weight: 700;
}

.pb-round li {
    grid-template-columns: auto auto 1fr auto;
}

.pb-round li.is-faded {
    opacity: 0.4;
}

.pb-round__name .pb-pill {
    margin-left: auto;
}

@media (max-width: 960px) {
    .pb-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pb-lower {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pb {
        padding: 18px 14px;
        border-radius: 20px;
    }

    .pb-head {
        flex-wrap: wrap;
        gap: 12px;
    }

    .pb-brand {
        font-size: 18px;
    }

    .pb-head__title {
        flex-basis: calc(100% - 140px);
    }

    .pb-clock {
        flex-basis: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .pb-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pb-meta dd {
        white-space: normal;
    }

    .pb-toggle {
        display: flex;
    }

    .pb-toggle__option {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
    }

    .pb-stage {
        padding: 18px 8px 14px;
    }

    .pb-match {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "home away" "center center";
    }

    .pb-match > .pb-team:first-child {
        grid-area: home;
    }

    .pb-match > .pb-team:last-child {
        grid-area: away;
    }

    .pb-center {
        grid-area: center;
    }

    .pb-jersey {
        width: min(140px, 100%);
    }

    .pb-team figcaption strong {
        font-size: 16px;
    }

    .pb-calc {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .pb-calc dd,
    .pb-stats dd {
        font-size: 16px;
    }

    .pb-modal {
        padding: 0;
    }

    .pb-modal__panel {
        min-height: 100%;
        padding: 18px 14px;
        border-radius: 0;
    }

    .pb-ticks__row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pb-match,
    .pb-modal__panel.is-entering,
    .pb-ghost-shirt,
    .pb-live__dot {
        animation: none;
    }

    .pb-toggle__thumb {
        transition: none;
    }
}
