/* ===================================
   BATTLE PASS UI (REDESIGNED)
   =================================== */

.battle-pass-screen-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: 1200px; /* A bit smaller for a more focused view */
    margin: auto;
    background: rgba(1, 4, 9, 0.5); /* Darker background for the whole screen */
    position: relative; /* Needed for the floating button */
    /* Ensure desktop allows scrolling within the panel as well */
    overflow-y: auto;
    overflow-x: hidden;
}

.bp-header {
    flex-shrink: 0;
    background: rgba(1, 4, 9, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--panel-border);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 0.5rem;
}

.bp-header > div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* The title and back button container - absolutely positioned */
.bp-header > div:first-child {
    flex-grow: 0;
    justify-content: flex-start;
    margin-top: 0;
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    z-index: 30;
    width: auto; /* Changed from fixed width to auto */
}

/* Center the title within the header */
.bp-header > div:first-child .bp-season-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    text-align: center;
    width: max-content; /* Ensure the title takes only the space it needs */
    white-space: nowrap; /* Prevent wrapping */
}

/* The premium indicator - centered below the title */
.bp-header > div:nth-child(2) {
    flex-grow: 1;
    justify-content: center;
    margin-top: 4.5rem; /* Increased from 4rem */
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* The XP bar container - below the premium indicator */
.bp-header > div:nth-child(3) {
    flex-grow: 1;
    justify-content: center;
    margin-top: 2rem; /* Increased from 1.5rem to ensure enough space */
    width: 100%;
    z-index: 20;
}

/* The time remaining and season selector container */
.bp-header > div:nth-child(4) {
    margin-top: 0.5rem;
    width: 100%;
}

    .bp-title-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .bp-season-title {
        font-size: 1.25rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--accent-cyan);
        text-align: center;
        margin: 0;
    }

.bp-progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
    min-width: 0;
}

.bp-level-display {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bp-level-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
    position: relative;
    z-index: 10; /* Ensure it's above other elements */
}

.bp-level-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.bp-xp-bar {
    flex-grow: 1;
    position: relative;
    height: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 9999px;
    border: 1px solid var(--panel-border);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
    min-width: 150px;
}

.bp-xp-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--accent-cyan), var(--price-green));
    border-radius: 9999px;
    box-shadow: 0 0 10px var(--accent-glow), 0 0 5px var(--price-green);
    transition: width 0.5s ease-out;
}

.bp-xp-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem; /* Increased from 0.75rem */
    line-height: 1;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 3px rgba(0,0,0,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.5rem; /* Increased padding */
}

    .bp-main-content {
        min-height: 0;
        height: auto;
        flex: 1 1 auto;
        padding-bottom: 1rem;
        overflow-y: auto;
        overflow-x: hidden;
    }

.bp-main-content::-webkit-scrollbar {
    width: 10px;
}

.bp-main-content::-webkit-scrollbar-track {
    background: rgba(13, 17, 23, 0.2);
    border-radius: 5px;
}

.bp-main-content::-webkit-scrollbar-thumb {
    background-color: var(--accent-cyan);
    border-radius: 5px;
    border: 2px solid rgba(1, 4, 9, 0);
    background-clip: padding-box;
}

.bp-main-content::-webkit-scrollbar-thumb:hover {
    background-color: #00ffff;
}

.bp-tracks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    position: relative;
    padding: 0 1rem; /* Space for the connector line */
    max-width: 800px;
    margin: 0 auto;
}

/* The connector line */
.bp-tracks::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: linear-gradient(to bottom, var(--panel-border), var(--accent-cyan), var(--panel-border));
    opacity: 0.3;
    border-radius: 2px;
}

.bp-tier {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    position: relative;
    min-height: 120px; /* Give it some height */
    padding: 1rem;
    background: rgba(1, 4, 9, 0.3);
    border-radius: 0.75rem;
    margin: 0 1rem 1rem 1rem; /* Add bottom margin to prevent overlap */
}

.bp-tier-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: var(--bg-color);
    border: 2px solid var(--panel-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--text-dark);
    z-index: 10;
    transition: all 0.3s ease;
}

.bp-tier.unlocked .bp-tier-number {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}
.bp-tier.current .bp-tier-number {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 20px var(--accent-glow);
    animation: pulse-glow 2s infinite;
}

.bp-reward-card {
    height: 100px;
    border: 2px solid var(--panel-border);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(5px);
    min-width: 0; /* Allow cards to shrink */
}

.bp-reward-card.free {
    grid-column: 1;
    justify-self: end;
    width: 300px;
    max-width: 300px;
}

.bp-reward-card.premium {
    grid-column: 3;
    justify-self: start;
    width: 300px;
    max-width: 300px;
    border-color: rgba(255, 215, 0, 0.4);
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05), transparent 70%),
                rgba(13, 17, 23, 0.7);
}

.bp-reward-card.locked {
    opacity: 0.5;
    filter: grayscale(0.5);
}
.bp-reward-card.locked.premium:not(.pass-owned) {
    opacity: 0.3;
}
.bp-reward-card.locked.premium:not(.pass-owned)::before {
    content: "🔒";
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
    background: transparent;
    color: var(--accent-gold);
    z-index: 5;
    text-shadow: 0 0 5px black;
}
.bp-reward-card.pass-owned .bp-reward-details {
    position: relative;
    padding-right: 2rem; /* Make space for the lock icon */
}

.bp-reward-card.claimable {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px var(--accent-glow);
    animation: pulse-glow 2s infinite;
    cursor: pointer;
}

/* Locked or non-claimable states should not be clickable */
.bp-reward-card.locked {
    pointer-events: none;
    cursor: default;
}

.bp-reward-card.is-claiming {
    animation: claim-reward-pop 0.6s ease-out forwards;
    cursor: default;
    pointer-events: none;
}

.bp-reward-card.is-claiming.premium {
    animation-name: claim-reward-pop-premium;
}

.bp-reward-card.claimable.premium {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px var(--accent-gold-glow);
}

.bp-reward-card.claimed {
    filter: brightness(0.6);
    pointer-events: none;
    cursor: default;
}
.bp-reward-card.claimed::after {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
    color: var(--price-green);
    text-shadow: 0 0 10px var(--price-green);
    opacity: 0.9;
}

.bp-reward-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 48px;
    text-align: center;
}
.bp-reward-details {
    min-width: 0;
    flex-grow: 1;
}
.bp-reward-name {
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
    .bp-reward-amount.text-amber-400 {
        color: #fbbf24; /* amber-400 */
        font-weight: 600;
        font-size: 0.875rem;
        margin-top: 0.25rem;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        word-break: break-word;
        line-height: 1.2;
    }

#bp-upgrade-floating-btn-container {
    position: fixed; /* Keep visible regardless of scroll */
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100; /* Above content and overlays, below modals */
    width: min(90%, 340px);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    pointer-events: none; /* Container ignores clicks */
}

#bp-upgrade-floating-btn-container #bp-upgrade-btn {
    pointer-events: auto; /* Button remains clickable */
}

#bp-upgrade-btn {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.75rem;
    border-radius: 9999px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #2c2c2c, #1a1a1a);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

/* The spans inside the button need a higher z-index to be on top of the shine effect */
#bp-upgrade-btn > span {
    position: relative;
    z-index: 2;
}

#bp-upgrade-btn::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    z-index: -1;
    background: conic-gradient(from 180deg at 50% 50%, #ffd700, #fbb034, #ff7e5f, #feb47b, #ffd700);
    border-radius: 9999px;
    animation: spin 4s linear infinite;
}

#bp-upgrade-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(115deg, transparent 40%, rgba(255, 215, 0, 0.5) 50%, transparent 60%);
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: premium-shimmer 3s infinite;
}

#bp-upgrade-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #ffd700, 0 0 40px #ff7e5f;
}

#bp-premium-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0 auto;
    justify-content: center;
    position: relative;
    top: 1.5rem;
    z-index: 25;
}

#bp-premium-indicator.hidden {
    display: none !important;
}

#bp-time-remaining {
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-top: 0.25rem;
    text-align: center;
}

.coming-soon-overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 4, 9, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    color: var(--text-light);
}
.blurred {
    filter: blur(4px);
}
/* Prevent scrolling when no-scroll class is applied */
.no-scroll,
.battle-pass-screen-container.no-scroll {
    overflow: hidden !important;
}

/* Also disable inner content scroll when coming soon overlay is active */
.battle-pass-screen-container.no-scroll .bp-main-content {
    overflow: hidden !important;
}

.bp-season-selector {
    display: flex;
    gap: 0.5rem;
    background: rgba(0,0,0,0.3);
    padding: 0.25rem;
    border-radius: 0.5rem;
    justify-content: center;
    height: 40px; /* Fixed height to prevent jumping */
    align-items: center;
}

.bp-season-tab {
    padding: 0.5rem 1rem; color: var(--text-dark); font-weight: 700; border-radius: 0.375rem; transition: all 0.2s ease-out;
    display: flex; flex-direction: column; align-items: center; line-height: 1.2;
}
.bp-season-tab.active {
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.1);
}

@media (max-width: 639px) {
    .battle-pass-screen-container {
        height: 100vh;
        max-height: 100vh;
        padding: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .bp-header {
        padding: 0.5rem;
        gap: 0.5rem;
        flex-direction: column;
        align-items: stretch;
        position: sticky;
        top: 0;
        background: rgba(1, 4, 9, 0.9);
        z-index: 30; /* Ensure header stays above content */
    }

    /* The back button and title container */
    .bp-header > div:first-child {
        position: absolute;
        top: 0.75rem;
        left: 0.75rem;
        z-index: 30;
        flex-grow: 0;
        margin-top: 0;
        justify-content: flex-start;
        width: auto; /* Changed from fixed width to auto */
    }

    /* Center the title within the header */
    .bp-header > div:first-child .bp-season-title {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        text-align: center;
        width: max-content; /* Ensure the title takes only the space it needs */
        white-space: nowrap; /* Prevent wrapping */
    }

    /* The premium indicator - centered below the title */
    .bp-header > div:nth-child(2) {
        flex-grow: 1;
        justify-content: center;
        margin-top: 4.5rem; /* Increased from 3.5rem */
        width: 100%;
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    /* The XP bar container - below the premium indicator */
    .bp-header > div:nth-child(3) {
        flex-grow: 1;
        justify-content: center;
        margin-top: 2rem; /* Increased from 1.5rem to ensure enough space */
        width: 100%;
        z-index: 20;
    }

    /* The time remaining and season selector container */
    .bp-header > div:nth-child(4) {
        margin-top: 0.5rem;
        width: 100%;
    }

    .bp-season-title {
        font-size: 1.1rem;
        margin: 0;
        text-align: center;
    }

    .bp-progress-container {
        flex-direction: column;
        gap: 0.25rem;
        flex-grow: 0;
        width: 100%;
        max-width: none;
    }

    .bp-level-display {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .bp-level-label {
        font-size: 0.75rem;
        margin: 0;
        position: relative;
        z-index: 10; /* Ensure it's above other elements */
    }

    .bp-level-value {
        font-size: 1.25rem;
    }

    .bp-xp-bar {
        height: 20px;
        width: 100%;
        min-width: 150px;
    }

    .bp-xp-text {
        font-size: 0.875rem;
        padding: 0 0.5rem;
    }

    #bp-time-remaining {
        font-size: 0.7rem;
        margin-top: 0.125rem;
    }

    .bp-main-content {
        padding: 0.5rem 0;
        overflow-y: auto;
        margin-top: 0;
        padding-top: 2.5rem; /* Further reduced padding to ensure first tier is fully visible */
        /* Custom Scrollbar for a better look */
        scrollbar-width: thin; /* For Firefox */
        scrollbar-color: var(--accent-cyan) rgba(13, 17, 23, 0.5); /* For Firefox */
        position: relative;
        z-index: 5;
    }

    .bp-main-content::-webkit-scrollbar {
        width: 10px;
    }

    .bp-main-content::-webkit-scrollbar-track {
        background: rgba(13, 17, 23, 0.2);
        border-radius: 5px;
    }

    .bp-main-content::-webkit-scrollbar-thumb {
        background-color: var(--accent-cyan);
        border-radius: 5px;
        border: 2px solid rgba(1, 4, 9, 0);
        background-clip: padding-box;
    }

    .bp-main-content::-webkit-scrollbar-thumb:hover {
        background-color: #00ffff;
    }

    .bp-tracks {
        gap: 0.75rem;
        padding: 0 0.5rem;
        flex: 1 1 auto;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .bp-tracks::before {
        left: 20px;
    }

    .bp-tier {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        min-height: auto;
        padding: 1.5rem 0.875rem 0.875rem; /* Added extra top padding for tier number */
        background: rgba(1, 4, 9, 0.3);
        border-radius: 0.5rem;
        margin: 0 0.5rem 1rem 0.5rem; /* Add bottom margin to prevent overlap */
        align-items: center;
        position: relative;
    }

    .bp-tier-number {
        position: relative;
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: -1.25rem auto 0.5rem auto; /* Pull it above the tier container */
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
        color: var(--text-dark);
        z-index: 35; /* Higher than header z-index to ensure visibility */
        background-color: var(--bg-color);
        border: 2px solid var(--panel-border);
        border-radius: 50%;
        transition: all 0.3s ease;
        /* Ensure visibility on mobile */
        box-shadow: 0 4px 12px rgba(0,0,0,0.7);
        left: auto;
        top: auto;
        transform: none;
    }

    /* Special handling for first tier number to ensure it's always visible */
    /* Ensure first tier number is visible above header and has proper circular shape */
    .bp-tier:first-child .bp-tier-number {
        z-index: 35; /* Higher than header z-index */
        box-shadow: 0 4px 12px rgba(0,0,0,0.7);
        margin: -1.25rem auto 0.5rem auto; /* Pull it even further up for better visibility */
        position: relative;
        width: 40px;
        height: 40px;
        left: auto;
        top: auto;
        transform: none;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--bg-color);
        border: 2px solid var(--panel-border);
        border-radius: 50%;
        font-weight: 900;
        color: var(--text-dark);
    }

    .bp-reward-card {
        height: auto;
        min-height: 100px;
        gap: 0.875rem;
        padding: 1rem;
        width: 100%;
        max-width: none;
        justify-self: stretch;
        border-radius: 0.5rem;
        display: flex;
        align-items: center;
        text-align: left;
        position: relative;
        overflow: visible; /* Changed from hidden to visible to prevent clipping */
        transition: all 0.3s ease;
        background: rgba(13, 17, 23, 0.7);
        backdrop-filter: blur(5px);
        border: 2px solid var(--panel-border);
        flex-direction: row;
        z-index: 1;
    }

    .bp-reward-card.free {
        grid-column: 1;
        justify-self: center;
        width: calc(100% - 20px);
        max-width: none;
        margin: 0 10px 10px 10px;
    }

    .bp-reward-card.premium {
        grid-column: 1;
        justify-self: center;
        width: calc(100% - 20px);
        max-width: none;
        margin: 10px 10px 0 10px;
        border-color: rgba(255, 215, 0, 0.4);
        background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.1), transparent 70%),
                    rgba(13, 17, 23, 0.8);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    }

    .bp-reward-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .bp-reward-details {
        flex-grow: 1;
        min-width: 0;
        padding: 0.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        position: relative;
        z-index: 2;
    }

    .bp-reward-name {
        font-size: 1.1rem;
        white-space: normal;
        line-height: 1.3;
        font-weight: 700;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1; /* Limit to 1 line to leave room for reward amount */
        -webkit-box-orient: vertical;
        word-break: break-word;
        padding-right: 0.25rem;
        margin-bottom: 0.25rem; /* Slightly larger margin to separate from reward amount */
    }

    .bp-reward-amount {
        font-size: 0.875rem;
        margin-top: 0.25rem;
        color: var(--text-dark);
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        word-break: break-word;
        line-height: 1.2;
    }

    /* Simplified, robust rules for reward amounts that ensure visibility */
    .bp-free-amount {
        color: #9ca3af !important; /* gray-400 */
        font-weight: 600 !important;
        font-size: 0.875rem !important;
        margin-top: 0.25rem !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        word-break: break-word !important;
        line-height: 1.2 !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }

    .bp-premium-amount {
        color: #fcd34d !important; /* amber-300 (brighter than amber-400) */
        font-weight: 700 !important;
        font-size: 0.875rem !important;
        margin-top: 0.25rem !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        word-break: break-word !important;
        line-height: 1.2 !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        text-shadow: 0 0 2px rgba(0, 0, 0, 0.5) !important; /* Subtle shadow for better visibility */
        position: relative !important;
        z-index: 10 !important;
    }

    #bp-premium-indicator {
        font-size: 0.75rem;
        margin: 0 auto;
        top: 1.25rem;
    }

    #bp-premium-indicator.hidden {
        display: none !important;
    }

    #bp-upgrade-floating-btn-container {
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: min(92%, 320px);
        margin: 0 auto;
        display: flex;
        justify-content: center;
        z-index: 100;
        pointer-events: none;
    }

    #bp-upgrade-floating-btn-container #bp-upgrade-btn {
        pointer-events: auto;
    }

    #bp-upgrade-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1.25rem;
    }

    #bp-season-selector {
        margin-top: 0.5rem;
        justify-content: center !important;
        min-height: 40px; /* Changed from fixed height to min-height to prevent jumping */
        display: flex !important;
        align-items: center !important;
        width: 100%;
        text-align: center;
        flex-wrap: wrap; /* Allow wrapping if needed */
    }

    .bp-season-tab {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .bp-title-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 0.75rem;
        margin-bottom: 0.25rem;
    }

    /* Fix for first tier visibility on mobile */
    .bp-tier:first-child {
        padding-top: 2.5rem; /* Increased padding to ensure first tier number is fully visible */
    }

    /* Special handling for first tier number to ensure it's always visible */
    /* Ensure first tier number is visible above header and has proper circular shape */
    .bp-tier:first-child .bp-tier-number {
        z-index: 35; /* Higher than header z-index */
        box-shadow: 0 4px 12px rgba(0,0,0,0.7);
        margin: -2.25rem auto 0.5rem auto; /* Pull it even further up for better visibility */
        position: relative;
        width: 40px;
        height: 40px;
        left: auto;
        top: auto;
        transform: none;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--bg-color);
        border: 2px solid var(--panel-border);
        border-radius: 50%;
        font-weight: 900;
        color: var(--text-dark);
    }

    /* Mobile styles for unlocked tiers */
    .bp-tier.unlocked .bp-tier-number {
        border-color: var(--accent-cyan);
        color: var(--accent-cyan);
    }

    /* Mobile styles for current tier - highlighted in blue */
    .bp-tier.current .bp-tier-number {
        border-color: var(--accent-cyan);
        color: var(--accent-cyan);
        transform: none;
        box-shadow: 0 0 20px var(--accent-glow);
        animation: pulse-glow 2s infinite;
        margin: -1.25rem auto 0.5rem auto;
        position: relative;
        width: 40px;
        height: 40px;
        left: auto;
        top: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--bg-color);
        border: 2px solid var(--accent-cyan);
        border-radius: 50%;
        font-weight: 900;
    }

    .bp-season-title {
        font-size: 1.1rem;
        margin: 0;
        text-align: center;
    }
}
