/* Tournament Page Specific Styles */
/* Only includes styles unique to tournament.html that are NOT in style.css */

/* Container - Tournament specific */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* TD$ Highlight - Consistent green styling for Tournament Dollars */
.td-highlight {
    color: var(--bma-green-bright);
    font-weight: 700;
    position: relative;
    text-shadow: 0 0 12px rgba(0, 230, 118, 0.45);
}

/* ==========================================================================
   Bet Max Tourney — Hero (uplifted)
   ========================================================================== */
.bmt-hero {
    position: relative;
    padding: 4rem 2rem 8rem;
    background-color: var(--bma-dark-100);
    background-image:
        linear-gradient(120deg, rgba(8, 8, 8, 0.92) 0%, rgba(15, 15, 15, 0.78) 50%, rgba(46, 139, 87, 0.4) 100%),
        url('https://images.unsplash.com/photo-1775725181743-95a508495425?fm=jpg&q=80&w=3000&auto=format&fit=crop');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: scroll, fixed;
    overflow: hidden;
}

@supports (-webkit-touch-callout: none) {
    .bmt-hero { background-attachment: scroll, scroll; }
}

@media (prefers-reduced-motion: reduce) {
    .bmt-hero { background-attachment: scroll, scroll; }
}

.bmt-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bmt-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.bmt-hero-glow-green {
    width: 540px;
    height: 540px;
    top: -120px;
    right: 8%;
    background: radial-gradient(closest-side, rgba(0, 230, 118, 0.32), transparent);
}

.bmt-hero-glow-yellow {
    width: 480px;
    height: 480px;
    bottom: -120px;
    left: -120px;
    background: radial-gradient(closest-side, rgba(255, 215, 0, 0.22), transparent);
}

.bmt-hero-container {
    position: relative;
    z-index: 1;
}

.bmt-hero-breadcrumb {
    margin-bottom: 2.5rem;
}

.bmt-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

/* ----- Copy column ----- */
.bmt-hero-copy {
    position: relative;
    z-index: 3;
}

.bmt-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--bma-yellow);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.25rem;
}

.bmt-hero-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bma-green-bright), var(--bma-yellow));
}

.bmt-hero-logo {
    display: block;
    height: 145px;
    width: auto;
    max-width: 520px;
    margin: 0 auto 1.5rem;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
}

.bmt-hero-headline {
    font-size: clamp(1.85rem, 3.4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--bma-white);
    text-transform: uppercase;
    letter-spacing: -0.005em;
    margin: 0 0 1.25rem;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.bmt-hero-accent {
    display: inline-block;
    background: linear-gradient(135deg, var(--bma-green-bright) 0%, var(--bma-yellow) 70%, #FFA500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
    transform: skewX(-6deg);
    padding: 0 0.15em;
    margin: 0 -0.15em;
    filter: drop-shadow(0 2px 6px rgba(0, 230, 118, 0.25)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

.bmt-hero-subline {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 0.65rem;
    padding: 0.85rem 1.25rem 0.85rem 1.1rem;
    width: fit-content;
    max-width: 580px;
    margin: 0 0 2rem;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1) 0%, rgba(255, 215, 0, 0.06) 100%), rgba(15, 15, 15, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid;
    border-image: linear-gradient(180deg, var(--bma-green-bright), var(--bma-yellow)) 1;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bmt-hero-subline-icon {
    font-size: 20px;
    line-height: 1.55;
    color: var(--bma-green-bright);
    font-variation-settings: 'wght' 500, 'opsz' 24;
}

/* ----- CTAs ----- */
.bmt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.bmt-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.95rem 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, gap 0.2s ease, border-color 0.2s ease;
}

.bmt-hero-cta-primary {
    background: linear-gradient(135deg, var(--bma-green) 0%, #1f6b40 100%);
    color: var(--bma-white);
    border: none;
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.45);
}

.bmt-hero-cta-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--bma-green-bright) 0%, var(--bma-green) 100%);
    gap: 0.8rem;
}

.bmt-hero-cta-secondary {
    background: rgba(20, 20, 20, 0.7);
    color: var(--bma-white);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.bmt-hero-cta-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--bma-yellow);
    color: var(--bma-yellow);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.bmt-hero-cta-secondary .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
    font-variation-settings: 'wght' 500, 'opsz' 24;
}

/* ----- Phone visual ----- */
.bmt-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bmt-phone-stage {
    position: relative;
    width: 100%;
    max-width: 460px;
}

.bmt-phone-stage::before,
.bmt-phone-stage::after {
    content: '';
    position: absolute;
    width: 65%;
    height: 78%;
    pointer-events: none;
    z-index: 0;
}

.bmt-phone-stage::before {
    top: 2%;
    right: -8%;
    background: repeating-linear-gradient(
        135deg,
        transparent 0,
        transparent 9px,
        rgba(0, 230, 118, 0.22) 9px,
        rgba(0, 230, 118, 0.22) 11px
    );
    -webkit-mask-image: radial-gradient(ellipse at top right, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at top right, black 0%, transparent 70%);
}

.bmt-phone-stage::after {
    bottom: 0;
    left: -8%;
    background: repeating-linear-gradient(
        135deg,
        transparent 0,
        transparent 9px,
        rgba(255, 215, 0, 0.18) 9px,
        rgba(255, 215, 0, 0.18) 11px
    );
    -webkit-mask-image: radial-gradient(ellipse at bottom left, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at bottom left, black 0%, transparent 70%);
}

.bmt-phone-glow {
    position: absolute;
    inset: -15% -10% -5% -10%;
    background: radial-gradient(closest-side, rgba(0, 230, 118, 0.38) 0%, rgba(255, 215, 0, 0.16) 45%, transparent 75%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

/* Decorative TD$, trophies, X marks emerging from behind the phone.
   Container extends past the phone-stage edges so items can peek out
   of the silhouette. All items z-index: 0 (behind .bmt-phone-img). */
.bmt-phone-decor {
    position: absolute;
    inset: -8% -25% -8% -25%;
    pointer-events: none;
    z-index: 0;
}

.bmt-decor-item {
    position: absolute;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

/* TD$ — many, scattered, mid-size */
.bmt-decor-td {
    width: clamp(40px, 9%, 78px);
    opacity: 0.9;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.55));
}

.bmt-decor-td-1 { top: 2%;  left: 4%;   transform: rotate(-18deg); }
.bmt-decor-td-2 { top: 6%;  right: 6%;  transform: rotate(14deg); width: clamp(34px, 7%, 60px); opacity: 0.78; }
.bmt-decor-td-3 { top: 28%; left: 1%;   transform: rotate(-28deg); }
.bmt-decor-td-4 { top: 44%; right: 2%;  transform: rotate(22deg); }
.bmt-decor-td-5 { top: 70%; left: 3%;   transform: rotate(-10deg); width: clamp(48px, 10%, 88px); }
.bmt-decor-td-6 { bottom: 4%; right: 8%; transform: rotate(26deg); }
.bmt-decor-td-7 { bottom: 18%; left: 12%; transform: rotate(8deg); width: clamp(28px, 6%, 50px); opacity: 0.7; }

/* Trophies — few, larger, more prominent */
.bmt-decor-trophy {
    width: clamp(58px, 14%, 120px);
    opacity: 0.82;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6));
}

.bmt-decor-trophy-gold   { top: 14%; right: 0%;  transform: rotate(10deg); }
.bmt-decor-trophy-silver { top: 18%; left: -2%;  transform: rotate(-12deg); opacity: 0.72; }
.bmt-decor-trophy-bronze { bottom: 6%; right: 4%; transform: rotate(6deg); width: clamp(48px, 11%, 96px); opacity: 0.7; }

/* X marks — subtle, smaller, accent */
.bmt-decor-x {
    width: clamp(26px, 6%, 56px);
    opacity: 0.55;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

.bmt-decor-x-1 { top: 22%;   right: 16%;  transform: rotate(24deg); }
.bmt-decor-x-2 { bottom: 38%; left: 14%;  transform: rotate(-32deg); }
.bmt-decor-x-3 { bottom: 10%; right: 22%; transform: rotate(18deg); opacity: 0.45; }

.bmt-phone-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}

.bmt-phone-stage:hover .bmt-phone-img {
    transform: translateY(-6px) rotate(1deg);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .bmt-hero {
        padding: 3rem 1.25rem 7rem;
    }

    .bmt-hero-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .bmt-hero-visual {
        order: -1;
    }

    .bmt-phone-stage {
        max-width: 280px;
    }

    /* Tighter decor on mobile: hug the phone instead of extending far out. */
    .bmt-phone-decor {
        inset: -4% -8% -4% -8%;
    }
    .bmt-decor-td        { width: clamp(28px, 7%, 50px); }
    .bmt-decor-td-5      { width: clamp(34px, 8%, 56px); }
    .bmt-decor-td-7      { width: clamp(22px, 5%, 40px); }
    .bmt-decor-trophy    { width: clamp(42px, 11%, 80px); }
    .bmt-decor-trophy-bronze { width: clamp(36px, 9%, 64px); }
    .bmt-decor-x         { width: clamp(20px, 5%, 38px); }

    .bmt-hero-logo {
        height: 105px;
    }

    .bmt-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bmt-hero-cta {
        justify-content: center;
    }
}

/* Tournament Hero - Subpage Style with Background Image */
.tournament-hero {
    position: relative;
    overflow: hidden;
    min-height: 30vh;
    padding: 4rem 2rem 3rem;
}

/* Sports background image */
.tournament-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Green tinge overlay with texture */
.tournament-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.02) 2px,
            rgba(255,255,255,0.02) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.02) 2px,
            rgba(255,255,255,0.02) 4px
        ),
        linear-gradient(135deg, rgba(46, 139, 87, 0.85) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
}

.tournament-hero .subpage-hero-container {
    position: relative;
    z-index: 2;
}

.tournament-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
}

.tournament-hero-content {
    max-width: 600px;
}

.tournament-hero-content .subpage-hero-title {
    font-size: clamp(2rem, 6vw, 3.25rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0;
    align-items: start;
}

.title-x-icon {
    width: clamp(3.5rem, 9vw, 5.5rem);
    height: clamp(3.5rem, 9vw, 5.5rem);
    margin-right: -1.5rem;
}

.tournament-hero-content .subpage-hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    max-width: 800px;
}

.tournament-hero-content .subpage-site-name {
    margin-bottom: 1.5rem;
}

/* Tournament Intro Section */
.tournament-intro-section {
    background: var(--bma-dark-200);
    padding: 4rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* 50/50 Grid Layout */
.tournament-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.tournament-intro-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tournament-intro-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(255, 215, 0, 0.2));
    display: block;
    margin: 0 auto;
}

.tournament-intro-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tournament-intro-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.7;
    text-align: left;
}

.tournament-intro-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.tournament-hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tournament-hero-logo img {
    max-width: 400px;
    height: auto;
    opacity: 0.9;
}

@media (max-width: 968px) {
    .tournament-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tournament-hero-logo {
        order: -1;
    }

    .tournament-hero-logo img {
        max-width: 300px;
    }
}

/* ==========================================================================
   Game Modes showcase (six BMT formats, badge-driven row)
   ========================================================================== */
.game-modes-section {
    position: relative;
    background: var(--bma-dark-100);
    padding: 6rem 2rem 5rem;
    overflow: hidden;
}

.game-modes-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.game-modes-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.game-modes-glow-green {
    width: 560px;
    height: 560px;
    top: -180px;
    left: -160px;
    background: radial-gradient(closest-side, rgba(0, 230, 118, 0.26), transparent);
}

.game-modes-glow-yellow {
    width: 520px;
    height: 520px;
    bottom: -180px;
    right: -160px;
    background: radial-gradient(closest-side, rgba(255, 215, 0, 0.22), transparent);
}

.game-modes-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.game-modes-header {
    text-align: center;
    margin: 0 auto 3rem;
    max-width: 760px;
}

.game-modes-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--bma-yellow);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
}

.game-modes-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bma-green-bright), var(--bma-yellow));
}

.game-modes-headline {
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    font-weight: 900;
    color: var(--bma-white);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.game-modes-accent {
    display: inline-block;
    background: linear-gradient(135deg, var(--bma-green-bright) 0%, var(--bma-yellow) 70%, #FFA500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transform: skewX(-6deg);
    padding: 0 0.15em;
    margin: 0 -0.15em;
    filter: drop-shadow(0 2px 6px rgba(0, 230, 118, 0.25));
}

.game-modes-subline {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
    margin: 0 auto;
    max-width: 620px;
}

/* Grid uses subgrid so badge / name / tag rows line up across cards within
   the same wrap-row regardless of how text wraps. Each .game-mode spans 3
   parent rows so its three children inherit the shared row template. */
.game-modes-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: min-content;
    gap: 0.85rem 1.5rem;
}

.game-mode {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    row-gap: 0.85rem;
    justify-items: center;
    text-align: center;
    padding: 0.5rem 0.25rem;
}

/* Stagger reveal on scroll into view. JS adds .stagger-ready to opt in
   (prevents a flash for no-JS users) and .in-view to trigger. */
.game-modes-grid.stagger-ready .game-mode {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.55s ease-out, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
}

.game-modes-grid.stagger-ready.in-view .game-mode {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .game-modes-grid.stagger-ready .game-mode {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.game-mode-badge-wrap {
    position: relative;
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-mode-badge {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.55));
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.game-mode:hover .game-mode-badge-wrap {
    transform: translateY(-4px) scale(1.04);
}

.game-mode-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--bma-white);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0;
    align-self: end;
}

.game-mode-tag {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.4;
    margin: 0;
    align-self: start;
}

/* Subgrid fallback: browsers without subgrid get content-sized rows, so we
   reserve enough name/tag height with min-height to keep rows visually aligned. */
@supports not (grid-template-rows: subgrid) {
    .game-mode {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .game-mode-name {
        min-height: 2.4em;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }
    .game-mode-tag {
        min-height: 3.5em;
    }
}

@media (max-width: 1100px) {
    .game-modes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .game-modes-section {
        padding: 4rem 1.5rem 3rem;
    }
    .game-modes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
    .game-mode-badge-wrap {
        max-width: 120px;
    }
    .game-modes-subline {
        font-size: 0.95rem;
    }
}

@media (max-width: 380px) {
    .game-modes-grid {
        grid-template-columns: 1fr;
    }
    .game-mode-badge-wrap {
        max-width: 130px;
    }
}

/* ==========================================================================
   Operator Outcomes (uplifted)
   ========================================================================== */
.outcomes-section {
    position: relative;
    background: var(--bma-dark-100);
    padding: 6rem 2rem 5rem;
    overflow: hidden;
}

.outcomes-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.outcomes-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.outcomes-glow-yellow {
    width: 520px;
    height: 520px;
    top: -160px;
    right: -180px;
    background: radial-gradient(closest-side, rgba(255, 215, 0, 0.22), transparent);
}

.outcomes-glow-green {
    width: 600px;
    height: 600px;
    bottom: -220px;
    left: -160px;
    background: radial-gradient(closest-side, rgba(0, 230, 118, 0.26), transparent);
}

.outcomes-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.outcomes-header {
    text-align: center;
    margin: 0 auto 3rem;
}

.outcomes-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--bma-yellow);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
}

.outcomes-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bma-green-bright), var(--bma-yellow));
}

.outcomes-headline {
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    font-weight: 900;
    color: var(--bma-white);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.outcomes-accent {
    display: inline-block;
    background: linear-gradient(135deg, var(--bma-green-bright) 0%, var(--bma-yellow) 70%, #FFA500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transform: skewX(-6deg);
    padding: 0 0.15em;
    margin: 0 -0.15em;
    filter: drop-shadow(0 2px 6px rgba(0, 230, 118, 0.25));
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.outcome-card {
    position: relative;
    padding: 2.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(20, 20, 20, 0.7) 100%);
    border: none;
    border-radius: 18px;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 14px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.outcome-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(0, 230, 118, 0.08) 0%, transparent 55%);
    pointer-events: none;
}

.outcome-card:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 0 0 0 1px rgba(0, 230, 118, 0.45),
        0 24px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.outcome-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-size: 30px;
    color: var(--bma-green-bright);
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.18) 0%, rgba(255, 215, 0, 0.12) 100%);
    border: none;
    border-radius: 14px;
    box-shadow:
        inset 0 0 0 1px rgba(0, 230, 118, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
    transition: all 0.25s ease;
    font-variation-settings: 'wght' 400;
    line-height: 1;
}

.outcome-card:hover .outcome-icon {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.3) 0%, rgba(255, 215, 0, 0.22) 100%);
    box-shadow:
        inset 0 0 0 1px var(--bma-yellow),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: var(--bma-yellow);
}

.outcome-headline {
    position: relative;
    z-index: 1;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--bma-white);
    line-height: 1.25;
    letter-spacing: -0.005em;
    margin: 0 0 0.85rem;
    text-transform: uppercase;
}

.outcome-description {
    position: relative;
    z-index: 1;
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.outcome-features {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.25rem;
}

.outcome-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.4rem 0;
    line-height: 1.4;
}

.outcome-features li .material-symbols-outlined {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: linear-gradient(135deg, var(--bma-green-bright) 0%, #1f6b40 100%);
    color: var(--bma-black);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 230, 118, 0.35);
    font-variation-settings: 'wght' 700;
}

@media (max-width: 1024px) {
    .outcomes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 640px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .outcomes-section {
        padding: 4rem 1.25rem 3.5rem;
    }

    .outcome-card {
        padding: 1.75rem 1.5rem;
    }
}

/* ==========================================================================
   Platform CTA — page closer (uplifted)
   ========================================================================== */
.platform-cta-section {
    position: relative;
    padding: 6rem 2rem 6rem;
    background: var(--bma-dark-100);
    overflow: hidden;
}

.platform-cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.platform-cta-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.platform-cta-glow-green {
    width: 540px;
    height: 540px;
    top: -160px;
    left: 8%;
    background: radial-gradient(closest-side, rgba(0, 230, 118, 0.28), transparent);
}

.platform-cta-glow-yellow {
    width: 600px;
    height: 600px;
    bottom: -220px;
    right: 5%;
    background: radial-gradient(closest-side, rgba(255, 215, 0, 0.2), transparent);
}

.platform-cta-container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    text-align: center;
}

.platform-cta-header {
    max-width: 820px;
    margin: 0 auto 3rem;
}

.platform-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--bma-yellow);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
}

.platform-cta-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bma-green-bright), var(--bma-yellow));
}

.platform-cta-headline {
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    font-weight: 900;
    color: var(--bma-white);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.platform-cta-accent {
    display: inline-block;
    background: linear-gradient(135deg, var(--bma-green-bright) 0%, var(--bma-yellow) 70%, #FFA500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transform: skewX(-6deg);
    padding: 0 0.15em;
    margin: 0 -0.15em;
    filter: drop-shadow(0 2px 6px rgba(0, 230, 118, 0.25));
}

.platform-cta-description {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
    max-width: 720px;
    margin: 0 auto;
}

.platform-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    text-align: left;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(20, 20, 20, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.highlight-item:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 230, 118, 0.45);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 230, 118, 0.15);
}

.highlight-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.18) 0%, rgba(255, 215, 0, 0.12) 100%);
    border: 1px solid rgba(0, 230, 118, 0.4);
    border-radius: 11px;
    color: var(--bma-green-bright);
    font-size: 22px;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-variation-settings: 'wght' 400;
    transition: all 0.25s ease;
}

.highlight-item:hover .highlight-icon {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.28) 0%, rgba(255, 215, 0, 0.22) 100%);
    border-color: var(--bma-yellow);
    color: var(--bma-yellow);
}

.highlight-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    align-self: center;
}

.platform-cta-actions {
    display: flex;
    justify-content: center;
}

.platform-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--bma-green) 0%, #1f6b40 100%);
    color: var(--bma-white);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    border: none;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.45);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, gap 0.2s ease;
}

.platform-cta-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--bma-green-bright) 0%, var(--bma-green) 100%);
    gap: 0.85rem;
}

@media (max-width: 768px) {
    .platform-cta-section {
        padding: 4rem 1.25rem 4rem;
    }

    .platform-highlights {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .highlight-item {
        padding: 1rem 1.15rem;
    }
}

/* Platform Features 50/50 Sections */
.platform-section {
    background: var(--bma-dark-200);
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.platform-section.gray-bg {
    background: var(--bma-dark-300);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--bma-yellow);
}

.content-text h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--bma-white);
    margin: 0;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.content-text p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Proficiencies Panel */
.proficiencies-panel {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 48px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    min-height: 280px;
    border: 1px solid rgba(46, 139, 87, 0.3);
}

.proficiencies-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(46, 139, 87, 0.3);
    border-color: var(--bma-green);
    background: rgba(0, 0, 0, 0.5);
}

.proficiencies-header {
    position: absolute;
    top: -5px;
    left: -20px;
    transform: rotate(-2deg);
}

.sticky-tab-scuffed {
    background: linear-gradient(135deg, var(--bma-green) 0%, #1e6b42 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.4);
    position: relative;
    overflow: hidden;
}

.texture-noise {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.02) 2px,
            rgba(255,255,255,0.02) 3px
        );
    mix-blend-mode: overlay;
    pointer-events: none;
}

.proficiencies-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.proficiencies-list li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding-left: 24px;
    transition: all 0.2s ease;
}

.proficiencies-list li:last-child {
    border-bottom: none;
}

.proficiencies-list li:hover {
    color: var(--bma-yellow);
    transform: translateX(4px);
}

.proficiencies-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 14px;
    color: var(--bma-green);
    font-weight: 600;
    transition: all 0.2s ease;
}

.proficiencies-list li:hover::before {
    color: var(--bma-yellow);
}

/* Screenshot Placeholder */
.screenshot-placeholder {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.15) 0%, rgba(0, 0, 0, 0.6) 100%);
    border: 2px dashed rgba(46, 139, 87, 0.4);
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
}

.platform-screenshot {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(46, 139, 87, 0.2);
}

/* Screenshot Carousel */
.screenshot-carousel {
    position: relative;
    width: 100%;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-slides {
    position: relative;
    width: 100%;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-slide:hover {
    transform: scale(1.02);
}

.carousel-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--bma-yellow);
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    user-select: none;
}

.carousel-nav:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%), rgba(20, 20, 20, 0.95);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.carousel-nav.prev {
    left: 16px;
}

.carousel-nav.next {
    right: 16px;
}

.carousel-nav.hidden {
    display: none;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.indicator.active {
    background: var(--bma-yellow);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Lightbox CSS moved to style.css (global) */

.placeholder-icon {
    font-size: 80px;
    color: var(--bma-green);
    margin-bottom: 20px;
    opacity: 0.7;
    text-shadow: 0 0 20px rgba(46, 139, 87, 0.5);
}

.placeholder-text {
    font-size: 14px;
    color: var(--bma-white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.placeholder-dimensions {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Section */
/* ==========================================================================
   Platform Gallery (uplifted)
   ========================================================================== */
/* Cap SVG: stroke only, sits fully inside the hero's bottom 100px. */
.gallery-section-cap {
    display: block;
    width: 100%;
    height: 100px;
    margin-top: -100px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 -4px 18px rgba(0, 230, 118, 0.32));
}

/* Gallery section pulled up 100px to overlap with the cap. The mask
   uses the SAME quadratic curve as the cap stroke for its top edge —
   the section's actual bg + .gallery-section::after stripes +
   .gallery-glow-green ALL paint into the curved shape, so the section's
   real decorations bleed up to the curve. No separate flat fill = no
   black band. Section z-index < cap z-index, so the stroke draws on top. */
.gallery-section {
    position: relative;
    z-index: 1;
    background: var(--bma-dark-100);
    margin-top: -100px;
    padding: calc(2rem + 100px) 2rem 5rem;
    overflow: hidden;
    -webkit-mask-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50' preserveAspectRatio='none'><path d='M0,50 Q720,-30 1440,50 L1440,50 L0,50 Z' fill='white'/></svg>"),
        linear-gradient(white, white);
    -webkit-mask-size: 100% 50px, 100% calc(100% - 50px);
    -webkit-mask-position: top, left bottom;
    -webkit-mask-repeat: no-repeat;
    mask-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50' preserveAspectRatio='none'><path d='M0,50 Q720,-30 1440,50 L1440,50 L0,50 Z' fill='white'/></svg>"),
        linear-gradient(white, white);
    mask-size: 100% 50px, 100% calc(100% - 50px);
    mask-position: top, left bottom;
    mask-repeat: no-repeat;
}

.gallery-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.gallery-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.gallery-glow-green {
    width: 540px;
    height: 540px;
    top: -150px;
    left: -160px;
    background: radial-gradient(closest-side, rgba(0, 230, 118, 0.28), transparent);
}

.gallery-glow-yellow {
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -180px;
    background: radial-gradient(closest-side, rgba(255, 215, 0, 0.18), transparent);
}

.gallery-container {
    position: relative;
    z-index: 1;
}

/* ----- Section header ----- */
.gallery-header {
    text-align: center;
    max-width: 880px;
    margin: 0 auto 3rem;
}

.gallery-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--bma-yellow);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
}

.gallery-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bma-green-bright), var(--bma-yellow));
}

.gallery-headline {
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    font-weight: 900;
    color: var(--bma-white);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.gallery-accent {
    display: inline-block;
    background: linear-gradient(135deg, var(--bma-green-bright) 0%, var(--bma-yellow) 70%, #FFA500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transform: skewX(-6deg);
    padding: 0 0.15em;
    margin: 0 -0.15em;
    filter: drop-shadow(0 2px 6px rgba(0, 230, 118, 0.25));
}

.gallery-subline {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 1rem auto 0;
    padding: 0.75rem 1.1rem 0.75rem 1rem;
    max-width: 560px;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.08) 0%, rgba(255, 215, 0, 0.05) 100%), rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid;
    border-image: linear-gradient(180deg, var(--bma-green-bright), var(--bma-yellow)) 1;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.gallery-subline-icon {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--bma-green-bright);
    font-variation-settings: 'wght' 500, 'opsz' 24;
}

/* ----- Grid ----- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(20, 20, 20, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 230, 118, 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 6px 22px rgba(0, 230, 118, 0.2);
}

.gallery-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0a0a0a;
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.04);
}

.gallery-overlay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(15, 15, 15, 0.6) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery-caption {
    color: var(--bma-white);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gallery-caption-icon {
    font-size: 20px;
    color: var(--bma-green-bright);
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    font-variation-settings: 'wght' 500;
}

.gallery-item:hover .gallery-caption-icon {
    color: var(--bma-yellow);
    transform: scale(1.1);
}

/* ----- Lightbox modal (restyled) ----- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 230, 118, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
        rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: lightboxFadeIn 0.25s ease;
    padding: 3rem;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
}

.lightbox-content {
    max-width: min(90%, 1200px);
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 230, 118, 0.2);
    animation: lightboxZoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    color: var(--bma-white);
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10001;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 300;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
    color: var(--bma-yellow);
    border-color: var(--bma-yellow);
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.35);
}

.lightbox-caption {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--bma-white);
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1) 0%, rgba(255, 215, 0, 0.06) 100%), rgba(15, 15, 15, 0.85);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid;
    border-image: linear-gradient(135deg, var(--bma-green-bright), var(--bma-yellow)) 1;
    backdrop-filter: blur(10px);
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ----- Mobile ----- */
@media (max-width: 768px) {
    .gallery-section {
        padding: 4rem 1.25rem 3.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

/* Live Demo Section / Tournament Lobby */
.demo-section {
    padding: 6rem 2rem;
    background: var(--bma-dark-300);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    text-align: center;
}

/* Display large styling like Bet Max Tourney */
.display-large h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--bma-white);
    text-transform: uppercase;
}

/* Accent color for highlighted words */
.accent {
    color: #2E8B57 !important;
    text-shadow: 0 0 30px rgba(46, 139, 87, 0.5);
    font-weight: 900 !important;
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--bma-white);
    text-align: center;
    text-transform: uppercase;
    line-height: 1.1;
}

.section-title .title-x-icon {
    width: clamp(2.5rem, 6vw, 4rem);
    height: clamp(2.5rem, 6vw, 4rem);
    margin-right: -1.5rem;
}

/* Tournament Lobby */
.tournament-lobby {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 20px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 1px rgba(46, 139, 87, 0.3);
    padding: 2rem;
    border: 1px solid rgba(46, 139, 87, 0.2);
    position: relative;
}

/* Enhanced shimmer effect - more sophisticated */
.tournament-lobby::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(46, 139, 87, 0.05) 25%,
        rgba(255, 215, 0, 0.03) 50%,
        rgba(46, 139, 87, 0.05) 75%,
        transparent 100%
    );
    animation: shimmer 10s infinite ease-in-out;
    pointer-events: none;
    will-change: transform;
}

@keyframes shimmer {
    0% { transform: translateX(0); }
    100% { transform: translateX(200%); }
}

/* Tournament Info Card - Enhanced glassmorphic design */
.tournament-card {
    background: linear-gradient(135deg,
        rgba(46, 139, 87, 0.15) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(10, 10, 10, 0.8) 100%);
    border: 1px solid rgba(46, 139, 87, 0.4);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    backdrop-filter: blur(10px) saturate(150%);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(46, 139, 87, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tournament-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 50px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(46, 139, 87, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(46, 139, 87, 0.6);
}

.tournament-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.tournament-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.25) 0%, rgba(46, 139, 87, 0.1) 100%);
    border: 1px solid var(--bma-green);
    border-radius: 24px;
    color: var(--bma-green);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    user-select: none;
    -webkit-user-select: none;
}

.tournament-badge.live {
    color: var(--bma-green);
    border-color: var(--bma-green);
    text-shadow: 0 0 8px rgba(46, 139, 87, 0.6);
    animation: breathingPulse 2s infinite ease-in-out;
}

.live-indicator {
    animation: pulseGlow 2s infinite;
    margin-right: 0.25rem;
}

@keyframes breathingPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(46, 139, 87, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 16px rgba(46, 139, 87, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.tournament-name {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--bma-yellow);
    margin: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    user-select: none;
    -webkit-user-select: none;
}

.tournament-tagline {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    user-select: none;
    -webkit-user-select: none;
}

.tournament-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.4) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: rgba(46, 139, 87, 0.3);
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.05) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    user-select: none;
    -webkit-user-select: none;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bma-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-select: none;
}

.stat-value.highlight {
    color: var(--bma-yellow);
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.btn-join-tournament {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--bma-green) 0%, #1e6b42 100%);
    color: white;
    border: 1px solid rgba(46, 139, 87, 0.4);
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 16px rgba(46, 139, 87, 0.3),
        0 0 40px rgba(46, 139, 87, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-join-tournament::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-join-tournament:hover {
    background: linear-gradient(135deg, #3aa068 0%, var(--bma-green) 100%);
    transform: translateY(-2px);
    border-color: var(--bma-green);
    box-shadow:
        0 8px 24px rgba(46, 139, 87, 0.5),
        0 0 60px rgba(46, 139, 87, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    will-change: transform;
}

.btn-join-tournament:hover::before {
    left: 100%;
}

.btn-join-tournament:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px rgba(46, 139, 87, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Slate Section */
.slate-section {
    margin: 2rem 0;
}

.slate-header {
    text-align: center;
    margin-bottom: 2rem;
}

.slate-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--bma-white);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
}

.slate-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

/* Sport Slate */
.sport-slate {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(10, 10, 10, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sport-slate-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sport-icon {
    font-size: 1.75rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sport-slate-header h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bma-white);
    margin: 0;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
    -webkit-user-select: none;
}

.game-count {
    color: var(--bma-yellow);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    user-select: none;
    -webkit-user-select: none;
}

/* Slate Games */
.slate-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.game-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Enhanced hover effect with sweep animation */
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        transparent 0%,
        rgba(46, 139, 87, 0.1) 50%,
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.game-card:hover {
    border-color: rgba(46, 139, 87, 0.6);
    background: linear-gradient(135deg,
        rgba(46, 139, 87, 0.12) 0%,
        rgba(255, 215, 0, 0.02) 50%,
        rgba(0, 0, 0, 0.8) 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.5),
        0 0 24px rgba(46, 139, 87, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    will-change: transform;
}

.game-card:hover::before {
    transform: translateX(0);
}

.game-card:active {
    transform: translateY(-2px) scale(1.01);
}

.game-time {
    color: var(--bma-yellow);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-select: none;
}

.game-matchup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.game-matchup .team {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0;
}

.team-name {
    color: var(--bma-white);
    font-size: 0.95rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.team-record {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    font-weight: 600;
    user-select: none;
    -webkit-user-select: none;
}

.vs {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    user-select: none;
    -webkit-user-select: none;
}

.market-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.market-badge {
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.2) 0%, rgba(46, 139, 87, 0.1) 100%);
    border: 1px solid rgba(46, 139, 87, 0.35);
    border-radius: 6px;
    color: var(--bma-green);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    user-select: none;
    -webkit-user-select: none;
}

.game-card:hover .market-badge {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.3) 0%, rgba(46, 139, 87, 0.15) 100%);
    border-color: var(--bma-green);
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.3);
}

/* Leaderboard Preview */
.leaderboard-preview {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(10, 10, 10, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.leaderboard-preview h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bma-white);
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table thead {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table th {
    padding: 0.75rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
    -webkit-user-select: none;
}

.leaderboard-table th:first-child {
    width: 60px;
    text-align: center;
}

.leaderboard-table th:last-child,
.leaderboard-table td:last-child {
    text-align: right;
}

.leaderboard-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.leaderboard-row.highlighted {
    background: linear-gradient(90deg, rgba(46, 139, 87, 0.15) 0%, rgba(46, 139, 87, 0.05) 100%);
    border-left: 3px solid var(--bma-green);
    box-shadow: inset 0 0 20px rgba(46, 139, 87, 0.1);
}

.leaderboard-row td {
    padding: 1rem 0.75rem;
}

.rank-cell {
    text-align: center;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    user-select: none;
    -webkit-user-select: none;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #E8E8E8 0%, #A8A8A8 100%);
    color: #000;
    box-shadow: 0 2px 12px rgba(192, 192, 192, 0.4);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(205, 127, 50, 0.4);
}

.rank-badge.default {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-name {
    color: var(--bma-white);
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.balance {
    color: var(--bma-white);
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.roi {
    font-weight: 700;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.roi.positive {
    color: var(--bma-green);
}

.roi.negative {
    color: var(--bma-red);
}

/* ==========================================================================
   How It Works — Tournament Mechanics (uplifted)
   ========================================================================== */
.how-section {
    position: relative;
    padding: 6rem 2rem 5rem;
    background: var(--bma-dark-100);
    overflow: hidden;
}

.how-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.how-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.how-glow-green {
    width: 540px;
    height: 540px;
    top: -150px;
    left: -160px;
    background: radial-gradient(closest-side, rgba(0, 230, 118, 0.28), transparent);
}

.how-glow-yellow {
    width: 540px;
    height: 540px;
    bottom: -200px;
    right: -160px;
    background: radial-gradient(closest-side, rgba(255, 215, 0, 0.2), transparent);
}

.how-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.how-header {
    text-align: center;
    margin: 0 auto 3rem;
}

.how-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--bma-yellow);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
}

.how-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bma-green-bright), var(--bma-yellow));
}

.how-headline {
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    font-weight: 900;
    color: var(--bma-white);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.how-accent {
    display: inline-block;
    background: linear-gradient(135deg, var(--bma-green-bright) 0%, var(--bma-yellow) 70%, #FFA500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transform: skewX(-6deg);
    padding: 0 0.15em;
    margin: 0 -0.15em;
    filter: drop-shadow(0 2px 6px rgba(0, 230, 118, 0.25));
}

.how-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
}

.how-left {
    padding: 0;
}

.how-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 0 2rem;
}

.tournament-dollars {
    color: var(--bma-white);
    position: relative;
    display: inline-block;
}

.tournament-dollars::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--bma-green);
    animation: underlineExpand 0.5s ease 0.5s forwards;
}

@keyframes underlineExpand {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}


.how-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.how-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(20, 20, 20, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.how-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--bma-green-bright) 0%, var(--bma-yellow) 100%);
    transform: scaleY(0.3);
    transform-origin: top;
    transition: transform 0.35s ease;
}

.how-step:hover {
    transform: translateX(6px);
    border-color: rgba(0, 230, 118, 0.45);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.how-step:hover::before {
    transform: scaleY(1);
}

.how-step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bma-green) 0%, #1f6b40 100%);
    color: var(--bma-yellow);
    border: 2px solid rgba(255, 215, 0, 0.35);
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 900;
    box-shadow: 0 6px 18px rgba(0, 230, 118, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.how-step-body {
    flex: 1;
    min-width: 0;
}

.how-step-body h3 {
    color: var(--bma-white);
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.how-step-body p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* ----- Phone visual ----- */
.how-phone-stage {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.how-phone-stage::before,
.how-phone-stage::after {
    content: '';
    position: absolute;
    width: 65%;
    height: 78%;
    pointer-events: none;
    z-index: 0;
}

.how-phone-stage::before {
    top: 2%;
    right: -8%;
    background: repeating-linear-gradient(
        135deg,
        transparent 0,
        transparent 9px,
        rgba(0, 230, 118, 0.2) 9px,
        rgba(0, 230, 118, 0.2) 11px
    );
    -webkit-mask-image: radial-gradient(ellipse at top right, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at top right, black 0%, transparent 70%);
}

.how-phone-stage::after {
    bottom: 0;
    left: -8%;
    background: repeating-linear-gradient(
        135deg,
        transparent 0,
        transparent 9px,
        rgba(255, 215, 0, 0.16) 9px,
        rgba(255, 215, 0, 0.16) 11px
    );
    -webkit-mask-image: radial-gradient(ellipse at bottom left, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at bottom left, black 0%, transparent 70%);
}

.how-phone-glow {
    position: absolute;
    inset: -15% -10% -5% -10%;
    background: radial-gradient(closest-side, rgba(0, 230, 118, 0.35) 0%, rgba(255, 215, 0, 0.14) 45%, transparent 75%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.how-phone-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}

.how-phone-stage:hover .how-phone-img {
    transform: translateY(-6px) rotate(1deg);
}

@media (max-width: 1024px) {
    .how-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .how-right {
        order: -1;
    }

    .how-phone-stage {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .how-section {
        padding: 4rem 1.25rem 3.5rem;
    }

    .how-step {
        padding: 1rem 1.25rem;
        gap: 1rem;
    }

    .how-step-number {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }
}

/* Device Mockups */
.device-mockups {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Laptop Mockup */
.laptop-mockup {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.laptop-screen {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 3px solid #333;
    border-radius: 8px 8px 0 0;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

.laptop-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: #2a2a2a;
    border-bottom: 1px solid #444;
}

.laptop-base {
    background: linear-gradient(to bottom, #d1d1d1 0%, #a8a8a8 100%);
    height: 20px;
    border-radius: 0 0 12px 12px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.laptop-base::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #888;
    border-radius: 2px;
}

/* Phone Mockup */
.phone-mockup {
    position: absolute;
    right: -30px;
    bottom: -20px;
    width: 140px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.phone-screen {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 12px;
    height: 240px;
    overflow: hidden;
}

/* Placeholder Content */
.screen-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    color: var(--bma-white);
}

.laptop-screen .screen-placeholder {
    height: 300px;
    margin-top: 20px;
}

.screen-placeholder svg {
    margin-bottom: 1rem;
    color: var(--bma-green);
}

.screen-placeholder p {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0.5rem 0;
    color: var(--bma-yellow);
}

.screen-placeholder span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mockup-header {
    color: var(--bma-yellow);
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    height: 1.5rem;
    line-height: 1.5rem;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 1rem;
}

.mockup-stats .stat {
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--bma-green);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mockup-stats .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bma-white);
    margin-bottom: 0.25rem;
    height: 2rem;
    line-height: 2rem;
    position: relative;
}

/* Animation with absolute positioning */
.fade-text {
    position: absolute;
    width: 100%;
    text-align: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-text.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-text.next {
    opacity: 0;
    transform: translateY(20px);
}

.fade-text.prev {
    opacity: 0;
    transform: translateY(-20px);
}

.mockup-stats .stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--bma-yellow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ==========================================================================
   Entry Points / Pricing (uplifted)
   ========================================================================== */
.pricing-section {
    position: relative;
    padding: 6rem 2rem 5rem;
    background: var(--bma-dark-100);
    overflow: hidden;
}

.pricing-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.pricing-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.pricing-glow-green {
    width: 540px;
    height: 540px;
    top: -160px;
    right: -160px;
    background: radial-gradient(closest-side, rgba(0, 230, 118, 0.26), transparent);
}

.pricing-glow-yellow {
    width: 600px;
    height: 600px;
    bottom: -220px;
    left: -160px;
    background: radial-gradient(closest-side, rgba(255, 215, 0, 0.2), transparent);
}

.pricing-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.pricing-header {
    text-align: center;
    margin: 0 auto 2.5rem;
    max-width: 720px;
}

.pricing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--bma-yellow);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
}

.pricing-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bma-green-bright), var(--bma-yellow));
}

.pricing-headline {
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    font-weight: 900;
    color: var(--bma-white);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.pricing-accent {
    display: inline-block;
    background: linear-gradient(135deg, var(--bma-green-bright) 0%, var(--bma-yellow) 70%, #FFA500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transform: skewX(-6deg);
    padding: 0 0.15em;
    margin: 0 -0.15em;
    filter: drop-shadow(0 2px 6px rgba(0, 230, 118, 0.25));
}

.pricing-description {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}

/* Tabs */
.entry-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 2.5rem auto 2rem;
    flex-wrap: wrap;
}

.entry-tab-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.5rem;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.entry-tab-button .material-symbols-outlined {
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
    color: var(--bma-green-bright);
    transition: color 0.25s ease;
    font-variation-settings: 'wght' 500, 'opsz' 24;
}

.entry-tab-button:hover {
    color: var(--bma-white);
    border-color: rgba(0, 230, 118, 0.45);
    background: rgba(46, 139, 87, 0.14);
}

.entry-tab-button.active {
    color: var(--bma-white);
    background: linear-gradient(135deg, var(--bma-green) 0%, #1f6b40 100%);
    border-color: var(--bma-green-bright);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.3);
}

.entry-tab-button.active .material-symbols-outlined {
    color: var(--bma-yellow);
}

/* Tab content */
.entry-tab-content {
    display: none;
}

.entry-tab-content.active {
    display: block;
    animation: entryTabFadeIn 0.35s ease;
}

@keyframes entryTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entry-tab-description {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    max-width: 660px;
    margin: 0 auto 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Pricing grid */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
    .pricing-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Price card */
.price-card {
    position: relative;
    padding: 1.75rem 1.25rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(20, 20, 20, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--bma-green-bright) 0%, var(--bma-yellow) 100%);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.price-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 230, 118, 0.45);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55), 0 6px 22px rgba(0, 230, 118, 0.18);
}

.price-card:hover::before {
    transform: scaleX(1);
}

/* Featured card emphasis */
.price-card.featured {
    border-color: rgba(255, 215, 0, 0.45);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.1) 0%, transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(20, 20, 20, 0.75) 100%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 6px 22px rgba(255, 215, 0, 0.18);
}

.price-card.featured::before {
    transform: scaleX(1);
}

.entry-price {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--bma-yellow);
    margin-bottom: 0.35rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.entry-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--bma-yellow);
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18) 0%, rgba(255, 215, 0, 0.08) 100%);
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-radius: 999px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.prize-pool {
    color: var(--bma-green-bright);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.entry-features {
    list-style: none;
    padding: 1rem 0 0;
    margin: 1rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.entry-features li {
    color: rgba(255, 255, 255, 0.82);
    padding: 0.45rem 0;
    font-size: 0.92rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 4rem 1.25rem 3.5rem;
    }

    .entry-tabs {
        gap: 0.5rem;
    }

    .entry-tab-button {
        padding: 0.7rem 1.1rem;
        font-size: 0.85rem;
    }
}

/* Footer - removed generic styles as footer is a shared partial with styles in style.css */

/* Mobile Responsive - Tournament Specific */
@media (max-width: 768px) {
    /* Operator Outcomes Mobile */
    .operator-outcomes-section {
        padding: 60px 0;
    }

    .outcomes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .outcome-card {
        padding: 2rem 1.5rem;
    }

    .outcome-icon {
        width: 40px;
        height: 40px;
    }

    .outcome-headline {
        font-size: 1.25rem;
    }

    .outcome-description {
        font-size: 0.875rem;
    }

    .outcome-features li {
        font-size: 0.8125rem;
    }

    /* Platform CTA Mobile */
    .platform-cta-section {
        padding: 60px 0;
    }

    .platform-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    .highlight-item {
        padding: 1.25rem;
    }


    .highlight-text {
        font-size: 0.875rem;
    }

    /* Platform Sections Mobile */
    .platform-section {
        padding: 60px 0;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-grid.reverse {
        direction: ltr;
    }

    .proficiencies-panel {
        padding: 40px 24px;
        min-height: auto;
    }

    .proficiencies-header {
        position: static;
        transform: none;
        margin-bottom: 24px;
    }

    .screenshot-placeholder {
        min-height: 300px;
        padding: 60px 24px;
    }

    .content-text h2 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .content-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Entry Tabs Mobile */
    .entry-tabs {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .entry-tab-button {
        width: 100%;
        padding: 1rem;
        font-size: 0.9rem;
        justify-content: center;
    }

    .entry-tab-description {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Demo Section Mobile */
    .demo-section {
        padding: 3rem 1rem;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .section-x {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.25rem;
        line-height: 1;
    }

    /* Tournament Lobby Mobile */
    .tournament-lobby {
        padding: 1.25rem;
        border-radius: 12px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 1px rgba(46, 139, 87, 0.2);
    }

    .tournament-card {
        padding: 1.25rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }

    .tournament-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-bottom: 0.5rem;
    }

    .tournament-badge {
        font-size: 0.7rem;
        padding: 0.375rem 0.75rem;
        border-radius: 16px;
        margin-bottom: 1rem;
    }

    .tournament-name {
        font-size: 1.35rem;
        line-height: 1.25;
        word-break: break-word;
        margin-top: 0;
    }

    .tournament-tagline {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .tournament-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }

    .stat-item {
        padding: 0.875rem 0.625rem;
        border-radius: 10px;
        min-height: 70px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .stat-value {
        font-size: 1.35rem;
        margin-top: 0.25rem;
    }

    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.3px;
    }

    .btn-join-tournament {
        font-size: 0.95rem;
        padding: 1rem;
        border-radius: 10px;
        margin-top: 0.5rem;
        letter-spacing: 0.5px;
    }

    .slate-header h3 {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
    }

    .slate-info {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .sport-slate {
        padding: 1rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .sport-slate-header {
        flex-wrap: wrap;
        gap: 0.625rem;
        margin-bottom: 1rem;
        padding-bottom: 0.875rem;
    }

    .sport-slate-header h4 {
        font-size: 1rem;
        letter-spacing: 0.3px;
    }

    .sport-icon {
        font-size: 1.35rem;
    }

    .game-count {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
        border-radius: 12px;
        white-space: nowrap;
    }

    .slate-games {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .game-card {
        padding: 1rem;
        border-radius: 10px;
        min-height: 120px;
    }

    .game-time {
        font-size: 0.7rem;
        margin-bottom: 0.75rem;
        letter-spacing: 0.3px;
    }

    .game-matchup {
        margin-bottom: 0.875rem;
    }

    .team-name {
        font-size: 0.875rem;
        line-height: 1.3;
        margin-bottom: 0.125rem;
    }

    .team-record {
        font-size: 0.7rem;
        margin-top: 0.25rem;
    }

    .market-options {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .market-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        border-radius: 6px;
        white-space: nowrap;
    }

    .leaderboard-preview {
        padding: 1rem;
        overflow-x: auto;
        border-radius: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .leaderboard-preview h3 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
        letter-spacing: 0.3px;
    }

    .leaderboard-table {
        font-size: 0.875rem;
        min-width: 100%;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }

    .leaderboard-table th {
        position: sticky;
        top: 0;
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(5px);
        z-index: 1;
    }

    .rank-badge {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .player-name {
        font-size: 0.85rem;
        font-weight: 600;
    }

    .balance {
        font-size: 0.875rem;
        font-weight: 700;
    }

    .roi {
        font-size: 0.85rem;
        font-weight: 700;
    }

    /* How It Works Mobile */
    .how-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Device Mockups Mobile */
    .device-mockups {
        height: auto;
        padding: 2rem 0;
    }

    .laptop-mockup {
        max-width: 100%;
    }

    .phone-mockup {
        display: none; /* Hide phone on mobile to avoid clutter */
    }

    .laptop-screen .screen-placeholder {
        height: 200px;
    }

    .how-steps {
        margin: 2rem 0;
    }

    .how-step {
        padding: 1rem;
        gap: 1rem;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .step-content h3 {
        font-size: 1rem;
    }

    .how-mockup {
        height: 350px;
    }

    .mockup-header {
        font-size: 0.9rem;
        letter-spacing: 1px;
        padding: 0 0.5rem;
    }

    .mockup-stats {
        gap: 0.25rem;
        padding: 0 0.5rem;
    }

    .mockup-stats .stat {
        padding: 0.75rem 0.25rem;
        flex: 1;
        min-width: 0;
    }

    .mockup-stats .stat-value {
        font-size: 1.1rem;
        min-height: 1.8rem;
        word-break: break-word;
    }

    .mockup-stats .stat-label {
        font-size: 0.65rem;
    }

    .mockup-content {
        width: 90%;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .step-card {
        padding: 1.5rem;
    }

    .step-card h3 {
        font-size: 1.25rem;
    }

    .step-card p {
        font-size: 0.9rem;
    }

    /* Pricing Mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-card h3 {
        font-size: 1.25rem;
    }

    .price {
        font-size: 1.75rem;
    }

    .pricing-card ul {
        font-size: 0.875rem;
    }

    /* CTA Section Mobile */
    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-actions .btn-primary {
        width: 100%;
        padding: 0.875rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 2rem 1rem;
    }

    .footer-logo {
        max-width: 250px;
        margin-bottom: 1rem;
    }

    .footer p {
        font-size: 0.875rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .footer a {
        font-size: 0.875rem;
    }

    /* General Typography Mobile */
    .container {
        padding: 0 1rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .btn-primary {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Tournament Hero Mobile */
    .tournament-hero {
        padding: 3rem 1.5rem 2rem;
    }

    .tournament-hero-grid {
        gap: 1.5rem;
    }

    .tournament-intro-section {
        padding: 2rem 1.5rem;
    }

    /* Stack grid on mobile */
    .tournament-intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .tournament-intro-logo {
        max-width: 280px;
    }

    .tournament-intro-text {
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
    }

    .tournament-intro-actions {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
    }

    .tournament-intro-actions .btn-primary,
    .tournament-intro-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Carousel Mobile - larger touch targets */
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .carousel-nav.prev {
        left: 8px;
    }

    .carousel-nav.next {
        right: 8px;
    }

    .carousel-indicators {
        gap: 8px;
        margin-top: 12px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.85rem;
    }

    /* Tournament Hero Extra Small */
    .tournament-hero-content .subpage-hero-title {
        font-size: 2rem;
    }

    .subpage-hero-title {
        font-size: 2rem;
    }

    /* Breadcrumb Extra Small */
    .breadcrumb-nav {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    /* Tournament Lobby Extra Small Mobile */
    .tournament-lobby {
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    }

    .tournament-card {
        padding: 1rem;
        border-radius: 10px;
        margin-bottom: 1.25rem;
    }

    .tournament-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-bottom: 0.625rem;
    }

    .tournament-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        border-radius: 12px;
        margin-bottom: 0.875rem;
    }

    .tournament-name {
        font-size: 1.15rem;
        line-height: 1.2;
        margin: 0 0 0.25rem 0;
        word-break: break-word;
    }

    .tournament-tagline {
        font-size: 0.8rem;
        margin-bottom: 0.875rem;
        line-height: 1.4;
    }

    .tournament-stats {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    .stat-item {
        padding: 0.75rem 0.625rem;
        border-radius: 8px;
        min-height: 65px;
        text-align: center;
    }

    .stat-value {
        font-size: 1.25rem;
        margin-top: 0.25rem;
    }

    .stat-label {
        font-size: 0.675rem;
        margin-bottom: 0.25rem;
        letter-spacing: 0.25px;
    }

    .btn-join-tournament {
        font-size: 0.875rem;
        padding: 0.875rem;
        border-radius: 8px;
        margin-top: 0.75rem;
        letter-spacing: 0.5px;
        font-weight: 800;
    }

    .slate-header {
        margin-bottom: 1.5rem;
    }

    .slate-header h3 {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .slate-info {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .sport-slate {
        padding: 1rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .sport-slate-header {
        gap: 0.5rem;
        flex-wrap: wrap;
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
    }

    .sport-slate-header h4 {
        font-size: 0.95rem;
        width: 100%;
        order: 2;
    }

    .sport-icon {
        font-size: 1.25rem;
        order: 1;
    }

    .game-count {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
        border-radius: 10px;
        order: 3;
        margin-left: auto;
    }

    .slate-games {
        gap: 0.75rem;
    }

    .game-card {
        padding: 0.875rem;
        border-radius: 8px;
    }

    .game-time {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }

    .game-matchup {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .team-name {
        font-size: 0.825rem;
        line-height: 1.3;
    }

    .team-record {
        font-size: 0.65rem;
        margin-top: 0.125rem;
    }

    .vs {
        font-size: 0.65rem;
    }

    .market-options {
        gap: 0.375rem;
    }

    .market-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.45rem;
        border-radius: 4px;
    }

    .leaderboard-preview {
        padding: 1rem;
        border-radius: 12px;
    }

    .leaderboard-preview h3 {
        font-size: 1.15rem;
        margin-bottom: 0.875rem;
    }

    .leaderboard-table {
        font-size: 0.75rem;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.5rem 0.375rem;
    }

    .leaderboard-table th {
        font-size: 0.7rem;
    }

    .rank-badge {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .player-name {
        font-size: 0.8rem;
    }

    .balance {
        font-size: 0.85rem;
    }

    .roi {
        font-size: 0.8rem;
    }

    /* How it works section */
    .how-note,
    .how-highlight {
        font-size: 0.85rem;
        line-height: 1.4;
        padding: 0 0.5rem;
    }

    .how-step {
        padding: 0.75rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .step-content h3 {
        font-size: 0.9rem;
    }

    .step-content p {
        font-size: 0.8rem;
    }

    /* Pricing cards mobile optimization */
    .pricing-grid {
        gap: 1rem;
    }

    .price-card {
        padding: 1.25rem;
    }

    .entry-price {
        font-size: 2rem;
    }

    .prize-pool {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .entry-features {
        font-size: 0.8rem;
    }

    .entry-features li {
        padding: 0.4rem 0;
    }

    /* CTA section improvements */
    .cta-section {
        padding: 2.5rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .cta-section p {
        font-size: 0.85rem;
    }

    .cta-actions {
        margin-top: 1.25rem;
    }

    .cta-actions .btn-primary {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    /* Button improvements */
    .btn-primary {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    /* General spacing improvements */
    section {
        padding: 2.5rem 0;
    }

    .container {
        padding: 0 0.75rem;
    }

    /* Footer mobile optimization */
    .footer {
        padding: 1.5rem 0.75rem;
    }

    .footer p {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .footer a {
        font-size: 0.8rem;
    }

    /* Step cards */
    .step-card {
        padding: 1.25rem;
    }

    /* Mockup improvements */
    .how-mockup {
        height: 300px;
        margin-top: 2rem;
    }

    .mockup-header {
        font-size: 1rem;
        padding: 0.75rem;
    }

    .mockup-stats {
        padding: 0.5rem;
    }

    .stat {
        padding: 0.75rem 0.5rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }
}

/* Tablet View */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Sports Conveyor (ported from BMT pools page)
   ========================================================================== */
.pools-sports {
    background-color: var(--bma-dark-100);
    background-image:
        linear-gradient(180deg, rgba(8, 8, 8, 0.94) 0%, rgba(12, 12, 12, 0.78) 50%, rgba(8, 8, 8, 0.94) 100%),
        linear-gradient(135deg, rgba(0, 230, 118, 0.1) 0%, transparent 45%, rgba(255, 215, 0, 0.08) 100%),
        url('https://images.unsplash.com/photo-1577223625816-7546f13df25d?q=80&w=3000&auto=format');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-attachment: scroll, scroll, fixed;
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    text-align: left;
    position: relative;
    overflow: hidden;
}

@supports (-webkit-touch-callout: none) {
    .pools-sports {
        background-attachment: scroll, scroll, scroll;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pools-sports {
        background-attachment: scroll, scroll, scroll;
    }
}

.pools-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bma-yellow);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.pools-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bma-green-bright), var(--bma-yellow));
}

.pools-section-heading {
    max-width: 780px;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    padding: 0 2rem;
}

.pools-section-heading p {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    line-height: 1.7;
}

.pools-section-heading-split {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(260px, 0.58fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: end;
}

.pools-section-heading-split > p {
    margin: 0;
}

@media (max-width: 1080px) {
    .pools-section-heading-split {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .pools-section-heading-split > p {
        max-width: 680px;
    }
}

.pools-sports-title {
    font-size: clamp(2rem, 5vw, 4.25rem);
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    color: var(--bma-white);
    margin: 0;
    letter-spacing: -0.01em;
}

.pools-sports-conveyor {
    width: min(100vw, 1600px);
    margin-left: auto;
    margin-right: auto;
    margin-top: clamp(2rem, 4vw, 3rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0,
        rgba(0, 0, 0, 0.4) 32px,
        #000 96px,
        #000 calc(100% - 96px),
        rgba(0, 0, 0, 0.4) calc(100% - 32px),
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0,
        rgba(0, 0, 0, 0.4) 32px,
        #000 96px,
        #000 calc(100% - 96px),
        rgba(0, 0, 0, 0.4) calc(100% - 32px),
        transparent 100%
    );
}

.pools-sports-row {
    overflow: hidden;
    width: 100%;
}

.pools-sports-track {
    display: flex;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    width: max-content;
    padding: 0.5rem 0;
    will-change: transform;
}

.pools-sports-row[data-sports-direction="rtl"] .pools-sports-track {
    animation: pools-sports-conveyor-rtl 60s linear infinite;
}

.pools-sports-row[data-sports-direction="ltr"] .pools-sports-track {
    animation: pools-sports-conveyor-ltr 75s linear infinite;
}

.pools-sports-row:nth-child(3) .pools-sports-track {
    animation-duration: 50s;
}

@keyframes pools-sports-conveyor-rtl {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes pools-sports-conveyor-ltr {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .pools-sports-track { animation: none; }
}

.pools-sport-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: clamp(140px, 16vw, 200px);
    height: clamp(120px, 14vw, 160px);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    color: rgba(255, 255, 255, 0.92);
    user-select: none;
    -webkit-user-select: none;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.pools-sport-card:hover {
    border-color: rgba(255, 215, 0, 0.4);
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.08), rgba(255, 255, 255, 0.04));
    transform: translateY(-2px);
}

.pools-sport-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(48px, 5vw, 64px);
    height: clamp(48px, 5vw, 64px);
    color: var(--bma-yellow);
}

.pools-sport-card-icon .sport-chip__icon,
.pools-sport-card-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.45));
}

.pools-sport-card-label {
    font-size: clamp(0.95rem, 1vw, 1.1rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .pools-sport-card {
        width: 120px;
        height: 110px;
    }
    .pools-sport-card-icon {
        width: 44px;
        height: 44px;
    }
    .pools-sport-card-label {
        font-size: 0.88rem;
    }
}

.pools-sports-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    padding: 0 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Shared edge stripe texture across BMT page sections
   (matches the home seamless-zone treatment; excludes hero + sports conveyor)
   ========================================================================== */
.gallery-section::after,
.game-modes-section::after,
.outcomes-section::after,
.how-section::after,
.pricing-section::after,
.platform-cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: repeating-linear-gradient(
        135deg,
        transparent 0,
        transparent 12px,
        rgba(255, 255, 255, 0.04) 12px,
        rgba(255, 255, 255, 0.04) 14px
    );
    -webkit-mask-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.85) 0%,
            transparent 28%,
            transparent 72%,
            rgba(0, 0, 0, 0.85) 100%
        ),
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(0, 0, 0, 1) 14%,
            rgba(0, 0, 0, 1) 86%,
            transparent 100%
        );
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.85) 0%,
            transparent 28%,
            transparent 72%,
            rgba(0, 0, 0, 0.85) 100%
        ),
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(0, 0, 0, 1) 14%,
            rgba(0, 0, 0, 1) 86%,
            transparent 100%
        );
    mask-composite: intersect;
}

@media (max-width: 900px) {
    .gallery-section::after,
    .game-modes-section::after,
    .outcomes-section::after,
    .how-section::after,
    .pricing-section::after,
    .platform-cta-section::after {
        display: none;
    }
}

/* ==========================================================================
   Platform Page (uplifted)
   ========================================================================== */

/* ----- Hero ----- */
.platform-hero {
    position: relative;
    padding: 4rem 2rem 7rem;
    background-color: var(--bma-dark-100);
    background-image:
        linear-gradient(120deg, rgba(8, 8, 8, 0.92) 0%, rgba(15, 15, 15, 0.78) 50%, rgba(46, 139, 87, 0.4) 100%),
        url('https://images.unsplash.com/photo-1775725181743-95a508495425?fm=jpg&q=80&w=3000&auto=format&fit=crop');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: scroll, fixed;
    overflow: hidden;
}

@supports (-webkit-touch-callout: none) {
    .platform-hero {
        background-attachment: scroll, scroll;
    }
}

@media (prefers-reduced-motion: reduce) {
    .platform-hero {
        background-attachment: scroll, scroll;
    }
}

.platform-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.platform-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.platform-hero-glow-green {
    width: 540px;
    height: 540px;
    top: -160px;
    right: -160px;
    background: radial-gradient(closest-side, rgba(0, 230, 118, 0.3), transparent);
}

.platform-hero-glow-yellow {
    width: 480px;
    height: 480px;
    bottom: -140px;
    left: -140px;
    background: radial-gradient(closest-side, rgba(255, 215, 0, 0.22), transparent);
}

.platform-hero-container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
}

/* .platform-hero-curve styling now handled by shared .hero-curve in style.css */

.platform-hero-breadcrumb {
    margin-bottom: 2rem;
}

.platform-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--bma-yellow);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.25rem;
}

.platform-hero-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bma-green-bright), var(--bma-yellow));
}

.platform-hero-headline {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--bma-white);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    max-width: 880px;
}

.platform-hero-accent {
    display: inline-block;
    background: linear-gradient(135deg, var(--bma-green-bright) 0%, var(--bma-yellow) 70%, #FFA500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
    transform: skewX(-6deg);
    padding: 0 0.15em;
    margin: 0 -0.15em;
    filter: drop-shadow(0 2px 6px rgba(0, 230, 118, 0.25)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

.platform-hero-subline {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 0.65rem;
    padding: 0.85rem 1.25rem 0.85rem 1.1rem;
    width: fit-content;
    max-width: 640px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1) 0%, rgba(255, 215, 0, 0.06) 100%), rgba(15, 15, 15, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid;
    border-image: linear-gradient(180deg, var(--bma-green-bright), var(--bma-yellow)) 1;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.platform-hero-subline-icon {
    font-size: 20px;
    line-height: 1.55;
    color: var(--bma-green-bright);
    font-variation-settings: 'wght' 500, 'opsz' 24;
}

/* ----- Hero → first feature curve cap (stroke only, sits inside hero bottom) ----- */
.platform-feature-cap {
    display: block;
    width: 100%;
    height: 100px;
    margin-top: -100px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 -4px 18px rgba(0, 230, 118, 0.32));
}

/* ----- Feature sections ----- */
.platform-feature {
    position: relative;
    padding: 5rem 2rem;
    background: var(--bma-dark-100);
    overflow: hidden;
}

/* First feature: pulled up 100px to overlap the cap, with the same
   quadratic curve as the cap stroke applied via mask. */
.platform-feature-first {
    z-index: 1;
    margin-top: -100px;
    padding: calc(2rem + 100px) 2rem 5rem;
    -webkit-mask-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50' preserveAspectRatio='none'><path d='M0,50 Q720,-30 1440,50 L1440,50 L0,50 Z' fill='white'/></svg>"),
        linear-gradient(white, white);
    -webkit-mask-size: 100% 50px, 100% calc(100% - 50px);
    -webkit-mask-position: top, left bottom;
    -webkit-mask-repeat: no-repeat;
    mask-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50' preserveAspectRatio='none'><path d='M0,50 Q720,-30 1440,50 L1440,50 L0,50 Z' fill='white'/></svg>"),
        linear-gradient(white, white);
    mask-size: 100% 50px, 100% calc(100% - 50px);
    mask-position: top, left bottom;
    mask-repeat: no-repeat;
}

.platform-feature-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
}

.platform-feature-grid-reverse {
    direction: rtl;
}

.platform-feature-grid-reverse > * {
    direction: ltr;
}

/* ----- Copy column ----- */
.platform-feature-copy {
    position: relative;
}

.platform-feature-headline {
    font-size: clamp(1.6rem, 2.8vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--bma-white);
    text-transform: uppercase;
    letter-spacing: -0.005em;
    margin: 0 0 1rem;
}

.platform-feature-accent {
    display: inline-block;
    background: linear-gradient(135deg, var(--bma-green-bright) 0%, var(--bma-yellow) 70%, #FFA500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transform: skewX(-6deg);
    padding: 0 0.15em;
    margin: 0 -0.15em;
    filter: drop-shadow(0 2px 6px rgba(0, 230, 118, 0.25));
}

.platform-feature-description {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 1.75rem;
}

/* ----- Proficiencies panel (glassified) ----- */
.platform-proficiencies {
    position: relative;
    padding: 1.5rem 1.75rem 1.5rem 1.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(20, 20, 20, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.platform-proficiencies-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--bma-yellow);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
}

.platform-proficiencies-label::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bma-green-bright), var(--bma-yellow));
}

.platform-proficiencies-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

.platform-proficiencies-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.platform-proficiencies-list .material-symbols-outlined {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: linear-gradient(135deg, var(--bma-green-bright) 0%, #1f6b40 100%);
    color: var(--bma-black);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 230, 118, 0.35);
    font-variation-settings: 'wght' 700;
}

/* ----- Visual column (image gallery / placeholder) ----- */
.platform-feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image gallery — count-aware grid */
.platform-gallery {
    width: 100%;
    display: grid;
    gap: 1rem;
}

/* All counts use a "hero + smaller below" pattern.
   First item always spans the full row width; remaining items share the row below. */
.platform-gallery[data-count="1"] { grid-template-columns: 1fr; }

.platform-gallery[data-count="2"] {
    grid-template-columns: 1fr;
}

.platform-gallery[data-count="3"] {
    grid-template-columns: 1fr 1fr;
}
.platform-gallery[data-count="3"] > :first-child {
    grid-column: span 2;
}

.platform-gallery[data-count="4"] {
    grid-template-columns: repeat(3, 1fr);
}
.platform-gallery[data-count="4"] > :first-child {
    grid-column: span 3;
}

.platform-gallery-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(20, 20, 20, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    font: inherit;
    color: inherit;
    text-align: left;
}

.platform-gallery-item:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 230, 118, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 230, 118, 0.2);
}

.platform-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.platform-gallery-item:hover img {
    transform: scale(1.04);
}

.platform-gallery-caption {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bma-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

.platform-gallery-item::after {
    content: 'zoom_in';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Material Symbols Outlined';
    font-size: 20px;
    color: var(--bma-yellow);
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-variation-settings: 'wght' 500, 'opsz' 24;
}

/* ----- Placeholder tile (for sections without images yet) ----- */
.platform-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 230, 118, 0.1) 0%, transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 55%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(20, 20, 20, 0.7) 100%);
    border: 1px dashed rgba(255, 215, 0, 0.3);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.platform-placeholder-icon {
    font-size: 56px;
    color: var(--bma-green-bright);
    filter: drop-shadow(0 0 16px rgba(0, 230, 118, 0.35));
    margin-bottom: 0.5rem;
    line-height: 1;
    font-variation-settings: 'wght' 300, 'opsz' 48;
}

.platform-placeholder-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bma-yellow);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.platform-placeholder-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ----- Edge stripe texture (matching home / BMT sections) ----- */
.platform-feature::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: repeating-linear-gradient(
        135deg,
        transparent 0,
        transparent 12px,
        rgba(255, 255, 255, 0.04) 12px,
        rgba(255, 255, 255, 0.04) 14px
    );
    -webkit-mask-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.85) 0%,
            transparent 28%,
            transparent 72%,
            rgba(0, 0, 0, 0.85) 100%
        ),
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(0, 0, 0, 1) 14%,
            rgba(0, 0, 0, 1) 86%,
            transparent 100%
        );
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.85) 0%,
            transparent 28%,
            transparent 72%,
            rgba(0, 0, 0, 0.85) 100%
        ),
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(0, 0, 0, 1) 14%,
            rgba(0, 0, 0, 1) 86%,
            transparent 100%
        );
    mask-composite: intersect;
}

@media (max-width: 900px) {
    .platform-feature::after { display: none; }
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .platform-feature-grid,
    .platform-feature-grid-reverse {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .platform-feature-grid-reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .platform-hero {
        padding: 3rem 1.25rem 7rem;
    }

    .platform-feature {
        padding: 3.5rem 1.25rem;
    }

    .platform-proficiencies {
        padding: 1.25rem 1.4rem;
    }

    .platform-gallery,
    .platform-gallery[data-count="2"],
    .platform-gallery[data-count="3"],
    .platform-gallery[data-count="4"] {
        grid-template-columns: 1fr;
    }

    .platform-placeholder {
        aspect-ratio: 16 / 11;
        padding: 1.5rem;
    }

    .platform-placeholder-icon {
        font-size: 44px;
    }
}
