/* ——— PB emotional design tokens ——— */
:root {
    --pb-font-sans: "Poppins", sans-serif;

    /* Brand palette */
    --pb-emotion-navy: #0a1628;
    --pb-emotion-navy-mid: #0f2140;
    --pb-emotion-navy-text: #0f2942;
    --pb-emotion-purple: #5b4a9e;
    --pb-emotion-purple-light: #7c6bc4;
    --pb-emotion-lime: #d4f94c;
    --pb-emotion-lime-dark: #b8e030;
    --pb-emotion-green: #2d8a5e;
    --pb-emotion-green-mid: #256b4a;
    --pb-emotion-green-deep: #1e563c;
    --pb-emotion-green-bright: #3d9e3d;
    --pb-emotion-green-soft: #f0faf4;
    --pb-emotion-green-muted: #4a7c66;

    /* Shared surfaces & motion */
    --pb-emotion-radius-pill: 999px;
    --pb-emotion-radius-lg: 20px;
    --pb-emotion-shadow: 0 24px 64px rgba(15, 41, 66, 0.22);
    --pb-emotion-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
    --pb-emotion-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

    /* Dark-mode nav (inspo palette — retained) */
    --pb-dark-nav-bg-top: #0c1528;
    --pb-dark-nav-bg-bottom: #060b14;
    --pb-dark-nav-border: rgba(72, 196, 255, 0.45);
    --pb-dark-nav-border-soft: rgba(72, 196, 255, 0.08);
    --pb-dark-nav-glow: rgba(125, 211, 252, 0.95);
    --pb-dark-nav-glow-spread: rgba(56, 189, 248, 0.12);
    --pb-dark-nav-active-bg: rgba(37, 99, 235, 0.42);
    --pb-dark-nav-active-ring: rgba(125, 211, 252, 0.18);
    --pb-dark-nav-indicator-start: #38bdf8;
    --pb-dark-nav-indicator-end: #60a5fa;
    --pb-dark-nav-text: rgba(255, 255, 255, 0.82);
    --pb-dark-nav-text-active: #ffffff;
    --pb-dark-nav-scrim: rgba(6, 11, 20, 0.88);

    /* Light-mode nav (emotional green — attendance / winner family) */
    --pb-light-nav-bg-top: #ffffff;
    --pb-light-nav-bg-bottom: var(--pb-emotion-green-soft);
    --pb-light-nav-border: rgba(45, 138, 94, 0.38);
    --pb-light-nav-border-soft: rgba(45, 138, 94, 0.1);
    --pb-light-nav-glow: rgba(61, 158, 61, 0.72);
    --pb-light-nav-glow-spread: rgba(45, 138, 94, 0.14);
    --pb-light-nav-active-bg: rgba(45, 138, 94, 0.14);
    --pb-light-nav-active-ring: rgba(45, 138, 94, 0.28);
    --pb-light-nav-indicator-start: var(--pb-emotion-green);
    --pb-light-nav-indicator-end: var(--pb-emotion-green-bright);
    --pb-light-nav-text: var(--pb-emotion-green-muted);
    --pb-light-nav-text-active: var(--pb-emotion-green-deep);
    --pb-light-nav-scrim: rgba(255, 255, 255, 0.94);
}

.pb-pickleball-icon {
    width: 1em;
    height: 1em;
    display: block;
    flex-shrink: 0;
}

#pb-courts-wrapper {
    max-width: 100%;
    margin: 0 auto;
    font-family: var(--pb-font-sans);
}

/* Header (tournament / shared) */
.pb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.badge {
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 50%;
    font-weight: bold;
}

.pb-empty,
.pb-empty-msg {
    padding: 20px;
    text-align: center;
    color: #777;
}

.pb-empty-msg {
    font-style: italic;
    background: #fafafa;
    border-radius: 12px;
    border: 2px dashed #eee;
}

/* Controls */
.pb-controls {
    margin-top: 20px;
    text-align: right;
}

/* ——— Waiting list (frontend) ——— */
.pb-queue {
    max-width: 720px;
    margin: 0 auto 40px;
    font-family: var(--pb-font-sans);
}

.pb-queue-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.pb-queue-eyebrow {
    display: inline-block;
    margin: 0 0 6px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5b4a9e;
    background: #f0ecfa;
    border-radius: 999px;
}

.pb-queue-hero h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f2942;
}

.pb-queue-hero-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
}

.pb-queue-hero-text {
    position: relative;
    min-width: 0;
}

#pb-queue-wrapper button.pb-queue-available-eye[type="button"],
.pb-queue button.pb-queue-available-eye[type="button"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e8ecf0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #0f2942 !important;
    box-shadow: 0 2px 8px rgba(15, 41, 66, 0.06) !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

#pb-queue-wrapper button.pb-queue-available-eye[type="button"]:hover,
#pb-queue-wrapper button.pb-queue-available-eye[type="button"]:focus-visible,
.pb-queue button.pb-queue-available-eye[type="button"].is-open {
    background: #f0fdf4 !important;
    border-color: #6ee7b7 !important;
    color: #047857 !important;
    outline: none !important;
}

#pb-queue-wrapper button.pb-queue-available-eye[type="button"].is-loading {
    opacity: 0.7;
    cursor: wait !important;
}

.pb-queue-available-eye__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    line-height: 0;
}

.pb-queue-available-eye__icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.pb-queue-available-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    width: min(340px, calc(100vw - 32px));
    max-height: min(360px, 55vh);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 41, 66, 0.14);
    overflow: hidden;
}

.pb-queue-available-panel[hidden] {
    display: none !important;
}

.pb-queue-available-panel__head {
    padding: 12px 14px 10px;
    border-bottom: 1px solid #eef2f6;
    background: #f8fafb;
}

.pb-queue-available-panel__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f2942;
}

.pb-queue-available-panel__sub {
    margin: 4px 0 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #6b7c8d;
}

.pb-queue-available-panel__search-wrap {
    flex: 0 0 auto;
    padding: 10px 12px 8px;
    border-bottom: 1px solid #eef2f6;
    background: #ffffff;
}

.pb-queue-available-panel__search {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 12px;
    border: 1.5px solid #d8e0e8 !important;
    border-radius: 8px;
    font-family: var(--pb-font-sans, "Poppins", sans-serif);
    font-size: 0.85rem;
    line-height: 1.3;
    color: #0f2942 !important;
    background: #f8fafb !important;
    background-image: none !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.pb-queue-available-panel__search:focus,
.pb-queue-available-panel__search:focus-visible {
    border-color: #2d8a5e !important;
    box-shadow: 0 0 0 3px rgba(45, 138, 94, 0.15) !important;
}

.pb-queue-available-panel__search:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.pb-queue-available-panel__body {
    overflow: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.pb-queue-available-panel__status {
    margin: 0;
    padding: 14px 16px;
    font-size: 0.88rem;
    line-height: 1.4;
    color: #5a6b7d;
}

.pb-queue-available-panel__status--error {
    color: #856404;
}

.pb-queue-available-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pb-queue-available-panel__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f4f7;
}

.pb-queue-available-panel__item:last-child {
    border-bottom: none;
}

.pb-queue-available-panel__item.is-next {
    background: rgba(45, 138, 94, 0.06);
}

#pb-queue-in-queue-panel .pb-queue-available-panel__item {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.pb-queue-available-panel__pos {
    flex: 0 0 auto;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    border-radius: 999px;
    background: #5b4a9e;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.pb-queue-available-panel__item.is-next .pb-queue-available-panel__pos {
    background: #2d8a5e;
}

.pb-queue-available-panel__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.pb-queue-available-panel__name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f2942;
}

.pb-queue-available-panel__meta {
    font-size: 0.76rem;
    color: #6b7c8d;
}

#pb-queue-in-queue-panel button.pb-queue-available-panel__goto,
#pb-queue-in-queue-panel button.pb-queue-available-panel__goto:link,
#pb-queue-in-queue-panel button.pb-queue-available-panel__goto:visited {
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid #d8e0e8 !important;
    border-radius: 10px;
    background: #f4f7fa !important;
    background-image: none !important;
    color: #5b4a9e !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#pb-queue-in-queue-panel button.pb-queue-available-panel__goto:hover,
#pb-queue-in-queue-panel button.pb-queue-available-panel__goto:focus-visible {
    background: #5b4a9e !important;
    border-color: #5b4a9e !important;
    color: #ffffff !important;
    outline: none;
}

#pb-queue-in-queue-panel .pb-queue-available-panel__goto-icon,
#pb-queue-in-queue-panel .pb-queue-available-panel__goto-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

#pb-queue-in-queue-panel .pb-queue-available-panel__goto-icon svg,
#pb-queue-in-queue-panel .pb-queue-available-panel__goto-icon path {
    fill: none;
    stroke: currentColor !important;
}

.pb-queue-card.is-locate-flash {
    outline: 2px solid #2d8a5e;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(45, 138, 94, 0.22), 0 10px 32px rgba(15, 41, 66, 0.14);
    animation: pb-queue-locate-flash 1.4s ease;
}

@keyframes pb-queue-locate-flash {
    0%,
    100% {
        outline-color: #2d8a5e;
    }
    50% {
        outline-color: #5b4a9e;
    }
}

.pb-queue-intro {
    margin: 0;
    max-width: 480px;
    font-size: 1rem;
    line-height: 1.5;
    color: #5a6b7d;
}

.pb-queue-summary {
    display: flex;
    gap: 12px;
    position: relative;
}

.pb-queue-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 88px;
    padding: 12px 18px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 41, 66, 0.08);
    position: relative;
}

.pb-queue-stat__row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pb-queue-stat--with-eye .pb-queue-available-eye {
    width: 28px !important;
    height: 28px !important;
    border-radius: 10px !important;
}

.pb-queue-stat--with-eye .pb-queue-available-eye__icon,
.pb-queue-stat--with-eye .pb-queue-available-eye__icon svg {
    width: 15px;
    height: 15px;
}

.pb-queue-available-panel--stat {
    top: calc(100% + 8px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.pb-queue-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #5b4a9e;
}

.pb-queue-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7c8d;
    margin-top: 4px;
    text-align: center;
}

.pb-queue-stat--available {
    background: rgba(45, 138, 94, 0.08);
    box-shadow: 0 4px 16px rgba(45, 138, 94, 0.1);
}

.pb-queue-stat--available .pb-queue-stat-value {
    color: #1e563c;
}

.pb-queue-stat--available .pb-queue-stat-label {
    color: #2d8a5e;
}

.pb-queue-stat--available[hidden] {
    display: none !important;
}

.pb-queue-next {
    flex-shrink: 0;
}

.pb-queue-next:empty {
    display: none;
}

.pb-queue-scroll {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 6px 8px 2px;
    scrollbar-width: thin;
    overflow-anchor: auto;
    -webkit-overflow-scrolling: touch;
}

.pb-queue-scroll::-webkit-scrollbar {
    width: 6px;
}

.pb-queue-scroll::-webkit-scrollbar-thumb {
    background-color: #c5d0da;
    border-radius: 3px;
}

.pb-queue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: none;
    overflow: visible;
    padding: 0;
}

.pb-queue-next:not(:empty) + .pb-queue-list:not(:empty) {
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid #e8ecf0;
}

.pb-queue-list::-webkit-scrollbar {
    width: 6px;
}

.pb-queue-list::-webkit-scrollbar-thumb {
    background-color: #c5d0da;
    border-radius: 3px;
}

.pb-queue-loading,
.pb-queue-empty {
    text-align: center;
    padding: 48px 24px;
    color: #6b7c8d;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 41, 66, 0.06);
}

.pb-queue-action-status {
    margin: 0 0 12px;
    padding: 10px 14px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e6b47;
    background: #eef8f2;
    border: 1px solid #c8e6d4;
    border-radius: 10px;
}

.pb-queue.is-action-busy .pb-queue-scroll,
.pb-queue.is-action-busy .pb-queue-list,
.pb-queue.is-action-busy .pb-queue-next {
    opacity: 0.55;
    pointer-events: none;
}

.pb-queue-slot.is-busy {
    position: relative;
    opacity: 0.75;
    pointer-events: none;
}

.pb-queue-slot__busy {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e6b47;
    background: rgba(238, 248, 242, 0.92);
}

.pb-queue-empty-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
}

.pb-queue-empty-sub {
    margin: 0;
    font-size: 0.95rem;
}

.pb-queue-card {
    flex-shrink: 0;
    border: none;
    border-radius: 14px;
    overflow: visible;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 41, 66, 0.08);
    transition: box-shadow 0.2s ease;
    animation: pb-queue-in 0.4s ease backwards;
}

.pb-queue-list--no-animate .pb-queue-card,
.pb-queue-next--no-animate .pb-queue-card {
    animation: none;
}

.pb-queue-card:hover {
    box-shadow: 0 10px 32px rgba(15, 41, 66, 0.12);
}

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

.pb-queue-card--next {
    box-shadow: 0 8px 28px rgba(91, 74, 158, 0.18);
    outline: 2px solid #b8a9e8;
    outline-offset: 0;
}

/* Logged-in player’s own waiting-list match */
.pb-queue-card.pb-queue-card--yours {
    outline: 2px solid #2d8a5e;
    outline-offset: 0;
    box-shadow:
        0 8px 28px rgba(45, 138, 94, 0.2),
        0 0 0 1px rgba(45, 138, 94, 0.28);
}

.pb-queue-card.pb-queue-card--next.pb-queue-card--yours {
    outline-color: #2d8a5e;
    box-shadow:
        0 8px 28px rgba(45, 138, 94, 0.22),
        0 0 0 1px rgba(45, 138, 94, 0.32);
}

.pb-queue-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 14px;
    background: #f6f8fa;
    border-bottom: 1px solid #e8ecf0;
    border-radius: 14px 14px 0 0;
}

.pb-queue-position {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f2942;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(15, 41, 66, 0.08);
}

.pb-queue-card--next .pb-queue-position {
    color: #fff;
    background: linear-gradient(135deg, #7c6bc4 0%, #5b4a9e 100%);
}

.pb-queue-card-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.pb-queue-next-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4a3d7a;
    background: #e8e0f8;
    border-radius: 999px;
    line-height: 1.3;
}

.pb-queue-wait {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7c8d;
    white-space: nowrap;
    text-align: right;
}

.pb-queue-match {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    overflow: visible;
}

.pb-queue-side {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    text-align: left;
    border-radius: 10px;
    background: #f8f9fb;
    border: 1px solid #e8ecf0;
    overflow: visible;
}

.pb-queue-side--t1 {
    border-right: none;
}

.pb-queue-side__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 22px;
    margin-bottom: 8px;
}

.pb-queue-match--has-lock-pair .pb-queue-side__head {
    min-height: 24px;
}

.pb-queue-team-label {
    display: block;
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    color: #6b7c8d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pb-queue-lock-pair-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1e563c;
    background: rgba(45, 138, 94, 0.12);
    border: 1px solid rgba(45, 138, 94, 0.28);
    line-height: 1.2;
    z-index: 2;
}

.pb-queue-lock-pair-badge__svg {
    display: block;
    flex-shrink: 0;
    opacity: 0.9;
}

.pb-queue-lock-pair-badge__text {
    white-space: nowrap;
}

.pb-queue-side--lock-pair {
    background: linear-gradient(180deg, #f6fcf9 0%, #f8f9fb 100%);
    border-color: rgba(45, 138, 94, 0.28);
}

.pb-queue-side--lock-pair .pb-queue-lock-pair-badge {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
}

.pb-queue-players {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #3d4f5f;
    padding-top: 0;
    overflow: visible;
    text-align: left;
}

.pb-queue-players--slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.pb-queue-players .pb-player-wrapper {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}

.pb-queue-players .pb-player-wrapper:hover {
    z-index: 10000;
}

/* Queue list: show tooltip below names so scroll/list clipping does not eat top padding */
.pb-queue-players .pb-player-wrapper .pb-tooltip {
    bottom: auto;
    top: calc(100% + 8px);
    padding: 16px 16px 14px;
}

.pb-queue-players .pb-player-wrapper .pb-tooltip::after {
    top: auto;
    bottom: 100%;
    border-color: transparent transparent #23282d transparent;
}

.pb-queue-players .pb-game-count {
    font-size: 0.85em;
    font-weight: 600;
    color: #8a9bab;
}

/* ——— Queue slot roster (open spot + add / remove) ——— */
.pb-queue-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pb-queue-slot--open {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 8px 10px;
    background: linear-gradient(145deg, rgba(240, 253, 244, 0.95) 0%, rgba(255, 251, 235, 0.9) 100%);
    border: 1px dashed rgba(45, 138, 94, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.pb-queue-slot--open.pb-queue-slot--readonly {
    flex-direction: row;
    padding: 5px 10px;
}

.pb-queue-slot--filled {
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 6px 6px 6px 10px;
    background: #fff;
    border: 1px solid #e2ebe6;
    box-shadow: 0 1px 3px rgba(15, 41, 66, 0.04);
    text-align: left;
}

.pb-queue-slot__main {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 8px;
    min-width: 0;
}

.pb-queue-slot--filled.pb-queue-slot--readonly {
    padding: 4px 10px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.pb-queue-slot--filled.pb-queue-slot--you {
    border-color: #2d8a5e;
    background: rgba(45, 138, 94, 0.08);
    box-shadow: 0 0 0 1px rgba(45, 138, 94, 0.22);
}

.pb-queue-slot--filled.pb-queue-slot--you .pb-player-wrapper span,
.pb-queue-slot--filled.pb-queue-slot--you .pb-player-wrapper a {
    color: #1e6b47;
    font-weight: 700;
}

.pb-queue-slot--draggable {
    cursor: grab;
}
.pb-queue-slot--draggable:active {
    cursor: grabbing;
}
.pb-queue-slot--dragging {
    opacity: 0.4;
    border-style: dashed !important;
}
.pb-queue-slot--drag-over {
    border-color: #2d8a5e !important;
    box-shadow: 0 0 0 2px rgba(45, 138, 94, 0.35) !important;
    background: rgba(45, 138, 94, 0.07) !important;
}
.pb-queue-slot__drag-handle {
    color: #aab8c2;
    font-size: 14px;
    line-height: 1;
    user-select: none;
    flex-shrink: 0;
    margin-right: 2px;
}

.pb-queue-slot__lead {
    display: flex;
    flex: 1;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    text-align: left;
}

.pb-queue-slot__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #1e6b47;
    background: linear-gradient(145deg, rgba(45, 138, 94, 0.14) 0%, rgba(45, 138, 94, 0.22) 100%);
    box-shadow: 0 2px 6px rgba(45, 138, 94, 0.12);
}

.pb-queue-slot__icon-svg {
    display: block;
}

.pb-queue-slot__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.pb-queue-slot__badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1e563c;
    line-height: 1.2;
}

.pb-queue-slot__badge--inline {
    padding: 3px 8px;
    border-radius: 999px;
    color: #5a6b7d;
    background: #eef1f4;
    border: 1px dashed #c5d0da;
    font-style: normal;
    text-transform: none;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.pb-queue-slot__hint {
    display: block;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #5a6b7d;
    font-weight: 500;
}

.pb-queue-slot__select-wrap {
    position: relative;
    width: 100%;
}

.pb-queue-slot__player {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.pb-queue-slot__player .pb-player-wrapper {
    display: block !important;
    width: 100%;
    text-align: left;
}

.pb-queue-slot__player .pb-player-wrapper a,
.pb-queue-slot__player .pb-player-wrapper span {
    text-align: left;
}

.pb-queue-slot-pick {
    position: relative;
    width: 100%;
    min-height: 32px;
    padding: 7px 28px 7px 10px;
    border: 1px solid rgba(45, 138, 94, 0.28) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #153d2b !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 1px 4px rgba(45, 138, 94, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pb-queue-slot-pick::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 0;
    height: 0;
    margin-top: -2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #2d8a5e;
    opacity: 0.7;
    pointer-events: none;
}

.pb-queue-slot-pick.is-open,
.pb-queue-slot-pick:focus {
    outline: none !important;
    border-color: #2d8a5e !important;
    box-shadow: 0 0 0 3px rgba(45, 138, 94, 0.18) !important;
}

.pb-queue-slot-pick:disabled,
.pb-queue-slot-pick.is-busy {
    opacity: 0.6;
    cursor: wait;
}

.pb-queue-slot-menu {
    position: fixed;
    z-index: 100060;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: #2d2d34;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.pb-queue-slot-menu__search-wrap {
    position: relative;
    flex-shrink: 0;
    padding: 8px 8px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pb-queue-slot-menu__search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    pointer-events: none;
    transform: translateY(-50%);
}

.pb-queue-slot-menu__search-icon svg {
    display: block;
}

.pb-queue-slot-menu__search {
    width: 100%;
    min-height: 34px;
    padding: 8px 12px 8px 42px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 8px !important;
    background: #232329 !important;
    color: #f3f4f6 !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    line-height: 1.3;
    box-sizing: border-box;
}

.pb-queue-slot-menu__search::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.pb-queue-slot-menu__search:focus {
    outline: none !important;
    border-color: rgba(45, 138, 94, 0.55) !important;
    box-shadow: 0 0 0 2px rgba(45, 138, 94, 0.25) !important;
}

.pb-queue-slot-menu__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.pb-queue-slot-menu__pair-row {
    display: flex;
    width: 100%;
    align-items: stretch;
    gap: 4px;
}

.pb-queue-slot-menu__list::-webkit-scrollbar {
    width: 6px;
}

.pb-queue-slot-menu__list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 3px;
}

.pb-queue-slot-menu__letter {
    padding: 10px 14px 2px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #9ca3af;
    line-height: 1.2;
    user-select: none;
}

.pb-queue-slot-menu__letter + .pb-queue-slot-menu__option,
.pb-queue-slot-menu__letter + .pb-queue-slot-menu__pair-row {
    margin-top: 2px;
}

.pb-queue-slot-menu__divider {
    height: 1px;
    margin: 6px 10px;
    background: rgba(255, 255, 255, 0.12);
}

.pb-queue-slot-menu__empty {
    margin: 0;
    padding: 12px 14px;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #9ca3af;
}

.pb-queue-slot-menu__option {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px 14px;
    box-sizing: border-box;
    border: none !important;
    border-radius: 0;
    background: transparent !important;
    color: #f9fafb !important;
    font-size: 0.86rem !important;
    font-weight: 500 !important;
    line-height: 1.35;
    text-align: left !important;
    cursor: pointer;
}

.pb-queue-slot-menu__option-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pb-queue-slot-menu__option-dupr {
    flex: 0 0 auto;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #a7f3d0 !important;
    white-space: nowrap;
}

.pb-queue-slot-menu__option--outside .pb-queue-slot-menu__option-dupr {
    color: #9ca3af !important;
}

.pb-queue-slot-menu__letter--section {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6ee7b7 !important;
    padding-top: 10px;
}

.pb-queue-slot-menu__pair-row .pb-queue-slot-menu__option {
    flex: 1 1 50%;
    min-width: 0;
}

.pb-queue-slot-menu__option:focus-visible {
    outline: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.pb-queue-slot-swap {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 18px;
    margin: 0;
    padding-inline: 8px !important;
    border: none !important;
    border-radius: 6px;
    background: transparent !important;
    color: #7a8f9e !important;
    line-height: 0;
    cursor: pointer;
    opacity: 0.9;
    transition: color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.pb-queue-slot-remove {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 18px;
    margin: 0;
    padding-inline: 8px !important;
    border: none !important;
    border-radius: 6px;
    background: transparent !important;
    color: #9aa8b5 !important;
    line-height: 0;
    cursor: pointer;
    opacity: 0.85;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.pb-queue-slot__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-left: auto;
}

.pb-queue-slot-swap__svg {
    display: block;
    width: 11px;
    height: 11px;
}

.pb-queue-slot-swap:hover:not(:disabled) {
    opacity: 1;
    color: #2d8a5e !important;
    transform: rotate(-18deg);
}

.pb-queue-slot-swap:focus-visible {
    opacity: 1;
    outline: 2px solid rgba(45, 138, 94, 0.4) !important;
    outline-offset: 1px;
    color: #1e6b47 !important;
}

.pb-queue-slot-swap:active:not(:disabled) {
    transform: scale(0.94);
}

.pb-queue-slot-swap:disabled,
.pb-queue-slot-swap.is-busy {
    opacity: 0.35;
    cursor: not-allowed;
}

.pb-queue-slot-remove__svg {
    display: block;
    width: 10px;
    height: 10px;
}

.pb-queue-slot-remove:hover:not(:disabled) {
    opacity: 1;
    color: #7a8a99 !important;
}

.pb-queue-slot-remove:focus-visible {
    opacity: 1;
    outline: 2px solid rgba(45, 138, 94, 0.4) !important;
    outline-offset: 1px;
    color: #5a6b7d !important;
}

.pb-queue-slot-remove:active:not(:disabled) {
    transform: scale(0.94);
}

.pb-queue-slot-remove:disabled,
.pb-queue-slot-remove.is-busy {
    opacity: 0.35;
    cursor: not-allowed;
}

.pb-court-body .pb-queue-slot__badge--inline,
.pb-team-players .pb-queue-slot__badge--inline {
    margin: 2px 0;
}

.pb-queue-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    align-self: center;
}

.pb-queue-divider span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #adb5bd;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 50%;
}

.pb-queue-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 600;
}

.pb-queue-card-footer--warmup {
    color: #1565c0;
    background: #e3f2fd;
}

.pb-queue-warmup-icon {
    font-size: 1rem;
    line-height: 1;
}

.pb-queue-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8ecf0;
}

.pb-queue-actions .pb-btn {
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 41, 66, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pb-queue-actions .pb-btn:hover {
    box-shadow: 0 4px 12px rgba(15, 41, 66, 0.12);
}

#pb-btn-show-add,
#pb-btn-show-special {
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none !important;
    border: 1px solid transparent !important;
}

#pb-btn-show-add {
    background: #007bff !important;
    color: #ffffff !important;
    border-color: #007bff !important;
}

#pb-btn-show-special {
    background: #ffc107 !important;
    color: #212529 !important;
    border-color: #ffc107 !important;
}

#pb-btn-show-add:hover {
    background: #0b83ff !important;
    border-color: #0b83ff !important;
}

#pb-btn-show-special:hover {
    background: #ffca2c !important;
    border-color: #ffca2c !important;
}

.pb-queue-actions > p {
    width: 100%;
    margin: 0;
    text-align: center;
    color: #5a6b7d;
}

/* Tournament Module */
.pb-tourney-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.pb-tourney-tab-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.pb-tourney-tab-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pb-slot-group {
    margin-bottom: 30px;
}

.pb-slot-group h4 {
    background: #f1f3f5;
    padding: 8px 15px;
    border-radius: 6px;
    color: #495057;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.pb-match-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.pb-match-card--completed {
    border-color: #b7e4c7;
    background: #f8fff9;
}

.pb-tourney-register {
    max-width: 560px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #f6faf8 100%);
    box-shadow: 0 18px 48px rgba(10, 22, 40, 0.08);
}

.pb-tourney-register__title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: #0f2942;
}

.pb-tourney-register__lead {
    margin: 0 0 18px;
    color: #4a7c66;
    line-height: 1.5;
}

.pb-tourney-register__field {
    margin-bottom: 14px;
}

.pb-tourney-register__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f2942;
}

.pb-tourney-register__field input,
.pb-tourney-register__field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(45, 138, 94, 0.22);
    border-radius: 12px;
    font: inherit;
}

.pb-tourney-register__results {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    border: 1px solid rgba(45, 138, 94, 0.18);
    border-radius: 12px;
    overflow: hidden;
}

.pb-tourney-register__result {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid rgba(45, 138, 94, 0.1);
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.pb-tourney-register__result:hover,
.pb-tourney-register__result:focus-visible {
    background: #f0fdf4;
}

.pb-tourney-register__picked,
.pb-tourney-register__preview {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: #1e563c;
    font-weight: 600;
}

.pb-tourney-register__message.is-error {
    color: #b42318;
}

.pb-tourney-register__submit {
    appearance: none;
    width: 100%;
    margin-top: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(165deg, #2d8a5e 0%, #1e563c 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.pb-bracket-container {
    display: grid;
    gap: 24px;
}

.pb-bracket-container--nba {
    gap: 28px;
}

.pb-nba-bracket {
    --pb-nba-line: rgba(15, 41, 66, 0.32);
    --pb-nba-muted: #6b7c8d;
    --pb-nba-field: #f5f8f6;
    --pb-nba-mark: #1e6b47;
    --pb-nba-text: #0a1628;
    --pb-nba-accent: #1e6b47;
    --pb-nba-mark-ring: #ffffff;
    font-family: "Poppins", sans-serif;
    color: var(--pb-nba-text);
    background-color: var(--pb-nba-field);
    background-image:
        radial-gradient(ellipse 85% 60% at 12% 0%, rgba(255, 255, 255, 0.95), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(45, 138, 94, 0.06), transparent 50%),
        linear-gradient(180deg, #fbfcfc 0%, #eef4f0 100%);
    border: 1px solid rgba(15, 41, 66, 0.08);
    border-radius: 16px;
    padding: 22px 16px 28px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    box-shadow: none;
}

.pb-tourney--dashboard .pb-nba-bracket,
.pb-tourney--dashboard .pb-nba-bracket * {
    box-shadow: none !important;
    text-shadow: none !important;
}

.pb-nba-bracket__header {
    text-align: center;
    margin-bottom: 18px;
}

.pb-nba-bracket__kicker {
    margin: 0 0 6px;
    font-size: clamp(1.05rem, 3.2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-style: normal;
    color: var(--pb-nba-text);
    line-height: 1.1;
}

.pb-nba-bracket__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pb-nba-accent);
}

.pb-nba-bracket__subtitle {
    margin: 8px 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pb-nba-muted);
}

.pb-bracket-container--pools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    gap: 16px;
    align-items: stretch;
}

.pb-pool-brackets-flight {
    margin: 0 0 28px;
}

.pb-pool-brackets-flight:last-child {
    margin-bottom: 0;
}

.pb-pool-brackets-flight__head {
    margin: 0 0 12px;
}

.pb-pool-brackets-flight__title {
    margin: 0;
    font-family: var(--pb-font-sans, "Poppins", sans-serif);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--pb-emotion-navy-text, #0f2942);
    letter-spacing: 0.01em;
}

.pb-bracket-container--pools[data-pool-count="2"] {
    grid-template-rows: auto;
}

.pb-bracket-container--pools[data-pool-count="3"] {
    grid-template-rows: auto auto;
}

.pb-bracket-container--pools .pb-nba-bracket--pool {
    margin: 0;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #eef6f1;
    border: 1px solid rgba(30, 107, 71, 0.16);
}

.pb-bracket-container--pools .pb-nba-bracket__header {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pb-bracket-container--pools .pb-nba-bracket__kicker {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--pb-emotion-green-muted, #4a7c66);
}

.pb-bracket-container--pools .pb-nba-bracket__title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    font-size: clamp(0.78rem, 1.6vw, 0.92rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--pb-emotion-lime, #d4f94c);
    background: var(--pb-emotion-navy, #0a1628);
    border-radius: var(--pb-emotion-radius-pill, 999px);
}

.pb-bracket-container--pools .pb-nba-bracket__subtitle,
.pb-bracket-container--pools .pb-nba-bracket__side-label--center,
.pb-bracket-container--pools .pb-nba-bracket__col--advance > .pb-nba-bracket__side-label {
    display: none !important;
}

.pb-bracket-container--pools .pb-nba-bracket__board--four-vs-four {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px 8px;
    flex: 1;
}

.pb-bracket-container--pools .pb-nba-bracket__board--four-vs-four.pb-nba-bracket__board--ltr {
    display: block;
}

.pb-bracket-container--pools .pb-nba-bracket__board--four-vs-four .pb-nba-bracket__side-label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

.pb-nba-bracket__board--ltr .pb-nba-bracket__cols--ltr,
.pb-nba-bracket__board--ltr[data-cols="3"] .pb-nba-bracket__cols--ltr {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(88px, 0.65fr);
    min-height: 220px;
    gap: 8px;
}

.pb-nba-bracket__board--ltr[data-cols="2"] .pb-nba-bracket__cols--ltr {
    grid-template-columns: minmax(0, 1.2fr) minmax(88px, 0.7fr);
}

.pb-bracket-container--pools .pb-nba-bracket__board--ltr .pb-nba-bracket__cols--ltr {
    min-height: 200px;
}

.pb-nba-bracket__board--ltr .pb-nba-bracket__col--advance {
    justify-content: center;
}

.pb-nba-bracket__board--ltr .pb-nba-bracket__col--advance .pb-nba-bracket__side-label {
    margin-bottom: 12px;
}

.pb-nba-bracket__board--ltr .pb-nba-bracket__slots--advance {
    justify-content: center;
    gap: 0;
}

.pb-bracket-container--pools .pb-nba-bracket__board {
    gap: 6px 8px;
}

.pb-bracket-container--pools .pb-nba-match {
    font-size: 0.78rem;
}

.pb-bracket-container--pools .pb-nba-bracket__slots {
    gap: 0;
}

.pb-bracket-container--pools .pb-nba-bracket__pair {
    gap: 0;
    padding-right: calc(var(--pb-nba-fork-w, 10px) + var(--pb-nba-stem-w, 10px));
}

.pb-tourney--pool-brackets .pb-pool-draw--embedded {
    margin-bottom: 20px;
}

.pb-nba-bracket--pool.is-target {
    box-shadow: none;
    background-color: #e4f3ea;
    background-image: none;
    border-color: rgba(30, 107, 71, 0.5);
}

.pb-nba-bracket--pool .pb-nba-team.is-just-landed {
    animation: pb-pool-bracket-land 0.65s cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes pb-pool-bracket-land {
    0% {
        transform: scale(0.92);
        opacity: 0.35;
    }
    55% {
        transform: scale(1.04);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 720px) {
    .pb-bracket-container--pools {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
}

.pb-nba-bracket__board--no-round-labels .pb-nba-bracket__col-label,
.pb-nba-bracket__board--no-round-labels .pb-nba-bracket__half > .pb-nba-bracket__side-label:not(.pb-nba-bracket__side-label--center) {
    display: none;
}

.pb-nba-bracket__board--four-vs-four .pb-nba-bracket__side-label--center,
.pb-nba-bracket__board--ltr .pb-nba-bracket__col--advance .pb-nba-bracket__side-label--center {
    margin-bottom: 10px;
}

.pb-nba-bracket__board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(132px, 0.42fr) minmax(0, 1fr);
    gap: 12px 14px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.pb-nba-bracket__half {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.pb-nba-bracket__side-label {
    margin: 0 0 12px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pb-nba-muted);
}

.pb-nba-bracket__side-label--center {
    color: var(--pb-nba-accent);
}

.pb-nba-bracket__cols {
    display: grid;
    grid-template-columns: repeat(var(--pb-nba-cols, 1), minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    flex: 1;
    min-height: 280px;
    min-width: 0;
    width: 100%;
}

.pb-nba-bracket__board[data-cols="2"] .pb-nba-bracket__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pb-nba-bracket__board[data-cols="3"] .pb-nba-bracket__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pb-nba-bracket__cols--mirror {
    direction: rtl;
}

.pb-nba-bracket__cols--mirror > * {
    direction: ltr;
}

.pb-nba-bracket__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    height: 100%;
    justify-content: center;
}

.pb-nba-bracket__board[data-cols="2"] .pb-nba-bracket__col[data-round="qf"],
.pb-nba-bracket__board[data-cols="2"] .pb-nba-bracket__col[data-round="r16"],
.pb-nba-bracket__board[data-cols="3"] .pb-nba-bracket__col[data-round="r32"],
.pb-nba-bracket__board[data-cols="4"] .pb-nba-bracket__col[data-round="r32"] {
    min-width: 0;
}

.pb-nba-bracket__col-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pb-nba-muted);
    text-align: center;
}

.pb-nba-bracket__board--forks {
    --pb-nba-team-h: 34px;
    --pb-nba-team-gap: 10px;
    --pb-nba-fork-w: 12px;
    --pb-nba-stem-w: 14px;
    --pb-nba-line-w: 1px;
}

.pb-nba-bracket__slots {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    gap: 0;
    flex: 1;
    min-height: 0;
}

.pb-nba-bracket__pair {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    gap: 0;
    flex: 1 1 0;
    min-height: 0;
    padding-right: calc(var(--pb-nba-fork-w) + var(--pb-nba-stem-w));
}

.pb-nba-bracket__half--right .pb-nba-bracket__pair {
    padding-right: 0;
    padding-left: calc(var(--pb-nba-fork-w) + var(--pb-nba-stem-w));
}

.pb-nba-bracket__board--forks .pb-nba-match--tree {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 0;
}

.pb-nba-bracket__board--forks .pb-nba-match--tree .pb-nba-match__teams {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--pb-nba-team-gap);
    padding-right: var(--pb-nba-fork-w);
    box-sizing: border-box;
}

.pb-nba-bracket__half--right .pb-nba-match--tree .pb-nba-match__teams,
.pb-nba-bracket__board--forks .pb-nba-match--right .pb-nba-match__teams {
    padding-right: 0;
    padding-left: var(--pb-nba-fork-w);
}

.pb-nba-bracket__board--forks .pb-nba-match--tree .pb-nba-team {
    height: var(--pb-nba-team-h);
    min-height: var(--pb-nba-team-h);
    max-height: var(--pb-nba-team-h);
    padding: 0 2px;
    margin: 0;
    box-sizing: border-box;
    position: relative;
}

.pb-nba-bracket__board--forks .pb-nba-match--tree .pb-nba-team + .pb-nba-team {
    margin-top: 0;
}

/* Extend team baseline through the match fork gutter so it meets the rail. */
.pb-nba-bracket__board--forks .pb-nba-match--left .pb-nba-team::after {
    content: "";
    position: absolute;
    left: 100%;
    width: var(--pb-nba-fork-w);
    bottom: 0;
    height: var(--pb-nba-line-w);
    background-color: var(--pb-nba-line);
    pointer-events: none;
}

.pb-nba-bracket__board--forks .pb-nba-match--right .pb-nba-team::after {
    content: "";
    position: absolute;
    right: 100%;
    width: var(--pb-nba-fork-w);
    bottom: 0;
    height: var(--pb-nba-line-w);
    background-color: var(--pb-nba-line);
    pointer-events: none;
}

/* Per-match connector: joins the two team baselines, then stems to the pair rail. */
.pb-nba-bracket__board--forks .pb-nba-match--left .pb-nba-match__teams::after,
.pb-nba-bracket__board--forks .pb-nba-match--right .pb-nba-match__teams::after {
    content: "";
    position: absolute;
    top: calc(var(--pb-nba-team-h) - var(--pb-nba-line-w));
    height: calc(var(--pb-nba-team-h) + var(--pb-nba-team-gap));
    width: var(--pb-nba-fork-w);
    box-sizing: border-box;
    pointer-events: none;
    z-index: 1;
}

.pb-nba-bracket__board--forks .pb-nba-match--left .pb-nba-match__teams::before,
.pb-nba-bracket__board--forks .pb-nba-match--right .pb-nba-match__teams::before {
    content: "";
    position: absolute;
    top: calc(var(--pb-nba-team-h) + (var(--pb-nba-team-h) + var(--pb-nba-team-gap)) / 2 - (var(--pb-nba-line-w) / 2));
    width: calc(var(--pb-nba-stem-w) + 2px);
    height: var(--pb-nba-line-w);
    background: var(--pb-nba-line);
    background-color: var(--pb-nba-line);
    pointer-events: none;
    z-index: 1;
}

.pb-nba-bracket__board--forks .pb-nba-match--left .pb-nba-match__teams::after {
    right: 0;
    border-top: var(--pb-nba-line-w) solid var(--pb-nba-line);
    border-right: var(--pb-nba-line-w) solid var(--pb-nba-line);
    border-bottom: var(--pb-nba-line-w) solid var(--pb-nba-line);
    border-left: none;
}

.pb-nba-bracket__board--forks .pb-nba-match--left .pb-nba-match__teams::before {
    right: calc(-1 * var(--pb-nba-stem-w));
}

.pb-nba-bracket__board--forks .pb-nba-match--right .pb-nba-match__teams::after {
    left: 0;
    border-top: var(--pb-nba-line-w) solid var(--pb-nba-line);
    border-left: var(--pb-nba-line-w) solid var(--pb-nba-line);
    border-bottom: var(--pb-nba-line-w) solid var(--pb-nba-line);
    border-right: none;
}

.pb-nba-bracket__board--forks .pb-nba-match--right .pb-nba-match__teams::before {
    left: calc(-1 * var(--pb-nba-stem-w));
}

/* Pair rail: join the two match midpoints (25% / 75% when matches flex equally). */
.pb-nba-bracket__fork {
    position: absolute;
    top: 25%;
    bottom: 25%;
    width: calc(var(--pb-nba-fork-w) + var(--pb-nba-stem-w));
    pointer-events: none;
    z-index: 2;
}

.pb-nba-bracket__fork--left {
    right: 0;
}

.pb-nba-bracket__fork--right {
    left: 0;
}

.pb-nba-bracket__fork-rail {
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--pb-nba-fork-w);
    box-sizing: border-box;
}

.pb-nba-bracket__fork--left .pb-nba-bracket__fork-rail {
    left: 0;
    border-top: var(--pb-nba-line-w) solid var(--pb-nba-line);
    border-right: var(--pb-nba-line-w) solid var(--pb-nba-line);
    border-bottom: var(--pb-nba-line-w) solid var(--pb-nba-line);
    border-left: none;
}

.pb-nba-bracket__fork--right .pb-nba-bracket__fork-rail {
    right: 0;
    border-top: var(--pb-nba-line-w) solid var(--pb-nba-line);
    border-left: var(--pb-nba-line-w) solid var(--pb-nba-line);
    border-bottom: var(--pb-nba-line-w) solid var(--pb-nba-line);
    border-right: none;
}

.pb-nba-bracket__stem {
    position: absolute;
    top: 50%;
    width: var(--pb-nba-stem-w);
    height: var(--pb-nba-line-w);
    margin-top: calc(var(--pb-nba-line-w) / -2);
    background: var(--pb-nba-line);
    background-color: var(--pb-nba-line);
}

.pb-nba-bracket__fork--left .pb-nba-bracket__stem {
    left: var(--pb-nba-fork-w);
}

.pb-nba-bracket__fork--right .pb-nba-bracket__stem {
    right: var(--pb-nba-fork-w);
}

.pb-nba-bracket__fork--center .pb-nba-bracket__stem {
    width: calc(var(--pb-nba-stem-w) + 4px);
}

.pb-nba-bracket__pair--single .pb-nba-bracket__fork {
    top: 50%;
    bottom: auto;
    height: 0;
}

.pb-nba-bracket__pair--single .pb-nba-bracket__fork-rail {
    display: none;
}

.pb-nba-bracket__board--ltr {
    --pb-nba-team-h: 26px;
    --pb-nba-team-gap: 4px;
    --pb-nba-match-gap: 10px;
    --pb-nba-pair-gap: 16px;
    --pb-nba-fork-w: 10px;
    --pb-nba-stem-w: 12px;
    --pb-nba-line-w: 1px;
    /* Midpoint between the two team baselines inside a match. */
    --pb-nba-match-mid: calc(
        var(--pb-nba-team-h) + (var(--pb-nba-team-h) + var(--pb-nba-team-gap)) / 2
    );
    --pb-nba-match-h: calc(2 * var(--pb-nba-team-h) + var(--pb-nba-team-gap));
    --pb-nba-pair-h: calc(2 * var(--pb-nba-match-h) + var(--pb-nba-match-gap));
    --pb-nba-tree-h: calc(2 * var(--pb-nba-pair-h) + var(--pb-nba-pair-gap));
    --pb-nba-semi-pad: calc((var(--pb-nba-match-h) + var(--pb-nba-match-gap)) / 2);
}

.pb-nba-bracket__board--ltr .pb-nba-bracket__pair {
    flex: 0 0 auto;
    height: var(--pb-nba-pair-h);
    gap: var(--pb-nba-match-gap);
    justify-content: flex-start;
}

.pb-nba-bracket__board--ltr .pb-nba-bracket__slots {
    justify-content: center;
    gap: var(--pb-nba-pair-gap);
    flex: 1 1 auto;
    min-height: 0;
}

.pb-nba-bracket__board--ltr .pb-nba-match--tree {
    flex: 0 0 auto;
    height: var(--pb-nba-match-h);
    justify-content: flex-start;
}

/* Pair rail joins the two match baseline-midpoints (not box centers). */
.pb-nba-bracket__board--ltr .pb-nba-bracket__fork {
    top: var(--pb-nba-match-mid);
    bottom: auto;
    height: calc(var(--pb-nba-match-h) + var(--pb-nba-match-gap));
}

/* Semi matches sit so their baseline-midpoints land on QF pair stems. */
.pb-nba-bracket__board--ltr .pb-nba-bracket__col[data-round="semi"] .pb-nba-bracket__slots {
    gap: 0;
    justify-content: center;
}

.pb-nba-bracket__board--ltr .pb-nba-bracket__col[data-round="semi"] .pb-nba-bracket__pair {
    height: var(--pb-nba-tree-h);
    gap: 0;
    padding-top: var(--pb-nba-semi-pad);
    box-sizing: border-box;
}

.pb-nba-bracket__board--ltr .pb-nba-bracket__col[data-round="semi"] .pb-nba-bracket__pair > .pb-nba-match--tree:first-of-type {
    margin-bottom: calc(var(--pb-nba-match-h) + var(--pb-nba-match-gap) + var(--pb-nba-pair-gap));
}

.pb-nba-bracket__board--ltr .pb-nba-bracket__col[data-round="semi"] .pb-nba-bracket__fork {
    top: calc(var(--pb-nba-semi-pad) + var(--pb-nba-match-mid));
    bottom: auto;
    height: calc(var(--pb-nba-pair-h) + var(--pb-nba-pair-gap));
}

/* Final match baseline-midpoint lands on the semi pair stem. */
.pb-nba-bracket__board--ltr .pb-nba-bracket__slots--advance {
    flex: 0 0 auto;
    align-self: center;
    width: 100%;
    height: var(--pb-nba-tree-h);
    justify-content: flex-start;
    gap: 0;
    padding-top: calc(var(--pb-nba-semi-pad) + (var(--pb-nba-pair-h) + var(--pb-nba-pair-gap)) / 2);
    box-sizing: border-box;
}

.pb-nba-bracket__board--ltr .pb-nba-bracket__slots--advance .pb-nba-match--tree {
    flex: 0 0 auto;
    height: var(--pb-nba-match-h);
}

.pb-nba-bracket__board--ltr .pb-nba-bracket__col--advance {
    justify-content: center;
}

.pb-bracket-container--pools .pb-nba-bracket__board--ltr {
    --pb-nba-team-h: 24px;
    --pb-nba-team-gap: 3px;
    --pb-nba-match-gap: 8px;
    --pb-nba-pair-gap: 12px;
    --pb-nba-fork-w: 9px;
    --pb-nba-stem-w: 10px;
}

.pb-bracket-container--pools .pb-nba-bracket__pair {
    padding-right: calc(var(--pb-nba-fork-w) + var(--pb-nba-stem-w));
}

/* —— LTR pool tree: CSS grid slots; team baselines + joins share percentages —— */
.pb-ltr-bracket {
    --pb-ltr-slot-h: 28px;
    --pb-ltr-team-h: 22px;
    --pb-ltr-join-w: 12px;
    --pb-ltr-stem-w: 14px;
    --pb-ltr-line: rgba(15, 41, 66, 0.45);
    --pb-ltr-line-w: 1px;
    --pb-ltr-slots: 8;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.pb-bracket-container--pools .pb-ltr-bracket {
    --pb-ltr-slot-h: 36px;
    --pb-ltr-team-h: 28px;
    --pb-ltr-join-w: 13px;
    --pb-ltr-stem-w: 15px;
    --pb-ltr-line: rgba(15, 41, 66, 0.5);
    --pb-ltr-line-w: 2px;
}

.pb-ltr-bracket__cols {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.75fr);
    align-items: stretch;
    gap: 0;
    width: 100%;
    flex: 1 1 auto;
    min-height: calc(var(--pb-ltr-slots) * var(--pb-ltr-slot-h));
}

.pb-ltr-bracket__cols:has(> .pb-ltr-bracket__col:nth-child(2):last-child) {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
}

.pb-ltr-bracket__cols:has(> .pb-ltr-bracket__col:first-child:last-child) {
    grid-template-columns: minmax(0, 1fr);
}

.pb-ltr-bracket__col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pb-ltr-bracket__col-label {
    margin: 0 0 6px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pb-nba-muted, #6b7c8d);
    text-align: center;
    flex: 0 0 auto;
}

.pb-ltr-bracket--no-labels .pb-ltr-bracket__col-label {
    display: none;
}

.pb-ltr-bracket__rail {
    display: grid;
    grid-template-rows: repeat(var(--pb-ltr-slots), minmax(var(--pb-ltr-slot-h), 1fr));
    grid-auto-rows: minmax(var(--pb-ltr-slot-h), 1fr);
    width: 100%;
    flex: 1 1 auto;
    min-height: calc(var(--pb-ltr-slots) * var(--pb-ltr-slot-h));
    height: 100%;
}

.pb-ltr-bracket__match {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    padding-right: calc(var(--pb-ltr-join-w) + var(--pb-ltr-stem-w));
    overflow: visible;
}

.pb-ltr-bracket__match[data-span="2"] {
    grid-row: span 2;
}

.pb-ltr-bracket__match[data-span="4"] {
    grid-row: span 4;
}

.pb-ltr-bracket__match[data-span="8"] {
    grid-row: span 8;
}

.pb-ltr-bracket__match[data-span="16"] {
    grid-row: span 16;
}

.pb-ltr-bracket__col[data-span="1"] .pb-ltr-bracket__match,
.pb-ltr-bracket__match:not([data-span]) {
    grid-row: span 1;
}

.pb-ltr-bracket__teams {
    display: grid;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.pb-ltr-bracket__vs {
    position: absolute;
    left: calc((100% - var(--pb-ltr-join-w) - var(--pb-ltr-stem-w)) / 2);
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    margin: 0;
    padding: 3px 9px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: calc(100% - var(--pb-ltr-join-w) - var(--pb-ltr-stem-w) - 8px);
    border-radius: 999px;
    border: 1px solid rgba(30, 107, 71, 0.28);
    background: var(--pb-nba-field, #eef6f1);
    box-shadow: 0 0 0 3px var(--pb-nba-field, #eef6f1);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
    color: var(--pb-emotion-navy-text, #0f2942);
    opacity: 1;
}

.pb-ltr-bracket__qualifier {
    position: absolute;
    z-index: 4;
    top: calc(50% + 18px);
    left: calc((100% - var(--pb-ltr-join-w) - var(--pb-ltr-stem-w)) / 2);
    transform: translateX(-50%);
    display: inline-flex;
    width: max-content;
    max-width: calc(100% - var(--pb-ltr-join-w) - var(--pb-ltr-stem-w) - 8px);
    padding: 3px 8px;
    border-radius: 999px;
    background: #d4f94c;
    color: #0f2942;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
}

.pb-ltr-bracket__match > .pb-ltr-bracket__teams > .pb-nba-team,
.pb-ltr-bracket__match > .pb-ltr-bracket__teams > .pb-bracket-team {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    align-self: center;
    width: 100%;
    height: var(--pb-ltr-team-h) !important;
    min-height: var(--pb-ltr-team-h) !important;
    max-height: var(--pb-ltr-team-h) !important;
    margin: 0 !important;
    padding: 0 2px !important;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: 12px 16px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: center;
    column-gap: 10px !important;
    row-gap: 0 !important;
    gap: 10px !important;
    border: none !important;
    border-bottom: var(--pb-ltr-line-w) solid var(--pb-ltr-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    overflow: hidden;
}

.pb-ltr-bracket__match > .pb-ltr-bracket__teams > .pb-nba-team + .pb-nba-team,
.pb-ltr-bracket__match > .pb-ltr-bracket__teams > .pb-bracket-team + .pb-bracket-team {
    margin-top: 0 !important;
    border-top: none !important;
}

.pb-ltr-bracket__match > .pb-ltr-bracket__teams > .pb-nba-team::before,
.pb-ltr-bracket__match > .pb-ltr-bracket__teams > .pb-nba-team::after,
.pb-ltr-bracket__match > .pb-ltr-bracket__teams > .pb-bracket-team::before,
.pb-ltr-bracket__match > .pb-ltr-bracket__teams > .pb-bracket-team::after {
    content: none !important;
    display: none !important;
}

.pb-ltr-bracket__match > .pb-ltr-bracket__teams > .pb-nba-team .pb-nba-team__score,
.pb-ltr-bracket__match > .pb-ltr-bracket__teams > .pb-nba-team .pb-nba-team__score--empty {
    display: none !important;
}

.pb-ltr-bracket__match > .pb-ltr-bracket__teams > .pb-nba-team .pb-nba-team__profiles,
.pb-ltr-bracket__match > .pb-ltr-bracket__teams > .pb-nba-team .pb-nba-team__profiles--club {
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
}

.pb-ltr-bracket__match > .pb-ltr-bracket__teams > .pb-nba-team .pb-nba-team__name {
    font-size: 0.67rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 4px;
}

.pb-ltr-bracket__match > .pb-ltr-bracket__teams > .pb-nba-team .pb-nba-team__seed {
    width: 12px;
    font-size: 0.62rem;
}

.pb-ltr-bracket__match > .pb-ltr-bracket__teams > .pb-nba-team .pb-nba-team__mark,
.pb-ltr-bracket__match > .pb-ltr-bracket__teams > .pb-nba-team .pb-nba-team__mark img {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    flex: 0 0 14px !important;
}

/*
 * Join box spans team1 baseline → team2 baseline (50% of match).
 * Bars use the same Y band as team border-bottom: [edge - line, edge].
 * Stem sits on the midpoint band so it meets the next column underline flush.
 */
.pb-ltr-bracket__join {
    position: absolute;
    top: calc(25% + (var(--pb-ltr-team-h) / 2));
    right: 0;
    width: calc(var(--pb-ltr-join-w) + var(--pb-ltr-stem-w));
    height: 50%;
    box-sizing: border-box;
    border: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

.pb-ltr-bracket__join-h,
.pb-ltr-bracket__join-v,
.pb-ltr-bracket__join-stem {
    position: absolute;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    background-color: var(--pb-ltr-line);
    background-image: none;
    box-shadow: none;
}

.pb-ltr-bracket__join-h {
    left: 0;
    width: var(--pb-ltr-join-w);
    height: var(--pb-ltr-line-w);
}

.pb-ltr-bracket__join-h--top {
    top: calc(var(--pb-ltr-line-w) * -1);
}

.pb-ltr-bracket__join-h--bot {
    bottom: 0;
}

.pb-ltr-bracket__join-v {
    top: calc(var(--pb-ltr-line-w) * -1);
    bottom: 0;
    left: calc(var(--pb-ltr-join-w) - var(--pb-ltr-line-w));
    width: var(--pb-ltr-line-w);
}

.pb-ltr-bracket__join-stem {
    top: 0;
    left: calc(var(--pb-ltr-join-w) - var(--pb-ltr-line-w));
    right: 0;
    height: 50%;
    box-sizing: border-box;
    background-color: transparent;
    border-bottom: var(--pb-ltr-line-w) solid var(--pb-ltr-line);
}

.pb-ltr-bracket__match:not(:has(> .pb-ltr-bracket__join)) {
    padding-right: 2px;
}

.pb-nba-bracket--pool .pb-ltr-bracket {
    flex: 1 1 auto;
    min-height: 0;
    justify-content: stretch;
}

.pb-ltr-bracket__match.is-bye-match .pb-bracket-team--bye,
.pb-ltr-bracket__match.is-bye-match .pb-nba-team.pb-bracket-team--bye {
    color: #8a9aab !important;
    opacity: 0.72;
}

.pb-ltr-bracket__match.is-hidden-padding-match,
.pb-ltr-bracket__match .pb-bracket-team--hidden-bye {
    visibility: hidden !important;
}

.pb-ltr-bracket__match.is-single-feeder-match > .pb-ltr-bracket__vs {
    visibility: hidden !important;
}

.pb-ltr-bracket__match.is-single-feeder-match > .pb-ltr-bracket__teams > .pb-bracket-team:not(.pb-bracket-team--hidden-bye) {
    width: calc(100% + var(--pb-ltr-line-w)) !important;
    margin-left: calc(var(--pb-ltr-line-w) * -1) !important;
    padding-left: calc(2px + var(--pb-ltr-line-w)) !important;
}

.pb-ltr-bracket__match.is-single-feeder-match > .pb-ltr-bracket__join .pb-ltr-bracket__join-h--bot {
    display: none;
}

.pb-ltr-bracket__match.is-single-feeder-match > .pb-ltr-bracket__join .pb-ltr-bracket__join-v {
    display: block;
    top: -100%;
    bottom: auto;
    height: 100%;
}

.pb-ltr-bracket__match.is-single-feeder-match > .pb-ltr-bracket__join .pb-ltr-bracket__join-stem {
    top: calc(var(--pb-ltr-line-w) * -1);
    height: var(--pb-ltr-line-w);
    background-color: var(--pb-ltr-line);
    border-bottom: none;
}

.pb-ltr-bracket__match.has-compact-team2-path > .pb-ltr-bracket__teams > .pb-bracket-team:nth-child(2) {
    position: absolute !important;
    top: calc(62.5% - (var(--pb-ltr-team-h) / 2)) !important;
    left: 0 !important;
    transform: none !important;
}

.pb-ltr-bracket__match.has-compact-team2-path > .pb-ltr-bracket__vs {
    top: calc(43.75% + (var(--pb-ltr-team-h) / 2));
}

.pb-ltr-bracket__match.is-bye-match .pb-bracket-team--bye .pb-nba-team__name,
.pb-ltr-bracket__match.is-bye-match .pb-bracket-team--bye .pb-bracket-team__name {
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.67rem !important;
}

.pb-bracket-team--bye .pb-nba-team__profiles,
.pb-bracket-team--bye .pb-nba-team__mark {
    opacity: 0.35;
}

/* Public bracket team card modal (skill · name · profiles) */
.pb-tourney-team-card-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

.pb-tourney-team-card-modal[hidden] {
    display: none !important;
}

.pb-tourney-team-card-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.55);
}

.pb-tourney-team-card-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    margin: auto;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(15, 41, 66, 0.08);
    box-shadow: 0 28px 72px rgba(10, 22, 40, 0.18);
    overflow: hidden;
    box-sizing: border-box;
}

.pb-tourney-team-card-modal__body {
    min-height: 280px;
}

.pb-tourney-team-card-modal__close[type="button"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border: none !important;
    border-radius: 999px;
    background: rgba(15, 41, 66, 0.08) !important;
    background-image: none !important;
    color: #0f2942 !important;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
}

.pb-tourney-team-card-modal__close[type="button"]:hover,
.pb-tourney-team-card-modal__close[type="button"]:focus-visible {
    background: rgba(15, 41, 66, 0.14) !important;
    outline: none;
}

.pb-tourney-team-card-modal__loading {
    padding: 48px 24px;
    margin: 0;
    text-align: center;
    color: #6b7c8d;
    font-weight: 600;
}

.pb-tourney-team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 48px 40px 44px;
    text-align: center;
    color: #0f2942;
    box-sizing: border-box;
}

.pb-tourney-team-card__skill {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(45, 138, 94, 0.1);
    border: 1px solid rgba(30, 107, 71, 0.28);
    color: #1e6b47;
}

.pb-tourney-team-card__title {
    margin: 0;
    max-width: 100%;
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.15;
    color: #0f2942;
    word-break: break-word;
}

.pb-tourney-team-card__profiles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.pb-tourney-team-card__avatar {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e6b47;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
    border: 4px solid #2d8a5e;
    box-shadow: 0 12px 28px rgba(15, 41, 66, 0.14);
}

.pb-tourney-team-card__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

body.pb-tourney-team-card-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .pb-tourney-team-card {
        padding: 36px 20px 32px;
        gap: 14px;
    }

    .pb-tourney-team-card__profiles {
        gap: 16px;
    }

    .pb-tourney-team-card__avatar {
        width: 148px;
        height: 148px;
        font-size: 1.8rem;
    }

    .pb-tourney-team-card__title {
        font-size: 1.7rem;
    }
}

button.pb-nba-team__name.pb-nba-team__name--open[type="button"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-align: left;
    font: inherit;
    font-weight: inherit;
    color: inherit !important;
    cursor: pointer;
    line-height: inherit;
}

button.pb-nba-team__name.pb-nba-team__name--open[type="button"]:hover,
button.pb-nba-team__name.pb-nba-team__name--open[type="button"]:focus-visible {
    color: var(--pb-emotion-green-deep, #1e6b47) !important;
    text-decoration: underline;
    outline: none;
}

.pb-nba-bracket__advance {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.pb-nba-bracket__fork--left .pb-nba-bracket__advance {
    left: calc(var(--pb-nba-fork-w) + 4px);
}

.pb-nba-bracket__fork--right .pb-nba-bracket__advance {
    right: calc(var(--pb-nba-fork-w) + 4px);
}

.pb-nba-bracket__advance .pb-nba-team__profiles {
    width: 28px;
    min-width: 28px;
    max-width: 28px;
}

.pb-nba-bracket__advance .pb-nba-team__mark {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    max-width: 32px;
    border: 2px solid var(--pb-nba-line);
    background: #fff;
    border-radius: 4px;
}

.pb-nba-bracket__advance .pb-nba-team__mark img {
    width: 32px !important;
    height: 32px !important;
    object-fit: cover;
}

.pb-nba-bracket__advance .pb-nba-team__profiles--club .pb-nba-team__mark,
.pb-nba-bracket__advance .pb-nba-team__mark--club {
    border-radius: 4px;
}

.pb-nba-bracket__center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    min-width: 0;
    max-width: 100%;
}

.pb-nba-match {
    position: relative;
    padding: 0;
    border: none !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    min-width: 0;
    max-width: 100%;
}

.pb-nba-match:hover {
    transform: none;
}

.pb-nba-match__teams {
    display: block;
    width: 100%;
    border: none !important;
    background: transparent;
}

.pb-nba-team {
    display: grid;
    grid-template-columns: 18px 40px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    max-height: none;
    padding: 6px 2px 8px;
    color: var(--pb-nba-text);
    font-weight: 700;
    border: none !important;
    border-bottom: 1px solid var(--pb-nba-line) !important;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    text-decoration: none !important;
}

.pb-nba-team + .pb-nba-team {
    border-top: none !important;
    margin-top: 14px;
}

.pb-nba-team--mirror {
    grid-template-columns: 18px minmax(0, 1fr) 18px 40px;
    text-align: right;
}

.pb-nba-team__seed {
    width: 18px;
    font-size: 0.72rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--pb-nba-muted);
    text-align: center;
    flex-shrink: 0;
    opacity: 1;
}

.pb-nba-team__profiles {
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    flex-shrink: 0;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    justify-content: flex-start;
}

button.pb-nba-team__profiles.pb-nba-team__profiles--open[type="button"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: none !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    font: inherit;
    color: inherit;
    line-height: 1;
}

button.pb-nba-team__profiles.pb-nba-team__profiles--open[type="button"]:hover .pb-nba-team__mark,
button.pb-nba-team__profiles.pb-nba-team__profiles--open[type="button"]:focus-visible .pb-nba-team__mark {
    box-shadow: 0 0 0 2px rgba(30, 107, 71, 0.45);
}

button.pb-nba-team__profiles.pb-nba-team__profiles--open[type="button"]:focus-visible {
    outline: 2px solid var(--pb-emotion-green, #2d8a5e);
    outline-offset: 2px;
}

.pb-nba-team__profiles--club {
    width: 32px;
    min-width: 32px;
    max-width: 32px;
}

.pb-nba-team--mirror .pb-nba-team__profiles {
    justify-content: flex-end;
}

.pb-nba-team__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px;
    max-width: 26px;
    border-radius: 50%;
    background: #fff;
    color: var(--pb-nba-mark);
    border: 2px solid #fff;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(15, 41, 66, 0.12);
    line-height: 1;
}

.pb-nba-team__mark--club {
    flex: 0 0 30px;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px;
    max-width: 30px;
    border-radius: 4px;
    border-color: rgba(15, 41, 66, 0.14);
}

.pb-nba-team__profiles .pb-nba-team__mark + .pb-nba-team__mark {
    margin-left: -8px;
}

.pb-nba-team__mark img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    display: block;
}

.pb-nba-team__name {
    display: block;
    min-width: 0;
    max-width: 100%;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.25;
    color: var(--pb-nba-text);
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    text-decoration: none !important;
    border: none !important;
}

.pb-nba-team--mirror .pb-nba-team__name {
    text-align: right;
}

.pb-nba-team__score {
    width: 18px;
    min-width: 18px;
    font-size: 0.78rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--pb-nba-accent);
    text-align: center;
}

.pb-nba-team__score--empty {
    visibility: hidden;
}

.pb-bracket-team--tbd .pb-nba-team__name {
    color: var(--pb-nba-muted);
    font-style: normal;
    text-transform: uppercase;
}

.pb-bracket-team--winner {
    background: transparent;
}

.pb-bracket-team--winner .pb-nba-team__name {
    color: var(--pb-nba-accent);
    text-shadow: none;
}

.pb-bracket-team--eliminated {
    opacity: 0.42;
}

.pb-nba-match--left::after,
.pb-nba-match--right::before {
    content: none;
}

.pb-nba-match--gold .pb-nba-team,
.pb-nba-match--bronze .pb-nba-team {
    border-bottom-color: var(--pb-nba-line) !important;
}

.pb-nba-match--bronze .pb-nba-team {
    border-bottom-color: rgba(255, 255, 255, 0.65) !important;
}

.pb-nba-match--awaiting .pb-nba-team {
    border-style: solid;
    opacity: 0.7;
}

.pb-nba-bracket .pb-bracket-match__live {
    position: absolute;
    top: -18px;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: #1e6b47;
}

.pb-nba-bracket .pb-bracket-match__live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4f94c;
    animation: pb-bracket-live-pulse 1.2s ease-in-out infinite;
}

.pb-bracket-match__live {
    position: absolute;
    top: -18px;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: #1e6b47;
}

.pb-bracket-match__live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1e6b47;
    animation: pb-bracket-live-pulse 1.2s ease-in-out infinite;
}

@keyframes pb-bracket-live-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.85);
    }
}

.pb-bracket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.pb-bracket-match:not(.pb-nba-match) {
    position: relative;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(45, 138, 94, 0.16);
    box-shadow: none;
}

.pb-bracket-round {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #2d8a5e;
    margin-bottom: 6px;
}

@media (max-width: 900px) {
    .pb-nba-bracket {
        overflow-x: hidden;
    }

    .pb-nba-bracket__board {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .pb-nba-bracket__cols,
    .pb-nba-bracket__cols--mirror {
        grid-template-columns: 1fr;
        direction: ltr;
        min-height: 0;
    }

    .pb-nba-bracket__board--ltr .pb-nba-bracket__cols--ltr {
        grid-template-columns: 1fr;
    }

    .pb-nba-bracket__center {
        order: -1;
    }

    .pb-nba-bracket__board--ltr .pb-nba-bracket__col--advance {
        order: 0;
    }

    .pb-nba-match--left::after,
    .pb-nba-match--right::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pb-bracket-match__live::before {
        animation: none !important;
    }
}

.pb-tourney-info-card {
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(45, 138, 94, 0.14);
}

.pb-tourney-msg {
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff8e6;
    color: #856404;
}

.pb-match-meta {
    font-size: 0.75em;
    color: #adb5bd;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.pb-match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.pb-m-team {
    flex: 1;
    font-weight: 700;
    font-size: 0.95em;
    text-align: center;
}

.pb-m-vs {
    font-size: 0.7em;
    font-weight: 900;
    background: #f8f9fa;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #adb5bd;
}

.pb-match-score {
    margin-top: 10px;
    text-align: center;
    font-weight: 800;
    color: #28a745;
    background: #e6ffed;
    padding: 4px;
    border-radius: 4px;
}

.pb-standings-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.pb-standings-table th,
.pb-standings-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pb-standings-table th {
    background: #f8f9fa;
    font-size: 0.85em;
    color: #6c757d;
}

@media (max-width: 600px) {
    .pb-queue-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .pb-queue-summary {
        justify-content: flex-start;
    }

    .pb-queue-scroll,
    .pb-queue-list {
        max-height: 65vh;
    }

    .pb-queue-card-head {
        gap: 8px 10px;
        padding: 10px 12px;
    }

    .pb-queue-match {
        padding: 10px 12px;
        gap: 6px;
    }

    .pb-queue-side {
        padding: 8px 10px;
    }

    .pb-queue-players {
        font-size: 0.8rem;
    }

    .pb-queue-actions {
        justify-content: stretch;
    }

    .pb-queue-actions .pb-btn {
        flex: 1 1 auto;
        min-width: calc(50% - 5px);
    }

    .pb-tourney-tabs {
        flex-direction: column;
    }
}

.pb-btn {
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none !important;
    box-shadow: none;
}

a.pb-btn,
a.pb-btn:link,
a.pb-btn:visited,
a.pb-btn:hover,
a.pb-btn:active {
    text-decoration: none !important;
}

.pb-btn-primary {
    background: #007bff !important;
    color: #ffffff !important;
    border-color: #007bff !important;
}

.pb-btn-success {
    background: #28a745 !important;
    color: #ffffff !important;
    border-color: #28a745 !important;
}

.pb-btn-warning {
    background: #ffc107 !important;
    color: #212529 !important;
    border-color: #ffc107 !important;
}

.pb-btn-danger {
    background: #dc3545 !important;
    color: #ffffff !important;
    border-color: #dc3545 !important;
}

.pb-btn:focus,
.pb-btn:focus-visible,
.pb-attendance-close:focus,
.pb-attendance-close:focus-visible,
.pb-court-btn:focus,
.pb-court-btn:focus-visible,
.pb-recent-refresh:focus,
.pb-recent-refresh:focus-visible,
.pb-tourney-tab-btn:focus,
.pb-tourney-tab-btn:focus-visible {
    outline: 2px solid rgba(45, 138, 94, 0.45);
    outline-offset: 2px;
}

/* Modal */
.pb-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.pb-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pb-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Redesigned Modal Layout */
.pb-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.pb-modal-team-section {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
}

.pb-team-title {
    margin: 0 0 15px 0;
    color: #444;
    font-size: 1.1em;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
    font-weight: bold;
}

@media (max-width: 650px) {
    .pb-modal-grid {
        grid-template-columns: 1fr;
    }
}

/* ——— Join the Queue modal (emotional design) ——— */
.pb-queue-modal {
    background-color: rgba(15, 41, 66, 0.45);
    backdrop-filter: blur(4px);
}

.pb-queue-dialog {
    position: relative;
    max-width: 720px;
    width: 94%;
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 41, 66, 0.22);
    animation: pb-queue-modal-in 0.35s ease;
}

@keyframes pb-queue-modal-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pb-queue-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    float: none;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none !important;
    box-shadow: none;
    outline: none !important;
}

.pb-queue-close:hover {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.pb-queue-close:focus,
.pb-queue-close:focus-visible,
.pb-queue-close:active {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.24) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2) !important;
}

.pb-queue-modal-header {
    text-align: center;
    padding: 28px 24px 22px;
    background: linear-gradient(165deg, #7c6bc4 0%, #5b4a9e 55%, #4a3d7a 100%);
    color: #fff;
}

.pb-queue-modal-icon {
    display: flex;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    margin: 0 auto 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.pb-queue-modal-eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f0ecfa;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.pb-queue-modal-header h3 {
    margin: 0 0 10px;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.pb-queue-modal-lead {
    margin: 0 auto;
    max-width: 400px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.pb-player-swap-modal {
    z-index: 100220;
}

.pb-player-swap-modal.pb-queue-modal {
    background-color: rgba(15, 41, 66, 0.45);
    backdrop-filter: blur(4px);
}

.pb-player-swap-modal .pb-player-swap-dialog,
.pb-player-swap-modal .pb-queue-dialog {
    position: relative;
    max-width: 520px;
    width: min(92vw, 520px);
    max-height: min(82vh, 82dvh);
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff !important;
    box-shadow: var(--pb-emotion-shadow);
    animation: pb-queue-modal-in 0.35s ease;
}

.pb-player-swap-modal__header h3 {
    margin-bottom: 0;
}

.pb-player-swap-modal__source {
    display: inline-block;
    margin: 10px auto 0;
    padding: 5px 14px;
    max-width: calc(100% - 32px);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--pb-emotion-navy-text);
    background: var(--pb-emotion-lime);
    border-radius: var(--pb-emotion-radius-pill);
    box-shadow: 0 2px 8px rgba(212, 249, 76, 0.35);
}

.pb-player-swap-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 14px 16px 16px;
    background: #fff;
}

.pb-player-swap-modal__search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.pb-player-swap-modal__search-wrap:focus-within {
    border-color: rgba(45, 138, 94, 0.35);
    box-shadow: 0 0 0 3px rgba(45, 138, 94, 0.1);
}

.pb-player-swap-modal__search-icon {
    flex-shrink: 0;
    color: var(--pb-emotion-green-muted);
    line-height: 0;
}

.pb-player-swap-modal__search {
    flex: 1 1 auto;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.92rem;
    color: var(--pb-emotion-navy-text) !important;
    -webkit-appearance: none;
    appearance: none;
}

.pb-player-swap-modal__search::placeholder {
    color: rgba(74, 124, 102, 0.72);
    opacity: 1;
}

.pb-player-swap-modal__search:focus {
    outline: none !important;
}

.pb-player-swap-modal__list {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-height: min(50vh, 360px);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #e6ece8;
    border-radius: 12px;
    background: var(--pb-emotion-green-soft);
    scrollbar-width: thin;
}

.pb-player-swap-modal__list::-webkit-scrollbar {
    width: 6px;
}

.pb-player-swap-modal__list::-webkit-scrollbar-thumb {
    background: rgba(45, 138, 94, 0.28);
    border-radius: 999px;
}

.pb-player-swap-modal__letter {
    grid-column: 1 / -1;
    padding: 4px 4px 2px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pb-emotion-green-deep);
    background: transparent;
    border: none;
}

.pb-player-swap-modal__option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #e2ebe6 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--pb-emotion-navy-text) !important;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pb-player-swap-modal__option:hover,
.pb-player-swap-modal__option:focus-visible {
    background: #fff !important;
    border-color: rgba(45, 138, 94, 0.35) !important;
    box-shadow: 0 2px 8px rgba(45, 138, 94, 0.1);
    outline: none !important;
    transform: translateY(-1px);
}

.pb-player-swap-modal__option-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    width: 100%;
}

.pb-player-swap-modal__option-name {
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.3;
}

.pb-player-swap-modal__option-dupr {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--pb-emotion-green-muted);
}

.pb-player-swap-modal__option-context {
    font-size: 0.72rem;
    color: var(--pb-emotion-green);
    font-weight: 600;
    line-height: 1.3;
}

.pb-player-swap-modal__empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 24px 14px;
    text-align: center;
    color: var(--pb-emotion-green-muted);
    font-size: 0.92rem;
}

@media (max-width: 520px) {
    .pb-player-swap-modal__list {
        grid-template-columns: 1fr;
    }
}

.pb-queue-form-body {
    padding: 18px 18px 8px;
    background: #fff;
    max-height: min(55vh, 480px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.pb-queue-form-body::-webkit-scrollbar {
    width: 6px;
}

.pb-queue-form-body::-webkit-scrollbar-thumb {
    background: #c5d0da;
    border-radius: 3px;
}

.pb-queue-modal .pb-queue-teams {
    margin: 0;
    gap: 14px;
}

.pb-queue-modal .pb-modal-team-section {
    background: #fafbfc;
    border: 2px solid #e8ecf0;
    border-radius: 14px;
    padding: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pb-queue-modal .pb-modal-team-section:focus-within {
    border-color: #b8a9e8;
    box-shadow: 0 4px 14px rgba(91, 74, 158, 0.1);
}

.pb-queue-modal .pb-team-title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #5b4a9e;
    border-bottom: 2px solid #e8e0f8;
}

.pb-queue-modal .form-group {
    margin-bottom: 14px;
}

.pb-queue-modal .form-group:last-child {
    margin-bottom: 0;
}

.pb-queue-modal .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3d4f5f;
}

.pb-queue-modal .form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    border: none;
    border-radius: 10px;
    background: #f3f5f7;
    color: #0f2942;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.pb-queue-modal .form-group input[type="text"]:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(91, 74, 158, 0.2);
}

.pb-queue-modal .pb-randomizer-row {
    margin-top: 8px;
    gap: 4px;
}

.pb-queue-modal .pb-btn-rand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0;
    line-height: 1;
    border-radius: 6px;
    font-size: 11px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pb-queue-modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px 20px;
    background: #f6f8fa;
    border-top: 1px solid #e8ecf0;
}

.pb-queue-warmup {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: #5a6b7d;
    cursor: pointer;
}

.pb-queue-warmup input {
    width: auto;
    margin: 0;
    accent-color: #5b4a9e;
    cursor: pointer;
}

.pb-queue-warmup-spacer {
    flex: 1;
    min-width: 0;
}

.pb-queue-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}

.pb-queue-modal .pb-queue-randomize,
.pb-queue-modal .pb-queue-skill-match,
.pb-queue-modal .pb-queue-fair-stack,
.pb-queue-modal .pb-queue-all-active,
.pb-queue-modal .pb-queue-submit {
    padding: 11px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 10px;
    -webkit-appearance: none;
    appearance: none;
}

.pb-queue-modal .pb-queue-submit {
    background: linear-gradient(135deg, #3da06e 0%, #2d8a5e 100%) !important;
    border: 1px solid #2d8a5e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(45, 138, 94, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pb-queue-modal .pb-queue-submit:hover {
    box-shadow: 0 6px 18px rgba(45, 138, 94, 0.38);
}

.pb-queue-modal .pb-queue-randomize {
    background: #fff8e6 !important;
    color: #7d6608 !important;
    border: 1px solid #f6e08d !important;
}

.pb-queue-modal .pb-queue-randomize:hover {
    background: #fff3cd !important;
    border-color: #edd87a !important;
}

.pb-queue-modal .pb-queue-skill-match {
    background: linear-gradient(135deg, #3da06e 0%, #2d8a5e 100%) !important;
    border: 1px solid #2d8a5e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(45, 138, 94, 0.3);
}

.pb-queue-modal .pb-queue-skill-match:hover {
    box-shadow: 0 6px 18px rgba(45, 138, 94, 0.38);
}

.pb-queue-modal .pb-queue-skill-match.is-busy {
    opacity: 0.7;
    pointer-events: none;
}

.pb-queue-modal .pb-queue-fair-stack {
    background: linear-gradient(135deg, #4a90c2 0%, #2f6fa3 100%) !important;
    border: 1px solid #2f6fa3 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(47, 111, 163, 0.28);
}

.pb-queue-modal .pb-queue-fair-stack:hover {
    box-shadow: 0 6px 18px rgba(47, 111, 163, 0.36);
}

.pb-queue-modal .pb-queue-fair-stack.is-busy {
    opacity: 0.7;
    pointer-events: none;
}

.pb-queue-modal .pb-queue-all-active {
    background: linear-gradient(135deg, #6b5b95 0%, #5b4a9e 100%) !important;
    border: 1px solid #5b4a9e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(91, 74, 158, 0.28);
}

.pb-queue-modal .pb-queue-all-active:hover {
    box-shadow: 0 6px 18px rgba(91, 74, 158, 0.36);
}

.pb-queue-modal .pb-queue-all-active.is-busy {
    opacity: 0.7;
    pointer-events: none;
}

/* Skill-match toggle that sits next to Queue all active */
.pb-queue-skill-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    padding: 5px 10px 5px 8px;
    border-radius: 20px;
    border: 1px solid #c8d9e8;
    background: #f5f9fd;
    font-size: 13px;
    font-weight: 500;
    color: #4a6880;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    vertical-align: middle;
}

.pb-queue-skill-toggle:has(.pb-queue-skill-toggle__input:checked) {
    background: linear-gradient(135deg, #e8f5ee 0%, #d8f0e2 100%);
    border-color: #2d8a5e;
    color: #1e6b47;
}

.pb-queue-skill-toggle__input {
    appearance: none;
    -webkit-appearance: none;
    width: 30px;
    height: 16px;
    border-radius: 8px;
    background: #c8d9e8;
    position: relative;
    flex-shrink: 0;
    transition: background 0.18s;
    cursor: pointer;
}

.pb-queue-skill-toggle__input::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: transform 0.18s;
}

.pb-queue-skill-toggle__input:checked {
    background: #2d8a5e;
}

.pb-queue-skill-toggle__input:checked::after {
    transform: translateX(14px);
}

.pb-fair-stack-preview {
    margin: 0 24px 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(47, 111, 163, 0.22);
    background: linear-gradient(165deg, #f4f9fd 0%, #eaf4fb 100%);
}

.pb-fair-stack-preview__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.88rem;
}

.pb-fair-stack-preview__head strong {
    color: #2f6fa3;
    font-size: 0.95rem;
}

.pb-fair-stack-preview__sub {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: #4a6578;
    line-height: 1.45;
}

.pb-fair-stack-preview--great {
    border-color: rgba(45, 138, 94, 0.28);
    background: linear-gradient(165deg, #f3fbf7 0%, #e8f7ef 100%);
}

.pb-fair-stack-preview--great .pb-fair-stack-preview__head strong {
    color: #2d8a5e;
}

.pb-fair-stack-preview--good {
    border-color: rgba(47, 111, 163, 0.28);
}

.pb-fair-stack-preview--fair {
    border-color: rgba(125, 102, 8, 0.24);
    background: linear-gradient(165deg, #fffdf7 0%, #fff8e6 100%);
}

.pb-fair-stack-preview--fair .pb-fair-stack-preview__head strong {
    color: #7d6608;
}

@media (max-width: 650px) {
    .pb-queue-modal-header {
        padding: 24px 18px 18px;
    }

    .pb-queue-modal-header h3 {
        font-size: 1.35rem;
    }

    .pb-queue-form-body {
        padding: 14px;
    }

    .pb-queue-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .pb-queue-modal-actions {
        margin-left: 0;
        width: 100%;
    }

    .pb-queue-modal-actions .pb-btn {
        flex: 1;
        min-width: 0;
    }
}

/* ——— Special Guest Match modal (emotional design) ——— */
.pb-special-modal {
    background-color: rgba(15, 41, 66, 0.45);
    backdrop-filter: blur(4px);
}

.pb-special-dialog {
    position: relative;
    max-width: 720px;
    width: 94%;
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 41, 66, 0.22);
    animation: pb-special-modal-in 0.35s ease;
}

@keyframes pb-special-modal-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pb-special-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    float: none;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none !important;
    box-shadow: none;
    outline: none !important;
}

.pb-special-close:hover {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.pb-special-close:focus,
.pb-special-close:focus-visible,
.pb-special-close:active {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.24) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2) !important;
}

.pb-special-modal-header {
    text-align: center;
    padding: 28px 24px 22px;
    background: linear-gradient(165deg, #f39c12 0%, #e67e22 55%, #d35400 100%);
    color: #fff;
}

.pb-special-modal-icon {
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.pb-special-modal-eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fef5e7;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.pb-special-modal-header h3 {
    margin: 0 0 10px;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.pb-special-modal-lead {
    margin: 0 auto;
    max-width: 420px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.pb-special-form-body {
    padding: 18px 18px 8px;
    background: #fff;
    max-height: min(55vh, 480px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.pb-special-form-body::-webkit-scrollbar {
    width: 6px;
}

.pb-special-form-body::-webkit-scrollbar-thumb {
    background: #c5d0da;
    border-radius: 3px;
}

.pb-special-modal .pb-special-teams {
    margin: 0;
    gap: 14px;
}

.pb-special-modal .pb-modal-team-section {
    background: #fafbfc;
    border: 2px solid #e8ecf0;
    border-radius: 14px;
    padding: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pb-special-modal .pb-modal-team-section:focus-within {
    border-color: #f5cba7;
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.12);
}

.pb-special-modal .pb-team-title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #d35400;
    border-bottom: 2px solid #fdebd0;
}

.pb-special-modal .form-group {
    margin-bottom: 14px;
}

.pb-special-modal .form-group:last-child {
    margin-bottom: 0;
}

.pb-special-modal .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3d4f5f;
}

.pb-special-modal .form-group input[type="text"]:not(.pb-queue-player-input) {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    border: none;
    border-radius: 10px;
    background: #f3f5f7;
    color: #0f2942;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.pb-special-modal .form-group input[type="text"]:not(.pb-queue-player-input):focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.22);
}

.pb-special-modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px 20px;
    background: #f6f8fa;
    border-top: 1px solid #e8ecf0;
}

.pb-special-note {
    flex: 1;
    min-width: 200px;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #6b7c8d;
}

.pb-special-modal .pb-special-submit {
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(135deg, #f5b041 0%, #e67e22 100%) !important;
    border: 1px solid #d35400 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pb-special-modal .pb-special-submit:hover {
    box-shadow: 0 6px 18px rgba(230, 126, 34, 0.42);
    filter: brightness(1.03);
}

@media (max-width: 650px) {
    .pb-special-modal-header {
        padding: 24px 18px 18px;
    }

    .pb-special-modal-header h3 {
        font-size: 1.35rem;
    }

    .pb-special-form-body {
        padding: 14px;
    }

    .pb-special-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .pb-special-modal .pb-special-submit {
        width: 100%;
    }
}

/* ——— Who Won? modal (emotional design) ——— */
.pb-winner-modal {
    background-color: rgba(15, 41, 66, 0.45);
    backdrop-filter: blur(4px);
}

.pb-winner-dialog {
    position: relative;
    max-width: 480px;
    width: 92%;
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 41, 66, 0.22);
    animation: pb-winner-modal-in 0.35s ease;
}

@keyframes pb-winner-modal-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pb-winner-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    float: none;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none !important;
    box-shadow: none;
    outline: none !important;
}

.pb-winner-close:hover {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.pb-winner-close:focus,
.pb-winner-close:focus-visible,
.pb-winner-close:active {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.24) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2) !important;
}

.pb-winner-header {
    text-align: center;
    padding: 28px 24px 20px;
    background: linear-gradient(165deg, #2d8a5e 0%, #256b4a 55%, #1e563c 100%);
    color: #fff;
}

.pb-winner-icon {
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.pb-winner-eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #e8f8ef;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.pb-winner-header h3 {
    margin: 0 0 10px;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.pb-winner-lead {
    margin: 0 auto;
    max-width: 340px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.pb-winner-body {
    padding: 20px 18px 24px;
    background: #fff;
}

.pb-winner-match {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    gap: 12px;
    align-items: stretch;
}

.pb-winner-row {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 10px;
    align-items: stretch;
    min-height: 100px;
}

.pb-winner-team-btn {
    width: 100%;
    height: 100%;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 12px;
    box-sizing: border-box;
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(15, 41, 66, 0.1);
}

.pb-winner-team-btn .pb-winner-team-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff !important;
}

.pb-winner-team-btn .pb-winner-players {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92) !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pb-winner-team-btn--names-only .pb-winner-players {
    font-size: 1.05rem;
    line-height: 1.5;
}

.pb-winner-team-btn--t1 {
    background: linear-gradient(135deg, #3d8bfd 0%, #0d6efd 100%) !important;
    border-color: #0d6efd !important;
}

.pb-winner-team-btn--t2 {
    background: linear-gradient(135deg, #3da06e 0%, #2d8a5e 100%) !important;
    border-color: #2d8a5e !important;
}

.pb-winner-team-btn:hover {
    box-shadow: 0 8px 20px rgba(15, 41, 66, 0.16);
}

.pb-winner-team-btn:focus,
.pb-winner-team-btn:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(45, 138, 94, 0.35) !important;
}

.pb-winner-team-btn.is-busy,
.pb-winner-team-btn:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
    pointer-events: none;
}

.pb-winner-team-btn.is-busy:hover {
    transform: none;
    box-shadow: 0 4px 14px rgba(15, 41, 66, 0.1);
}

.pb-winner-score-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    height: 100%;
    min-height: 100px;
    margin: 0;
    cursor: default;
    box-sizing: border-box;
}

.pb-winner-score-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7c8d;
}

.pb-winner-score-input {
    width: 100%;
    height: 52px;
    flex-shrink: 0;
    padding: 8px;
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
    color: #0f2942;
    background: #f3f5f7;
    border: none;
    border-radius: 12px;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, background 0.2s ease;
    -moz-appearance: textfield;
}

.pb-winner-score-input::-webkit-outer-spin-button,
.pb-winner-score-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pb-winner-score-input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45, 138, 94, 0.22);
}

.pb-winner-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb-winner-divider span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #adb5bd;
    background: #f6f8fa;
    border: 1px solid #e8ecf0;
    border-radius: 50%;
}

@media (max-width: 480px) {
    .pb-winner-header {
        padding: 24px 18px 18px;
    }

    .pb-winner-header h3 {
        font-size: 1.35rem;
    }

    .pb-winner-row {
        grid-template-columns: 1fr 80px;
    }

    .pb-winner-score-wrap {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
    }
}

/* ——— Custom alert / confirm dialog (simple) ——— */
.pb-dialog-modal {
    /* Above attendance (100000), join modal (99999), and uncheck modal (100060). */
    z-index: 100200;
    background-color: rgba(15, 41, 66, 0.45);
    backdrop-filter: blur(4px);
}

.pb-dialog-panel {
    position: relative;
    max-width: 400px;
    width: 92%;
    margin: auto;
    padding: 0;
    border: 1px solid #e8ecf0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 48px rgba(15, 41, 66, 0.18);
    animation: pb-dialog-in 0.3s ease;
}

@keyframes pb-dialog-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pb-dialog-content {
    padding: 22px 22px 8px;
    text-align: center;
}

.pb-dialog-content h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f2942;
}

.pb-dialog-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #5a6b7d;
}

.pb-dialog-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 16px 18px 20px;
}

.pb-dialog-footer .pb-btn {
    min-width: 120px;
    padding: 11px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 10px;
    -webkit-appearance: none;
    appearance: none;
}

.pb-dialog-cancel {
    background: #eef2f6 !important;
    color: #4a5a6a !important;
    border: 1px solid #d9e1e8 !important;
}

.pb-dialog-cancel:hover {
    background: #e2e8ee !important;
}

.pb-dialog-note {
    margin-top: 10px;
    padding: 10px 12px;
    background: #fff8e1;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.5;
    text-align: center;
}

.pb-dialog-confirm--ok,
.pb-dialog--alert .pb-dialog-confirm {
    background: linear-gradient(135deg, #3da06e 0%, #2d8a5e 100%) !important;
    border: 1px solid #2d8a5e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(45, 138, 94, 0.3);
}

.pb-dialog--confirm .pb-dialog-confirm--primary {
    background: linear-gradient(135deg, #f5b041 0%, #e67e22 100%) !important;
    border: 1px solid #d35400 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.pb-dialog--alert .pb-dialog-footer {
    justify-content: center;
}

.pb-dialog--alert .pb-dialog-footer .pb-dialog-confirm {
    flex: 1;
    max-width: 280px;
}

.pb-dialog--confirm .pb-dialog-footer {
    justify-content: center;
}

/* Three-way choice (e.g. remove player) — stacked full-width actions */
.pb-dialog--choice .pb-dialog-panel {
    max-width: 420px;
}

.pb-dialog--choice .pb-dialog-content {
    padding: 24px 24px 10px;
    text-align: left;
}

.pb-dialog--choice .pb-dialog-content h3 {
    text-align: left;
}

.pb-dialog--choice .pb-dialog-content p {
    text-align: left;
}

.pb-dialog--choice .pb-dialog-footer {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 20px 22px;
}

.pb-dialog--choice .pb-dialog-footer .pb-btn {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    white-space: normal;
    line-height: 1.35;
    padding: 12px 16px;
    text-align: center;
    box-sizing: border-box;
}

.pb-dialog--choice .pb-dialog-confirm.pb-dialog-confirm--primary {
    order: 1;
    background: linear-gradient(135deg, #2d8a5e 0%, #1e6b47 100%) !important;
    border: 1px solid #1e6b47 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(30, 107, 71, 0.28) !important;
}

.pb-dialog--choice .pb-dialog-confirm.pb-dialog-confirm--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #34966a 0%, #247a52 100%) !important;
    color: #ffffff !important;
}

.pb-dialog--choice .pb-dialog-alt {
    order: 2;
    background: #f0faf5 !important;
    border: 1px solid #9fd4b8 !important;
    color: #1e6b47 !important;
    box-shadow: none !important;
}

.pb-dialog--choice .pb-dialog-alt:hover:not(:disabled) {
    background: #e3f5ec !important;
    border-color: #2d8a5e !important;
    color: #0a1628 !important;
}

.pb-dialog--choice .pb-dialog-cancel {
    order: 3;
    background: #ffffff !important;
    border: 1px solid #d9e1e8 !important;
    color: #5a6b7d !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.pb-dialog--choice .pb-dialog-cancel:hover:not(:disabled) {
    background: #f8fafb !important;
    border-color: #c5d0da !important;
    color: #3d4f61 !important;
}

body.pb-dialog-open {
    overflow: hidden;
}

@media (max-width: 400px) {
    .pb-dialog--confirm .pb-dialog-footer {
        flex-direction: column-reverse;
        align-items: center;
    }

    .pb-dialog--choice .pb-dialog-panel {
        width: min(100%, 420px);
    }
}

/* Randomizer Buttons */
.pb-randomizer-row {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.pb-btn-rand {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white !important;
    padding: 0;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    transition: opacity 0.2s;
    height: 24px;
    min-height: 24px;
}

.pb-btn-rand:hover {
    opacity: 0.8;
}

.pb-skill-match-preview {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(45, 138, 94, 0.22);
    background: linear-gradient(165deg, #ffffff 0%, var(--pb-emotion-green-soft, #f0faf4) 100%);
}

.pb-skill-match-preview__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
    color: var(--pb-emotion-green-deep, #1e563c);
    font-size: 0.88rem;
}

.pb-skill-match-preview__head strong {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pb-skill-match-preview__sub {
    margin: 0;
    font-size: 0.78rem;
    color: var(--pb-emotion-green-muted, #4a7c66);
}

.pb-skill-match-preview--good {
    border-color: rgba(45, 138, 94, 0.35);
}

.pb-skill-match-preview--good .pb-skill-match-preview__head strong {
    color: var(--pb-emotion-green, #2d8a5e);
}

.pb-skill-match-preview--fair {
    border-color: rgba(217, 119, 6, 0.28);
}

.pb-skill-match-preview--fair .pb-skill-match-preview__head strong {
    color: #b45309;
}

.pb-skill-match-preview--wide {
    border-color: rgba(192, 57, 43, 0.28);
    background: linear-gradient(165deg, #fff8f7 0%, #fff1f0 100%);
}

.pb-skill-match-preview--wide .pb-skill-match-preview__head strong {
    color: #c0392b;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Court Grid (shared + courts page) */
.pb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pb-courts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* ——— Courts (frontend) ——— */
.pb-courts {
    max-width: 1100px;
    margin: 0 auto 40px;
}

.pb-courts-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.pb-courts-eyebrow {
    display: inline-block;
    margin: 0 0 6px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0d6b4f;
    background: #e8f7f0;
    border-radius: 999px;
}

.pb-courts-hero h2 {
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f2942;
}

.pb-courts-intro {
    margin: 0;
    max-width: 480px;
    font-size: 1rem;
    line-height: 1.5;
    color: #5a6b7d;
}

.pb-courts-summary {
    display: flex;
    gap: 12px;
}

.pb-courts-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 41, 66, 0.08);
}

.pb-courts-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.pb-courts-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7c8d;
    margin-top: 4px;
}

.pb-courts-stat--live .pb-courts-stat-value {
    color: #c0392b;
}

.pb-courts-stat--open .pb-courts-stat-value {
    color: #27ae60;
}

.pb-courts-loading,
.pb-courts-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: #6b7c8d;
}

.pb-courts-empty-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
}

.pb-courts-empty-sub {
    margin: 0;
    font-size: 0.95rem;
}

.pb-court-card {
    border: none;
    border-radius: 16px;
    overflow: visible;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 41, 66, 0.1);
    transition: box-shadow 0.2s ease;
    animation: pb-court-in 0.4s ease backwards;
}

.pb-court-card.pb-court-card--settled {
    animation: none;
}

.pb-court-card:hover {
    box-shadow: 0 10px 32px rgba(15, 41, 66, 0.12);
}

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

.pb-court-card.available {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f0fdf4 0%, #e8f7f0 100%);
}

.pb-court-card.available .pb-court-header {
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfbf3 100%);
}

.pb-court-card.is-paused .pb-court-visual {
    filter: grayscale(0.15);
    opacity: 0.92;
}

.pb-court-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f6f8fa;
}

.pb-court-name {
    justify-self: start;
    font-size: 1rem;
    font-weight: 700;
    color: #0f2942;
}

.pb-court-header-timer {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 2px 10px;
    text-align: center;
}

.pb-court-header-timer .pb-timer {
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #0f2942;
    line-height: 1.1;
}

.pb-court-header-timer.is-warmup .pb-timer {
    color: #d68910;
}

.pb-court-header-timer.is-paused .pb-timer {
    color: #9a7b0a;
}

.pb-court-header-timer .pb-timer.text-danger {
    color: #c0392b;
}

.pb-court-header-badges {
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.pb-court-status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 999px;
}

.pb-court-status--live {
    color: #922b21;
    background: #fdecea;
}

.pb-court-status--paused {
    color: #7d6608;
    background: #fef9e7;
}

.pb-court-status--open {
    color: #1e8449;
    background: #e8f8ef;
}

.pb-court-status--disabled {
    color: #9b2c2c;
    background: #fde8e8;
}

.pb-court-card.disabled {
    opacity: 0.88;
}

.pb-court-card.disabled .pb-court-header {
    background: #f8fafc;
}

.pb-court-open--disabled .pb-court-open-title {
    color: #9b2c2c;
}

.pb-court-card.disabled .pb-court-btn--start-next:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.35);
    background: #e2e8f0 !important;
    color: #64748b !important;
    border-color: #cbd5e1 !important;
}

.pb-court-card.disabled .pb-court-footer:not(.pb-court-footer--empty) {
    display: block;
    background: #f1f5f9;
}

/* Special guest match on court */
.pb-court-card.pb-court-card--special {
    box-shadow: 0 6px 24px rgba(214, 170, 40, 0.18);
}

.pb-court-card.pb-court-card--special .pb-court-header {
    background: linear-gradient(90deg, #fef9e7 0%, #fef5e7 100%);
}

.pb-court-status--special {
    color: #7d6608;
    background: #f9e79f;
}

.pb-court-card.pb-court-card--special .pb-court-visual {
    background: linear-gradient(165deg, #6b8f3e 0%, #8a9432 48%, #b8942e 100%);
    box-shadow: inset 0 0 72px rgba(255, 244, 180, 0.22);
}

.pb-court-card.pb-court-card--special.is-paused .pb-court-visual {
    filter: grayscale(0.1);
    opacity: 0.92;
}

.pb-court-visual {
    background: linear-gradient(165deg, #2d8a5e 0%, #256b4a 55%, #1e563c 100%);
    color: #fff;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    position: relative;
    overflow: visible;
}

.pb-court-visual > .pb-court-announce-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
}

.pb-court-announce-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(212, 249, 76, 0.42) !important;
    border-radius: 999px !important;
    background: rgba(10, 22, 40, 0.82) !important;
    background-image: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28) !important;
    color: var(--pb-emotion-lime, #d4f94c) !important;
    cursor: pointer;
    appearance: none;
    transition:
        transform 0.18s var(--pb-emotion-ease-soft, ease),
        border-color 0.18s var(--pb-emotion-ease-soft, ease),
        background 0.18s var(--pb-emotion-ease-soft, ease),
        box-shadow 0.18s var(--pb-emotion-ease-soft, ease);
}

.pb-court-announce-btn:hover,
.pb-court-announce-btn:focus-visible {
    transform: scale(1.06);
    border-color: rgba(212, 249, 76, 0.72) !important;
    background: rgba(10, 22, 40, 0.94) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.34) !important;
    outline: none;
}

.pb-court-announce-btn:active {
    transform: scale(0.96);
}

.pb-court-announce-btn__icon {
    display: block;
    flex-shrink: 0;
}

.pb-next-alert__announce-btn {
    position: absolute;
    top: clamp(12px, 2vw, 18px);
    right: clamp(12px, 2vw, 18px);
    z-index: 3;
}

.pb-court-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 14px 12px;
}

.pb-team-1 {
    border-bottom: none;
}

.pb-net {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 6px;
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    position: relative;
}

.pb-net span {
    position: absolute;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: rgba(0, 0, 0, 0.35);
    background: #fff;
    padding: 1px 6px;
    border-radius: 3px;
    top: -10px;
}

/* Team label row — wraps label + optional pair badge */
.pb-team-label-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.pb-team-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.85);
}

/* Locked-pair badge on court cards */
.pb-court-pair-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 7px 1px 5px;
    background: linear-gradient(135deg, #0a1628 0%, #1e6b47 100%);
    border: 1px solid #d4f94c;
    border-radius: 20px;
    color: #d4f94c;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 0 6px rgba(212, 249, 76, 0.25);
}

.pb-court-pair-badge .pb-queue-lock-pair-badge__svg {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    fill: #d4f94c !important;
}

.pb-court-pair-badge__text {
    color: #d4f94c;
}

.pb-team-players {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.45;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    padding-top: 6px;
    overflow: visible;
}

.pb-team-players .pb-player-wrapper {
    position: relative;
    z-index: 1;
}

.pb-team-players .pb-player-wrapper:hover {
    z-index: 10000;
}

.pb-team-players .pb-player-wrapper .pb-tooltip {
    padding: 16px 16px 14px;
}

.pb-team-players .pb-player-wrapper:first-child {
    display: inline-block;
    padding-top: 4px;
}

.pb-player-guest-tag {
    font-weight: 700;
    font-size: 0.88em;
    opacity: 0.95;
}

.pb-court-visual .pb-player-guest-tag {
    color: rgba(255, 248, 210, 0.98);
}

.pb-queue-players .pb-player-guest-tag {
    color: #7d6608;
}

.pb-timer-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    color: #fff;
}

.pb-timer-pill.is-warmup {
    background: rgba(243, 156, 18, 0.9);
}

.pb-timer-pill.is-paused {
    background: rgba(127, 140, 141, 0.9);
}

.pb-timer-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.pb-timer {
    font-size: 1.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pb-court-open {
    flex: 1;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background: transparent;
}

.pb-court-open-inner {
    text-align: center;
    max-width: 220px;
}

.pb-court-open-icon {
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    margin: 0 auto 12px;
    line-height: 1;
}

.pb-court-open-title {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e8449;
}

.pb-court-open-sub {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #5a6b7d;
}

.pb-court-body {
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pb-court-card.occupied {
    display: flex;
    flex-direction: column;
}

.pb-court-card.occupied .pb-court-visual {
    flex: 1;
}

.pb-court-footer {
    padding: 12px 14px;
    background: #f6f8fa;
    flex-shrink: 0;
}

.pb-court-footer--empty {
    padding: 0;
    min-height: 0;
}

.pb-court-card.available .pb-court-footer--empty {
    display: none;
}

.pb-court-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    justify-content: center;
}

#pb-courts-grid .pb-court-actions button.pb-court-btn[type="button"],
.pb-court-actions button.pb-court-btn[type="button"] {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    white-space: nowrap;
    box-sizing: border-box;
    vertical-align: middle;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.pb-court-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    white-space: nowrap;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f2942 !important;
    text-decoration: none !important;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.pb-court-btn:hover {
    filter: brightness(1.06);
}

.pb-court-btn.is-busy {
    opacity: 0.65;
    cursor: wait;
    transform: none;
    filter: none;
}

.pb-court-btn.is-busy:hover {
    transform: none;
    filter: none;
}

.pb-court-btn--pause {
    background: #fef3cd !important;
    color: #7d6608 !important;
    border-color: #f6e08d !important;
}

.pb-court-btn--swap {
    background: #e8f4fc !important;
    color: #1a5276 !important;
    border-color: #c7dded !important;
}

.pb-court-btn--t1 {
    background: #dbeafe !important;
    color: #1e40af !important;
    border-color: #93c5fd !important;
    font-weight: 800 !important;
}

.pb-court-btn--t2 {
    background: #ffedd5 !important;
    color: #c2410c !important;
    border-color: #fdba74 !important;
    font-weight: 800 !important;
}

.pb-court-btn--start-next {
    background: linear-gradient(135deg, #0a1628 0%, #1e6b47 100%) !important;
    color: #d4f94c !important;
    border-color: #1e6b47 !important;
    font-weight: 700 !important;
}

.pb-court-card.available .pb-court-footer:not(.pb-court-footer--empty) {
    display: block;
    background: rgba(232, 245, 238, 0.65);
}

.pb-court-btn--t1:disabled,
.pb-court-btn--t2:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.35);
}

.pb-court-btn--t1:disabled:hover,
.pb-court-btn--t2:disabled:hover {
    filter: grayscale(0.35);
}

.pb-court-actions .pb-court-btn:focus,
.pb-court-actions .pb-court-btn:focus-visible,
.pb-court-actions .pb-court-btn:active {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(45, 138, 94, 0.25) !important;
}

/* ── Court player chip drag-and-drop swap ─────────────────────────────── */
.pb-court-player {
    display: flex;
    align-items: center;
    padding: 3px 6px;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: background 0.15s, opacity 0.15s;
}
.pb-court-player--draggable {
    cursor: grab;
    border: 1px solid transparent;
}
.pb-court-player--draggable:active {
    cursor: grabbing;
}
.pb-court-player--draggable:hover {
    background: rgba(45, 138, 94, 0.07);
    border-color: rgba(45, 138, 94, 0.25);
}
.pb-court-player--dragging {
    opacity: 0.35;
    border-style: dashed !important;
    border-color: #2d8a5e !important;
}
.pb-court-player--drag-over {
    background: rgba(45, 138, 94, 0.12) !important;
    border-color: #2d8a5e !important;
    box-shadow: 0 0 0 2px rgba(45, 138, 94, 0.35) !important;
}
.pb-court-player--swapping {
    opacity: 0.5;
    pointer-events: none;
}

.pb-court-player--open {
    border: 1px dashed rgba(45, 138, 94, 0.35);
    background: rgba(45, 138, 94, 0.04);
}

.pb-court-player__open-hint {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    line-height: 1.3;
    color: #fff;
}

.pb-court-player--open .pb-court-slot-pick {
    display: inline-block;
    margin: 0;
    padding: 2px 10px;
    border: none !important;
    border-radius: 999px !important;
    background: #fff !important;
    background-image: none !important;
    color: #153d2b !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    line-height: 1.3;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.pb-court-player--open .pb-court-slot-pick:hover:not(:disabled) {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35) !important;
}

.pb-court-player--open .pb-court-slot-pick.is-open,
.pb-court-player--open .pb-court-slot-pick:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(212, 249, 76, 0.65) !important;
}

.pb-court-player--open .pb-court-slot-pick:disabled,
.pb-court-player--open .pb-court-slot-pick.is-busy {
    opacity: 0.65;
    cursor: wait;
}

.pb-court-player__body {
    flex: 1 1 auto;
    min-width: 0;
}

.pb-court-player__actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 4px;
}

.pb-court-player-remove {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: none !important;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.65) !important;
    color: #9aa8b5 !important;
    line-height: 0;
    cursor: pointer;
    opacity: 0.92;
    transition: color 0.15s ease, opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.pb-court-player-remove:hover:not(:disabled) {
    opacity: 1;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #7a8a99 !important;
}

.pb-court-player-remove:focus-visible {
    outline: 2px solid rgba(45, 138, 94, 0.45) !important;
    outline-offset: 1px;
}

.pb-court-player-remove:active:not(:disabled) {
    transform: scale(0.94);
}

.pb-court-player-remove:disabled,
.pb-court-player-remove.is-busy {
    opacity: 0.35;
    cursor: not-allowed;
}

.pb-court-player__busy {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1e6b47;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 6px;
}

.pb-court-player--draggable {
    position: relative;
}

.pb-court-player-swap {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: none !important;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.65) !important;
    color: #2d8a5e !important;
    line-height: 0;
    cursor: pointer;
    opacity: 0.92;
    transition: color 0.15s ease, opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.pb-court-player-swap:hover:not(:disabled) {
    opacity: 1;
    background: rgba(255, 255, 255, 0.95) !important;
    transform: rotate(-18deg);
}

.pb-court-player-swap:focus-visible {
    outline: 2px solid rgba(45, 138, 94, 0.45) !important;
    outline-offset: 1px;
}

.pb-court-player-swap:active:not(:disabled) {
    transform: scale(0.94);
}

/* ── end court drag ───────────────────────────────────────────────────── */

/* Winner modal styles live in .pb-winner-modal block below */

@media (max-width: 600px) {
    .pb-courts-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .pb-courts-summary {
        justify-content: center;
    }

    .pb-court-actions {
        flex-direction: column;
        align-items: stretch;
    }

    #pb-courts-grid .pb-court-actions button.pb-court-btn[type="button"],
    .pb-court-actions button.pb-court-btn[type="button"],
    .pb-court-btn {
        width: 100%;
        min-height: 42px;
    }
}

/* ——— Open play dashboard: 3 columns (recent open) or 2 columns (recent hidden) ——— */
.pb-open-play-dashboard {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 40px;
    box-sizing: border-box;
    position: relative;
}

.pb-open-play-dashboard--has-staff-tools {
    padding-top: 48px;
}

.pb-open-play-dashboard__toolbar {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    box-sizing: border-box;
}

#pb-open-play-dashboard .pb-open-play-dashboard__toolbar .pb-btn,
#pb-open-play-dashboard .pb-open-play-dashboard__toolbar .pb-attendance-trigger,
#pb-open-play-dashboard .pb-open-play-dashboard__toolbar .pb-tv-leaderboard-remote-btn,
.elementor-widget-shortcode #pb-open-play-dashboard .pb-open-play-dashboard__toolbar .pb-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 8px 15px !important;
    border: 1px solid #28a745 !important;
    border-radius: 4px !important;
    background: #28a745 !important;
    background-image: none !important;
    color: #fff !important;
    font-family: var(--pb-font-sans, "Poppins", sans-serif) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    white-space: nowrap;
}

#pb-open-play-dashboard .pb-open-play-dashboard__toolbar .pb-btn:hover,
#pb-open-play-dashboard .pb-open-play-dashboard__toolbar .pb-btn:focus-visible,
#pb-open-play-dashboard .pb-open-play-dashboard__toolbar .pb-tv-leaderboard-remote-btn:hover,
#pb-open-play-dashboard .pb-open-play-dashboard__toolbar .pb-tv-leaderboard-remote-btn:focus-visible {
    background: #218838 !important;
    border-color: #218838 !important;
    color: #fff !important;
    box-shadow: none !important;
}

#pb-open-play-dashboard .pb-open-play-dashboard__toolbar .pb-tv-leaderboard-remote-btn.is-active {
    background: #218838 !important;
    border-color: #218838 !important;
}

.pb-open-play-dashboard__col {
    flex: 1 1 0;
    min-width: 0;
    width: 33.333%;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.pb-open-play-dashboard--collapsible-recent {
    --pb-recent-col-duration: 0.45s;
    --pb-recent-col-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.pb-open-play-dashboard--collapsible-recent > .pb-open-play-dashboard__col,
.pb-open-play-dashboard--collapsible-recent > .pb-open-play-dashboard__recent-toggle--expand {
    transition:
        flex var(--pb-recent-col-duration) var(--pb-recent-col-ease),
        max-width var(--pb-recent-col-duration) var(--pb-recent-col-ease),
        opacity calc(var(--pb-recent-col-duration) * 0.75) ease,
        transform var(--pb-recent-col-duration) var(--pb-recent-col-ease),
        margin var(--pb-recent-col-duration) var(--pb-recent-col-ease),
        padding var(--pb-recent-col-duration) var(--pb-recent-col-ease);
}

.pb-open-play-dashboard--collapsible-recent.is-recent-open > .pb-open-play-dashboard__col {
    flex: 1 1 0;
    min-width: 0;
}

.pb-open-play-dashboard--collapsible-recent.is-recent-open .pb-open-play-dashboard__col--recent {
    flex: 1 1 0;
    max-width: 100%;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.pb-open-play-dashboard--collapsible-recent.is-recent-collapsed .pb-open-play-dashboard__col--recent {
    flex: 0 0 0 !important;
    max-width: 0 !important;
    min-width: 0 !important;
    opacity: 0;
    transform: translateX(-16px);
    overflow: hidden;
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
}

.pb-open-play-dashboard--collapsible-recent.is-recent-collapsed > .pb-open-play-dashboard__col--queue,
.pb-open-play-dashboard--collapsible-recent.is-recent-collapsed > .pb-open-play-dashboard__col--courts {
    flex: 1 1 0;
    width: 50%;
}

@media (min-width: 769px) {
    .pb-open-play-dashboard.is-recent-collapsed .pb-courts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pb-open-play-dashboard.is-recent-open .pb-courts-grid {
    grid-template-columns: 1fr;
}

.pb-open-play-dashboard__col--recent {
    position: relative;
}

.pb-open-play-dashboard--no-queue > .pb-open-play-dashboard__col--queue {
    display: none !important;
}

.pb-open-play-dashboard--no-queue.pb-open-play-dashboard--collapsible-recent.is-recent-collapsed > .pb-open-play-dashboard__col--courts {
    flex: 1 1 0;
    width: 100%;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pb-open-play-dashboard--no-queue {
        grid-template-areas:
            "recent recent"
            "courts courts";
    }

    .pb-open-play-dashboard--no-queue.pb-open-play-dashboard--collapsible-recent.is-recent-collapsed {
        grid-template-areas: "courts";
    }
}

/* Expand control (visible when recent column is collapsed) */
.pb-open-play-dashboard__recent-toggle--expand {
    flex: 0 0 auto;
    align-self: flex-start;
    opacity: 1;
    transform: translateX(0);
    overflow: hidden;
}

.pb-open-play-dashboard--collapsible-recent.is-recent-collapsed .pb-open-play-dashboard__recent-toggle--expand {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 6;
    flex: none !important;
    max-width: none !important;
    min-width: 0 !important;
    width: 36px !important;
    height: 36px !important;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin: 0 !important;
    padding: 0 !important;
    border-width: 1px !important;
    overflow: visible;
}

.pb-open-play-dashboard--collapsible-recent.is-recent-collapsed {
    padding-top: 44px;
}

.pb-open-play-dashboard--collapsible-recent.is-recent-open .pb-open-play-dashboard__recent-toggle--expand {
    flex: 0 0 0 !important;
    max-width: 0 !important;
    min-width: 0 !important;
    opacity: 0;
    transform: translateX(-8px) scale(0.94);
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
    border-width: 0;
}

.pb-open-play-dashboard--collapsible-recent.is-recent-collapsed .pb-open-play-dashboard__recent-toggle--collapse {
    opacity: 0;
    pointer-events: none;
}

/* Icon-only recent column toggles (override theme) */
#pb-open-play-dashboard button.pb-open-play-dashboard__recent-toggle,
.elementor-widget-shortcode #pb-open-play-dashboard button.pb-open-play-dashboard__recent-toggle {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    border: 1px solid #6ee7b7 !important;
    border-radius: 12px !important;
    background: #f0fdf4 !important;
    color: #047857 !important;
    font: inherit !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#pb-open-play-dashboard button.pb-open-play-dashboard__recent-toggle:hover,
#pb-open-play-dashboard button.pb-open-play-dashboard__recent-toggle:focus-visible {
    background: #dcfce7 !important;
    border-color: #34d399 !important;
    color: #059669 !important;
    outline: none !important;
}

#pb-open-play-dashboard .pb-open-play-dashboard__recent-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
}

#pb-open-play-dashboard .pb-open-play-dashboard__recent-toggle-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

#pb-open-play-dashboard button.pb-open-play-dashboard__recent-toggle--collapse {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

.pb-open-play-dashboard.is-recent-animating {
    pointer-events: none;
}

.pb-open-play-dashboard.is-recent-animating .pb-open-play-dashboard__recent-toggle {
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .pb-open-play-dashboard--collapsible-recent > .pb-open-play-dashboard__col,
    .pb-open-play-dashboard--collapsible-recent > .pb-open-play-dashboard__recent-toggle--expand,
    .pb-open-play-dashboard__recent-toggle,
    .pb-open-play-dashboard__recent-toggle--collapse {
        transition-duration: 0.01ms !important;
        animation: none !important;
    }
}

.pb-open-play-dashboard,
.pb-open-play-dashboard__col,
.elementor-widget-shortcode .pb-open-play-dashboard {
    overflow: visible !important;
}

.pb-open-play-dashboard .pb-modal {
    z-index: 100050;
}

.pb-open-play-dashboard .pb-recent,
.pb-open-play-dashboard .pb-queue,
.pb-open-play-dashboard .pb-courts {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.pb-open-play-dashboard .pb-recent-hero,
.pb-open-play-dashboard .pb-queue-hero,
.pb-open-play-dashboard .pb-courts-hero {
    flex-direction: column;
    align-items: stretch;
}

.pb-open-play-dashboard .pb-recent-intro,
.pb-open-play-dashboard .pb-queue-intro,
.pb-open-play-dashboard .pb-courts-intro {
    max-width: none;
}

.pb-open-play-dashboard .pb-queue-actions {
    flex-wrap: wrap;
}

/* Mobile section nav (hidden on desktop) */
.pb-open-play-dashboard__nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    gap: 8px;
    margin: 0 0 4px;
    padding: 6px;
    border-radius: var(--pb-emotion-radius-lg, 20px);
    background: linear-gradient(165deg, #fff 0%, var(--pb-emotion-green-soft, #f0faf4) 100%);
    border: 1px solid rgba(45, 138, 94, 0.18);
    box-shadow: 0 4px 16px rgba(15, 41, 66, 0.06);
    box-sizing: border-box;
}

#pb-open-play-dashboard button.pb-open-play-dashboard__nav-btn,
.elementor-widget-shortcode #pb-open-play-dashboard button.pb-open-play-dashboard__nav-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(45, 138, 94, 0.2) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--pb-emotion-green-muted, #4a7c66) !important;
    font: inherit !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition:
        background 0.2s var(--pb-emotion-ease-soft, ease),
        color 0.2s var(--pb-emotion-ease-soft, ease),
        border-color 0.2s var(--pb-emotion-ease-soft, ease);
}

#pb-open-play-dashboard button.pb-open-play-dashboard__nav-btn.is-active,
.elementor-widget-shortcode #pb-open-play-dashboard button.pb-open-play-dashboard__nav-btn.is-active {
    background: linear-gradient(135deg, var(--pb-emotion-navy, #0a1628) 0%, var(--pb-emotion-green-deep, #1e563c) 100%) !important;
    color: var(--pb-emotion-lime, #d4f94c) !important;
    border-color: transparent !important;
}

#pb-open-play-dashboard button.pb-open-play-dashboard__nav-btn:hover,
#pb-open-play-dashboard button.pb-open-play-dashboard__nav-btn:focus-visible {
    border-color: var(--pb-emotion-green, #2d8a5e) !important;
    color: var(--pb-emotion-green-deep, #1e563c) !important;
    outline: none !important;
}

#pb-open-play-dashboard button.pb-open-play-dashboard__nav-btn.is-active:hover,
#pb-open-play-dashboard button.pb-open-play-dashboard__nav-btn.is-active:focus-visible {
    color: var(--pb-emotion-lime, #d4f94c) !important;
    border-color: transparent !important;
}

/* Tablet: queue + courts side by side, recent full width when open */
@media (min-width: 769px) and (max-width: 1024px) {
    .pb-open-play-dashboard {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "recent recent"
            "queue courts";
        gap: 16px;
        align-items: start;
    }

    .pb-open-play-dashboard--has-staff-tools {
        grid-template-areas:
            "toolbar toolbar"
            "recent recent"
            "queue courts";
        padding-top: 0;
    }

    .pb-open-play-dashboard__toolbar {
        position: static;
        grid-area: toolbar;
        justify-self: end;
    }

    .pb-open-play-dashboard--collapsible-recent.is-recent-collapsed {
        grid-template-areas: "queue courts";
    }

    .pb-open-play-dashboard--has-staff-tools.pb-open-play-dashboard--collapsible-recent.is-recent-collapsed {
        grid-template-areas:
            "toolbar toolbar"
            "queue courts";
    }

    .pb-open-play-dashboard__nav {
        display: none !important;
    }

    .pb-open-play-dashboard__recent-toggle--expand {
        grid-area: recent;
        justify-self: start;
    }

    .pb-open-play-dashboard--collapsible-recent.is-recent-collapsed .pb-open-play-dashboard__recent-toggle--expand {
        grid-area: unset;
    }

    .pb-open-play-dashboard__col--recent {
        grid-area: recent;
    }

    .pb-open-play-dashboard__col--queue {
        grid-area: queue;
    }

    .pb-open-play-dashboard__col--courts {
        grid-area: courts;
    }

    .pb-open-play-dashboard__col,
    .pb-open-play-dashboard--collapsible-recent.is-recent-collapsed > .pb-open-play-dashboard__col--queue,
    .pb-open-play-dashboard--collapsible-recent.is-recent-collapsed > .pb-open-play-dashboard__col--courts {
        width: auto;
        flex: none;
    }

    .pb-open-play-dashboard--collapsible-recent.is-recent-collapsed .pb-open-play-dashboard__col--recent {
        grid-area: recent;
        max-height: 0;
    }

    .pb-open-play-dashboard .pb-queue,
    .pb-open-play-dashboard .pb-courts,
    .pb-open-play-dashboard .pb-recent {
        margin-bottom: 0;
    }

    .pb-open-play-dashboard .pb-queue-hero h2,
    .pb-open-play-dashboard .pb-courts-hero h2,
    .pb-open-play-dashboard .pb-recent-hero h2 {
        font-size: 1.35rem;
    }

    .pb-open-play-dashboard .pb-queue-intro,
    .pb-open-play-dashboard .pb-courts-intro {
        font-size: 0.88rem;
    }

    .pb-open-play-dashboard .pb-queue-scroll {
        max-height: min(58vh, 640px);
    }

    .pb-open-play-dashboard .pb-recent--dock {
        --pb-recent-visible-cards: 3;
    }

    .pb-open-play-dashboard .pb-court-visual {
        min-height: 200px;
    }

    .pb-open-play-dashboard .pb-queue-match {
        flex-direction: column;
        gap: 8px;
    }

    .pb-open-play-dashboard .pb-queue-side--t1 {
        border-right: 1px solid #e8ecf0;
    }
}

@media (max-width: 1024px) {
    .pb-open-play-dashboard {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .pb-open-play-dashboard {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
        overflow-x: clip;
    }

    .pb-open-play-dashboard--has-staff-tools {
        padding-top: 0;
    }

    .pb-open-play-dashboard__toolbar {
        position: static;
        order: -2;
        width: 100%;
        margin: 0 0 10px;
        justify-content: flex-end;
    }

    .pb-open-play-dashboard.has-mobile-nav .pb-open-play-dashboard__nav {
        display: flex;
        position: sticky;
        top: max(8px, env(safe-area-inset-top, 0px));
        z-index: 20;
        margin-bottom: 16px;
    }

    .pb-open-play-dashboard.has-mobile-nav .pb-open-play-dashboard__recent-toggle--expand,
    .pb-open-play-dashboard.has-mobile-nav .pb-open-play-dashboard__recent-toggle--collapse,
    #pb-open-play-dashboard button.pb-open-play-dashboard__recent-toggle--expand,
    #pb-open-play-dashboard button.pb-open-play-dashboard__recent-toggle--collapse {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .pb-open-play-dashboard .pb-recent--dock .pb-recent-hero {
        padding-right: 0;
    }

    .pb-open-play-dashboard.has-mobile-nav .pb-open-play-dashboard__col {
        display: none;
        width: 100%;
        flex: none;
        margin: 0;
    }

    .pb-open-play-dashboard.has-mobile-nav.is-panel-queue .pb-open-play-dashboard__col--queue,
    .pb-open-play-dashboard.has-mobile-nav.is-panel-courts .pb-open-play-dashboard__col--courts,
    .pb-open-play-dashboard.has-mobile-nav.is-panel-recent .pb-open-play-dashboard__col--recent {
        display: block;
    }

    .pb-open-play-dashboard.has-mobile-nav.is-panel-recent .pb-open-play-dashboard__col--recent {
        flex: none !important;
        max-width: none !important;
        min-width: 0 !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .pb-open-play-dashboard.has-mobile-nav.is-panel-recent.is-recent-collapsed .pb-open-play-dashboard__col--recent {
        display: block;
    }

    .pb-open-play-dashboard .pb-queue,
    .pb-open-play-dashboard .pb-courts,
    .pb-open-play-dashboard .pb-recent {
        max-width: none;
        margin: 0 0 24px;
        padding-inline: 0;
    }

    .pb-open-play-dashboard .pb-queue-hero,
    .pb-open-play-dashboard .pb-courts-hero,
    .pb-open-play-dashboard .pb-recent-hero {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px 12px;
        margin-bottom: 14px;
    }

    .pb-open-play-dashboard .pb-queue-hero-text,
    .pb-open-play-dashboard .pb-courts-hero-text,
    .pb-open-play-dashboard .pb-recent-hero > div:first-child {
        flex: 1 1 160px;
        min-width: 0;
    }

    .pb-open-play-dashboard .pb-queue-intro,
    .pb-open-play-dashboard .pb-courts-intro,
    .pb-open-play-dashboard .pb-recent-intro {
        display: none;
    }

    .pb-open-play-dashboard .pb-queue-hero h2,
    .pb-open-play-dashboard .pb-courts-hero h2,
    .pb-open-play-dashboard .pb-recent-hero h2 {
        margin-bottom: 0;
        font-size: 1.2rem;
    }

    .pb-open-play-dashboard .pb-queue-eyebrow,
    .pb-open-play-dashboard .pb-courts-eyebrow,
    .pb-open-play-dashboard .pb-recent-eyebrow {
        margin-bottom: 4px;
        font-size: 0.68rem;
    }

    .pb-open-play-dashboard .pb-queue-summary,
    .pb-open-play-dashboard .pb-courts-summary,
    .pb-open-play-dashboard .pb-recent-hero-actions {
        flex-shrink: 0;
        margin-left: auto;
    }

    .pb-open-play-dashboard .pb-queue-stat,
    .pb-open-play-dashboard .pb-courts-stat,
    .pb-open-play-dashboard .pb-recent-stat {
        min-width: 56px;
        padding: 6px 10px;
    }

    .pb-open-play-dashboard .pb-queue-stat-value,
    .pb-open-play-dashboard .pb-courts-stat-value,
    .pb-open-play-dashboard .pb-recent-stat-value {
        font-size: 1.1rem;
    }

    .pb-open-play-dashboard .pb-queue-scroll {
        max-height: none;
    }

    .pb-open-play-dashboard .pb-recent--dock {
        --pb-recent-visible-cards: 2;
        --pb-recent-card-min-height: auto;
    }

    .pb-open-play-dashboard .pb-recent--dock .pb-recent-day__games {
        max-height: none;
    }

    .pb-open-play-dashboard .pb-recent--dock .pb-recent-hero {
        padding-right: 0;
    }

    .pb-open-play-dashboard .pb-recent--dock .pb-recent-card {
        overflow: visible;
    }

    .pb-open-play-dashboard .pb-recent--dock .pb-recent-match {
        flex-direction: column;
        gap: 8px;
    }

    .pb-open-play-dashboard .pb-recent--dock .pb-recent-side {
        width: 100%;
        min-height: 0;
    }

    .pb-open-play-dashboard .pb-recent--dock .pb-recent-players {
        display: block;
        text-align: center;
    }

    .pb-open-play-dashboard .pb-recent--dock .pb-recent-player {
        display: block;
    }

    .pb-open-play-dashboard .pb-queue-actions {
        position: sticky;
        bottom: max(8px, env(safe-area-inset-bottom, 0px));
        z-index: 12;
        margin-top: 16px;
        padding: 12px;
        border: 1px solid rgba(45, 138, 94, 0.14);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(8px);
        box-shadow: 0 -4px 20px rgba(15, 41, 66, 0.08);
    }

    .pb-open-play-dashboard .pb-queue-actions .pb-btn {
        min-height: 44px;
    }

    .pb-open-play-dashboard .pb-court-visual {
        min-height: 190px;
    }

    .pb-open-play-dashboard .pb-queue-match {
        flex-direction: column;
        gap: 8px;
    }

    .pb-open-play-dashboard .pb-queue-side--t1 {
        border-right: 1px solid #e8ecf0;
    }

    .pb-open-play-dashboard .pb-court-card {
        border-radius: 14px;
    }

    .pb-open-play-dashboard .pb-courts-grid,
    #pb-open-play-dashboard #pb-courts-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1024px) {
    .pb-open-play-dashboard:not(.has-mobile-nav) {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 24px;
    }

    .pb-open-play-dashboard:not(.has-mobile-nav) .pb-open-play-dashboard__col,
    .pb-open-play-dashboard:not(.has-mobile-nav).pb-open-play-dashboard--collapsible-recent.is-recent-collapsed > .pb-open-play-dashboard__col--queue,
    .pb-open-play-dashboard:not(.has-mobile-nav).pb-open-play-dashboard--collapsible-recent.is-recent-collapsed > .pb-open-play-dashboard__col--courts {
        flex: 1 1 auto;
        width: 100%;
    }

    .pb-open-play-dashboard:not(.has-mobile-nav).pb-open-play-dashboard--collapsible-recent.is-recent-collapsed .pb-open-play-dashboard__col--recent {
        flex: 0 0 0 !important;
        max-height: 0;
        max-width: 0 !important;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .pb-open-play-dashboard:not(.has-mobile-nav).pb-open-play-dashboard--collapsible-recent.is-recent-open .pb-open-play-dashboard__recent-toggle--expand {
        display: none;
    }
}

/* Recent games column inside open play dashboard */
.pb-recent--dock {
    max-width: none;
    width: 100%;
    margin: 0;
}

.pb-recent--dock .pb-recent-intro {
    display: none;
}

.pb-open-play-dashboard .pb-recent--dock .pb-recent-hero {
    padding-right: 56px;
}

/* ——— Recent games (frontend) ——— */
.pb-recent {
    --pb-recent-visible-cards: 3;
    --pb-recent-card-min-height: 184px;
    --pb-recent-card-gap: 12px;
    max-width: 720px;
    width: 100%;
    margin: 0 auto 40px;
    font-family: var(--pb-font-sans);
}

.pb-recent-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pb-recent-eyebrow {
    display: inline-block;
    margin: 0 0 6px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0d6b4f;
    background: #e8f7f0;
    border-radius: 999px;
}

.pb-recent-hero h2 {
    margin: 0 0 4px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f2942;
}

.pb-recent-intro {
    margin: 0;
    max-width: 480px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #5a6b7d;
}

.pb-recent-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pb-recent-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 41, 66, 0.08);
}

.pb-recent-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
    color: #0d6b4f;
}

.pb-recent-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7c8d;
    margin-top: 2px;
}

.pb-recent-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    color: #0f2942 !important;
    background: #ffffff !important;
    border: 1px solid #e8ecf0 !important;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 41, 66, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none !important;
}

.pb-recent-refresh:hover {
    color: #0f2942 !important;
    background: #ffffff !important;
    border-color: #c5e6d4 !important;
    box-shadow: 0 4px 12px rgba(15, 41, 66, 0.1);
}

.pb-recent-refresh.is-loading .pb-recent-refresh-icon {
    animation: pb-recent-spin 0.8s linear infinite;
}

.pb-recent-refresh.is-busy {
    opacity: 0.75;
    cursor: wait;
}

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

.pb-recent-list-wrap {
    width: 100%;
    overflow: hidden;
}

.pb-recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pb-recent-fallback-note {
    margin: 0 0 4px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #5a6b7d;
    background: #f6f8fa;
    border-radius: 12px;
}

.pb-recent-day {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pb-recent-day__title {
    margin: 0;
    padding: 0 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pb-emotion-green-muted, #4a7c66);
}

.pb-recent-day__games {
    display: flex;
    flex-direction: column;
    gap: var(--pb-recent-card-gap);
    max-height: calc(
        var(--pb-recent-visible-cards) * var(--pb-recent-card-min-height)
        + (var(--pb-recent-visible-cards) - 1) * var(--pb-recent-card-gap)
        + 8px
    );
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 4px 6px 2px;
    scroll-snap-type: y proximity;
    scroll-padding-block: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.pb-recent-day__games::-webkit-scrollbar {
    width: 6px;
}

.pb-recent-day__games::-webkit-scrollbar-thumb {
    background: #c5d0da;
    border-radius: 3px;
}

.pb-recent-empty {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 41, 66, 0.06);
}

.pb-recent-empty-icon {
    display: flex;
    justify-content: center;
    font-size: 2.5rem;
    line-height: 1;
    margin: 0 auto 12px;
}

.pb-recent-empty-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
}

.pb-recent-empty-sub {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7c8d;
    line-height: 1.5;
}

.pb-recent-list-wrap.pb-recent-list-wrap--no-animate .pb-recent-card {
    animation: none;
}

.pb-recent-card {
    flex: 0 0 auto;
    flex-shrink: 0;
    width: 100%;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 41, 66, 0.08);
    transition: box-shadow 0.2s ease;
    animation: pb-recent-in 0.4s ease backwards;
}

.pb-recent-card.pb-recent-card--settled {
    animation: none;
}

.pb-recent-card:hover {
    box-shadow: 0 10px 32px rgba(15, 41, 66, 0.12);
}

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

.pb-recent-card-header {
    padding: 10px 14px;
    background: #f6f8fa;
    border-bottom: 1px solid #e8ecf0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pb-recent-card-actions {
    display: flex;
    justify-content: flex-end;
}

#pb-recent-games-wrapper button.pb-recent-swap-winner[type="button"],
.pb-recent-swap-winner {
    appearance: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    color: #4a5568 !important;
    background: #edf2f7 !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    text-decoration: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

#pb-recent-games-wrapper button.pb-recent-swap-winner[type="button"]:hover,
.pb-recent-swap-winner:hover {
    background: #e2e8f0 !important;
    border-color: #a0aec0 !important;
    color: #2d3748 !important;
}

#pb-recent-games-wrapper button.pb-recent-swap-winner[type="button"]:disabled,
.pb-recent-swap-winner.is-busy {
    opacity: 0.55;
    pointer-events: none;
    cursor: default;
}

.pb-recent-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    width: 100%;
}

.pb-recent-card-meta-start {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.pb-recent-court {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f2942;
}

.pb-stack-source {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
    border: 1px solid transparent;
}

.pb-stack-source--regular {
    color: #4a5568;
    background: #edf2f7;
    border-color: #cbd5e0;
}

.pb-stack-source--fair-stack {
    color: #2f6fa3;
    background: #eaf4fb;
    border-color: rgba(47, 111, 163, 0.28);
}

.pb-stack-source--skill-match {
    color: #2d8a5e;
    background: #e8f7ef;
    border-color: rgba(45, 138, 94, 0.28);
}

.pb-stack-source--randomize {
    color: #7d6608;
    background: #fff8e6;
    border-color: rgba(125, 102, 8, 0.24);
}

.pb-stack-source--special {
    color: #9b2c2c;
    background: #fff5f5;
    border-color: rgba(155, 44, 44, 0.24);
}

.pb-stack-source--shuffle {
    color: #6b46c1;
    background: #f3ebff;
    border-color: rgba(107, 70, 193, 0.24);
}

.pb-stack-source--wl-stack {
    color: #1d6f42;
    background: #e8f8ef;
    border-color: rgba(29, 111, 66, 0.24);
}

.pb-stack-source--continuous {
    color: #b45309;
    background: #fef3c7;
    border-color: rgba(180, 83, 9, 0.24);
}

.pb-btn-continuous-stack {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.pb-btn-continuous-stack.is-active {
    background: #fef3c7;
    color: #b45309;
    border-color: rgba(180, 83, 9, 0.4);
    font-weight: 600;
}

.pb-recent-time {
    font-size: 0.72rem;
    font-weight: 500;
    color: #6b7c8d;
    white-space: nowrap;
}

.pb-recent-winner-inline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.pb-recent-winner-chip {
    display: inline-block;
    padding: 2px 7px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #1e563c;
    background: #d4edda;
    border-radius: 999px;
    line-height: 1.3;
}

.pb-recent-winner-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2d8a5e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.pb-recent-card--t1-won .pb-recent-winner-name,
.pb-recent-card--t2-won .pb-recent-winner-name {
    color: #1e563c;
}

.pb-recent-match {
    display: flex;
    align-items: stretch;
    padding: 12px 14px;
    gap: 8px;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.pb-recent-side {
    flex: 1 1 0;
    min-width: 0;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 12px 10px 10px;
    border-radius: 10px;
    background: #f8f9fb;
    border: 1.5px solid #e8ecf0;
}

.pb-recent-side.is-winner {
    background: linear-gradient(180deg, #f0faf4 0%, #e8f8ef 100%);
    border-color: #2d8a5e;
    box-shadow: 0 4px 14px rgba(45, 138, 94, 0.12);
}

.pb-recent-card--t1-won .pb-recent-side--t1,
.pb-recent-card--t2-won .pb-recent-side--t2 {
    background: linear-gradient(180deg, #f0faf4 0%, #e8f8ef 100%);
    border-color: #2d8a5e;
}

.pb-recent-card--t1-won .pb-recent-side--t2:not(.is-winner),
.pb-recent-card--t2-won .pb-recent-side--t1:not(.is-winner) {
    opacity: 0.88;
}

.pb-recent-winner-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 9px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #1e563c;
    background: #d4edda;
    border-radius: 999px;
    flex-shrink: 0;
    line-height: 1.3;
}

.pb-recent-side:not(.is-winner) .pb-recent-winner-badge {
    display: none;
}

.pb-recent-team-name {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f2942;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pb-recent-players {
    flex: 1 1 auto;
    width: 100%;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #3d4f5f;
    margin-bottom: 10px;
}

.pb-recent-player {
    display: inline;
}

.pb-recent-score {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 38px;
    height: 38px;
    margin-top: auto;
    padding: 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f2942;
    background: #fff;
    border: 1.5px solid #e8ecf0;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(15, 41, 66, 0.06);
}

.pb-recent-side.is-winner .pb-recent-score {
    color: #fff;
    background: linear-gradient(135deg, #3da06e 0%, #2d8a5e 100%);
    border-color: #2d8a5e;
}

.pb-recent-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    align-self: center;
}

.pb-recent-divider span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #adb5bd;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 50%;
}

@media (max-width: 600px) {
    .pb-recent-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .pb-recent-hero-actions {
        justify-content: space-between;
    }

    .pb-recent {
        --pb-recent-card-min-height: auto;
    }

    .pb-recent-day__games {
        max-height: min(72vh, 720px);
    }

    .pb-recent-card {
        overflow: visible;
    }

    .pb-recent-card-header {
        padding: 10px 12px;
    }

    .pb-recent-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .pb-recent-time {
        white-space: normal;
        font-size: 0.7rem;
        line-height: 1.35;
    }

    .pb-recent-match {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }

    .pb-recent-side {
        width: 100%;
        min-height: 0;
        flex: none;
        padding: 12px;
    }

    .pb-recent-team-name {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
    }

    .pb-recent-players {
        display: block;
        text-align: center;
        margin-bottom: 8px;
    }

    .pb-recent-player {
        display: block;
        line-height: 1.45;
    }

    .pb-recent-divider {
        width: 100%;
        align-self: stretch;
        padding: 2px 0;
    }

    .pb-recent-divider span {
        margin: 0 auto;
    }

    .pb-recent-winner-name {
        max-width: 100%;
    }
}

/* Special match (waiting list) */
.pb-queue-card.pb-special {
    outline: 2px solid #e67e22;
    outline-offset: 0;
    box-shadow: 0 8px 28px rgba(230, 126, 34, 0.2);
}

.pb-queue-card.pb-special .pb-queue-card-head {
    background: linear-gradient(90deg, #fef5e7 0%, #f6f8fa 100%);
}

.pb-queue-special-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    background: #e67e22;
    border-radius: 999px;
}

/* Skill Colors */
.skill-newbie {
    color: #8e44ad !important;
    font-weight: bold;
}

.skill-novice {
    color: #2980b9 !important;
    font-weight: bold;
}

.skill-inter-low {
    color: #27ae60 !important;
    font-weight: bold;
}

.skill-inter-high {
    color: #f39c12 !important;
    font-weight: bold;
}

.skill-advanced {
    color: #d35400 !important;
    font-weight: bold;
}

.skill-expert {
    color: #c0392b !important;
    font-weight: bold;
}

/* Waiting list: all player names black (override skill tier colors) */
.pb-queue .pb-queue-slot--filled .pb-queue-slot__player .pb-player-wrapper > span:first-child,
.pb-queue .pb-queue-slot--filled .pb-queue-slot__player > span:first-child:not(.pb-skill-stars):not(.pb-player-guest-tag),
.pb-queue .pb-queue-slot--filled .pb-queue-slot__player > span.skill-newbie,
.pb-queue .pb-queue-slot--filled .pb-queue-slot__player > span.skill-novice,
.pb-queue .pb-queue-slot--filled .pb-queue-slot__player > span.skill-inter-low,
.pb-queue .pb-queue-slot--filled .pb-queue-slot__player > span.skill-inter-high,
.pb-queue .pb-queue-slot--filled .pb-queue-slot__player > span.skill-advanced,
.pb-queue .pb-queue-slot--filled .pb-queue-slot__player > span.skill-expert {
    color: #000 !important;
}

.pb-queue .pb-queue-slot--filled.pb-queue-slot--you .pb-player-wrapper span,
.pb-queue .pb-queue-slot--filled.pb-queue-slot--you .pb-player-wrapper a {
    color: #000 !important;
}

/* Courts: all player names white (override skill tier colors on green court) */
.pb-courts .pb-court-player .pb-player-wrapper > span:first-child,
.pb-courts .pb-court-player > span:first-child:not(.pb-player-guest-tag),
.pb-courts .pb-court-player > span.skill-newbie,
.pb-courts .pb-court-player > span.skill-novice,
.pb-courts .pb-court-player > span.skill-inter-low,
.pb-courts .pb-court-player > span.skill-inter-high,
.pb-courts .pb-court-player > span.skill-advanced,
.pb-courts .pb-court-player > span.skill-expert {
    color: #fff !important;
}

/* ——— Skill star indicator (waiting list) ——— */
.pb-skill-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    margin-left: 5px;
    vertical-align: middle;
    line-height: 1;
}

.pb-skill-star {
    font-size: 11px;
    color: #d1d1d1;
    line-height: 1;
    display: inline-block;
}

.pb-skill-star--on {
    color: #f5c518;
    text-shadow: 0 0 3px rgba(245, 197, 24, 0.4);
}

.pb-vs {
    padding: 0 10px;
    color: #777;
    font-weight: bold;
}

.pb-lbl {
    font-size: 0.7em;
    text-transform: uppercase;
    color: #666;
}

/* ——— Attendance modal (emotional design) ——— */
.pb-attendance-modal.pb-modal {
    z-index: 100000;
    height: 100%;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
}

.pb-attendance-modal .pb-attendance-dialog,
.pb-attendance-modal .pb-modal-content.pb-attendance-dialog {
    position: relative;
    max-width: 520px;
    width: min(92vw, 520px);
    height: min(92vh, 92dvh);
    max-height: min(92vh, 92dvh);
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff !important;
    box-shadow: 0 24px 64px rgba(15, 41, 66, 0.22);
    animation: pb-attendance-in 0.35s ease;
    will-change: transform;
    pointer-events: auto;
}

.pb-attendance-modal .pb-attendance-dialog.is-dragging,
.pb-attendance-modal .pb-attendance-dialog.is-moved {
    animation: none;
}

.pb-attendance-modal .pb-attendance-dialog.is-dragging {
    box-shadow: 0 28px 72px rgba(15, 41, 66, 0.3);
    user-select: none;
}

@keyframes pb-attendance-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pb-attendance-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    float: none;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none !important;
    box-shadow: none;
    outline: none !important;
}

.pb-attendance-close:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.pb-attendance-close:focus,
.pb-attendance-close:focus-visible,
.pb-attendance-close:active {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.24) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2) !important;
}

.pb-attendance-header {
    flex-shrink: 0;
    text-align: center;
    padding: 16px 18px 12px;
    background: linear-gradient(165deg, #2d8a5e 0%, #256b4a 55%, #1e563c 100%);
    color: #fff;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.pb-attendance-header.is-drag-handle-active,
.pb-attendance-modal .pb-attendance-dialog.is-dragging .pb-attendance-header {
    cursor: grabbing;
}

.pb-attendance-icon {
    display: none;
}

.pb-attendance-eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #e8f8ef;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.pb-attendance-header h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.pb-attendance-lead {
    margin: 0 auto 8px;
    max-width: 340px;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.pb-attendance-lead--partner {
    margin-top: 4px;
    font-size: 0.72rem;
    opacity: 0.92;
}

.pb-attendance-date {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
}

.pb-attendance-manual {
    flex-shrink: 0;
    padding: 12px 14px 10px;
    background: linear-gradient(
        165deg,
        rgba(255, 251, 235, 0.95) 0%,
        rgba(240, 253, 244, 0.98) 45%,
        rgba(224, 242, 254, 0.92) 100%
    );
    border-bottom: 1px solid rgba(45, 138, 94, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.pb-attendance-manual__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.pb-attendance-manual__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(145deg, #2d8a5e 0%, #1e6b47 100%);
    color: #fff;
    box-shadow:
        0 8px 20px rgba(45, 138, 94, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.pb-attendance-manual__copy {
    min-width: 0;
}

.pb-attendance-manual__label {
    display: block;
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #153d2b;
    text-transform: none;
}

.pb-attendance-manual__hint {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #4a5f6e;
}

.pb-attendance-manual__field {
    position: relative;
}

.pb-attendance-manual__input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(45, 138, 94, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 4px 14px rgba(15, 41, 66, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.pb-attendance-manual__input-wrap:hover {
    border-color: rgba(45, 138, 94, 0.35);
    background: #fff;
}

.pb-attendance-manual__input-wrap:focus-within {
    border-color: #2d8a5e;
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(45, 138, 94, 0.16),
        0 8px 22px rgba(45, 138, 94, 0.12);
}

.pb-attendance-manual__search-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    color: #5a8f74;
    pointer-events: none;
}

.pb-attendance-manual__input {
    flex: 1;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 46px;
    padding: 11px 0;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.95rem;
    color: #153d2b !important;
    line-height: 1.35;
}

.pb-attendance-manual__input::placeholder {
    color: #7a919f;
}

.pb-attendance-manual__input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.pb-attendance-modal .pb-attendance-manual__input,
.pb-attendance-modal .pb-attendance-manual__input:focus {
    background: transparent !important;
    color: #153d2b !important;
}

.pb-attendance-search-results {
    margin-top: 10px;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid rgba(45, 138, 94, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 16px 40px rgba(15, 41, 66, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pb-attendance-search-results[hidden] {
    display: none !important;
}

.pb-attendance-search-loading,
.pb-attendance-search-empty {
    margin: 0;
    padding: 16px 18px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #5a6b7d;
    text-align: center;
}

.pb-attendance-search-hit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(226, 235, 230, 0.9);
    transition: background 0.18s ease;
}

.pb-attendance-search-hit:last-child {
    border-bottom: none;
}

.pb-attendance-search-hit:hover {
    background: linear-gradient(90deg, rgba(45, 138, 94, 0.07) 0%, rgba(255, 255, 255, 0) 72%);
}

.pb-attendance-search-hit .pb-attendance-avatar {
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 41, 66, 0.12);
}

.pb-attendance-search-player {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pb-attendance-search-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 0.92rem;
    color: #153d2b;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.pb-attendance-search-email {
    font-size: 0.78rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pb-attendance-modal .pb-attendance-search-add,
.pb-attendance-modal .pb-attendance-search-add:link,
.pb-attendance-modal .pb-attendance-search-add:visited,
.pb-attendance-modal .pb-attendance-search-add:hover,
.pb-attendance-modal .pb-attendance-search-add:active,
.pb-attendance-modal .pb-attendance-search-add:focus {
    flex-shrink: 0;
    min-height: 38px;
    padding: 8px 16px;
    border: none !important;
    border-radius: 999px !important;
    background: linear-gradient(145deg, #2d8a5e 0%, #1e6b47 100%) !important;
    color: #fff !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none !important;
    -webkit-appearance: none;
    appearance: none;
    box-shadow:
        0 4px 14px rgba(45, 138, 94, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    transition:
        transform 0.12s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.pb-attendance-modal .pb-attendance-search-add:hover:not(:disabled),
.pb-attendance-modal .pb-attendance-search-add:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        0 8px 20px rgba(45, 138, 94, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
    outline: none !important;
    color: #fff !important;
}

.pb-attendance-modal .pb-attendance-search-add:active:not(:disabled) {
    transform: translateY(0);
    filter: brightness(0.98);
}

.pb-attendance-search-listed {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.1);
    font-size: 0.74rem;
    font-weight: 700;
    color: #5a6b7d;
}

.pb-attendance-manual-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.14);
    color: #c2410c;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.pb-attendance-item--manual {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.06) 0%, transparent 48%);
}

.pb-attendance-toolbar {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #f2f7f4 0%, #f6f8fa 100%);
    border-bottom: 1px solid #e2ebe6;
}

.pb-attendance-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.pb-attendance-bulk-group {
    display: inline-flex;
    align-items: stretch;
    gap: 2px;
    padding: 4px;
    background: #fff;
    border: 1px solid #d8e5de;
    border-radius: 999px;
    box-shadow:
        inset 0 1px 2px rgba(30, 86, 60, 0.04),
        0 2px 8px rgba(15, 41, 66, 0.06);
}

.pb-attendance-modal .pb-attendance-bulk-btn,
.pb-attendance-modal .pb-attendance-bulk-btn:link,
.pb-attendance-modal .pb-attendance-bulk-btn:visited,
.pb-attendance-modal .pb-attendance-bulk-btn:hover,
.pb-attendance-modal .pb-attendance-bulk-btn:active,
.pb-attendance-modal .pb-attendance-bulk-btn:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 16px 8px 10px;
    border: none !important;
    border-radius: 999px;
    background: transparent !important;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: #4a5f6e !important;
    cursor: pointer;
    text-decoration: none !important;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.12s ease,
        box-shadow 0.2s ease;
}

.pb-attendance-modal .pb-attendance-bulk-btn--select,
.pb-attendance-modal .pb-attendance-bulk-btn--select:link,
.pb-attendance-modal .pb-attendance-bulk-btn--select:visited,
.pb-attendance-modal .pb-attendance-bulk-btn--select:active {
    color: #1e563c !important;
    border: none !important;
    background: transparent !important;
}

.pb-attendance-modal .pb-attendance-bulk-btn--select:hover:not(:disabled),
.pb-attendance-modal .pb-attendance-bulk-btn--select:focus:not(:disabled) {
    background: linear-gradient(145deg, rgba(45, 138, 94, 0.12) 0%, rgba(45, 138, 94, 0.2) 100%) !important;
    color: #174a32 !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(45, 138, 94, 0.14);
}

.pb-attendance-modal .pb-attendance-bulk-btn--select:hover:not(:disabled) .pb-attendance-bulk-icon--select {
    transform: scale(1.06);
    box-shadow: 0 3px 8px rgba(45, 138, 94, 0.4);
}

.pb-attendance-modal .pb-attendance-bulk-btn--clear,
.pb-attendance-modal .pb-attendance-bulk-btn--clear:link,
.pb-attendance-modal .pb-attendance-bulk-btn--clear:visited,
.pb-attendance-modal .pb-attendance-bulk-btn--clear:active {
    color: #5a6b7d !important;
    border: none !important;
    background: transparent !important;
}

.pb-attendance-modal .pb-attendance-bulk-btn--clear:hover:not(:disabled),
.pb-attendance-modal .pb-attendance-bulk-btn--clear:focus:not(:disabled) {
    background: linear-gradient(145deg, #f0f4f8 0%, #e6edf3 100%) !important;
    color: #3d4f61 !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(74, 95, 110, 0.12);
}

.pb-attendance-modal .pb-attendance-bulk-btn--clear:hover:not(:disabled) .pb-attendance-bulk-icon--clear {
    transform: scale(1.06);
    box-shadow: 0 3px 8px rgba(111, 135, 156, 0.35);
}

.pb-attendance-modal .pb-attendance-bulk-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.pb-attendance-modal .pb-attendance-bulk-btn:focus,
.pb-attendance-modal .pb-attendance-bulk-btn:focus-visible {
    outline: 2px solid rgba(45, 138, 94, 0.45) !important;
    outline-offset: 2px;
}

.pb-attendance-modal .pb-attendance-bulk-btn:disabled,
.pb-attendance-modal .pb-attendance-bulk-btn:disabled:hover {
    opacity: 0.38;
    cursor: not-allowed;
    box-shadow: none;
    color: #9aa8b5 !important;
    border: none !important;
    background: transparent !important;
}

.pb-attendance-bulk-btn:disabled .pb-attendance-bulk-icon {
    transform: none;
    box-shadow: none;
}

.pb-attendance-bulk-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pb-attendance-bulk-icon svg {
    display: block;
}

.pb-attendance-bulk-icon--select {
    color: #fff;
    background: linear-gradient(145deg, #3a9d6a 0%, #2d8a5e 100%);
    box-shadow: 0 2px 6px rgba(45, 138, 94, 0.32);
}

.pb-attendance-bulk-icon--clear {
    color: #fff;
    background: linear-gradient(145deg, #9eb0c0 0%, #7a92a8 100%);
    box-shadow: 0 2px 6px rgba(90, 107, 125, 0.28);
}

.pb-attendance-count {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #5a6b7d;
}

.pb-attendance-count-value {
    color: #2d8a5e;
    font-size: 1.05rem;
    font-weight: 800;
}

.pb-attendance-list {
    flex: 1 1 auto;
    min-height: 180px;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 10px 12px;
    background: #fff;
    scrollbar-width: thin;
}

.pb-attendance-list::-webkit-scrollbar {
    width: 6px;
}

.pb-attendance-list::-webkit-scrollbar-thumb {
    background: #c5d0da;
    border-radius: 3px;
}

.pb-attendance-loading {
    padding: 8px 4px 16px;
    text-align: center;
}

.pb-attendance-skeleton {
    height: 52px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: linear-gradient(90deg, #eef1f4 25%, #f8f9fb 50%, #eef1f4 75%);
    background-size: 200% 100%;
    animation: pb-attendance-shimmer 1.2s ease-in-out infinite;
}

.pb-attendance-skeleton:nth-child(2) {
    animation-delay: 0.1s;
}

.pb-attendance-skeleton:nth-child(3) {
    animation-delay: 0.2s;
}

.pb-attendance-skeleton:nth-child(4) {
    animation-delay: 0.3s;
}

.pb-attendance-skeleton:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes pb-attendance-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.pb-attendance-loading-text {
    margin: 12px 0 0;
    font-size: 0.9rem;
    color: #6b7c8d;
    font-style: italic;
}

.pb-attendance-item-wrap {
    margin-bottom: 8px;
}

.pb-attendance-item-wrap--search-hidden {
    display: none;
}

.pb-attendance-filter-empty {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: #6b7c8d;
}

.pb-attendance-item--readonly {
    cursor: default;
}

.pb-attendance-item--readonly:hover {
    border-color: #e8ecf0;
    background: #fafbfc;
    box-shadow: none;
    transform: none;
}

.pb-attendance-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 999px;
}

.pb-attendance-status-badge--pending {
    color: #856404;
    background: #fff8e6;
}

.pb-attendance-status-badge--rejected {
    color: #7f1d1d;
    background: #fee2e2;
}

.pb-attendance-item-wrap:last-child {
    margin-bottom: 0;
}

.pb-attendance-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    padding: 10px 12px;
    border: 2px solid #e8ecf0;
    background: #fafbfc;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.pb-attendance-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}

.pb-attendance-item-wrap .pb-attendance-item {
    margin-bottom: 0;
    border-bottom: 2px solid #e8ecf0;
    border-radius: 12px;
}

.pb-attendance-item-wrap--panel-open .pb-attendance-item,
.pb-attendance-item-wrap--partner-locked .pb-attendance-item {
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.pb-attendance-item:hover {
    border-color: #c5e6d4;
    background: #f4fbf7;
}

.pb-attendance-item:has(.pb-attendance-check:checked) {
    border-color: #2d8a5e;
    background: linear-gradient(90deg, #f0faf4 0%, #fff 100%);
    box-shadow: 0 4px 14px rgba(45, 138, 94, 0.12);
}

.pb-attendance-check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.pb-attendance-avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.pb-attendance-avatar--initials {
    font-size: 0.85rem;
    font-weight: 800;
    color: #2d8a5e;
    background: #e8f8ef;
}

.pb-attendance-avatar--photo {
    background: #e8ecf0;
}

.pb-attendance-avatar--photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-attendance-item:has(.pb-attendance-check:checked) .pb-attendance-avatar--initials {
    color: #fff;
    background: linear-gradient(135deg, #3da06e 0%, #2d8a5e 100%);
}

.pb-attendance-item:has(.pb-attendance-check:checked) .pb-attendance-avatar--photo {
    box-shadow: 0 0 0 2px #2d8a5e;
}

.pb-attendance-player {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pb-attendance-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f2942;
    line-height: 1.3;
}

.pb-attendance-online-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #1e563c;
    background: rgba(45, 138, 94, 0.14);
    border-radius: 999px;
}

.pb-attendance-payment-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 999px;
}

.pb-attendance-payment-badge--paid {
    color: #1e563c;
    background: rgba(45, 138, 94, 0.14);
}

.pb-attendance-payment-badge--unpaid {
    color: #475569;
    background: rgba(148, 163, 184, 0.2);
}

.pb-attendance-meta {
    font-size: 0.8rem;
    color: #6b7c8d;
}

.pb-attendance-item:has(.pb-attendance-check:checked) .pb-attendance-meta {
    color: #2d8a5e;
}

.pb-attendance-tick {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: 2px solid #d0d7de;
    border-radius: 50%;
    background: #fff;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pb-attendance-item:has(.pb-attendance-check:checked) .pb-attendance-tick {
    border-color: #2d8a5e;
    background: #2d8a5e;
}

.pb-attendance-partner-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #1e563c;
    background: rgba(45, 138, 94, 0.14);
    vertical-align: middle;
}

.pb-attendance-partner-trigger {
    flex-shrink: 0;
    margin-right: 6px;
}

.pb-attendance-item__actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-right: 4px;
}

.pb-attendance-item__actions .pb-attendance-partner-trigger {
    margin-right: 0;
}

.pb-attendance-modal .pb-attendance-stats-trigger,
.pb-attendance-modal .pb-attendance-stats-trigger:link,
.pb-attendance-modal .pb-attendance-stats-trigger:visited {
    font-family: inherit;
    text-decoration: none !important;
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(45, 138, 94, 0.32) !important;
    border-radius: 50%;
    background: linear-gradient(165deg, #f4fcf7 0%, #e8f8ef 55%, #dff3e8 100%) !important;
    color: #1a5c3f !important;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 8px rgba(45, 138, 94, 0.1);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.12s ease;
}

.pb-attendance-modal .pb-attendance-stats-trigger__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: inherit;
}

.pb-attendance-modal .pb-attendance-stats-trigger__svg,
.pb-attendance-modal .pb-attendance-stats-trigger path {
    fill: currentColor !important;
}

.pb-attendance-modal .pb-attendance-stats-trigger:hover:not(:disabled),
.pb-attendance-modal .pb-attendance-stats-trigger:focus-visible {
    border-color: rgba(45, 138, 94, 0.55) !important;
    color: #0f3d2a !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 4px 12px rgba(45, 138, 94, 0.18);
    outline: none;
    transform: translateY(-1px);
}

.pb-attendance-modal .pb-attendance-stats-trigger:active:not(:disabled) {
    transform: translateY(0);
}

.pb-attendance-item:has(.pb-attendance-check:checked) .pb-attendance-stats-trigger {
    border-color: rgba(45, 138, 94, 0.45) !important;
}

.pb-attendance-partner-panel,
.pb-attendance-partner.pb-attendance-partner--locked {
    padding: 8px 12px 10px;
    border: 2px solid #e8ecf0;
    border-top: 1px dashed #d8e0e6;
    border-radius: 0 0 12px 12px;
    background: #f6faf8;
}

.pb-attendance-item-wrap--panel-open:has(.pb-attendance-check:checked) .pb-attendance-partner-panel,
.pb-attendance-item-wrap--partner-locked:has(.pb-attendance-check:checked) .pb-attendance-partner--locked {
    border-color: #2d8a5e;
}

.pb-attendance-partner__label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5a6c7d;
}

.pb-attendance-partner__current {
    margin: 0 0 8px;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #2c3e50;
}

.pb-attendance-partner__current strong {
    color: #1e563c;
}

.pb-attendance-partner__type {
    color: #6b7c8d;
    font-weight: 500;
}

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

.pb-attendance-partner__type {
    flex: 1 1 120px;
    min-width: 0;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 0.78rem;
    background: #fff;
    color: #1a2e22;
}

.pb-attendance-modal .pb-attendance-partner__lock,
.pb-attendance-modal .pb-attendance-partner__unlock,
.pb-attendance-modal .pb-attendance-partner__cancel,
.pb-attendance-modal .pb-attendance-partner-trigger {
    font-family: inherit;
    text-decoration: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.pb-attendance-modal .pb-attendance-partner-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 14px 6px 8px;
    margin-right: 6px;
    border: 1px solid rgba(45, 138, 94, 0.35) !important;
    border-radius: 999px;
    background: linear-gradient(165deg, #f4fcf7 0%, #e8f8ef 55%, #dff3e8 100%) !important;
    color: #1a5c3f !important;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.03em;
    white-space: nowrap;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 8px rgba(45, 138, 94, 0.12);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.12s ease;
}

.pb-attendance-modal .pb-attendance-partner-trigger__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3da06e 0%, #2d8a5e 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(45, 138, 94, 0.35);
    flex-shrink: 0;
}

.pb-attendance-modal .pb-attendance-partner-trigger__svg {
    display: block;
    width: 14px;
    height: 14px;
}

.pb-attendance-modal .pb-attendance-partner-trigger__text {
    padding-right: 2px;
}

.pb-attendance-modal .pb-attendance-partner-trigger:hover:not(:disabled),
.pb-attendance-modal .pb-attendance-partner-trigger:focus-visible {
    background: linear-gradient(165deg, #ecfbf2 0%, #daf3e4 100%) !important;
    border-color: #2d8a5e !important;
    color: #174a32 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 4px 14px rgba(45, 138, 94, 0.2);
    transform: translateY(-1px);
    outline: none;
}

.pb-attendance-modal .pb-attendance-partner-trigger:hover:not(:disabled) .pb-attendance-partner-trigger__icon,
.pb-attendance-modal .pb-attendance-partner-trigger:focus-visible .pb-attendance-partner-trigger__icon {
    box-shadow: 0 3px 10px rgba(45, 138, 94, 0.45);
}

.pb-attendance-modal .pb-attendance-partner-trigger:active:not(:disabled) {
    transform: translateY(0);
    box-shadow:
        inset 0 1px 2px rgba(30, 86, 60, 0.12),
        0 1px 4px rgba(45, 138, 94, 0.15);
}

.pb-attendance-item:has(.pb-attendance-check:checked) .pb-attendance-partner-trigger {
    border-color: rgba(45, 138, 94, 0.55) !important;
    background: linear-gradient(165deg, #f0fdf4 0%, #dcfce7 100%) !important;
}

.pb-attendance-modal .pb-attendance-partner__lock,
.pb-attendance-modal .pb-attendance-partner__unlock,
.pb-attendance-modal .pb-attendance-partner__cancel {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.pb-attendance-modal .pb-attendance-partner__lock {
    border: 1px solid #1e6b47 !important;
    background: linear-gradient(180deg, #3da06e 0%, #2d8a5e 100%) !important;
    color: #fff !important;
}

.pb-attendance-modal .pb-attendance-partner__lock:hover:not(:disabled),
.pb-attendance-modal .pb-attendance-partner__lock:focus-visible {
    background: linear-gradient(180deg, #349665 0%, #267a52 100%) !important;
    color: #fff !important;
    outline: none;
}

.pb-attendance-modal .pb-attendance-partner__cancel {
    border: 1px solid #d0d7de !important;
    background: #fff !important;
    color: #5a6c7d !important;
}

.pb-attendance-modal .pb-attendance-partner__cancel:hover:not(:disabled),
.pb-attendance-modal .pb-attendance-partner__cancel:focus-visible {
    background: #f6f8fa !important;
    color: #3d4f5f !important;
}

.pb-attendance-modal .pb-attendance-partner__unlock {
    border: 1px solid #d0d7de !important;
    background: #fff !important;
    color: #5a6c7d !important;
}

.pb-attendance-modal .pb-attendance-partner__unlock:hover:not(:disabled),
.pb-attendance-modal .pb-attendance-partner__unlock:focus-visible {
    background: #f6f8fa !important;
    color: #3d4f5f !important;
    border-color: #b8c4ce !important;
}

.pb-attendance-partner--locked {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pb-attendance-partner--locked .pb-attendance-partner__current {
    margin: 0;
    flex: 1;
    min-width: 0;
}

/* ——— Partner picker modal (emotional design) ——— */
.pb-attendance-partner-modal.pb-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: none !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    background: transparent !important;
}

.pb-attendance-partner-modal.pb-modal.is-open {
    display: flex !important;
}

.pb-attendance-partner-modal.pb-modal.is-open[hidden] {
    display: flex !important;
}

.pb-attendance-partner-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(10, 22, 40, 0.52);
    backdrop-filter: blur(5px);
}

.pb-attendance-partner-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 460px);
    max-height: min(86vh, 86dvh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 72px rgba(10, 22, 40, 0.28);
    animation: pb-attendance-in 0.35s ease;
}

.pb-attendance-partner-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 50%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
}

.pb-attendance-partner-modal__close:hover,
.pb-attendance-partner-modal__close:focus-visible {
    background: rgba(0, 0, 0, 0.24) !important;
    outline: none;
}

.pb-attendance-partner-modal__header {
    flex-shrink: 0;
    text-align: center;
    padding: 24px 20px 18px;
    background: linear-gradient(165deg, #0a1628 0%, #1e6b47 58%, #2d8a5e 100%);
    color: #fff;
}

.pb-attendance-partner-modal__icon {
    display: flex;
    justify-content: center;
    margin: 0 auto 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.pb-attendance-partner-modal__eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 12px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d4f94c;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.pb-attendance-partner-modal__header h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.02em;
}

.pb-attendance-partner-modal__lead {
    margin: 0 auto;
    max-width: 320px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

.pb-attendance-partner-modal__for {
    margin: 10px 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #d4f94c;
}

.pb-attendance-partner-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px 18px 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pb-attendance-partner-modal__search-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4a7c66;
}

.pb-attendance-partner-modal__search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid rgba(45, 138, 94, 0.22);
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fcf9 0%, #f0f7f3 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pb-attendance-partner-modal__search-icon {
    flex-shrink: 0;
    color: #2d8a5e;
    display: inline-flex;
}

.pb-attendance-partner-modal__search {
    flex: 1;
    min-width: 0;
    padding: 11px 0;
    border: 0 !important;
    background: transparent !important;
    color: #0f2942 !important;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
}

.pb-attendance-partner-modal__search:focus {
    outline: none;
}

.pb-attendance-partner-modal__search::placeholder {
    color: #7a9a88;
    font-weight: 500;
}

.pb-attendance-partner-modal__grid {
    flex: 1 1 auto;
    min-height: 120px;
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
    padding: 4px 2px 8px;
}

.pb-attendance-partner-modal__grid[hidden] {
    display: none !important;
}

.pb-attendance-partner-modal__empty {
    margin: 0;
    padding: 20px 12px;
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #5a6c7d;
    background: #f6faf8;
    border-radius: 14px;
    border: 1px dashed rgba(45, 138, 94, 0.22);
}

.pb-attendance-partner-modal__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid rgba(45, 138, 94, 0.28) !important;
    border-radius: 999px !important;
    background: linear-gradient(165deg, #f4fcf7 0%, #e8f8ef 100%) !important;
    color: #0f2942 !important;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.12s ease;
}

.pb-attendance-partner-modal__chip:hover,
.pb-attendance-partner-modal__chip:focus-visible {
    border-color: #2d8a5e !important;
    background: linear-gradient(165deg, #ecfbf2 0%, #daf3e4 100%) !important;
    color: #174a32 !important;
    outline: none;
    transform: translateY(-1px);
}

.pb-attendance-partner-modal__chip.is-selected {
    border-color: #1e6b47 !important;
    background: linear-gradient(165deg, #0a1628 0%, #1e6b47 100%) !important;
    color: #d4f94c !important;
    box-shadow: 0 4px 14px rgba(10, 22, 40, 0.2) !important;
}

.pb-attendance-partner-modal__footer {
    flex-shrink: 0;
    padding: 14px 18px 18px;
    border-top: 1px solid #e8edf0;
    background: #f9fbfa;
    display: grid;
    gap: 10px;
}

.pb-attendance-partner-modal__type-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4a7c66;
}

.pb-attendance-partner-modal__type {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(45, 138, 94, 0.22) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #0f2942 !important;
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: none !important;
}

.pb-attendance-partner-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.pb-attendance-partner-modal__cancel,
.pb-attendance-partner-modal__save {
    flex: 1 1 auto;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px !important;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.pb-attendance-partner-modal__cancel {
    border: 1px solid rgba(45, 138, 94, 0.28) !important;
    background: #fff !important;
    color: #1e563c !important;
}

.pb-attendance-partner-modal__cancel:hover,
.pb-attendance-partner-modal__cancel:focus-visible {
    background: #f0f7f3 !important;
    border-color: #2d8a5e !important;
    outline: none;
}

.pb-attendance-partner-modal__save {
    border: none !important;
    background: linear-gradient(165deg, #0a1628 0%, #1e6b47 100%) !important;
    color: #d4f94c !important;
    box-shadow: 0 6px 18px rgba(10, 22, 40, 0.22) !important;
}

.pb-attendance-partner-modal__save:hover:not(:disabled),
.pb-attendance-partner-modal__save:focus-visible {
    background: linear-gradient(165deg, #0d1d33 0%, #267a52 100%) !important;
    outline: none;
}

.pb-attendance-partner-modal__save:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ——— Attendance today-session stats modal ——— */
.pb-attendance-stats-modal.pb-modal {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: none !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    background: transparent !important;
}

.pb-attendance-stats-modal.pb-modal[hidden] {
    display: none !important;
}

.pb-attendance-stats-modal.pb-modal.is-open {
    display: flex !important;
}

.pb-attendance-stats-modal.pb-modal.is-open[hidden] {
    display: flex !important;
}

.pb-attendance-stats-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(10, 22, 40, 0.52);
    backdrop-filter: blur(5px);
}

.pb-attendance-stats-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 420px);
    max-height: min(86vh, 86dvh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 72px rgba(10, 22, 40, 0.28);
    animation: pb-attendance-in 0.35s ease;
}

.pb-attendance-stats-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 50%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
}

.pb-attendance-stats-modal__close:hover,
.pb-attendance-stats-modal__close:focus-visible {
    background: rgba(0, 0, 0, 0.24) !important;
    outline: none;
}

.pb-attendance-stats-modal__header {
    flex-shrink: 0;
    text-align: center;
    padding: 24px 20px 18px;
    background: linear-gradient(165deg, #0a1628 0%, #1e6b47 58%, #2d8a5e 100%);
    color: #fff;
}

.pb-attendance-stats-modal__icon {
    display: flex;
    justify-content: center;
    margin: 0 auto 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.pb-attendance-stats-modal__eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 12px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d4f94c;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.pb-attendance-stats-modal__header h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.02em;
}

.pb-attendance-stats-modal__lead {
    margin: 0 auto;
    max-width: 28em;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
}

.pb-attendance-stats-modal__for {
    margin: 12px 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: #d4f94c;
}

.pb-attendance-stats-modal__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 18px 22px;
}

.pb-attendance-stats-modal__loading,
.pb-attendance-stats-modal__error,
.pb-attendance-stats-modal__empty {
    margin: 0;
    padding: 18px 12px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #5a6c7d;
}

.pb-attendance-stats-modal__error {
    color: #856404;
    background: #fff8e6;
    border: 1px solid #fde68a;
    border-radius: 12px;
}

.pb-attendance-stats-modal__empty {
    margin-top: 12px;
    background: #f6faf8;
    border: 1px dashed rgba(45, 138, 94, 0.22);
    border-radius: 12px;
}

.pb-attendance-stats-modal__rank {
    margin: 0 0 12px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1e6b47;
}

.pb-attendance-stats-modal__pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.pb-attendance-stats-modal__pill {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f6faf8;
    border: 1px solid rgba(45, 138, 94, 0.16);
}

.pb-attendance-stats-modal__pill span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5a6c7d;
}

.pb-attendance-stats-modal__pill strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f2942;
}

.pb-attendance-stats-modal__pill--record strong {
    color: #1e6b47;
}

.pb-attendance-stats-modal__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pb-attendance-stats-modal__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    border-radius: 14px;
    background: #fafbfc;
    border: 1px solid #e8ecf0;
    text-align: center;
}

.pb-attendance-stats-modal__stat--wins {
    background: linear-gradient(165deg, #f0faf4 0%, #e3f6eb 100%);
    border-color: rgba(45, 138, 94, 0.28);
}

.pb-attendance-stats-modal__stat--losses {
    background: linear-gradient(165deg, #fff8e6 0%, #fef3c7 100%);
    border-color: #fde68a;
}

.pb-attendance-stats-modal__stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5a6c7d;
}

.pb-attendance-stats-modal__stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    color: #0f2942;
}

.pb-attendance-stats-modal__stat--wins .pb-attendance-stats-modal__stat-value {
    color: #1e6b47;
}

.pb-attendance-stats-modal__stat--losses .pb-attendance-stats-modal__stat-value {
    color: #856404;
}

.pb-attendance-stats-modal__period {
    margin: 14px 0 0;
    text-align: center;
    font-size: 0.75rem;
    color: #6b7c8d;
}

/* ——— Attendance uncheck blocked modal (matches partner modal) ——— */
.pb-attendance-uncheck-modal.pb-modal {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: none !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    background: transparent !important;
}

.pb-attendance-uncheck-modal.pb-modal[hidden] {
    display: none !important;
}

.pb-attendance-uncheck-modal.pb-modal.is-open {
    display: flex !important;
}

.pb-attendance-uncheck-modal.pb-modal.is-open[hidden] {
    display: flex !important;
}

.pb-attendance-queue-remove-modal.pb-modal {
    position: fixed;
    inset: 0;
    z-index: 100210;
    display: none !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    background: transparent !important;
}

.pb-attendance-queue-remove-modal.pb-modal[hidden] {
    display: none !important;
}

.pb-attendance-queue-remove-modal.pb-modal.is-open {
    display: flex !important;
}

.pb-attendance-queue-remove-modal.pb-modal.is-open[hidden] {
    display: flex !important;
}

.pb-attendance-uncheck-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(10, 22, 40, 0.52);
    backdrop-filter: blur(5px);
}

.pb-attendance-uncheck-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 420px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 72px rgba(10, 22, 40, 0.28);
    animation: pb-attendance-in 0.35s ease;
}

#pb-attendance-uncheck-modal button.pb-attendance-uncheck-modal__close[type="button"],
.pb-attendance-uncheck-modal button.pb-attendance-uncheck-modal__close[type="button"] {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.14) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 50%;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

#pb-attendance-uncheck-modal button.pb-attendance-uncheck-modal__close[type="button"]:hover,
#pb-attendance-uncheck-modal button.pb-attendance-uncheck-modal__close[type="button"]:focus-visible,
.pb-attendance-uncheck-modal button.pb-attendance-uncheck-modal__close[type="button"]:hover,
.pb-attendance-uncheck-modal button.pb-attendance-uncheck-modal__close[type="button"]:focus-visible {
    background: rgba(0, 0, 0, 0.24) !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #fff !important;
    outline: none;
}

.pb-attendance-uncheck-modal__header {
    flex-shrink: 0;
    text-align: center;
    padding: 24px 20px 18px;
    background: linear-gradient(165deg, #0a1628 0%, #1e6b47 58%, #2d8a5e 100%);
    color: #fff;
}

.pb-attendance-uncheck-modal__icon {
    display: flex;
    justify-content: center;
    margin: 0 auto 8px;
    color: #d4f94c;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.pb-attendance-uncheck-modal__icon svg {
    fill: currentColor !important;
}

.pb-attendance-uncheck-modal__eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 12px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.18);
    border-radius: 999px;
}

.pb-attendance-uncheck-modal__header h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.02em;
}

.pb-attendance-uncheck-modal__lead {
    margin: 0 auto;
    max-width: 320px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

.pb-attendance-uncheck-modal__footer {
    flex-shrink: 0;
    padding: 14px 18px 18px;
    border-top: 1px solid #e8edf0;
    background: #f9fbfa;
    display: flex;
    justify-content: stretch;
    gap: 10px;
}

.pb-attendance-uncheck-modal--queue .pb-attendance-uncheck-modal__ok {
    display: none !important;
}

.pb-attendance-uncheck-modal:not(.pb-attendance-uncheck-modal--queue):not(.pb-attendance-queue-remove-modal) .pb-attendance-uncheck-modal__cancel,
.pb-attendance-uncheck-modal:not(.pb-attendance-uncheck-modal--queue):not(.pb-attendance-queue-remove-modal) .pb-attendance-uncheck-modal__proceed {
    display: none !important;
}

.pb-attendance-queue-remove-modal .pb-attendance-uncheck-modal__cancel,
.pb-attendance-queue-remove-modal .pb-attendance-uncheck-modal__proceed,
.pb-attendance-queue-remove-modal .pb-attendance-uncheck-modal__open-spot {
    display: inline-flex !important;
}

.pb-attendance-queue-remove-modal .pb-attendance-uncheck-modal__ok {
    display: none !important;
}

.pb-attendance-queue-remove-modal__footer {
    flex-wrap: wrap;
}

#pb-attendance-queue-remove-modal button.pb-attendance-uncheck-modal__open-spot[type="button"],
.pb-attendance-queue-remove-modal button.pb-attendance-uncheck-modal__open-spot[type="button"] {
    flex: 1 1 auto;
    min-width: 0;
    appearance: none !important;
    border: 1px solid #d4e8dc !important;
    border-radius: 999px !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #1e6b47 !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    padding: 11px 14px !important;
    cursor: pointer;
}

#pb-attendance-queue-remove-modal button.pb-attendance-uncheck-modal__open-spot[type="button"]:hover,
#pb-attendance-queue-remove-modal button.pb-attendance-uncheck-modal__open-spot[type="button"]:focus-visible,
.pb-attendance-queue-remove-modal button.pb-attendance-uncheck-modal__open-spot[type="button"]:hover,
.pb-attendance-queue-remove-modal button.pb-attendance-uncheck-modal__open-spot[type="button"]:focus-visible {
    background: #f3faf6 !important;
    border-color: #9fd4b6 !important;
    color: #145c3d !important;
}

#pb-attendance-uncheck-modal button.pb-attendance-uncheck-modal__cancel[type="button"],
.pb-attendance-uncheck-modal button.pb-attendance-uncheck-modal__cancel[type="button"] {
    flex: 1 1 0;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #d5dde3 !important;
    border-radius: 999px !important;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #fff !important;
    color: #3d4f5f !important;
    box-shadow: none !important;
}

#pb-attendance-uncheck-modal button.pb-attendance-uncheck-modal__proceed[type="button"],
.pb-attendance-uncheck-modal button.pb-attendance-uncheck-modal__proceed[type="button"] {
    flex: 1 1 0;
    min-height: 42px;
    padding: 10px 16px;
    border: none !important;
    border-radius: 999px !important;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: linear-gradient(165deg, #0a1628 0%, #1e6b47 100%) !important;
    background-image: linear-gradient(165deg, #0a1628 0%, #1e6b47 100%) !important;
    color: #d4f94c !important;
    box-shadow: 0 6px 18px rgba(10, 22, 40, 0.22) !important;
    text-decoration: none !important;
}

#pb-attendance-uncheck-modal button.pb-attendance-uncheck-modal__ok[type="button"],
.pb-attendance-uncheck-modal button.pb-attendance-uncheck-modal__ok[type="button"] {
    flex: 1 1 auto;
    width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    border: none !important;
    border-radius: 999px !important;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: linear-gradient(165deg, #0a1628 0%, #1e6b47 100%) !important;
    background-image: linear-gradient(165deg, #0a1628 0%, #1e6b47 100%) !important;
    color: #d4f94c !important;
    box-shadow: 0 6px 18px rgba(10, 22, 40, 0.22) !important;
    text-decoration: none !important;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

#pb-attendance-uncheck-modal button.pb-attendance-uncheck-modal__ok[type="button"]:hover,
#pb-attendance-uncheck-modal button.pb-attendance-uncheck-modal__ok[type="button"]:focus-visible,
.pb-attendance-uncheck-modal button.pb-attendance-uncheck-modal__ok[type="button"]:hover,
.pb-attendance-uncheck-modal button.pb-attendance-uncheck-modal__ok[type="button"]:focus-visible {
    background: linear-gradient(165deg, #0d1d33 0%, #267a52 100%) !important;
    background-image: linear-gradient(165deg, #0d1d33 0%, #267a52 100%) !important;
    color: #d4f94c !important;
    border: none !important;
    outline: none;
    box-shadow: 0 8px 22px rgba(10, 22, 40, 0.28) !important;
}

.pb-attendance-item:has(.pb-attendance-check:checked) .pb-attendance-tick::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pb-attendance-empty {
    text-align: center;
    padding: 32px 20px;
}

.pb-attendance-empty-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
}

.pb-attendance-empty-sub {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7c8d;
    line-height: 1.5;
}

.pb-attendance-empty--error .pb-attendance-empty-title {
    color: #c0392b;
}

.pb-attendance-toast {
    margin: 0 14px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.pb-attendance-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pb-attendance-toast.is-success {
    color: #1e563c;
    background: #e8f8ef;
    border: 1px solid #b8e6cc;
}

.pb-attendance-toast.is-error {
    color: #922b21;
    background: #fdecea;
    border: 1px solid #f5c6cb;
}

.pb-attendance-toast {
    flex-shrink: 0;
}

.pb-attendance-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px 14px;
    background: #f6f8fa;
    border-top: 1px solid #e8ecf0;
}

.pb-attendance-save {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #2d8a5e !important;
    color: #ffffff !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #3da06e 0%, #2d8a5e 100%) !important;
    box-shadow: 0 4px 14px rgba(45, 138, 94, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.pb-attendance-save .pb-attendance-save-label {
    color: inherit;
}

.pb-attendance-save:hover:not(:disabled) {
    box-shadow: 0 6px 18px rgba(45, 138, 94, 0.4);
}

.pb-attendance-save:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: auto; /* keep cursor visible */
}
.pb-attendance-save.is-saving {
    opacity: 0.75;
    cursor: wait;
}

.pb-attendance-dismiss {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    font-size: 0.88rem;
    color: #6b7c8d;
    cursor: pointer;
}

.pb-attendance-dismiss input {
    width: auto;
    margin: 0;
    accent-color: #2d8a5e;
    cursor: pointer;
}

/* Player Tooltips */
.pb-player-wrapper {
    position: relative;
    display: inline-block;
}

.pb-tooltip {
    visibility: hidden;
    width: max-content;
    max-width: min(360px, calc(100vw - 16px));
    background-color: #23282d;
    color: #fff;
    text-align: left;
    border-radius: 4px;
    padding: 14px 14px 12px;
    position: absolute;
    z-index: 9999;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    pointer-events: none;
}

.pb-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #23282d transparent transparent transparent;
}

.pb-player-wrapper:hover .pb-tooltip {
    visibility: visible;
    opacity: 1;
}

.pb-tooltip img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    float: left;
    margin-right: 10px;
}

.pb-tooltip strong {
    color: #4dc7ed;
}

.pb-tooltip__content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pb-tooltip__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.pb-tooltip__row {
    display: block;
    white-space: nowrap;
    line-height: 1.4;
}

.pb-tooltip__row--name {
    padding-top: 2px;
}

.pb-tooltip__row--name strong {
    color: #4dc7ed;
    font-weight: 700;
}

.pb-tooltip__label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.pb-tooltip__avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
}

.pb-tooltip__content > img.pb-tooltip__avatar {
    float: none;
    margin: 0;
}

.pb-tooltip__avatar--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #555;
    color: #ddd;
    font-size: 9px;
    text-align: center;
    line-height: 1.1;
}

/* Floating player tooltip — Join the Queue modal inputs */
.pb-queue-player-tooltip {
    position: fixed;
    z-index: 100050;
    width: max-content;
    max-width: min(360px, calc(100vw - 16px));
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    bottom: auto;
    left: 0;
    top: 0;
    transform: none;
    background-color: #23282d;
    color: #fff;
    text-align: left;
    border-radius: 4px;
    padding: 18px 16px 14px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.pb-queue-player-tooltip .pb-tooltip__body {
    padding-top: 6px;
}

.pb-queue-player-tooltip .pb-tooltip__row--name {
    padding-top: 4px;
}

/* Join-queue + special-match modals — player picker fields */
.pb-queue-modal .pb-queue-player-field,
.pb-special-modal .pb-queue-player-field {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin-top: 2px;
}

.pb-queue-modal .pb-queue-player-input,
.pb-special-modal .pb-queue-player-input {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #d8e5de !important;
    border-right: none !important;
    border-radius: 10px 0 0 10px !important;
    background: #fff !important;
    color: #153d2b !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-align: left !important;
    cursor: pointer;
    box-shadow: none !important;
}

.pb-queue-modal .pb-queue-player-input:focus {
    outline: none !important;
    border-color: #2d8a5e !important;
    box-shadow: 0 0 0 3px rgba(45, 138, 94, 0.15) !important;
}

.pb-special-modal .pb-queue-player-input:focus {
    outline: none !important;
    border-color: #e67e22 !important;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.22) !important;
}

.pb-special-modal .pb-queue-player-input--editable {
    cursor: text;
}

.pb-queue-modal .pb-queue-player-pick {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid #2d8a5e !important;
    border-radius: 0 10px 10px 0 !important;
    background: linear-gradient(145deg, #2d8a5e 0%, #1e6b47 100%) !important;
    color: #fff !important;
    cursor: pointer;
    box-shadow: none !important;
}

.pb-special-modal .pb-queue-player-pick {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid #e67e22 !important;
    border-radius: 0 10px 10px 0 !important;
    background: linear-gradient(145deg, #e67e22 0%, #d35400 100%) !important;
    color: #fff !important;
    cursor: pointer;
    box-shadow: none !important;
}

.pb-queue-modal .pb-queue-player-pick.is-open,
.pb-queue-modal .pb-queue-player-pick:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(45, 138, 94, 0.25) !important;
}

.pb-special-modal .pb-queue-player-pick.is-open,
.pb-special-modal .pb-queue-player-pick:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.28) !important;
}

.pb-queue-player-pick__chevron {
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
}

.pb-queue-modal .pb-modal-team-section:first-child .form-group:nth-child(2) {
    padding-top: 6px;
}

.pb-queue-player-tooltip.is-visible {
    visibility: visible;
    opacity: 1;
}

.pb-queue-player-tooltip.is-below::after {
    top: auto;
    bottom: 100%;
    border-color: transparent transparent #23282d transparent;
}

.pb-queue-form input[name^="player_"].has-known-player {
    cursor: help;
}

/* ——— Player Registration & Login ——— */
.pb-reg {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 48px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    font-family: var(--pb-font-sans);
    color: #1a2b3c;
}

.pb-reg-brand {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 0 24px;
}

.pb-reg-brand__logo {
    display: block;
    width: clamp(140px, 50%, 320px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.pb-reg-hero {
    text-align: center;
    margin-bottom: 28px;
}

.pb-reg-eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0d6b4f;
    background: #e8f7f0;
    border-radius: 999px;
}

.pb-reg-hero h2 {
    margin: 0 0 10px;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0f2942;
}

.pb-reg-intro {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #5a6b7d;
}

.pb-reg-progress {
    margin-bottom: 28px;
}

.pb-reg-progress-track {
    height: 6px;
    background: #e8edf2;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
}

.pb-reg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.pb-reg-step-labels {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.pb-reg-step-labels li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #8a9bab;
    text-align: center;
    transition: color 0.25s ease;
}

.pb-reg-step-labels li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8edf2;
    color: #6b7c8d;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.pb-reg-step-labels li.is-active {
    color: #0d6b4f;
}

.pb-reg-step-labels li.is-active span {
    background: #2ecc71;
    color: #fff;
    transform: scale(1.08);
}

.pb-reg-step-labels li.is-done {
    color: #27ae60;
}

.pb-reg-step-labels li.is-done span {
    background: #d4f4e2;
    color: #1e8449;
}

.pb-reg-form {
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 28px 24px 20px;
    box-shadow: 0 8px 32px rgba(15, 41, 66, 0.08);
}

.pb-reg-panel {
    animation: pb-reg-fade-in 0.35s ease;
}

.pb-reg-panel[hidden] {
    display: none !important;
}

@keyframes pb-reg-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pb-reg-panel-title {
    margin: 0 0 20px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f2942;
}

.pb-reg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pb-reg-field {
    margin-bottom: 18px;
}

.pb-reg-field label,
.pb-reg-skills legend {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.pb-reg-skills legend {
    margin-bottom: 12px;
}

.pb-reg-required {
    color: #e74c3c;
}

.pb-reg-optional {
    font-weight: 400;
    font-size: 0.8rem;
    color: #8a9bab;
}

.pb-reg-hint {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: #8a9bab;
}

.pb-reg-hint--lead {
    margin: -8px 0 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #5a6b7d;
}

.pb-reg-partner-results {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    border: 1px solid rgba(46, 204, 113, 0.18);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 41, 66, 0.08);
}

.pb-reg-partner-result {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-bottom: 1px solid rgba(46, 204, 113, 0.1);
    background: #fff;
    color: #1a2b3c;
    font: inherit;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pb-reg-partner-result:last-child {
    border-bottom: none;
}

.pb-reg-partner-result:hover,
.pb-reg-partner-result:focus-visible {
    background: #f0fdf4;
    outline: none;
}

.pb-reg-partner-picked {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, #f0fdf4 0%, #e8f5ee 100%);
    border: 1px solid rgba(45, 138, 94, 0.2);
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e563c;
}

.pb-reg-partner-preview {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eef6ff;
    color: #1a5276;
    font-size: 0.9rem;
    font-weight: 600;
}

.pb-reg--tournament .pb-reg-success-icon--pending {
    background: linear-gradient(135deg, #f5b041, #e67e22);
}

.pb-reg--tournament .pb-reg-form > .pb-reg-message .pb-reg-alert {
    margin: 0;
}

.pb-reg--tournament .pb-reg-form {
    background: linear-gradient(165deg, #ffffff 0%, var(--pb-emotion-green-soft, #f0faf4) 100%);
    box-shadow:
        0 18px 48px rgba(15, 41, 66, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#pb-tournament-register.pb-reg--tournament {
    max-width: min(920px, 100%);
}

#pb-tournament-register.pb-reg--stepper .pb-reg-progress-fill {
    background: linear-gradient(90deg, #2d8a5e, #1e6b47);
}

/* Tournament fields: consistent small rounded inputs */
#pb-tournament-register .pb-reg-field input[type="text"],
#pb-tournament-register .pb-reg-field input[type="email"],
#pb-tournament-register .pb-reg-field input[type="tel"],
#pb-tournament-register .pb-reg-field input[type="url"],
#pb-tournament-register .pb-reg-field input[type="password"],
#pb-tournament-register .pb-reg-field input[type="date"],
#pb-tournament-register .pb-reg-field input[type="search"],
#pb-tournament-register .pb-reg-field textarea,
#pb-tournament-register .pb-reg-field select {
    border-radius: 8px !important;
}

#pb-tournament-register .pb-reg-intro--tournament {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

#pb-tournament-register .pb-reg-panel-eyebrow {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pb-emotion-green-muted, #4a7c66);
}

#pb-tournament-register .pb-reg-panel-vibe {
    margin: 0 0 18px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--pb-emotion-green-muted, #4a7c66);
}

#pb-tournament-register .pb-reg-fee-card {
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: var(--pb-emotion-radius-lg, 20px);
    background: linear-gradient(165deg, #ffffff 0%, var(--pb-emotion-green-soft, #f0faf4) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#pb-tournament-register .pb-reg-fee-card__label {
    display: block;
    margin: 0 0 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pb-emotion-navy-text, #0f2942);
}

#pb-tournament-register .pb-reg-qrph-card {
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: var(--pb-emotion-radius-lg, 20px);
    background: linear-gradient(165deg, #ffffff 0%, #f0faf4 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#pb-tournament-register .pb-reg-qrph-eyebrow {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pb-emotion-green-muted, #4a7c66);
}

#pb-tournament-register .pb-reg-qrph-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0 2px;
}

#pb-tournament-register #pb-tournament-qrph-img {
    width: 220px;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    background: #fff;
}

#pb-tournament-register .pb-reg-qrph-status {
    margin: 10px 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pb-emotion-green-muted, #4a7c66);
}

#pb-tournament-register .pb-reg-qrph-ref {
    margin: 0;
    font-size: 0.82rem;
    color: var(--pb-emotion-navy-text, #0f2942);
    opacity: 0.85;
}

#pb-tournament-register .pb-reg-static-qr-card .pb-reg-qrph-visual img {
    display: block;
    max-width: 220px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

#pb-tournament-register .pb-reg-static-qr-hint {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: #5a6b7d;
    text-align: center;
}

#pb-tournament-register .pb-reg-pay-methods--emotion .pb-reg-pay-method {
    cursor: pointer;
    transition:
        border-color 0.25s var(--pb-emotion-ease-soft, ease),
        background 0.25s var(--pb-emotion-ease-soft, ease),
        box-shadow 0.25s var(--pb-emotion-ease-soft, ease);
}

#pb-tournament-register .pb-reg-pay-methods--emotion .pb-reg-pay-method:has(input:checked) {
    border-color: #2d8a5e;
    background: #e8f7f0;
    box-shadow: 0 0 0 2px rgba(45, 138, 94, 0.12);
}

#pb-tournament-pay .pb-reg-pay-methods--emotion {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#pb-tournament-pay .pb-reg-pay-methods--emotion .pb-reg-pay-method {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #d7e3dc;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.25s var(--pb-emotion-ease-soft, ease),
        background 0.25s var(--pb-emotion-ease-soft, ease),
        box-shadow 0.25s var(--pb-emotion-ease-soft, ease);
}

#pb-tournament-pay .pb-reg-pay-methods--emotion .pb-reg-pay-method:has(input:checked) {
    border-color: #2d8a5e;
    background: #e8f7f0;
    box-shadow: 0 0 0 2px rgba(45, 138, 94, 0.12);
}

#pb-tournament-pay .pb-reg-pay-method--cash:has(input:checked) {
    border-color: #c9a227;
    background: #fff8e6;
    box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.18);
}

#pb-tournament-pay.pb-reg--pay-cash #pb-tournament-payment-proof-zone {
    display: none;
}

#pb-tournament-pay #pb-tournament-payment-cash-hint {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff8e6;
    border: 1px solid #fde68a;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.45;
}

#pb-tournament-register .pb-reg-pay-methods.pb-reg-invalid {
    border-radius: var(--pb-emotion-radius-pill, 999px);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

#pb-tournament-register .pb-reg-payment-proof-upload,
#pb-tournament-pay .pb-reg-payment-proof-upload,
#pb-tournament-sponsor .pb-reg-payment-proof-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 168px;
    padding: 22px 18px;
    border: 2px dashed rgba(45, 138, 94, 0.38);
    border-radius: 16px;
    background:
        linear-gradient(165deg, #ffffff 0%, #f4faf7 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    cursor: pointer;
    text-align: center;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

#pb-tournament-register .pb-reg-payment-proof-upload:hover,
#pb-tournament-pay .pb-reg-payment-proof-upload:hover,
#pb-tournament-sponsor .pb-reg-payment-proof-upload:hover,
#pb-tournament-register .pb-reg-payment-proof-upload.is-filled,
#pb-tournament-pay .pb-reg-payment-proof-upload.is-filled,
#pb-tournament-sponsor .pb-reg-payment-proof-upload.is-filled {
    border-color: #2d8a5e;
    background: #eef8f2;
    box-shadow: 0 0 0 3px rgba(45, 138, 94, 0.1);
}

#pb-tournament-register .pb-reg-payment-proof-upload.pb-reg-invalid,
#pb-tournament-pay .pb-reg-payment-proof-upload.pb-reg-invalid,
#pb-tournament-sponsor .pb-reg-payment-proof-upload.pb-reg-invalid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12) !important;
    background: #fff5f5 !important;
}

#pb-tournament-register .pb-reg-payment-proof-upload input[type="file"],
#pb-tournament-pay .pb-reg-payment-proof-upload input[type="file"],
#pb-tournament-sponsor .pb-reg-payment-proof-upload input[type="file"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
    font-size: 0 !important;
    z-index: 1;
}

/* Keep Change logo above the overlay input once a preview is shown. */
#pb-tournament-sponsor .pb-reg-payment-proof-upload.is-filled input[type="file"] {
    pointer-events: none !important;
}

#pb-tournament-sponsor .pb-reg-payment-proof-upload__change {
    pointer-events: auto !important;
    z-index: 4 !important;
}

#pb-tournament-register .pb-reg-payment-proof-upload__placeholder,
#pb-tournament-pay .pb-reg-payment-proof-upload__placeholder,
#pb-tournament-sponsor .pb-reg-payment-proof-upload__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
    max-width: 280px;
}

#pb-tournament-register .pb-reg-payment-proof-upload__icon,
#pb-tournament-pay .pb-reg-payment-proof-upload__icon,
#pb-tournament-sponsor .pb-reg-payment-proof-upload__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 0 4px;
    border-radius: 50%;
    background: rgba(45, 138, 94, 0.14);
    color: #1e6b47;
    flex-shrink: 0;
}

#pb-tournament-register .pb-reg-payment-proof-upload__icon svg,
#pb-tournament-pay .pb-reg-payment-proof-upload__icon svg,
#pb-tournament-sponsor .pb-reg-payment-proof-upload__icon svg {
    display: block;
    fill: none;
    stroke: currentColor;
}

#pb-tournament-register .pb-reg-payment-proof-upload__text,
#pb-tournament-pay .pb-reg-payment-proof-upload__text,
#pb-tournament-sponsor .pb-reg-payment-proof-upload__text {
    display: block;
    font-family: var(--pb-font-sans, "Poppins", sans-serif);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #0f2942;
}

#pb-tournament-register .pb-reg-payment-proof-upload__sub,
#pb-tournament-pay .pb-reg-payment-proof-upload__sub,
#pb-tournament-sponsor .pb-reg-payment-proof-upload__sub {
    display: block;
    margin-top: 0;
    font-family: var(--pb-font-sans, "Poppins", sans-serif);
    font-size: 0.8rem;
    line-height: 1.4;
    color: #6b7c8d;
}

#pb-tournament-register .pb-reg-payment-proof-upload__preview-wrap,
#pb-tournament-pay .pb-reg-payment-proof-upload__preview-wrap,
#pb-tournament-sponsor .pb-reg-payment-proof-upload__preview-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

#pb-tournament-register .pb-reg-payment-proof-upload__preview,
#pb-tournament-pay .pb-reg-payment-proof-upload__preview,
#pb-tournament-sponsor .pb-reg-payment-proof-upload__preview {
    display: block;
    max-width: 100%;
    max-height: 180px;
    margin: 0 auto;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 4px 14px rgba(15, 41, 66, 0.12);
}

#pb-tournament-register .pb-reg-payment-proof-upload__change,
#pb-tournament-pay .pb-reg-payment-proof-upload__change,
#pb-tournament-sponsor .pb-reg-payment-proof-upload__change {
    position: relative;
    z-index: 3;
    appearance: none !important;
    border: 1px solid #c5e6d4 !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #1e6b47 !important;
    font-family: var(--pb-font-sans, "Poppins", sans-serif) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    min-height: 0 !important;
    padding: 7px 16px !important;
    border-radius: 999px !important;
    cursor: pointer;
}

#pb-tournament-register .pb-reg-payment-proof-upload__change:hover,
#pb-tournament-pay .pb-reg-payment-proof-upload__change:hover,
#pb-tournament-sponsor .pb-reg-payment-proof-upload__change:hover,
#pb-tournament-register .pb-reg-payment-proof-upload__change:focus-visible,
#pb-tournament-pay .pb-reg-payment-proof-upload__change:focus-visible,
#pb-tournament-sponsor .pb-reg-payment-proof-upload__change:focus-visible {
    background: #e8f7f0 !important;
    border-color: #2d8a5e !important;
    color: #134a35 !important;
}

#pb-tournament-pay .pb-reg-field--upload,
#pb-tournament-sponsor .pb-reg-field--upload {
    margin-top: 4px;
}

#pb-tournament-pay .pb-reg-club-logo-upload__title,
#pb-tournament-sponsor .pb-reg-club-logo-upload__title {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #0f2942;
}



/* --- Tournament sponsorship form --- */

#pb-tournament-sponsor.pb-reg--sponsor .pb-reg-intro--tournament {
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
}

#pb-tournament-sponsor .pb-reg-panel-eyebrow {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2d8a5e;
}

#pb-tournament-sponsor .pb-reg-panel-vibe {
    margin: 0 0 22px;
    font-size: 0.98rem;
    line-height: 1.5;
    color: #5a6b7d;
}

#pb-tournament-sponsor .pb-reg-field input[type="text"],
#pb-tournament-sponsor .pb-reg-field input[type="email"],
#pb-tournament-sponsor .pb-reg-field input[type="tel"],
#pb-tournament-sponsor .pb-reg-field input[type="url"] {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: none !important;
    background: #f3f5f7 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

#pb-tournament-sponsor .pb-reg-field input[type="text"]:focus,
#pb-tournament-sponsor .pb-reg-field input[type="email"]:focus,
#pb-tournament-sponsor .pb-reg-field input[type="tel"]:focus,
#pb-tournament-sponsor .pb-reg-field input[type="url"]:focus {
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2) !important;
}

#pb-tournament-sponsor .pb-reg-field input.pb-reg-invalid {
    border: 1.5px solid #e74c3c !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
}

#pb-tournament-sponsor .pb-reg-sponsor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 14px;
    margin-bottom: 4px;
}

@media (min-width: 640px) {
    #pb-tournament-sponsor .pb-reg-sponsor-grid {
        grid-template-columns: 1fr 1fr;
    }
}

#pb-tournament-sponsor .pb-reg-sponsor-grid > .pb-reg-field {
    margin-bottom: 16px;
}

#pb-tournament-sponsor .pb-reg-sponsor-presence {
    margin: 8px 0 22px;
    padding: 16px 16px 6px;
    border-radius: 16px;
    background: #f0faf4;
}

#pb-tournament-sponsor .pb-reg-field--presence {
    margin-bottom: 14px;
}

#pb-tournament-sponsor .pb-reg-presence-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px 0 12px;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(45, 138, 94, 0.16);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

#pb-tournament-sponsor .pb-reg-presence-input:focus-within {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

#pb-tournament-sponsor .pb-reg-presence-input.pb-reg-invalid {
    box-shadow: inset 0 0 0 1.5px #e74c3c, 0 0 0 3px rgba(231, 76, 60, 0.12);
    background: #fff5f5;
}

#pb-tournament-sponsor .pb-reg-presence-input.pb-reg-invalid:focus-within {
    box-shadow: inset 0 0 0 1.5px #e74c3c, 0 0 0 3px rgba(231, 76, 60, 0.15);
}

#pb-tournament-sponsor .pb-reg-presence-input__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e8f7f0;
    color: #1e6b47;
}

#pb-tournament-sponsor .pb-reg-presence-input__icon svg {
    display: block;
    fill: currentColor;
}

#pb-tournament-sponsor .pb-reg-presence-input__icon svg[fill="none"] {
    fill: none;
}

#pb-tournament-sponsor .pb-reg-presence-input input[type="text"],
#pb-tournament-sponsor .pb-reg-presence-input input[type="url"] {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
    padding: 12px 12px 12px 0 !important;
    border: none !important;
    border-radius: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
}

#pb-tournament-sponsor .pb-reg-presence-input input[type="text"]:focus,
#pb-tournament-sponsor .pb-reg-presence-input input[type="url"]:focus {
    background: transparent !important;
    box-shadow: none !important;
}

#pb-tournament-sponsor .pb-reg-actions--sponsor {
    justify-content: stretch;
}

#pb-tournament-sponsor .pb-reg-actions--sponsor .pb-reg-submit-btn {
    width: 100%;
}

/* Tournament t-shirt sizes form */
#pb-tournament-tshirt.pb-reg--tshirt .pb-reg-tshirt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 8px;
}

@media (min-width: 720px) {
    #pb-tournament-tshirt.pb-reg--tshirt .pb-reg-tshirt-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

#pb-tournament-tshirt.pb-reg--tshirt .pb-reg-tshirt-card {
    margin: 0;
    padding: 14px 14px 10px;
    border-radius: var(--pb-emotion-radius-lg, 16px);
    border: 1px solid #d8e5dc;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
    box-shadow: 0 8px 20px rgba(15, 41, 66, 0.05);
}

#pb-tournament-tshirt.pb-reg--tshirt .pb-reg-player-card__label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pb-emotion-green-deep, #1e6b47);
}

#pb-tournament-tshirt .pb-tournament-tshirt-chart {
    margin: 4px 0 18px;
    padding: 14px 14px 12px;
    border-radius: 14px;
    background: #f4faf7;
    text-align: center;
}

#pb-tournament-tshirt .pb-tournament-tshirt-chart__caption {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pb-emotion-green-deep, #1e6b47);
}

#pb-tournament-tshirt .pb-tournament-tshirt-chart__img {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    background: #fff;
}

#pb-tournament-tshirt.pb-reg--tshirt .pb-reg-actions--tshirt {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: stretch;
}

#pb-tournament-tshirt.pb-reg--tshirt .pb-reg-actions--tshirt .pb-reg-submit-btn {
    width: 100%;
}

#pb-tournament-tshirt .pb-reg-actions--tournament-stepper .pb-reg-submit-btn {
    appearance: none;
    -webkit-appearance: none;
    border: none !important;
    background-image: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, #0a1628 0%, #1e6b47 100%) !important;
    color: #d4f94c !important;
    -webkit-text-fill-color: #d4f94c !important;
}

#pb-tournament-tshirt .pb-reg-actions--tournament-stepper .pb-reg-submit-btn:hover:not(:disabled),
#pb-tournament-tshirt .pb-reg-actions--tournament-stepper .pb-reg-submit-btn:focus-visible {
    filter: brightness(1.05);
}

#pb-tournament-tshirt .pb-tournament-tshirt-contact-nudge {
    margin: 2px 0 0;
    text-align: center;
    color: #5a6b7d;
    font-size: 13px;
    line-height: 1.55;
}

#pb-tournament-tshirt button.pb-tournament-tshirt-contact-link[type="button"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 2px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #1e6b47 !important;
    -webkit-text-fill-color: #1e6b47 !important;
    font: inherit !important;
    font-weight: 700 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    cursor: pointer;
}

#pb-tournament-tshirt button.pb-tournament-tshirt-contact-link[type="button"]:hover,
#pb-tournament-tshirt button.pb-tournament-tshirt-contact-link[type="button"]:focus-visible {
    color: #0a1628 !important;
    -webkit-text-fill-color: #0a1628 !important;
    text-decoration-thickness: 2px;
    outline: none;
}

body.pb-tournament-tshirt-contact-open {
    overflow: hidden;
}

.pb-tournament-tshirt-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 100080;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 14px;
    overflow-x: hidden;
    overflow-y: auto;
}

.pb-tournament-tshirt-contact-modal[hidden] {
    display: none !important;
}

.pb-tournament-tshirt-contact-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.5);
}

.pb-tournament-tshirt-contact-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(92vh, 780px);
    margin: auto;
    padding: 22px 20px 18px;
    overflow: auto;
    border: 1px solid rgba(30, 107, 71, 0.22);
    border-radius: 18px;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(212, 249, 76, 0.18) 0%, transparent 46%),
        linear-gradient(180deg, #f8fdf9 0%, #ffffff 42%);
    box-shadow: 0 24px 48px rgba(10, 22, 40, 0.22);
}

.pb-tournament-tshirt-contact-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    appearance: none !important;
    border: none !important;
    border-radius: 50%;
    background: rgba(10, 22, 40, 0.06) !important;
    background-image: none !important;
    color: #0f2942 !important;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
}

.pb-tournament-tshirt-contact-modal__hero {
    margin: 0 0 16px;
    padding-right: 36px;
}

.pb-tournament-tshirt-contact-modal__eyebrow {
    margin: 0 0 6px;
    color: #1e6b47;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pb-tournament-tshirt-contact-modal__title {
    margin: 0 0 10px;
    color: #0a1628;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.pb-tournament-tshirt-contact-modal__lead {
    margin: 0 0 10px;
    color: #5a6b7d;
    font-size: 14px;
    line-height: 1.55;
}

.pb-tournament-tshirt-contact-modal__reassure {
    margin: 0;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(45, 138, 94, 0.1);
    color: #1e6b47;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.pb-tournament-tshirt-contact-modal__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.pb-tournament-tshirt-contact-modal__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 12px;
}

@media (min-width: 560px) {
    .pb-tournament-tshirt-contact-modal__grid {
        grid-template-columns: 1fr 1fr;
    }

    .pb-tournament-tshirt-contact-modal__field--full {
        grid-column: 1 / -1;
    }
}

.pb-tournament-tshirt-contact-modal__form .pb-reg-field {
    margin-bottom: 12px;
}

.pb-tournament-tshirt-contact-modal__form textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    border-radius: 10px;
}

.pb-tournament-tshirt-contact-modal__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid #eef2f0;
}

.pb-tournament-tshirt-contact-modal__footer .pb-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    min-height: 42px;
    border-radius: 999px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.pb-tournament-tshirt-contact-modal__footer .pb-btn-secondary {
    border: 1px solid #b8c8d2 !important;
    background: #f4f8fa !important;
    background-image: none !important;
    color: #0f2942 !important;
}

.pb-tournament-tshirt-contact-modal__footer .pb-btn-primary,
.pb-tournament-tshirt-contact-modal__footer .pb-tournament-tshirt-contact-modal__submit {
    border: none !important;
    background: linear-gradient(135deg, #0a1628 0%, #1e6b47 100%) !important;
    background-image: linear-gradient(135deg, #0a1628 0%, #1e6b47 100%) !important;
    color: #d4f94c !important;
}

.pb-tournament-tshirt-contact-modal__footer .pb-tournament-tshirt-contact-modal__submit.is-loading {
    opacity: 0.78;
    cursor: wait;
}

#pb-tournament-sponsor .pb-reg-actions--tournament-stepper .pb-reg-submit-btn {
    appearance: none;
    -webkit-appearance: none;
    border: none !important;
    background-image: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, #0a1628 0%, #1e6b47 100%) !important;
    color: #d4f94c !important;
    border-radius: 999px !important;
    font-weight: 700;
    padding: 14px 28px;
}

#pb-tournament-sponsor .pb-reg-actions--tournament-stepper .pb-reg-submit-btn:hover:not(:disabled),
#pb-tournament-sponsor .pb-reg-actions--tournament-stepper .pb-reg-submit-btn:focus-visible {
    background: linear-gradient(135deg, #0f2942 0%, #2d8a5e 100%) !important;
    color: #d4f94c !important;
}

/* --- Player cards grid --- */

#pb-tournament-register .pb-reg-player-cards {
    display: grid;
    gap: 16px;
}

@media (min-width: 640px) {
    #pb-tournament-register .pb-reg-player-cards {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

#pb-tournament-register .pb-reg-player-card {
    display: flex;
    flex-direction: column;
    border: 1.5px solid rgba(45, 138, 94, 0.18);
    border-radius: var(--pb-emotion-radius-lg, 20px);
    background: linear-gradient(170deg, #ffffff 0%, #f5faf8 100%);
    padding: 20px 18px 18px;
    transition:
        border-color 0.3s var(--pb-emotion-ease-soft, ease),
        box-shadow 0.3s var(--pb-emotion-ease-soft, ease);
}

#pb-tournament-register .pb-reg-player-card:hover {
    border-color: rgba(45, 138, 94, 0.35);
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.06);
}

#pb-tournament-register .pb-reg-player-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

#pb-tournament-register .pb-reg-player-card__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a1628 0%, #1e6b47 100%);
    color: #d4f94c;
    font-weight: 800;
    font-size: 0.82rem;
    flex-shrink: 0;
}

#pb-tournament-register .pb-reg-player-card__label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--pb-emotion-navy-text, #0f2942);
    letter-spacing: -0.01em;
}

/* --- Photo upload inside player card --- */

#pb-tournament-register .pb-reg-player-card__photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

#pb-tournament-register .pb-reg-photo-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 108px;
    border: 2px dashed rgba(45, 138, 94, 0.35);
    border-radius: 50%;
    background: linear-gradient(165deg, #ffffff 0%, #f0faf4 100%);
    cursor: pointer;
    text-align: center;
    transition:
        border-color 0.25s var(--pb-emotion-ease-soft, ease),
        background 0.25s var(--pb-emotion-ease-soft, ease),
        box-shadow 0.25s var(--pb-emotion-ease-soft, ease);
    overflow: hidden;
}

#pb-tournament-register .pb-reg-photo-upload:hover {
    border-color: #2d8a5e;
    background: #e8f7f0;
    box-shadow: 0 0 0 4px rgba(45, 138, 94, 0.08);
}

#pb-tournament-register .pb-reg-photo-upload.is-filled {
    border-style: solid;
    border-color: #2d8a5e;
    box-shadow: 0 0 0 3px rgba(45, 138, 94, 0.12);
}

#pb-tournament-register .pb-reg-photo-upload.pb-reg-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

#pb-tournament-register .pb-reg-photo-upload__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

#pb-tournament-register .pb-reg-photo-upload__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    z-index: 1;
    pointer-events: none;
}

#pb-tournament-register .pb-reg-photo-upload__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(45, 138, 94, 0.10);
    color: #1e6b47;
}

#pb-tournament-register .pb-reg-photo-upload__text {
    display: block;
    font-weight: 600;
    font-size: 0.72rem;
    color: var(--pb-emotion-green-deep, #1e6b47);
    letter-spacing: 0.01em;
}

#pb-tournament-register .pb-reg-photo-upload__hint {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #6b7c8d;
    text-align: center;
}

#pb-tournament-register .pb-reg-photo-upload__preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

#pb-tournament-register .pb-reg-photo-upload__preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#pb-tournament-register .pb-reg-photo-upload__change {
    display: none;
}

/* --- Fields inside player card --- */

#pb-tournament-register .pb-reg-player-card__fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#pb-tournament-register .pb-reg-player-card__fields .pb-reg-field label {
    font-size: 0.85rem;
}

#pb-tournament-register .pb-reg-field--contact-phone {
    margin-top: 20px;
}

#pb-tournament-register .pb-reg-actions--tournament-stepper .pb-reg-back--tournament {
    color: #5a6b7d;
    background: #eef2f6 !important;
    border: none !important;
    min-width: 96px !important;
    padding: 8px 14px !important;
    font-size: 0.92rem !important;
    border-radius: var(--pb-emotion-radius-pill, 999px) !important;
}

#pb-tournament-register .pb-reg-actions--tournament-stepper .pb-reg-next--tournament,
#pb-tournament-register .pb-reg-actions--tournament-stepper .pb-reg-submit-btn {
    background: linear-gradient(135deg, #0a1628 0%, #1e6b47 100%) !important;
    color: #d4f94c !important;
    border: none !important;
    border-radius: var(--pb-emotion-radius-pill, 999px) !important;
    font-weight: 700;
    min-width: 110px !important;
    padding: 8px 16px !important;
    font-size: 0.92rem !important;
}

#pb-tournament-register .pb-reg-actions--tournament-stepper .pb-reg-submit-btn[hidden] {
    display: none !important;
}

#pb-tournament-register .pb-reg-actions--tournament-stepper {
    gap: 10px;
    margin-top: 18px;
}

#pb-tournament-register .pb-reg-step-labels--tournament li.is-active {
    color: var(--pb-emotion-green-deep, #1e6b47);
}

#pb-tournament-register .pb-reg-step-labels--tournament li.is-active span {
    background: #2d8a5e;
}

@media (max-width: 480px) {
    #pb-tournament-register .pb-reg-step-labels--tournament li {
        font-size: 0.68rem;
    }
}

#pb-tournament-register .pb-reg-section {
    margin: 0 0 28px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(15, 41, 66, 0.08);
}

#pb-tournament-register .pb-reg-section:last-of-type {
    border-bottom: none;
}

#pb-tournament-register .pb-reg-section__title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f2942;
}

#pb-tournament-register .pb-reg-doubles-grid {
    display: grid;
    gap: 14px;
}

@media (min-width: 640px) {
    #pb-tournament-register .pb-reg-doubles-grid {
        grid-template-columns: 1fr 1fr;
    }
}

#pb-tournament-register .pb-reg-category-field__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

#pb-tournament-register .pb-reg-category-field[hidden],
#pb-tournament-register .pb-reg-category-option[hidden] {
    display: none !important;
}

#pb-tournament-register .pb-reg-category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#pb-tournament-register .pb-reg-category-option {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f3f5f7 !important;
    background-image: none !important;
    box-shadow: none !important;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#pb-tournament-register .pb-reg-category-option:hover {
    border-color: #cbd5e1 !important;
    background: #eef2f6 !important;
}

#pb-tournament-register .pb-reg-category-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#pb-tournament-register .pb-reg-category-option__text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f2942;
    line-height: 1.25;
}

#pb-tournament-register .pb-reg-category-option.is-selected,
#pb-tournament-register .pb-reg-category-option:has(input:checked) {
    border-color: #1e6b47 !important;
    background: #e8f7f0 !important;
    background-image: none !important;
    box-shadow: 0 0 0 1px #1e6b47, 0 2px 8px rgba(30, 107, 71, 0.12) !important;
}

#pb-tournament-register .pb-reg-category-option.is-selected:hover,
#pb-tournament-register .pb-reg-category-option:has(input:checked):hover {
    border-color: #1e6b47 !important;
    background: #dff3ea !important;
}

#pb-tournament-register .pb-reg-category-options.pb-reg-invalid {
    border-radius: 10px;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

#pb-tournament-register .pb-reg-category-option.is-full {
    border-color: #fde68a !important;
    background: #fff8e6 !important;
}

#pb-tournament-register .pb-reg-category-option.is-full.is-selected,
#pb-tournament-register .pb-reg-category-option.is-full:has(input:checked) {
    border-color: #f59e0b !important;
    background: #fff3d6 !important;
    box-shadow: 0 0 0 1px #f59e0b, 0 2px 8px rgba(245, 158, 11, 0.12) !important;
}

#pb-tournament-register .pb-reg-category-option__full-badge {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff8e6 !important;
    border: 1px solid #f6c453 !important;
    color: #b45309 !important;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

#pb-tournament-register .pb-reg-category-option__full-badge[hidden] {
    display: none !important;
}

#pb-tournament-register .pb-reg-division-slots {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

#pb-tournament-register .pb-reg-division-slots[hidden] {
    display: none !important;
}

#pb-tournament-register .pb-reg-division-slots__chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 11px;
    border-radius: 999px;
    border: 1px solid #b7e0cb;
    background: #f0fdf4;
    color: #1e6b47;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
}

#pb-tournament-register .pb-reg-division-slots__chip.is-full {
    border-color: #f6c453;
    background: #fff8e6;
    color: #b45309;
}

#pb-tournament-register .pb-reg-division-slots__hint {
    font-size: 0.8rem;
    font-weight: 600;
    color: #b45309;
    line-height: 1.35;
}

#pb-tournament-register .pb-reg-division-slots__hint[hidden] {
    display: none !important;
}

#pb-tournament-register .pb-reg-actions--tournament-stepper .pb-reg-next.is-disabled,
#pb-tournament-register .pb-reg-actions--tournament-stepper .pb-reg-next:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 639px) {
    #pb-tournament-register .pb-reg-category-option {
        flex: 1 1 100%;
    }
}

#pb-tournament-register .pb-reg-fee-display {
    margin: 0 0 8px;
    font-weight: 600;
    color: #1e6b47;
}

#pb-tournament-register .pb-reg-fee-notes {
    margin: 0 0 14px;
    color: #5a6b7d;
    white-space: pre-wrap;
}

#pb-tournament-register .pb-reg-pay-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#pb-tournament-register .pb-reg-pay-method {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #d7e3dc;
    border-radius: 999px;
    background: #fff;
}

#pb-tournament-register .pb-reg-field-hint {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: #6b7c8d;
}

.pb-tournament-team-status__meta,
.pb-tournament-team-status__players {
    margin: 0 0 12px;
    color: #5a6b7d;
}

.pb-tournament-team-status__players {
    padding-left: 1.1em;
}

#pb-tournament-register .pb-reg-tournament-club-rep {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

@media (min-width: 600px) {
    #pb-tournament-register .pb-reg-tournament-club-rep {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    #pb-tournament-register.pb-reg--tournament .pb-reg-form {
        padding: 32px 36px 26px;
    }

    #pb-tournament-register.pb-reg--tournament .pb-reg-tournament-club-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

.pb-reg-registration-type--emotion legend {
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pb-emotion-navy-text, #0f2942);
}

.pb-reg-type-vibe {
    margin: 0 0 14px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--pb-emotion-green-muted, #4a7c66);
    transition: color 0.25s var(--pb-emotion-ease-soft, ease), opacity 0.25s var(--pb-emotion-ease-soft, ease);
}

.pb-reg--type-club .pb-reg-type-vibe {
    color: var(--pb-emotion-purple, #5b4a9e);
}

.pb-reg-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.pb-reg-type-grid.pb-reg-invalid {
    border-radius: var(--pb-emotion-radius-lg, 20px);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.pb-reg-type-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 10px 12px;
    border-radius: 14px;
    border: 2px solid rgba(15, 41, 66, 0.08);
    background: linear-gradient(165deg, #ffffff 0%, #f8fbfa 100%);
    cursor: pointer;
    overflow: hidden;
    text-align: left;
    isolation: isolate;
    transition:
        transform 0.28s var(--pb-emotion-ease, ease),
        border-color 0.28s var(--pb-emotion-ease-soft, ease),
        background 0.28s var(--pb-emotion-ease-soft, ease),
        box-shadow 0.28s var(--pb-emotion-ease-soft, ease);
    animation: pb-reg-type-card-in 0.55s var(--pb-emotion-ease-soft, ease) backwards;
}

.pb-reg-type-card__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.2;
    transform: scale(1.08);
    filter: blur(1px) saturate(1.1);
    pointer-events: none;
}

.pb-reg-type-card__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(240, 250, 244, 0.88) 52%,
        rgba(255, 255, 255, 0.92) 100%
    );
    pointer-events: none;
}

.pb-reg-type-card > :not(.pb-reg-type-card__bg):not(.pb-reg-type-card__veil) {
    position: relative;
    z-index: 2;
}

.pb-reg-type-card--club {
    animation-delay: 0.05s;
}

.pb-reg-type-card--individual {
    animation-delay: 0.12s;
}

.pb-reg-type-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(212, 249, 76, 0.14), transparent 58%);
    opacity: 0;
    transition: opacity 0.28s var(--pb-emotion-ease-soft, ease);
    pointer-events: none;
}

.pb-reg-type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pb-reg-type-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(45, 138, 94, 0.14);
    box-shadow: none;
    transition: color 0.28s var(--pb-emotion-ease-soft, ease), background 0.28s var(--pb-emotion-ease-soft, ease);
}

.pb-reg-type-visual--club,
.pb-reg-type-visual--individual {
    background: rgba(255, 255, 255, 0.78);
}

.pb-reg-type-logo {
    display: none;
}

.pb-reg-type-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--pb-emotion-green-deep, #1e563c);
}

.pb-reg-type-symbol--club {
    color: var(--pb-emotion-purple, #5b4a9e);
}

.pb-reg-type-symbol-icon {
    width: 22px;
    height: 22px;
}

.pb-reg-type-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding-right: 18px;
}

.pb-reg-type-name {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--pb-emotion-navy-text, #0f2942);
    line-height: 1.2;
}

.pb-reg-type-hint {
    font-size: 0.74rem;
    line-height: 1.3;
    color: var(--pb-emotion-green-muted, #4a7c66);
}

.pb-reg-type-card:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 138, 94, 0.28);
    box-shadow: 0 14px 28px rgba(15, 41, 66, 0.08);
}

.pb-reg-type-card:hover .pb-reg-type-visual {
    transform: none;
}

.pb-reg-type-card:hover .pb-reg-type-card__bg {
    opacity: 0.26;
}

.pb-reg-type-card.is-selected {
    transform: translateY(-1px);
    border-color: transparent;
    box-shadow: var(--pb-emotion-shadow, 0 24px 64px rgba(15, 41, 66, 0.22));
}

.pb-reg-type-card.is-selected::before {
    opacity: 1;
}

.pb-reg-type-card--club.is-selected {
    background: transparent;
}

.pb-reg-type-card--club.is-selected .pb-reg-type-name,
.pb-reg-type-card--club.is-selected .pb-reg-type-hint {
    color: rgba(255, 255, 255, 0.92);
}

.pb-reg-type-card--club.is-selected .pb-reg-type-hint {
    color: rgba(212, 249, 76, 0.82);
}

.pb-reg-type-card--club.is-selected .pb-reg-type-card__veil {
    background: linear-gradient(
        155deg,
        rgba(10, 22, 40, 0.9) 0%,
        rgba(15, 33, 64, 0.84) 58%,
        rgba(30, 86, 60, 0.88) 100%
    );
}

.pb-reg-type-card--club.is-selected .pb-reg-type-card__bg {
    opacity: 0.34;
    filter: blur(0.5px) saturate(1.15);
}

.pb-reg-type-card--club.is-selected .pb-reg-type-visual {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(212, 249, 76, 0.35);
    box-shadow: none;
}

.pb-reg-type-card--club.is-selected .pb-reg-type-symbol--club {
    color: var(--pb-emotion-lime, #d4f94c);
}

.pb-reg-type-card--individual.is-selected {
    background: transparent;
    border-color: rgba(45, 138, 94, 0.35);
}

.pb-reg-type-card--individual.is-selected .pb-reg-type-name {
    color: var(--pb-emotion-green-deep, #1e563c);
}

.pb-reg-type-card--individual.is-selected .pb-reg-type-card__veil {
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(240, 250, 244, 0.82) 55%,
        rgba(255, 255, 255, 0.94) 100%
    );
}

.pb-reg-type-card--individual.is-selected .pb-reg-type-card__bg {
    opacity: 0.28;
}

.pb-reg-type-card--individual.is-selected .pb-reg-type-visual {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(45, 138, 94, 0.22);
    box-shadow: none;
}

.pb-reg--tournament .pb-reg-field--tournament-name {
    margin-top: 18px;
}

.pb-reg-tournament-individual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    margin-top: 18px;
}

.pb-reg-tournament-individual > .pb-reg-field--half {
    margin: 0;
}

.pb-reg-tournament-individual > .pb-reg-field:not(.pb-reg-field--half) {
    grid-column: 1 / -1;
    margin: 0;
}

.pb-reg-tournament-clubs {
    border: none;
    padding: 0;
    margin: 0;
    grid-column: 1 / -1;
}

.pb-reg-tournament-clubs--emotion {
    margin-top: 4px;
}

.pb-reg-tournament-clubs--invalid .pb-reg-tournament-clubs__panel {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

.pb-reg-tournament-clubs--invalid .pb-reg-field-error {
    color: #b91c1c;
    font-size: 0.9rem;
    margin: 0 0 12px;
}

#pb-tournament-register .pb-reg-club-logo-upload {
    margin-top: 16px;
    padding-top: 4px;
}

#pb-tournament-register .pb-reg-club-logo-upload__eyebrow {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pb-emotion-green-muted, #5a8f72);
}

#pb-tournament-register .pb-reg-club-logo-upload__title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--pb-emotion-navy-text, #0f2942);
}

#pb-tournament-register .pb-reg-club-logo-upload__vibe {
    margin: 0 0 12px;
    font-size: 0.86rem;
    line-height: 1.45;
    font-weight: 500;
    color: var(--pb-emotion-green-muted, #4a7c66);
}

#pb-tournament-register .pb-reg-club-logo-upload__zone {
    position: relative;
    border-radius: 16px;
    padding: 22px 16px 20px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        rgba(240, 250, 244, 0.95) 0%,
        rgba(255, 255, 255, 0.96) 50%,
        rgba(232, 245, 238, 0.9) 100%
    );
    border: 2px dashed rgba(45, 138, 94, 0.28);
    box-shadow: 0 12px 32px rgba(15, 41, 66, 0.06);
    transition:
        border-color 0.22s var(--pb-emotion-ease-soft, ease),
        box-shadow 0.22s var(--pb-emotion-ease-soft, ease),
        transform 0.22s var(--pb-emotion-ease-soft, ease);
}

#pb-tournament-register .pb-reg-club-logo-upload__zone::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -24px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 249, 76, 0.28) 0%, rgba(212, 249, 76, 0) 70%);
    pointer-events: none;
}

#pb-tournament-register .pb-reg-club-logo-upload__zone:hover,
#pb-tournament-register .pb-reg-club-logo-upload__zone.is-dragover {
    border-color: rgba(45, 138, 94, 0.45);
    box-shadow:
        0 16px 40px rgba(15, 41, 66, 0.09),
        0 0 0 3px rgba(212, 249, 76, 0.22);
    transform: translateY(-1px);
}

#pb-tournament-register .pb-reg-club-logo-upload__zone.is-filled {
    padding: 18px 16px 16px;
    border-style: solid;
    border-color: rgba(45, 138, 94, 0.35);
}

#pb-tournament-register .pb-reg-club-logo-upload__zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

#pb-tournament-register .pb-reg-club-logo-upload__placeholder {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

#pb-tournament-register .pb-reg-club-logo-upload__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: var(--pb-emotion-lime, #d4f94c);
    background: linear-gradient(145deg, #0a1628 0%, #1e563c 100%);
    box-shadow: 0 10px 22px rgba(10, 22, 40, 0.16);
}

#pb-tournament-register .pb-reg-club-logo-upload__text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pb-emotion-navy-text, #0f2942);
}

#pb-tournament-register .pb-reg-club-logo-upload__sub {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--pb-emotion-green-muted, #5a8f72);
}

#pb-tournament-register .pb-reg-club-logo-upload__preview-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#pb-tournament-register .pb-reg-club-logo-upload__preview {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(212, 249, 76, 0.45);
    box-shadow:
        0 14px 32px rgba(10, 22, 40, 0.18),
        0 0 0 1px rgba(45, 138, 94, 0.15);
}

#pb-tournament-register button.pb-reg-club-logo-upload__change[type="button"] {
    appearance: none !important;
    border: 1px solid rgba(45, 138, 94, 0.35) !important;
    border-radius: 999px !important;
    padding: 8px 16px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: var(--pb-emotion-green-deep, #1e563c) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: none !important;
    cursor: pointer;
    z-index: 3;
    position: relative;
}

#pb-tournament-register button.pb-reg-club-logo-upload__change[type="button"]:hover,
#pb-tournament-register button.pb-reg-club-logo-upload__change[type="button"]:focus-visible {
    border-color: rgba(45, 138, 94, 0.5) !important;
    background: var(--pb-emotion-green-soft, #f0faf4) !important;
}

#pb-tournament-register .pb-reg-club-logo-upload__hint {
    margin: 10px 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--pb-emotion-green-muted, #4a7c66);
}

.pb-reg-tournament-clubs--emotion {
    margin-top: 4px;
}

.pb-reg--tournament .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.pb-reg-tournament-clubs__panel {
    padding: 18px 16px 16px;
    border-radius: 16px;
    background: linear-gradient(
        145deg,
        rgba(240, 250, 244, 0.95) 0%,
        rgba(255, 255, 255, 0.92) 45%,
        rgba(232, 245, 238, 0.88) 100%
    );
    border: 1px solid rgba(45, 138, 94, 0.18);
    box-shadow: 0 16px 40px rgba(15, 41, 66, 0.06);
}

.pb-reg-tournament-clubs__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.pb-reg-tournament-clubs__eyebrow {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pb-emotion-green-muted, #5a8f72);
}

.pb-reg-tournament-clubs__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--pb-emotion-navy-text, #0f2942);
    line-height: 1.25;
}

.pb-reg-tournament-clubs__chip {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pb-emotion-green-deep, #1e563c);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(45, 138, 94, 0.22);
}

.pb-reg-tournament-clubs__vibe {
    margin: 0 0 14px;
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 500;
    color: var(--pb-emotion-green-muted, #4a7c66);
}

.pb-reg-tournament-club-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pb-reg-tournament-club-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 400px) {
    .pb-reg-tournament-club-grid {
        grid-template-columns: 1fr;
    }
}

.pb-reg-tournament-club-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 118px;
    padding: 14px 14px 16px;
    border-radius: 16px;
    border: 2px solid rgba(15, 41, 66, 0.08);
    background: rgba(255, 255, 255, 0.96);
    cursor: pointer;
    transition:
        transform 0.22s var(--pb-emotion-ease-soft, ease),
        border-color 0.22s var(--pb-emotion-ease-soft, ease),
        box-shadow 0.22s var(--pb-emotion-ease-soft, ease),
        background 0.22s var(--pb-emotion-ease-soft, ease);
}

.pb-reg-tournament-club-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 0 rgba(212, 249, 76, 0);
    pointer-events: none;
    transition: box-shadow 0.22s var(--pb-emotion-ease-soft, ease);
}

.pb-reg-tournament-club-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pb-reg-tournament-club-card input:focus-visible + .pb-reg-tournament-club-card__badge {
    outline: 2px solid var(--pb-emotion-lime, #d4f94c);
    outline-offset: 3px;
}

.pb-reg-tournament-club-card__badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--pb-emotion-lime, #d4f94c);
    background: linear-gradient(145deg, #0a1628 0%, #1e563c 100%);
    box-shadow: 0 8px 18px rgba(10, 22, 40, 0.16);
    overflow: hidden;
}

.pb-reg-tournament-club-card__badge--logo {
    padding: 0;
    background: #fff;
    border: 1px solid rgba(45, 138, 94, 0.2);
}

.pb-reg-tournament-club-card__badge--logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-reg-tournament-club-card__body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.pb-reg-tournament-club-card__name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--pb-emotion-navy-text, #0f2942);
    line-height: 1.2;
    word-break: break-word;
}

.pb-reg-tournament-club-card__count-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--pb-emotion-green-deep, #1e563c);
    background: var(--pb-emotion-green-soft, #f0faf4);
    border: 1px solid rgba(45, 138, 94, 0.22);
}

.pb-reg-tournament-club-card__count-chip--open {
    color: #856404;
    background: #fff8e6;
    border-color: #fde68a;
}

.pb-reg-tournament-club-card:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 138, 94, 0.22);
    box-shadow: 0 14px 32px rgba(15, 41, 66, 0.09);
}

.pb-reg-tournament-club-card.is-selected {
    border-color: rgba(212, 249, 76, 0.35);
    background: linear-gradient(152deg, #0a1628 0%, #142a45 42%, #1e563c 100%);
    box-shadow:
        0 18px 40px rgba(10, 22, 40, 0.24),
        0 0 0 1px rgba(212, 249, 76, 0.2);
    transform: translateY(-2px);
}

.pb-reg-tournament-club-card.is-selected::after {
    box-shadow: inset 0 0 0 1px rgba(212, 249, 76, 0.35);
}

.pb-reg-tournament-club-card.is-selected .pb-reg-tournament-club-card__name {
    color: #fff;
}

.pb-reg-tournament-club-card.is-selected .pb-reg-tournament-club-card__count-chip {
    color: var(--pb-emotion-lime, #d4f94c);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 249, 76, 0.32);
}

.pb-reg-tournament-club-card.is-selected .pb-reg-tournament-club-card__count-chip--open {
    color: #fff8e6;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 248, 230, 0.35);
}

.pb-reg-tournament-club-card.is-selected .pb-reg-tournament-club-card__badge {
    color: #0a1628;
    background: var(--pb-emotion-lime, #d4f94c);
    box-shadow: 0 8px 20px rgba(212, 249, 76, 0.38);
}

.pb-reg-tournament-club-grid:has(.pb-reg-tournament-club-card.is-selected) .pb-reg-tournament-club-card:not(.is-selected) {
    opacity: 0.78;
    transform: scale(0.98);
}

.pb-reg-tournament-club-grid:has(.pb-reg-tournament-club-card.is-selected) .pb-reg-tournament-club-card:not(.is-selected):hover {
    opacity: 0.92;
    transform: translateY(-1px) scale(0.99);
}

/* Legacy club option (fallback) */
.pb-reg-tournament-club-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 2px solid rgba(15, 41, 66, 0.08);
    background: #fff;
    cursor: pointer;
    transition:
        border-color 0.2s var(--pb-emotion-ease-soft, ease),
        background 0.2s var(--pb-emotion-ease-soft, ease),
        box-shadow 0.2s var(--pb-emotion-ease-soft, ease);
}

.pb-reg-tournament-club-option input {
    margin: 0;
    accent-color: var(--pb-emotion-green-deep, #1e563c);
}

.pb-reg-tournament-club-option__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pb-emotion-navy-text, #0f2942);
}

.pb-reg-tournament-club-option:has(input:checked) {
    border-color: rgba(45, 138, 94, 0.45);
    background: var(--pb-emotion-green-soft, #f0faf4);
    box-shadow: 0 0 0 3px rgba(45, 138, 94, 0.1);
}

.pb-reg-tournament-club-option__label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pb-reg-tournament-club-option__count {
    font-size: 0.85em;
    opacity: 0.85;
}

.pb-reg-tournament-club-roster {
    margin-top: 14px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        max-height 0.42s var(--pb-emotion-ease-soft, ease),
        opacity 0.32s ease,
        transform 0.35s var(--pb-emotion-ease-soft, ease);
}

.pb-reg-tournament-club-roster.is-open {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
}

.pb-reg-tournament-club-roster__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 380px;
    padding: 14px 14px 12px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(
        152deg,
        rgba(10, 22, 40, 0.04) 0%,
        rgba(255, 255, 255, 0.96) 38%,
        rgba(240, 250, 244, 0.92) 100%
    );
    border: 1px solid rgba(45, 138, 94, 0.22);
    box-shadow:
        0 14px 36px rgba(15, 41, 66, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pb-reg-tournament-club-roster__glow {
    position: absolute;
    top: -40px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 249, 76, 0.35) 0%, rgba(212, 249, 76, 0) 70%);
    pointer-events: none;
}

.pb-reg-tournament-club-roster__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.pb-reg-tournament-club-roster__badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--pb-emotion-lime, #d4f94c);
    background: linear-gradient(145deg, #0a1628 0%, #1e563c 100%);
    box-shadow: 0 8px 18px rgba(10, 22, 40, 0.14);
    overflow: hidden;
}

.pb-reg-tournament-club-roster__badge--logo {
    padding: 0;
    background: #fff;
    border: 1px solid rgba(45, 138, 94, 0.22);
}

.pb-reg-tournament-club-roster__badge--logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-reg-tournament-club-roster__head-text {
    flex: 1;
    min-width: 0;
}

.pb-reg-tournament-club-roster__count {
    flex-shrink: 0;
    align-self: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--pb-emotion-green-deep, #1e563c);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(45, 138, 94, 0.22);
    white-space: nowrap;
}

.pb-reg-tournament-club-roster__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--pb-emotion-navy-text, #0f2942);
    line-height: 1.25;
    word-break: break-word;
}

.pb-reg-tournament-club-roster__vibe {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    padding-left: 2px;
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 500;
    color: var(--pb-emotion-green-muted, #4a7c66);
}

.pb-reg-tournament-club-roster__list {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 6px 4px 6px 6px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-height: 0;
    max-height: 200px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(30, 107, 71, 0.35) transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(15, 41, 66, 0.06);
}

.pb-reg-tournament-club-roster__list::-webkit-scrollbar {
    width: 5px;
}

.pb-reg-tournament-club-roster__list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(45, 138, 94, 0.5), rgba(30, 107, 71, 0.35));
}

.pb-reg-tournament-club-roster__eyebrow {
    margin: 0 0 2px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pb-emotion-green-muted, #5a8f72);
}

@keyframes pb-reg-tournament-roster-member-in {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pb-reg-tournament-roster-member {
    --pb-roster-stagger: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 41, 66, 0.06);
    box-shadow: 0 4px 12px rgba(15, 41, 66, 0.04);
    animation: pb-reg-tournament-roster-member-in 0.38s var(--pb-emotion-ease-soft, ease) both;
    animation-delay: calc(var(--pb-roster-stagger) * 35ms);
    transition:
        transform 0.2s var(--pb-emotion-ease-soft, ease),
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.pb-reg-tournament-roster-member:hover {
    transform: translateX(2px);
    border-color: rgba(45, 138, 94, 0.18);
    box-shadow: 0 6px 16px rgba(15, 41, 66, 0.07);
}

.pb-reg-tournament-roster-member__avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--pb-emotion-green-deep, #1e563c);
    background: linear-gradient(145deg, #f0faf4 0%, #e2f3ea 100%);
    border: 1px solid rgba(45, 138, 94, 0.2);
}

.pb-reg-tournament-roster-member__avatar--photo {
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.pb-reg-tournament-roster-member__avatar--photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-reg-tournament-roster-member__name {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pb-emotion-navy-text, #0f2942);
    line-height: 1.3;
}

.pb-reg-tournament-roster-status {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 3px 8px;
    border-radius: 999px;
    flex-shrink: 0;
    margin-left: auto;
}

.pb-reg-tournament-roster-status--pending {
    background: #fff8e6;
    color: #856404;
    border: 1px solid #fde68a;
}

.pb-reg-tournament-roster-status--approved {
    background: var(--pb-emotion-green-soft, #f0faf4);
    color: var(--pb-emotion-green-deep, #1e563c);
    border: 1px solid rgba(45, 138, 94, 0.25);
}

.pb-reg-tournament-club-roster__empty {
    position: relative;
    z-index: 1;
    margin-top: 4px;
    padding: 14px 14px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e6 100%);
    border: 1px solid #fde68a;
    box-shadow: 0 8px 20px rgba(133, 100, 4, 0.06);
}

.pb-reg-tournament-club-roster__empty-lead {
    margin: 0 0 4px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #856404;
}

.pb-reg-tournament-club-roster__empty-detail {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    font-weight: 500;
    color: #6b5a2e;
}

@media (prefers-reduced-motion: reduce) {
    .pb-reg-tournament-club-roster,
    .pb-reg-tournament-roster-member {
        animation: none;
        transition: none;
    }
}

@media (min-width: 480px) {
    .pb-reg-tournament-club-roster__list {
        max-height: 220px;
    }
}

.pb-reg--tournament .pb-reg-field--nickname.has-nudge .pb-reg-hint {
    opacity: 0.55;
}

.pb-reg-tournament-field-nudge {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e6 100%);
    border: 1px solid #fde68a;
    box-shadow: 0 8px 20px rgba(133, 100, 4, 0.08);
}

.pb-reg-tournament-field-nudge__lead {
    margin: 0 0 4px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #856404;
}

.pb-reg-tournament-field-nudge__detail {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 500;
    color: #6b5a2e;
}

.pb-reg-tournament-field-nudge__link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pb-emotion-green-deep, #1e563c);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pb-reg--tournament .pb-reg-field--nickname input.pb-reg-invalid {
    background: #fffdf8;
    border-color: #f0d78c;
    box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.45);
}

.pb-reg--tournament .pb-reg-submit-btn {
    background: linear-gradient(135deg, var(--pb-emotion-navy, #0a1628) 0%, var(--pb-emotion-green-deep, #1e563c) 100%) !important;
    color: var(--pb-emotion-lime, #d4f94c) !important;
    border: none !important;
    border-radius: var(--pb-emotion-radius-pill, 999px) !important;
    box-shadow: 0 14px 32px rgba(15, 41, 66, 0.18);
    transition:
        transform 0.2s var(--pb-emotion-ease, ease),
        box-shadow 0.2s var(--pb-emotion-ease-soft, ease);
}

.pb-reg--tournament .pb-reg-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(15, 41, 66, 0.22);
}

@keyframes pb-reg-type-card-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.pb-reg-field input[type="text"],
.pb-reg-field input[type="email"],
.pb-reg-field input[type="tel"],
.pb-reg-field input[type="url"],
.pb-reg-field input[type="password"],
.pb-reg-field input[type="date"],
.pb-reg-field input[type="search"],
.pb-reg-field textarea,
.pb-reg-field select {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    background: #f3f5f7;
    color: #1a2b3c;
    transition: box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
    box-shadow: none;
}

.pb-reg-field input:focus,
.pb-reg-field textarea:focus,
.pb-reg-field select:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.pb-reg-field input.pb-reg-invalid,
.pb-reg-field textarea.pb-reg-invalid,
.pb-reg-field select.pb-reg-invalid {
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.pb-reg-field-error {
    margin: 6px 0 0;
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 600;
    color: #c0392b;
}

#pb-tournament-tshirt button.pb-tournament-tshirt-suggest-yes[type="button"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 0 0 4px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #1e6b47 !important;
    -webkit-text-fill-color: #1e6b47 !important;
    font: inherit !important;
    font-weight: 700 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    text-decoration-thickness: 1.5px;
    cursor: pointer;
}

#pb-tournament-tshirt button.pb-tournament-tshirt-suggest-yes[type="button"]:hover,
#pb-tournament-tshirt button.pb-tournament-tshirt-suggest-yes[type="button"]:focus-visible {
    color: #0a1628 !important;
    -webkit-text-fill-color: #0a1628 !important;
    text-decoration-thickness: 2px;
    outline: none;
}

.pb-reg-skill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.pb-reg-skill-grid.pb-reg-invalid {
    padding: 8px;
    border-radius: 12px;
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

.pb-reg-skill-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 14px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    background: #f3f5f7;
}

.pb-reg-skill-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pb-reg-skill-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.pb-reg-skill-hint {
    font-size: 0.78rem;
    color: #6b7c8d;
}

.pb-reg-skill-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pb-reg-skill-card.is-selected {
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.pb-reg-skill-card.skill-newbie.is-selected { background: #f9f5fc; box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.2); }
.pb-reg-skill-card.skill-novice.is-selected { background: #f0f7fc; box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.2); }
.pb-reg-skill-card.skill-inter-low.is-selected { background: #f0fdf4; box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2); }
.pb-reg-skill-card.skill-inter-high.is-selected { background: #fffbf0; box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2); }
.pb-reg-skill-card.skill-advanced.is-selected { background: #fff8f3; box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.2); }
.pb-reg-skill-card.skill-expert.is-selected { background: #fdf5f4; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2); }

.pb-reg-upload {
    position: relative;
    border: none;
    border-radius: 14px;
    padding: 28px 16px;
    text-align: center;
    background: #f3f5f7;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.pb-reg-upload:hover,
.pb-reg-upload.is-dragover {
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}

.pb-reg-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.pb-reg-upload-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.pb-reg-upload-text {
    display: block;
    font-weight: 600;
    color: #2c3e50;
}

.pb-reg-upload-sub {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    color: #8a9bab;
}

.pb-reg-photo-preview {
    max-width: 120px;
    max-height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 8px;
    display: block;
    border: none;
    box-shadow: 0 4px 16px rgba(46, 204, 113, 0.25);
}

.pb-reg-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 0;
}

.pb-reg-back {
    background: #eef2f6 !important;
    color: #4a5a6a !important;
    border: 1px solid #d9e1e8 !important;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none !important;
    box-shadow: none;
    margin-right: auto;
}

.pb-reg-back:hover:not(:disabled):not(.is-disabled) {
    background: #e2e8ee !important;
    color: #3e4d5c !important;
    border-color: #c8d3dc !important;
}

.pb-reg-back:disabled,
.pb-reg-back.is-disabled {
    opacity: 0.55;
    cursor: not-allowed !important;
    filter: grayscale(0.1);
}

.pb-reg-back:focus,
.pb-reg-back:focus-visible,
.pb-recent-refresh:focus,
.pb-recent-refresh:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(45, 138, 94, 0.25) !important;
}

.pb-reg-submit-btn,
.pb-reg-next,
.pb-reg-submit {
    min-width: 140px;
    padding: 12px 24px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
}

.pb-reg-next,
.pb-reg-submit {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
}

.pb-reg-next:hover:not(:disabled):not(.is-disabled),
.pb-reg-submit:hover:not(:disabled):not(.is-disabled) {
    filter: brightness(1.05);
}

.pb-reg-next:disabled,
.pb-reg-next.is-disabled {
    opacity: 0.55;
    cursor: not-allowed !important;
    filter: grayscale(0.15);
    box-shadow: none !important;
}

.pb-reg-submit:disabled,
.pb-reg-submit.is-disabled {
    opacity: 0.55;
    cursor: not-allowed !important;
    filter: grayscale(0.15);
    box-shadow: none !important;
}

.pb-reg-submit.is-loading .pb-reg-submit-label {
    opacity: 0.6;
}

.pb-reg-footnote {
    margin: 16px 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: #8a9bab;
}

.pb-reg-panel .pb-reg-message {
    margin: 0 0 18px;
}

.pb-reg-panel .pb-reg-message:empty {
    display: none;
    margin: 0;
}

.pb-reg-panel .pb-reg-msg-info {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f0fdf4 0%, #e8f5ee 100%);
    border: 1px solid rgba(45, 138, 94, 0.2);
    font-size: 0.9rem;
    line-height: 1.45;
    color: #1e563c;
    text-align: left;
}

.pb-reg-panel .pb-reg-alert {
    margin: 0;
    text-align: left;
}

.pb-reg-message {
    margin-top: 16px;
}

.pb-login .pb-reg-form > .pb-login-message {
    margin-top: 0;
    margin-bottom: 16px;
}

.pb-login .pb-reg-form > .pb-login-message:empty {
    display: none;
    margin-bottom: 0;
}

/* Registration success modal */
.pb-reg-success-modal {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.pb-reg-success-modal.is-open {
    display: flex;
}

.pb-reg-success-modal.is-open[hidden] {
    display: flex;
}

.pb-reg-success-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(10, 22, 40, 0.55);
    backdrop-filter: blur(5px);
}

.pb-reg-success-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 440px);
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 72px rgba(10, 22, 40, 0.28);
    animation: pb-reg-success-modal-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pb-reg-success-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    left: auto;
    z-index: 3;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #0f2942 !important;
    background: #ffffff !important;
    border: 1px solid rgba(45, 138, 94, 0.22) !important;
    border-radius: 50%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 4px 12px rgba(10, 22, 40, 0.08) !important;
}

.pb-reg-success-modal__close:hover,
.pb-reg-success-modal__close:focus-visible {
    background: #f0fdf4 !important;
    border-color: #2d8a5e !important;
    color: #1e563c !important;
    outline: none;
}

@keyframes pb-reg-success-modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pb-reg-success-modal__timer {
    height: 4px;
    background: rgba(45, 138, 94, 0.12);
    overflow: hidden;
}

.pb-reg-success-modal__timer-bar {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #d4f94c 0%, #2d8a5e 100%);
    transform-origin: left center;
    transform: scaleX(1);
}

.pb-reg-success-modal__timer-bar.is-running {
    animation-name: pb-reg-success-timer;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes pb-reg-success-timer {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

.pb-reg-success-modal__body {
    padding: 28px 26px 30px;
    text-align: center;
}

.pb-reg-success-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0a1628;
    background: linear-gradient(165deg, #f4fce8 0%, #d4f94c 100%);
    box-shadow: 0 8px 24px rgba(45, 138, 94, 0.2);
}

.pb-reg-success-modal__body h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f2942;
}

.pb-reg-success-modal__lead,
.pb-reg-success-modal__detail {
    margin: 0 0 12px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #4a5f6d;
}

.pb-reg-success-modal__detail {
    margin-bottom: 0;
}

body.pb-reg-success-modal-open {
    overflow: hidden;
}

/* Tournament registration success modal (emotional) */
.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__dialog {
    width: min(92vw, 460px);
    border-radius: 22px;
    border: 1px solid rgba(45, 138, 94, 0.14);
    box-shadow:
        0 32px 80px rgba(10, 22, 40, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__timer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__timer-bar {
    background: linear-gradient(90deg, #d4f94c 0%, #9bc93a 100%);
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__hero {
    position: relative;
    height: 56px;
    overflow: hidden;
    background: linear-gradient(125deg, #0a1628 0%, #134a35 55%, #1e6b47 100%);
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__close {
    top: 14px;
    right: 14px;
    z-index: 5;
    color: #0f2942 !important;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18) !important;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__close:hover,
.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__close:focus-visible {
    background: #f4fce8 !important;
    border-color: #d4f94c !important;
    color: #1e563c !important;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__body {
    padding: 20px 22px 26px;
    margin-top: 0;
    text-align: center;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__club {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 16px;
    max-width: 100%;
    padding: 10px 14px;
    text-align: left;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(240, 250, 244, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(45, 138, 94, 0.2);
    box-shadow: 0 8px 20px rgba(15, 41, 66, 0.06);
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__club[hidden] {
    display: none !important;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__club-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #1e563c;
    background: rgba(212, 249, 76, 0.35);
    border: 1px solid rgba(45, 138, 94, 0.22);
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__club-badge--logo {
    padding: 0;
    background: #fff;
    overflow: hidden;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__club-badge--logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__club-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #5a8f72;
    margin-bottom: 2px;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__club-text {
    min-width: 0;
    flex: 1;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__club-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f2942;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a8f72;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__body h2 {
    margin: 0 0 10px;
    font-size: 1.55rem;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__lead {
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #2d4a5c;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__detail {
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__steps {
    list-style: none;
    margin: 0 0 14px;
    padding: 14px 14px 12px;
    text-align: left;
    border-radius: 14px;
    background: rgba(240, 250, 244, 0.75);
    border: 1px solid rgba(45, 138, 94, 0.14);
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #3d5566;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__steps li:last-child {
    margin-bottom: 0;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__step-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
    color: #1e563c;
    background: rgba(212, 249, 76, 0.45);
    border: 1px solid rgba(45, 138, 94, 0.2);
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__vibe {
    margin: 0 0 18px;
    font-size: 0.85rem;
    line-height: 1.5;
    font-style: italic;
    color: #5a8f72;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament a.pb-reg-success-modal__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    color: #d4f94c !important;
    background: linear-gradient(135deg, #0a1628 0%, #1e6b47 100%) !important;
    border: none !important;
    box-shadow: 0 12px 28px rgba(10, 22, 40, 0.22) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament a.pb-reg-success-modal__cta:hover,
.pb-reg-success-modal.pb-reg-success-modal--tournament a.pb-reg-success-modal__cta:focus-visible {
    color: #f4fce8 !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(10, 22, 40, 0.28) !important;
    outline: none;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament button.pb-reg-success-modal__dismiss[type="button"] {
    appearance: none !important;
    margin: 0;
    padding: 8px 12px !important;
    width: fit-content;
    align-self: center;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #5a8f72 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pb-reg-success-modal.pb-reg-success-modal--tournament button.pb-reg-success-modal__dismiss[type="button"]:hover,
.pb-reg-success-modal.pb-reg-success-modal--tournament button.pb-reg-success-modal__dismiss[type="button"]:focus-visible {
    color: #1e563c !important;
    outline: none;
}

@media (max-width: 420px) {
    .pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__body {
        padding: 0 16px 22px;
    }

    .pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__body h2 {
        font-size: 1.35rem;
    }

    .pb-reg-success-modal.pb-reg-success-modal--tournament .pb-reg-success-modal__close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 1.35rem;
    }
}

.pb-reg-alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.pb-reg-alert--error {
    background: #fdf2f2;
    color: #922b21;
}

.pb-reg-alert--success {
    background: #edf9f1;
    color: #1e563c;
    border: 1px solid #cfe8d9;
}

.pb-reg-msg-info {
    padding: 12px 16px;
    background: #eef6ff;
    color: #1a5276;
    border-radius: 10px;
    text-align: center;
}

.pb-reg--success .pb-reg-success {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 32px rgba(15, 41, 66, 0.08);
}

.pb-reg-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-radius: 50%;
    animation: pb-reg-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pb-reg-pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.pb-reg-success h2 {
    margin: 0 0 12px;
    font-size: 1.75rem;
    color: #0f2942;
}

.pb-reg-success p {
    margin: 0 0 28px;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #5a6b7d;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.pb-login--logged-in .pb-login-logged-in-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 auto;
}

#pb-login-wrapper.pb-login--logged-in .pb-login-logged-in-actions a.pb-btn {
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
    box-shadow: none !important;
    cursor: pointer;
}

#pb-login-wrapper.pb-login--logged-in .pb-login-logged-in-actions a.pb-login-signout-btn {
    margin-right: 0 !important;
    margin-left: 0 !important;
    min-width: 140px;
    padding: 12px 24px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

#pb-login-wrapper.pb-login--logged-in .pb-login-logged-in-actions a.pb-login-profile-btn,
#pb-login-wrapper.pb-login--logged-in .pb-login-logged-in-actions a.pb-login-profile-btn:link,
#pb-login-wrapper.pb-login--logged-in .pb-login-logged-in-actions a.pb-login-profile-btn:visited {
    min-width: 140px;
    padding: 12px 24px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    border: none !important;
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
    background-image: linear-gradient(135deg, #2ecc71, #27ae60) !important;
}

#pb-login-wrapper.pb-login--logged-in .pb-login-logged-in-actions a.pb-login-profile-btn:hover,
#pb-login-wrapper.pb-login--logged-in .pb-login-logged-in-actions a.pb-login-profile-btn:focus {
    color: #fff !important;
    filter: brightness(1.05);
}

#pb-login-wrapper.pb-login--logged-in .pb-login-logged-in-actions a.pb-login-profile-btn:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(45, 138, 94, 0.35) !important;
}

/* ——— Player check-in ——— */
.pb-check-in {
    max-width: 480px;
}

.pb-check-in-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 8px 32px rgba(15, 41, 66, 0.08);
    text-align: center;
}

.pb-check-in-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 24px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    box-sizing: border-box;
}

.pb-check-in-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pb-check-in-btn--leaderboard {
    background: var(--pb-emotion-navy) !important;
    color: var(--pb-emotion-lime) !important;
    border: 2px solid var(--pb-emotion-navy) !important;
    box-shadow: 0 4px 14px rgba(10, 22, 40, 0.15);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.pb-check-in-btn--leaderboard:hover,
.pb-check-in-btn--leaderboard:focus-visible {
    background: var(--pb-emotion-lime) !important;
    color: var(--pb-emotion-navy) !important;
    border-color: var(--pb-emotion-lime) !important;
    transform: translateY(-1px);
}

.pb-tv-leaderboard-remote-btn.is-active {
    background: #218838 !important;
    color: #fff !important;
    border-color: #218838 !important;
}

.pb-tv-leaderboard-remote-btn.is-active:hover,
.pb-tv-leaderboard-remote-btn.is-active:focus-visible {
    background: #1e7e34 !important;
    color: #fff !important;
    border-color: #1e7e34 !important;
}

.pb-check-in-btn.is-disabled,
.pb-btn.is-disabled,
.pb-btn.is-disabled:disabled {
    opacity: 0.55;
    cursor: not-allowed !important;
    pointer-events: none;
    filter: grayscale(0.15);
    box-shadow: none !important;
}

.pb-check-in-status--pending {
    margin: 0 0 14px;
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #856404;
    background: #fff8e6;
    border-radius: 10px;
    text-align: center;
}

.pb-check-in-status--rejected,
.pb-queue-pending-notice--rejected {
    color: #922b21;
    background: #fdf2f2;
}

.pb-check-in-status--rejected {
    margin: 0 0 14px;
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.45;
    border-radius: 10px;
    text-align: center;
}

.pb-queue-pending-notice {
    flex: 1 1 100%;
    margin: 0 0 12px;
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #856404;
    background: #fff8e6;
    border-radius: 10px;
}

.pb-check-in-status {
    margin: 0 0 16px;
    font-size: 0.92rem;
    color: #5a6b7d;
}

.pb-check-in-status--on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #1e7e34;
    font-weight: 600;
}

.pb-check-in-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.25);
    animation: pb-check-in-pulse 1.5s ease infinite;
}

@keyframes pb-check-in-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.pb-check-in--done .pb-reg-success {
    padding: 36px 20px;
}

@media (max-width: 600px) {
    .pb-check-in-card {
        padding: 20px 16px;
    }

    .pb-check-in-btn {
        min-height: 48px;
        font-size: 1rem !important;
    }
}

/* ——— Player Login (reuses pb-reg) ——— */
.pb-login .pb-reg-actions {
    margin-top: 4px;
}

.pb-login-actions {
    justify-content: stretch;
}

.pb-login-actions .pb-reg-submit {
    width: 100%;
}

.pb-login-extra {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 4px;
}

.pb-login-remember {
    margin: 0;
}

.pb-login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #5a6b7d;
    cursor: pointer;
}

.pb-login-remember input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #27ae60;
}

.pb-login-forgot {
    margin: 0;
    font-size: 0.88rem;
}

.pb-login-forgot a {
    color: #0d6b4f;
    font-weight: 600;
    text-decoration: none;
}

.pb-login-forgot a:hover {
    text-decoration: underline;
}

.pb-reg-auth-cta,
.pb-login-footer {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid #e8edf2;
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #5a6b7d;
}

.pb-reg-auth-cta a,
.pb-login-footer a {
    color: #0d6b4f;
    font-weight: 600;
    text-decoration: none;
}

.pb-reg-auth-cta a:hover,
.pb-login-footer a:hover {
    text-decoration: underline;
}

/* Tablet */
@media (max-width: 900px) {
    .pb-reg {
        margin-bottom: 36px;
        padding-left: max(20px, env(safe-area-inset-left, 0px));
        padding-right: max(20px, env(safe-area-inset-right, 0px));
    }

    .pb-reg-hero {
        margin-bottom: 22px;
    }

    .pb-reg-hero h2 {
        font-size: 1.6rem;
    }

    .pb-reg-intro {
        font-size: 1rem;
    }

    .pb-reg-progress {
        margin-bottom: 22px;
    }

    .pb-reg-form {
        padding: 24px 20px 18px;
        border-radius: 14px;
    }

    .pb-reg-panel-title {
        font-size: 1.15rem;
        margin-bottom: 16px;
    }

    .pb-reg-type-visual {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .pb-reg-type-symbol-icon {
        width: 20px;
        height: 20px;
    }

    .pb-reg-type-card {
        padding: 9px 10px;
    }

    .pb-reg-tournament-individual {
        grid-template-columns: 1fr;
    }

    .pb-reg-type-card {
        padding: 14px 10px 12px;
    }

    .pb-reg-type-hint {
        font-size: 0.76rem;
    }

    .pb-reg-field input[type="text"],
    .pb-reg-field input[type="email"],
    .pb-reg-field input[type="tel"],
    .pb-reg-field input[type="url"],
    .pb-reg-field input[type="password"],
    .pb-reg-field input[type="date"],
    .pb-reg-field textarea,
    .pb-reg-field select {
        font-size: 16px;
        padding: 13px 14px;
    }

    .pb-reg-skill-grid {
        gap: 12px;
    }

    .pb-reg-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .pb-reg-back,
    .pb-reg-next,
    .pb-reg-submit,
    .pb-reg-submit-btn {
        min-height: 48px;
    }

    .pb-reg--success .pb-reg-success {
        padding: 40px 20px;
    }

    .pb-reg-success h2 {
        font-size: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .pb-reg {
        margin-bottom: 28px;
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
    }

    .pb-reg-hero {
        margin-bottom: 18px;
    }

    .pb-reg-eyebrow {
        font-size: 0.72rem;
        padding: 5px 12px;
    }

    .pb-reg-hero h2 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .pb-reg-intro {
        font-size: 0.92rem;
        line-height: 1.5;
        padding: 0 4px;
    }

    .pb-reg-progress {
        margin-bottom: 18px;
    }

    .pb-reg-step-labels {
        gap: 4px;
    }

    .pb-reg-step-labels li {
        font-size: 0.65rem;
        gap: 4px;
        min-width: 0;
    }

    .pb-reg-step-labels li span {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .pb-reg-form {
        padding: 18px 14px 14px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(15, 41, 66, 0.07);
    }

    .pb-reg-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pb-reg-field {
        margin-bottom: 14px;
    }

    .pb-reg-field label,
    .pb-reg-skills legend {
        font-size: 0.88rem;
    }

    .pb-reg-skill-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pb-reg-skill-card {
        padding: 14px 16px;
        min-height: 48px;
    }

    .pb-reg-upload {
        padding: 22px 12px;
    }

    .pb-reg-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 18px;
        gap: 10px;
    }

    .pb-reg-back {
        margin-right: 0;
        order: 2;
        width: 100%;
        min-width: 0;
    }

    .pb-reg-next,
    .pb-reg-submit {
        width: 100%;
        min-width: 0;
        order: 1;
    }

    .pb-login .pb-reg-actions {
        margin-top: 8px;
    }

    .pb-reg-footnote {
        font-size: 0.8rem;
        margin-top: 12px;
        padding: 0 4px;
    }

    .pb-reg-alert {
        margin-left: 0;
        margin-right: 0;
        font-size: 0.9rem;
    }

    .pb-reg-auth-cta,
    .pb-login-footer {
        margin-top: 16px;
        padding-top: 14px;
        font-size: 0.88rem;
        padding-left: 4px;
        padding-right: 4px;
    }

    .pb-reg-auth-cta a,
    .pb-login-footer a {
        display: inline-block;
        margin-top: 4px;
        padding: 4px 0;
    }

    .pb-reg--success .pb-reg-success {
        padding: 32px 16px;
        border-radius: 12px;
    }

    .pb-reg-success-icon {
        width: 60px;
        height: 60px;
        font-size: 1.65rem;
    }

    .pb-reg-success h2 {
        font-size: 1.35rem;
    }

    .pb-reg-success p {
        font-size: 0.95rem;
        margin-bottom: 22px;
    }

    .pb-reg-submit-btn {
        width: 100%;
        min-width: 0;
    }
}

/* Small phones — compact step labels */
@media (max-width: 400px) {
    .pb-reg-step-labels li {
        font-size: 0;
        line-height: 0;
    }

    .pb-reg-step-labels li span {
        font-size: 0.75rem;
        line-height: 1;
    }

    .pb-reg-hero h2 {
        font-size: 1.28rem;
    }

    .pb-reg-form {
        padding: 16px 12px 12px;
    }
}

/* ——— App navigation rail (right-side dock) ——— */
body.pb-has-bottom-nav,
body:has(.pb-tab-bar) {
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-right: calc(92px + env(safe-area-inset-right, 0px));
}

.pb-tab-bar {
    /* Default: light theme */
    --pb-nav-bg-top: var(--pb-light-nav-bg-top);
    --pb-nav-bg-bottom: var(--pb-light-nav-bg-bottom);
    --pb-nav-border: var(--pb-light-nav-border);
    --pb-nav-border-soft: var(--pb-light-nav-border-soft);
    --pb-nav-glow: var(--pb-light-nav-glow);
    --pb-nav-glow-spread: var(--pb-light-nav-glow-spread);
    --pb-nav-active-bg: var(--pb-light-nav-active-bg);
    --pb-nav-active-ring: var(--pb-light-nav-active-ring);
    --pb-nav-indicator-start: var(--pb-light-nav-indicator-start);
    --pb-nav-indicator-end: var(--pb-light-nav-indicator-end);
    --pb-nav-text: var(--pb-light-nav-text);
    --pb-nav-text-active: var(--pb-light-nav-text-active);
    --pb-nav-scrim: var(--pb-light-nav-scrim);
    --pb-nav-icon-glow: rgba(14, 165, 233, 0.35);
    --pb-nav-indicator-shadow: rgba(14, 165, 233, 0.55);
    --pb-nav-shadow-deep: rgba(15, 23, 42, 0.12);

    position: fixed;
    top: 50%;
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: auto;
    left: auto;
    z-index: 99990;
    transform: translateY(-50%);
    width: auto;
    max-width: none;
    padding: 0;
    pointer-events: none;
    font-family: var(--pb-font-sans);
    animation: pb-tab-bar-in 0.4s var(--pb-emotion-ease-soft) backwards;
}

.pb-tab-bar--emotion-dark {
    --pb-nav-bg-top: var(--pb-dark-nav-bg-top);
    --pb-nav-bg-bottom: var(--pb-dark-nav-bg-bottom);
    --pb-nav-border: var(--pb-dark-nav-border);
    --pb-nav-border-soft: var(--pb-dark-nav-border-soft);
    --pb-nav-glow: var(--pb-dark-nav-glow);
    --pb-nav-glow-spread: var(--pb-dark-nav-glow-spread);
    --pb-nav-active-bg: var(--pb-dark-nav-active-bg);
    --pb-nav-active-ring: var(--pb-dark-nav-active-ring);
    --pb-nav-indicator-start: var(--pb-dark-nav-indicator-start);
    --pb-nav-indicator-end: var(--pb-dark-nav-indicator-end);
    --pb-nav-text: var(--pb-dark-nav-text);
    --pb-nav-text-active: var(--pb-dark-nav-text-active);
    --pb-nav-scrim: var(--pb-dark-nav-scrim);
    --pb-nav-icon-glow: rgba(56, 189, 248, 0.35);
    --pb-nav-indicator-shadow: rgba(56, 189, 248, 0.75);
    --pb-nav-shadow-deep: rgba(0, 0, 0, 0.55);
}

@keyframes pb-tab-bar-in {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.pb-tab-bar__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px;
    min-width: 72px;
    border-radius: 18px;
    background: linear-gradient(
        180deg,
        var(--pb-nav-bg-top) 0%,
        var(--pb-nav-bg-bottom) 100%
    );
    border: 1px solid var(--pb-nav-border);
    box-shadow:
        0 12px 32px var(--pb-nav-shadow-deep),
        0 0 0 1px var(--pb-nav-border-soft);
    pointer-events: auto;
}

.pb-tab-bar__glow {
    position: absolute;
    top: 12%;
    right: -1px;
    width: 2px;
    height: 36%;
    transform: none;
    border-radius: var(--pb-emotion-radius-pill);
    background: linear-gradient(
        180deg,
        transparent,
        var(--pb-nav-glow),
        transparent
    );
    filter: blur(0.5px);
    pointer-events: none;
}

.pb-tab-bar__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 64px;
    min-width: 56px;
    padding: 10px 8px;
    border-radius: 14px;
    color: var(--pb-nav-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
    text-transform: none;
    transition:
        color 0.2s var(--pb-emotion-ease-soft),
        background 0.2s var(--pb-emotion-ease-soft),
        transform 0.15s var(--pb-emotion-ease-soft),
        box-shadow 0.2s var(--pb-emotion-ease-soft);
    -webkit-tap-highlight-color: transparent;
}

.pb-tab-bar__item:hover,
.pb-tab-bar__item:focus-visible {
    color: var(--pb-nav-text-active);
    outline: none;
}

.pb-tab-bar__item:focus-visible {
    box-shadow: 0 0 0 2px var(--pb-nav-active-ring);
}

.pb-tab-bar__item.is-active {
    color: var(--pb-nav-text-active);
    background: var(--pb-nav-active-bg);
    box-shadow: inset 0 0 0 1px var(--pb-nav-active-ring);
}

.pb-tab-bar__item.is-active .pb-tab-bar__icon {
    filter: none;
}

.pb-tab-bar__indicator {
    display: none;
}

.pb-tab-bar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 0;
    transition: filter 0.2s var(--pb-emotion-ease-soft);
}

.pb-tab-bar__icon svg {
    display: block;
}

.pb-tab-bar__label {
    line-height: 1.1;
    white-space: nowrap;
}

/* Light theme — slate / sky accent */
.pb-tab-bar--emotion-light .pb-tab-bar__inner {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f8fafc 100%
    );
    border-color: rgba(15, 23, 42, 0.1);
}

.pb-tab-bar--emotion-light .pb-tab-bar__item {
    color: #64748b;
}

.pb-tab-bar--emotion-light .pb-tab-bar__item:hover,
.pb-tab-bar--emotion-light .pb-tab-bar__item:focus-visible {
    color: #0f172a;
    background: rgba(14, 165, 233, 0.08);
}

.pb-tab-bar--emotion-light .pb-tab-bar__item.is-active {
    color: #ffffff;
    background: linear-gradient(
        165deg,
        #0ea5e9 0%,
        #0284c7 100%
    );
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        0 8px 18px rgba(14, 165, 233, 0.28);
}

.pb-tab-bar--emotion-light .pb-tab-bar__item.is-active .pb-tab-bar__icon {
    filter: none;
}

.pb-tab-bar--emotion-light .pb-tab-bar__indicator {
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}

/* Dark theme — navy / cyan (leaderboard pages) */
.pb-tab-bar--emotion-dark .pb-tab-bar__inner {
    background: linear-gradient(
        165deg,
        rgba(12, 21, 40, 0.96) 0%,
        rgba(10, 22, 40, 0.98) 55%,
        rgba(6, 11, 20, 0.98) 100%
    );
}

.pb-tab-bar--emotion-dark .pb-tab-bar__item.is-active {
    color: var(--pb-dark-nav-text-active);
    background: linear-gradient(
        165deg,
        rgba(37, 99, 235, 0.48) 0%,
        rgba(15, 33, 64, 0.72) 100%
    );
    box-shadow:
        inset 0 0 0 1px var(--pb-dark-nav-active-ring),
        inset 0 1px 0 rgba(212, 249, 76, 0.08);
}

.pb-tab-bar--emotion-dark .pb-tab-bar__indicator {
    background: linear-gradient(
        90deg,
        var(--pb-dark-nav-indicator-start),
        var(--pb-emotion-lime)
    );
    box-shadow: none;
}

@keyframes pb-tab-bar-in-mobile {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    body.pb-has-bottom-nav,
    body:has(.pb-tab-bar) {
        padding-right: 0;
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    }

    .pb-tab-bar {
        top: auto;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        transform: none;
        padding: 0;
        animation-name: pb-tab-bar-in-mobile;
    }

    .pb-tab-bar__glow {
        top: 0;
        right: 12%;
        left: 12%;
        width: auto;
        height: 1px;
        transform: none;
        background: linear-gradient(
            90deg,
            transparent,
            var(--pb-nav-glow),
            transparent
        );
    }

    .pb-tab-bar__inner {
        flex-direction: row;
        justify-content: space-around;
        align-items: stretch;
        width: 100%;
        min-width: 0;
        padding: 6px max(10px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-right, 0px));
        gap: 4px;
        border-radius: 18px 18px 0 0;
        border-bottom: none;
    }

    .pb-tab-bar__item {
        flex: 1 1 0;
        min-width: 0;
        min-height: 52px;
        padding: 8px 4px;
    }

    .pb-tab-bar__indicator {
        top: auto;
        left: 50%;
        bottom: 5px;
        width: 26px;
        height: 3px;
        transform: translateX(-50%);
    }

    .pb-tab-bar__label {
        font-size: 0.58rem;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 360px) {
    .pb-tab-bar__label {
        font-size: 0.54rem;
        letter-spacing: 0;
    }

    .pb-tab-bar__item {
        min-height: 48px;
        padding-inline: 4px;
    }
}

/* ——— Spoken announcements unlock bar ——— */
.pb-announcer-unlock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    z-index: 100010;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(420px, calc(100% - 32px));
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(10, 22, 40, 0.94);
    color: #fff;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.pb-announcer-unlock.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.pb-announcer-unlock__hint {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
}

#pb-open-play-dashboard ~ .pb-announcer-unlock,
#pb-profile ~ .pb-announcer-unlock {
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
}

.pb-live-courts-tv-page .pb-announcer-unlock {
    display: none !important;
    visibility: hidden !important;
}

.pb-announcer-unlock__btn,
#pb-announcer-unlock button.pb-announcer-unlock__btn[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    padding: 10px 18px !important;
    border: 2px solid #d4f94c !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #0a1628 0%, #1e6b47 100%) !important;
    color: #d4f94c !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(212, 249, 76, 0.25) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.pb-announcer-unlock__btn:hover,
#pb-announcer-unlock button.pb-announcer-unlock__btn[type="button"]:hover {
    background: #d4f94c !important;
    color: #0a1628 !important;
}

/* ——— Live display: "You're up next!" alert banner ——— */
.pb-next-alert {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s var(--pb-emotion-ease-soft);
}

.pb-next-alert.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.pb-next-alert__scrim {
    position: absolute;
    inset: 0;
    background: rgba(6, 11, 20, 0.72);
    backdrop-filter: blur(6px);
}

.pb-next-alert__panel {
    position: relative;
    width: min(720px, 100%);
    padding: clamp(28px, 5vw, 48px);
    border-radius: var(--pb-emotion-radius-lg);
    background: linear-gradient(
        165deg,
        var(--pb-emotion-green-deep) 0%,
        var(--pb-emotion-navy-mid) 55%,
        var(--pb-emotion-navy) 100%
    );
    color: #fff;
    text-align: center;
    overflow: visible;
    box-shadow:
        var(--pb-emotion-shadow),
        0 0 0 1px rgba(212, 249, 76, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.45s var(--pb-emotion-ease);
}

.pb-next-alert__timer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--pb-emotion-radius-lg) var(--pb-emotion-radius-lg) 0 0;
    overflow: hidden;
    pointer-events: none;
}

.pb-next-alert__timer-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--pb-emotion-lime) 0%,
        #b8f05a 55%,
        rgba(212, 249, 76, 0.55) 100%
    );
    box-shadow: 0 0 12px rgba(212, 249, 76, 0.45);
    transform: scaleX(1);
    transform-origin: left center;
    will-change: transform;
}

.pb-next-alert__timer-bar.is-running {
    animation: pb-next-alert-timer-shrink var(--pb-next-alert-duration, 12s) linear forwards;
}

@keyframes pb-next-alert-timer-shrink {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.pb-next-alert.is-visible .pb-next-alert__panel {
    transform: translateY(0) scale(1);
}

.pb-next-alert-stack {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(720px, 100%);
    max-height: min(88vh, 920px);
    overflow-y: auto;
    padding: 8px 0 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 249, 76, 0.45) transparent;
}

.pb-next-alert-stack__close {
    position: fixed;
    top: max(16px, env(safe-area-inset-top, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    z-index: 100001;
}

.pb-next-alert--stack {
    align-items: flex-start;
    padding-top: max(72px, calc(24px + env(safe-area-inset-top, 0px)));
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}

.pb-next-alert__panel--stacked {
    width: 100%;
    transform: translateY(12px) scale(0.99);
}

.pb-next-alert.is-visible .pb-next-alert__panel--stacked {
    transform: translateY(0) scale(1);
}

.pb-next-alert__panel--winner {
    box-shadow:
        var(--pb-emotion-shadow),
        0 0 0 1px rgba(255, 215, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pb-next-alert__panel--up-next {
    box-shadow:
        var(--pb-emotion-shadow),
        0 0 0 1px rgba(212, 249, 76, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pb-next-alert__scoreline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1;
    color: var(--pb-emotion-lime);
    letter-spacing: 0.04em;
}

.pb-next-alert__scoreline span {
    opacity: 0.72;
    font-weight: 700;
}

.pb-next-alert__team-score {
    margin: 4px 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    color: var(--pb-emotion-lime);
}

.pb-next-alert__team--winner {
    border-color: rgba(212, 249, 76, 0.55) !important;
    background: rgba(212, 249, 76, 0.1);
    box-shadow: inset 0 0 0 1px rgba(212, 249, 76, 0.18);
}

.pb-next-alert__winner-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.18);
    border: 1px solid rgba(255, 215, 0, 0.45);
    color: #ffe566;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pb-next-alert--for-viewer .pb-next-alert__panel--yours,
.pb-next-alert__panel--yours {
    border: 3px solid var(--pb-emotion-lime) !important;
}

/* Logged-in player on this match — green modal border + lime accents */
.pb-next-alert--for-viewer .pb-next-alert__panel {
    border: 3px solid var(--pb-emotion-lime) !important;
    box-shadow:
        var(--pb-emotion-shadow),
        0 0 0 1px rgba(212, 249, 76, 0.45),
        0 0 36px rgba(212, 249, 76, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pb-next-alert__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin: 0;
    padding: 0;
    float: none;
    border: 2px solid var(--pb-emotion-lime) !important;
    border-radius: 50% !important;
    background: var(--pb-emotion-lime) !important;
    color: var(--pb-emotion-navy) !important;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    box-shadow:
        0 2px 12px rgba(212, 249, 76, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    transition:
        background 0.2s var(--pb-emotion-ease-soft),
        color 0.2s var(--pb-emotion-ease-soft),
        border-color 0.2s var(--pb-emotion-ease-soft),
        transform 0.2s var(--pb-emotion-ease),
        box-shadow 0.2s var(--pb-emotion-ease-soft);
    appearance: none !important;
    -webkit-appearance: none !important;
    text-decoration: none !important;
    outline: none !important;
}

.pb-next-alert__close-icon {
    display: block;
    flex-shrink: 0;
    pointer-events: none;
}

.pb-next-alert__close:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--pb-emotion-navy) !important;
    transform: scale(1.06);
    box-shadow:
        0 4px 18px rgba(212, 249, 76, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.pb-next-alert__close:focus,
.pb-next-alert__close:focus-visible {
    background: #fff !important;
    border-color: var(--pb-emotion-lime) !important;
    color: var(--pb-emotion-navy) !important;
    outline: 2px solid rgba(212, 249, 76, 0.65) !important;
    outline-offset: 3px;
    box-shadow:
        0 4px 18px rgba(212, 249, 76, 0.5),
        0 0 0 3px rgba(212, 249, 76, 0.2) !important;
}

.pb-next-alert__close:active {
    transform: scale(0.96);
    box-shadow: 0 1px 6px rgba(212, 249, 76, 0.35) !important;
}

.pb-next-alert__eyebrow {
    margin: 0 0 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pb-emotion-lime);
}

.pb-next-alert__court {
    margin: 0 0 8px;
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
}

.pb-next-alert__subtitle {
    margin: 0 0 24px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.78);
}

.pb-next-alert__body {
    text-align: left;
}

.pb-next-alert__meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pb-next-alert__position {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f2942;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pb-next-alert__meta--first .pb-next-alert__position {
    color: #fff;
    background: linear-gradient(135deg, #7c6bc4 0%, #5b4a9e 100%);
}

.pb-next-alert__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.pb-next-alert__wait {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    text-align: right;
}

.pb-next-alert__match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: start;
}

.pb-next-alert__team {
    padding: 16px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        border-color 0.25s var(--pb-emotion-ease-soft),
        background 0.25s var(--pb-emotion-ease-soft),
        box-shadow 0.25s var(--pb-emotion-ease-soft);
}

.pb-next-alert__team--yours {
    background: rgba(212, 249, 76, 0.12);
    border-color: rgba(212, 249, 76, 0.45);
    box-shadow: 0 0 0 1px rgba(212, 249, 76, 0.2);
}

.pb-next-alert__team-name {
    display: block;
    margin-bottom: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
}

.pb-next-alert__players {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.45;
    font-weight: 600;
}

.pb-next-alert__player {
    display: block;
}

.pb-next-alert__player--you,
.pb-next-alert__players .pb-player-wrapper .pb-next-alert__player--you {
    color: var(--pb-emotion-lime);
}

.pb-next-alert__you-tag {
    font-style: normal;
    font-weight: 700;
    font-size: 0.82em;
    color: var(--pb-emotion-lime);
    letter-spacing: 0.02em;
}

.pb-next-alert__players .pb-player-wrapper {
    display: block;
    width: 100%;
    text-align: left;
}

.pb-next-alert__players .pb-player-wrapper:hover {
    z-index: 3;
}

.pb-next-alert__players .pb-player-wrapper .pb-tooltip {
    bottom: auto;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 16px 14px;
    z-index: 100001;
}

.pb-next-alert__players .pb-player-wrapper .pb-tooltip::after {
    top: auto;
    bottom: 100%;
    border-color: transparent transparent #23282d transparent;
}

.pb-next-alert__players .pb-game-count {
    font-size: 0.85em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.pb-next-alert__vs {
    align-self: center;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 640px) {
    .pb-next-alert__meta {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .pb-next-alert__wait {
        grid-column: 1 / -1;
        text-align: center;
    }

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

    .pb-next-alert__vs {
        padding: 4px 0;
        text-align: center;
    }
}

/* ——— Responsive: tablet & mobile (unified) ——— */
@media (max-width: 1024px) {
    .pb-open-play-dashboard__col {
        min-width: 0;
    }

    .pb-open-play-dashboard {
        padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    .pb-standings-container .table-responsive,
    .pb-standings-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

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

@media (max-width: 768px) {
    .pb-queue,
    .pb-courts,
    .pb-recent,
    .pb-tourney {
        padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    .pb-queue-hero,
    .pb-courts-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .pb-courts-summary {
        justify-content: center;
    }

    .pb-queue-match {
        flex-direction: column;
        gap: 10px;
    }

    .pb-queue-side {
        width: 100%;
        flex: 1 1 auto;
    }

    .pb-queue-side--t1 {
        border-right: 1px solid #e8ecf0;
    }

    .pb-recent-match {
        flex-direction: column;
        gap: 8px;
    }

    .pb-recent-side {
        width: 100%;
        min-height: 0;
        flex: none;
    }

    .pb-recent-players {
        display: block;
        text-align: center;
    }

    .pb-recent-player {
        display: block;
    }

    .pb-recent-card {
        overflow: visible;
    }

    .pb-recent-winner-name {
        max-width: 100%;
    }

    .pb-reg-row,
    .pb-reg-skill-grid {
        grid-template-columns: 1fr;
    }

    .pb-login-extra {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pb-attendance-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .pb-attendance-toolbar-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .pb-attendance-bulk-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pb-modal,
    .pb-queue-modal,
    .pb-special-modal,
    .pb-attendance-modal,
    .pb-player-swap-modal,
    .pb-winner-modal,
    .pb-dialog-modal {
        align-items: center;
        justify-content: center;
        padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    }

    .pb-modal-content,
    .pb-queue-dialog,
    .pb-special-dialog,
    .pb-attendance-dialog,
    .pb-player-swap-dialog,
    .pb-winner-dialog,
    .pb-dialog-panel {
        width: min(100%, 520px);
        max-width: calc(100vw - 32px);
        margin: 0 auto;
        border-radius: 20px;
        max-height: min(88vh, 88dvh);
        overflow-y: auto;
    }

    .pb-queue-dialog,
    .pb-special-dialog,
    .pb-attendance-dialog {
        width: min(100%, 640px);
    }

    .pb-attendance-modal.pb-modal {
        padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
        align-items: center;
    }

    .pb-attendance-modal .pb-attendance-dialog,
    .pb-attendance-modal .pb-modal-content.pb-attendance-dialog {
        width: min(100%, 520px);
        max-width: calc(100vw - 32px);
        height: min(94vh, 94dvh);
        max-height: min(94vh, 94dvh);
    }

    /* Attendance modal — compact mobile layout */
    .pb-attendance-header {
        padding: 12px 14px 10px;
    }

    .pb-attendance-icon {
        display: none;
    }

    .pb-attendance-eyebrow {
        margin-bottom: 4px;
        padding: 3px 10px;
        font-size: 0.65rem;
    }

    .pb-attendance-header h3 {
        margin-bottom: 4px;
        font-size: 1.1rem;
    }

    .pb-attendance-lead,
    .pb-attendance-lead--partner {
        display: none;
    }

    .pb-attendance-date {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    .pb-attendance-manual {
        padding: 10px 12px 8px;
    }

    .pb-attendance-manual__head {
        display: none;
    }

    .pb-attendance-manual__field {
        margin: 0;
    }

    .pb-attendance-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 12px;
    }

    .pb-attendance-toolbar-actions {
        flex-direction: row;
        align-items: center;
        width: auto;
    }

    .pb-attendance-bulk-group {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 3px;
    }

    .pb-attendance-modal .pb-attendance-bulk-btn,
    .pb-attendance-modal .pb-attendance-bulk-btn:link,
    .pb-attendance-modal .pb-attendance-bulk-btn:visited {
        min-height: 32px;
        padding: 6px 10px 6px 8px;
        font-size: 0.75rem;
        gap: 5px;
    }

    .pb-attendance-count {
        margin: 0;
        font-size: 0.82rem;
        text-align: right;
        white-space: nowrap;
    }

    .pb-attendance-count-value {
        font-size: 0.95rem;
    }

    .pb-attendance-list {
        flex: 1 1 auto;
        max-height: none;
        min-height: 100px;
        padding: 8px 10px;
    }

    .pb-attendance-item-wrap {
        margin-bottom: 6px;
    }

    .pb-attendance-item {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        grid-template-rows: auto;
        align-items: center;
        gap: 4px 8px;
        padding: 8px 10px;
    }

    .pb-attendance-item:not(:has(.pb-attendance-tick)) {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .pb-attendance-avatar {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .pb-attendance-avatar--initials {
        font-size: 0.75rem;
    }

    .pb-attendance-player {
        grid-column: 2;
        grid-row: 1 / span 2;
        gap: 1px;
    }

    .pb-attendance-name {
        font-size: 0.88rem;
        gap: 4px;
        line-height: 1.25;
    }

    .pb-attendance-online-badge,
    .pb-attendance-payment-badge,
    .pb-attendance-manual-badge {
        padding: 1px 6px;
        font-size: 0.58rem;
    }

    .pb-attendance-meta {
        font-size: 0.72rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pb-attendance-item__actions {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
        margin-right: 0;
        gap: 4px;
    }

    .pb-attendance-partner-trigger {
        margin-right: 0;
    }

    .pb-attendance-modal .pb-attendance-partner-trigger {
        min-height: 30px;
        padding: 5px;
        margin-right: 0;
    }

    .pb-attendance-modal .pb-attendance-partner-trigger__text {
        display: none;
    }

    .pb-attendance-modal .pb-attendance-partner-trigger__icon {
        width: 22px;
        height: 22px;
    }

    .pb-attendance-modal .pb-attendance-stats-trigger {
        width: 30px;
        height: 30px;
    }

    .pb-attendance-tick {
        grid-column: 4;
        grid-row: 1 / span 2;
        align-self: center;
        width: 22px;
        height: 22px;
    }

    .pb-attendance-item:has(.pb-attendance-check:checked) .pb-attendance-tick::after {
        left: 6px;
        top: 2px;
        width: 5px;
        height: 9px;
    }

    .pb-attendance-footer {
        padding: 10px 12px 12px;
        gap: 8px;
    }

    .pb-attendance-save {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .pb-attendance-dismiss {
        font-size: 0.8rem;
        gap: 8px;
    }

    .pb-queue-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .pb-queue-modal-actions {
        margin-left: 0;
        width: 100%;
    }

    .pb-queue-modal .pb-queue-randomize,
    .pb-queue-modal .pb-queue-skill-match,
    .pb-queue-modal .pb-queue-fair-stack,
    .pb-queue-modal .pb-queue-all-active,
    .pb-queue-modal .pb-queue-submit {
        flex: 1 1 calc(50% - 5px);
        min-height: 44px;
    }

    .pb-special-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .pb-special-modal .pb-special-submit {
        width: 100%;
        min-height: 44px;
    }

    .pb-tourney-tab-btn {
        flex: 1 1 auto;
        min-height: 44px;
        text-align: center;
    }

    .pb-match-teams {
        flex-direction: column;
        gap: 8px;
    }

    .pb-m-vs {
        align-self: center;
    }

    .pb-queue-summary {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pb-court-actions {
        flex-direction: column;
        align-items: stretch;
    }

    #pb-courts-grid .pb-court-actions button.pb-court-btn[type="button"],
    .pb-court-actions button.pb-court-btn[type="button"] {
        width: 100%;
    }

    .pb-tourney-tabs {
        flex-wrap: wrap;
    }

    .pb-next-alert {
        padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
        align-items: center;
        justify-content: center;
    }

    .pb-next-alert--stack {
        align-items: center;
        padding-top: max(16px, env(safe-area-inset-top, 0px));
    }

    .pb-next-alert-stack {
        max-height: min(82vh, 820px);
    }

    .pb-next-alert__panel,
    .pb-next-alert__panel--stacked {
        width: min(100%, 520px);
        max-width: calc(100vw - 32px);
        margin: 0 auto;
        padding: 24px 18px 20px;
        border-radius: 20px;
        max-height: min(88vh, 88dvh);
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .pb-open-play-dashboard .pb-recent--dock .pb-recent-hero {
        padding-right: 12px;
    }

    .pb-queue-card-head {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pb-queue-card-head .pb-queue-wait,
    .pb-queue-card-head .pb-stack-source {
        justify-self: center;
        text-align: center;
    }

    .pb-queue-actions .pb-btn {
        flex: 1 1 100%;
        min-width: 0;
    }

    .pb-reg-hero {
        padding: 20px 16px 16px;
    }

    .pb-check-in-card {
        padding: 22px 16px;
    }

    .pb-attendance-partner-panel .pb-attendance-partner__controls {
        flex-direction: column;
        align-items: stretch;
    }

    .pb-attendance-partner__type,
    .pb-attendance-partner__lock,
    .pb-attendance-partner__cancel {
        width: 100%;
    }

    .pb-attendance-partner-modal__dialog {
        width: min(94vw, 460px);
        max-height: min(90vh, 90dvh);
    }

    .pb-attendance-partner-modal__grid {
        max-height: 200px;
    }

    .pb-attendance-partner-modal__actions {
        flex-direction: column;
    }
}

/* Open play dashboard: preserve compact layout after global mobile hero rules */
@media (max-width: 768px) {
    #pb-open-play-dashboard .pb-queue,
    #pb-open-play-dashboard .pb-courts,
    #pb-open-play-dashboard .pb-recent {
        padding-inline: 0;
    }

    #pb-open-play-dashboard .pb-queue-hero,
    #pb-open-play-dashboard .pb-courts-hero,
    #pb-open-play-dashboard .pb-recent-hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    #pb-open-play-dashboard .pb-courts-summary {
        justify-content: flex-end;
    }
}
/* Password show/hide toggle */
.pb-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.pb-password-wrapper input[type="password"],
.pb-password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 2.75rem;
}

.pb-password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.25rem;
    margin: 0;
    cursor: pointer;
    color: #9ca3af !important;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.pb-password-toggle:hover,
.pb-password-toggle:focus-visible {
    color: #374151 !important;
    outline: 2px solid rgba(45, 138, 94, 0.45);
    outline-offset: 2px;
}

/* Tournament dashboard emotional UX (no gradients / no shadows) */
.pb-tourney--dashboard {
    --pb-tourney-navy: #0a1628;
    --pb-tourney-green: #1e6b47;
    --pb-tourney-green-deep: #1e563c;
    --pb-tourney-lime: #d4f94c;
    --pb-tourney-mint: #f0faf4;
    --pb-tourney-radius: 18px;
    --pb-tourney-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --pb-font-sans: "Poppins", sans-serif;
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 4px 32px;
    font-family: var(--pb-font-sans);
}

.pb-tourney--dashboard.pb-tourney--playoffs-only {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 12px clamp(8px, 1.5vw, 20px) 40px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.pb-tourney--playoffs-only .pb-bracket-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.pb-tourney--dashboard,
.pb-tourney--dashboard *,
.pb-tourney--dashboard *::before,
.pb-tourney--dashboard *::after {
    font-family: inherit;
    box-shadow: none !important;
    text-shadow: none !important;
    background-image: none !important;
}

.pb-tourney-hero {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 12px 16px;
    padding: 22px 20px 20px;
    margin-bottom: 20px;
    border-radius: var(--pb-tourney-radius);
    background: var(--pb-tourney-mint);
    border: 1px solid rgba(45, 138, 94, 0.2);
    overflow: hidden;
}

.pb-tourney-hero::after {
    content: none;
}

.pb-tourney-hero__badge {
    grid-row: 1 / span 2;
    align-self: center;
    color: var(--pb-tourney-green);
    opacity: 0.9;
}

.pb-tourney-hero__text {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.pb-tourney-hero__eyebrow {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4a7c66;
}

.pb-tourney-hero__title {
    margin: 0 0 6px;
    font-size: clamp(1.35rem, 4vw, 1.65rem);
    font-weight: 800;
    color: var(--pb-tourney-navy);
    line-height: 1.2;
}

.pb-tourney-hero__dates {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d8a5e;
}

.pb-tourney-hero__vibe {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #3d5a4a;
    max-width: 36em;
}

.pb-tourney-hero__chip {
    grid-column: 1 / -1;
    justify-self: start;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(45, 138, 94, 0.12);
    color: var(--pb-tourney-green-deep);
    border: 1px solid rgba(45, 138, 94, 0.22);
}

.pb-tourney-hero__chip--in_progress {
    background: var(--pb-tourney-navy);
    color: var(--pb-tourney-lime);
    border-color: transparent;
    animation: none;
}

.pb-tourney-hero__chip--complete {
    background: #fff8e6;
    color: #856404;
    border-color: #fde68a;
}

.pb-tourney--dashboard .pb-tourney-tabs--emotion {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    padding: 0;
    border: none;
}

.pb-tourney--dashboard .pb-tourney-tab-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(45, 138, 94, 0.2) !important;
    background: #fff !important;
    background-image: none !important;
    color: #3d5a4a !important;
    font-family: inherit !important;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.2s var(--pb-tourney-ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.pb-tourney--dashboard .pb-tourney-tab-btn__icon {
    display: flex;
    opacity: 0.75;
}

.pb-tourney--dashboard .pb-tourney-tab-btn__icon svg {
    display: block;
}

.pb-tourney--dashboard .pb-tourney-tab-btn:hover,
.pb-tourney--dashboard .pb-tourney-tab-btn:focus-visible {
    border-color: rgba(45, 138, 94, 0.4) !important;
    color: var(--pb-tourney-green-deep) !important;
    transform: translateY(-1px);
    outline: none;
}

.pb-tourney--dashboard .pb-tourney-tab-btn.active {
    background: var(--pb-tourney-navy) !important;
    border-color: transparent !important;
    color: var(--pb-tourney-lime) !important;
}

.pb-tourney--dashboard .pb-tourney-tab-btn.active .pb-tourney-tab-btn__icon {
    opacity: 1;
}

.pb-tourney-content.is-hidden {
    display: none !important;
}

.pb-tourney-content.is-active {
    animation: pb-tourney-panel-in 0.4s var(--pb-tourney-ease);
}

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

.pb-tourney-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 48px 20px;
    text-align: center;
}

.pb-tourney-loading__pulse {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pb-tourney-green);
    animation: pb-tourney-ball-pulse 1.6s ease-out infinite;
}

@keyframes pb-tourney-ball-pulse {
    0%,
    100% {
        transform: scale(0.92);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

.pb-tourney-loading__text {
    margin: 0;
    font-weight: 600;
    color: #4a7c66;
}

.pb-tourney-empty {
    padding: 36px 24px;
    text-align: center;
    border-radius: var(--pb-tourney-radius);
    background: #fff;
    border: 1px dashed rgba(45, 138, 94, 0.28);
}

.pb-tourney-empty__icon {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--pb-tourney-green);
    opacity: 0.85;
}

.pb-tourney-empty__title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--pb-tourney-navy);
}

.pb-tourney-empty__detail {
    margin: 0 auto;
    max-width: 28em;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #4a6b5c;
}

.pb-tourney-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.pb-tourney--dashboard .pb-tourney-info-card {
    padding: 18px 18px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(45, 138, 94, 0.14);
}

.pb-tourney--dashboard .pb-tourney-info-card--highlight {
    background: var(--pb-tourney-navy);
    border-color: transparent;
    color: #e8f5ee;
}

.pb-tourney--dashboard .pb-tourney-info-card--highlight .pb-tourney-info-card__title {
    color: rgba(212, 249, 76, 0.9);
}

.pb-tourney--dashboard .pb-tourney-info-card--highlight .pb-tourney-info-card__value {
    color: #fff;
    font-size: 1.2rem;
}

.pb-tourney-info-card__title {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4a7c66;
}

.pb-tourney-info-card__value {
    margin: 0;
    font-weight: 800;
    color: var(--pb-tourney-navy);
}

.pb-tourney--dashboard .pb-tourney-info-card p {
    margin: 0;
    line-height: 1.55;
    color: #3d5a4a;
    font-size: 0.92rem;
}

.pb-tourney--dashboard .pb-slot-group h4 {
    background: rgba(45, 138, 94, 0.12);
    border-left: none;
    color: var(--pb-tourney-navy);
    font-weight: 800;
}

.pb-tourney--dashboard .pb-match-card {
    border-radius: 14px;
    border-color: rgba(45, 138, 94, 0.14);
    transition: transform 0.2s var(--pb-tourney-ease);
}

.pb-tourney--dashboard .pb-match-card:hover {
    transform: translateY(-2px);
}

.pb-tourney--dashboard .pb-match-card--completed {
    border-color: rgba(45, 138, 94, 0.35);
}

.pb-tourney--dashboard .pb-m-vs {
    background: var(--pb-tourney-mint);
    color: var(--pb-tourney-green);
    font-weight: 800;
}

.pb-tourney--dashboard .pb-match-score {
    color: var(--pb-tourney-green-deep);
    background: rgba(212, 249, 76, 0.35);
    border-radius: 8px;
    font-size: 0.95rem;
}

.pb-tourney--dashboard .pb-division-block h3 {
    margin: 24px 0 12px;
    font-size: 1.1rem;
    color: var(--pb-tourney-navy);
}

.pb-tourney--dashboard .pb-standings-table {
    border-radius: 14px;
    border: 1px solid rgba(45, 138, 94, 0.12);
}

.pb-tourney--dashboard .pb-standings-table th {
    background: #e8f5ee;
    color: var(--pb-tourney-green-deep);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.pb-tourney--dashboard .pb-standings-table tbody tr:hover td {
    background: rgba(240, 250, 244, 0.6);
}

.pb-tourney--dashboard .pb-nba-bracket {
    margin-top: 4px;
}

.pb-tourney--playoffs-only .pb-nba-bracket {
    padding: 20px 8px 28px;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.pb-tourney--playoffs-only .pb-nba-bracket__board {
    grid-template-columns: minmax(0, 1.2fr) minmax(120px, 0.32fr) minmax(0, 1.2fr);
    gap: 10px 18px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
    box-sizing: border-box;
}

.pb-tourney--playoffs-only .pb-nba-bracket__half,
.pb-tourney--playoffs-only .pb-nba-bracket__cols,
.pb-tourney--playoffs-only .pb-nba-bracket__col,
.pb-tourney--playoffs-only .pb-nba-bracket__center {
    min-width: 0;
    max-width: 100%;
}

.pb-tourney--playoffs-only .pb-nba-bracket__board[data-cols="3"] .pb-nba-bracket__cols,
.pb-tourney--playoffs-only .pb-nba-bracket__board[data-cols="4"] .pb-nba-bracket__cols {
    gap: 10px 16px;
    min-height: 640px;
}

.pb-tourney--playoffs-only .pb-nba-bracket__board[data-cols="3"] .pb-nba-bracket__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pb-tourney--playoffs-only .pb-nba-bracket__board[data-cols="4"] .pb-nba-bracket__cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pb-tourney--playoffs-only .pb-nba-bracket__board[data-cols="2"] .pb-nba-bracket__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pb-tourney--playoffs-only .pb-nba-bracket__board[data-cols="1"] .pb-nba-bracket__cols {
    grid-template-columns: minmax(0, 1fr);
}

.pb-tourney--playoffs-only .pb-nba-bracket__slots {
    gap: 0;
    justify-content: stretch;
}

.pb-tourney--playoffs-only .pb-nba-bracket__pair {
    --pb-nba-team-h: 36px;
    --pb-nba-team-gap: 12px;
    --pb-nba-fork-w: 14px;
    --pb-nba-stem-w: 16px;
    gap: 0;
    padding-right: calc(var(--pb-nba-fork-w) + var(--pb-nba-stem-w));
}

.pb-tourney--playoffs-only .pb-nba-bracket__half--right .pb-nba-bracket__pair {
    padding-right: 0;
    padding-left: calc(var(--pb-nba-fork-w) + var(--pb-nba-stem-w));
}

.pb-tourney--playoffs-only .pb-nba-bracket__fork {
    width: calc(var(--pb-nba-fork-w) + var(--pb-nba-stem-w));
}

.pb-tourney--playoffs-only .pb-nba-bracket__col[data-round="r32"] .pb-nba-bracket__slots,
.pb-tourney--playoffs-only .pb-nba-bracket__col[data-round="r16"] .pb-nba-bracket__slots {
    gap: 0;
}

.pb-tourney--playoffs-only .pb-nba-bracket__col[data-round="qf"] .pb-nba-bracket__slots,
.pb-tourney--playoffs-only .pb-nba-bracket__col[data-round="semi"] .pb-nba-bracket__slots {
    gap: 0;
}

.pb-tourney--playoffs-only .pb-nba-match {
    width: 100%;
}

.pb-tourney--playoffs-only .pb-nba-team {
    grid-template-columns: 18px 36px minmax(0, 1fr) 18px;
    gap: 4px;
    min-height: 44px;
    padding: 6px 2px;
}

.pb-tourney--playoffs-only .pb-nba-team--mirror {
    grid-template-columns: 18px minmax(0, 1fr) 18px 36px;
}

.pb-tourney--playoffs-only .pb-nba-team__seed {
    width: 18px;
    font-size: 0.7rem;
}

.pb-tourney--playoffs-only .pb-nba-team__profiles {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
}

.pb-tourney--playoffs-only .pb-nba-team__mark {
    flex: 0 0 22px;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    max-width: 22px;
    font-size: 0.5rem;
}

.pb-tourney--playoffs-only .pb-nba-bracket__col[data-round="r32"] .pb-nba-match,
.pb-tourney--playoffs-only .pb-nba-bracket__col[data-round="r16"] .pb-nba-match {
    font-size: 0.78rem;
}

.pb-tourney--playoffs-only .pb-nba-bracket__col[data-round="r32"] .pb-nba-team__name,
.pb-tourney--playoffs-only .pb-nba-bracket__col[data-round="r16"] .pb-nba-team__name {
    font-size: 0.72rem;
    line-height: 1.25;
}

.pb-tourney--playoffs-only .pb-nba-bracket__col[data-round="r32"] .pb-nba-team__mark,
.pb-tourney--playoffs-only .pb-nba-bracket__col[data-round="r16"] .pb-nba-team__mark {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    max-width: 20px;
}

.pb-tourney--playoffs-only .pb-nba-bracket__center {
    gap: 28px;
    padding: 0 6px;
}

.pb-tourney--playoffs-only .pb-nba-bracket__col-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}

.pb-tourney--dashboard .pb-nba-team__name,
.pb-tourney--playoffs-only .pb-nba-team__name {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
}

.pb-tourney--dashboard .pb-nba-match__teams,
.pb-tourney--playoffs-only .pb-nba-match__teams {
    border-top: 1px solid rgba(10, 22, 40, 0.88) !important;
    border-bottom: 1px solid rgba(10, 22, 40, 0.88) !important;
    border-left: none !important;
    border-right: none !important;
}

.pb-tourney--dashboard .pb-nba-team + .pb-nba-team,
.pb-tourney--playoffs-only .pb-nba-team + .pb-nba-team {
    border-top: 1px solid rgba(10, 22, 40, 0.18) !important;
}

.pb-tourney--playoffs-only .pb-tourney-tabs {
    display: none !important;
}

/* Tournament dashboard & TV. No left border accents */
#pb-tournament-wrapper,
#pb-tournament-wrapper *,
#pb-tournament-live-tv,
#pb-tournament-live-tv * {
    border-left: none !important;
}

@media (max-width: 560px) {
    .pb-tourney-hero {
        grid-template-columns: 1fr;
    }

    .pb-tourney-hero__badge {
        grid-row: auto;
    }

    .pb-tourney--dashboard .pb-tourney-tab-btn__label {
        font-size: 0.82rem;
    }

    .pb-tourney--dashboard .pb-tourney-tab-btn {
        padding: 9px 12px;
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
    }
}

.pb-tourney-qualified {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #e8f5ee;
    color: #1e6b47;
}

/* Tournament feedback form (mirrors tournament registration stepper) */
#pb-tournament-feedback.pb-reg--tournament {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

#pb-tournament-feedback .pb-reg-brand--magstack {
    margin: 0 0 20px;
}

#pb-tournament-feedback .pb-reg-brand--magstack .pb-reg-brand__logo {
    width: clamp(180px, 55%, 280px);
    border-radius: 0;
}

#pb-tournament-feedback .pb-reg-brand:not(.pb-reg-brand--magstack) {
    margin-bottom: 12px;
}

#pb-tournament-feedback.pb-reg--stepper .pb-reg-progress-fill {
    background: #1e6b47;
}

#pb-tournament-feedback .pb-reg-field input[type="text"],
#pb-tournament-feedback .pb-reg-field input[type="email"],
#pb-tournament-feedback .pb-reg-field textarea,
#pb-tournament-feedback .pb-reg-field select {
    width: 100%;
}

#pb-tournament-feedback .pb-reg-intro--tournament {
    color: #5a6b7d;
}

#pb-tournament-feedback .pb-reg-panel-eyebrow {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7c8d;
}

#pb-tournament-feedback .pb-reg-panel-vibe {
    margin: 0 0 18px;
    color: #5a6b7d;
    font-size: 0.95rem;
    line-height: 1.45;
}

#pb-tournament-feedback .pb-reg-category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#pb-tournament-feedback .pb-reg-category-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #d5dee8;
    background: #fff;
    color: #0f2942;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
}

#pb-tournament-feedback .pb-reg-category-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#pb-tournament-feedback .pb-reg-category-option:hover {
    border-color: #2d8a5e;
}

#pb-tournament-feedback .pb-reg-category-option.is-selected,
#pb-tournament-feedback .pb-reg-category-option:has(input:checked) {
    border-color: #1e6b47;
    background: #e8f5ee;
    color: #1e6b47;
}

#pb-tournament-feedback .pb-reg-category-options.pb-reg-invalid,
#pb-tournament-feedback .pb-reg-field.pb-reg-invalid,
#pb-tournament-feedback fieldset.pb-reg-field.pb-reg-invalid {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
    border-radius: 12px;
}

#pb-tournament-feedback .pb-reg-field-error {
    display: block;
    margin-top: 6px;
    color: #b91c1c;
    font-size: 0.85rem;
}

#pb-tournament-feedback .pb-feedback-scale {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#pb-tournament-feedback .pb-feedback-scale__opt {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #d5dee8;
    background: #fff;
    color: #0f2942;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
}

#pb-tournament-feedback .pb-feedback-scale__opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#pb-tournament-feedback .pb-feedback-scale__opt:hover {
    border-color: #2d8a5e;
}

#pb-tournament-feedback .pb-feedback-scale__opt:has(input:checked) {
    border-color: #1e6b47;
    background: #1e6b47;
    color: #d4f94c;
}

#pb-tournament-feedback .pb-feedback-scale--nps .pb-feedback-scale__opt {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
}

#pb-tournament-feedback .pb-feedback-rating {
    margin-bottom: 16px;
}

#pb-tournament-feedback .pb-feedback-closing {
    margin-top: 8px;
}

#pb-tournament-feedback .pb-feedback-closing__text {
    margin: 0;
    color: #0f2942;
    font-weight: 600;
    line-height: 1.45;
}

#pb-tournament-feedback .pb-reg-actions--tournament-stepper .pb-reg-back--tournament {
    color: #5a6b7d !important;
    background: #eef2f6 !important;
    border: none !important;
    background-image: none !important;
    box-shadow: none !important;
    min-width: 96px !important;
    padding: 8px 14px !important;
    font-size: 0.92rem !important;
    border-radius: var(--pb-emotion-radius-pill, 999px) !important;
    appearance: none;
}

#pb-tournament-feedback .pb-reg-actions--tournament-stepper .pb-reg-next--tournament,
#pb-tournament-feedback .pb-reg-actions--tournament-stepper .pb-reg-submit-btn {
    background: #0a1628 !important;
    background-image: none !important;
    color: #d4f94c !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: var(--pb-emotion-radius-pill, 999px) !important;
    font-weight: 700;
    min-width: 110px !important;
    padding: 8px 16px !important;
    font-size: 0.92rem !important;
    appearance: none;
}

#pb-tournament-feedback .pb-reg-actions--tournament-stepper .pb-reg-next--tournament:hover,
#pb-tournament-feedback .pb-reg-actions--tournament-stepper .pb-reg-submit-btn:hover,
#pb-tournament-feedback .pb-reg-actions--tournament-stepper .pb-reg-next--tournament:focus-visible,
#pb-tournament-feedback .pb-reg-actions--tournament-stepper .pb-reg-submit-btn:focus-visible {
    background: #1e6b47 !important;
    color: #d4f94c !important;
}

#pb-tournament-feedback .pb-reg-actions--tournament-stepper .pb-reg-submit-btn[hidden] {
    display: none !important;
}

#pb-tournament-feedback .pb-reg-actions--tournament-stepper {
    gap: 10px;
    margin-top: 18px;
}

#pb-tournament-feedback .pb-reg-step-labels--feedback {
    gap: 4px;
}

#pb-tournament-feedback .pb-reg-step-labels--feedback li {
    font-size: 0.68rem;
}

#pb-tournament-feedback .pb-reg-step-labels--feedback li.is-active {
    color: var(--pb-emotion-green-deep, #1e6b47);
}

#pb-tournament-feedback .pb-reg-step-labels--feedback li.is-active span {
    background: #1e6b47;
    color: #d4f94c;
}

@media (max-width: 640px) {
    #pb-tournament-feedback .pb-reg-step-labels--feedback li {
        font-size: 0;
    }

    #pb-tournament-feedback .pb-reg-step-labels--feedback li span {
        font-size: 0.75rem;
    }

    #pb-tournament-feedback .pb-feedback-scale--nps .pb-feedback-scale__opt {
        width: 30px;
        height: 30px;
        font-size: 0.78rem;
    }
}
