/* Alpine.js initial hide guard */
[x-cloak] {
    display: none !important;
}

/* ============================================================
   Tool-tips Visibility — controlled by /profile/settings toggle
   When <body class="tool-tips-hidden">, all informational
   tool-tips and hints on the Play page are suppressed.
   ============================================================ */
body.tool-tips-hidden .promo-info-links-row,
body.tool-tips-hidden .play-card-menu-group--left .play-card-menu-btn[title],
body.tool-tips-hidden .play-card-menu-group--left .play-match-howto-link,
body.tool-tips-hidden .party-queue-hint {
    display: none !important;
}

/* Play Page Base */
.play-page {
    min-height: calc(100vh - var(--topbar-height));
    padding: 0.5rem var(--space-md) var(--space-md) var(--space-md);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* The public shell omits the authenticated main-content spacing below its
   fixed header. Compensate only on /play/ so both page states align. */
.public-main-content .play-page {
    padding-top: calc(0.5rem + 35px);
}

/* ===== PROMOTIONAL STRIP ===== */
.promo-strip {
    display: grid;
    grid-template-columns: repeat(3, 330px);
    gap: 1.25rem;
    margin-bottom: 1rem;
    max-width: none;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    position: relative;
}

/* Separator Line */
.promo-separator {
    width: 100%;
    max-width: 1100px;
    margin: 25px auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.promo-box {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5625rem 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.promo-box:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Premium Promo Box - Yellow Theme */
.promo-box.premium-promo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(26, 26, 26, 0.95) 50%);
    border-color: rgba(255, 215, 0, 0.25);
}

.promo-box.premium-promo:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.1);
}

.promo-box.premium-promo .promo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promo-box.premium-promo .promo-icon i {
    font-size: 1.25rem;
    color: #ffd700;
}

.promo-box.premium-promo .promo-content {
    flex: 1;
}

.promo-box.premium-promo .promo-title {
    font-family: 'Apex', sans-serif;
    font-size: 0.9rem;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 0.2rem;
}

.promo-box.premium-promo .promo-subtitle {
    font-size: 0.8rem;
    color: #fff;
    margin: 0;
}

.upgrade-btn-mini {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #000;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.promo-box.premium-promo:hover .upgrade-btn-mini {
    background: linear-gradient(135deg, #ffe44d 0%, #ffc933 100%);
    transform: scale(1.05);
}

/* Card 1 Info Slider - neutral shell matching the standard promo box */
.promo-box.map-comms-promo {
    display: grid;
    align-items: stretch;
    justify-items: stretch;
    gap: 0;
    padding: 0;
    color: #fff;
    text-decoration: none;
    background: none;
    border: none;
    overflow: visible;
    grid-column: 1 / -1;
}

/* ===== EVENT CARD (top of the .play-stack column on /play) =====
   Left 40%: event over the banner art, right 60%: three equal stats plus a
   slim Ladder/Scoring/Breakdown links row. Gold = money, red = LIVE + played
   pips only. Labels 10-11px caps, values 28px Apex on one baseline. */
.event-card {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 128px;
    margin: 0 0 12px;
    /* Inline-size container: never widens .play-stack (its width comes from the
       team cards) and lets the zones stack via @container below. */
    container: ec / inline-size;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    color: #fff;
    box-sizing: border-box;
}

.event-card.is-live::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: #f4012b;
    z-index: 3;
}

.event-card a {
    color: inherit;
    text-decoration: none;
}

.ec-body {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    min-height: 128px;
}

/* Banner art: left zone. The art sits right of the text (characters toward the
   divider); a solid dark wash keeps the title off busy artwork. */
.ec-bg {
    position: absolute;
    inset: 0 auto 0 0;
    width: 40%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 82%, transparent 100%);
    pointer-events: none;
}

.ec-bg-art {
    position: absolute;
    inset: 0 0 0 42%;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: 50% 30%;
    transform: scale(1.45);
    transform-origin: 62% 22%;
}

.ec-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(12, 12, 12, 0.92) 0%,
        rgba(12, 12, 12, 0.85) 45%,
        rgba(12, 12, 12, 0.4) 72%,
        rgba(12, 12, 12, 0.12) 100%);
}

/* Elapsed event time along the bottom of the left zone */
.ec-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.ec-progress-fill {
    display: block;
    height: 100%;
    background: #f4012b;
    transition: width 1s linear;
}

/* Left zone */
.ec-event {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 12px 18px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.ec-status {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

.ec-live-tag,
.ec-upcoming-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Apex', sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    line-height: 1.3;
    text-transform: uppercase;
    text-shadow: none;
}

.ec-live-tag {
    background: #f4012b;
    color: #fff;
}

/* Upcoming: neutral tag (red stays reserved for LIVE); amber pulse in the final 15 min */
.ec-upcoming-tag {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
}

.ec-upcoming-tag.is-soon {
    background: rgba(255, 176, 32, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 176, 32, 0.7);
    color: #ffb020;
    animation: ecSoonPulse 1.8s ease-in-out infinite;
}

@keyframes ecSoonPulse {
    0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 176, 32, 0.7), 0 0 0 0 rgba(255, 176, 32, 0.35); }
    50% { box-shadow: inset 0 0 0 1px rgba(255, 176, 32, 0.9), 0 0 0 4px rgba(255, 176, 32, 0); }
}

.ec-live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    animation: ecLivePulse 1.4s ease-in-out infinite;
}

@keyframes ecLivePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ec-countdown {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-variant-numeric: tabular-nums;
}

.ec-name {
    font-family: 'Apex', sans-serif;
    font-size: 22px;
    font-size: clamp(18px, 3.4cqi, 28px);
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ec-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 0;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

.ec-meta-part + .ec-meta-part::before {
    content: '·';
    margin: 0 7px;
    color: rgba(255, 255, 255, 0.35);
}

/* Meta line opens the Event Rules popover */
.ec-meta.is-clickable {
    align-self: flex-start;
    max-width: calc(100% + 12px);
    margin: -2px -6px;
    padding: 2px 6px;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.15s ease;
}

.ec-meta.is-clickable:hover,
.ec-meta.is-clickable:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.ec-meta.is-clickable:focus-visible {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.ec-meta-rules {
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.ec-meta.is-clickable:hover .ec-meta-rules,
.ec-meta.is-clickable:focus-visible .ec-meta-rules {
    color: #fff;
}

.event-card .is-money {
    color: #ffd700;
}

/* ── Event sponsor strip ──
   Spans both zones under the card body and renders only when the event carries
   a sponsor (events.event_sponsor.resolve_event_sponsor), so unsponsored events
   keep the previous card height exactly.

   Hierarchy on purpose: gold owns "this is sponsored" (left rail, kicker, logo
   tile, code chip) so the red CTA stays the single obvious action. The discount
   code is the actual conversion hook, so it is a chip rather than muted text. */
/* Sponsored footer inside the event card. No surface of its own at all: it sits on
   the card's own gradient, so the sponsor reads as part of the card. The gold rail
   plus the "Presented by" kicker and code chip carry the sponsorship cue. */
.ec-sponsor {
    position: relative;
    z-index: 2;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 42px;
    padding: 8px 12px 8px 14px;
    background: transparent;
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
    text-decoration: none;
}

/* Gold rail — the "sponsored" cue, no layout cost. */
.ec-sponsor::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #ffd700 0%, rgba(255, 215, 0, 0.3) 100%);
}

/* Hover wash, kept off the base gradient so the gold stays put. */
.ec-sponsor::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    transition: background-color 0.15s ease;
}

a.ec-sponsor:hover::after {
    background: rgba(255, 255, 255, 0.05);
}

a.ec-sponsor:focus-visible {
    outline: 2px solid rgba(255, 215, 0, 0.75);
    outline-offset: -2px;
}

/* No destination (manual sponsor without a link) — not a link at all. */
.ec-sponsor:not([href]) {
    cursor: default;
}

.ec-sponsor-kicker {
    font-family: 'Apex', sans-serif;
    font-size: 9px;
    letter-spacing: 1.4px;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.75);
    white-space: nowrap;
}

.ec-sponsor-logo {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.ec-sponsor-name {
    font-family: 'Apex', sans-serif;
    font-size: 12.5px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ec-sponsor-desc {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.58);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ec-sponsor-desc::before {
    content: '·';
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.26);
}

/* Discount code — the conversion hook, so it reads as a coupon, not a caption. */
.ec-sponsor-code {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.34);
    color: rgba(255, 215, 0, 0.85);
    font-size: 10.5px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ec-sponsor-code strong {
    color: #ffd700;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* The code and the discount are two tokens, not one sentence — space them, don't
   punctuate them. */
.ec-sponsor-code span {
    margin-left: 2px;
}

/* Ghost action, not a second primary button: red belongs to the player's Ready Up. */
.ec-sponsor-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 5px 11px;
    border-radius: 5px;
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    color: #d6d6d6;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.ec-sponsor-cta i {
    font-size: 9px;
    transition: transform 0.15s ease;
}

a.ec-sponsor:hover .ec-sponsor-cta {
    background: rgba(255, 215, 0, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.45);
    color: #fff;
}

a.ec-sponsor:hover .ec-sponsor-cta i {
    transform: translate(1px, -1px);
}

@container ec (max-width: 480px) {
    .ec-sponsor-desc {
        display: none;
    }
}

/* Very narrow: keep the sponsor, the code and the CTA — drop the rest. */
@container ec (max-width: 400px) {
    .ec-sponsor {
        gap: 7px;
        padding: 8px 10px 8px 12px;
    }

    .ec-sponsor-kicker {
        display: none;
    }

    .ec-sponsor-name {
        font-size: 11.5px;
    }

    .ec-sponsor-code {
        padding: 1px 5px;
        font-size: 9px;
    }

    .ec-sponsor-cta {
        padding: 4px 8px;
        font-size: 9.5px;
        letter-spacing: 0.5px;
    }
}

/* Right zone */
.ec-side {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 6px 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.ec-side-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ec-label,
.ec-stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    line-height: 1.2;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

.ec-stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.38);
}

.ec-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    container-type: inline-size;
}

/* No prize config attached → POSITION + GAMES only */
.event-card.no-prize .ec-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ec-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 8px 10px;
}

.ec-stat + .ec-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* Same box for every value (text or pips) so all three share one centre line */
.ec-value-wrap {
    display: flex;
    align-items: center;
    height: 32px;
    min-width: 0;
    overflow: hidden;
}

.ec-value {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Apex', sans-serif;
    /* One size for all three values, scaled to the stats row (28px max) so
       "UNRANKED" always fits its column. */
    font-size: 26px;
    font-size: clamp(18px, 6.9cqi, 28px);
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.ec-value.is-unranked {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(16px, 5.2cqi, 22px);
}

/* Premium-only place: "$0" at full size, muted */
.ec-value.is-muted {
    color: rgba(255, 255, 255, 0.55);
}

/* Apex's "$" reads as an "S": draw the symbol in the body font */
.ec-value .ec-cur {
    font-family: 'URW Dock', sans-serif;
    font-weight: 700;
    font-size: 0.82em;
    margin-right: 1px;
    vertical-align: 0.06em;
}

.ec-caption {
    display: block;
    max-width: 100%;
    font-size: 11px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ec-pips {
    display: flex;
    gap: 6px;
    width: 100%;
}

.ec-pip {
    flex: 1;
    height: 10px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    transition: background-color 0.4s ease;
}

.ec-pip.is-filled {
    background: #f4012b;
}

.ec-cta {
    margin: 0 10px 4px;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ec-cta {
    color: rgba(255, 215, 0, 0.8) !important;
}

.ec-cta strong {
    color: #ffd700;
}

.ec-cta i {
    font-size: 0.85em;
}

.ec-cta:hover {
    color: #ffd700 !important;
}

/* Numbers roll in when they change after a refresh */
.event-card .is-ticking {
    animation: ecTick 0.5s ease-out;
}

@keyframes ecTick {
    from { transform: translateY(35%); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .event-card .is-ticking,
    .ec-live-dot {
        animation: none;
    }
}

/* ===== RANKED JOURNEY MODAL (opened from the player card ranking ring) ===== */
.ban-prefs-flyout.rank-journey-flyout {
    min-width: 0;
    width: 100%;
    max-width: 760px;
    padding: 1.25rem 1.5rem 1.1rem;
    /* The explainer below the ladder can push past a short viewport. */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

/* ── Ranked journey: "how ranking works" explainer ── */
.rank-journey-explainer {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.rank-journey-status {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    color: #cfcfcf;
    font-size: 0.78rem;
    line-height: 1.45;
}
.rank-journey-status i {
    margin-top: 0.15rem;
    color: #8a8a8a;
    flex-shrink: 0;
}
.rank-journey-steps {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.rank-journey-steps li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 0.55rem;
    align-items: start;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.76rem;
    line-height: 1.5;
}
.rank-journey-steps strong {
    color: #fff;
    font-weight: 700;
}
.rj-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    color: #d6d6d6;
    font-family: 'Apex', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
}

.rank-journey-flyout .promo-strip {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin: 1rem 0 0;
}

/* The ladder sits in an inset panel (same treatment as the Event Rules panels) */
.rank-journey-flyout .promo-box.promo-slider-box {
    height: auto;
    min-height: 0;
    padding: 1.1rem 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    box-shadow: none;
    overflow: visible;
}

/* Shared centred column: Event Card, status line, team cards and the Ready Up
   row. On desktop its width is the team cards' width (3 x 208px + gaps); the
   card and the button row are inline-size contained so they stretch to it. */
.play-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 1025px) {
    .play-stack > .queue-button-area {
        width: 100%;
        contain: inline-size;
    }

    .play-stack .play-card-menu-group--left {
        justify-self: start;
    }

    .play-stack .play-card-menu-group--right {
        justify-self: end;
    }
}

/* Narrow card (tablet/phone or a narrow preview): banner on top, stats below,
   the three stat columns stay in a row. */
@container ec (max-width: 560px) {
    .ec-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .ec-bg {
        inset: 0 0 auto 0;
        width: 100%;
        height: 150px;
        -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
    }

    .ec-bg-art {
        inset: 0 0 0 40%;
        transform: scale(1.35);
    }

    .ec-bg::after {
        background: linear-gradient(90deg,
            rgba(12, 12, 12, 0.92) 0%,
            rgba(12, 12, 12, 0.85) 40%,
            rgba(12, 12, 12, 0.35) 75%,
            rgba(12, 12, 12, 0.15) 100%);
    }

    .ec-event {
        min-height: 104px;
        padding-bottom: 14px;
    }

    .ec-name {
        font-size: clamp(20px, 5.6cqi, 26px);
    }

    .ec-side {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .ec-upcoming .ec-caption,
    .ec-upcoming .ec-info-text {
        white-space: normal;
    }
}

.play-status-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 20px;
    margin: 0 0 8px;
}

.play-status-line .liveapi-status-indicator {
    width: auto;
    margin: 0;
    padding: 0;
}

.play-status-line .queue-status-line {
    margin-left: auto;
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* Ranking ring on your own player card opens the journey modal */
.profile-mmr-circle.is-journey-trigger {
    cursor: pointer;
    border-radius: 999px;
    outline: none;
}

.profile-mmr-circle.is-journey-trigger .mmr-circle-ring,
.profile-mmr-circle.is-journey-trigger .mmr-circle-inner {
    transition: filter 0.2s ease, transform 0.2s ease;
}

.profile-mmr-circle.is-journey-trigger:hover .mmr-circle-ring,
.profile-mmr-circle.is-journey-trigger:focus-visible .mmr-circle-ring,
.profile-mmr-circle.is-journey-trigger:hover .mmr-circle-inner,
.profile-mmr-circle.is-journey-trigger:focus-visible .mmr-circle-inner {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

/* Clickable stat columns: POSITION opens the ladder, GAMES your games, PRIZE the
   payouts modal; FORMAT (upcoming) and the points caption open the Event Rules. */
.ec-stat.is-clickable {
    cursor: pointer;
    border-radius: 10px;
    outline: none;
    transition: background-color 0.15s ease;
}

.ec-stat.is-clickable:hover,
.ec-stat.is-clickable:focus-visible {
    background: rgba(255, 255, 255, 0.05);
}

.ec-stat.is-clickable:focus-visible {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.ec-stat-label--action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ec-cue {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.15s ease;
}

.ec-label-hover {
    display: none;
}

.ec-stat.is-clickable:hover .ec-cue,
.ec-stat.is-clickable:focus-visible .ec-cue {
    color: #fff;
}

@media (hover: hover) {
    .ec-stat.is-clickable:hover .ec-label-idle,
    .ec-stat.is-clickable:focus-visible .ec-label-idle {
        display: none;
    }

    .ec-stat.is-clickable:hover .ec-label-hover,
    .ec-stat.is-clickable:focus-visible .ec-label-hover {
        display: inline;
        color: #fff;
    }
}

.ec-caption-row {
    display: flex;
    min-width: 0;
}

/* "Interested" pill (upcoming STARTS IN column): members toggle it, and the
   total count is revealed once they are interested. */
button.ec-interest {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    margin: -3px 0 -2px;
    padding: 3px 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.82);
    font-family: 'URW Dock', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

button.ec-interest i {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.15s ease;
}

button.ec-interest:hover,
button.ec-interest:focus-visible {
    background: rgba(244, 1, 43, 0.16);
    box-shadow: inset 0 0 0 1px rgba(244, 1, 43, 0.7);
    color: #fff;
    outline: none;
}

button.ec-interest:hover i,
button.ec-interest:focus-visible i {
    color: #f4012b;
}

button.ec-interest:active {
    transform: scale(0.96);
}

button.ec-interest.is-on {
    background: rgba(46, 204, 113, 0.2);
    box-shadow: inset 0 0 0 1px rgba(46, 204, 113, 0.85);
    color: #fff;
}

button.ec-interest.is-on i {
    color: #2ecc71;
}

/* Keep the success green on hover/focus instead of the default red */
button.ec-interest.is-on:hover,
button.ec-interest.is-on:focus-visible {
    background: rgba(46, 204, 113, 0.28);
    box-shadow: inset 0 0 0 1px rgba(46, 204, 113, 0.95);
    color: #fff;
}

button.ec-interest.is-on:hover i,
button.ec-interest.is-on:focus-visible i {
    color: #2ecc71;
}

button.ec-interest.is-locked {
    color: rgba(255, 255, 255, 0.55);
}

button.ec-interest.is-locked[aria-disabled="true"] {
    cursor: not-allowed;
}

button.ec-interest.is-locked[aria-disabled="true"]:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.55);
}

button.ec-interest.is-locked[aria-disabled="true"]:hover i {
    color: rgba(255, 255, 255, 0.55);
}

button.ec-interest.is-busy {
    opacity: 0.6;
    pointer-events: none;
}

button.ec-rules-trigger {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color 0.15s ease;
}

/* Icon as a pseudo-element so it never wraps away from the last word */
.ec-info-text::after {
    content: "\f05a";
    margin-left: 4px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.15s ease;
}

button.ec-rules-trigger:hover,
button.ec-rules-trigger:focus-visible,
button.ec-rules-trigger:hover .ec-info-text::after,
button.ec-rules-trigger:focus-visible .ec-info-text::after,
.ec-stat--format.is-clickable:hover .ec-info-text::after,
.ec-stat--format.is-clickable:focus-visible .ec-info-text::after {
    color: #fff;
    outline: none;
}

/* ── Upcoming state: countdown / prize pool / format + actions ── */
.ec-progress.is-countdown {
    direction: rtl; /* depletes toward the right edge as the start approaches */
}

.ec-progress.is-countdown .ec-progress-fill {
    background: rgba(255, 255, 255, 0.55);
}

.ec-progress.is-soon .ec-progress-fill {
    background: #ffb020;
}

.ec-value.ec-clock {
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.ec-value.ec-clock.is-soon {
    color: #ffb020;
}

/* ── Event Card demo mode (staff/DEBUG only) ── */
.ec-demo-badge {
    position: absolute;
    top: 0;
    right: 18px;
    z-index: 5;
    padding: 2px 10px 3px;
    border-radius: 0 0 6px 6px;
    background: #7c4dff;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.3;
    text-transform: uppercase;
    pointer-events: auto;
    cursor: help;
}

.event-card.is-demo {
    border-color: rgba(124, 77, 255, 0.55);
}

.ec-demo-switcher {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 10px;
    border: 1px solid rgba(124, 77, 255, 0.6);
    border-radius: 10px;
    background: rgba(15, 12, 24, 0.94);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 12px;
}

.ec-demo-switcher-label {
    margin: 0;
    color: #b9a2ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ec-demo-switcher-select {
    max-width: 220px;
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: #1a1622;
    color: #fff;
    font-size: 12px;
}

.ec-demo-switcher-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.ec-demo-switcher-link:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .ec-demo-switcher {
        left: 8px;
        bottom: 8px;
        right: auto;
        max-width: calc(100vw - 16px);
    }

    .ec-demo-switcher-label {
        font-size: 0;
    }

    .ec-demo-switcher-label i {
        font-size: 12px;
    }

    .ec-demo-switcher-select {
        max-width: 170px;
    }
}

/* Premium pill inside the PRIZE value row: what Premium would pay at this finish.
   Sits beside the amount when it fits and wraps underneath it in narrow columns,
   so the amount itself is never truncated. */
.ec-value-wrap.has-pill {
    flex-wrap: wrap;
    gap: 4px 8px;
    height: auto;
    min-height: 32px;
    overflow: visible;
}

.ec-value-wrap .ec-premium-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.08);
    color: #ffd700;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ec-value-wrap .ec-premium-pill i {
    font-size: 9px;
}

.ec-value-wrap .ec-premium-pill:hover,
.ec-value-wrap .ec-premium-pill:focus-visible {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.18);
    color: #ffd700;
    outline: none;
}

/* Games modal: rows mirror /ranking's games modal (profile.css .match-row), scoped here */
.ban-prefs-flyout.ec-breakdown-flyout.ec-games-flyout {
    width: min(720px, calc(100vw - 32px));
    max-width: 720px;
}

.ec-games-state {
    padding: 1.25rem 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.ec-games-state.is-error {
    color: #ef4444;
}

.ec-games-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ec-games-list .match-row {
    position: relative;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 40px auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid #444;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
    color: inherit;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.ec-games-list .match-row:not([href]) {
    cursor: default;
}

.ec-games-list .match-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 100%;
    background-image: var(--map-bg);
    background-size: cover;
    background-position: center;
    -webkit-mask-image: linear-gradient(to right, black 0%, black 75%, transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black 75%, transparent 100%);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.ec-games-list .match-row > * {
    position: relative;
    z-index: 1;
}

.ec-games-list .match-row:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(180deg, rgba(34, 34, 34, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
}

.ec-games-list .match-row.win { border-left-color: #4ade80; background: rgba(74, 222, 128, 0.05); }
.ec-games-list .match-row.top3 { border-left-color: #fbbf24; background: rgba(251, 191, 36, 0.05); }
.ec-games-list .match-row.top5 { border-left-color: #60a5fa; background: rgba(96, 165, 250, 0.05); }

.ec-games-list .match-row.not-counting {
    opacity: 0.5;
}

.ec-games-list .match-placement {
    text-align: center;
}

.ec-games-list .placement-num {
    font-family: 'Apex', sans-serif;
    font-size: 1.25rem;
    font-weight: bold;
    color: #888;
}

.ec-games-list .match-row.win .placement-num { color: #4ade80; }
.ec-games-list .match-row.top3 .placement-num { color: #fbbf24; }
.ec-games-list .match-row.top5 .placement-num { color: #60a5fa; }

.ec-games-list .match-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ec-games-list .match-date {
    font-size: 0.85rem;
    color: #fff;
    white-space: nowrap;
}

.ec-games-list .match-reason {
    font-size: 0.7rem;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ec-games-list .match-legend-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-games-list .legend-icon {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.ec-games-list .match-stats {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.ec-games-list .match-stat {
    min-width: 40px;
    text-align: center;
}

.ec-games-list .stat-num {
    display: block;
    font-family: 'Apex', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
}

.ec-games-list .stat-type {
    display: block;
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
}

.ec-games-list .match-stat.points .stat-num { color: #4ade80; }
.ec-games-list .match-stat.points .stat-num.negative { color: #ef4444; }

.ec-games-toggle {
    margin-top: 0.75rem;
    text-align: center;
}

.ec-games-toggle button {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.ec-games-toggle button:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

@media (max-width: 600px) {
    .ec-games-list .match-row {
        grid-template-columns: 36px minmax(0, 1fr) 28px;
        gap: 0.5rem;
        padding: 0.6rem 0.75rem;
    }

    .ec-games-list .match-stats {
        grid-column: 1 / -1;
        justify-content: space-between;
        gap: 0.25rem;
    }

    .ec-games-list .match-row::before {
        width: 60%;
    }

    .ec-games-list .legend-icon {
        width: 22px;
        height: 22px;
    }
}

/* Prize breakdown modal (teleported to <body>) */
.ban-prefs-flyout.ec-breakdown-flyout {
    min-width: 0;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.ec-breakdown-sub {
    margin-bottom: 0.75rem;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.ec-breakdown-flyout .is-money {
    color: #ffd700;
}

.ec-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.ec-breakdown-table th,
.ec-breakdown-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ec-breakdown-table thead th {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.ec-breakdown-table tbody th {
    font-family: 'Apex', sans-serif;
    font-weight: normal;
    color: #fff;
    white-space: nowrap;
}

.ec-breakdown-table td {
    color: rgba(255, 255, 255, 0.85);
}

.ec-breakdown-table .is-premium-col {
    color: #ffd700;
}

.ec-breakdown-table thead .is-premium-col {
    color: rgba(255, 215, 0, 0.75);
}

.ec-breakdown-table tr.is-you {
    background: rgba(244, 1, 43, 0.1);
}

/* Event Rules popover: chrome + scoring panel come from partials/scoring_modal_styles.html
   (.play-tools-flyout--scoring, same as /ranking); the extra sections are styled in
   partials/event_rules_styles.html (shared with the /schedule event modal). */
.ec-rules-flyout .ec-rules-val.is-money {
    color: #ffd700;
}

/* Small muted text button: "Event rules ›" in the games header, "View payouts ›" */
.ec-flyout-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ec-head-link {
    padding: 4px 2px;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease;
}

.ec-head-link:hover,
.ec-head-link:focus-visible {
    color: #fff;
    outline: none;
}

.ec-you-tag {
    margin-left: 6px;
    padding: 1px 5px;
    border-radius: 3px;
    background: #f4012b;
    font-family: inherit;
    font-size: 9px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    vertical-align: middle;
}

.ec-breakdown-cta {
    display: inline-block;
    margin-top: 0.85rem;
}
/* Info links row — ultra-thin dedicated flex row under promo-strip.
   Replaces the former absolute-positioned tooltips that hung below the
   promo-strip with a proper flow container that won't interfere with
   the promo-strip grid proportions. */
.promo-info-links-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: calc(330px * 3 + 1.25rem * 2);
    width: 100%;
    box-sizing: border-box;
    margin: 0.35rem auto 0 auto;
    padding: 0 0.75rem;
    min-height: 1.2rem;
}

.promo-box.map-comms-promo:hover {
    color: #fff;
    text-decoration: none;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

/* Rank Progress Box */
.promo-box.rank-progress-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible !important;
}
.promo-box.rank-progress-box:hover {
    border-color: transparent;
    transform: none;
}

.rank-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rank-score-slide .rank-progress-header {
    margin-bottom: 0.24rem;
}

.rank-badge-display .rank-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f4012b 0%, #c0011f 100%);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-family: 'Apex', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.rank-score-slide .rank-badge-display .rank-tag {
    padding: 0.24rem 0.56rem;
    border-radius: 5px;
    font-size: 0.66rem;
    letter-spacing: 0.42px;
}

.rank-badge-display .rank-tag.unranked {
    background: linear-gradient(135deg, #444 0%, #333 100%);
    color: #888;
}

.points-display {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.points-display .current-points {
    font-family: 'Apex', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.points-display .points-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
}

.rank-progress-bar {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.progress-track {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: visible;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f4012b 0%, #ff4466 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid #f4012b;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(244, 1, 43, 0.4);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #555;
    position: relative;
}

.play-points-info-container {
    position: absolute;
    left: 0;
    top: calc(100% + 0.28rem);
    z-index: 4;
}

.play-scoring-info-link,
.play-match-howto-link,
.mmr-float-info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #888;
    text-decoration: none;
    font-family: 'URW Dock', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    transition: color 0.2s ease;
    cursor: pointer;
}

.play-scoring-info-link:hover,
.play-scoring-info-link:focus-visible,
.play-match-howto-link:hover,
.play-match-howto-link:focus-visible,
.mmr-float-info-link:hover,
.mmr-float-info-link:focus-visible {
    color: #fff;
    background: transparent;
    outline: none;
}

.play-scoring-info-icon,
.play-match-howto-icon,
.mmr-float-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(244, 1, 43, 0.15);
    color: #f4012b;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.play-scoring-info-text,
.play-match-howto-text,
.mmr-float-info-text {
    white-space: nowrap;
}
/* View Rankings Button */
.view-rankings-btn {
    text-decoration: none;
    width: 100%;
    align-self: stretch;
    margin-top: 0.25rem;
}

.rank-score-slide .view-rankings-btn {
    margin-top: auto;
    transform: translateY(6px);
}

.view-rankings-btn:hover {
    text-decoration: none;
}


.view-rankings-btn i {
    font-size: 0.65rem;
}

.promo-box.rank-progress-box.promo-slider-box {
    display: grid;
    align-items: stretch;
    justify-items: stretch;
    gap: 0;
    min-height: 99px;
    padding: 0.5625rem 1rem 0.54rem;
    position: relative;
}

/* Anchor-wrapped slides must participate in the grid stacking */
.promo-box.rank-progress-box a.promo-slide {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1;
}

/* ── Slide Navigation Dots ── */
.promo-slide-nav {
    position: absolute;
    bottom: 0.35rem;
    right: 0.75rem;
    display: flex;
    gap: 0.35rem;
    z-index: 11;
}

.promo-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.promo-slide-dot:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.25);
}

.promo-slide-dot.is-active {
    width: 22px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.35);
}

.promo-slide-dot.is-active:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.38);
}

.rank-score-slide,
.lobby-bands-slide,
.party-blockers-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-height: 78px;
}

.rank-score-slide {
    position: relative;
    padding-top: 0.28rem;
    padding-bottom: 0.55rem;
}

.lobby-bands-slide,
.party-blockers-slide {
    position: relative;
    z-index: 0;
    padding-bottom: 0.5rem;
}

.lobby-bands-slide {
    padding-top: 0.28rem;
}

.rank-ladder-season-label {
    position: absolute;
    top: calc(0.08rem - 10px);
    left: 0.08rem;
    right: auto;
    max-width: 52%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    font-family: 'Apex', sans-serif;
    font-size: 0.5rem;
    letter-spacing: 0.65px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.rank-ladder-season-rankings-link {
    position: absolute;
    top: calc(0.08rem - 11px);
    right: 0.08rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.14rem 0.38rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.76);
    font-family: 'Apex', sans-serif;
    font-size: 0.46rem;
    letter-spacing: 0.45px;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 2;
}

.rank-ladder-season-rankings-link:hover,
.rank-ladder-season-rankings-link:focus-visible {
    color: #fff;
    border-color: rgba(244, 1, 43, 0.6);
    background: rgba(244, 1, 43, 0.14);
    text-decoration: none;
    outline: none;
}

.lobby-bands-slide::before {
    content: '';
    position: absolute;
    inset: -0.75rem -1rem -0.72rem;
    z-index: -1;
    background: none;
    opacity: 0;
}

.party-blockers-slide::before {
    content: '';
    position: absolute;
    inset: -0.75rem -1rem -0.72rem;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 20%, rgba(244, 1, 43, 0.14), transparent 34%),
        radial-gradient(circle at 90% 85%, rgba(59, 130, 246, 0.12), transparent 34%);
    opacity: 0.9;
}

.lobby-bands-header,
.party-blockers-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.lobby-bands-header p,
.party-blockers-header p {
    margin: 0.16rem 0 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.62rem;
    line-height: 1.15;
}

.lobby-bands-status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.45rem;
    border: 1px solid rgba(244, 1, 43, 0.32);
    border-radius: 999px;
    background: rgba(244, 1, 43, 0.1);
    color: #ff8aa0;
    font-family: 'Apex', sans-serif;
    font-size: 0.5rem;
    letter-spacing: 0.7px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.lobby-band-list {
    display: grid;
    gap: 0.26rem;
}

.lobby-band-row {
    display: grid;
    grid-template-columns: 1fr minmax(0, auto);
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.28rem 0.42rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.lobby-band-copy {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.lobby-band-name {
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.65px;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: normal;
    word-break: break-word;
}

.lobby-band-range {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.54rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lobby-band-icons,
.open-lobby-band-track {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.24rem;
    min-width: 0;
}
.lobby-band-icons {
    overflow: visible;
}
.lobby-band-row {
    overflow: visible;
}

.open-lobby-band-track {
    justify-content: center;
    padding: 0.32rem 0.18rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
}

.rank-ladder-track {
    width: 100%;
    gap: 0;
    padding: 0 0.25rem 0.05rem;
}

.lobby-rank-chip {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #0d0d0d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.lobby-rank-chip img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
}

.lobby-rank-chip.tier-1 { border-color: rgba(156, 163, 175, 0.35); }
.lobby-rank-chip.tier-2 { border-color: rgba(34, 197, 94, 0.35); }
.lobby-rank-chip.tier-3 { border-color: rgba(59, 130, 246, 0.35); }
.lobby-rank-chip.tier-4 { border-color: rgba(168, 85, 247, 0.38); }
.lobby-rank-chip.tier-5 { border-color: rgba(249, 115, 22, 0.42); }
.lobby-rank-chip.tier-6 { border-color: rgba(244, 1, 43, 0.42); }
/* ── User's current rank highlight on lobby bands slide ────────────── */
.lobby-rank-chip.is-user-tier {
    transform: scale(1.18);
    z-index: 2;
}
.lobby-rank-chip.is-user-tier::after {
    content: 'You';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1px 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.42rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(4px);
}
.lobby-rank-chip.is-user-tier.tier-1 {
    border-color: rgba(156, 163, 175, 0.95);
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.2), 0 0 10px rgba(156, 163, 175, 0.45);
}
.lobby-rank-chip.is-user-tier.tier-2 {
    border-color: rgba(34, 197, 94, 0.95);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2), 0 0 10px rgba(34, 197, 94, 0.5);
}
.lobby-rank-chip.is-user-tier.tier-3 {
    border-color: rgba(59, 130, 246, 0.95);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2), 0 0 10px rgba(59, 130, 246, 0.5);
}
.lobby-rank-chip.is-user-tier.tier-4 {
    border-color: rgba(168, 85, 247, 0.95);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2), 0 0 12px rgba(168, 85, 247, 0.55);
}
.lobby-rank-chip.is-user-tier.tier-5 {
    border-color: rgba(249, 115, 22, 0.95);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2), 0 0 12px rgba(249, 115, 22, 0.55);
}
.lobby-rank-chip.is-user-tier.tier-6 {
    border-color: rgba(244, 1, 43, 0.95);
    box-shadow: 0 0 0 2px rgba(244, 1, 43, 0.2), 0 0 14px rgba(244, 1, 43, 0.6);
}

.rank-ladder-chip {
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    transition: opacity 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.rank-ladder-chip img {
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.rank-ladder-chip:hover img {
    transform: scale(1.22);
    filter: brightness(1.15);
}

.rank-ladder-chip.is-past {
    opacity: 1;
}

.rank-ladder-chip.is-past img {
    filter: saturate(0.5) brightness(0.92);
}

.rank-ladder-chip.is-current,
.rank-ladder-chip.is-user-tier {
    opacity: 1;
    transform: none;
    z-index: 3;
    filter: none;
    box-shadow: none !important;
}

.rank-ladder-chip.is-user-tier::after {
    display: none;
}

.rank-ladder-chip.is-future {
    opacity: 0.85;
    filter: saturate(1.1) brightness(1.05);
    box-shadow: none;
}

.rank-ladder-chip-label {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Apex', sans-serif;
    font-size: 0.47rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
    line-height: 1;
    white-space: nowrap;
    padding: 2px 6px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.rank-ladder-chip-label.tier-1  { color: #9ca3af; }
.rank-ladder-chip-label.tier-2  { color: #22c55e; }
.rank-ladder-chip-label.tier-3  { color: #3b82f6; }
.rank-ladder-chip-label.tier-4  { color: #a855f7; }
.rank-ladder-chip-label.tier-5  { color: #f97316; }
.rank-ladder-chip-label.tier-6  { color: #ef4444; }

.rank-ladder-chip-mmr {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'URW Dock', sans-serif;
    font-size: 0.52rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.01em;
    margin-top: 2px;
    line-height: 1;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.38);
    z-index: -1;
}

.rank-ladder-segment {
    position: relative;
    flex: 1 1 26px;
    min-width: 14px;
    height: 5px;
    overflow: visible;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 -16px;
    z-index: -1;
}

.rank-ladder-segment-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--segment-progress, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tier-color-start, #c00020), var(--tier-color-end, #f4012b));
}

.rank-ladder-segment.is-complete .rank-ladder-segment-fill {
    background: linear-gradient(90deg, var(--tier-color-start, rgba(180, 0, 28, 0.9)), var(--tier-color-end, rgba(244, 1, 43, 0.95)));
    opacity: 0.82;
}

.rank-ladder-segment.is-current {
    z-index: 2;
}

.rank-ladder-segment.is-current .rank-ladder-segment-fill {
    background: linear-gradient(90deg, var(--tier-color-start, #f4012b), var(--tier-color-end, #ff6a88));
    animation: rank-seg-pulse 2.2s ease-in-out infinite;
}

/* ── Circular progress node at fill tip ─────────────────────────────── */
.rank-ladder-segment.is-current .rank-ladder-segment-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--tier-color-start, #f4012b);
    box-shadow: 0 0 6px var(--tier-glow, rgba(244, 1, 43, 0.7)), 0 0 14px rgba(244, 1, 43, 0.35);
    z-index: 2;
}

/* Hide the node when very close to the next tier (avoids bunching) */
.rank-ladder-segment.is-current.is-near-border .rank-ladder-segment-fill::after {
    display: none;
}

/* ── MMR number tooltip under the current progress node ────────────── */
.rank-ladder-segment-mmr {
    position: absolute;
    top: calc(100% + 14px);
    left: var(--segment-progress, 50%);
    transform: translate(-50%, -4px);
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-family: 'URW Dock', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}

.rank-ladder-segment-mmr::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -5px;
    width: 8px;
    height: 8px;
    transform: translateX(-50%) rotate(45deg);
    background: #000;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

/* Show tooltip on hover of the current segment (includes the node area) */
.rank-ladder-segment.is-current:hover .rank-ladder-segment-mmr {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Also show tooltip when hovering anywhere on the rank ladder track */
.rank-ladder-track:hover .rank-ladder-segment-mmr {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Invisible hover zone overlay so the thin bar is easier to target */
.rank-ladder-segment.is-current::before {
    content: '';
    position: absolute;
    inset: -6px 0;
    z-index: 0;
    pointer-events: auto;
}

@keyframes rank-seg-pulse {
    0%, 100% { box-shadow: 0 0 3px var(--tier-glow, rgba(244, 1, 43, 0.5)); }
    50%       { box-shadow: 0 0 7px var(--tier-glow, rgba(244, 1, 43, 0.9)); }
}

.rank-ladder-segment.is-future {
    background: rgba(255, 255, 255, 0.08);
}
.rank-ladder-segment.is-future .rank-ladder-segment-fill {
    box-shadow: none;
    background: transparent;
}

/* ── Tier-colored segment fills (colored by STARTING tier) ──────────── */
/* tier-1 (Rookie) → gray/silver */
.rank-ladder-segment.from-tier-1 {
    --tier-color-start: #4b5563;
    --tier-color-end:   #9ca3af;
    --tier-glow:        rgba(156, 163, 175, 0.7);
    --tier-track-bg:    rgba(156, 163, 175, 0.06);
}
/* tier-2 (Contender) → green */
.rank-ladder-segment.from-tier-2 {
    --tier-color-start: #16a34a;
    --tier-color-end:   #4ade80;
    --tier-glow:        rgba(34, 197, 94, 0.75);
    --tier-track-bg:    rgba(34, 197, 94, 0.06);
}
/* tier-3 (Challenger) → blue */
.rank-ladder-segment.from-tier-3 {
    --tier-color-start: #1d4ed8;
    --tier-color-end:   #60a5fa;
    --tier-glow:        rgba(59, 130, 246, 0.75);
    --tier-track-bg:    rgba(59, 130, 246, 0.06);
}
/* tier-4 (Elite) → purple */
.rank-ladder-segment.from-tier-4 {
    --tier-color-start: #7c3aed;
    --tier-color-end:   #c084fc;
    --tier-glow:        rgba(168, 85, 247, 0.75);
    --tier-track-bg:    rgba(168, 85, 247, 0.06);
}
/* tier-5 (Master) → orange */
.rank-ladder-segment.from-tier-5 {
    --tier-color-start: #c2410c;
    --tier-color-end:   #fb923c;
    --tier-glow:        rgba(249, 115, 22, 0.75);
    --tier-track-bg:    rgba(249, 115, 22, 0.06);
}
/* tier-6 (Predator) → red */
.rank-ladder-segment.from-tier-6 {
    --tier-color-start: #9f0013;
    --tier-color-end:   #f4012b;
    --tier-glow:        rgba(244, 1, 43, 0.75);
    --tier-track-bg:    rgba(244, 1, 43, 0.06);
}

/* ── MMR Readout ───────────────────────────────────────────────────────────── */
/* .rank-mmr-readout removed - tier bar is now a direct flex child */

.rank-mmr-stat {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
}

.rank-mmr-stat--next {
    text-align: right;
}

.rank-mmr-stat-value {
    font-family: 'Apex', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.4px;
    line-height: 1;
}

.rank-mmr-unit {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.rank-mmr-gap-value {
    color: #f4012b;
}

.rank-mmr-max-value {
    color: #ffd700;
}

.rank-mmr-stat-label {
    font-size: 0.52rem;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    letter-spacing: 0.75px;
    line-height: 1;
}

.rank-mmr-current-value {
    color: var(--current-tier-color, #fff);
}

.rank-mmr-tier-bar.tier-1 { --current-tier-color: #9ca3af; }
.rank-mmr-tier-bar.tier-2 { --current-tier-color: #4ade80; }
.rank-mmr-tier-bar.tier-3 { --current-tier-color: #60a5fa; }
.rank-mmr-tier-bar.tier-4 { --current-tier-color: #c084fc; }
.rank-mmr-tier-bar.tier-5 { --current-tier-color: #fb923c; }
.rank-mmr-tier-bar.tier-6 { --current-tier-color: #f4012b; }

/* Reduce tier-1 top gap so the ladder track appears slightly lower. */
.rank-mmr-tier-bar.tier-1 {
  padding-top: 0.14rem;
}

/* ── Tier progression bar (between MMR stats) ── */
.rank-mmr-tier-bar {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 0.3rem calc(0.25rem + 8%) 1rem;
}

.rank-mmr-tier-bar-track {
  position: relative;
  flex: 1;
  height: 2px;
  border-radius: 1px;
  background: rgba(255,255,255,0.08);
  overflow: visible;
  margin: 0 -13.5px;
  z-index: 1;
}

.rank-mmr-tier-bar-end {
  flex-shrink: 0;
  position: relative;
  width: 27px;
  height: 27px;
  z-index: 2;
}

/* end--current and end--next positioning handled by flex order */

.rank-mmr-tier-bar-end img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
  margin: auto;
}

.rank-mmr-tier-bar-end--current img {
  opacity: 0.9;
  filter: saturate(0.85) brightness(0.95);
}

.rank-mmr-tier-bar-end--next img {
  opacity: 1;
  filter: none;
}

.rank-mmr-tier-bar-label {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-align: center;
}

.rank-mmr-tier-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: 2px;
  background: var(--tier-bar-fill-color, rgba(255,255,255,0.5));
  transition: width 0.6s ease;
}

.rank-mmr-fill-node {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--current-tier-color, rgba(255,255,255,0.7));
  box-shadow: 0 0 5px var(--current-tier-color, rgba(255,255,255,0.4));
  z-index: 3;
}

.rank-mmr-fill-node-label {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.57rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  letter-spacing: 0.3px;
  line-height: 1;
}


/* Fill colors keyed to current tier (first part of gradient = current tier color) */
.rank-mmr-tier-bar-track.tier-1-to-2 .rank-mmr-tier-bar-fill { background: linear-gradient(90deg, #9ca3af, #4ade80); }
.rank-mmr-tier-bar-track.tier-2-to-3 .rank-mmr-tier-bar-fill { background: linear-gradient(90deg, #4ade80, #60a5fa); }
.rank-mmr-tier-bar-track.tier-3-to-4 .rank-mmr-tier-bar-fill { background: linear-gradient(90deg, #60a5fa, #c084fc); }
.rank-mmr-tier-bar-track.tier-4-to-5 .rank-mmr-tier-bar-fill { background: linear-gradient(90deg, #c084fc, #fb923c); }
.rank-mmr-tier-bar-track.tier-5-to-6 .rank-mmr-tier-bar-fill { background: linear-gradient(90deg, #fb923c, #f4012b); }

/* next-tier color per tier */
.rank-mmr-stat--next.tier-1 { --next-tier-color: #9ca3af; }
.rank-mmr-stat--next.tier-2 { --next-tier-color: #4ade80; }
.rank-mmr-stat--next.tier-3 { --next-tier-color: #60a5fa; }
.rank-mmr-stat--next.tier-4 { --next-tier-color: #c084fc; }
.rank-mmr-stat--next.tier-5 { --next-tier-color: #fb923c; }
.rank-mmr-stat--next.tier-6 { --next-tier-color: #f4012b; }

.rank-mmr-next-name {
  color: var(--next-tier-color, rgba(255,255,255,0.55));
  font-weight: 700;
  letter-spacing: 0.01em;
}

.rank-mmr-gap-value {
  color: var(--next-tier-color, rgba(255,255,255,0.85));
  font-weight: 700;
}

.rank-mmr-unit--gap {
  color: rgba(255,255,255,0.35);
  font-weight: 400;
}

/* ── "YOU" bubble direction per band row ───────────────────────────
   Top band row  → label floats ABOVE the rank chip
   Bottom band row → label stays BELOW (default ::after already handles this)
   ------------------------------------------------------------------ */
.lobby-band-row:first-child .lobby-rank-chip.is-user-tier::after {
    bottom: auto;
    top: -10px;
}

/* Give the first band row a touch of extra top padding so the
   "YOU" label above doesn't crowd the header */
.lobby-band-row:first-child {
    padding-top: 0.52rem;
}

.lobby-rank-chip.is-shared {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 14px rgba(255, 255, 255, 0.08);
}

.shared-rank-mark {
    position: absolute;
    right: -4px;
    top: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #f4012b;
    color: #fff;
    font-size: 0.5rem;
    font-weight: 800;
    line-height: 1;
}

.open-lobby-message,
.lobby-bands-footer,
.lobby-band-more {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.62rem;
    line-height: 1.18;
}

.lobby-bands-footer,
.lobby-band-more {
    color: rgba(255, 255, 255, 0.45);
}

.lobby-band-more {
    display: inline-flex;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.party-blockers-slide::before {
    background:
        radial-gradient(circle at 18% 18%, rgba(168, 85, 247, 0.14), transparent 34%),
        radial-gradient(circle at 90% 82%, rgba(244, 1, 43, 0.11), transparent 34%);
}

.party-blocker-grid {
    display: grid;
    gap: 0.18rem;
}

.party-blocker-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 0.38rem;
    min-width: 0;
    padding: 0.2rem 0.38rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
    overflow: visible;
}

.party-blocker-label {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Apex', sans-serif;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.55px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.party-blocker-track {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.22rem;
    min-width: 0;
    overflow: visible;
}

.party-blocker-chip.lobby-rank-chip {
    width: 24px;
    height: 24px;
    border-radius: 7px;
}

.party-blocker-chip.lobby-rank-chip img {
    width: 18px;
    height: 18px;
}

.party-blocker-chip.is-allowed {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.13), rgba(13, 13, 13, 0.96));
}

.party-blocker-chip.is-blocked {
    opacity: 0.34;
    filter: grayscale(0.85);
}

.party-blocker-chip.is-user-tier.is-blocked {
    opacity: 0.82;
    filter: grayscale(0.45);
}

.party-blocker-chip.lobby-rank-chip.is-user-tier::after {
    display: none;
}

.party-blocker-lock {
    position: absolute;
    right: -4px;
    bottom: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(244, 1, 43, 0.95);
    color: #fff;
    font-size: 0.42rem;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.party-blocker-row:first-child .lobby-rank-chip.is-user-tier::after {
    bottom: auto;
    top: -10px;
}

.party-blocker-row:first-child {
    padding-top: 0.44rem;
}

.rank-promo-dots {
    grid-column: 1;
    grid-row: 2;
    display: inline-flex;
    justify-content: center;
    gap: 0.32rem;
    position: relative;
    z-index: 2;
}

.rank-promo-dots button {
    width: 18px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
}

.rank-promo-dots button.is-active {
    width: 28px;
    background: #f4012b;
}

/* Prize Pool Box */
.promo-box.prize-pool-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.promo-box.prize-pool-box.promo-slider-box {
    display: grid;
    align-items: stretch;
    justify-items: stretch;
    gap: 0;
    min-height: 72px;
    position: relative;
    padding: 0;
}

/* ── Swap: Sponsorship showcase now lives in the always-visible bottom-right
   corner (where the queue counter used to sit). Sized slightly smaller than
   the original promo-strip column to match the footprint it replaces. */
.bottom-stats-wrapper .prize-pool-box.promo-slider-box--corner {
    width: 300px;
    min-height: 64px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-radius: 0;
    clip-path: polygon(
        0 0,
        calc(100% - var(--sponsor-cut, 18px)) 0,
        100% var(--sponsor-cut, 18px),
        100% 100%,
        var(--sponsor-cut, 18px) 100%,
        0 calc(100% - var(--sponsor-cut, 18px))
    );
}

.promo-slider-box .promo-slide {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.promo-slider-box .promo-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.promo-slider-box a.promo-slide {
    text-decoration: none;
    color: inherit;
}

.promo-slider-box a.promo-slide.is-active {
    cursor: pointer;
}

.map-comms-promo .promo-slide {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

/* Lobby bands slide inside the map-comms-promo box needs its own flex column
   layout and visible overflow (the ladder track extends beyond bounds). */
.map-comms-promo .lobby-bands-slide {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    overflow: visible;
    padding: 0.5625rem 1rem 0.54rem;
}

/* Map voting and legend bans displays — disabled (hidden but kept in DOM) */
.map-comms-promo .map-info-slide,
.map-comms-promo .legend-ban-reminder-slide {
    display: none !important;
}

.map-info-slide {
    justify-content: center;
}

.map-panels {
    position: absolute;
    inset: -1px;
    display: flex;
    overflow: hidden;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.45);
}

.map-panel {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    margin-left: -18px;
    background-color: #080808;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.62)), var(--map-image);
    background-blend-mode: normal, normal;
    background-position: center;
    background-size: cover;
    clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
}

.map-panel:first-child {
    margin-left: 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
}

.map-panel:last-child {
    clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%);
}

.map-panel:only-child {
    margin-left: 0;
    clip-path: none;
}

/* 4-map layout: tighter parallelogram overlap so all panels fit */
.map-panels--4 .map-panel {
    margin-left: -12px;
    clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.map-panels--4 .map-panel:first-child {
    margin-left: 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.map-panels--4 .map-panel:last-child {
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
}

.map-panels--4 .map-panel-name {
    font-size: 0.5rem;
}

.map-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0.62));
    opacity: 0.72;
}

.map-panel-name {
    display: none;
}

.map-info-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 0.26rem 0.75rem 1.01rem;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.35), transparent 70%);
    text-align: center;
    pointer-events: none;
}

.info-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

.info-kicker i {
    color: #f4012b;
    font-size: 0.65rem;
}

.info-title {
    margin: 0.18rem 0 0;
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.85);
}

.teammate-prefs-slide {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 0.8rem;
    box-sizing: border-box;
    padding: 0.65rem 1.1rem;
    background: radial-gradient(circle at 92% 82%, rgba(255, 255, 255, 0.08), transparent 36%);
}

.prefs-icon-stack {
    display: grid;
    grid-template-columns: repeat(2, 26px);
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prefs-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    padding: 0;
    transition: all 0.2s ease;
}

.prefs-icon:first-child {
    border: 1px solid rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
}

.prefs-icon:last-child {
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.12);
    color: rgba(147, 197, 253, 0.85);
}

.prefs-icon i {
    color: currentColor;
    font-size: 0.65rem;
}

.prefs-copy {
    min-width: 0;
    text-align: left;
}

.prefs-copy .info-title {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prefs-copy p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0.25rem 0 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    line-height: 1.2;
}

/* ── Teammate Preferences Controls Slide (Promo Box 1) ── */

.teammate-prefs-controls-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0.3rem;
    padding: 0.5rem 1rem 0.5rem;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.teammate-prefs-controls-slide.is-active {
    z-index: 5;
}

.teammate-prefs-controls-slide .rank-ladder-season-label {
    /* Override the absolute positioning from the base class —
       we want the label centered above the toggles. */
    position: static;
    left: auto;
    max-width: 100%;
    text-align: center;
    margin-bottom: 0.08rem;
    margin-top: -0.1rem;
}

.prefs-controls-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    align-items: center;
    /* Reserve space for the language column even when hidden,
       so toggling mic on/off doesn't shift the mic switch. */
}

.prefs-switch-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: center;
    min-height: 20px;  /* match toggle height so both columns stay aligned */
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.prefs-switch-group.prefs-switch-group--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.prefs-switch-label {
    font-family: 'URW Dock', sans-serif;
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    white-space: nowrap;
    transition: color 0.25s ease;
    flex-shrink: 0;
}

.prefs-switch-label.is-active-color {
    color: rgba(255, 255, 255, 0.82);
}

.prefs-switch-toggle {
    position: relative;
    width: 38px;
    height: 20px;
    border-radius: 10px;
    border: none;
    background: rgba(75, 85, 99, 0.55);
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    padding: 0;
    flex-shrink: 0;
    outline: none;
}

.prefs-switch-toggle:hover {
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.08);
}

.prefs-switch-toggle:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.prefs-switch-toggle.is-on {
    background: rgba(16, 185, 129, 0.55);
}

.prefs-switch-toggle--lang.is-on {
    background: rgba(59, 130, 246, 0.55);
}

.prefs-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.prefs-switch-toggle.is-on .prefs-switch-thumb {
    transform: translateX(18px);
}

/* ── Strike display — always visible, adapts to mic state ── */

.prefs-strikes {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding-top: 0.15rem;
    min-height: 22px;
    transition: opacity 0.3s ease;
}

/* Mic OFF / Locked: greyed out but still legible */
.prefs-strikes.is-inactive {
    opacity: 0.5;
    pointer-events: none;
}

.prefs-strikes.is-inactive .prefs-strike-dot {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.22);
    color: transparent;
}

/* Mic ON, clean slate: clearly visible outlined slots */
.prefs-strikes.is-active {
    opacity: 1;
}

.prefs-strikes.is-active .prefs-strike-dot {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    color: transparent;
}

.prefs-strikes-label {
    font-family: 'URW Dock', sans-serif;
    font-size: 0.48rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    flex-shrink: 0;
}

.prefs-strikes.is-active .prefs-strikes-label {
    color: rgba(255, 255, 255, 0.65);
}

.prefs-strikes-dots {
    display: flex;
    gap: 0.22rem;
    align-items: center;
}

.prefs-strike-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    color: transparent;
    font-size: 0.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Filled strike — red X on a subtle red fill for contrast */
.prefs-strikes.is-active .prefs-strike-dot.is-filled {
    background: rgba(239, 68, 68, 0.18);
    border-color: #ef4444;
    color: #ef4444;
}

/* Locked overlay */
.prefs-locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    border-radius: inherit;
    z-index: 10;
}

.prefs-locked-overlay i {
    font-size: 0.7rem;
    color: #f87171;
}

.prefs-locked-text {
    font-family: 'Apex', sans-serif;
    font-size: 0.48rem;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #f87171;
}

.lang-flag-inline {
    width: 13px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 1px;
}

.legend-ban-reminder-slide {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    align-content: center;
    gap: 0.28rem 0.65rem;
    box-sizing: border-box;
    padding: 0.5rem 0.75rem 0.42rem 0.9rem;
    background: transparent;
}

.legend-ban-copy,
.legend-ban-preview,
.legend-ban-promo-cta {
    position: relative;
    z-index: 1;
}

.legend-ban-copy {
    min-width: 0;
}

.legend-ban-copy .info-title {
    font-size: 0.9rem;
}


.legend-ban-preview {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.28rem;
    min-width: 92px;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
}

.legend-ban-preview.is-empty {
    min-width: auto;
}

.legend-ban-empty-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px dashed rgba(244, 1, 43, 0.45);
    border-radius: 10px;
    background: rgba(244, 1, 43, 0.08);
    color: rgba(248, 113, 113, 0.95);
}

.legend-ban-chip {
    position: relative;
    width: 38px;
    height: 42px;
    overflow: hidden;
    border: 1px solid rgba(244, 1, 43, 0.35);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
}

.legend-ban-chip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.86));
}

.legend-ban-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legend-ban-chip span {
    position: absolute;
    left: 3px;
    right: 3px;
    bottom: 3px;
    z-index: 1;
    color: #fff;
    font-size: 0.42rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 5px #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legend-ban-promo-cta {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    min-height: 16px;
    padding: 0.12rem 0.34rem;
    border: 1px solid rgba(244, 1, 43, 0.38);
    border-radius: 5px;
    background: linear-gradient(135deg, rgba(244, 1, 43, 0.16), rgba(244, 1, 43, 0.06));
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 0.48rem;
    letter-spacing: 0.35px;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.legend-ban-promo-cta:hover,
.legend-ban-promo-cta:focus-visible {
    border-color: rgba(244, 1, 43, 0.75);
    background: linear-gradient(135deg, rgba(244, 1, 43, 0.35), rgba(244, 1, 43, 0.14));
    outline: none;
}

.legend-ban-promo-cta i {
    font-size: 0.5rem;
}

.promo-slide-prize {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.promo-slide-prize.prize-modern-slide {
    position: relative;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    gap: 0.42rem;
    padding: 0;
}

.promo-slide-prize.prize-modern-slide::before {
    display: none;
}

.prize-modern-header,
.prize-modern-grid {
    position: relative;
    z-index: 1;
}

.prize-modern-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.prize-modern-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.76);
    font-family: 'Apex', sans-serif;
    font-size: 0.64rem;
    letter-spacing: 0.8px;
    line-height: 1;
    text-transform: uppercase;
}

.prize-modern-kicker i {
    color: #ffd700;
    font-size: 0.62rem;
}

.prize-modern-active {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.prize-modern-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.prize-modern-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.prize-modern-grid > .prize-modern-tile:only-child {
    grid-column: 1 / -1;
}

.prize-modern-tile {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 0.14rem 0.45rem;
    min-width: 0;
    min-height: 64px;
    padding: 0.46rem 0.55rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    cursor: default;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.prize-modern-tile::after {
    display: none;
}

.prize-modern-tile.active {
    transform: translateY(-1px);
}

.prize-modern-tile.standard.active {
    border-color: rgba(76, 175, 80, 0.55);
    background: rgba(255, 255, 255, 0.045);
}

.prize-modern-tile.premium.active {
    border-color: rgba(255, 215, 0, 0.58);
    background: rgba(255, 255, 255, 0.045);
}

.prize-modern-tile.premium-only {
    grid-template-columns: auto auto;
    justify-content: center;
    min-height: 72px;
    padding: 0.58rem 0.75rem;
    gap: 0.16rem 0.62rem;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    text-align: left;
}

.prize-modern-tile.premium-only .prize-modern-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.prize-modern-tile.premium-only .prize-modern-label {
    color: rgba(255, 255, 255, 0.72);
}

.prize-modern-tile.premium-only .prize-modern-amount {
    font-size: 1.22rem;
    color: #ffd700;
    text-shadow: 0 0 14px rgba(255, 215, 0, 0.18);
}

.prize-modern-tile.premium-only .prize-modern-extra {
    grid-column: 2;
}

.prize-modern-tile.upgrade-locked {
    cursor: pointer;
}

.prize-modern-icon,
.prize-modern-label,
.prize-modern-amount,
.prize-modern-extra {
    position: relative;
    z-index: 1;
}

.prize-modern-icon {
    grid-row: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
}

.prize-modern-tile.standard .prize-modern-icon {
    color: #4caf50;
}

.prize-modern-tile.premium .prize-modern-icon {
    color: #ffd700;
}

.prize-modern-label {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.55px;
    line-height: 1;
    text-transform: uppercase;
}

.prize-modern-amount {
    font-family: 'Apex', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.4px;
    line-height: 1;
}

.prize-modern-extra {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    min-width: 0;
    font-size: 0.58rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.35px;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
}

.prize-modern-extra .credit-icon {
    width: 13px;
    height: 13px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.24));
}

.prize-modern-extra.premium-extra {
    color: #fbbf24;
}

.prize-modern-extra.premium-extra i {
    font-size: 0.58rem;
    filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.4));
}

.prize-modern-tile.standard .prize-modern-amount {
    color: #6ee77b;
    text-shadow: 0 0 16px rgba(76, 175, 80, 0.22);
}

.prize-modern-tile.premium .prize-modern-amount {
    color: #ffd700;
    text-shadow: 0 0 16px rgba(255, 215, 0, 0.22);
}

.promo-slide-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    min-height: 100%;
    box-sizing: border-box;
    color: inherit;
    text-align: left;
    text-decoration: none;
}

.promo-slide-premium:hover {
    color: inherit;
    text-decoration: none;
}

.promo-slide-premium .promo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promo-slide-premium .promo-icon i {
    font-size: 1rem;
    color: #ffd700;
}

.promo-slide-premium .promo-content {
    flex: 1;
    min-width: 0;
}

.promo-slide-premium .promo-title {
    font-family: 'Apex', sans-serif;
    font-size: 0.78rem;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-slide-premium .promo-subtitle {
    font-size: 0.68rem;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-slide-premium:hover .upgrade-btn-mini {
    background: linear-gradient(135deg, #ffe44d 0%, #ffc933 100%);
    transform: scale(1.05);
}

.promo-slide-shareplay {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 100%;
    padding: 0.15rem 0.2rem 0.15rem 0.6rem;
    overflow: visible;
    color: inherit;
    text-align: left;
    text-decoration: none;
    border-radius: inherit;
}

.promo-slide-shareplay::before {
    display: none;
}

.promo-slide-shareplay:hover {
    color: inherit;
    text-decoration: none;
}

.promo-slide-shareplay:hover .shareplay-promo-cta {
    transform: translateX(2px) scale(1.04);
    box-shadow: 0 10px 24px rgba(241, 196, 15, 0.28);
}

.shareplay-promo-logo-wrap,
.shareplay-promo-content,
.shareplay-promo-cta {
    position: relative;
    z-index: 1;
}

.shareplay-promo-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border: 1px solid rgba(241, 196, 15, 0.32);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.52), rgba(34, 25, 0, 0.36));
    box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.05), 0 0 22px rgba(241, 196, 15, 0.16);
}

.shareplay-promo-logo {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 9px;
    filter: drop-shadow(0 0 10px rgba(241, 196, 15, 0.42));
}

.shareplay-promo-content {
    flex: 1 1 auto;
    min-width: 0;
}

.shareplay-promo-eyebrow {
    display: block;
    margin-bottom: 0.12rem;
    color: rgba(241, 196, 15, 0.78);
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.shareplay-promo-title {
    margin: 0 0 0.14rem;
    color: #ffd84d;
    font-family: 'Apex', sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0.7px;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(241, 196, 15, 0.2);
}

.shareplay-promo-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.25;
}

.shareplay-promo-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0.36rem 0.62rem;
    border: 1px solid rgba(241, 196, 15, 0.5);
    border-radius: 8px;
    background: linear-gradient(135deg, #f1c40f, #f59e0b);
    color: #1b1300;
    font-size: 0.58rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ── Sponsorship Promo Card (/play promo strip) ──────────────────────────
   Professional sponsor card layout + optional per-placement background image
   from SponsorPlacement.custom_image (admin: "Override the default graphic"). */
.promo-slide-sponsor {
    --sponsor-cut: 18px;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0;
    clip-path: polygon(
        0 0,
        calc(100% - var(--sponsor-cut)) 0,
        100% var(--sponsor-cut),
        100% 100%,
        var(--sponsor-cut) 100%,
        0 calc(100% - var(--sponsor-cut))
    );
    color: inherit;
    text-decoration: none;
    background-image: var(--sponsor-bg-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.promo-slide-sponsor::before {
    display: none;
}
.promo-slide-sponsor::after {
    display: none;
}
.promo-slide-sponsor:hover .sponsor-promo-cta {
    transform: translateX(2px) scale(1.04);
    box-shadow:
        0 8px 24px rgba(244, 1, 43, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}
.sponsor-promo-main,
.sponsor-promo-cta {
    position: relative;
    z-index: 1;
}
.sponsor-promo-main {
    flex: 1 1 auto;
    min-width: 0;
}
.sponsor-promo-header-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}
.sponsor-promo-logo-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.04), 0 0 22px rgba(0, 0, 0, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.sponsor-promo-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: none;
}
.sponsor-promo-content {
    min-width: 0;
}
.sponsor-promo-title {
    margin: 0;
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sponsor-promo-subtitle {
    display: inline-block;
    margin: 0.15rem 0 0;
    padding: 2px 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.4);
    max-width: 100%;
}
.sponsor-promo-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0.4rem 0.9rem;
    border: none;
    border-radius: 0;
    background: linear-gradient(135deg, #f4012b 0%, #d00124 50%, #a00020 100%);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow:
        0 4px 16px rgba(244, 1, 43, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    position: relative;
    --cta-corner-cut: 6px;
    clip-path: polygon(0 0, calc(100% - var(--cta-corner-cut)) 0, 100% var(--cta-corner-cut), 100% 100%, var(--cta-corner-cut) 100%, 0 calc(100% - var(--cta-corner-cut)));
    -webkit-clip-path: polygon(0 0, calc(100% - var(--cta-corner-cut)) 0, 100% var(--cta-corner-cut), 100% 100%, var(--cta-corner-cut) 100%, 0 calc(100% - var(--cta-corner-cut)));
}

.sponsor-promo-cta::after {
    display: none;
}
/* Premium "thanks" fallback slide reuses .promo-slide-premium styling and
   needs no upgrade button - just the crown + reassurance copy. */
.premium-thanks-slide .upgrade-btn-mini {
    display: none;
}
.prize-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
}

.prize-header i {
    color: #ffd700;
}

.prize-amount {
    font-family: 'Apex', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    transition: all 0.3s ease;
}

.prize-amount.free-amount {
    color: #4caf50;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.prize-amount.premium-amount {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Prize Pool Switch Styles */
.prize-pool-switches {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.prize-switch-group {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Free Group (Green) */
.prize-switch-group.free-group {
    border-color: rgba(76, 175, 80, 0.2);
}

.prize-switch-group.free-group.active {
    border-color: rgba(76, 175, 80, 0.6);
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.2);
}

/* Premium Group (Yellow) */
.prize-switch-group.premium-group {
    border-color: rgba(255, 215, 0, 0.2);
}

.prize-switch-group.premium-group.active {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

/* Switch Buttons Base */
.prize-switch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    min-width: 130px;
    height: 28px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    color: #555;
    border-radius: 6px;
}

.prize-switch-btn i {
    font-size: 0.65rem;
}

.prize-switch-btn:first-child {
    border-right: none;
}

.prize-switch-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Free Button Styles (Green) */
.prize-switch-btn.free:hover {
    color: rgba(76, 175, 80, 0.7);
}

.prize-switch-btn.free.active {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.prize-switch-btn.free.active i {
    color: #4caf50;
}

/* Premium Button Styles (Yellow) */
.prize-switch-btn.premium i {
    font-size: 0.65rem;
    color: inherit;
    transition: all 0.2s ease;
}

.prize-switch-btn.premium:hover {
    color: rgba(255, 215, 0, 0.7);
}

.prize-switch-btn.premium.active {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

.prize-switch-btn.premium.active i {
    color: #ffd700;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
}

.switch-label {
    line-height: 1;
}


/* ===== NOT ELIGIBLE STATE ===== */
.play-not-eligible {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.not-eligible-icon {
    width: 80px;
    height: 80px;
    background: rgba(244, 1, 43, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.not-eligible-icon i {
    font-size: 2rem;
    color: var(--bg-accent);
}

.not-eligible-title {
    font-family: 'Apex', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: var(--space-sm);
    letter-spacing: 2px;
}

.not-eligible-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.requirement-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--bg-accent);
}

.requirement-item i {
    color: var(--bg-accent);
}

.not-eligible-actions {
    display: flex;
    gap: var(--space-md);
}


/* ===== MATCH FOUND ===== */
.play-match-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    transition: all 0.3s ease;
}

.play-match-found.accepted-state {
    /* Subtle green glow when accepted */
}

/* Priority-Fill offer — deliberately distinct amber/orange theme so a recruit
   understands this is a fast, optional, jump-the-line offer (Phase 4). */
.play-match-found.priority-fill .match-found-title {
    color: #f39c12;
    text-shadow: 0 0 24px rgba(243, 156, 18, 0.55);
}
.play-match-found.priority-fill .match-found-title i {
    color: #f1c40f;
}
.play-match-found.priority-fill .timer-ring-progress {
    stroke: #f39c12;
}
.play-match-found.priority-fill .action-btn.accept {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-color: #f39c12;
    color: #1a1a1a;
}
.play-match-found.priority-fill .action-btn.accept:hover {
    background: linear-gradient(135deg, #f5b041 0%, #eb984e 100%);
}

/* Accepted/confirmed state inside Priority Fill overrides amber with green. */
.play-match-found.priority-fill.accepted-state .match-found-title,
.play-match-found.priority-fill.accepted-state .match-found-title i {
    color: #10b981;
    text-shadow: 0 0 24px rgba(16, 185, 129, 0.35);
}
.play-match-found.priority-fill.accepted-state .timer-ring-progress {
    stroke: #10b981;
}
.fill-band-chip {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 999px;
    background: rgba(243, 156, 18, 0.15);
    border: 1px solid rgba(243, 156, 18, 0.5);
    color: #f5b041;
    font-size: 0.85rem;
    font-weight: 600;
}

.match-found-timer {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: var(--space-xl);
    transition: all 0.3s ease;
}

.match-found-timer.accepted {
    width: 120px;
    height: 120px;
}

.match-found-timer.accepted .timer-ring-progress {
    stroke: #10b981;
}

.match-found-timer.accepted .timer-value {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.7);
}

.timer-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.timer-ring-progress {
    fill: none;
    stroke: var(--bg-accent);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 282.6;
    transition: stroke-dashoffset 1s linear;
}

.timer-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Apex', sans-serif;
    font-size: 3rem;
    color: #fff;
}

.match-found-title {
    font-family: 'Apex', sans-serif;
    font-size: 2.5rem;
    color: var(--bg-accent);
    margin-bottom: var(--space-sm);
    letter-spacing: 3px;
    animation: pulse 1s infinite;
}

.match-found-title.accepted-title {
    color: #10b981;
    animation: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.match-found-title.accepted-title i {
    font-size: 2rem;
}

.match-found-title.finalizing-title {
    color: #f59e0b;
    animation: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.match-found-title.finalizing-title i {
    font-size: 2rem;
}

.match-found-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.match-found-subtitle.waiting-subtitle {
    color: rgba(16, 185, 129, 0.8);
}

.match-found-subtitle.waiting-subtitle--urgent {
    color: rgba(239, 68, 68, 0.9);
}

.match-found-subtitle.finalizing-subtitle {
    color: rgba(245, 158, 11, 0.9);
    font-weight: 500;
}

/* Accept Progress Bar */
.accept-progress-container {
    width: 100%;
    max-width: 400px;
    margin-bottom: var(--space-xl);
}

.accept-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.accept-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.accept-progress-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

.accept-progress-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1.2rem;
}

.accept-progress-text .accepted-count {
    font-family: 'Apex', sans-serif;
    font-size: 1.5rem;
    color: #10b981;
    font-weight: 700;
}

.accept-progress-text .progress-separator {
    color: rgba(255,255,255,0.4);
}

.accept-progress-text .total-count {
    font-family: 'Apex', sans-serif;
    font-size: 1.5rem;
    color: #fff;
}

.accept-progress-text .progress-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 8px;
}

.accepted-hint {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-top: var(--space-md);
}

.match-found-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.match-found-actions .action-btn {
    min-width: 200px;
}

/* ===== IN MATCH ===== */
.play-in-match {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
}

.match-main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) 0;
}

/* In-match player card variant */
.player-card-main.in-match {
    border-color: #10b981;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.player-card-main.in-match .player-card-glow {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

.player-card-main.in-match .avatar-ring {
    border-color: #10b981;
}

.you-badge-card {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: #10b981;
    color: #fff;
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Filled teammate slots */
.teammate-slot.filled {
    opacity: 1;
    border-style: solid;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.slot-avatar.filled {
    background: transparent;
    overflow: hidden;
}

.slot-avatar.filled img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slot-name {
    font-family: 'Apex', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    text-align: center;
    letter-spacing: 0.5px;
}

.slot-apex {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ===== SIGNUP REQUIRED MODAL (matches simple disconnect modal styling) ===== */
.play-signup-required-modal.reset-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.play-signup-required-modal > .reset-modal-content {
    min-width: 380px;
    max-width: 600px;
    width: 100%;
    background: linear-gradient(165deg, rgba(26, 26, 26, 0.98) 0%, rgba(13, 13, 13, 0.99) 50%, rgba(8, 8, 8, 1) 100%);
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.play-signup-required-modal .simple-disconnect-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.play-signup-required-modal .simple-disconnect-title {
    font-family: 'Apex', sans-serif;
    font-size: 0.75rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.play-signup-required-modal .simple-disconnect-title i {
    color: #f4012b;
    font-size: 0.65rem;
}

.play-signup-required-modal .simple-disconnect-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.play-signup-required-modal .simple-disconnect-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #666;
}

.play-signup-required-modal .simple-disconnect-subtitle {
    color: #8b8b8b;
    font-size: 0.78rem;
    margin: 0 0 0.75rem;
    text-align: left;
}

.play-signup-required-modal .simple-disconnect-info {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    text-align: left;
}

.play-signup-required-modal .simple-disconnect-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
}

.play-signup-required-modal .simple-disconnect-btn-cancel,
.play-signup-required-modal .simple-disconnect-btn-danger {
    font-family: 'Apex', sans-serif;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.play-signup-required-modal .simple-disconnect-btn-cancel {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
}

.play-signup-required-modal .simple-disconnect-btn-cancel:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #aaa;
}

.play-signup-required-modal .simple-disconnect-btn-danger {
    background: linear-gradient(135deg, rgba(244, 1, 43, 0.15), rgba(244, 1, 43, 0.25));
    border: 1px solid rgba(244, 1, 43, 0.3);
    color: #f4012b;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.play-signup-required-modal .simple-disconnect-btn-danger:hover {
    background: linear-gradient(135deg, rgba(244, 1, 43, 0.25), rgba(244, 1, 43, 0.4));
    color: #fff;
}

/* PlaySafe required modal: cyan theme + larger readable text */
.play-signup-required-modal.playsafe-required-modal.reset-modal-overlay {
    background: rgba(2, 10, 14, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.play-signup-required-modal.playsafe-required-modal > .reset-modal-content {
    min-width: 440px;
    max-width: 700px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.97) 0%, rgba(13, 13, 13, 1) 100%);
    border: 1px solid rgba(45, 231, 255, 0.36);
    border-radius: 20px;
    padding: 1.45rem 1.55rem 1.35rem;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(45, 231, 255, 0.08) inset;
}

.play-signup-required-modal.playsafe-required-modal .simple-disconnect-header {
    margin-bottom: 0.8rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(45, 231, 255, 0.22);
}

.play-signup-required-modal.playsafe-required-modal .simple-disconnect-title {
    font-size: 0.92rem;
    letter-spacing: 1.2px;
    color: #e8fbff;
    gap: 0.55rem;
}

.play-signup-required-modal.playsafe-required-modal .playsafe-required-modal__title-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(45, 231, 255, 0.28));
}

.play-signup-required-modal.playsafe-required-modal .simple-disconnect-subtitle {
    color: #d4f7ff;
    font-size: 1.02rem;
    line-height: 1.45;
    margin: 0 0 0.7rem;
}

.play-signup-required-modal.playsafe-required-modal .simple-disconnect-info {
    color: rgba(232, 251, 255, 0.86);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0 0 1.25rem;
}

.play-signup-required-modal.playsafe-required-modal .simple-disconnect-actions {
    gap: 0.55rem;
}

.play-signup-required-modal.playsafe-required-modal .simple-disconnect-btn-cancel,
.play-signup-required-modal.playsafe-required-modal .simple-disconnect-btn-danger {
    padding: 0.58rem 0.95rem;
    font-size: 0.74rem;
    letter-spacing: 0.35px;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    -webkit-clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.play-signup-required-modal.playsafe-required-modal .simple-disconnect-btn-cancel {
    border: 1px solid rgba(45, 231, 255, 0.32);
    color: #9eefff;
    background: rgba(45, 231, 255, 0.08);
}

.play-signup-required-modal.playsafe-required-modal .simple-disconnect-btn-cancel:hover {
    color: #dfffff;
    border-color: rgba(45, 231, 255, 0.55);
    background: rgba(45, 231, 255, 0.16);
}

.play-signup-required-modal.playsafe-required-modal .simple-disconnect-btn-danger {
    background: linear-gradient(135deg, #2de7ff 0%, #0eb5d8 100%);
    border: 1px solid rgba(45, 231, 255, 0.55);
    color: #001018;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(45, 231, 255, 0.26);
}

.play-signup-required-modal.playsafe-required-modal .simple-disconnect-btn-danger:hover {
    background: linear-gradient(135deg, #6df0ff 0%, #28d3f6 100%);
    color: #001018;
}

@keyframes resetModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Lobby Code Inline (replaces queue button area) */
.lobby-code-inline {
    display: flex;
    gap: var(--space-md);
    align-items: stretch;
}

.lobby-code-box {
    width: 260px;
    height: 120px;
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    box-shadow:
        0 8px 32px rgba(16, 185, 129, 0.3),
        0 0 0 1px rgba(16, 185, 129, 0.4) inset;
}

.lobby-label {
    font-family: 'Apex', sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.lobby-code-value {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.lobby-code-value .code {
    font-family: 'Apex', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 4px;
    color: #fff;
}

.lobby-code-value .copy-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lobby-code-value .copy-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.code-pending {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.match-status-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.status-label {
    font-family: 'Apex', sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.status-value {
    font-family: 'Apex', sans-serif;
    font-size: 0.9rem;
    color: #10b981;
    letter-spacing: 1px;
}

.status-value.waiting {
    color: #fbbf24;
}

.status-value.in_progress, .status-value.active {
    color: #10b981;
}

.status-value.completed {
    color: var(--text-secondary);
}

.lobby-code-display .code-pending {
    color: var(--text-secondary);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ===== READY STATE (Queue) ===== */
.play-ready-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    position: relative;
    padding-top: 0.25rem;
}

.service-unavailable-banner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-xl);
}

.service-unavailable-banner > i {
    font-size: 1.5rem;
    color: #f59e0b;
}

.banner-title {
    font-weight: 600;
    color: #fbbf24;
}

.banner-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.banner-refresh {
    background: rgba(245, 158, 11, 0.2);
    border: none;
    color: #fbbf24;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.banner-refresh:hover {
    background: rgba(245, 158, 11, 0.4);
    transform: rotate(180deg);
}

/* Queue Main Area */
.queue-main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 0.5rem 0 var(--space-md) 0;
}

.play-agenda-embed {
    width: 100%;
    max-width: 1100px;
    min-width: 0;
    margin-top: clamp(1rem, 1.6vw, 1.35rem);
    padding-inline: clamp(0.6rem, 2.2vw, 1.25rem);
    box-sizing: border-box;
}

.agenda-view {
    position: relative;
    padding: 1.25rem;
    border-radius: 18px;
    background: transparent;
    overflow: visible;
}

.agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.agenda-header-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.agenda-highlight {
    color: #f4012b;
}

.agenda-carousel {
    position: relative;
    max-width: calc(285px * 3 + 1.15rem * 2 + 0.8rem);
    margin: 0 auto;
}

.agenda-list-shell {
    position: relative;
    overflow: hidden;
}

.agenda-list {
    display: flex;
    gap: 1.15rem;
    width: max-content;
    min-width: 0;
    padding: 1.25rem 0.4rem 1.8rem;
    transition: transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.agenda-list::-webkit-scrollbar {
    display: none;
}

.agenda-scroll-arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.56);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.agenda-scroll-arrow.left { left: -2.25rem; }
.agenda-scroll-arrow.right { right: -2.25rem; }

.agenda-scroll-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
    border-color: rgba(255, 255, 255, 0.34);
    color: #fff;
}

.agenda-reel-card {
    --agenda-accent: #f4012b;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 285px;
    min-width: 285px;
    min-height: 398px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    isolation: isolate;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 38%, rgba(8, 8, 8, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.44),
        0 10px 26px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -22px 34px rgba(0, 0, 0, 0.28);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.agenda-reel-card::before,
.agenda-reel-card::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: inherit;
}

.agenda-reel-card::before {
    inset: 0;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.18);
    opacity: 0.85;
}

.agenda-reel-card::after {
    inset: -1px;
    z-index: 2;
    border: 1px solid transparent;
}

.agenda-reel-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.46),
        0 10px 26px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -24px 36px rgba(0, 0, 0, 0.24);
}

.agenda-reel-card.agenda-card-maintenance {
    cursor: default;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 38%, rgba(8, 8, 8, 0.95) 100%);
}

.agenda-reel-card.agenda-card-maintenance:hover {
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.44),
        0 10px 26px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -22px 34px rgba(0, 0, 0, 0.28);
}

.agenda-reel-card.agenda-card-maintenance:hover .agenda-card-media {
    transform: none;
    filter: none;
}

.agenda-reel-card.agenda-status-ended {
    opacity: 0.58;
    filter: grayscale(0.95) saturate(0.35);
}

.agenda-reel-card.agenda-status-ongoing {
    border-color: rgba(255, 84, 110, 0.5);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.46),
        0 10px 26px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -24px 36px rgba(0, 0, 0, 0.24);
}

.agenda-reel-card.agenda-status-ongoing::before {
    border: 1px solid rgba(255, 105, 130, 0.35);
}

.agenda-reel-card.agenda-status-ongoing .agenda-card-media::after {
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.02) 46%, rgba(0, 0, 0, 0.14) 72%, rgba(0, 0, 0, 0.24) 100%),
        linear-gradient(180deg, rgba(96, 0, 18, 0.08), rgba(0, 0, 0, 0.14) 56%, rgba(0, 0, 0, 0.30));
}

.agenda-reel-card.agenda-status-ended::before,
.agenda-reel-card.agenda-status-ended::after {
    opacity: 0.35;
}

.agenda-reel-card.agenda-status-ended:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

@keyframes playAgendaBorderOrbit {
    0%, 100% {
        box-shadow:
            0 -14px 24px -18px color-mix(in srgb, var(--agenda-accent) 70%, transparent),
            0 0 0 1px color-mix(in srgb, var(--agenda-accent) 10%, transparent) inset;
    }
    25% {
        box-shadow:
            14px 0 24px -18px color-mix(in srgb, var(--agenda-accent) 70%, transparent),
            0 0 0 1px color-mix(in srgb, var(--agenda-accent) 10%, transparent) inset;
    }
    50% {
        box-shadow:
            0 14px 24px -18px color-mix(in srgb, var(--agenda-accent) 70%, transparent),
            0 0 0 1px color-mix(in srgb, var(--agenda-accent) 10%, transparent) inset;
    }
    75% {
        box-shadow:
            -14px 0 24px -18px color-mix(in srgb, var(--agenda-accent) 70%, transparent),
            0 0 0 1px color-mix(in srgb, var(--agenda-accent) 10%, transparent) inset;
    }
}

@keyframes playAgendaLiveCardPulse {
    0%,
    100% {
        filter: brightness(1.03) saturate(1.12);
    }
    50% {
        filter: brightness(1.08) saturate(1.18);
    }
}

.agenda-card-media {
    position: relative;
    height: 236px;
    flex: 0 0 236px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -30px 44px rgba(0, 0, 0, 0.18);
    transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1), filter 320ms ease;
}

.agenda-card-media::before,
.agenda-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.agenda-card-media::before {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 22%, transparent 48%),
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.16), transparent 38%);
    opacity: 0.58;
}

.agenda-card-media::after {
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 54%, rgba(0, 0, 0, 0.10) 74%, rgba(0, 0, 0, 0.22) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.16) 58%, rgba(0, 0, 0, 0.30));
    box-shadow: inset 0 0 44px rgba(0, 0, 0, 0.20), inset 0 0 2px rgba(255, 255, 255, 0.06);
}

.agenda-reel-card:hover .agenda-card-media {
    transform: scale(1.07);
    filter: saturate(1.08);
}

.agenda-region-label,
.agenda-tag-row,
.agenda-status-badge,
.agenda-media-cta-row {
    position: absolute;
    z-index: 3;
}

.agenda-region-label {
    top: 0.85rem;
    left: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.agenda-region-item,
.agenda-status-badge,
.agenda-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.agenda-region-item {
    --region-cut: 8px;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.36rem 0.58rem;
    border-radius: 0;
    clip-path: polygon(var(--region-cut) 0, 100% 0, 100% calc(100% - var(--region-cut)), calc(100% - var(--region-cut)) 100%, 0 100%, 0 var(--region-cut));
    border: 0;
    background: transparent;
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.56px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.agenda-region-item::before,
.agenda-region-item::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    clip-path: inherit;
}

.agenda-region-item::before {
    z-index: -2;
    background: color-mix(in srgb, var(--agenda-accent, #f4012b) 52%, rgba(255,255,255,0.2));
}

.agenda-region-item::after {
    inset: 1px;
    z-index: -1;
    background: linear-gradient(135deg, color-mix(in srgb, var(--agenda-accent, #f4012b) 46%, rgba(0,0,0,0.56)), color-mix(in srgb, var(--agenda-accent, #f4012b) 72%, rgba(0,0,0,0.48)));
}

.agenda-region-flag {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.35);
}

.agenda-maintenance-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.9rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 210, 146, 0.78);
    background: linear-gradient(135deg, rgba(240, 140, 45, 0.8), rgba(132, 76, 22, 0.88));
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.34);
}

.agenda-status-badge {
    top: 0.85rem;
    right: 0.9rem;
    padding: 0.32rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.agenda-status-badge.status-upcoming {
    background: rgba(52, 152, 219, 0.68);
    border-color: rgba(121, 190, 255, 0.68);
}

.agenda-status-badge.status-ongoing {
    background: rgba(46, 204, 113, 0.7);
    border-color: rgba(117, 255, 178, 0.72);
}

.agenda-status-badge.status-ended {
    top: calc(50% - 4.2rem);
    left: 50%;
    right: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-family: 'URW Dock', sans-serif;
    font-size: 10px;
    letter-spacing: 0.55px;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    box-shadow: none;
}

.agenda-status-badge.status-ended::before {
    content: '\2713';
    margin-right: 4px;
    font-weight: 900;
}

.agenda-live-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.9rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    padding: 0.34rem 0.64rem;
    border-radius: 999px;
    border: 1px solid rgba(128, 255, 170, 0.82);
    background: linear-gradient(135deg, rgba(0, 214, 92, 0.88), rgba(0, 130, 56, 0.9));
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.16) inset,
        0 8px 20px rgba(0, 214, 92, 0.42),
        0 4px 14px rgba(0, 0, 0, 0.32);
}

.agenda-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.95);
    animation: agendaLiveDotPulse 1.2s ease-out infinite;
}

.agenda-reel-card.agenda-status-ongoing .agenda-tag-row {
    top: 3rem;
}

@keyframes agendaLiveDotPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 9px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.agenda-media-cta-row {
    right: 0.8rem;
    bottom: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.agenda-media-cta-row-maintenance {
    left: 0.8rem;
    right: auto;
}

.agenda-maintenance-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    padding: 0.36rem 0.58rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.52);
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Apex', sans-serif;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.58px;
    text-transform: uppercase;
}

.agenda-play-chip,
.agenda-countdown-chip,
.agenda-card-schedule-btn,
.agenda-party-badge,
.agenda-team-badge {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.agenda-play-chip,
.agenda-card-schedule-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: none;
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.agenda-play-chip {
    --agenda-btn-cut: 8px;
    padding: 0.36rem 0.58rem;
    clip-path: polygon(var(--agenda-btn-cut) 0, 100% 0, 100% calc(100% - var(--agenda-btn-cut)), calc(100% - var(--agenda-btn-cut)) 100%, 0 100%, 0 var(--agenda-btn-cut));
    background: transparent;
    font-size: 0.56rem;
    letter-spacing: 0.56px;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.agenda-play-chip::before,
.agenda-play-chip::after,
.agenda-countdown-chip::before,
.agenda-countdown-chip::after,
.agenda-party-badge::before,
.agenda-party-badge::after,
.agenda-team-badge::before,
.agenda-team-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    clip-path: inherit;
}

.agenda-play-chip::before {
    z-index: -2;
    background: color-mix(in srgb, var(--agenda-accent) 52%, rgba(255, 255, 255, 0.2));
}

.agenda-play-chip::after {
    inset: 1px;
    z-index: -1;
    background: linear-gradient(135deg, color-mix(in srgb, var(--agenda-accent) 46%, rgba(0, 0, 0, 0.56)), color-mix(in srgb, var(--agenda-accent) 72%, rgba(0, 0, 0, 0.48)));
}

.agenda-play-chip:hover,
.agenda-play-chip:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--agenda-accent) 34%, transparent);
}

.agenda-countdown-chip {
    padding: 0.38rem 0.6rem;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    color: #fff;
    background: transparent;
    font-family: 'URW Dock', sans-serif;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.65px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.agenda-countdown-chip::before {
    z-index: -2;
    background: rgba(255, 255, 255, 0.2);
}

.agenda-countdown-chip::after {
    inset: 1px;
    z-index: -1;
    background: rgba(0, 0, 0, 0.62);
}

.agenda-card-prize {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.78);
    font-family: 'Apex', sans-serif;
    font-size: 2.7rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.72);
    pointer-events: none;
}

.agenda-tag-row {
    top: 0.8rem;
    right: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
    max-width: calc(100% - 1.6rem);
}

.agenda-tag-pill {
    padding: 0.34rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.agenda-card-panel {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 162px;
    padding: 0.95rem 1rem 0.72rem;
    color: #fff;
    background: linear-gradient(180deg, rgba(34, 34, 34, 0.9) 0%, rgba(13, 13, 13, 0.96) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 18px 34px rgba(255, 255, 255, 0.025), inset 0 -20px 34px rgba(0, 0, 0, 0.34);
}

.agenda-card-panel > * {
    position: relative;
    z-index: 1;
}

.agenda-card-title {
    margin: 0;
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 1.08rem;
    line-height: 1.12;
    letter-spacing: 0.25px;
    text-transform: uppercase;
}

.agenda-card-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: 0.55rem;
    min-width: 0;
}

.agenda-card-meta-stack {
    flex: 1 1 auto;
    min-width: 0;
}

.agenda-card-date {
    margin-top: 0.55rem;
    color: #fff;
    font-size: 0.94rem;
    font-weight: 900;
}

.agenda-card-meta-stack .agenda-card-date {
    margin-top: 0;
}

.agenda-card-meta-aux {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.28rem;
    flex: 0 0 auto;
}

.agenda-card-time {
    margin-top: 0.22rem;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.82rem;
}

.agenda-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-top: 0.42rem;
    min-width: 0;
}

.agenda-card-maintenance .agenda-card-actions {
    margin-top: 0.62rem;
}

/* Event sponsor line (per-event sponsorship; hidden when the event has none).
   Gold-tinted surface so it reads as an ad slot at a glance, while staying
   quieter than the card's own "LIVE NOW" badge. Two short rows (name, then the
   discount code) because the reel card is ~145px wide — keeping them on one line
   truncated the brand name to "MOJ…".
   NOTE: this block is duplicated in static/events/css/agenda-carousel.css (the
   /schedule copy). Keep both in sync until the two agenda stylesheets are merged. */
.agenda-card-sponsor {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "logo copy go"
        "logo code go";
    align-items: center;
    column-gap: 0.45rem;
    row-gap: 2px;
    min-width: 0;
    min-height: 38px;
    margin-top: 0.5rem;
    padding: 0.32rem 0.5rem;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.09) 0%, rgba(255, 255, 255, 0.04) 60%);
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.2);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

a.agenda-card-sponsor:hover,
a.agenda-card-sponsor:focus-visible {
    background-color: rgba(255, 215, 0, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.45);
}

a.agenda-card-sponsor:focus-visible {
    outline: 2px solid rgba(255, 215, 0, 0.7);
    outline-offset: 2px;
}

.agenda-card-sponsor-logo {
    grid-area: logo;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.agenda-card-sponsor-copy {
    grid-area: copy;
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.agenda-card-sponsor-label {
    font-size: 0.56rem;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.72);
}

.agenda-card-sponsor-name {
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.agenda-card-sponsor-code {
    grid-area: code;
    justify-self: start;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.3);
    color: rgba(255, 215, 0, 0.88);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Outbound arrow — signals "this leaves the page". */
.agenda-card-sponsor-go {
    grid-area: go;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.58rem;
    transition: color 0.15s ease, transform 0.15s ease;
}

a.agenda-card-sponsor:hover .agenda-card-sponsor-go {
    color: #fff;
    transform: translate(1px, -1px);
}

.agenda-card-prize-ranks {
    position: absolute;
    top: calc(50% + 1.95rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}

.agenda-band-tier-icons {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}

.agenda-band-tier-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.agenda-maintenance-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.76rem;
    line-height: 1.35;
}

.agenda-maintenance-link {
    margin-top: 0.1rem;
}

.agenda-card-schedule-btn {
    --agenda-btn-cut: 8px;
    align-self: flex-start;
    max-width: 100%;
    padding: 0.4rem 0.7rem;
    clip-path: polygon(var(--agenda-btn-cut) 0, 100% 0, 100% calc(100% - var(--agenda-btn-cut)), calc(100% - var(--agenda-btn-cut)) 100%, 0 100%, 0 var(--agenda-btn-cut));
    background: linear-gradient(135deg, color-mix(in srgb, var(--agenda-accent) 26%, rgba(0, 0, 0, 0.45)), color-mix(in srgb, var(--agenda-accent) 52%, rgba(0, 0, 0, 0.35)));
    font-size: 0.62rem;
    letter-spacing: 0.6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.agenda-card-schedule-btn:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--agenda-accent) 38%, rgba(0, 0, 0, 0.38)), color-mix(in srgb, var(--agenda-accent) 66%, rgba(0, 0, 0, 0.28)));
    transform: translateY(-2px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--agenda-accent) 38%, transparent);
}

.agenda-format-badges {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.agenda-party-badge,
.agenda-team-badge {
    --agenda-format-item-cut: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.38rem;
    clip-path: polygon(var(--agenda-format-item-cut) 0, 100% 0, 100% calc(100% - var(--agenda-format-item-cut)), calc(100% - var(--agenda-format-item-cut)) 100%, 0 100%, 0 var(--agenda-format-item-cut));
    background: rgba(0, 0, 0, 0.22);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.agenda-party-badge::before,
.agenda-team-badge::before {
    z-index: -2;
    background: color-mix(in srgb, var(--agenda-accent) 46%, rgba(255, 255, 255, 0.14));
}

.agenda-party-badge::after,
.agenda-team-badge::after {
    inset: 1px;
    z-index: -1;
    background: color-mix(in srgb, var(--agenda-accent) 16%, rgba(0, 0, 0, 0.54));
}

.agenda-party-badge {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.2rem 0.3rem;
}

.agenda-team-badge {
    flex: 0 0 auto;
    padding: 0.2rem 0.48rem;
    font-family: 'Apex', sans-serif;
    font-size: 0.53rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.agenda-party-icons,
.agenda-party-group,
.agenda-party-option {
    display: inline-flex;
    align-items: center;
}

.agenda-party-icons {
    width: 100%;
    justify-content: space-between;
    gap: 0.18rem;
}

.agenda-party-group {
    gap: 0.08rem;
    position: relative;
}

.agenda-party-option {
    gap: 0.12rem;
    padding: 0.08rem 0.12rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.035);
}

.agenda-party-option.is-allowed {
    color: rgba(255, 255, 255, 0.96);
    background: color-mix(in srgb, #21d66b 12%, rgba(255, 255, 255, 0.04));
}

.agenda-party-option.is-denied {
    color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.025);
}

.agenda-party-option.is-denied .agenda-party-group::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -2px;
    right: -2px;
    height: 1px;
    background: rgba(255, 90, 112, 0.92);
    transform: rotate(-18deg);
    box-shadow: 0 0 5px rgba(244, 1, 43, 0.5);
}

.agenda-party-status {
    font-size: 0.44rem;
    line-height: 1;
}

.agenda-party-option.is-allowed .agenda-party-status { color: #6dff9b; }
.agenda-party-option.is-denied .agenda-party-status { color: #ff5a70; }
.agenda-party-icons i { font-size: 0.52rem; }

.agenda-no-events {
    min-width: 100%;
    padding: 3rem 1.25rem;
    text-align: center;
    color: #888;
}

.agenda-no-events i {
    display: block;
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 2rem;
}

.agenda-no-events p {
    margin: 0;
    font-size: 0.9rem;
}

.agenda-schedule-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.agenda-schedule-modal-content {
    width: 100%;
    min-width: 380px;
    max-width: 600px;
    max-height: 86vh;
    overflow: auto;
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(165deg, rgba(26, 26, 26, 0.98) 0%, rgba(13, 13, 13, 0.99) 50%, rgba(8, 8, 8, 1) 100%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.agenda-schedule-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.agenda-schedule-modal-title {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.agenda-schedule-modal-title i {
    color: #f4012b;
    font-size: 0.65rem;
}

.agenda-schedule-modal-close {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #444;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.agenda-schedule-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #666;
    color: #fff;
}

.agenda-schedule-modal-subtitle {
    margin: 0;
    color: #666;
    font-size: 0.75rem;
}

.agenda-schedule-modal-date {
    margin: 0.25rem 0 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
}

.agenda-schedule-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.agenda-schedule-modal-day {
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.agenda-schedule-modal-day-title {
    margin-bottom: 0.45rem;
    color: #f4012b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.agenda-schedule-modal-row {
    color: #ccc;
    font-size: 0.78rem;
    line-height: 1.4;
}

.agenda-schedule-modal-region {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.agenda-schedule-modal-empty {
    color: #888;
    font-size: 0.78rem;
    font-style: italic;
}

.play-agenda-embed {
    width: 100%;
    max-width: 1100px;
    min-width: 0;
    margin-top: clamp(1rem, 1.6vw, 1.35rem);
    padding-inline: clamp(0.6rem, 2.2vw, 1.25rem);
    box-sizing: border-box;
}

.play-agenda-embed .agenda-view {
    padding: 0;
}

.play-agenda-embed .agenda-header {
    margin-bottom: 0.65rem;
}

.play-agenda-embed .agenda-header-title {
    font-size: 0.96rem;
}

.play-agenda-embed .agenda-list {
    gap: 0.72rem;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    box-sizing: border-box;
    padding: 0.55rem 0.2rem 0.8rem;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
}

.play-agenda-embed .agenda-scroll-arrow {
    width: 28px;
    height: 28px;
}

.play-agenda-embed .agenda-scroll-arrow.left { left: -0.45rem; }
.play-agenda-embed .agenda-scroll-arrow.right { right: -0.45rem; }

.play-agenda-embed .agenda-reel-card {
    width: 168px;
    min-width: 168px;
    min-height: 184px;
    border-radius: 18px;
    box-shadow:
        0 20px 46px rgba(0, 0, 0, 0.38),
        0 7px 18px rgba(0, 0, 0, 0.26),
        0 0 18px color-mix(in srgb, var(--agenda-accent) 8%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -16px 24px rgba(0, 0, 0, 0.24);
}

.play-agenda-embed .agenda-card-media {
    height: 112px;
    flex-basis: 112px;
}

.play-agenda-embed .agenda-region-label,
.play-agenda-embed .agenda-status-badge,
.play-agenda-embed .agenda-tag-pill,
.play-agenda-embed .agenda-maintenance-badge {
    font-size: 0.5rem;
    letter-spacing: 0.45px;
}

.play-agenda-embed .agenda-maintenance-badge {
    top: 0.5rem;
    left: 0.55rem;
    gap: 0.2rem;
    padding: 0.2rem 0.38rem;
}

.play-agenda-embed .agenda-region-label {
    top: 0.5rem;
    left: 0.55rem;
    gap: 0.22rem;
    max-width: calc(100% - 1.1rem);
}

.play-agenda-embed .agenda-region-item {
    padding: 0.2rem 0.32rem;
}

.play-agenda-embed .agenda-region-flag {
    width: 11px;
    height: 11px;
}

.play-agenda-embed .agenda-status-badge {
    top: 0.5rem;
    right: 0.55rem;
    padding: 0.2rem 0.38rem;
}

.play-agenda-embed .agenda-live-badge {
    top: auto;
    right: auto;
    bottom: 0.45rem;
    left: 0.55rem;
    gap: 0.22rem;
    padding: 0.2rem 0.38rem;
    font-size: 0.5rem;
    letter-spacing: 0.45px;
}

.play-agenda-embed .agenda-live-dot {
    width: 0.32rem;
    height: 0.32rem;
}

.play-agenda-embed .agenda-reel-card.agenda-status-ongoing .agenda-tag-row {
    top: 1.7rem;
}

.play-agenda-embed .agenda-reel-card.agenda-status-continued .agenda-tag-row {
    top: 1.7rem;
}

.play-agenda-embed .agenda-continued-badge {
    position: absolute;
    top: 0.38rem;
    right: 0.32rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.24rem;
    padding: 0.18rem 0.32rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 193, 7, 0.72);
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.88), rgba(230, 126, 0, 0.9));
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 0.38rem;
    font-weight: 900;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.12) inset,
        0 5px 14px rgba(255, 152, 0, 0.38),
        0 3px 10px rgba(0,0,0,0.28);
}

.play-agenda-embed .agenda-continued-dot {
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    background: #fff;
    animation: agendaContinuedDotPulse 2s ease-in-out infinite;
}

.play-agenda-embed .agenda-status-badge.status-continued {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.65), rgba(230, 126, 0, 0.7));
    border-color: rgba(255, 193, 7, 0.45);
    top: calc(50% - 1.9rem);
    font-size: 8px;
}

.play-agenda-embed .agenda-status-badge.status-ended {
    top: calc(50% + 1.2rem);
    font-size: 8px;
}

.play-agenda-embed .agenda-media-cta-row {
    right: 0.45rem;
    bottom: 0.45rem;
    left: auto;
    top: auto;
    gap: 0.22rem;
}

.play-agenda-embed .agenda-media-cta-row-maintenance {
    left: 0.55rem;
    right: auto;
}

.play-agenda-embed .agenda-maintenance-chip {
    gap: 0.2rem;
    padding: 0.2rem 0.34rem;
    font-size: 0.44rem;
    letter-spacing: 0.38px;
}

.play-agenda-embed .agenda-play-chip {
    padding: 0.2rem 0.34rem;
    font-size: 0.44rem;
    letter-spacing: 0.38px;
}

.play-page .play-agenda-embed .agenda-countdown-chip {
    box-sizing: border-box;
    min-width: max-content;
    padding: 0.23rem 0.39rem;
    font-size: 0.642rem;
    line-height: 1;
    letter-spacing: 0.345px;
    white-space: nowrap;
}

.play-agenda-embed .agenda-card-prize {
    font-size: 1.35rem;
}

.play-page .play-agenda-embed .agenda-card-prize-ranks {
    top: calc(50% + 1.2rem);
    transform: translateX(-50%) scale(0.8);
    transform-origin: center;
}

.play-agenda-embed .agenda-tag-row {
    top: 0.45rem;
    right: 0.45rem;
    bottom: auto;
    gap: 0.18rem;
    max-width: calc(100% - 0.9rem);
}

.play-agenda-embed .agenda-tag-pill {
    padding: 0.16rem 0.28rem;
}

.play-agenda-embed .agenda-card-panel {
    min-height: 72px;
    padding: 0.58rem 0.66rem 0.38rem;
}

.play-agenda-embed .agenda-card-title {
    font-size: 0.72rem;
    line-height: 1.18;
}

.play-agenda-embed .agenda-card-meta-row {
    flex-direction: column;
    gap: 0.38rem;
    margin-top: 0.4rem;
}

.play-agenda-embed .agenda-card-date {
    margin-top: 0;
    font-size: 0.72rem;
}

.play-agenda-embed .agenda-card-time {
    margin-top: 0.14rem;
    font-size: 0.62rem;
}

.play-agenda-embed .agenda-card-actions {
    width: 100%;
    margin-top: 0.22rem;
}

.play-agenda-embed .agenda-card-maintenance .agenda-card-actions {
    margin-top: 0.35rem;
}

.play-agenda-embed .agenda-maintenance-note {
    font-size: 0.58rem;
    line-height: 1.32;
}

.play-agenda-embed .agenda-maintenance-link {
    width: 100%;
    margin-top: 0.02rem;
    padding: 0.26rem 0.34rem;
    font-size: 0.47rem;
    letter-spacing: 0.32px;
}

.play-agenda-embed .agenda-card-actions:empty {
    display: none;
    margin-top: 0;
}

.play-agenda-embed .agenda-card-play-btn {
    --play-btn-cut: 7px;
    --agenda-btn-accent: var(--agenda-accent, #f4012b);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.32rem 0.38rem;
    border: 0;
    border-radius: 0;
    clip-path: polygon(var(--play-btn-cut) 0, 100% 0, 100% calc(100% - var(--play-btn-cut)), calc(100% - var(--play-btn-cut)) 100%, 0 100%, 0 var(--play-btn-cut));
    background: linear-gradient(135deg, var(--agenda-btn-accent) 0%, color-mix(in srgb, var(--agenda-btn-accent) 80%, #000) 100%);
    color: #fff;
    box-shadow: 0 5px 14px color-mix(in srgb, var(--agenda-btn-accent) 28%, transparent);
    overflow: hidden;
    box-sizing: border-box;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Apex', sans-serif;
    font-size: 0.46rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.play-agenda-embed .agenda-card-play-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-105%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.play-agenda-embed .agenda-card-play-btn:hover,
.play-agenda-embed .agenda-card-play-btn:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--agenda-btn-accent, #f4012b) 40%, transparent);
    outline: none;
}

.play-agenda-embed .agenda-card-play-btn:hover::before,
.play-agenda-embed .agenda-card-play-btn:focus-visible::before {
    transform: translateX(105%);
}

.play-agenda-embed .agenda-card-play-btn i {
    font-size: 0.45rem;
}

.play-agenda-embed .agenda-card-schedule-btn {
    width: 100%;
    padding: 0.3rem 0.4rem;
    font-size: 0.5rem;
    letter-spacing: 0.35px;
}

.play-agenda-embed .agenda-format-badges {
    gap: 0.22rem;
}

.play-agenda-embed .agenda-party-badge {
    padding: 0.14rem 0.2rem;
}

.play-agenda-embed .agenda-party-option {
    gap: 0.08rem;
    padding: 0.04rem 0.06rem;
}

.play-agenda-embed .agenda-party-icons i {
    font-size: 0.42rem;
}

.play-agenda-embed .agenda-party-status {
    font-size: 0.35rem;
}

.play-agenda-embed .agenda-team-badge {
    padding: 0.14rem 0.3rem;
    font-size: 0.44rem;
    letter-spacing: 0.3px;
}

@media (max-width: 900px) {
    .play-agenda-embed {
        width: 100%;
    }

    .play-agenda-embed .agenda-reel-card {
        width: 154px;
        min-width: 154px;
        min-height: 184px;
    }
}

@media (max-width: 640px) {
    .agenda-schedule-modal-content {
        min-width: 0;
        padding: 1rem;
    }

    .play-agenda-embed .agenda-reel-card {
        width: 144px;
        min-width: 144px;
        min-height: 172px;
    }

    .play-agenda-embed .agenda-card-media {
        height: 100px;
        flex-basis: 100px;
    }

    .play-agenda-embed .agenda-list-shell {
        overflow-x: hidden;
    }

    .play-agenda-embed .agenda-list {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .play-agenda-embed .agenda-scroll-arrow {
        display: none;
    }
}

/* ============ Legend Ban Preferences ============ */
/* ===== Legend Ban Prefs — Separate panel next to queue-stats-panel ===== */
.legend-ban-prefs-floating {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
}

/* Trigger bar — flex row using stat-icon/stat-info for identical sizing */
.ban-prefs-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: opacity 0.2s;
    user-select: none;
}

.ban-prefs-bar:hover {
    opacity: 0.85;
}

.ban-prefs-bar-portraits {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.ban-prefs-bar-portrait {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    border: 1.5px solid rgba(244, 1, 43, 0.5);
    box-shadow: 0 0 8px rgba(244, 1, 43, 0.2);
}

.ban-prefs-bar-chevron {
    color: #555;
    font-size: 0.5rem;
    margin-left: 2px;
    transition: transform 0.2s;
}

/* Overlay — fixed fullscreen backdrop (like how-to-join on match dashboard) */
.ban-prefs-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

/* Modal panel inside the overlay */
.ban-prefs-flyout {
    position: relative;
    min-width: 380px;
    max-width: 600px;
    width: 100%;
    background: linear-gradient(165deg, rgba(26, 26, 26, 0.98) 0%, rgba(13, 13, 13, 0.99) 50%, rgba(8, 8, 8, 1) 100%);
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.ban-prefs-flyout-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ban-prefs-flyout-heading {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.ban-prefs-flyout-title {
    font-family: 'Apex', sans-serif;
    font-size: 0.75rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ban-prefs-flyout-title i {
    color: #f4012b;
    margin-right: 0.3rem;
    font-size: 0.65rem;
}

.ban-prefs-flyout-count {
    font-size: 0.65rem;
    color: #f4012b;
    background: rgba(244, 1, 43, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.ban-prefs-flyout-desc {
    color: #666;
    font-size: 0.65rem;
    margin: 0;
    user-select: none;
}

/* Close button (top-right of modal) */
.ban-prefs-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.ban-prefs-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #666;
}

/* ── MMR Increase Application ────────────────────────────────────── */
.rank-journey-flyout .mmr-change-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: max-content;
    max-width: 100%;
    margin: 0.85rem auto 0;
    padding: 0.55rem 1.15rem;
    border: 1px solid rgba(244, 1, 43, 0.55);
    border-radius: 8px;
    background: rgba(244, 1, 43, 0.12);
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rank-journey-flyout .mmr-change-link:hover {
    background: rgba(244, 1, 43, 0.22);
    border-color: #f4012b;
    color: #fff;
    transform: translateY(-1px);
}

.play-tools-flyout--mmr-increase {
    max-width: 460px;
}

.mmr-increase-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(244, 1, 43, 0.08);
    border: 1px solid rgba(244, 1, 43, 0.25);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: #ddd;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0.5rem 0;
}

.mmr-increase-banner i {
    color: #f4012b;
}

.mmr-tier-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin: 0.85rem 0;
}

.mmr-tier-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.1s;
}

.mmr-tier-choice:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.mmr-tier-choice.is-selected {
    border-color: #f4012b;
    background: rgba(244, 1, 43, 0.1);
    box-shadow: 0 0 0 1px rgba(244, 1, 43, 0.35), 0 0 18px rgba(244, 1, 43, 0.18);
}

.mmr-tier-choice img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.mmr-tier-choice-name {
    font-family: 'URW Dock', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mmr-tier-choice-mmr {
    font-family: 'URW Dock', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.68rem;
    font-weight: 400;
    color: #b9b9b9;
    letter-spacing: 0.03em;
}

.mmr-tier-choice.is-selected .mmr-tier-choice-mmr {
    color: #f4012b;
}

.mmr-increase-textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.5;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mmr-increase-textarea:focus {
    outline: none;
    border-color: #f4012b;
    box-shadow: 0 0 0 2px rgba(244, 1, 43, 0.25);
}

.mmr-increase-counter {
    text-align: right;
    font-size: 0.65rem;
    color: #777;
    margin-top: 0.25rem;
}

.mmr-increase-counter-hint {
    color: #f4012b;
}

.mmr-increase-submit {
    width: 100%;
    margin-top: 0.85rem;
    justify-content: center;
    font-family: 'Apex', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 0;
    --mmr-btn-cut: 8px;
    clip-path: polygon(0 0, calc(100% - var(--mmr-btn-cut)) 0, 100% var(--mmr-btn-cut), 100% 100%, var(--mmr-btn-cut) 100%, 0 calc(100% - var(--mmr-btn-cut)));
    background: linear-gradient(135deg, #f4012b 0%, #c80024 100%);
    box-shadow: 0 5px 14px rgba(244, 1, 43, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s;
}

.mmr-increase-submit:not(:disabled):hover {
    background: linear-gradient(135deg, #f4012b 0%, #c80024 100%);
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 8px 20px rgba(244, 1, 43, 0.4);
}

.mmr-increase-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.play-tools-flyout--mmr-increase .ban-prefs-flyout-desc {
    color: #b8b8b8;
    font-size: 0.72rem;
    line-height: 1.5;
}

.premium-party-flyout {
    max-width: 460px;
}

.premium-party-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding: 1.25rem 0 1rem;
    text-align: center;
}

.premium-party-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 213, 96, 0.18), rgba(244, 1, 43, 0.12));
    border: 1px solid rgba(251, 191, 36, 0.48);
    color: #ffd560;
    font-size: 1.55rem;
}

.premium-party-desc {
    max-width: 340px;
    margin: 0;
    color: #cfcfcf;
    font-size: 0.82rem;
    line-height: 1.55;
}

.premium-party-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.premium-party-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 0.75rem 1rem;
    font-family: 'Apex', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.premium-party-btn-primary {
    background: linear-gradient(135deg, #f4012b 0%, #b8011f 100%);
    color: #fff;
    box-shadow: 0 10px 26px rgba(244, 1, 43, 0.24);
}

.premium-party-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(244, 1, 43, 0.34);
}

.premium-party-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ddd;
    border-color: #444;
}

.premium-party-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #666;
    color: #fff;
}

@media (max-width: 520px) {
    .premium-party-actions {
        grid-template-columns: 1fr;
    }
}

/* ── Voice Required gate modal ─────────────────────────────────── */
.voice-gate-flyout { max-width: 440px; }

.voice-gate-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 0 1.1rem;
    text-align: center;
}

.voice-gate-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.22), rgba(88, 101, 242, 0.08));
    border: 1px solid rgba(88, 101, 242, 0.5);
    color: #8b9bff;
    font-size: 1.5rem;
}

.voice-gate-desc {
    max-width: 360px;
    margin: 0;
    color: #cfcfcf;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Reuse the Teammate-Preferences comms toggle 1:1, full width inside the modal */
.voice-gate-toggle-row {
    width: 100%;
    margin-top: 0.25rem;
}

.voice-gate-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.voice-gate-btn { width: 100%; }

@media (max-width: 520px) {
    .voice-gate-actions { grid-template-columns: 1fr; }
}

/* Overlay transition classes */
.flyout-enter { transition: all 0.3s ease; }
.flyout-enter-start { opacity: 0; }
.flyout-enter-start .ban-prefs-flyout,
.flyout-enter-start .reset-modal-content { transform: scale(0.9) translateY(20px); }
.flyout-enter-end { opacity: 1; }
.flyout-enter-end .ban-prefs-flyout,
.flyout-enter-end .reset-modal-content { transform: scale(1) translateY(0); }
.flyout-leave { transition: all 0.2s ease; }
.flyout-leave-start { opacity: 1; }
.flyout-leave-end { opacity: 0; }

/* Reuse existing ban-prefs-grid, card, footer styles below */

/* Column-based grid matching voting grid layout */
.ban-prefs-grid {
    display: flex;
    flex-wrap: wrap;
    /* Wider than the old 6px: the class groups no longer have a container, so the
       gap alone has to separate them. */
    gap: 8px 14px;
    justify-content: center;
    margin-bottom: 0.5rem;
}

/* Columns carry no container of their own — the group label + cards are enough,
   and boxing each class made the modal read as five nested panels. */
.ban-prefs-class-column {
    flex: 0 1 auto;
    min-width: 0;
}

.ban-prefs-class-label {
    font-family: 'Apex', sans-serif;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    margin-bottom: 3px;
    font-weight: 700;
}

.ban-prefs-class-cards {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: 68px;
    gap: 4px;
    overflow: hidden;
}

.ban-prefs-card {
    width: 68px;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    background: rgba(25, 25, 30, 0.9);
    transition: all 0.15s ease;
    position: relative;
}

.ban-prefs-card:hover {
    border-color: rgba(244, 1, 43, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(244, 1, 43, 0.15);
}

.ban-prefs-card.active {
    border-color: #f4012b;
    box-shadow: 0 0 10px rgba(244, 1, 43, 0.3);
    background: rgba(244, 1, 43, 0.08);
}

.ban-prefs-card img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    display: block;
}

.ban-prefs-card-name {
    font-size: 0.55rem;
    text-align: center;
    color: #777;
    padding: 1px 1px 2px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    display: block;
}

.ban-prefs-card.active .ban-prefs-card-name {
    color: #f4012b;
    font-weight: 700;
}

.ban-prefs-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ban-prefs-selected {
    color: #555;
    font-size: 0.7rem;
}

.ban-prefs-num {
    color: #f4012b;
    font-weight: 600;
}

.ban-prefs-actions {
    display: flex;
    gap: 0.4rem;
}

.ban-prefs-btn-clear {
    font-family: 'Apex', sans-serif;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ban-prefs-btn-clear:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.25);
    color: #aaa;
}

.ban-prefs-btn-clear:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ban-prefs-btn-save {
    font-family: 'Apex', sans-serif;
    background: linear-gradient(135deg, rgba(244, 1, 43, 0.15), rgba(244, 1, 43, 0.25));
    border: 1px solid rgba(244, 1, 43, 0.3);
    color: #f4012b;
    padding: 3px 12px;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ban-prefs-btn-save:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(244, 1, 43, 0.25), rgba(244, 1, 43, 0.4));
    color: #fff;
}

.ban-prefs-btn-save:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ban-prefs-btn-save.saved {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.22));
    border-color: rgba(16, 185, 129, 0.35);
    color: #10b981;
}

/* Legend ban prefs modal — wider panel so enlarged cards stay readable */
.play-legend-ban-modal-host .ban-prefs-flyout {
    max-width: 720px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Auto-save status pill (replaces the Save button) */
.ban-prefs-save-status {
    display: inline-flex;
    align-items: center;
    font-family: 'Apex', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ban-prefs-save-status .is-saving {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.55);
}

.ban-prefs-save-status .is-saved {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #10b981;
}

/* ============ Player Card Quick Menu + Modals ============ */
.play-card-menu-shell {
    display: contents;
}

.play-card-menu {
    display: contents;
}

.play-card-menu-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    position: relative;
    z-index: 25;
}

.play-card-menu-group--left {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
}

.play-card-menu-group--right {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
}

.play-card-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    height: 42px;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    background: linear-gradient(165deg, rgba(26, 26, 26, 0.96) 0%, rgba(13, 13, 13, 0.98) 100%);
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Apex', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    min-width: 112px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    text-decoration: none;
}

/* ============================================================
   Accept Overlay Preview Dock (?accept_preview=1)
   ============================================================ */
.accept-preview-dock {
    position: fixed;
    top: 88px;
    right: 16px;
    width: min(320px, calc(100vw - 24px));
    z-index: 10060;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.97) 0%, rgba(24, 24, 24, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 0.7rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}

.accept-preview-dock__title {
    font-family: 'Apex', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f3f4f6;
    margin-bottom: 0.55rem;
}

.accept-preview-dock__buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.accept-preview-dock__btn {
    border: 1px solid rgba(244, 1, 43, 0.35);
    background: rgba(244, 1, 43, 0.13);
    color: #fff;
    border-radius: 8px;
    padding: 0.52rem 0.5rem;
    font-family: 'Apex', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.16s ease;
}

.accept-preview-dock__btn:hover {
    transform: translateY(-1px);
    border-color: rgba(244, 1, 43, 0.6);
    background: rgba(244, 1, 43, 0.25);
}

.accept-preview-dock__btn--ghost {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.accept-preview-dock__btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
}

.accept-preview-dock__hint {
    margin: 0.6rem 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.72rem;
}

@media (max-width: 640px) {
    .accept-preview-dock {
        top: auto;
        right: 10px;
        left: 10px;
        bottom: 12px;
        width: auto;
    }
}

.play-card-menu-btn i {
    color: #f4012b;
    font-size: 0.75rem;
    filter: drop-shadow(0 0 6px rgba(244, 1, 43, 0.22));
}

.play-card-menu-btn:hover:not(:disabled),
.play-card-menu-btn:focus-visible:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
    background: linear-gradient(165deg, rgba(40, 40, 40, 0.96) 0%, rgba(18, 18, 18, 0.98) 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    outline: none;
}

.play-card-menu-btn--danger {
    border-color: rgba(255, 255, 255, 0.1);
}

.play-card-menu-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── Legend Bans Button with Preview ── */

.play-card-menu-btn--legend-bans {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    white-space: nowrap;
}

.legend-ban-btn-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.legend-ban-btn-preview {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    /* Always reserve space for 4 slots so button width stays fixed */
    min-width: calc(4 * 24px + 3 * 0.2rem);
}

.legend-ban-btn-empty-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px dashed rgba(244, 1, 43, 0.45);
    border-radius: 6px;
    background: rgba(244, 1, 43, 0.08);
    color: rgba(248, 113, 113, 0.95);
    font-size: 0.5rem;
}

.legend-ban-btn-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 28px;
    overflow: hidden;
    border: 1px solid rgba(244, 1, 43, 0.35);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
    flex-shrink: 0;
}

.legend-ban-btn-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.legend-ban-btn-chip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.86));
}

/* ── Queue Settings Button ── */

/* Legend Bans & Queue Settings share a fixed width so the left/right sides
   of the quick menu stay symmetric. Legend Bans reserves a fixed 4-slot rail
   (4 × 24px + 3 × 0.2rem), which lands at 221px — pin both buttons to it. */
.play-card-menu-btn--legend-bans,
.play-card-menu-btn--queue-settings {
    width: 221px;
    max-width: 221px;
    justify-content: center;
}

.play-card-menu-btn--queue-settings {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-color: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.play-card-menu-btn--queue-settings:hover:not(:disabled),
.play-card-menu-btn--queue-settings:focus-visible:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.28);
    background: linear-gradient(165deg, rgba(40, 40, 40, 0.96) 0%, rgba(18, 18, 18, 0.98) 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.queue-settings-btn-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.queue-settings-btn-label i {
    color: #f4012b;
    font-size: 0.72rem;
}

.queue-settings-btn-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.queue-settings-btn-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.queue-settings-btn-chip.is-on {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.5);
}

/* ── Teammate Preferences Modal ── */

.play-tools-flyout--teammate-prefs {
    max-width: 520px;
}

.teammate-prefs-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

/* ── App Settings groups ── */

.app-settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.app-settings-group-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.15rem;
    font-family: 'Apex', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.app-settings-group-label i {
    color: #f4012b;
    font-size: 0.55rem;
    width: 14px;
    text-align: center;
}

.teammate-prefs-modal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.teammate-prefs-modal-row-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'URW Dock', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    flex-shrink: 0;
}

.teammate-prefs-modal-row-label i {
    color: #f4012b;
    font-size: 0.7rem;
    width: 18px;
    text-align: center;
}

/* Per-title info tooltip (hover on desktop, tap/focus on touch).
   Styled as a small circular badge to match .prefs-strikes-info. */
.prefs-info-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(244, 1, 43, 0.15);
    color: #f4012b;
    font-size: 0.65rem;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.prefs-info-tip:hover,
.prefs-info-tip:focus {
    background: rgba(244, 1, 43, 0.28);
    color: #ff4d5a;
}

.teammate-prefs-modal-row-label .prefs-info-tip i {
    color: inherit;
    width: auto;
    font-size: 0.6rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.prefs-info-tip:hover i,
.prefs-info-tip:focus i {
    transform: scale(1.12);
}

.prefs-info-bubble {
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: max-content;
    max-width: 230px;
    padding: 0.5rem 0.65rem;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.88);
    font-family: 'URW Dock', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.42;
    letter-spacing: 0.2px;
    text-transform: none;
    white-space: normal;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 60;
}

.prefs-info-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #0d0d0d;
}

.prefs-info-tip:hover .prefs-info-bubble,
.prefs-info-tip:focus .prefs-info-bubble,
.prefs-info-tip:focus-within .prefs-info-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Scoring Info Tooltip (Desktop Only) */
.play-scoring-info-container {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    width: max-content;
    max-width: 220px;
    z-index: 20;
}

.play-tools-flyout {
    max-height: min(86vh, 820px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(244, 1, 43, 0.65) rgba(255, 255, 255, 0.06);
}

.play-tools-flyout--inventory,
.play-tools-flyout--challenges {
    max-width: 760px;
}

.play-tools-flyout--howto {
    width: min(980px, calc(100vw - 40px));
    max-width: 980px;
}

.play-howto-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

/* How to Play: link to the YouTube tutorial */
.play-howto-video-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: linear-gradient(100deg, rgba(244, 1, 43, 0.14) 0%, rgba(255, 255, 255, 0.03) 60%);
    color: #c4c4c4;
    font-size: 0.8rem;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.play-howto-video-link strong {
    color: #fff;
    font-weight: 600;
}

.play-howto-video-link .fa-youtube {
    color: #f4012b;
    font-size: 1.25rem;
}

.play-howto-video-link-ext {
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.6;
}

.play-howto-video-link:hover,
.play-howto-video-link:focus-visible {
    border-color: rgba(244, 1, 43, 0.55);
    color: #fff;
    outline: none;
}

.play-howto-steps-grid--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.play-howto-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(10, 10, 10, 0.5));
    overflow: hidden;
}

.play-howto-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.75rem 0.75rem 0.55rem;
}

.play-howto-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(244, 1, 43, 0.55);
    background: rgba(244, 1, 43, 0.16);
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.play-howto-title {
    margin: 0;
    color: #fff;
    font-size: 0.84rem;
    letter-spacing: 0.25px;
    font-family: 'Apex', sans-serif;
}

.play-howto-desc {
    margin: 0.32rem 0 0;
    color: #c4c4c4;
    font-size: 0.76rem;
    line-height: 1.45;
}

.play-howto-screenshot-wrap {
    padding: 0 0.75rem 0.75rem;
}

.play-howto-screenshot-frame {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    overflow: hidden;
    background: #0f0f0f;
}

.play-howto-screenshot-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 26px;
    padding: 0 0.55rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.play-howto-screenshot-bar .qhs-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.play-howto-screenshot-bar .qhs-dot.red { background: #f87171; }
.play-howto-screenshot-bar .qhs-dot.yellow { background: #fbbf24; }
.play-howto-screenshot-bar .qhs-dot.green { background: #34d399; }

.play-howto-screenshot-bar .qhs-url {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.64rem;
}

.play-howto-img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.play-howto-footer-note {
    margin: 0.85rem 0 0;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: #b9b9b9;
    font-size: 0.78rem;
    line-height: 1.5;
}

.play-howto-footer-note i {
    color: #f4012b;
    margin-top: 0.08rem;
}

.play-tools-flyout--inventory {
    width: auto;
    min-width: min(260px, calc(100vw - 40px));
    max-width: min(760px, calc(100vw - 40px));
}

.play-tools-flyout--inventory > .ban-prefs-flyout-desc {
    font-size: 0.9rem;
    line-height: 1.5;
}

.play-tools-empty {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1.5rem;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    color: #777;
    text-align: center;
}

.play-tools-empty i {
    color: #f4012b;
    font-size: 1.7rem;
}

.play-tools-empty strong {
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.play-tools-empty span {
    max-width: 360px;
    font-size: 0.78rem;
    line-height: 1.45;
}

.play-tools-empty a {
    color: #f4012b;
    font-weight: 700;
    text-decoration: none;
}

.play-tools-empty a:hover,
.play-tools-empty a:focus {
    color: #ff4466;
    text-decoration: underline;
}

.play-tools-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.08);
    color: #fbbf24;
    font-size: 0.75rem;
    line-height: 1.35;
}

/* Inventory activation workflow modals (matches Rewards hub flow) */
.play-inventory-activate-overlay.rw-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10020;
    padding: 24px;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px);
}

.play-inventory-activate-overlay .rw-activate-flyout {
    position: relative;
    width: 100%;
    min-width: 360px;
    max-width: 460px;
    padding: 1.25rem 1.5rem 1.5rem;
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(26, 26, 26, 0.98) 0%, rgba(13, 13, 13, 0.99) 50%, rgba(8, 8, 8, 1) 100%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.18s ease;
}

.play-inventory-activate-overlay .rw-activate-flyout-header,
.play-shareplay-activate-overlay .rw-xp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.play-inventory-activate-overlay .rw-activate-flyout-title,
.play-shareplay-activate-overlay .rw-xp-modal-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.play-inventory-activate-overlay .rw-activate-flyout-title i,
.play-shareplay-activate-overlay .rw-xp-modal-title i {
    color: #f4012b;
    font-size: 0.65rem;
}

.play-inventory-activate-overlay .rw-activate-close-btn,
.play-shareplay-activate-overlay .rw-xp-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #444;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.play-inventory-activate-overlay .rw-activate-close-btn:hover,
.play-shareplay-activate-overlay .rw-xp-modal-close:hover {
    border-color: #666;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.play-inventory-activate-overlay .rw-activate-flyout-desc,
.play-inventory-activate-overlay .rw-activate-warning {
    color: #777;
    font-size: 0.78rem;
    line-height: 1.5;
}

.play-inventory-activate-overlay .rw-activate-flyout-desc {
    margin: 0 0 0.9rem;
}

.play-inventory-activate-overlay .rw-activate-item-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 11px 15px;
    border: 1px solid rgba(244, 1, 43, 0.2);
    border-radius: 10px;
    background: rgba(244, 1, 43, 0.07);
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.play-inventory-activate-overlay .rw-activate-warning {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0 0 18px;
}

.play-inventory-activate-overlay .rw-activate-warning i {
    flex-shrink: 0;
    margin-top: 1px;
    color: #f59e0b;
}

.play-inventory-activate-overlay .rw-modal-actions,
.play-shareplay-activate-overlay .rw-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.play-inventory-activate-overlay .rw-store-btn,
.play-shareplay-activate-overlay .rw-store-btn,
.play-inventory-activate-overlay .rw-modal-cancel,
.play-shareplay-activate-overlay .rw-modal-cancel {
    flex: 1;
    min-height: 38px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}

.play-inventory-activate-overlay .rw-store-btn,
.play-shareplay-activate-overlay .rw-store-btn {
    border: none;
    background: linear-gradient(135deg, #f4012b, #d60125);
    color: #fff;
}

.play-inventory-activate-overlay .rw-modal-cancel,
.play-shareplay-activate-overlay .rw-modal-cancel {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: #999;
}

.play-inventory-activate-overlay .rw-store-btn:hover,
.play-shareplay-activate-overlay .rw-store-btn:hover,
.play-inventory-activate-overlay .rw-modal-cancel:hover,
.play-shareplay-activate-overlay .rw-modal-cancel:hover {
    filter: brightness(1.08);
}

.play-shareplay-activate-overlay.rw-xp-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10021;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.play-shareplay-activate-overlay.rw-xp-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.play-shareplay-activate-overlay .rw-xp-modal-panel {
    width: 100%;
    max-width: 560px;
    padding: 1.5rem 1.75rem 1.75rem;
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(26, 26, 26, 0.98) 0%, rgba(13, 13, 13, 0.99) 50%, rgba(8, 8, 8, 1) 100%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    transition: transform 0.22s, opacity 0.22s;
}

.play-shareplay-activate-overlay.is-open .rw-xp-modal-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.play-shareplay-activate-overlay .rw-xp-modal-desc {
    margin: 0 0 1.1rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

.play-shareplay-activate-overlay .rw-xp-source-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.play-shareplay-activate-overlay .rw-xp-source-card {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.play-shareplay-activate-overlay .rw-xp-source-card--wide {
    grid-column: 1 / -1;
}

.play-shareplay-activate-overlay .rw-xp-source-icon {
    margin-bottom: 8px;
    color: #f4012b;
    font-size: 24px;
}

.play-shareplay-activate-overlay .rw-xp-source-name {
    color: #fff;
    font-weight: 800;
    font-size: 13px;
}

.play-shareplay-activate-overlay .rw-xp-source-value {
    margin-top: 3px;
    color: #f4012b;
    font-size: 12px;
    font-weight: 800;
}

.play-shareplay-activate-overlay .rw-xp-source-note {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    line-height: 1.45;
}

@media (max-width: 560px) {
    .play-inventory-activate-overlay .rw-activate-flyout {
        min-width: 0;
    }

    .play-shareplay-activate-overlay .rw-xp-source-grid,
    .play-inventory-activate-overlay .rw-modal-actions,
    .play-shareplay-activate-overlay .rw-modal-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

.play-modal-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 180px));
    gap: 0.75rem;
    justify-content: center;
}

.play-modal-inv-card {
    background: linear-gradient(160deg, rgba(24, 24, 31, 0.98), rgba(12, 12, 16, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.16s ease;
}

.play-modal-inv-card:hover {
    transform: translateY(-2px);
    border-color: rgba(244, 1, 43, 0.45);
    box-shadow: 0 8px 22px rgba(244, 1, 43, 0.1);
}

.play-modal-inv-card.is-active-item {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.14);
}

.play-modal-inv-card.has-active-type:not(.is-active-item) {
    opacity: 0.72;
    border-color: rgba(245, 158, 11, 0.28);
}

.play-modal-inv-art {
    --play-inv-art-rgb: 255, 255, 255;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(var(--play-inv-art-rgb), 0.16);
    background:
        linear-gradient(135deg, rgba(var(--play-inv-art-rgb), 0.23), rgba(var(--play-inv-art-rgb), 0.06) 42%, rgba(255, 255, 255, 0.04));
        rgba(255, 255, 255, 0.04);
}

.play-modal-inv-art--xp { --play-inv-art-rgb: 244, 1, 43; }
.play-modal-inv-art--pq { --play-inv-art-rgb: 78, 214, 132; }
.play-modal-inv-art--rename { --play-inv-art-rgb: 126, 73, 178; }

.play-modal-inv-art img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}

.play-modal-inv-art.play-modal-inv-art--rename > img {
    width: 111px;
    height: 111px;
}

.play-modal-inv-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    background: rgba(34, 197, 94, 0.92);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.play-modal-inv-body {
    padding: 0.7rem;
    text-align: center;
    flex: 1;
}

.play-modal-inv-name {
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.6px;
    line-height: 1.25;
    text-transform: uppercase;
}

.play-modal-inv-status {
    margin-top: 0.45rem;
    color: #777;
    font-size: 0.68rem;
    line-height: 1.35;
}

.play-modal-inv-effect {
    margin-top: 0.35rem;
    color: #f4012b;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.play-modal-inv-meta {
    display: grid;
    gap: 0.28rem;
    margin-top: 0.55rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.64rem;
    line-height: 1.3;
    text-align: left;
}

.play-modal-inv-meta > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    text-align: center;
}

.play-modal-inv-meta i {
    color: rgba(244, 1, 43, 0.82);
    font-size: 0.58rem;
    width: 11px;
    flex-shrink: 0;
}

.play-modal-inv-countdown {
    color: #22c55e;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.play-modal-inv-foot {
    padding: 0 0.7rem 0.75rem;
}

.play-modal-inv-btn {
    width: 100%;
    min-height: 34px;
    border: 1px solid rgba(244, 1, 43, 0.45);
    border-radius: 8px;
    background: linear-gradient(135deg, #f4012b 0%, #c0011f 100%);
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.65px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.16s ease;
}

.play-modal-inv-btn:hover:not(:disabled),
.play-modal-inv-btn:focus-visible:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(244, 1, 43, 0.24);
    outline: none;
}

.play-modal-inv-btn:disabled {
    cursor: not-allowed;
    opacity: 0.78;
}

.play-modal-inv-btn--active {
    border-color: rgba(34, 197, 94, 0.45);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

@media (max-width: 480px) {
    .play-tools-flyout--inventory {
        min-width: 0;
        width: 100%;
    }

    .play-modal-inventory-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.play-modal-challenge-list {
    display: grid;
    gap: 0.75rem;
}

.play-modal-challenge-card {
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(24, 24, 31, 0.98), rgba(13, 13, 18, 0.98));
}

.play-modal-challenge-card.is-completed {
    border-color: rgba(34, 197, 94, 0.35);
    background: linear-gradient(160deg, rgba(20, 28, 22, 0.98), rgba(12, 17, 14, 0.98));
}

.play-modal-challenge-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.play-modal-challenge-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(244, 1, 43, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.play-modal-challenge-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.play-modal-challenge-icon i {
    color: #f4012b;
    font-size: 1.4rem;
}

.play-modal-challenge-title {
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.6px;
    line-height: 1.3;
}

.play-modal-challenge-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.play-modal-challenge-meta span {
    background: rgba(244, 1, 43, 0.12);
    color: #f4012b;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.play-modal-challenge-desc {
    margin: 0.75rem 0;
    color: #888;
    font-size: 0.9rem;
    line-height: 1.45;
}

.play-modal-challenge-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
    color: #aaa;
    font-size: 0.82rem;
    font-weight: 700;
}

.play-modal-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    transform: scaleY(1.25);
    transform-origin: center;
}

.play-modal-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f4012b, #ff4d6d);
}

@media (max-width: 760px) {
    .play-card-menu-group--left {
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
    }

    .play-card-menu-group--right {
        grid-column: 3;
        grid-row: 1;
        justify-self: start;
    }

    .play-card-menu-group {
        width: auto;
        max-width: none;
        gap: 0.32rem;
    }

    .play-card-menu-btn {
        flex: 0 0 auto;
        width: 34px;
        min-width: 34px;
        min-height: 34px;
        padding: 0;
        gap: 0;
        border-radius: 10px;
    }

    .play-card-menu-btn span {
        display: none;
    }

    .play-card-menu-btn i {
        font-size: 0.8rem;
    }

    /* Legend Bans button — show icon + mini preview on mobile */
    .play-card-menu-btn--legend-bans {
        width: auto;
        min-width: 34px;
        padding: 0 0.35rem 0 0;
        gap: 0.15rem;
    }

    .play-card-menu-btn--legend-bans .legend-ban-btn-label {
        gap: 0;
    }

    .play-card-menu-btn--legend-bans .legend-ban-btn-label span {
        display: none;
    }

    .play-card-menu-btn--legend-bans .legend-ban-btn-label i {
        font-size: 0.75rem;
    }

    .play-card-menu-btn--legend-bans .legend-ban-btn-preview span {
        display: inline-flex;
    }

    .legend-ban-btn-chip {
        width: 18px;
        height: 22px;
        border-radius: 3px;
    }

    .legend-ban-btn-empty-mark {
        width: 18px;
        height: 18px;
        border-radius: 4px;
        font-size: 0.4rem;
    }

    /* Queue Settings button — icon + mini status on mobile */
    .play-card-menu-btn--queue-settings {
        width: auto;
        min-width: 34px;
        padding: 0 0.35rem 0 0;
        gap: 0.15rem;
    }

    .play-card-menu-btn--queue-settings .queue-settings-btn-label {
        gap: 0;
    }

    .play-card-menu-btn--queue-settings .queue-settings-btn-label span {
        display: none;
    }

    .play-card-menu-btn--queue-settings .queue-settings-btn-label i {
        font-size: 0.75rem;
    }

    .queue-settings-btn-status {
        gap: 0.2rem;
    }

    .queue-settings-btn-chip {
        width: 18px;
        height: 18px;
        font-size: 0.45rem;
    }

    .play-tools-flyout {
        min-width: 0;
        padding: 1rem;
    }

    /* Queue Settings modal rows stack on small screens */
    .teammate-prefs-modal-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .auto-join-launch-row {
        flex-direction: column;
        align-items: stretch;
    }

    .auto-join-launch-input {
        width: 100%;
    }
}

/* Team Formation */
.team-formation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.teammate-slot {
    width: 154px;
    height: 192px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.teammate-slot.empty {
    opacity: 0.6;
}

.slot-avatar {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot-avatar i {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.3);
}

.slot-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Player Card (Center) */
.player-card-main {
    width: 208px;
    height: 256px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: visible;
}

.premium-badge-card {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.premium-badge-card.premium-badge-corner {
    left: auto;
    right: 8px;
    transform: none;
}

.premium-badge-card i {
    font-size: 0.7rem;
}

.play-pq-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 128px;
    min-height: 21px;
    padding: 4px 8px;
    border-radius: 5px;
    background: linear-gradient(135deg, rgba(255, 213, 74, 0.2), rgba(245, 158, 11, 0.16));
    border: 1px solid rgba(251, 191, 36, 0.48);
    color: #fbbf24;
    font-family: 'Apex', sans-serif;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
    z-index: 13;
    opacity: 1;
    max-height: 32px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.14);
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease, max-height 0.25s ease, padding 0.25s ease, border-width 0.25s ease;
    animation: play-pq-badge-pulse 3s ease-in-out infinite;
}

.play-pq-badge--hidden {
    opacity: 0;
    transform: translateY(4px) scale(0.96);
    max-height: 0;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-width: 0;
    border-bottom-width: 0;
    pointer-events: none;
    filter: blur(1px);
    animation: none;
}

.play-pq-badge i {
    font-size: 0.55rem;
    flex-shrink: 0;
}

@keyframes play-pq-badge-pulse {
    0%, 100% { opacity: 0.72; box-shadow: 0 0 8px rgba(251, 191, 36, 0.1); }
    50% { opacity: 1; box-shadow: 0 0 14px rgba(251, 191, 36, 0.28); }
}

/* Comms Toggle Button - Top Left of Player Card */
.comms-toggle-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 12;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(220, 38, 38, 0.4);
    background: rgba(220, 38, 38, 0.12);
    color: rgba(248, 113, 113, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    font-size: 0.65rem;
}

.comms-toggle-btn:hover {
    background: rgba(220, 38, 38, 0.22);
    border-color: rgba(220, 38, 38, 0.6);
    color: #f87171;
    transform: scale(1.1);
}

.comms-toggle-btn:active {
    transform: scale(0.9);
    transition: transform 0.08s ease;
}

.comms-toggle-btn.active {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.5);
    color: #34d399;
    animation: comms-activate 0.3s ease;
}

.comms-toggle-btn.active:hover {
    background: rgba(16, 185, 129, 0.28);
    border-color: rgba(16, 185, 129, 0.65);
    color: #6ee7b7;
    transform: scale(1.1);
}

.comms-toggle-btn.active:active {
    transform: scale(0.9);
    transition: transform 0.08s ease;
}

@keyframes comms-activate {
    0%   { transform: scale(0.9); }
    50%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Comms Toggle - Locked (admin forced off) */
.comms-toggle-btn.locked {
    background: rgba(100, 100, 100, 0.15);
    border-color: rgba(100, 100, 100, 0.3);
    color: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

.comms-toggle-btn.locked:hover {
    background: rgba(100, 100, 100, 0.2);
    border-color: rgba(100, 100, 100, 0.4);
    color: #666;
    transform: none;
    box-shadow: none;
}

.comms-toggle-btn.locked:active {
    transform: none;
}

.comms-toggle-btn.locked::after {
    color: #f87171;
    border-color: rgba(220, 38, 38, 0.3);
}

/* Comms Toggle - Slide-out Tooltip (appears to the right) */
.comms-toggle-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: rgba(0, 0, 0, 0.85);
    color: #f87171;
    font-family: 'URW Dock', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(220, 38, 38, 0.3);
    z-index: 20;
}

.comms-toggle-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.comms-toggle-btn.active::after {
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

/* Language selector — circular toggle (mirrors comms-toggle-btn) */
.comms-language-selector {
    position: absolute;
    top: 8px;
    left: 40px;
    z-index: 10;
}

.lang-toggle-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.12);
    color: rgba(147, 197, 253, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-family: 'Apex', sans-serif;
}

.lang-toggle-btn:hover {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.6);
    color: #93c5fd;
    transform: scale(1.1);
}

.lang-toggle-btn:active {
    transform: scale(0.9);
    transition: transform 0.08s ease;
}

.lang-toggle-btn[data-lang="es"] {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.12);
    color: rgba(253, 224, 71, 0.9);
}

.lang-toggle-btn[data-lang="es"]:hover {
    background: rgba(251, 191, 36, 0.22);
    border-color: rgba(251, 191, 36, 0.6);
    color: #fde047;
    transform: scale(1.1);
}

/* Tooltip */
.lang-toggle-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: rgba(0, 0, 0, 0.85);
    color: #93c5fd;
    font-family: 'URW Dock', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(59, 130, 246, 0.3);
    z-index: 20;
}

.lang-toggle-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.lang-toggle-btn[data-lang="es"]::after {
    color: #fde047;
    border-color: rgba(251, 191, 36, 0.3);
}

.lang-flag-img {
    width: 16px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.player-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(244, 1, 43, 0.1) 0%, transparent 50%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.player-card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
}

.player-avatar {
    position: relative;
    margin-bottom: var(--space-sm);
    overflow: hidden;
}

.player-avatar img,
.player-avatar .avatar-placeholder {
    width: 96px;
    height: 96px;
    min-width: 96px;
    min-height: 96px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.player-avatar .avatar-placeholder {
    background: var(--bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Apex', sans-serif;
    font-size: 1.4rem;
    color: #fff;
}

.avatar-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--bg-accent);
    border-radius: 50%;
}

.player-name {
    font-family: 'Apex', sans-serif;
    font-size: 1rem;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.player-apex-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-sm);
}

.division-badge {
    font-size: 0.7rem;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: var(--space-sm);
}

.division-badge.open {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.division-badge.lower {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Platform Badge */
.platform-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.platform-badge i {
    font-size: 0.9rem;
    color: #fff;
}

.platform-badge i.fa-steam { color: #1b2838; background: #fff; padding: 4px; border-radius: 50%; }
.platform-badge i.fa-playstation { color: #003791; background: #fff; padding: 4px; border-radius: 50%; }
.platform-badge i.fa-xbox { color: #107C10; background: #fff; padding: 4px; border-radius: 50%; }
.platform-badge i.fa-gamepad { color: #e60012; background: #fff; padding: 4px; border-radius: 50%; }

/* ===== PLAYER TAGS - Profile Style ===== */
.player-tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0.5rem 0;
}

.tag {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Apex', sans-serif;
    font-size: 0.65rem;
}

.tag-label {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-value {
    font-weight: bold;
    color: #fff;
}

.tag-rank-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* Leaderboard Rank Tag - Red */
.tag-rank {
    background: linear-gradient(135deg, rgba(244, 1, 43, 0.3), rgba(244, 1, 43, 0.15));
    border: 1px solid rgba(244, 1, 43, 0.5);
}
.tag-rank .tag-value { color: #f4012b; }

/* Level Tag - Yellow/Gold */
.tag-level {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.15));
    border: 1px solid rgba(255, 215, 0, 0.5);
}
.tag-level .tag-value { color: #ffd700; }

/* Platform Tag */
.tag-platform {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 5px 8px;
}
.tag-platform i {
    font-size: 1rem;
}
.tag-platform .fa-steam { color: #66c0f4; }
.tag-platform .fa-playstation { color: #006fcd; }
.tag-platform .fa-xbox { color: #107c10; }
.tag-platform .fa-gamepad { color: #e60012; }

/* Region Tag */
.tag-region {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
}
.tag-region .tag-value { color: #4ade80; }

/* ===== MMR CIRCULAR PROGRESS DISPLAY ===== */
.mmr-circle-display {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.25rem;
    cursor: default;
}

.mmr-circle-label {
    font-family: 'URW', 'Apex', sans-serif;
    font-size: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    margin-bottom: 0.15rem;
}

.mmr-circle-row {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    position: relative;
}

.mmr-circle-ring {
    width: 44px;
    height: 44px;
    transform: rotate(-90deg);
}

.mmr-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 4;
}

.mmr-circle-progress {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease;
    stroke-dasharray: 138.2;
    stroke-dashoffset: calc(138.2 - (138.2 * var(--progress) / 100));
}

.mmr-circle-inner {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mmr-circle-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.mmr-circle-inner .unranked-icon {
    width: 18px;
    height: 18px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #777;
    line-height: 18px;
    text-align: center;
    filter: none;
    display: block;
}

/* Placement: the tier isn't published yet, so the icon slot carries a "?" and the
   value shows the game counter instead of an MMR number. */
.mmr-circle-inner .mmr-circle-placeholder {
    width: 18px;
    height: 18px;
    font-family: 'Apex', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #8a8a8a;
    display: block;
}

.mmr-circle-display.is-provisional .mmr-circle-value { color: #8a8a8a; }
.mmr-circle-display.is-provisional .mmr-circle-label { color: rgba(255, 255, 255, 0.4); }
.mmr-circle-display.is-provisional .mmr-circle-bg { stroke: rgba(255, 255, 255, 0.14); }

.mmr-circle-value {
    font-family: 'Apex', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #888;
}

/* Tier colors for circle progress */
.mmr-circle-display.tier-1 .mmr-circle-progress { stroke: #9ca3af; }
.mmr-circle-display.tier-1 .mmr-circle-value { color: #9ca3af; }

.mmr-circle-display.tier-2 .mmr-circle-progress { stroke: #22c55e; }
.mmr-circle-display.tier-2 .mmr-circle-value { color: #22c55e; }

.mmr-circle-display.tier-3 .mmr-circle-progress { stroke: #3b82f6; }
.mmr-circle-display.tier-3 .mmr-circle-value { color: #3b82f6; }

.mmr-circle-display.tier-4 .mmr-circle-progress { stroke: #a855f7; }
.mmr-circle-display.tier-4 .mmr-circle-value { color: #a855f7; }

.mmr-circle-display.tier-5 .mmr-circle-progress { stroke: #f97316; }
.mmr-circle-display.tier-5 .mmr-circle-value { color: #f97316; }

.mmr-circle-display.tier-6 .mmr-circle-progress { stroke: #ef4444; }
.mmr-circle-display.tier-6 .mmr-circle-value { color: #ef4444; }

/* Glow effect on the circle for higher tiers */
.mmr-circle-display.tier-4 .mmr-circle-progress { filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.4)); }
.mmr-circle-display.tier-5 .mmr-circle-progress { filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.4)); }
.mmr-circle-display.tier-6 .mmr-circle-progress { filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.5)); }

/* Apex Rank Tags - Color coded by rank */
.tag-apex-rank {
    gap: 5px;
}
.tag-apex-rank.rank-rookie {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.25), rgba(205, 127, 50, 0.1));
    border: 1px solid rgba(205, 127, 50, 0.4);
}
.tag-apex-rank.rank-rookie .tag-value { color: #cd7f32; }

.tag-apex-rank.rank-bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.25), rgba(205, 127, 50, 0.1));
    border: 1px solid rgba(205, 127, 50, 0.4);
}
.tag-apex-rank.rank-bronze .tag-value { color: #cd7f32; }

.tag-apex-rank.rank-silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.25), rgba(192, 192, 192, 0.1));
    border: 1px solid rgba(192, 192, 192, 0.4);
}
.tag-apex-rank.rank-silver .tag-value { color: #c0c0c0; }

.tag-apex-rank.rank-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.4);
}
.tag-apex-rank.rank-gold .tag-value { color: #ffd700; }

.tag-apex-rank.rank-platinum {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.25), rgba(0, 191, 255, 0.1));
    border: 1px solid rgba(0, 191, 255, 0.4);
}
.tag-apex-rank.rank-platinum .tag-value { color: #00bfff; }

.tag-apex-rank.rank-diamond {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.25), rgba(138, 43, 226, 0.1));
    border: 1px solid rgba(0, 191, 255, 0.4);
}
.tag-apex-rank.rank-diamond .tag-value { color: #00bfff; }

.tag-apex-rank.rank-master {
    background: linear-gradient(135deg, rgba(148, 0, 211, 0.25), rgba(148, 0, 211, 0.1));
    border: 1px solid rgba(148, 0, 211, 0.4);
}
.tag-apex-rank.rank-master .tag-value { color: #9400d3; }

.tag-apex-rank.rank-predator,
.tag-apex-rank.rank-apex {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.25), rgba(255, 69, 0, 0.1));
    border: 1px solid rgba(255, 0, 0, 0.4);
}
.tag-apex-rank.rank-predator .tag-value,
.tag-apex-rank.rank-apex .tag-value { color: #ff4500; }

.tag-apex-rank.rank-unranked {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}
.tag-apex-rank.rank-unranked .tag-value { color: #888; }

/* Queue Button */
.queue-button-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 204px minmax(0, 1fr);
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.55rem;
    width: min(100%, 820px);
    margin-bottom: var(--space-md);
}

.queue-button-area > .queue-btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 204px;
    max-width: 204px;
    height: 58px;
    border-radius: 0;
    --queue-button-corner-cut: 18px;
    clip-path: polygon(0 0, calc(100% - var(--queue-button-corner-cut)) 0, 100% var(--queue-button-corner-cut), 100% 100%, var(--queue-button-corner-cut) 100%, 0 calc(100% - var(--queue-button-corner-cut)));
    -webkit-clip-path: polygon(0 0, calc(100% - var(--queue-button-corner-cut)) 0, 100% var(--queue-button-corner-cut), 100% 100%, var(--queue-button-corner-cut) 100%, 0 calc(100% - var(--queue-button-corner-cut)));
}

.queue-button-area > .play-pq-badge {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    align-self: start;
}

.queue-button-area > .play-pq-badge.play-pq-badge--hidden {
    display: none;
}

@media (max-width: 760px) {
    .queue-button-area {
        grid-template-columns: minmax(0, 1fr) clamp(172px, 58vw, 204px) minmax(0, 1fr);
        justify-items: stretch;
        justify-content: center;
        width: 100%;
        column-gap: 0.4rem;
    }

    .queue-button-area > .queue-btn,
    .queue-button-area > .play-pq-badge {
        grid-column: 2;
    }

    .queue-button-area > .queue-btn {
        grid-row: 1;
        width: clamp(172px, 58vw, 204px);
        max-width: clamp(172px, 58vw, 204px);
        height: 56px;
        --queue-button-corner-cut: 16px;
    }
    .queue-button-area > .play-pq-badge { grid-row: 2; }

    .queue-btn:not(.queue-button-area > .queue-btn) {
        width: clamp(150px, 46vw, 208px);
    }
}

.queue-btn {
    width: 208px;
    height: 66px;
    padding: var(--space-xs) var(--space-lg);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Apex', sans-serif;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Animated background shine effect */
.queue-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.queue-btn:hover::before {
    left: 100%;
}

.queue-btn .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    position: relative;
    z-index: 1;
}

.queue-btn .btn-text {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.queue-btn .btn-subtext {
    display: block;
    font-family: 'URW Dock', sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: none;
    letter-spacing: 0.5px;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

/* ============ READY STATE ============ */
.queue-button-area > .queue-btn.ready {
    border-radius: 0;
}

.queue-btn.ready {
    background: linear-gradient(135deg, #f4012b 0%, #d00124 50%, #a00020 100%);
    color: #fff;
    box-shadow:
        0 8px 32px rgba(244, 1, 43, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 2px 0 rgba(255, 255, 255, 0.1) inset;
}

.queue-btn.ready::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0;
    padding: 2px;
    clip-path: inherit;
    -webkit-clip-path: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.42), transparent 45%, rgba(255,255,255,0.14));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.queue-btn.ready:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(244, 1, 43, 0.5),
        0 0 60px rgba(244, 1, 43, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.queue-btn.ready:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow:
        0 4px 20px rgba(244, 1, 43, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.queue-btn.ready.party-waiting-leader,
.queue-btn.ready.party-needs-teammate,
.queue-btn.ready.party-waiting-teammate,
.queue-btn.ready.party-blocked,
.queue-btn.ready.party-waiting-leader:hover,
.queue-btn.ready.party-needs-teammate:hover,
.queue-btn.ready.party-waiting-teammate:hover,
.queue-btn.ready.party-blocked:hover,
.queue-btn.ready.party-waiting-leader:active,
.queue-btn.ready.party-needs-teammate:active,
.queue-btn.ready.party-waiting-teammate:active,
.queue-btn.ready.party-blocked:active {
    background: linear-gradient(135deg, #2a2d34 0%, #1c1f26 55%, #14171d 100%);
    color: rgba(210, 214, 222, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.queue-btn.ready.party-waiting-leader::after,
.queue-btn.ready.party-needs-teammate::after,
.queue-btn.ready.party-waiting-teammate::after,
.queue-btn.ready.party-blocked::after {
    display: none;
}

.queue-btn.ready.party-waiting-leader i,
.queue-btn.ready.party-needs-teammate i,
.queue-btn.ready.party-waiting-teammate i,
.queue-btn.ready.party-blocked i {
    color: rgba(148, 163, 184, 0.72);
    filter: none;
    animation: none;
}

.queue-btn.ready.party-waiting-leader .btn-text,
.queue-btn.ready.party-needs-teammate .btn-text,
.queue-btn.ready.party-waiting-teammate .btn-text,
.queue-btn.ready.party-blocked .btn-text {
    color: rgba(210, 214, 222, 0.82);
}

.queue-btn.ready.party-blocked,
.queue-btn.ready.party-blocked:hover,
.queue-btn.ready.party-blocked:active {
    border-color: rgba(245, 158, 11, 0.48);
    color: rgba(255, 237, 213, 0.9);
}

.queue-btn.ready.party-blocked i,
.queue-btn.ready.party-blocked .btn-text {
    color: rgba(255, 237, 213, 0.92);
}

.queue-btn.ready.signup-disabled,
.queue-btn.ready.signup-disabled:hover,
.queue-btn.ready.signup-disabled:active,
.queue-btn.ready:disabled,
.queue-btn.ready:disabled:hover,
.queue-btn.ready:disabled:active {
    background: linear-gradient(135deg, #2a2d34 0%, #1c1f26 55%, #14171d 100%);
    color: rgba(210, 214, 222, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.queue-btn.ready.signup-disabled::after,
.queue-btn.ready:disabled::after {
    display: none;
}

.queue-btn.ready.signup-disabled i,
.queue-btn.ready.signup-disabled .btn-text,
.queue-btn.ready:disabled i,
.queue-btn.ready:disabled .btn-text {
    color: rgba(148, 163, 184, 0.72);
    filter: none;
    animation: none;
}

.queue-btn.ready.signup-disabled {
    cursor: pointer;
}

.queue-btn.ready.signup-disabled:focus-visible {
    outline: 2px solid rgba(148, 163, 184, 0.65);
    outline-offset: 4px;
}

.queue-btn.ready i {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============ SEARCHING STATE ============ */
.queue-btn.searching {
    background: linear-gradient(135deg, #12342d 0%, #16473c 52%, #1a5a4b 100%);
    color: #fff;
    border: 2px solid rgba(94, 234, 212, 0.22);
    position: relative;
    box-shadow:
        0 8px 28px rgba(5, 45, 38, 0.36),
        0 0 0 1px rgba(148, 255, 226, 0.12) inset,
        0 2px 0 rgba(255, 255, 255, 0.08) inset;
}

.queue-btn.searching::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0;
    clip-path: inherit;
    -webkit-clip-path: inherit;
    background: linear-gradient(135deg, rgba(148, 255, 226, 0.18), transparent 46%, rgba(52, 211, 153, 0.12));
    opacity: 0.72;
    pointer-events: none;
}

.queue-btn.searching .btn-text {
    color: rgba(232, 255, 248, 0.94);
    text-shadow: 0 0 10px rgba(45, 212, 191, 0.22);
}

.queue-btn.searching .btn-subtext.btn-queue-count {
    color: rgba(210, 255, 240, 0.85);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(45, 212, 191, 0.2);
}

.queue-btn.searching .btn-queue-count i {
    margin-right: 4px;
    font-size: 0.6rem;
    color: rgba(148, 255, 226, 0.9);
}


@keyframes pulse-border {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.search-animation {
    display: flex;
    gap: 4px;
}

.search-animation span {
    width: 6px;
    height: 6px;
    background: #8eead2;
    border-radius: 50%;
    animation: search-dot-pulse 1.6s infinite ease-in-out both;
    box-shadow: 0 0 6px rgba(45, 212, 191, 0.34);
}

.search-animation span:nth-child(1) { animation-delay: -0.32s; }
.search-animation span:nth-child(2) { animation-delay: -0.16s; }

@keyframes search-dot-pulse {
    0%, 80%, 100% {
        transform: scale(0.72);
        opacity: 0.46;
    }
    40% {
        transform: scale(1);
        opacity: 0.9;
    }
}

/* ============ DISABLED STATE ============ */
.queue-btn.disabled {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #666;
    cursor: not-allowed;
    border: 1px solid #333;
    box-shadow: none;
}

.queue-btn.disabled::before {
    display: none;
}

.queue-btn.disabled i {
    opacity: 0.4;
    color: #555;
}

.queue-btn.disabled .btn-subtext {
    color: #444;
}

/* Queue Closed State (Admin closed) */
.queue-btn.disabled.queue-closed {
    background: linear-gradient(135deg, #1a1510 0%, #0d0a05 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.queue-btn.disabled.queue-closed i {
    color: #f59e0b;
    opacity: 0.7;
}

.queue-btn.disabled.queue-closed .btn-text {
    color: #f59e0b;
}

.queue-btn.disabled.queue-closed .btn-subtext {
    color: rgba(245, 158, 11, 0.6);
}

/* Bottom Stats Wrapper — DEAD (the bottom-right sponsor slider was retired in
   favour of the per-event sponsor strip on the Play event card). Kept in place
   in case a fixed bottom-right panel returns; nothing renders it today. */
.bottom-stats-wrapper {
    position: fixed;
    bottom: 14px;
    right: var(--space-md, 20px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    z-index: 100;
}

/* Rank MMR Progress Bar (below queue stats panel) */
.rank-mmr-float {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
    box-sizing: border-box;
    min-height: 52px;
}

.rank-mmr-float-end {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.rank-mmr-float-icon {
    width: 24px;
    height: 24px;
}

.rank-mmr-float-label {
    font-family: 'Apex', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #888;
}

.rank-mmr-float-track {
    flex: 1;
    min-width: 80px;
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    margin: 0 6px;
    position: relative;
    overflow: visible;
}

.rank-mmr-float-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
    z-index: 1;
}

.rank-mmr-float-value {
    position: absolute;
    right: 0;
    top: 12px;
    font-family: 'Apex', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    transform: translateX(50%);
}

/* Last MMR Change Overlay */
.rank-mmr-float-change {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 4px;
    transition: left 0.5s ease, width 0.5s ease;
    z-index: 2;
}

.rank-mmr-float-change.gain {
    background: #22c55e;
}

.rank-mmr-float-change.loss {
    background: #ef4444;
}

/* Triangle Arrow at current MMR position */
.rank-mmr-float-arrow {
    position: absolute;
    top: -7px;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    transition: left 0.5s ease;
    transform: translateX(-50%);
}

.rank-mmr-float-arrow.gain {
    border-top: 7px solid #22c55e;
    filter: drop-shadow(0 0 3px rgba(34, 197, 94, 0.6));
}

.rank-mmr-float-arrow.loss {
    border-top: 7px solid #ef4444;
    filter: drop-shadow(0 0 3px rgba(239, 68, 68, 0.6));
}

/* Change label tooltip */
.rank-mmr-float-change-label {
    position: absolute;
    top: -22px;
    font-family: 'Apex', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    white-space: nowrap;
    transform: translateX(-50%);
    z-index: 4;
    transition: left 0.5s ease, opacity 0.3s ease;
    pointer-events: none;
}

.rank-mmr-float-change-label.gain {
    color: #22c55e;
}

.rank-mmr-float-change-label.loss {
    color: #ef4444;
}

/* MMR Float Info Link (bottom-left of slide, matching scoring link level) */
.mmr-float-info-link {
    position: absolute;
    left: 0;
    bottom: 2px;
    z-index: 5;
}

/* MMR Ladder Explainer Overlay (matches ban-prefs-overlay) */
.mmr-ladder-explainer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.mmr-ladder-flyout {
    max-width: 700px;
    width: 100%;
}

.mmr-ladder-flyout .rank-ladder-track {
    margin: 0.5rem 0;
}

.mmr-ladder-flyout .rank-ladder-bands {
    margin-top: 0.5rem;
}

/* MMR Float Widget (stacked above queue-stats-panel, width matches via stretch) */
.mmr-float-widget {
    width: 100%;
}

.mmr-float-widget .rank-mmr-float {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* MMR float slide inside promo box */
.mmr-float-slide {
    flex-direction: column;
    justify-content: center;
    padding: 8px 10px;
    box-sizing: border-box;
    height: 100%;
}

.rank-mmr-float.tier-unranked {
    padding: 8px 14px;
}

.rank-mmr-float-unranked {
    font-size: 0.7rem;
    color: #888;
    font-style: italic;
}

/* Tier fill colours for float bar */
.rank-mmr-float.tier-1  .rank-mmr-float-fill { background: #9ca3af; }
.rank-mmr-float.tier-2  .rank-mmr-float-fill { background: #22c55e; }
.rank-mmr-float.tier-3  .rank-mmr-float-fill { background: #3b82f6; }
.rank-mmr-float.tier-4  .rank-mmr-float-fill { background: #a855f7; }
.rank-mmr-float.tier-5  .rank-mmr-float-fill { background: #f97316; }
.rank-mmr-float.tier-6  .rank-mmr-float-fill { background: #ef4444; }

/* Queue Stats Panel */
.queue-stats-panel {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    background: transparent;
    transition: all 0.2s ease;
    min-width: 0;
}

.stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    color: var(--bg-accent);
    font-size: 0.8rem;
}

.stat-value {
    font-family: 'Apex', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Divider between the global IN QUEUE and ACTIVE MATCHES counters */
.queue-stats-panel .stat-divider {
    width: 1px;
    height: 32px;
    align-self: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
}

/* Gated single-band live matches counter — matches the band queue card sizing */
.queue-stats-panel.has-bands .stat-live-matches {
    padding: 0.5rem 0.75rem;
}

.queue-stats-panel.has-bands .stat-live-matches .stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.queue-stats-panel.has-bands .stat-live-matches .stat-value {
    font-size: 1.2rem;
}

.queue-stats-panel.has-bands .stat-live-matches .stat-label {
    white-space: nowrap;
}

/* Per-band queue counters (lobby bands enabled) — card-style selector */
.queue-stats-panel.has-bands {
    gap: 0;
}

.stat-band-group {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex: 1;
    position: relative;
}

/* ── Base band item (card/tab style) ────────────────────────── */
.stat-band-item {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: opacity 0.2s ease;
    cursor: default;
    position: relative;
    min-width: 0;
}

.stat-band-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, #f4012b 0%, #d00124 100%);
    box-shadow: 0 4px 15px rgba(244, 1, 43, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.stat-band-item > * {
    position: relative;
    z-index: 1;
}

.stat-band-group .stat-band-item + .stat-band-item {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.stat-band-item .stat-icon {
    background: none;
    flex-shrink: 0;
}

.stat-band-item .stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-band-item .stat-value {
    font-size: 1.2rem;
}

.stat-band-item .stat-label {
    white-space: nowrap;
}

/* ── Eligible (clickable, not yet selected) ─────────────────── */
.stat-band-item.is-eligible {
    cursor: pointer;
}

.stat-band-item.is-eligible:hover {
    /* No hover effect — clean and minimal */
}

/* ── Selected (player's active band) ────────────────────────── */
.stat-band-item.is-player-band::before {
    opacity: 1;
}

.stat-band-item.is-player-band .stat-label {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
}

/* ── Active band corner indicator (dot + "ACTIVE" label) ───── */
.band-active-indicator {
    position: absolute;
    top: 0.28rem;
    right: 0.36rem;
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    z-index: 2;
    pointer-events: none;
}

.band-active-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 12px rgba(244, 1, 43, 0.7);
    animation: band-dot-pulse 2s ease-in-out infinite;
}

@keyframes band-dot-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(255, 255, 255, 0.7), 0 0 8px rgba(244, 1, 43, 0.5); }
    50%      { box-shadow: 0 0 8px rgba(255, 255, 255, 1),   0 0 16px rgba(244, 1, 43, 0.9); }
}

/* ── Between-band switch toggle (circular swap icon) ──────── */
.band-switch-toggle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.band-switch-toggle i {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s ease;
}

.band-switch-toggle:hover {
    border-color: rgba(244, 1, 43, 0.5);
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 0 10px rgba(244, 1, 43, 0.25);
    transform: translate(-50%, -50%) scale(1.1);
}

.band-switch-toggle:hover i {
    color: rgba(244, 1, 43, 0.9);
}

.band-switch-toggle:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* ── Locked (not in player's MMR range) ─────────────────────── */
.stat-band-item.is-other {
    opacity: 0.35;
    cursor: not-allowed;
}

.stat-band-item.is-other:hover {
    opacity: 0.45;
}

/* Tier icon + direction arrows inside band queue counters */
.band-tier-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
}

.band-tier-icon-group {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.band-tier-arrow {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 0;
    line-height: 1;
}

/* ── Active matches line under panel ─────────────────────────── */
.queue-active-matches-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: -0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
}

.queue-active-matches-line i {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ── Badges (checkmark for selected, lock for locked) ───────── */
.stat-band-badge {
    position: absolute;
    top: -3px;
    right: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.45rem;
    pointer-events: none;
}

.stat-band-badge i {
    font-size: 0.5rem;
}

/* Selected checkmark */
.stat-band-badge:not(.stat-band-badge--lock) {
    background: #f4012b;
    color: #fff;
    box-shadow: 0 0 6px rgba(244, 1, 43, 0.4);
}

/* Locked badge — subtle grey */
.stat-band-badge--lock {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
}

/* Queue Position Indicator — hidden until redesign */
.queue-position-indicator {
    display: none;
    bottom: var(--space-xl);
    left: calc(var(--sidebar-width, 123px) + var(--space-xl));
    background: rgba(244, 1, 43, 0.15);
    border: 1px solid rgba(244, 1, 43, 0.3);
    border-radius: var(--radius-pill);
    padding: var(--space-sm) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--bg-accent);
    font-size: 0.9rem;
    z-index: 100;
}

.queue-position-indicator i {
    animation: pulse 1s infinite;
}

/* Action Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Apex', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.action-btn.primary {
    background: var(--bg-accent);
    color: #fff;
}

.action-btn.primary:hover {
    background: var(--bg-accent-hover);
}

.action-btn.discord {
    background: #5865F2;
    color: #fff;
}

.action-btn.discord:hover {
    background: #4752C4;
}

.action-btn.accept {
    background: var(--bg-accent);
    color: #fff;
    font-size: 1.2rem;
    padding: var(--space-lg) var(--space-2xl);
}

.action-btn.accept:hover:not(:disabled) {
    background: var(--bg-accent-hover);
    transform: scale(1.02);
}

.action-btn.accept.accepted {
    background: #10b981;
    cursor: default;
}

.action-btn.decline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: var(--space-lg) var(--space-2xl);
}

.action-btn.decline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.action-btn.large {
    font-size: 1.1rem;
    padding: var(--space-lg) var(--space-2xl);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}


/* Match Ended Overlay */
.match-ended-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.match-ended-modal {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 2px solid var(--bg-accent);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.match-ended-icon {
    width: 80px;
    height: 80px;
    background: rgba(244, 1, 43, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.match-ended-icon i {
    font-size: 2.5rem;
    color: var(--bg-accent);
}

.match-ended-modal h2 {
    font-family: 'Apex', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.match-ended-modal p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.match-ended-countdown {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.match-ended-countdown span {
    color: var(--bg-accent);
    font-weight: bold;
}

/* Accept Match Overlay (shown instantly when match_found arrives via WebSocket) */
.accept-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 20px;
}

.accept-overlay .play-match-found {
    min-height: auto;
    background: linear-gradient(165deg, rgba(26, 26, 26, 0.98) 0%, rgba(13, 13, 13, 0.99) 50%, rgba(8, 8, 8, 1) 100%);
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 100%;
}

/* Cooldown Overlay/Modal */
.cooldown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.cooldown-modal {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    max-width: 450px;
    animation: scaleIn 0.3s ease;
}

.cooldown-icon {
    width: 80px;
    height: 80px;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.cooldown-icon i {
    font-size: 2.5rem;
    color: #f59e0b;
}

.cooldown-modal h2 {
    font-family: 'Apex', sans-serif;
    font-size: 1.5rem;
    color: #f59e0b;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.cooldown-modal p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.cooldown-timer-display {
    font-family: 'JetBrains Mono', 'Apex', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 1.5rem;
    padding: 1rem 2rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    display: inline-block;
}

.cooldown-modal .btn-dismiss {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    color: #f59e0b;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cooldown-modal .btn-dismiss:hover {
    background: rgba(245, 158, 11, 0.3);
}

/* Cooldown Banner (shown at top of play page when on cooldown) */
.cooldown-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.cooldown-banner-icon {
    font-size: 24px;
    color: #f59e0b;
}

.cooldown-banner-content {
    flex: 1;
}

.cooldown-banner-title {
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 4px;
}

.cooldown-banner-text {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.cooldown-banner-timer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59e0b;
}

/* ============================================
   Phase 3 UX Enhancements - Animations & Status
   ============================================ */

/* Connection Status Indicator */
.connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-top: 10px;
    justify-content: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.connected {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.status-dot.disconnected {
    background: #dc2626;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Accept Count Pulse Animation */
.accepted-count.pulse-green {
    animation: pulseGreen 0.6s ease;
}

@keyframes pulseGreen {
    0% {
        color: inherit;
        transform: scale(1);
    }
    50% {
        color: #22c55e;
        transform: scale(1.3);
        text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    }
    100% {
        color: inherit;
        transform: scale(1);
    }
}

/* Progress Bar Pulse Animation */
.accept-progress-fill.progress-pulse {
    animation: progressPulse 0.6s ease;
}

@keyframes progressPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.5);
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
    }
}

/* Timer Warning Animation (when <= 5 seconds) */
.match-found-timer.timer-warning {
    animation: timerWarning 0.5s ease-in-out infinite;
}

.match-found-timer.timer-warning .timer-value {
    color: #dc2626 !important;
}

.match-found-timer.timer-warning .timer-ring-progress {
    stroke: #dc2626 !important;
}

@keyframes timerWarning {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Smooth transition for progress bar width changes */
.accept-progress-fill {
    transition: width 0.3s ease-out;
}

/* Match Controls Footer */
.match-controls-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 15px;
}

/* Sound Toggle Button */
.sound-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.sound-toggle .fa-volume-mute {
    color: #dc2626;
}

/* Keyboard Hint */
.keyboard-hint {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 12px;
}

.keyboard-hint kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   All Players Ready Animation
   ============================================ */

.all-ready-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.all-ready-overlay.animate-in {
    opacity: 1;
}

.all-ready-modal {
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
    animation: allReadyModalIn 0.5s ease 0.2s forwards;
}

@keyframes allReadyModalIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.all-ready-checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.checkmark-svg {
    width: 100%;
    height: 100%;
}

.checkmark-circle {
    stroke: #22c55e;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: checkmarkCircle 0.6s ease 0.3s forwards;
}

@keyframes checkmarkCircle {
    to {
        stroke-dashoffset: 0;
    }
}

.checkmark-check {
    stroke: #22c55e;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkmarkCheck 0.4s ease 0.7s forwards;
}

@keyframes checkmarkCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.all-ready-title {
    font-family: 'Apex', sans-serif;
    font-size: 2.5rem;
    color: #22c55e;
    margin: 0 0 8px 0;
    letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
    animation: titleGlow 1s ease infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    }
    to {
        text-shadow: 0 0 40px rgba(34, 197, 94, 0.8), 0 0 60px rgba(34, 197, 94, 0.4);
    }
}

.all-ready-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 30px 0;
}

.all-ready-redirect {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    color: #22c55e;
    font-size: 1rem;
    animation: redirectPulse 1.5s ease infinite;
}

@keyframes redirectPulse {
    0%, 100% {
        background: rgba(34, 197, 94, 0.15);
        border-color: rgba(34, 197, 94, 0.3);
    }
    50% {
        background: rgba(34, 197, 94, 0.25);
        border-color: rgba(34, 197, 94, 0.5);
    }
}

.all-ready-redirect i {
    font-size: 1.3rem;
}

.redirect-dots {
    display: inline-flex;
    gap: 2px;
}

.redirect-dots span {
    animation: dotBounce 1.4s infinite ease-in-out both;
    font-weight: bold;
}

.redirect-dots span:nth-child(1) {
    animation-delay: 0s;
}

.redirect-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.redirect-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        opacity: 0.3;
    }
    40% {
        opacity: 1;
    }
}

/* ── Priority-Fill confirmed: amber variant of All Players Ready ────────── */
.fill-confirmed-overlay .checkmark-circle {
    stroke: #f39c12;
}
.fill-confirmed-overlay .checkmark-check {
    stroke: #f39c12;
}
.fill-confirmed-overlay .all-ready-title {
    color: #f39c12;
    text-shadow: 0 0 30px rgba(243, 156, 18, 0.55);
    animation-name: titleGlowAmber;
}
@keyframes titleGlowAmber {
    from { text-shadow: 0 0 20px rgba(243, 156, 18, 0.45); }
    to   { text-shadow: 0 0 40px rgba(243, 156, 18, 0.8), 0 0 60px rgba(243, 156, 18, 0.4); }
}
.fill-confirmed-overlay .all-ready-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

/* ═══════════════════════════════════════════════════════════
   PLAY PAGE PLAYER CARD — Profile Card Mirror Styles
   The #teammate-preferences card now mirrors #playerCardUnified
   from the /profile page, read-only, at a compact scale.
   ═══════════════════════════════════════════════════════════ */
/* Allow the card to grow beyond the fixed 256px when content warrants */
.player-card-main {
    height: auto;
    min-height: 256px;
    display: flex;
    flex-direction: column;
}
/* Custom border colour (premium feature) */
.player-card-main.has-custom-border {
    border-color: var(--card-border, rgba(255, 255, 255, 0.1));
    box-shadow: 0 0 16px color-mix(in srgb, var(--card-border, transparent) 25%, transparent);
}
/* player-card-content — stretches to fill card and centers content vertically */
.player-card-main > .player-card-content {
    flex: 1;
    justify-content: center;
    padding: 0.75rem 0.6rem;
    height: auto;
}
/* ── Avatar wrapper ── */
.player-card-main .avatar-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 auto 0.5rem;
    flex-shrink: 0;
}
/* Avatar image — scaled to 60px (75% of previous 80px) */
.player-card-main .avatar-img {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    border: 2px solid #f4012b;
    object-fit: cover;
    object-position: center;
    display: block;
}
.player-card-main .avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4012b, #ff4757);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    border: 2px solid #f4012b;
}
/* Region flag — 22px */
.player-card-main .avatar-region-flag {
    position: absolute;
    bottom: -6px;
    right: -2px;
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 3px 0 0 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
    z-index: 5;
}
/* Apex name sizing — proportional to profile card */
.player-card-main .player-name {
    margin-top: 0.25rem;
    margin-bottom: 0.2rem;
    font-size: 1.0rem;
}
/* ── Apex name-matching notice (mirrors connect/search .name-accuracy-notice) ── */
.name-accuracy-notice {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    width: min(100%, 672px);
    margin: 0 auto clamp(1rem, 1.8vw, 1.4rem);
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1rem 1.25rem;
}
.name-accuracy-figure {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    max-width: 133px;
}
.name-accuracy-figure img {
    width: 100%;
    max-width: 133px;
    border-radius: 8px;
    border: 1px solid #333;
    display: block;
}
.name-accuracy-copy {
    flex: 1 1 auto;
    min-width: 0;
}
.name-accuracy-title {
    font-family: 'Apex', 'Apex-Black', sans-serif;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0 0 0.5rem;
    line-height: 1.45;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}
.name-accuracy-title i {
    color: #f4012b;
    margin-right: 0.5rem;
    font-size: 0.85rem;
}
.name-accuracy-text {
    color: #bbb;
    font-size: 0.83rem;
    line-height: 1.45;
    margin: 0 0 0.5rem;
}
.name-accuracy-text:last-child {
    margin-bottom: 0;
}
.name-accuracy-text strong {
    color: #fff;
}
@media (max-width: 560px) {
    .name-accuracy-notice {
        flex-direction: column;
        align-items: center;
    }
    .name-accuracy-copy {
        text-align: left;
    }
}

/* Escalating self-declared validation states (levels 1-3) on the name-match notice */
.nid-match-notice--level-1,
.nid-match-notice--level-2,
.nid-match-notice--level-3 {
    border-color: rgba(244, 1, 43, 0.55);
}
.nid-match-notice--level-1 .name-accuracy-title i { color: #f4012b; }
.nid-match-notice--level-2 .name-accuracy-title i { color: #f4012b; }
.nid-match-notice--level-3 .name-accuracy-title i { color: #f4012b; }
.name-accuracy-title a {
    color: #fff;
    text-decoration: none;
}
.name-accuracy-title a:hover { text-decoration: underline; }

/* ── Player Title — angular chip design matching #peTitleChips ── */
.player-card-main .player-title-display {
    --chip-cut: 10px;
    font-family: 'URW Dock', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 0.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 12px;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    color: #fff;
    /* Default chip — red selected */
    background: rgba(244, 1, 43, 0.18);
    border: none;
    clip-path: polygon(0 0, calc(100% - var(--chip-cut)) 0, 100% var(--chip-cut), 100% 100%, var(--chip-cut) 100%, 0 calc(100% - var(--chip-cut)));
    -webkit-clip-path: polygon(0 0, calc(100% - var(--chip-cut)) 0, 100% var(--chip-cut), 100% 100%, var(--chip-cut) 100%, 0 calc(100% - var(--chip-cut)));
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-self: center;
}
.player-card-main .player-title-display::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: rgba(244, 1, 43, 0.65);
    clip-path: inherit;
    -webkit-clip-path: inherit;
    z-index: -1;
}
/* ── rank-1 — gold ── */
.player-card-main .player-title-display.rank-1 { background: rgba(255, 215, 0, 0.18); color: #ffe44d; }
.player-card-main .player-title-display.rank-1::before { background: rgba(255, 215, 0, 0.65); }
/* ── rank-2 — gold muted ── */
.player-card-main .player-title-display.rank-2 { background: rgba(255, 215, 0, 0.14); color: #ffe44d; }
.player-card-main .player-title-display.rank-2::before { background: rgba(255, 215, 0, 0.50); }
/* ── rank-3 — bronze ── */
.player-card-main .player-title-display.rank-3 { background: rgba(205, 127, 50, 0.18); color: #ffb366; }
.player-card-main .player-title-display.rank-3::before { background: rgba(205, 127, 50, 0.65); }
/* ── rank-45 — elite blue ── */
.player-card-main .player-title-display.rank-45 { background: rgba(165, 180, 252, 0.18); color: #c4d0ff; }
.player-card-main .player-title-display.rank-45::before { background: rgba(165, 180, 252, 0.65); }
/* ── title-gold ── */
.player-card-main .player-title-display.title-gold { background: rgba(251, 191, 36, 0.18); color: #ffd700; }
.player-card-main .player-title-display.title-gold::before { background: rgba(251, 191, 36, 0.65); }
/* ── title-silver ── */
.player-card-main .player-title-display.title-silver { background: rgba(192, 196, 204, 0.16); color: #e8ecf0; }
.player-card-main .player-title-display.title-silver::before { background: rgba(192, 196, 204, 0.55); }
/* ── title-bronze ── */
.player-card-main .player-title-display.title-bronze { background: rgba(205, 127, 50, 0.18); color: #ffb366; }
.player-card-main .player-title-display.title-bronze::before { background: rgba(205, 127, 50, 0.65); }
/* ── title-elite ── */
.player-card-main .player-title-display.title-elite { background: rgba(165, 180, 252, 0.18); color: #c4d0ff; }
.player-card-main .player-title-display.title-elite::before { background: rgba(165, 180, 252, 0.65); }
/* ── Earned rank subtle border pulse ── */
.player-card-main .player-title-display.rank-1::before,
.player-card-main .player-title-display.rank-2::before,
.player-card-main .player-title-display.rank-3::before,
.player-card-main .player-title-display.rank-45::before {
    animation: earnedChipPulse 2.8s ease-in-out infinite;
}
@keyframes earnedChipPulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}
.player-card-main .player-title-display.rank-1 .etl-name,
.player-card-main .player-title-display.rank-2 .etl-name,
.player-card-main .player-title-display.rank-3 .etl-name,
.player-card-main .player-title-display.rank-45 .etl-name { color: #ffe44d; }
/* ── MMR circle — profile layout with mmr-circle-value-group ── */
/* No horizontal nudge anywhere: the row is the shrink-to-fit content box, so flex centring
   already balances ring + value for any value width ("1850", "—", "0/5"). A fixed offset
   only lined up one value width and pushed the ring out of its own box. */
.player-card-main .profile-mmr-circle .mmr-circle-row,
.party-search-result .profile-mmr-circle .mmr-circle-row,
.avoid-list-search-result .profile-mmr-circle .mmr-circle-row {
    transform: none;
    gap: 0.2rem;
}
.player-card-main .profile-mmr-circle .mmr-circle-ring,
.party-search-result .profile-mmr-circle .mmr-circle-ring,
.avoid-list-search-result .profile-mmr-circle .mmr-circle-ring {
    width: 35.7px;
    height: 35.7px;
}
.player-card-main .profile-mmr-circle .mmr-circle-inner,
.party-search-result .profile-mmr-circle .mmr-circle-inner,
.avoid-list-search-result .profile-mmr-circle .mmr-circle-inner {
    top: 0;
    left: 0;
    width: 35.7px;
    height: 35.7px;
}
.player-card-main .profile-mmr-circle .mmr-circle-icon,
.party-search-result .profile-mmr-circle .mmr-circle-icon,
.avoid-list-search-result .profile-mmr-circle .mmr-circle-icon {
    width: 18.7px;
    height: 18.7px;
}
.player-card-main .mmr-circle-value-group,
.party-search-result .mmr-circle-value-group,
.avoid-list-search-result .mmr-circle-value-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
.player-card-main .mmr-circle-value-group .mmr-circle-label,
.party-search-result .mmr-circle-value-group .mmr-circle-label,
.avoid-list-search-result .mmr-circle-value-group .mmr-circle-label {
    font-size: 0.45rem;
    letter-spacing: 0.8px;
    color: #555;
    margin-bottom: 0;
}
.player-card-main .mmr-circle-value-group .mmr-circle-value,
.party-search-result .mmr-circle-value-group .mmr-circle-value,
.avoid-list-search-result .mmr-circle-value-group .mmr-circle-value {
    font-size: 0.85rem;
}
.party-search-result .mmr-circle-display,
.avoid-list-search-result .mmr-circle-display {
    margin-top: 0;
}
/* ── Pinned Stat Tiles — compact read-only ── */
.player-card-main .pinned-stat-tiles {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 0.55rem;
    width: 100%;
    flex-shrink: 0;
}
.player-card-main .pinned-stat-tile {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px 5px;
    box-sizing: border-box;
}
.player-card-main .pinned-stat-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 2px;
    background: rgba(244, 1, 43, 0.5);
    border-radius: 0 0 2px 2px;
}
.player-card-main .pinned-tile-label {
    font-size: 7.5px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1;
    margin-bottom: 3px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.player-card-main .pinned-tile-value {
    font-family: 'Apex', 'URW', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
/* Duo/Trio party queue controls (hidden unless Alpine party state is enabled) */






/* Party queue status hint — tooltip-style caption under the Ready Up button */
.queue-button-area > .party-queue-hint {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    align-self: start;
}
.party-queue-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.28rem 0.72rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    pointer-events: none;
}
.party-queue-hint__icon {
    font-size: 0.6rem;
    color: rgba(244, 1, 43, 0.75);
    flex-shrink: 0;
}
.party-queue-hint__band-switch {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    /* Parent sets pointer-events: none for the caption; re-enable on the link. */
    pointer-events: auto;
    flex-shrink: 0;
    transition: color 0.15s ease;
}
.party-queue-hint__band-switch:hover,
.party-queue-hint__band-switch:focus {
    color: rgba(244, 1, 43, 0.95);
}
.party-queue-hint__mobile-controls {
    display: none;
}

@media (max-width: 760px) {
    .party-queue-hint {
        max-width: min(95vw, 360px);
        flex-wrap: nowrap;
        justify-content: center;
        row-gap: 0;
        white-space: normal;
        text-align: center;
        pointer-events: auto;
    }

    .party-queue-hint > span {
        min-width: 0;
        flex: 1 1 auto;
    }

    .party-queue-hint__mobile-controls {
        display: inline-flex;
        width: auto;
        justify-content: center;
        flex: 0 0 auto;
        margin-left: auto;
        flex-wrap: nowrap;
        gap: 0.28rem;
    }

    .party-queue-hint__mobile-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        min-height: 22px;
        padding: 0.22rem 0.48rem;
        border: 1px solid rgba(244, 1, 43, 0.55);
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(244, 1, 43, 0.3), rgba(117, 7, 25, 0.68));
        color: #fff;
        font-family: 'Apex', sans-serif;
        font-size: 0.5rem;
        font-weight: 700;
        letter-spacing: 0.45px;
        text-transform: uppercase;
        cursor: pointer;
        transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
    }

    .party-queue-hint__mobile-btn i {
        font-size: 0.52rem;
    }

    .party-queue-hint__mobile-btn--invite {
        min-width: 0;
        padding-inline: 0.42rem;
    }

    .party-queue-hint__mobile-btn:hover,
    .party-queue-hint__mobile-btn:focus-visible {
        border-color: rgba(252, 165, 165, 0.95);
        background: linear-gradient(180deg, rgba(244, 1, 43, 0.45), rgba(130, 16, 36, 0.78));
        transform: translateY(-1px);
        outline: none;
    }

    .party-queue-hint__mobile-btn--danger {
        border-color: rgba(251, 113, 133, 0.56);
        background: linear-gradient(180deg, rgba(190, 24, 93, 0.34), rgba(127, 29, 29, 0.74));
    }

    .party-queue-hint__mobile-btn--danger:hover,
    .party-queue-hint__mobile-btn--danger:focus-visible {
        border-color: rgba(253, 164, 175, 0.95);
        background: linear-gradient(180deg, rgba(225, 29, 72, 0.47), rgba(136, 19, 55, 0.78));
    }
}

.party-eligibility-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    max-width: min(720px, calc(100% - 1rem));
    margin: -0.45rem auto 1rem;
    padding: 0.72rem 0.85rem;
    color: rgba(255, 237, 213, 0.94);
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.62), rgba(68, 26, 7, 0.72));
    border: 1px solid rgba(245, 158, 11, 0.42);
    border-radius: 13px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}
.party-eligibility-alert i {
    flex: 0 0 auto;
    margin-top: 0.08rem;
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.26));
}
.party-control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.025) 100%);
    color: rgba(255, 255, 255, 0.86);
    border-radius: 11px;
    padding: 0.52rem 0.78rem;
    font-family: 'Apex', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.75px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.party-control-btn i {
    color: #f4012b;
    font-size: 0.72rem;
    filter: drop-shadow(0 0 6px rgba(244, 1, 43, 0.22));
}
.party-control-btn:hover:not(:disabled),
.party-control-btn:focus-visible:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(244, 1, 43, 0.5);
    background: linear-gradient(165deg, rgba(244, 1, 43, 0.15) 0%, rgba(255, 255, 255, 0.045) 100%);
    color: #fff;
    box-shadow: 0 0 18px rgba(244, 1, 43, 0.15);
    outline: none;
}
.party-control-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.party-mobile-invite-control-btn,
.party-mobile-only-control-btn {
    display: none;
}
.party-control-danger {
    border-color: rgba(248, 113, 113, 0.24);
    background: linear-gradient(165deg, rgba(127, 29, 29, 0.34) 0%, rgba(32, 8, 12, 0.55) 100%);
    color: rgba(255, 235, 238, 0.86);
}
.party-control-danger i {
    color: #fb7185;
}
.party-control-danger:hover:not(:disabled),
.party-control-danger:focus-visible:not(:disabled) {
    border-color: rgba(248, 113, 113, 0.56);
    background: linear-gradient(165deg, rgba(127, 29, 29, 0.5) 0%, rgba(244, 1, 43, 0.12) 100%);
    box-shadow: 0 0 18px rgba(248, 113, 113, 0.14);
}
.party-clickable {
    cursor: pointer;
    border-color: rgba(255, 255, 255, 0.25) !important;
}
.party-empty-slot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    height: 100%;
    text-align: center;
}
.party-slot.empty {
    width: 208px;
    min-height: 256px;
    height: 256px;
    flex: 0 0 208px;
}
.party-slot.empty.party-clickable {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.party-slot.empty.party-clickable:hover {
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    transform: translateY(-2px);
}
.party-slot.empty.party-clickable .slot-avatar {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}
.party-slot.empty.party-clickable .slot-avatar i {
    font-size: 1.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: none;
}
.party-slot.empty.party-clickable .slot-label {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Apex', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-shadow: none;
}
.party-slot.filled {
    width: 208px;
    min-height: 256px;
    height: auto;
    opacity: 1;
    border: 0;
    background: transparent;
}
.party-teammate-card {
    width: 208px;
    min-height: 256px;
    padding: 0;
}
.party-kick-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 14;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(252, 165, 165, 0.92);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    box-shadow: none;
    transition: transform 0.16s ease, color 0.16s ease;
}
.party-kick-btn:hover {
    transform: scale(1.08);
    color: #fff;
}
.party-kick-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: 0.8rem;
    line-height: 1;
}
.party-card-avatar,
.party-search-result > img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(244, 1, 43, 0.55);
}
.party-card-name {
    color: #fff;
    font-family: 'Apex', sans-serif;
    text-transform: uppercase;
    text-align: center;
}
.party-card-apex,
.party-card-role {
    color: #94a3b8;
    font-size: 0.78rem;
    text-align: center;
}
.party-invite-flyout {
    max-width: 520px;
}
.party-search-input {
    width: 100%;
    background: #0d0d0d;
    border: 1px solid rgba(244, 1, 43, 0.35);
    color: #fff;
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    margin: 0.75rem 0;
}
.party-search-results {
    display: grid;
    gap: 0.65rem;
}
.party-search-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}
.party-search-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}
.party-search-apex {
    color: #fff;
    font-family: 'Apex', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.15;
}
.party-search-username {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #94a3b8;
    font-size: 0.8rem;
}
.party-search-username i {
    color: #5865f2;
    font-size: 0.78rem;
}
.party-search-reason {
    color: #fca5a5;
    font-size: 0.75rem;
}

/* ── Player Avoid List (inside Teammate Preferences flyout) ── */

.avoid-list-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 1;
    min-width: 0;
}

.avoid-list-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.avoid-list-entries {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.avoid-list-entry {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.avoid-list-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(244, 1, 43, 0.4);
    flex-shrink: 0;
}

.avoid-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.avoid-list-username {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avoid-list-apex {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avoid-list-remove-btn {
    background: none;
    border: none;
    color: rgba(244, 1, 43, 0.6);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.avoid-list-remove-btn:hover {
    color: #f4012b;
    background: rgba(244, 1, 43, 0.12);
}

.avoid-list-empty {
    white-space: nowrap;
}

.avoid-list-empty-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
}

.avoid-list-add-row {
    position: relative;
}

.avoid-list-search-input {
    width: 160px;
    background: #0d0d0d;
    border: 1px solid rgba(244, 1, 43, 0.35);
    color: #fff;
    border-radius: 8px;
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    box-sizing: border-box;
}

.avoid-list-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.avoid-list-search-results {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.avoid-list-search-result {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.avoid-list-search-result > img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(244, 1, 43, 0.4);
    flex-shrink: 0;
}

.avoid-list-search-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.avoid-list-search-apex {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avoid-list-search-username {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.avoid-list-search-username i {
    color: #5865f2;
    font-size: 0.7rem;
}

.avoid-list-add-btn {
    background: rgba(244, 1, 43, 0.15);
    border: 1px solid rgba(244, 1, 43, 0.4);
    color: #f4012b;
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}

.avoid-list-add-btn:hover:not(:disabled) {
    background: rgba(244, 1, 43, 0.3);
}

.avoid-list-add-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ── Avoid List Premium Gating ── */

.avoid-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #f0b90b, #e8a800);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    vertical-align: middle;
    margin-left: 0.35rem;
}

.avoid-premium-badge i {
    font-size: 0.55rem;
}

.avoid-list-add-row.avoid-premium-locked {
    position: relative;
}

.avoid-premium-lock-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.28rem 0.7rem;
    background: rgba(0, 0, 0, 0.65);
    border: 1px dashed rgba(240, 185, 11, 0.5);
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'URW Dock', sans-serif;
    transition: background 0.2s, border-color 0.2s;
}

.avoid-premium-lock-overlay:hover {
    background: rgba(240, 185, 11, 0.1);
    border-color: rgba(240, 185, 11, 0.8);
}

.avoid-premium-lock-overlay i {
    color: #f0b90b;
    font-size: 0.8rem;
}

.avoid-premium-lock-overlay span {
    color: #f0b90b;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Absolute overlay only inside the avoid-list search input */
.avoid-list-add-row.avoid-premium-locked .avoid-premium-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 0;
}

.avoid-list-search-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Premium Team Name Preset (App Settings) ── */

.teammate-prefs-modal-row--team-name {
    align-items: center;
}

.team-name-side {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 0;
    flex-shrink: 1;
}

.team-name-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.team-name-input {
    width: 180px;
    max-width: 100%;
    padding-right: 3.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-name-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

.team-name-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.team-name-counter {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.team-name-clear {
    position: absolute;
    right: 1.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.55rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.team-name-clear:hover {
    background: rgba(244, 1, 43, 0.35);
    color: #fff;
}

.team-name-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'URW Dock', sans-serif;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 0.25rem 0.6rem;
    white-space: nowrap;
}

.teammate-prefs-modal-row--team-name.is-unavailable {
    opacity: 0.55;
}

.team-name-feedback {
    order: -1;
    white-space: nowrap;
    font-size: 0.68rem;
    min-height: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.team-name-feedback .is-success {
    color: #10b981;
}

.team-name-feedback .is-error {
    color: #f4012b;
}

/* ── Leaderboard Twitch row (Queue Settings) ──
   Writes the same PlayerSocialLink row the profile editor does; the ladder
   chip is what makes it visible, so the field lives next to Queue Settings. */

.twitch-link-input {
    width: 210px;
    padding-right: 1.9rem;
    font-size: 0.72rem;
    /* A Twitch URL is case-sensitive-ish and has no letter-spacing */
    text-transform: none;
    letter-spacing: normal;
}

.twitch-link-input::placeholder {
    text-transform: none;
    letter-spacing: normal;
    color: rgba(255, 255, 255, 0.3);
}

.twitch-link-clear {
    right: 0.55rem;
}

/* Locked rows swap the input for the shared "Unlock with Premium" overlay. */
.twitch-link-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 0;
    flex-shrink: 1;
}

.twitch-link-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.65rem;
    border: 1px solid rgba(145, 70, 255, 0.28);
    border-radius: 10px;
    background: rgba(145, 70, 255, 0.08);
    font-size: 0.66rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.65);
}

.twitch-link-hint i {
    color: #9146ff;
    margin-top: 0.1rem;
}

/* Team Name row stacks on small screens (kept after the base rules so the
   cascade applies the mobile override). */
@media (max-width: 760px) {
    .teammate-prefs-modal-row--team-name {
        align-items: stretch;
    }

    .team-name-side {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .team-name-feedback {
        order: 0;
    }

    .team-name-input {
        width: 100%;
    }

    .twitch-link-input {
        width: 100%;
    }

    /* The row stacks (base media rule) with align-items: flex-start, so the
       input's side has to claim the full width explicitly. */
    .twitch-link-side {
        align-self: stretch;
    }

    .twitch-link-controls {
        flex-direction: column;
        align-items: stretch;
        align-self: stretch;
    }

    .team-name-side .avoid-premium-lock-overlay {
        align-self: flex-start;
    }
}

/* ── Queue Settings extras ── */

.prefs-inqueue-note {
    border-style: solid;
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.06);
}

.prefs-inqueue-note i {
    color: #3b82f6;
}

.pc-only-badge {
    display: inline-flex;
    align-items: center;
    font-family: 'Apex', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.12rem 0.45rem;
    margin-left: 0.3rem;
    flex-shrink: 0;
}

/* ── Auto-Join Matches card (Queue Settings) ── */

.teammate-prefs-modal-row--auto-join {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.65rem 0.75rem;
}

.teammate-prefs-modal-row--auto-join.is-unavailable {
    opacity: 0.55;
}

/* Gentle accent border/glow while Off — draws attention, no animation. */
.teammate-prefs-modal-row--auto-join.is-off-shine {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12), 0 0 18px rgba(59, 130, 246, 0.12);
}

.auto-join-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.auto-join-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1 1 auto;
}

.auto-join-label-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex-wrap: wrap;
    font-family: 'URW Dock', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.auto-join-label-row > i {
    color: #f4012b;
    font-size: 0.7rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.auto-join-recommended-badge {
    background: rgba(16, 185, 129, 0.16);
    background-image: none;
    color: #34d399;
    font-size: 0.55rem;
    letter-spacing: 0.5px;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    margin-left: 0;
}

.auto-join-recommended-badge i {
    font-size: 0.5rem;
}

.auto-join-benefit {
    font-family: 'URW Dock', sans-serif;
    font-size: 0.66rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.2px;
    text-transform: none;
    line-height: 1.35;
}

.auto-join-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.auto-join-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'URW Dock', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 20px;
    padding: 0.22rem 0.55rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.auto-join-status--needed {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.auto-join-status--active {
    color: #34d399;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.auto-join-setup {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
}

.auto-join-step {
    display: flex;
    gap: 0.55rem;
    min-width: 0;
}

.auto-join-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(244, 1, 43, 0.16);
    color: #ff4d5a;
    font-family: 'Apex', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    flex-shrink: 0;
}

.auto-join-step-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
}

.auto-join-step-title {
    font-family: 'URW Dock', sans-serif;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.auto-join-step-text {
    font-family: 'URW Dock', sans-serif;
    font-size: 0.66rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.45;
}

.auto-join-launch-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.auto-join-launch-input {
    flex: 1;
    min-width: 0;
    width: auto;
    font-family: monospace;
    font-size: 0.64rem;
    cursor: text;
    overflow-x: auto;
    white-space: nowrap;
}

.auto-join-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    height: 26px;
    padding: 0 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.82);
    font-family: 'URW Dock', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.auto-join-copy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.auto-join-copy-btn.is-copied {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.5);
    color: #34d399;
}

.auto-join-step-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auto-join-where-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #3b82f6;
    font-family: 'URW Dock', sans-serif;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.auto-join-where-link:hover,
.auto-join-where-link:focus-visible {
    color: #60a5fa;
    outline: none;
    text-decoration: underline;
}

.auto-join-where-link i {
    font-size: 0.6rem;
}

.auto-join-popover {
    position: relative;
    margin-top: 0.4rem;
    width: min(360px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: #0d0d0d;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.auto-join-popover img {
    display: block;
    width: 100%;
    height: auto;
}

.auto-join-popover-close {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.6rem;
    cursor: pointer;
    z-index: 1;
    transition: background 0.15s ease;
}

.auto-join-popover-close:hover {
    background: rgba(244, 1, 43, 0.5);
}

.auto-join-active-view {
    display: flex;
    margin-top: 0.45rem;
}

.auto-join-platform-note {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
    font-family: 'URW Dock', sans-serif;
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.auto-join-platform-note i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6rem;
}

/* Auto-Join card stacks on small screens (kept after the base rules so the
   cascade applies the mobile override). */
@media (max-width: 760px) {
    .teammate-prefs-modal-row--auto-join {
        padding: 0.6rem 0.65rem;
    }

    .auto-join-main {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .auto-join-control {
        justify-content: space-between;
        width: 100%;
    }

    .auto-join-step-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .auto-join-launch-row {
        flex-direction: column;
        align-items: stretch;
    }

    .auto-join-launch-input {
        width: 100%;
    }

    .auto-join-popover {
        width: 100%;
    }
}

/* Strike count + good-standing status */
.prefs-strikes-count {
    font-family: 'URW Dock', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 0.15rem;
    flex-shrink: 0;
}

.prefs-strikes-good {
    font-family: 'URW Dock', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    color: #34d399;
    margin-left: 0.25rem;
    white-space: nowrap;
}

/* ── Voice Comms Discord Gating (Teammate Preferences) ── */

/* Small Discord badge next to the "Voice Comms" label */
.comms-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #5865F2, #3b45b8);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-left: 0.4rem;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.35);
    transition: filter 0.2s, box-shadow 0.2s;
}

.comms-premium-badge:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 8px rgba(88, 101, 242, 0.45);
}

.comms-premium-badge i {
    font-size: 0.5rem;
}

/* Discord accent on the whole Voice Comms row for locked players */
.teammate-prefs-modal-row--comms.is-premium-locked {
    border-color: rgba(88, 101, 242, 0.35);
    background:
        linear-gradient(rgba(88, 101, 242, 0.05), rgba(88, 101, 242, 0.05)),
        rgba(255, 255, 255, 0.03);
}

/* When a locked player has "Mic On" selected, the toggle turns Discord blue
   (not green) to signal it is stored but NOT functionally active. */
.prefs-switch-toggle.is-premium-locked {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.65), rgba(59, 69, 184, 0.65));
    box-shadow: 0 0 6px rgba(88, 101, 242, 0.35);
}

/* Header badge — Discord-themed */
.prefs-header-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
    margin-right: 0.6rem;
    background: linear-gradient(135deg, #5865F2, #3b45b8);
    color: #fff;
    font-family: 'URW Dock', sans-serif;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 0.18rem 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.35);
    transition: filter 0.2s, box-shadow 0.2s;
}

.prefs-header-premium-badge:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
}

.prefs-header-premium-badge i {
    font-size: 0.55rem;
}

/* Subtle gold top-accent on the flyout for the premium-gated state */
.play-tools-flyout--teammate-prefs.is-premium-gated {
    box-shadow: inset 0 2px 0 0 rgba(240, 185, 11, 0.45);
}

/* Notice shown when locked player has Mic On selected */
.comms-premium-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: -0.25rem 0 0.25rem;
    padding: 0.55rem 0.7rem;
    border: 1px dashed rgba(88, 101, 242, 0.45);
    border-radius: 10px;
    background: rgba(88, 101, 242, 0.06);
    font-family: 'URW Dock', sans-serif;
    font-size: 0.7rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.8);
}

.comms-premium-notice i {
    color: #8b93ff;
    font-size: 0.78rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.comms-premium-notice strong {
    color: #a0a8ff;
}

.comms-premium-notice a {
    color: #8b93ff;
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
}

.comms-premium-notice a:hover {
    color: #b8bfff;
}

/* Party member (non-captain): Teammate Preferences follow the captain */
.prefs-party-captain-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 0 0.25rem;
    padding: 0.55rem 0.7rem;
    border: 1px dashed rgba(251, 191, 36, 0.4);
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.06);
    font-family: 'URW Dock', sans-serif;
    font-size: 0.7rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.8);
}

.prefs-party-captain-note i {
    color: #fbbf24;
    font-size: 0.75rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.prefs-party-captain-note strong {
    color: #fde68a;
}

.teammate-prefs-modal-row.is-party-locked .teammate-prefs-modal-row-label,
.teammate-prefs-modal-row.is-party-locked .prefs-switch-label {
    opacity: 0.55;
}

.prefs-switch-toggle.is-party-locked,
.prefs-switch-toggle.is-party-locked:hover {
    filter: grayscale(0.85);
    box-shadow: none;
}

/* ── Premium Avoid Modal (Match Dashboard) ── */

.premium-avoid-modal-content {
    max-width: 420px;
    background: #1a1a1a;
    border: 1px solid rgba(240, 185, 11, 0.3);
}

.premium-avoid-modal-content .report-modal-header h3 {
    color: #f0b90b;
}

.premium-avoid-modal-content .avoid-replace-footer {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

/* ── Lobby Band Brackets ─────────────────────────────────────────────── */
.rank-ladder-bands {    display: flex;    height: 20px;    margin-top: 2px;    padding: 0 calc(0.25rem + 17px);}.rank-ladder-band-bracket {    flex: calc(var(--band-end) - var(--band-start)) 0 calc((var(--band-end) - var(--band-start) + 1) * 34px - 34px);    border: 1px solid rgba(255,255,255,0.25);    border-top: none;    border-radius: 0 0 6px 6px;    display: flex;    align-items: flex-start;    position: relative;    justify-content: center;    padding-bottom: 1px;    min-width: 0;}.rank-ladder-band-gap {    flex: 1 0 0;    min-width: 4px;}.rank-ladder-band-label {    position: absolute;    top: 0;    left: 50%;    transform: translate(-50%, 12px);    font-family: "Apex", sans-serif;    font-size: 0.45rem;    font-weight: 800;    color: #fff;    text-transform: uppercase;    letter-spacing: 0.5px;    white-space: nowrap;    padding: 2px 8px;    background: linear-gradient(135deg, #f4012b 0%, #d00124 50%, #a00020 100%);    border-radius: 0;    --lbl-cut: 3px;    clip-path: polygon(0 0, calc(100% - var(--lbl-cut)) 0, 100% var(--lbl-cut), 100% 100%, var(--lbl-cut) 100%, 0 calc(100% - var(--lbl-cut)));    -webkit-clip-path: polygon(0 0, calc(100% - var(--lbl-cut)) 0, 100% var(--lbl-cut), 100% 100%, var(--lbl-cut) 100%, 0 calc(100% - var(--lbl-cut)));    box-shadow: 0 2px 6px rgba(244,1,43,0.3);}    white-space: nowrap;
}

    white-space: nowrap;
}

/* ── PlaySafe ID Ready-Up gate banners ─────────────────────────── */
.playsafe-banner-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(0.45rem, 1.1vw, 0.8rem) 0 0;
}

/* Name-accuracy reminder for players without a verified NID hash */
.name-match-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: min(100%, 1140px);
    margin: 0 auto clamp(1rem, 1.8vw, 1.4rem);
    padding: 0.72rem 1rem;
    background: linear-gradient(180deg, rgba(40, 20, 20, 0.95) 0%, rgba(20, 10, 10, 0.98) 100%);
    border: 1px solid rgba(244, 1, 43, 0.4);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
    color: #fff;
}
.name-match-banner__icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1.05rem;
    color: #f4012b;
}
.name-match-banner__body { display: grid; gap: 0.3rem; min-width: 0; }
.name-match-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    padding: 0.2rem 0.58rem;
    background: rgba(244, 1, 43, 0.14);
    border: 1px solid rgba(244, 1, 43, 0.4);
    color: #ff5a76;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    -webkit-clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.name-match-banner__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
    line-height: 1.42;
}
.name-match-banner__text strong { color: #fff; }

.playsafe-play-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: min(100%, 1140px);
    margin: 0 auto clamp(1rem, 1.8vw, 1.4rem);
    padding: 0.62rem 0.95rem 0.64rem;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
    overflow: hidden;
    font-size: 0.85rem;
    line-height: 1.3;
    color: #fff;
}
.playsafe-play-banner__icon { font-size: 0.95rem; flex-shrink: 0; margin-top: 0; }
.playsafe-play-banner__logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 1px;
    filter: drop-shadow(0 0 8px rgba(45, 231, 255, 0.2));
}
.playsafe-play-banner__body {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    min-width: 0;
}
.playsafe-play-banner__copy { display: grid; gap: 0.18rem; min-width: 0; }
.playsafe-play-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    padding: 0.2rem 0.58rem;
    border-radius: 0;
    background: rgba(45, 231, 255, 0.12);
    border: 1px solid rgba(45, 231, 255, 0.34);
    color: #2de7ff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    -webkit-clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.playsafe-play-banner__text {
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.9rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.playsafe-play-banner__fallback {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
    grid-column: 1 / -1;
}
.playsafe-play-banner__text strong { color: #fff; }
.playsafe-play-banner__actions { display: flex; justify-content: flex-end; padding-top: 0; }
.playsafe-play-banner__cta {
    flex-shrink: 0;
    padding: 0.32rem 0.84rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.74rem;
    letter-spacing: 0.2px;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.15s ease;
    position: relative;
    overflow: hidden;
}
.playsafe-play-banner__cta:hover { filter: brightness(1.1); }
.playsafe-play-banner--grace {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.playsafe-play-banner--grace:hover,
.playsafe-play-banner--grace:focus-visible {
    border-color: rgba(45, 231, 255, 0.52);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38), 0 0 20px rgba(45, 231, 255, 0.1);
    transform: translateY(-1px);
    outline: none;
}
.playsafe-play-banner--grace .playsafe-play-banner__icon { color: #2de7ff; }
.playsafe-play-banner--grace .playsafe-play-banner__cta,
.playsafe-play-banner--required .playsafe-play-banner__cta {
    --playsafe-cta-cut: 12px;
    background: linear-gradient(135deg, #2de7ff 0%, #0eb5d8 100%);
    color: #001018;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - var(--playsafe-cta-cut)) 0, 100% var(--playsafe-cta-cut), 100% 100%, var(--playsafe-cta-cut) 100%, 0 calc(100% - var(--playsafe-cta-cut)));
    -webkit-clip-path: polygon(0 0, calc(100% - var(--playsafe-cta-cut)) 0, 100% var(--playsafe-cta-cut), 100% 100%, var(--playsafe-cta-cut) 100%, 0 calc(100% - var(--playsafe-cta-cut)));
    box-shadow:
        0 6px 18px rgba(45, 231, 255, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 2px 0 rgba(255, 255, 255, 0.16) inset;
}
    .playsafe-play-banner--grace .playsafe-play-banner__cta::after,
    .playsafe-play-banner--required .playsafe-play-banner__cta::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0;
    padding: 2px;
    clip-path: inherit;
    -webkit-clip-path: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.46), transparent 45%, rgba(255,255,255,0.16));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.playsafe-flip-clock {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    gap: 0.4rem;
    width: auto;
}
.playsafe-flip-clock__unit {
    position: relative;
    display: grid;
    gap: 0.15rem;
    padding: 0.28rem 0.25rem 0.24rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(45, 231, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    text-align: center;
}
.playsafe-flip-clock__unit.is-flipping .playsafe-flip-clock__value {
    animation: playsafeFlipPulse 0.42s ease-in-out;
}
.playsafe-flip-clock__value {
    font-family: 'Apex', sans-serif;
    font-size: 0.98rem;
    line-height: 1;
    font-weight: 800;
    color: #2de7ff;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 12px rgba(45, 231, 255, 0.18);
}
.playsafe-flip-clock__label {
    font-size: 0.5rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(45, 231, 255, 0.78);
}
.playsafe-flip-clock__unit::before,
.playsafe-flip-clock__unit::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(45, 231, 255, 0.18);
}
.playsafe-flip-clock__unit::before { top: 50%; }
.playsafe-flip-clock__unit::after { top: calc(50% + 1px); opacity: 0.35; }
@keyframes playsafeFlipPulse {
    0% { transform: translateY(0) scale(1); filter: brightness(1); }
    45% { transform: translateY(-2px) scale(0.98); filter: brightness(1.25); }
    100% { transform: translateY(0) scale(1); filter: brightness(1); }
}
.playsafe-play-banner--required {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.playsafe-play-banner--required .playsafe-play-banner__icon { color: #2de7ff; }

/* LOCKED account state — re-verification checkpoint needed at app.playsafeid.com */
.playsafe-play-banner--locked {
    background: linear-gradient(180deg, rgba(28, 21, 8, 0.96) 0%, rgba(14, 10, 4, 0.98) 100%);
    border: 1px solid rgba(245, 166, 35, 0.42);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32), 0 0 20px rgba(245, 166, 35, 0.07);
}
.playsafe-play-banner--locked .playsafe-play-banner__cta {
    --playsafe-cta-cut: 12px;
    background: linear-gradient(135deg, #f5a623 0%, #e08e0c 100%);
    color: #1a1206;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - var(--playsafe-cta-cut)) 0, 100% var(--playsafe-cta-cut), 100% 100%, var(--playsafe-cta-cut) 100%, 0 calc(100% - var(--playsafe-cta-cut)));
    -webkit-clip-path: polygon(0 0, calc(100% - var(--playsafe-cta-cut)) 0, 100% var(--playsafe-cta-cut), 100% 100%, var(--playsafe-cta-cut) 100%, 0 calc(100% - var(--playsafe-cta-cut)));
    box-shadow:
        0 6px 18px rgba(245, 166, 35, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 2px 0 rgba(255, 255, 255, 0.16) inset;
}

@media (max-width: 960px) {
    .playsafe-play-banner {
        width: min(100%, 980px);
        padding: 0.72rem 0.86rem;
    }
    .playsafe-play-banner__body {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 0.5rem 0.6rem;
    }
    .playsafe-play-banner__copy {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    .playsafe-play-banner__text {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    .playsafe-flip-clock {
        grid-column: 1;
        grid-row: 2;
        grid-template-columns: repeat(3, minmax(0, 52px));
        gap: 0.3rem;
        width: auto;
        justify-self: start;
    }
    .playsafe-flip-clock__unit {
        padding: 0.22rem 0.15rem 0.2rem;
    }
    .playsafe-flip-clock__value {
        font-size: 0.85rem;
    }
    .playsafe-play-banner__fallback {
        grid-column: 1;
        grid-row: 2;
        align-self: center;
    }
    .playsafe-play-banner__actions {
        grid-column: 2;
        grid-row: 2;
        justify-content: flex-end;
        align-self: center;
    }
}

/* ==========================================================================
   Self-declared onboarding: name-swap station
   (escalating validation states now live on .nid-match-notice above)
   ========================================================================== */
.name-validation-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    border: none;
    border-radius: 8px;
    background: #f4012b;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
.name-validation-btn:hover { background: #d80125; }
.name-validation-btn:disabled { opacity: 0.55; cursor: default; }

/* Name-swap station flyout (reuses .ban-prefs-flyout / .play-tools-flyout) */
.play-name-swap-flyout { max-width: 460px; }
.name-swap-current {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0.5rem 0 0.75rem;
}
.name-swap-input { margin-bottom: 0.6rem; }
.name-swap-error {
    font-size: 0.8rem;
    color: #f87171;
    margin: 0 0 0.5rem;
}
.name-swap-success {
    font-size: 0.8rem;
    color: #4ade80;
    margin: 0 0 0.5rem;
}
.name-swap-submit { width: 100%; justify-content: center; margin-top: 0.25rem; }

/* Pre-Ready-Up in-game-name reminder (same flyout recipe as the name station) */
.play-name-reminder-flyout { max-width: 440px; }
.name-reminder-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0.5rem 0 0;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    background: rgba(244, 1, 43, 0.1);
    box-shadow: inset 0 0 0 1px rgba(244, 1, 43, 0.28);
    color: #ffb4b4;
    font-size: 0.78rem;
    line-height: 1.4;
}
.name-reminder-warning i { margin-top: 0.15rem; flex-shrink: 0; }
.name-reminder-figure {
    margin: 0.75rem 0 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.name-reminder-figure img {
    display: block;
    width: 100%;
    height: auto;
}
.name-reminder-current {
    margin: 0.6rem 0 0.85rem;
    font-size: 0.85rem;
    color: #aaa;
}
.name-reminder-current strong { color: #fff; }
.name-reminder-actions {
    display: grid;
    gap: 0.55rem;
}
.name-reminder-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: 'Apex', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.name-reminder-btn--primary {
    background: linear-gradient(135deg, #f4012b 0%, #b8011f 100%);
    color: #fff;
    box-shadow: 0 10px 26px rgba(244, 1, 43, 0.24);
}
.name-reminder-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(244, 1, 43, 0.34);
}
.name-reminder-btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: #444;
    color: #ddd;
}
.name-reminder-btn--secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: #666; color: #fff; }

/* ========== Player LiveAPI Status Indicator ========== */
.team-formation-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.liveapi-status-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 8px 0;
    padding: 5px 0;
    font-size: 10px;
    font-weight: 500;
    background: none;
    border: none;
    border-radius: 0;
    line-height: 1;
}
.liveapi-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.liveapi-status-dot.connected {
    background: #10b981;
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
}
.liveapi-status-dot.disconnected {
    background: #6b7280;
}
.liveapi-status-label {
    color: #9ca3af;
    white-space: nowrap;
    line-height: 1;
}
