/* ========================================
   HOW TO PLAY PAGE
   Progressive mode guide for Bet Max Tourney
   ======================================== */

html {
    scroll-padding-top: calc(var(--hero-marquee-height) + var(--hero-header-height) + 64px);
}

.htp-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(7rem, 12vw, 10rem) 0 clamp(3.5rem, 7vw, 6rem);
    margin-top: -120px;
    /* Brand background set: TD$ bills, same text-guard treatment as the home
       hero (static/images/backgrounds). Mobile gets the 960px cut. */
    background-color: #0d0d0d;
    background-image:
        linear-gradient(100deg, rgba(0, 0, 0, 0.5) 0%, rgba(8, 8, 8, 0.25) 45%, rgba(8, 8, 8, 0.05) 100%),
        url('../brand/backgrounds/club-cash.webp');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
@media (max-width: 768px) {
    .htp-hero {
        background-image:
            linear-gradient(100deg, rgba(0, 0, 0, 0.5) 0%, rgba(8, 8, 8, 0.25) 45%, rgba(8, 8, 8, 0.05) 100%),
            url('../brand/backgrounds/club-cash-960.webp');
    }
}

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

.htp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.htp-hero-copy {
    max-width: 760px;
}

.htp-eyebrow,
.htp-kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    color: var(--bma-yellow);
    font-size: var(--fs-eyebrow);
    font-weight: 900;
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
}

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

.htp-hero h1 {
    margin: 0 0 var(--space-5);
    max-width: 760px;
    color: var(--bma-white);
    font-size: var(--fs-display);
    line-height: var(--lh-tight);
    font-weight: 950;
    letter-spacing: var(--tracking-tightest);
    text-transform: uppercase;
    text-wrap: balance;
}

.htp-hero p {
    margin: 0;
    max-width: 670px;
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--fs-body-lg);
    line-height: var(--lh-loose);
}

.htp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.htp-hero-actions .hero-pill {
    flex: 0 0 auto;
}

.htp-hero-actions .hero-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.htp-hero-visual {
    min-height: 560px;
    padding: clamp(1rem, 2vw, 2rem);
}

/* The hero phone sits directly on the section texture. */
.htp-hero-visual.phone-stage {
    overflow: visible;
}

.htp-hero-visual .phone-mockup {
    max-width: 310px;
}

.htp-basics,
.htp-modes,
.htp-walkthrough,
.htp-other-modes,
.htp-td,
.htp-odds-guide,
.htp-glossary,
.htp-strip {
    position: relative;
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    background: #0d0d0d;
}

.htp-basics {
    /* How to Play page: trophies texture under the four premise steps. */
    background-color: #0d0d0d;
    background-image:
        linear-gradient(180deg, rgba(8, 8, 8, 0.85) 0%, rgba(12, 12, 12, 0.45) 50%, rgba(8, 8, 8, 0.85) 100%),
        url('../brand/backgrounds/trophies.webp');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
@media (max-width: 768px) {
    .htp-basics {
        background-image:
            linear-gradient(180deg, rgba(8, 8, 8, 0.85) 0%, rgba(12, 12, 12, 0.45) 50%, rgba(8, 8, 8, 0.85) 100%),
            url('../brand/backgrounds/trophies-960.webp');
    }
}
/* Three-step walkthrough sits on the arrows texture (journey treatment). */
.htp-walkthrough {
    background-color: #0d0d0d;
    background-image:
        linear-gradient(180deg, rgba(13, 13, 13, 0.75) 0%, rgba(13, 13, 13, 0.45) 50%, rgba(13, 13, 13, 0.85) 100%),
        url('../brand/backgrounds/arrows.webp');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
@media (max-width: 768px) {
    .htp-walkthrough {
        background-image:
            linear-gradient(180deg, rgba(13, 13, 13, 0.75) 0%, rgba(13, 13, 13, 0.45) 50%, rgba(13, 13, 13, 0.85) 100%),
            url('../brand/backgrounds/arrows-960.webp');
    }
}
/* Formats strip, odds guide and glossary sit on the black texture. */
.htp-strip,
.htp-odds-guide,
.htp-glossary {
    background-color: #0d0d0d;
    background-image:
        linear-gradient(180deg, rgba(8, 8, 8, 0.6) 0%, rgba(12, 12, 12, 0.2) 50%, rgba(8, 8, 8, 0.6) 100%),
        url('../brand/backgrounds/black.webp');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
@media (max-width: 768px) {
    .htp-strip,
    .htp-odds-guide,
    .htp-glossary {
        background-image:
            linear-gradient(180deg, rgba(8, 8, 8, 0.6) 0%, rgba(12, 12, 12, 0.2) 50%, rgba(8, 8, 8, 0.6) 100%),
            url('../brand/backgrounds/black-960.webp');
    }
}
/* Home page journey (#how-it-works lives only on the home page) sits on the
   arrows texture from the brand background set. */
.htp-basics#how-it-works {
    background-color: #0d0d0d;
    background-image:
        linear-gradient(180deg, rgba(13, 13, 13, 0.75) 0%, rgba(13, 13, 13, 0.45) 50%, rgba(13, 13, 13, 0.85) 100%),
        url('../brand/backgrounds/arrows.webp');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: scroll, fixed;
}
/* iOS Safari fallback for fixed attachment */
@supports (-webkit-touch-callout: none) {
    .htp-basics#how-it-works { background-attachment: scroll, scroll; }
}
@media (max-width: 768px) {
    .htp-basics#how-it-works {
        background-image:
            linear-gradient(180deg, rgba(13, 13, 13, 0.75) 0%, rgba(13, 13, 13, 0.45) 50%, rgba(13, 13, 13, 0.85) 100%),
            url('../brand/backgrounds/arrows-960.webp');
        background-attachment: scroll, scroll;
    }
}

/* Parallax background — mirrors the .home-game treatment on the home page:
   dark vignette + brand-tint diagonal + sports-photo backdrop on fixed
   attachment for parallax on desktop. Falls back to scroll on iOS. */
.htp-td,
.htp-other-modes {
    background-color: var(--bma-dark-100);
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-attachment: scroll, scroll, fixed;
}
.htp-td {
    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(255, 120, 45, 0.1) 0%, transparent 45%, rgba(255, 215, 0, 0.08) 100%),
        url('../brand/backgrounds/court.webp');
}
.htp-other-modes {
    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(255, 120, 45, 0.1) 0%, transparent 45%, rgba(255, 215, 0, 0.08) 100%),
        url('../brand/backgrounds/court.webp');
}
@supports (-webkit-touch-callout: none) {
    .htp-td,
    .htp-other-modes {
        background-attachment: scroll, scroll, scroll;
    }
}

.htp-modes {
    background:
        linear-gradient(180deg, #0d0d0d 0%, #141414 100%);
}

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

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

.htp-section-heading h2 {
    margin: 0;
    color: var(--bma-white);
    font-size: var(--fs-h2);
    line-height: var(--lh-snug);
    font-weight: 950;
    letter-spacing: var(--tracking-tightest);
    text-transform: uppercase;
    text-wrap: balance;
}

.htp-section-heading p {
    margin: var(--space-4) 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--fs-body-lg);
    line-height: var(--lh-loose);
}

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

.htp-concept-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

/* ===== Premise journey: 4-step visual flow with TD$ coin + trophy podium ===== */
/* Stage wrapper for the journey grid. */
.htp-journey-stage {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 1.5rem);
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.htp-journey {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.5vw, 1rem);
    align-items: stretch;
    counter-reset: htp-journey;
    position: relative;
    z-index: 1;
}

.htp-journey-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 2vw, 1.5rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    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);
    overflow: visible;
}

/* Step number badge floats above the card. Same gray-glass treatment as
   the glossary boxes, with the digits in brand green. */
.htp-journey-num {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 44px;
    padding: 0 0.6rem;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1f1f1f;
    color: var(--bma-green-bright);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Connector arrow between steps (desktop only) */
.htp-journey-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.05rem;
    width: 1rem;
    height: 14px;
    transform: translateY(-50%);
    background-image: linear-gradient(90deg, rgba(255, 120, 45, 0.5), rgba(255, 215, 0, 0.5));
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    pointer-events: none;
}

.htp-journey-visual {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 110px;
    margin-bottom: 1rem;
}

.htp-journey-icon {
    width: 56px;
    height: 56px;
    color: var(--bma-green-bright);
    filter: drop-shadow(0 0 14px rgba(255, 120, 45, 0.4));
}

.htp-journey-image {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* TD$ coin step: clean drop shadow, no yellow glow */
.htp-journey-image-td {
    height: 96px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease;
}
.htp-journey-step-td:hover .htp-journey-image-td {
    transform: rotate(-6deg) scale(1.05);
}

/* ===== Step 02 — mini odds-button row mirroring the BMA match card ===== */
.htp-journey-odds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    align-items: stretch;
    height: 110px;
}
.htp-odds-button {
    /* Grid with explicit rows so all three buttons line up label-by-label
       (type / team / point / price) regardless of which fields are present. */
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    align-items: center;
    justify-items: center;
    gap: 0.2rem;
    padding: 0.45rem 0.3rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.htp-journey-step:hover .htp-odds-button {
    border-color: rgba(255, 215, 0, 0.45);
    background: rgba(255, 215, 0, 0.06);
}
.htp-journey-step:hover .htp-odds-button:nth-child(2) {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.7);
    background: rgba(255, 215, 0, 0.12);
}
.htp-odds-type {
    font-family: var(--font-display);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
}
.htp-odds-team {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}
.htp-odds-point {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--bma-yellow);
}
.htp-odds-price {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 950;
    color: var(--bma-yellow);
    letter-spacing: -0.01em;
}

/* ===== Step 03 — branded animated up/down arrows (live ticker feel) ===== */
.htp-journey-pulse {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    height: 110px;
}
.htp-pulse-arrow {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.htp-pulse-arrow svg {
    width: 28px;
    height: 28px;
}
.htp-pulse-up {
    color: var(--bma-green-bright);
    filter: drop-shadow(0 0 12px rgba(255, 120, 45, 0.55));
    animation: htp-pulse-up 1.6s ease-in-out infinite;
}
.htp-pulse-down {
    color: var(--bma-red, #DC143C);
    filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.45));
    animation: htp-pulse-down 1.6s ease-in-out infinite;
    animation-delay: 0.8s;
}
@keyframes htp-pulse-up {
    0%, 100% { transform: translateY(2px); opacity: 0.55; }
    50%      { transform: translateY(-4px); opacity: 1; }
}
@keyframes htp-pulse-down {
    0%, 100% { transform: translateY(-2px); opacity: 0.55; }
    50%      { transform: translateY(4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .htp-pulse-up,
    .htp-pulse-down { animation: none; }
}

/* Trophy podium for the final step — matches home modes podium treatment */
.htp-journey-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 110px;
}
.htp-journey-trophy {
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}
.htp-journey-trophy-1 {
    height: 100%;
    width: auto;
    order: 2;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(255, 215, 0, 0.3));
}
.htp-journey-trophy-2 {
    height: 78%;
    width: auto;
    order: 1;
}
.htp-journey-trophy-3 {
    height: 70%;
    width: auto;
    order: 3;
}

.htp-journey-step h3 {
    margin: 0 0 0.5rem;
    color: var(--bma-white);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 950;
    letter-spacing: -0.01em;
}

.htp-journey-step p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.93rem;
    line-height: 1.55;
}

@media (max-width: 1080px) {
    .htp-journey {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1.25rem, 2vw, 1.75rem);
    }
    /* On 2-column layouts, the connector arrow only makes sense between
       horizontal neighbors (steps 1→2 and 3→4), not the wrap. */
    .htp-journey-step:nth-child(2n)::after,
    .htp-journey-step:last-child::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .htp-journey {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .htp-journey-step::after {
        display: none !important;
    }
}

.htp-concept-card,
.htp-mode-card,
.htp-mode-detail,
.htp-glossary-group {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    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);
}

.htp-concept-card {
    padding: clamp(1.1rem, 2vw, 1.5rem);
}

.htp-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 1.1rem;
    color: var(--bma-green-bright);
    border-radius: 8px;
    background: rgba(255, 120, 45, 0.1);
    box-shadow: 0 0 24px rgba(255, 120, 45, 0.16);
}

.htp-icon svg {
    width: 26px;
    height: 26px;
}

.htp-concept-card h3 {
    margin: 0 0 0.65rem;
    color: var(--bma-white);
    font-size: 1.08rem;
    font-weight: 900;
}

.htp-concept-card p,
.htp-mode-card p,
.htp-step-copy p,
.htp-step-copy li,
.htp-mode-detail-body p,
.htp-glossary-group dd {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.65;
}

.htp-concept-card p,
.htp-mode-card p {
    margin: 0;
    font-size: 0.95rem;
}

.htp-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.htp-mode-card {
    position: relative;
    display: block;
    min-height: 210px;
    padding: 1.25rem;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.htp-mode-card::after {
    content: '';
    position: absolute;
    inset: auto 1.25rem 1.25rem auto;
    width: 42px;
    height: 42px;
    background: url('../brand/mark-orange.svg') center/contain no-repeat;
    opacity: 0.18;
}

.htp-mode-card:hover,
.htp-mode-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(255, 120, 45, 0.34);
    background:
        linear-gradient(180deg, rgba(255, 120, 45, 0.11), rgba(255, 255, 255, 0.045));
}

.htp-mode-card-featured {
    border-color: rgba(255, 215, 0, 0.42);
    background:
        linear-gradient(135deg, rgba(47, 121, 77, 0.24), rgba(255, 215, 0, 0.08)),
        rgba(255, 255, 255, 0.04);
}

.htp-mode-card-soon {
    opacity: 0.82;
}

.htp-mode-label,
.htp-summary-meta {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.32rem 0.55rem;
    color: var(--bma-yellow);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.08);
}

.htp-mode-card strong {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--bma-white);
    font-size: clamp(1.3rem, 2vw, 1.85rem);
    line-height: 1.05;
    font-weight: 950;
    text-transform: uppercase;
}

.htp-step-stack {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
}

.htp-step-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.72fr);
    gap: clamp(1.5rem, 5vw, 5rem);
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    overflow: hidden;
}

.htp-step-row-reverse .htp-step-copy {
    order: 2;
}

.htp-step-row-reverse .htp-step-visual {
    order: 1;
}

.htp-step-number {
    display: block;
    margin-bottom: 0.9rem;
    color: var(--bma-green-bright);
    font-size: clamp(2.75rem, 6vw, 5rem);
    line-height: 0.82;
    font-weight: 950;
}

.htp-step-copy h3 {
    margin: 0 0 1rem;
    color: var(--bma-white);
    font-size: clamp(1.65rem, 3vw, 3rem);
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
}

.htp-step-copy p {
    margin: 0;
    max-width: 620px;
    font-size: 1.05rem;
}

.htp-step-copy ul {
    display: grid;
    gap: 0.6rem;
    margin: 1.3rem 0 0;
    padding: 0;
    list-style: none;
}

.htp-step-copy li {
    position: relative;
    padding-left: 1.45rem;
}

.htp-step-copy li::before {
    content: '';
    position: absolute;
    top: 0.7em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bma-yellow);
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.48);
}

.htp-step-visual {
    min-height: 520px;
    padding: 1rem;
}

.htp-step-visual .phone-mockup {
    max-width: 290px;
}

.htp-details-list {
    display: grid;
    gap: 1rem;
}

.htp-mode-detail {
    overflow: hidden;
}

.htp-mode-detail summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    -webkit-user-select: none;
}

.htp-mode-detail summary::-webkit-details-marker {
    display: none;
}

.htp-mode-detail summary::after {
    content: '+';
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: var(--bma-black);
    font-weight: 950;
    border-radius: 50%;
    background: var(--bma-yellow);
}

.htp-mode-detail[open] summary::after {
    content: '-';
}

.htp-mode-detail summary strong {
    display: block;
    color: var(--bma-white);
    font-size: clamp(1.25rem, 2.4vw, 1.9rem);
    font-weight: 950;
    text-transform: uppercase;
}

.htp-mode-detail summary small {
    display: block;
    margin-top: 0.3rem;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.95rem;
}

.htp-summary-meta {
    margin: 0 0 0 auto;
    white-space: nowrap;
}

/* Bet Max Boss badge — brand gradient pill, mirrors the home-modes accent */
.htp-summary-meta-boss {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 120, 45, 0.18), rgba(255, 215, 0, 0.18));
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: var(--bma-yellow);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.htp-mode-detail-body {
    padding: 0 1.25rem 1.25rem;
}

.htp-mini-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
}

.htp-mini-steps article {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 0.75rem;
    min-width: 0;
}

.htp-mini-phone {
    min-height: 330px;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.16);
}

.htp-mini-phone .phone-mockup {
    max-width: 160px;
}

.htp-mini-phone .phone-frame {
    border-width: 6px;
    border-radius: 30px;
}

.htp-mini-phone .phone-screen {
    border-radius: 22px;
}

.htp-mini-phone .phone-notch {
    width: 74px;
    height: 18px;
    border-radius: 0 0 14px 14px;
}

.htp-mini-phone .placeholder-content {
    padding: 1rem;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.78rem;
    text-align: center;
    text-transform: uppercase;
}

.htp-mini-steps h3 {
    margin: 0;
    color: var(--bma-white);
    font-size: 1.05rem;
    font-weight: 900;
}

.htp-mini-steps p {
    margin: 0;
    font-size: 0.94rem;
}

.htp-glossary-grid {
    display: grid;
    gap: 1rem;
}

.htp-glossary-group {
    overflow: hidden;
}

.htp-glossary-group summary {
    padding: 1.1rem 1.25rem;
    color: var(--bma-white);
    font-size: 1.05rem;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
    user-select: none;
    -webkit-user-select: none;
}

.htp-glossary-group summary::-webkit-details-marker {
    display: none;
}

.htp-glossary-group dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0 1.25rem 1.25rem;
}

.htp-glossary-group dl > div {
    padding: 1rem 1rem 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.htp-glossary-group dt {
    margin-bottom: 0.35rem;
    color: var(--bma-yellow);
    font-weight: 900;
}

.htp-glossary-group dd {
    margin: 0;
    font-size: 0.94rem;
}


@media (max-width: 1080px) {
    .htp-concept-grid,
    .htp-mode-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .htp-section-heading-split,
    .htp-hero-grid,
    .htp-step-row {
        grid-template-columns: 1fr;
    }

    .htp-step-row-reverse .htp-step-copy,
    .htp-step-row-reverse .htp-step-visual {
        order: initial;
    }

    .htp-hero-visual {
        min-height: 500px;
    }
}

@media (max-width: 820px) {
    .htp-hero {
        padding-top: calc(var(--hero-marquee-height) + 7rem) !important;
        padding-bottom: 3rem !important;
    }

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

    .htp-hero-actions .hero-pill {
        width: 100%;
    }

    .htp-hero-actions .hero-pill-btn {
        width: 100%;
    }

    .htp-mini-steps {
        grid-template-columns: 1fr;
    }

    .htp-mini-steps article {
        grid-template-columns: 130px minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        align-items: center;
        column-gap: 1rem;
    }

    .htp-mini-phone {
        grid-row: 1 / span 2;
        min-height: 250px;
    }

    .htp-mini-phone .phone-mockup {
        max-width: 118px;
    }

    .htp-glossary-group dl {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 64px;
    }

}

@media (max-width: 640px) {
    .htp-hero {
        padding-top: calc(var(--hero-marquee-height) + 6.5rem) !important;
        padding-bottom: 2.75rem !important;
    }

    .htp-hero p {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .htp-concept-grid,
    .htp-mode-grid {
        grid-template-columns: 1fr;
    }

    .htp-hero-visual,
    .htp-step-visual {
        min-height: 380px;
    }

    .htp-hero-visual .phone-mockup,
    .htp-step-visual .phone-mockup {
        max-width: 220px;
    }

    .htp-mode-card {
        min-height: 175px;
    }

    .htp-mode-detail summary {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .htp-summary-meta {
        margin-left: 0;
        order: 3;
    }

    .htp-mini-steps article {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .htp-mini-phone {
        grid-row: auto;
        min-height: 315px;
    }

    .htp-mini-phone .phone-mockup {
        max-width: 150px;
    }
}

@media (max-width: 380px) {
    .htp-hero {
        padding-top: calc(var(--hero-marquee-height) + 6.25rem) !important;
    }

    .htp-hero-visual,
    .htp-step-visual {
        min-height: 350px;
    }

    .htp-hero-visual .phone-mockup,
    .htp-step-visual .phone-mockup {
        max-width: 200px;
    }
}

/* ============================================
   What are Tournament Dollars (TD$)? section
   ============================================ */
.htp-td-card {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    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);
}

.htp-td-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.htp-td-image {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
}

.htp-td-lead {
    margin: 0 0 1.25rem;
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    color: var(--bma-white);
    line-height: 1.6;
}

.htp-td-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.htp-td-list li {
    position: relative;
    padding-left: 1.4rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.97rem;
    line-height: 1.55;
}

.htp-td-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bma-green-bright), var(--bma-yellow));
    box-shadow: 0 0 10px rgba(255, 120, 45, 0.5);
}

.htp-td-list strong {
    color: var(--bma-white);
    font-weight: 800;
}

@media (max-width: 720px) {
    .htp-td-card {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .htp-td-image {
        max-width: 140px;
    }
}

/* ============================================
   Betting Odds Explained section
   ============================================ */
.htp-odds-block {
    margin-top: clamp(2rem, 4vw, 3rem);
}

.htp-odds-block-title {
    margin: 0 0 1rem;
    color: var(--bma-white);
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 900;
    letter-spacing: -0.01em;
}

.htp-odds-block-lead {
    margin: 0 0 1.25rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 720px;
}

/* Pick Outcomes — three side-by-side cards (Win / Lose / Push) with brand
   color accents on the tag. */
.htp-outcome-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.htp-outcome-card {
    padding: clamp(1.1rem, 2vw, 1.5rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left-width: 4px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    color: rgba(255, 255, 255, 0.78);
}

.htp-outcome-card p {
    margin: 0 0 0.6rem;
    line-height: 1.55;
    font-size: 0.95rem;
}
.htp-outcome-card p:last-child { margin-bottom: 0; }

.htp-outcome-tag {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.htp-outcome-win {
    border-left-color: var(--bma-green-bright);
}
.htp-outcome-win .htp-outcome-tag {
    background: rgba(255, 120, 45, 0.14);
    color: var(--bma-green-bright);
}

.htp-outcome-lose {
    border-left-color: var(--bma-red, #DC143C);
}
.htp-outcome-lose .htp-outcome-tag {
    background: rgba(220, 20, 60, 0.14);
    color: var(--bma-red, #DC143C);
}

.htp-outcome-push {
    border-left-color: var(--bma-yellow);
}
.htp-outcome-push .htp-outcome-tag {
    background: rgba(255, 215, 0, 0.14);
    color: var(--bma-yellow);
}

.htp-outcome-example {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}
.htp-outcome-example strong {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 820px) {
    .htp-outcome-grid {
        grid-template-columns: 1fr;
    }
}

/* Understanding Odds — two-up explainers (positive vs. negative). */
.htp-odds-explainer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.htp-odds-explainer {
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    color: rgba(255, 255, 255, 0.78);
}

.htp-odds-explainer p {
    margin: 0 0 0.75rem;
    line-height: 1.55;
    font-size: 0.95rem;
}
.htp-odds-explainer p:last-child { margin-bottom: 0; }
.htp-odds-explainer strong {
    color: var(--bma-white);
}

.htp-odds-explainer-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.htp-odds-symbol {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 950;
    line-height: 1;
}

.htp-odds-explainer-positive .htp-odds-symbol {
    background: rgba(255, 120, 45, 0.16);
    color: var(--bma-green-bright);
    box-shadow: 0 0 18px rgba(255, 120, 45, 0.18);
}
.htp-odds-explainer-negative .htp-odds-symbol {
    background: rgba(220, 20, 60, 0.16);
    color: var(--bma-red, #DC143C);
    box-shadow: 0 0 18px rgba(220, 20, 60, 0.18);
}

.htp-odds-explainer-head h4 {
    margin: 0 0 0.15rem;
    color: var(--bma-white);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 900;
}

.htp-odds-explainer-sub {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

@media (max-width: 720px) {
    .htp-odds-explainer-grid {
        grid-template-columns: 1fr;
    }
}

/* Quick Rule callout — yellow accent strip */
.htp-odds-rule {
    margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
    padding: clamp(1rem, 2vw, 1.25rem) clamp(1.25rem, 2.5vw, 1.75rem);
    border-radius: 10px;
    border-left: 4px solid var(--bma-yellow);
    background: rgba(255, 215, 0, 0.06);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.97rem;
    line-height: 1.55;
}

.htp-odds-rule strong {
    color: var(--bma-yellow);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-right: 0.4rem;
    display: inline-block;
}

/* ============================================
   Mode detail body — single phone + bullet list layout
   (replaces the older 3-mini-step grid)
   ============================================ */
.htp-mode-flex {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.htp-mode-phone {
    width: 100%;
    padding: 0.75rem;
}

.htp-mode-phone .phone-mockup {
    max-width: 200px;
    margin: 0 auto;
}

.htp-mode-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.htp-mode-points li {
    position: relative;
    padding-left: 1.4rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.97rem;
    line-height: 1.55;
}

.htp-mode-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bma-green-bright), var(--bma-yellow));
    box-shadow: 0 0 10px rgba(255, 120, 45, 0.5);
}

.htp-mode-points strong {
    color: var(--bma-white);
    font-weight: 800;
}

@media (max-width: 720px) {
    .htp-mode-flex {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .htp-mode-phone .phone-mockup {
        max-width: 180px;
    }
}



/* Keep punctuation with the accented word at every heading breakpoint. */
.htp-heading-word {
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .htp-hero-visual {
        display: none;
    }
}

.htp-other-modes .mode-guide-action {
    display:inline-flex; align-items:center; gap:.5rem; min-height:44px;
    color:var(--bma-green-bright); font-weight:700; text-underline-offset:.2em;
}

/* Three-column info strip: Formats / Market Types / Sports */
.home-game-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.home-game-strip-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bma-green-bright);
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}
.home-game-strip-label::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--bma-green-bright);
}
.home-game-strip-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.home-game-strip-list li {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.home-game-strip-list li:hover {
    background: rgba(255, 128, 55, 0.05);
    border-color: rgba(255, 128, 55, 0.3);
}
.home-game-pill-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--bma-white);
    line-height: 1.1;
}
.home-game-pill-sub {
    font-size: 0.75rem;
    color: #ffa36a;
    margin-top: 0.2rem;
    letter-spacing: 0.02em;
}

/* Sports column: condensed pill list, mirrors pools page treatment */
.home-game-sports-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.home-game-sports-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.85);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.home-game-sports-list li:hover {
    background: rgba(255, 215, 0, 0.06);
    border-color: rgba(255, 215, 0, 0.3);
}
.home-game-sports-list [data-sport-icon] {
    display: inline-flex;
}
.home-game-sports-list .sport-chip__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
}
.home-game-sports-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

@media (max-width: 900px) {
    .home-game-strip {
        grid-template-columns: 1fr 1fr;
    }
    .home-game-strip-col-sports {
        grid-column: 1 / -1;
    }
}

@media (max-width: 540px) {
    .home-game-strip {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .home-game-strip-col-sports { grid-column: auto; }
}

/* The reference applies compact shared spacing to both guides below the hero. */
@media (max-width: 768px) {
    :is(.htp-hero, .pools-hero) ~ section {
        --fs-h2: 2rem;
        padding-block: 3rem;
    }

    .pools-sports .pools-sports-title {
        font-size: var(--fs-h2);
    }
}

@media (max-width: 480px) {
    :is(.htp-hero, .pools-hero) ~ section {
        --fs-h2: 1.5rem;
        padding-block: 2rem;
    }
}
