/* ============================================================
   Battle Pass Landing Page
   ============================================================ */

/* --- Header --- */

.bp-header {
    padding: 1rem 0 0;
    text-align: center;
}

.bp-header__inner {
    margin: 0 1rem;
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.8);
}

.bp-header__left {
    flex: 0 0 60%;
    text-align: center;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bp-header__right {
    flex: 0 0 40%;
    text-align: left;
    padding: 0 0 0 2rem;
    position: relative;
}

.bp-header__right::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    bottom: 1.5rem;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.85);
    pointer-events: none;
}

/* Horizontal divider between season logo and description */
.bp-header__divider {
    width: 80%;
    max-width: 360px;
    height: 1px;
    background: #52cbbc;
    margin: 0.75rem auto 1rem;
}

/* Logos */

.bp-header__logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.bp-header__partner-logo {
    max-height: 60px;
    width: auto;
}

.bp-header__season-logo {
    max-height: 80px;
    width: auto;
}

/* Title & Description */

.bp-header__title {
    font-family: AlienwareBold, sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    margin: 0.5rem 0;
}

.bp-header__description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

.bp-header__description p {
    margin-bottom: 0;
}

.bp-header__description a,
.bp-header__rules-list a {
    color: #00e5ff;
}

.bp-header__description a:hover,
.bp-header__rules-list a:hover {
    color: #33ecff;
    text-decoration: underline;
}

.bp-header__description strong,
.bp-header__rules-list strong {
    font-family: 'AlienwareBold', sans-serif;
}

/* Status / Action bar - sits below the bordered header block */

.bp-header__action {
    margin: 1rem 1rem 1.25rem;
    padding: 0;
    text-align: center;
}

.bp-header__status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: AlienwareBold, sans-serif;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

.bp-header__token-count,
.bp-header__token-total {
    color: #00e5ff;
}

.bp-header__separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: normal;
}

.bp-header__countdown {
    font-family: monospace;
    color: #00e5ff;
    letter-spacing: 0.05em;
}

.bp-header__countdown-label {
    font-size: 1.125rem;
    font-family: AlienwareBold, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.95);
}

/* START button - large, prominent, matches mockup style */

.bp-header__start-btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-family: AlienwareBold, sans-serif;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #fff;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bp-header__start-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #16213e, #0f3460);
}

/* Completed/Started banner */

.bp-header__completed, .bp-header__started {
    font-family: AlienwareBold, sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #00e5ff;
    margin-top: 1rem;
}

/* Rules */

.bp-header__rules-heading {
    font-family: AlienwareBold, sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin: 0 0 1rem;
}

.bp-header__rules-list {
    padding-left: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.bp-header__rules-list li {
    margin-bottom: 0.25rem;
}

/* --- Responsive: stack on mobile --- */

@media (max-width: 840px) {
    .bp-header {
        padding: 0.75rem 0 0;
    }

    .bp-header__inner {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1rem;
    }

    .bp-header__left {
        padding: 0;
    }

    .bp-header__right {
        flex: none;
        text-align: left;
        padding: 1rem 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.6);
    }

    .bp-header__right::before {
        display: none;
    }

    .bp-header__partner-logo {
        max-height: 40px;
    }

    .bp-header__season-logo {
        max-height: 56px;
    }

    .bp-header__description {
        font-size: 0.8125rem;
    }

    .bp-header__status {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 1rem;
    }

    .bp-header__separator {
        display: none;
    }

    .bp-header__countdown-label {
        font-size: 1rem;
    }

    .bp-header__start-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        letter-spacing: 0.15em;
    }
}

/* ============================================================
   Map
   ============================================================ */

/* Personal landing page: wider container that respects the fixed user menu
   (250px wide, positioned on the LEFT on account pages) and the top navbar (80px). */
.bp-landing-container {
    padding-top: 80px;
    padding-left: 0;
    padding-right: 0;
}

.bp-landing-container.has-fixed-menu {
    padding-left: 250px;
}

@media (max-width: 768px) {
    .bp-landing-container.has-fixed-menu {
        padding-left: 0;
    }
}

.bp-map {
    position: relative;
    margin: 0 1rem;
    /* Establish a local stacking context so the markers' z-index values are
       scoped inside the map and don't compete with site-wide overlays (e.g.
       the login modal) that sit at higher z-indexes on the body. */
    isolation: isolate;
}

.bp-map--mobile {
    display: none;
    position: relative;
    /* Fallback height so the absolutely-positioned carousel has room when
       the mobile background image is missing or hasn't loaded yet. The
       background image, if present, takes over via its natural aspect. */
    min-height: 260px;
}

.bp-map--mobile .bp-map__background {
    width: 100%;
}

.bp-map__background {
    width: 100%;
    display: block;
}

/* --- Marker (milestone image node) --- */

.bp-marker {
    position: absolute;
    /* Sized as a percentage of the markers container so the marker scales
       with the map background as the viewport changes. Height follows the
       image's natural aspect ratio. */
    width: 7%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: filter 0.15s ease;
    z-index: 5;
}

.bp-marker:hover {
    z-index: 10;
}

/* When a marker's popup is open, lift the marker (and its child popup) above
   adjacent markers - otherwise hovering a neighbouring marker raises it to
   z-index: 10 and its image renders on top of the active popup, because the
   popup lives inside the active marker's stacking context. */
.bp-marker--popup-open {
    z-index: 20;
}

/* "Show thumbnail on map" is off: milestone renders as a transparent 200x200
   click target instead of the image + badge. The image is baked into the map
   background at that spot; the click target opens the popup. */
.bp-marker--hidden {
    filter: none !important;
    animation: none !important;
    cursor: pointer;
}

.bp-marker__hidden-hit {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    background: transparent;
}

.bp-marker__image {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.bp-marker__number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    pointer-events: none;
}

/* Status badge in the bottom-right of the milestone image.
   White circle with a status-coloured icon. Sized as a percentage of the marker
   so it scales together. */
.bp-marker__badge {
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 20%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.bp-marker__badge--locked {
    color: #d93025;
}

.bp-marker__badge--unlockable {
    color: #1e9e4e;
}

.bp-marker__badge--claimed {
    color: #1a73e8;
}

/* State: in_progress - blue glow */
.bp-marker--in_progress {
    filter: drop-shadow(0 0 6px rgba(0, 170, 255, 0.8));
}

/* State: unlockable (ready to claim) - green pulse */
.bp-marker--unlockable {
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.9));
    animation: bp-pulse 1.5s ease-in-out infinite;
}

/* State: claimed - subtle cyan glow */
.bp-marker--claimed {
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.6));
}

@keyframes bp-pulse {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.6)); }
    50% { filter: drop-shadow(0 0 12px rgba(0, 255, 136, 1)); }
}

/* ============================================================
   Milestone Popup
   ============================================================ */

.bp-marker__popup {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    z-index: 100;
}

.bp-popup {
    position: relative;
    background: #0a0e16;
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 8px;
    padding: 0.75rem 0 1rem;
    /* Fixed width so the popup doesn't reflow when the claim button swaps
       its label / loading state / final CLAIMED message. max-width on the
       mobile modal still caps this at 90vw on narrow viewports. */
    width: 300px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.bp-popup__close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    color: #00e5ff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.bp-popup__close:hover {
    color: #fff;
}

.bp-popup__title {
    font-family: AlienwareBold, sans-serif;
    font-size: 0.9375rem;
    color: #fff;
    margin: 0 0 0.75rem;
    padding: 0 2rem 0.75rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bp-popup__image-wrap {
    margin: 0 0 0.75rem;
    padding: 0 1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bp-popup__image {
    max-width: 140px;
    max-height: 140px;
    margin: 0 auto;
    display: block;
    border-radius: 4px;
}

.bp-popup__desc {
    font-size: 0.8125rem;
    color: #00e5ff;
    margin: 0 0 0.75rem;
    padding: 0 1rem 0.75rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bp-popup__progress {
    margin: 0 0 0.75rem;
    padding: 0 1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bp-popup__progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.bp-popup__progress-fill {
    height: 100%;
    background: #00e5ff;
    border-radius: 3px;
}

.bp-popup__progress-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: monospace;
}

.bp-popup__arp {
    font-family: AlienwareBold, sans-serif;
    font-size: 1.125rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 1rem;
}

.bp-popup__claim-btn {
    display: inline-block;
    width: calc(100% - 2rem);
    margin: 0 1rem;
    padding: 0.6rem 2rem;
    font-family: AlienwareBold, sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #000;
    background: #00e5ff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.bp-popup__claim-btn:hover {
    background: #33ecff;
}

.bp-popup__claim-btn:disabled,
.bp-popup__claim-btn.is-loading {
    background: rgba(0, 229, 255, 0.4);
    cursor: progress;
    pointer-events: none;
}

.bp-popup__claimed {
    font-size: 0.8125rem;
    color: #00e5ff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: AlienwareBold, sans-serif;
}

.bp-popup__claim-error {
    margin: 0.5rem 1rem 0;
    color: #ff6b6b;
    font-size: 0.8125rem;
    text-align: center;
}

/* --- Mobile: swap to carousel layout --- */

@media (max-width: 840px) {
    .bp-map--desktop {
        display: none;
    }

    .bp-map--mobile {
        display: block;
    }

    .bp-popup {
        min-width: 180px;
        max-width: 250px;
    }
}

/* ============================================================
   Mobile Carousel (BP map)
   ============================================================ */

/* Flickity-managed carousel: overlays the mobile background image. Flickity
   handles slider/viewport/cell positioning internally; we just size the
   carousel and the individual cells. */
.bp-mobile-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.bp-mobile-carousel .flickity-viewport {
    height: 100%;
}

/* Each milestone card = one Flickity cell, two per slide at 50% width.
   box-sizing: border-box so the padding is included in the 50% width (otherwise
   cells overlap and the leftmost wing of the border SVG gets clipped). */
.bp-mobile-carousel .bp-mobile-card {
    box-sizing: border-box;
    width: 50%;
    max-width: 50%;
    padding: 0 0.75rem;
    cursor: pointer;
    /* Vertically center the cell content within the viewport via flex.
       (Previously used `top: 50%; transform: translateY(-50%)` but the transform
       creates a GPU layer that interacts badly with the SVG filter inside the
       card - Flickity GPU-promotes settled cells and the filter's offscreen
       buffer gets clipped to the cell's transform layer box, chopping off the
       polygon corners.) */
    height: 100%;
    justify-content: center;
}

/* Status badge inset into the lower-right of the card frame, same icons +
   colours as the desktop map markers (white circle, red lock / green open
   lock / blue check). */
.bp-mobile-card__badge {
    position: absolute;
    right: 4%;
    bottom: 8%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 2;
}

.bp-mobile-card__badge--locked {
    color: #d93025;
}

.bp-mobile-card__badge--unlockable {
    color: #1e9e4e;
}

.bp-mobile-card__badge--claimed {
    color: #1a73e8;
}

/* Milestone title below the framed image */
.bp-mobile-card__title {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Flickity nav button styling overrides so the prev/next arrows match the
   dark backdrop instead of the default white pill. */
.bp-mobile-carousel .flickity-button {
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.9);
    width: 36px;
    height: 64px;
    border-radius: 4px;
}

.bp-mobile-carousel .flickity-button:hover {
    background: rgba(0, 229, 255, 0.6);
    color: #fff;
}

.bp-mobile-carousel .flickity-button:disabled {
    opacity: 0.4;
}

.bp-mobile-carousel .flickity-button-icon {
    fill: currentColor;
}

.bp-mobile-carousel .flickity-prev-next-button.previous {
    left: 4px;
}

.bp-mobile-carousel .flickity-prev-next-button.next {
    right: 4px;
}

/* Mobile popup acts as a full-screen modal so positioning doesn't depend on
   the card's location in the carousel (cells move with Flickity's translate
   and would otherwise drag the popup off-screen). */
.bp-mobile-card__popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    align-items: center;
    justify-content: center;
    /* Re-enable pointer events on the modal even when the carousel below has
       pointer-events: none while the modal is open. */
    pointer-events: auto;
}

.bp-mobile-card__popup.is-open {
    display: flex;
}

.bp-mobile-card__popup .bp-popup {
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

/* While a modal is open, freeze the carousel: no drag, no taps. The modal
   itself keeps pointer-events: auto so its close button and backdrop still
   respond. */
.bp-mobile-carousel.is-modal-open .flickity-slider,
.bp-mobile-carousel.is-modal-open .flickity-button {
    pointer-events: none;
}

/* ============================================================
   Battle Store - supplements the marketplace banner + .product-card pattern
   ============================================================ */

/* Token balance pill on the banner overlay. */
.bp-store__balance {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 10px;
    padding: 6px 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    font-size: 0.9375rem;
}

.bp-store__balance strong {
    color: #00e5ff;
}

.bp-store__balance-icon {
    width: 22px;
    height: 22px;
}

/* Fallback ARP icon shown on default ARP-bundle products that don't have a
   custom thumbnail. The wrapper provides a positioning context so the ARP
   amount can be overlaid on top of the SVG (same pattern as the advent
   calendar's daily ARP tiles). */
.bp-store__default-arp-wrap {
    position: relative;
    width: 70%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img.bp-store__default-arp {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bp-store__default-arp-amount {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: AlienwareBold, sans-serif;
    font-size: 1.75rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

/* Battle token icon used in place of the "TOKENS" suffix on product prices. */
.bp-store__price-token {
    width: 18px;
    height: 18px;
    margin-left: 4px;
    vertical-align: -3px;
}

/* Season-specific token reminder in the banner overlay. */
.bp-store__token-notice {
    margin: 12px auto 0;
    max-width: 540px;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    text-align: center;
}

.token-store-banner.full {
    min-height: 275px;
}

.token-store-banner .marketplace-banner-overlay {
    padding: 1.5rem 1rem;
}

.token-store-banner .token-store-banner-text {
    margin: 0;
    max-width: 100%;
}

.token-store-banner #bp-store-timer {
    display: inline-block;
}

/* Compact the banner content on narrow viewports so timer + notice fit
   without truncation. */
@media (max-width: 768px) {
    .token-store-banner.full {
        min-height: 200px;
    }

    .token-store-banner .marketplace-banner-overlay {
        padding: 1rem 0.75rem;
    }

    .token-store-banner .token-store-banner-text {
        font-size: 1.125rem;
        line-height: 1.3;
    }

    .token-store-banner #bp-store-timer {
        font-size: 1rem;
    }

    .bp-store__balance {
        max-width: calc(100% - 16px);
        font-size: 0.875rem;
        padding: 4px 12px;
    }

    .bp-store__token-notice {
        margin-top: 8px;
        font-size: 0.75rem;
        line-height: 1.3;
        max-width: 100%;
    }
}

/* Status message for closed-store states. */
.bp-store__status-message {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.125rem;
}

/* Diagonal "ALL OUT" / "PURCHASED" stamp over the product image. */
.bp-store__card-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-family: AlienwareBold, sans-serif;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    pointer-events: none;
    z-index: 2;
}

.bp-store__card-badge--out {
    color: #ff4444;
    border: 2px solid #ff4444;
    background: rgba(0, 0, 0, 0.7);
}

.bp-store__card-badge--owned {
    color: #00e5ff;
    border: 2px solid #00e5ff;
    background: rgba(0, 0, 0, 0.7);
}

/* Buy button mounted under the .product-card body, pill style matching the
   marketplace banner CTAs. */
.bp-store__buy-btn {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px 16px;
    font-family: AlienwareBold, sans-serif;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    text-decoration: none;
    color: #000;
    background: #fff;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.2s;
}

.bp-store__buy-btn:hover {
    background: var(--base-gray-45, #d4d4d4);
    color: #000;
    text-decoration: none;
}

.bp-store__buy-btn:disabled {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.bp-store__buy-btn--login {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.bp-store__buy-btn--login:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.bp-store__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Purchase confirm modal --- */

.bp-store-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.bp-store-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.bp-store-modal__panel {
    position: relative;
    width: min(420px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    background: #0a0e16;
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
    text-align: center;
    color: #fff;
}

.bp-store-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: #00e5ff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.bp-store-modal__close:hover {
    color: #fff;
}

.bp-store-modal__image {
    max-width: 160px;
    max-height: 160px;
    margin: 0 auto 1rem;
    display: block;
    border-radius: 8px;
}

.bp-store-modal__title {
    font-family: AlienwareBold, sans-serif;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.75rem;
}

.bp-store-modal__desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    margin: 0 0 0.75rem;
    white-space: pre-wrap;
}

.bp-store-modal__text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.25rem;
}

.bp-store-modal__text strong {
    color: #00e5ff;
}

.bp-store-modal__token {
    width: 20px;
    height: 20px;
    vertical-align: -4px;
}

.bp-store-modal__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.bp-store-modal__btn {
    padding: 0.6rem 1.5rem;
    font-family: AlienwareBold, sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.bp-store-modal__btn--primary {
    background: #fff;
    color: #000;
}

.bp-store-modal__btn--primary:hover {
    background: #00e5ff;
}

.bp-store-modal__btn--primary:disabled {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(0, 0, 0, 0.5);
    cursor: progress;
}

.bp-store-modal__btn--secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.bp-store-modal__btn--secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

body.bp-store-modal-open {
    overflow: hidden;
}

/* ============================================================
   Homepage Quick-View Widget
   ============================================================ */

.bp-widget {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1.5rem;
    margin-bottom: 1rem;

    /* Desktop: grid puts partner, season, rewards in a row above the recap.
       Mobile (see media query below) flips to a single column with season first
       and partner/rewards moving below the recap. */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
        "partner season rewards"
        "recap   recap  recap";
    align-items: center;
    column-gap: 1rem;
    padding: 0.75rem 1rem 0;
}

/* No recap section is rendered when the user is logged out, so the widget
   needs explicit bottom padding (the recap normally provides the bottom gap). */
.bp-widget--no-recap {
    padding-bottom: 0.75rem;
}

.bp-widget__partner {
    grid-area: partner;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.bp-widget__season {
    grid-area: season;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.bp-widget__season-logo,
.bp-widget__season-time {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bp-widget__rewards-cta {
    grid-area: rewards;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.bp-widget__recap {
    grid-area: recap;
}

.bp-widget__logo {
    width: auto;
}

.bp-widget__logo--partner {
    height: 36px;
}

.bp-widget__logo--season {
    height: 28px;
}

.bp-widget__label {
    font-family: AlienwareBold, sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
}

.bp-widget__countdown-icon {
    font-size: 1rem;
    color: #fff;
}

.bp-widget__countdown {
    font-family: AlienwareBold, sans-serif;
    font-size: 0.875rem;
    color: #fff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bp-widget__rewards-btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    color: #fff;
    background: linear-gradient(180deg, #b89968 0%, #8a6f48 100%);
    border: 1px solid #d4b482;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
}

.bp-widget__rewards-btn:hover {
    background: linear-gradient(180deg, #c8a878 0%, #9a7f58 100%);
    color: #fff;
    text-decoration: none;
}

/* Recap section */

.bp-widget__recap {
    margin: 1rem 1rem;
    padding: 1.5rem 1rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
}

.bp-widget__recap--cover {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.bp-widget__recap--progress {
    padding: 1rem 1rem 0.5rem;
}

/* Not started - whole recap is a click target that starts the pass */

.bp-widget__start-form {
    grid-area: recap;
    margin: 10px 0 0;
}

.bp-widget__start-form .bp-widget__recap {
    margin: 0 0 1rem;
    width: 100%;
}

.bp-widget__recap--start {
    min-height: 290px;
    padding: 0;
    cursor: pointer;
    color: inherit;
    font: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.bp-widget__recap--start:hover {
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.4);
}

.bp-widget__recap--start:focus-visible {
    outline: 2px solid #00e5ff;
    outline-offset: 2px;
}

/* Completed: same height treatment as the start state for visual consistency.
   Anchor the "spend your tokens" CTA to the bottom of the recap panel. */
.bp-widget__recap--complete {
    min-height: 290px;
    align-items: flex-end;
    padding-bottom: 1.25rem;
}

/* Completed */

.bp-widget__completed {
    text-align: center;
    width: 100%;
}

.bp-widget__completed-text {
    font-family: AlienwareBold, sans-serif;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #fff;
    margin-bottom: 0.5rem;
}

.bp-widget__store-link {
    color: #00e5ff;
    text-decoration: none;
    font-size: 0.8125rem;
}

.bp-widget__store-link:hover {
    text-decoration: underline;
}

/* Mobile-only duplicate of the store CTA, slotted into the grid between the
   recap and the partner logo. Hidden on desktop where the in-recap copy
   shows instead. */
.bp-widget__store-link--mobile {
    display: none;
    grid-area: store-reminder;
    text-align: center;
}

@media (max-width: 768px) {
    .bp-widget__store-link--in-recap {
        display: none;
    }
    .bp-widget__store-link--mobile {
        display: block;
    }
}

/* In progress - milestone icons + progress bar */

.bp-widget__progress {
    width: 100%;
}

.bp-widget__milestones {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.bp-widget__milestone {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(60, 60, 70, 0.6);
}

.bp-widget__milestone--past {
    border-color: #00e5ff;
    opacity: 0.7;
}

.bp-widget__milestone--current {
    border-color: #00e5ff;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.bp-widget__milestone--future {
    opacity: 0.4;
}

.bp-widget__milestone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bp-widget__milestone-placeholder {
    font-size: 14px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
}

/* Progress bar */

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

.bp-widget__bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.bp-widget__bar-fill {
    height: 100%;
    background: linear-gradient(to right, #00aaff, #00e5ff);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.bp-widget__bar-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    min-width: 32px;
    text-align: right;
}

/* Mobile (and small tablet - the widget's desktop grid only fits comfortably
   above ~992px once the homepage content column is its full width). */

@media (max-width: 992px) {
    .bp-widget {
        grid-template-columns: 1fr;
        grid-template-areas:
            "season"
            "recap"
            "store-reminder"
            "partner"
            "rewards";
        padding: 0.75rem;
        column-gap: 0;
        row-gap: 0.5rem;
    }

    /* Stack season logo + countdown on separate lines on mobile, with a
       gold divider underneath. */
    .bp-widget__season {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        text-align: center;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #d4af6a;
    }

    .bp-widget__partner,
    .bp-widget__rewards-cta {
        justify-content: center;
        padding: 0.25rem 0;
    }

    .bp-widget__recap--start,
    .bp-widget__recap--complete {
        min-height: 150px;
    }

    .bp-widget__label {
        font-size: 0.7rem;
    }
}

/* --- Framed milestone cards (in-progress widget) --- */

.bp-widget__recap--progress .bp-widget__milestones {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin: 0;
    width: 100%;
}

.bp-card {
    --bp-card-border-color: #ffffff;
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bp-card__frame {
    position: relative;
    width: 100%;
    /* Aspect ratio matches the outer (border) SVG so both layers share height */
    aspect-ratio: 505.68 / 511;
}


.bp-card__center,
.bp-card__border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform-origin: center;
}

/* SVG assets are authored upright (default). The alternating "flipped" pattern
   used on the desktop widget rotates every other card 180 degrees for a zigzag
   look; mobile/tablet keeps every card upright. */
@media (min-width: 993px) {
    .bp-card--flipped .bp-card__border,
    .bp-card--flipped .bp-card__center {
        transform: rotate(180deg);
    }
}

/* Border SVG: two side wings tinted with the milestone color */
.bp-card__border polygon {
    fill: var(--bp-card-border-color);
}

.bp-card--current .bp-card__border polygon {
    fill: var(--bp-card-border-color);
    fill-opacity: 0.25;
    stroke: var(--bp-card-border-color);
    stroke-width: 2;
}

/* Center SVG: dark inner trapezoid with a colored stroke and inner glow.
   The inner glow is produced by the SVG <filter> inside the partial; it picks
   up `currentColor` from the CSS rule below so the milestone color drives it. */
.bp-card__center {
    color: var(--bp-card-border-color);
}

.bp-card__center polygon {
    fill: rgba(10, 14, 20, 0.92);
    stroke: var(--bp-card-border-color);
    stroke-width: 6;
    stroke-linejoin: round;
}

/* Milestone image: centered inside the frame at its intrinsic aspect, capped
   to stay within the center SVG's trapezoid. */
.bp-card__image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 50%;
    max-height: 80%;
    z-index: 1;
}

/* Locked PNG: authored right-side up; flip for the flipped slot orientation */
.bp-card__locked {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
}

.bp-card--flipped .bp-card__locked {
    transform: rotate(180deg);
}

.bp-card__footer {
    width: 100%;
    height: 22px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-card__check {
    color: #d4af6a;
    font-size: 0.95rem;
    line-height: 1;
}

.bp-card__progress {
    width: 80%;
    height: 5px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 3px;
    overflow: hidden;
}

.bp-card__progress-fill {
    height: 100%;
    background: linear-gradient(to right, #ffb968, #d4af6a);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.bp-card__up-next {
    font-family: AlienwareBold, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
}

@media (max-width: 992px) {
    /* Mobile/tablet in-progress recap: drop the rounded border + chrome so
       the cards fill the available width. Top padding gives the cards
       breathing room below the season divider. */
    .bp-widget__recap--progress {
        margin: 0;
        padding: 1.25rem 0 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        min-height: 0;
    }

    /* Cards: two per row at 50% width on mobile, filling the available space */
    .bp-card {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 1.25rem;
    }

    /* Default mobile view: show previous (nth 2) + current (nth 3) cards */
    .bp-widget__recap--progress .bp-card:nth-child(1),
    .bp-widget__recap--progress .bp-card:nth-child(4),
    .bp-widget__recap--progress .bp-card:nth-child(5) {
        display: none;
    }

    /* When user is on their first milestone, the "previous" slot is empty -
       swap visibility to current + next instead. */
    .bp-widget--first-milestone .bp-widget__recap--progress .bp-card:nth-child(2) {
        display: none;
    }

    .bp-widget--first-milestone .bp-widget__recap--progress .bp-card:nth-child(4) {
        display: flex;
    }
}
