/* ==========================================================================
   Homepage redesign additions (2026 Figma refresh)
   Scoped with .hp- prefix. Sits on top of weplay.css / main.css tokens.
   ========================================================================== */

.hp-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

/* ---------- Hero ---------- */
.home--layer-one h1.index span {
    background-image: linear-gradient(100deg, #ff5500 10%, #ff8a3d 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.hp-hero-tagline {
    font-weight: 400;
    font-size: 28px;
    color: #fff;
    line-height: 1.15;
    margin-top: 18px;
    margin-bottom: 14px;
}
.hp-hero-body {
    font-size: 20px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.6);
    max-width: 520px;
}

/* Hero graphic, matched to the Figma "Home" frame (33:2, 1440x800 hero
   section): the portrait/chip cutout (node 33:31) sits at x=778.71,
   y=122.47, w=611.33, h=537.80 - independent of the copy column, not a
   grid cell sized off a blind 1fr. Positioned as a sibling of .container
   (not nested inside .default-grid, which is a shared, position:relative
   grid component used elsewhere) so these percentages resolve against the
   full hero section instead of a box sized to the text content. */
@media (min-width: 969px) {
    /* Percentage top/left on the graphic resolve against this element's own
       height - without a stable floor, a wide viewport that wraps the copy
       onto fewer lines shrinks this box, dragging the graphic up under the
       fixed navbar. Figma's own hero section is 800px. */
    .home--layer-one {
        min-height: 800px;
    }
    .home--layer-one .default-grid {
        grid-template-columns: minmax(0, 570px);
    }
    .hp-hero-graphic-wrap {
        position: absolute;
        left: 48%;
        top: 15.31%;
        width: 42.45%;
        z-index: 1;
    }
    .hp-hero-graphic-wrap .hp-hero-graphic {
        width: 100% !important;
        max-width: 100% !important;
        display: block;
    }
}

.hp-eyebrow {
    display: inline-block;
    font-family: "Noto Sans", sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.01em;
    margin-bottom: 20px;
    background-image: linear-gradient(90deg, #ff8300, #ff4b00);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.hp-eyebrow--green {
    background-image: linear-gradient(90deg, #56f660, #00b35b);
}

.hp-section-head {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto 56px;
    text-align: center;
}
.hp-section-head h2 {
    font-size: clamp(2.1rem, 4.6vw, 4rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    font-weight: 900;
    margin-bottom: 20px;
}
.hp-section-head p {
    max-width: 640px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    line-height: 1.6;
    font-family: var(--default--font-family);
}
.hp-highlight-orange {
    background-image: linear-gradient(90deg, #ffaf3f, #e64600);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.hp-highlight-green {
    color: #7ae951;
    -webkit-text-fill-color: #7ae951;
}

.hp-glow-ellipse {
    position: absolute;
    left: 50%;
    top: -60px;
    transform: translateX(-50%);
    width: 800px;
    max-width: 160%;
    height: 420px;
    background: radial-gradient(closest-side, rgba(255, 117, 1, 0.16), rgba(255, 117, 1, 0) 70%);
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
}
.hp-glow-ellipse--green {
    background: radial-gradient(closest-side, rgba(104, 232, 53, 0.16), rgba(104, 232, 53, 0) 70%);
}

/* ---------- Bento card grid (Problem / Solution rows) ---------- */
.hp-bento-section {
    position: relative;
    z-index: 1;
}
.hp-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1150px;
    margin: 0 auto;
}
.hp-bento-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 0.6px solid transparent;
    padding: 20px 32px 32px;
    text-align: left;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-intensity: 0;
    --glow-radius: 220px;
}
.hp-problem .hp-bento-card {
    background:
        linear-gradient(134.5deg, #000 0%, #260e04 107%) padding-box,
        linear-gradient(180deg, rgba(255, 140, 0, 0.3) 0%, rgba(140, 70, 0, 0.3) 100%) border-box;
    --hp-glow-rgb: 255, 140, 0;
}
.hp-solution .hp-bento-card {
    background:
        linear-gradient(130deg, #000 0%, #061706 104%) padding-box,
        linear-gradient(180deg, rgba(117, 222, 71, 0.3) 0%, rgba(46, 141, 16, 0.3) 100%) border-box;
    --hp-glow-rgb: 104, 232, 53;
}
.hp-problem .hp-bento-card:hover {
    background:
        linear-gradient(134.5deg, #000 0%, #260e04 107%) padding-box,
        linear-gradient(134.5deg, #f60 0%, #f60 107%) border-box;
}
.hp-solution .hp-bento-card:hover {
    background:
        linear-gradient(130deg, #000 0%, #061706 104%) padding-box,
        linear-gradient(130deg, #75de47 0%, #75de47 104%) border-box;
}
.hp-bento-fx-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}
.hp-bento-card::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px;
    background: radial-gradient(
        var(--glow-radius) circle at var(--glow-x) var(--glow-y),
        rgba(var(--hp-glow-rgb), calc(var(--glow-intensity) * 0.9)) 0%,
        rgba(var(--hp-glow-rgb), calc(var(--glow-intensity) * 0.45)) 30%,
        transparent 65%
    );
    border-radius: inherit;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}
.hp-bento-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgb(var(--hp-glow-rgb));
    box-shadow: 0 0 6px rgba(var(--hp-glow-rgb), 0.7);
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transform: scale(0);
    transition:
        opacity 0.3s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hp-bento-particle.is-visible {
    opacity: 0.9;
    transform: scale(1);
}
.hp-bento-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(var(--hp-glow-rgb), 0.35) 0%,
        rgba(var(--hp-glow-rgb), 0.15) 30%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 3;
    transform: scale(0);
    opacity: 1;
    transition:
        transform 0.8s ease,
        opacity 0.8s ease;
}
.hp-bento-ripple.is-active {
    transform: scale(1);
    opacity: 0;
}
.hp-bento-spotlight {
    position: fixed;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    background: radial-gradient(
        circle,
        rgba(var(--hp-glow-rgb, 255, 140, 0), 0.14) 0%,
        rgba(var(--hp-glow-rgb, 255, 140, 0), 0.07) 15%,
        rgba(var(--hp-glow-rgb, 255, 140, 0), 0.035) 25%,
        rgba(var(--hp-glow-rgb, 255, 140, 0), 0.018) 40%,
        transparent 70%
    );
    transition: opacity 0.3s ease;
}
@media (hover: none), (max-width: 767px) {
    .hp-bento-card::after,
    .hp-bento-particle,
    .hp-bento-ripple,
    .hp-bento-spotlight {
        display: none !important;
    }
}

.hp-bento-card-icon {
    position: relative;
    width: 36px;
    height: 56px;
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}
.hp-bento-card-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        closest-side,
        rgba(var(--hp-glow-rgb), 0.45),
        rgba(var(--hp-glow-rgb), 0) 75%
    );
    z-index: 0;
    pointer-events: none;
}
.hp-bento-card-icon img {
    position: relative;
    z-index: 1;
    width: 32px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 8px rgba(var(--hp-glow-rgb), 0.55));
}
.hp-bento-card-icon img.hp-bento-glyph {
    width: 25px;
    height: auto;
}
.hp-bento-card h3 {
    color: #fff;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 22px;
    font-family: "Noto Sans", sans-serif;
}
.hp-bento-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    line-height: 1.3;
    margin: 0 0 15px;
}
.hp-bento-card p:last-child {
    margin-bottom: 0;
}

/* ---------- Cross-sell "business outcome" wheel ---------- */
.hp-crosssell {
    position: relative;
    overflow: hidden;
    background: #000;
    /* .hp-section already adds 100px top/bottom padding, and
       .hp-crosssell-scene adds its own 90px/70px on top of that -
       the doubled-up padding was showing as a big dead gap before/after
       the wheel diagram. This section owns its own vertical rhythm. */
    padding: 0;
}
/* Pseudo-elements paint above their own element's background, so the
   blurred scene image (::before, z-index 0) needs the dark wash as a
   second layer (::after, z-index 1) stacked above it - not as the
   parent's own background, which would sit *under* the image instead of
   dimming it. Figma: 9.5px blur, ~17% effective opacity. */
.hp-crosssell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("../gfx/2026/home-redesign/crosssell_scene_bg.jpg") center / cover no-repeat;
    filter: blur(9px);
    opacity: 0.55;
}
.hp-crosssell::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(179.68deg, rgba(0, 0, 0, 0.35) 0.1%, rgba(3, 3, 3, 0.6) 99.9%);
}
.hp-crosssell-scene {
    position: relative;
    z-index: 2;
    padding: 90px 40px 70px;
}
.hp-crosssell-head {
    position: relative;
    z-index: 1;
    margin-bottom: 70px;
}
.hp-crosssell-head h2.hp-crosssell-title {
    font-family: "Noto Sans", sans-serif;
    font-size: clamp(2.2rem, 4.6vw, 4.375rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.03em;
    max-width: 820px;
    margin: 0 auto 16px;
    background-image: linear-gradient(95deg, #c0ddff 16%, #ffa65c 49%, #e9a4ff 80%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.hp-crosssell-head p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- Cross-sell ring diagram ----------
   Percentages below are lifted directly from the Figma node geometry
   (frame 33:630, "Group 11112160") so the ring/avatar/copy positions
   reproduce the design's layout exactly at any container width. */
.hp-wheel {
    position: relative;
    z-index: 1;
}
.hp-wheel-tagline {
    text-align: center;
    font-family: "Noto Sans", sans-serif;
    font-weight: 800;
    font-size: clamp(1.15rem, 2.1vw, 1.55rem);
    line-height: 1.2;
    color: #fff;
    margin: 0 0 48px;
}
.hp-wheel-diagram {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 914.6878 / 545.4365;
}
.hp-wheel-diagram::before {
    content: "";
    position: absolute;
    inset: -20% -12%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(45% 45% at 30% 26%, rgba(95, 169, 252, 0.2), transparent 70%),
        radial-gradient(45% 45% at 68% 26%, rgba(193, 53, 240, 0.18), transparent 70%),
        radial-gradient(55% 48% at 50% 80%, rgba(255, 128, 30, 0.2), transparent 70%);
    filter: blur(80px);
}

.hp-wheel-copy {
    position: absolute;
    z-index: 1;
}
.hp-wheel-copy h3 {
    font-family: "Noto Sans", sans-serif;
    font-weight: 900;
    font-size: 23px;
    color: #fff;
    margin: 0 0 10px;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}
.hp-wheel-copy p {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}
.hp-wheel-copy--casino {
    left: 0;
    top: 5.5%;
    width: 25.73%;
    text-align: right;
}
.hp-wheel-copy--casino h3 {
    text-decoration-color: #5fa9fc;
}
.hp-wheel-copy--sportsbook {
    left: 73.15%;
    top: 5.5%;
    width: 26.86%;
    text-align: left;
}
.hp-wheel-copy--sportsbook h3 {
    text-decoration-color: #c135f0;
}
.hp-wheel-copy--poker {
    left: 35.72%;
    top: 72.9%;
    width: 26.86%;
    text-align: center;
}
.hp-wheel-copy--poker h3 {
    text-decoration-color: #ff801e;
}

.hp-wheel-ring {
    position: absolute;
    left: 29.54%;
    top: 0;
    width: 39.21%;
    height: 74.24%;
    z-index: 1;
}
/* Arcs are the client's pre-rendered PNGs (solid arc + outer glow). Each
   .hp-wheel-arc box is still the Figma arc rectangle (158x247 / 288x97
   units), and the <img> is oversized by the PNG's transparent glow
   padding so the solid arc lands exactly in the box while the glow
   bleeds around it. Offsets = padding / solid-arc size from the PNGs. */
.hp-wheel-arc {
    position: absolute;
    overflow: visible;
    pointer-events: none;
}
.hp-wheel-arc img {
    position: absolute;
    display: block;
    max-width: none;
    height: auto;
}
.hp-wheel-arc--casino {
    left: 0;
    top: 0;
    width: 44.09%;
    height: 61.12%;
}
.hp-wheel-arc--casino img {
    /* 240x323 png, solid arc 158x246 at (40,36) */
    width: 151.9%;
    left: -25.32%;
    top: -14.63%;
}
.hp-wheel-arc--sportsbook {
    left: 55.91%;
    top: 0;
    width: 44.09%;
    height: 61.12%;
}
.hp-wheel-arc--sportsbook img {
    /* 241x323 png, solid arc 158x246 at (42,36) */
    width: 152.53%;
    left: -26.58%;
    top: -14.63%;
}
.hp-wheel-arc--poker {
    left: 9.75%;
    top: 64.32%;
    width: 80.51%;
    height: 24.05%;
    z-index: 3;
}
.hp-wheel-arc--poker img {
    /* 360x175 png, solid arc 287x96 at (37,34) */
    width: 125.44%;
    left: -12.89%;
    top: -35.42%;
}

.hp-wheel-avatar {
    position: absolute;
    left: 18.54%;
    top: 4.42%;
    width: 77.85%;
    height: 95.58%;
    object-fit: contain;
    object-position: center top;
    z-index: 2;
    filter: drop-shadow(0 -6px 34px rgba(0, 0, 0, 0.5)) drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

/* ---------- Step Into WePlay Network (comparison grid) ---------- */
.cards-index {
    /* .hp-section's 100px top/bottom padding was stacking with
       .default-margins.skins's own 100px/50px, both showing a plain
       black band (the .home--layer-two texture only covers the inner
       div, not this outer section's padding) before the chip texture
       kicked in - killing the doubled padding lets that background
       fill the section and removes the dead gap above/below the grid. */
    padding: 0;
}
.cards-index .text-center {
    margin-bottom: 48px;
}
.hp-compare-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1150px;
    margin: 0 auto;
}
.hp-compare-grid .hp-compare-card-wrap {
    min-width: 0;
}
.hp-compare-grid .card {
    height: 100%;
    /* main.css gives .card overflow:hidden for its border-radius; here the
       rounded panel (.card-panel) clips itself, and the enlarged avatar box
       starts 30px above the card, so the card must not clip its top. */
    overflow: visible;
}
/* Desktop grid is static (4 columns, no carousel), so every card's legend
   labels must be visible — not just an "active" slide's. Below 767px the
   grid becomes a swipeable carousel (see the max-width:767px rules) where
   only the centered card is full-strength; the same rule still applies
   there since dimming is done via .card opacity/blur, not the legend. */
.hp-compare-grid .inline-legend {
    display: inline-block;
    opacity: 1;
}
/* Mobile-only controls, hidden on the static desktop grid. */
.hp-compare-dots,
.hp-compare-cta {
    display: none;
}

/* Card shell: transparent — the inset .card-panel below carries the tinted
   background, so the portrait (.card-avatar) can sit in front of it and
   bleed above the panel's top edge instead of being boxed in by it. */
.hp-compare-grid .card {
    position: relative;
    border: none;
    background: none;
    box-shadow: none;
    transition: transform 0.25s ease;
}

/* Portrait: a separate layer above the panel, positioned so the head/hair
   naturally clears the panel's top edge (matches the Figma reference).
   Every variant shares the same box (a soft radial glow in its accent
   colour, sitting behind a transparent-background portrait PNG, faded out
   at the bottom via mask so it dissolves into the panel) — only the accent
   colour and the portrait image differ per card. */
.hp-compare-grid .card-avatar {
    position: absolute;
    /* Box starts 30px above the card so the tallest portrait (274px) still
       fits; each variant pins its own head-top via background-position-y
       (measured from this -30px origin) so scaling the portraits up grows
       them *down* into the panel, never further above the card. The box
       runs to 270px (card coords) and the mask fades the chest out between
       ~y156 and ~y258, i.e. through the title zone rather than above it,
       so the portrait dissolves into the card instead of ending abruptly. */
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    height: 300px;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 62%, transparent 96%);
    -webkit-mask-image: linear-gradient(to bottom, black 62%, transparent 96%);
    transition: opacity 0.3s ease;
}
/* Every hover effect on these cards lives in this one block. They are a
   single choreography - the card lifts, the portrait falls back, the overlay
   copy comes forward (that last rule is in main.css) - so gating them apart
   left the mobile carousel fading its avatar on hover and doing nothing else.
   Pointer capability alone is not enough of a gate either: a desktop window
   resized to phone width still reports (hover: hover) and (pointer: fine).
   Below 768px the card is a scroll-snap carousel item and must not react to
   the pointer at all. */
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
    .hp-compare-grid .card:hover {
        transform: translateY(-4px);
    }
    .hp-compare-grid .card:hover .card-avatar {
        opacity: 0.15;
    }
}

/* Panel: the tinted rounded rectangle, inset from the card's top so the
   avatar has room to bleed above it. Holds the title + accent line + rows.
   The tint itself lives on ::before (z-index 1, behind the avatar) while
   the panel element stays z-index:auto so its title text — painted via
   .card-header-content below — can sit at z-index 3, in front of the
   avatar, without dragging the background in front of it too. */
.hp-compare-grid .card-panel {
    position: relative;
    margin-top: 76px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.hp-compare-grid .card-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hp-compare-grid .card-header {
    position: relative;
    z-index: 2; /* above ::before (1); the border-bottom accent line lives here */
    min-height: 216px; /* tall enough that the hover overlay (fixed-height copy
                          block + button + padding) never clips or shifts */
    padding: 1.25rem 1rem;
    border-bottom: none;
    background: none;
}
.hp-compare-grid .card-header-content {
    padding-bottom: 0;
    position: relative;
    z-index: 3; /* above .card-avatar (z-index 2) so the title reads over the portrait */
}
.hp-compare-grid .card-header-overlay {
    z-index: 4;
    border-radius: 14px 14px 0 0; /* match .card-panel's rounding so the hover blur doesn't show square corners */
    justify-content: center;
    padding: 1.5rem 1.25rem;
}
/* The description varies from 2 to 4 lines across cards. Pin it to a fixed
   box (tallest copy) with the text centred inside, so the copy block and the
   "Read More" button land at exactly the same spot on every card. */
.hp-compare-grid .card-header-overlay .overlay-description {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 6.5em;
    margin: 0;
    line-height: 1.5;
}
.hp-compare-grid .card-header-overlay .overlay-button {
    margin-top: 1.5rem;
    font-family: "Noto Sans", sans-serif;
}
/* Rows sit below the avatar's footprint, but still need to clear the
   panel's own ::before background layer (z-index 1). */
.hp-compare-grid .card-features {
    position: relative;
    z-index: 2;
}
.hp-compare-grid .card-header h3 {
    font-family: "Noto Sans", sans-serif;
    font-weight: 900;
    font-size: 1.75rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* Row labels/values, sized down to match the Figma reference proportions
   for a ~270px-wide card. */
.hp-compare-grid .card-features li {
    padding: 1rem 0.75rem;
    min-height: 74px;
    border-bottom-color: rgba(255, 255, 255, 0.12);
}
.hp-compare-grid .inline-legend {
    font-size: 0.75rem;
    letter-spacing: -0.02em;
    color: #838383;
}
.hp-compare-grid .card-features .value {
    font-size: 1.05rem;
    font-weight: 700;
}
.hp-compare-grid .card-features .value .sub {
    font-size: 0.75rem;
    font-weight: 400;
}

/* Per-skin accent: tinted panel gradient + glow behind the portrait's neck,
   the portrait's own PNG, and the accent line under the header. */
.hp-compare-grid .card-blue .card-panel::before {
    background:
        radial-gradient(60% 45% at 50% 0%, rgba(0, 95, 248, 0.5) 0%, rgba(0, 95, 248, 0) 100%),
        linear-gradient(180deg, #001f4e 0%, #060606 78%);
}
.hp-compare-grid .card-blue .card-avatar {
    background-image: url("../gfx/2026/avatar_whitelabel.png");
    background-size: auto 266px;
    background-position: center 29px;
}
.hp-compare-grid .card-blue .card-header {
    border-bottom: 3px solid #448cfe;
}

.hp-compare-grid .card-orange .card-panel::before {
    background:
        radial-gradient(60% 45% at 50% 0%, rgba(248, 132, 0, 0.5) 0%, rgba(248, 132, 0, 0) 100%),
        linear-gradient(180deg, #3e3200 0%, #060606 78%);
}
.hp-compare-grid .card-orange .card-avatar {
    background-image: url("../gfx/2026/avatar_platform.png");
    background-size: auto 248px;
    background-position: center 45px;
}
.hp-compare-grid .card-orange .card-header {
    border-bottom: 3px solid #fd9744;
}

.hp-compare-grid .card-red .card-panel::before {
    background:
        radial-gradient(60% 45% at 50% 0%, rgba(248, 0, 4, 0.5) 0%, rgba(248, 0, 4, 0) 100%),
        linear-gradient(180deg, #460500 0%, #060606 78%);
}
.hp-compare-grid .card-red .card-avatar {
    background-image: url("../gfx/2026/avatar_api.png");
    background-size: auto 274px;
    background-position: center 23px;
}
.hp-compare-grid .card-red .card-header {
    border-bottom: 3px solid #e14c3e;
}

.hp-compare-grid .card-purple .card-panel::before {
    background:
        radial-gradient(60% 45% at 50% 0%, rgba(132, 0, 248, 0.5) 0%, rgba(132, 0, 248, 0) 100%),
        linear-gradient(180deg, #2e005e 0%, #060606 78%);
}
.hp-compare-grid .card-purple .card-avatar {
    background-image: url("../gfx/2026/avatar_turnkey.png");
    background-size: auto 260px;
    background-position: center 35px;
}
.hp-compare-grid .card-purple .card-header {
    border-bottom: 3px solid #ae44fe;
}

/* ---------- Enroll CTA heading (live text instead of baked SVG) ---------- */
.hp-enroll-heading {
    font-size: clamp(2.4rem, 4.9vw, 4.375rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
}
.hp-enroll-heading .hp-enroll-accent {
    display: block;
    background-image: linear-gradient(99deg, #ff5500 1.5%, #ff4c00 62%, #ffbb00 114%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* ---------- Partners grid ---------- */
.hp-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 40px;
}
.hp-partners-grid .hp-partner-logo {
    flex: 0 1 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
}
.hp-partners-grid .hp-partner-logo img {
    max-width: 100%;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
    .hp-bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hp-wheel-diagram {
        aspect-ratio: auto;
        max-width: 440px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: start;
        row-gap: 28px;
        column-gap: 16px;
    }
    .hp-wheel-diagram::before {
        inset: -15% -20%;
    }
    .hp-wheel-ring {
        position: relative;
        inset: auto;
        order: 3;
        flex: 0 0 auto;
        width: 230px;
        height: auto;
        margin: 0 auto;
        aspect-ratio: 358.65 / 404.996;
    }
    .hp-wheel-copy {
        position: static;
        flex: 0 0 46%;
        text-align: center !important;
    }
    /* Figma mobile order: Casino + Sportsbook row, then the ring, then Poker */
    .hp-wheel-copy--casino {
        order: 1;
    }
    .hp-wheel-copy--sportsbook {
        order: 2;
    }
    .hp-wheel-copy--poker {
        order: 4;
        flex: 0 0 100%;
    }
    .hp-compare-grid {
        grid-template-columns: 1fr 1fr;
    }
    /* This section stacks .hp-section's own 100px top padding on top of its
       own (desktop-oriented) 100px padding, which reads fine at desktop
       widths but leaves a large dead gap before "Step Into WePlay Network"
       once .hp-section's padding shrinks at narrower widths below. */
    .default-margins.skins {
        padding-top: 50px;
    }
}

@media (max-width: 767px) {
    /* One section gap for the whole page (see --wp-section-space-mobile in
       main.css): each block below pads by the token so every join is 112px. */
    .hp-section {
        padding: var(--wp-section-space-mobile) 0;
    }
    /* These two own their spacing (see their base rules) - without restating
       it here, the .hp-section rule above would win on source order. */
    .hp-crosssell,
    .cards-index {
        padding: 0;
    }
    .home--layer-one .default-grid {
        padding-top: 120px;
        padding-bottom: var(--wp-section-space-mobile);
    }
    .home--layer-one .hp-hero-body {
        margin-top: 32px; /* tagline -> supporting copy */
    }
    .home--layer-one .main-buttons {
        margin-top: 8px; /* + Download Brochure's 40px margin = 48px */
    }
    .home--layer-three.default-margins-2 {
        padding-top: var(--wp-section-space-mobile);
    }
    .home--layer-three .enroll-wrap {
        margin-top: 0;
    }
    /* The enroll avatar sits flush on its section's bottom edge (no bottom
       padding by design), so Partners carries the whole 112px join itself. */
    .home--layer-five.default-margins {
        padding-top: calc(var(--wp-section-space-mobile) * 2);
        padding-bottom: var(--wp-section-space-mobile);
    }
    .hp-section-head {
        margin-bottom: 36px;
    }
    .hp-bento-grid {
        grid-template-columns: 1fr;
    }
    .hp-crosssell-head {
        margin-bottom: 40px;
    }
    .hp-crosssell-scene {
        border-radius: 24px;
        padding: var(--wp-section-space-mobile) 20px;
    }
    .hp-wheel-tagline {
        margin-bottom: 32px;
    }
    .hp-wheel-ring {
        width: 190px;
    }
    .default-margins.skins {
        padding-top: var(--wp-section-space-mobile);
        padding-bottom: var(--wp-section-space-mobile);
    }

    /* Compare grid becomes a swipeable, snap-to-center carousel: one card
       (plus slivers of its neighbours) per "page", dots + a link to the
       full /skins/ comparison page below. JS (skins/index.tpl) toggles
       .is-active on the centered .hp-compare-card-wrap / matching dot as
       the user scrolls. */
    .hp-compare-grid {
        display: flex;
        grid-template-columns: none;
        gap: 16px;
        max-width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        /* A flex-basis percentage resolves against the content box, but the
           padding resolves against the full width - so 80% cards inside 10%
           padding came out 30px left of centre. Sizing the card at 100% of
           the content box makes the two agree, and the padding alone sets how
           much of the neighbours peeks through. */
        scroll-padding-inline: 18%;
        padding: 0 18% 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .hp-compare-grid::-webkit-scrollbar {
        display: none;
    }
    .hp-compare-grid .hp-compare-card-wrap {
        flex: 0 0 100%;
        scroll-snap-align: center;
    }
    .hp-compare-grid .card {
        opacity: 0.4;
        filter: blur(3px);
        transition:
            opacity 0.3s ease,
            filter 0.3s ease;
    }
    .hp-compare-card-wrap.is-active .card {
        opacity: 1;
        filter: none;
    }
    .hp-compare-card-wrap.is-active .card-panel {
        outline: 2px solid transparent;
        outline-offset: 2px;
    }
    .hp-compare-card-wrap.is-active .card-blue .card-panel {
        outline-color: #448cfe;
    }
    .hp-compare-card-wrap.is-active .card-orange .card-panel {
        outline-color: #fd9744;
    }
    .hp-compare-card-wrap.is-active .card-red .card-panel {
        outline-color: #e14c3e;
    }
    .hp-compare-card-wrap.is-active .card-purple .card-panel {
        outline-color: #ae44fe;
    }

    .hp-compare-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 20px;
    }
    .hp-compare-dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.25);
        transition:
            background-color 0.25s ease,
            transform 0.25s ease;
    }
    .hp-compare-dot.is-active {
        background: #fff;
        transform: scale(1.3);
    }

    .hp-compare-cta {
        display: flex;
        justify-content: center;
        margin-top: 28px;
    }
}

/* ---------- /skins/ page: homepage compare cards + left row legend ---------- */
.skins-page .skins-compare {
    position: relative;
    margin-top: 48px;
}
.skins-page .skins-legend {
    display: none;
}
@media (min-width: 992px) {
    .skins-page .skins-compare {
        display: grid;
        grid-template-columns: 160px minmax(0, 1fr);
        gap: 20px;
    }
    /* Rows are absolutely placed by skins/items.tpl to track the card rows. */
    .skins-page .skins-legend {
        display: block;
        position: relative;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .skins-page .skins-legend li {
        position: absolute;
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        text-align: right;
        color: var(--color-text-muted);
        font-weight: 500;
        font-size: 0.9rem;
        line-height: 1.3;
    }
    .skins-page .hp-compare-grid {
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: minmax(0, 1fr);
        max-width: none;
    }
    /* The legend column names the rows, so the per-card labels go. */
    .skins-page .hp-compare-grid .inline-legend {
        display: none;
    }
}

/* ---------- /skins/ mobile: pick two skins, compare side by side ---------- */
.skins-duel {
    display: none;
}
@media (max-width: 767px) {
    /* First thing under the fixed nav, so it takes the same 120px top offset
       as every other page's hero - not the mid-page section rhythm. */
    .skins-page .default-margins.skins {
        padding-top: 120px;
    }
    .skins-page .skins-compare {
        display: none;
    }
    .skins-duel {
        display: block;
        margin-top: 32px;
    }
    .skins-duel-intro {
        font-family: "Noto Sans", sans-serif;
        font-size: 14px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.6);
        text-align: center;
        margin: 0 0 12px;
    }
    .skins-duel-pickers {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 10px;
    }
    .skins-duel-picker {
        margin: 0;
    }
    .skins-duel-picker select {
        appearance: none;
        -webkit-appearance: none;
        width: 100%;
        height: 48px;
        padding: 0 30px 0 14px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        background:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ff8900' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
                no-repeat right 12px center,
            #111;
        color: #fff;
        font-family: "Noto Sans", sans-serif;
        font-size: 15px;
        font-weight: 700;
        text-overflow: ellipsis;
        cursor: pointer;
    }
    .skins-duel-picker select:focus-visible {
        outline: 2px solid #ff8900;
        outline-offset: 2px;
    }
    .skins-duel-vs {
        font-family: "Noto Sans", sans-serif;
        font-size: 13px;
        font-weight: 800;
        color: rgba(255, 255, 255, 0.45);
    }

    .skins-duel-summary {
        margin: 18px 0 22px;
        text-align: center;
        font-family: "Noto Sans", sans-serif;
        font-size: 14px;
        font-weight: 700;
        color: #ff8900;
    }

    /* Two homepage cards side by side. .hp-compare-grid's mobile carousel
       rules (scroll-snap, blurred off-centre cards, fixed card height,
       active-only Read More) are switched off for this static pair. */
    .hp-compare-grid.skins-duel-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
        padding: 0;
        scroll-snap-type: none;
    }
    .skins-duel-grid .skins-duel-slot[hidden] {
        display: none;
    }
    .skins-duel-grid .hp-compare-card-wrap {
        height: 100%;
    }
    .cards-index .skins-duel-grid .card {
        height: 100%;
        opacity: 1;
        filter: none;
    }
    .skins-duel-grid .card-panel {
        outline: none !important;
    }
    .skins-duel-grid .card-header h3 {
        font-size: 18px;
    }
    .skins-duel-grid .card-features li {
        padding: 0.75rem 0.4rem;
        min-height: 64px;
    }
    .skins-duel-grid .card-features .value {
        font-size: 0.95rem;
        transition: opacity 0.25s ease;
    }
    /* Rows where the pair match fade back, so the differences carry the eye. */
    .skins-duel-grid .card-features li.is-same .value {
        opacity: 0.55; /* still >= 4.5:1 on the darkest panel tint */
    }
    .home--layer-two .skins-duel-grid .mobile-overlay-button {
        display: block;
    }
    .skins-duel-grid .mobile-overlay-button .overlay-button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .skins-duel-grid .card-features .value {
        transition: none;
    }
}
