/*-----------------------------------*
  #HOME PAGE - HERO SECTION
*-----------------------------------*/

.home-body {
    padding-top: 0;
    scroll-padding-top: 88px;
}

.home-body section {
    scroll-margin-top: 88px;
}

.home-body .hero {
    min-height: 100dvh;
    padding-top: calc(80px + var(--space-lg));
}

.home-body .footer {
    scroll-margin-top: 88px;
}

#game-preview,
#how-it-works {
    scroll-margin-top: 88px;
}

/*-----------------------------------*
  #HERO - OPTION A (refined)
  Glow orbs + diagonal panel + stat pills
*-----------------------------------*/

.hero {
    position: relative;
    /* min-height stops it collapsing on short viewports */
    min-height: 560px;
    padding: var(--space-xxl) 0;
    background: #080a12;
    overflow: hidden;
}

.hero,
.cards-section,
.game-section,
.how-section {
    display: flex;
    align-items: center;
}

.hero > .container,
.cards-section > .container,
.game-section > .container,
.how-section > .container {
    width: 100%;
}

.cards-section,
.game-section,
.how-section {
    background: #080a12;
}

/*
  ::before - blue glow orb top-right
             + purple orb bottom-left via box-shadow
  ::after  - diagonal panel right side
*/

.hero::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(79, 124, 255, 0.22) 0%,
        rgba(79, 124, 255, 0.06) 45%,
        transparent 70%
    );
    top: -260px;
    right: 80px;
    pointer-events: none;
    z-index: 1;
    box-shadow: -580px 600px 160px 60px rgba(100, 40, 255, 0.07);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(79, 124, 255, 0.16) 0%,
        rgba(35, 65, 200, 0.28) 100%
    );
    clip-path: polygon(58% 0%, 100% 0%, 100% 100%, 44% 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-inner::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(79, 124, 255, 0.14) 0%,
        transparent 70%
    );
    /* sits behind the image, centred on the diagonal */
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

/*-----------------------------------*
  #HERO INNER LAYOUT
*-----------------------------------*/

.hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
    position: relative;
    z-index: 2;
    width: 100%;
    /* needed so ::before on this element positions correctly */
    isolation: isolate;
}

/*-----------------------------------*
  #HERO TEXT
*-----------------------------------*/

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-body-md);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: var(--space-md);

    opacity: 0;
    animation: slideInUp var(--motion-lg) var(--ease-smooth) forwards var(--delay-1);
}

/* Left accent line on the eyebrow */
.hero-subtitle::before {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.12;
    opacity: 0;
}

.hero-content h1:nth-child(2) {
    animation: slideInUp var(--motion-lg) var(--ease-smooth) forwards var(--delay-2);
}

.hero-content h1:nth-child(3) {
    animation: slideInUp var(--motion-lg) var(--ease-smooth) forwards var(--delay-3);
}

.hero-content p {
    margin-top: var(--space-lg);
    max-width: 460px;
    line-height: 1.75;
    /* slightly more muted than before - better contrast hierarchy */
    color: rgba(255, 255, 255, 0.58);
    opacity: 0;
    animation: slideInUp var(--motion-lg) var(--ease-smooth) forwards var(--delay-4);
}

/*-----------------------------------*
  #HERO BUTTONS
*-----------------------------------*/

.hero-buttons {
    margin-top: var(--space-xl);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    opacity: 0;
    animation: slideInUp var(--motion-lg) var(--ease-smooth) forwards var(--delay-5);
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--fs-body-md);
    font-weight: var(--fw-bold);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition:
        transform var(--motion-sm) var(--ease-standard),
        box-shadow var(--motion-sm) var(--ease-standard),
        background var(--motion-sm) var(--ease-standard),
        filter var(--motion-sm) var(--ease-standard);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-dark);
    border: 2px solid transparent;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(79, 124, 255, 0.08);
    border-color: var(--primary-dark);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(-1px);
    box-shadow: none;
}

/*-----------------------------------*
  #HERO IMAGE
*-----------------------------------*/

.hero-graphics {
    flex: 1;
    max-width: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-image {
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;

    opacity: 0;
    transform: translateX(40px);
    animation: heroImageIn var(--motion-lg) var(--ease-smooth) forwards var(--delay-3);
    transition: transform var(--motion-md) var(--ease-smooth);

    /* depth shadow + blue edge glow to blend with the panel */
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.65))
            drop-shadow(0 0 80px rgba(79, 124, 255, 0.18));
}

@keyframes heroImageIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image img:hover {
    transform: translateY(-8px);
}

/*-----------------------------------*
  #HERO STAT PILLS
*-----------------------------------*/

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    width: fit-content;
    max-width: 100%;
    margin-top: var(--space-xl);
    /* visually separate from buttons with a hairline above */
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    opacity: 0;
    animation: slideInUp var(--motion-lg) var(--ease-smooth) forwards var(--delay-5);
    animation-delay: calc(var(--delay-5) + 80ms);
}

.hero-stats:empty {
    display: none;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-md);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    min-width: 0;
    transition:
        border-color var(--motion-sm) var(--ease-smooth),
        background var(--motion-sm) var(--ease-smooth),
        transform var(--motion-sm) var(--ease-smooth);
}

.hero-stat:hover {
    background: rgba(79, 124, 255, 0.10);
    border-color: rgba(79, 124, 255, 0.30);
    transform: translateY(-2px);
}

.hero-stat-value {
    font-size: var(--fs-display-md);
    font-weight: var(--fw-bold);
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-stat-label {
    font-size: 10px;
    font-weight: var(--fw-semibold);
    color: rgba(255, 255, 255, 0.42);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 3px;
    white-space: nowrap;
}

/*-----------------------------------*
  #USER CARDS SECTION
*-----------------------------------*/

.cards-section {
    padding: var(--space-xl) 0;
}

.cards-section h2 {
    opacity: 0;
    transform: translateY(20px);
}

.cards-grid {
    display: grid;
    grid-template-columns: 55% 1px 45%;
    grid-template-rows: 1fr 1fr;
    margin-top: var(--space-xl);
    min-height: 220px;

    background: var(--carbon-mid);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-soft);
    overflow: visible;

    opacity: 0;
    transform: translateY(20px);
}

/* Thin vertical divider */
.cards-grid::before {
    content: "";
    grid-column: 2;
    grid-row: 1 / -1;
    background: rgba(255, 255, 255, 0.06);
    align-self: stretch;
}

/*-----------------------------------*
  HERO CARD  (first .user-card)
*-----------------------------------*/

.user-card:first-child {
    grid-column: 1;
    grid-row: 1 / -1;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);

    text-align: left;
    padding: var(--space-xl);
    min-width: 0;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;

    transition: background var(--motion-md) var(--ease-smooth);
}

.user-card:first-child:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.02);
    border-color: transparent;
    box-shadow: none;
}

/* Avatar + name + badge - all in one flex row */
.user-card:first-child .user-hero-top {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Hero avatar */
.user-card:first-child img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    margin: 0;              
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
    transition:
        border-color var(--motion-sm) var(--ease-smooth),
        box-shadow var(--motion-sm) var(--ease-smooth),
        transform var(--motion-sm) var(--ease-smooth);
}

.user-card:first-child:hover img {
    border-color: var(--primary);
    box-shadow: 0 0 14px rgba(79, 124, 255, 0.40);
    transform: scale(1.05);
}

.user-card:first-child h3 {
    font-size: var(--fs-display-md);
    margin-bottom: 0;
    line-height: 1.2;
}

.user-card:first-child > p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.6;
    margin-bottom: 0;
}

/* "Top Pick" badge after h3 */
.user-card:first-child h3::after {
    content: "Top Pick";
    display: inline-block;
    margin-left: 8px;
    font-size: 10px;
    font-weight: var(--fw-semibold);
    color: var(--primary);
    background: rgba(79, 124, 255, 0.12);
    border: 1px solid rgba(79, 124, 255, 0.25);
    border-radius: var(--radius-sm);
    padding: 2px 7px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
    line-height: 1.6;
}

/* "No items available" empty state */
.user-card p:empty,
.user-card p:blank {
    display: none;
}

.no-items-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.28);
    font-style: italic;
    letter-spacing: 0.3px;
}

/*-----------------------------------*
  #LOADING CIRCLE FOR FEATURED PEOPLE
*-----------------------------------*/

.user-card-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 139px;
}

.card-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid rgba(79, 124, 255, 0.2);
    border-top-color: var(--primary);
    background: transparent;
    animation: cardSpin 0.8s linear infinite;
}

@keyframes cardSpin {
    to { transform: rotate(360deg); }
}

/*-----------------------------------*
  COMPACT CARDS  (2nd and 3rd .user-card)
*-----------------------------------*/

.user-card:not(:first-child) {
    grid-column: 3;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-sm);

    text-align: left;
    padding: var(--space-md) var(--space-lg);
    min-width: 0;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;

    transition: background var(--motion-md) var(--ease-smooth);
}

.user-card:not(:first-child):hover {
    transform: none;
    background: rgba(255, 255, 255, 0.02);
    border-color: transparent;
    box-shadow: none;
}

/* Divider between compact cards */
.user-card:nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Compact avatar */
.user-card:not(:first-child) img {
    width: 32px;
    height: 32px;
    margin: 0;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
    transition:
        border-color var(--motion-sm) var(--ease-smooth),
        box-shadow var(--motion-sm) var(--ease-smooth);
}

.user-card:not(:first-child):hover img {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(79, 124, 255, 0.35);
}

/* Name row: avatar + h3 side by side */
.user-card:not(:first-child) h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-body-md);
    font-weight: var(--fw-semibold);
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card:not(:first-child) > p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*-----------------------------------*
  #DONATE BUTTONS  (scrollable strip)
*-----------------------------------*/

.donate-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    /* thin visible scrollbar - Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.06);
    /* Extra room keeps hover lift, focus rings, and edge shadows from being clipped. */
    padding: 8px 12px 18px;
    margin-inline: -12px;
    min-width: 0;
}

/* Webkit (Chrome, Safari, Edge) scrollbar */
.donate-buttons::-webkit-scrollbar {
    height: 4px;
}

.donate-buttons::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}

.donate-buttons::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.donate-buttons::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Collapse gracefully when JS hasn't populated buttons yet */
.donate-buttons:empty {
    display: none;
}

.donate-buttons button {
    flex-shrink: 0;
    background: var(--primary);
    color: var(--text-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--fs-body-md);
    font-weight: var(--fw-bold);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    z-index: 1;

    transition:
        transform var(--motion-sm) var(--ease-standard),
        background var(--motion-sm) var(--ease-standard),
        box-shadow var(--motion-sm) var(--ease-standard),
        filter var(--motion-sm) var(--ease-standard);
}

/* Compact cards get slightly smaller buttons */
.user-card:not(:first-child) .donate-buttons button {
    font-size: 12px;
    padding: 3px var(--space-sm);
}

.donate-buttons button:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
    z-index: 2;
}

.donate-buttons button:active {
    transform: translateY(-1px) scale(0.97);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

.donate-buttons button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/*-----------------------------------*
  SPOTLIGHT RESPONSIVE
*-----------------------------------*/

/* Tablet: columns hold their proportions, just reduce min-height */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: 55% 1px 45%;
        min-height: 200px;
    }
}

/* Phablet: flip to vertical - hero on top, compact pair side-by-side below */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        min-height: unset;
    }

    /* Hide the vertical divider column */
    .cards-grid::before {
        display: none;
    }

    /* Hero spans full width */
    .user-card:first-child {
        grid-column: 1 / -1;
        grid-row: 1;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding-bottom: var(--space-lg);
    }

    /* Compact cards sit side by side in row 2 */
    .user-card:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }

    .user-card:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        border-top: none;
    }
}

/* Mobile: everything stacks vertically */
@media (max-width: 540px) {
    .cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .user-card:first-child {
        grid-column: 1;
    }

    .user-card:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .user-card:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .user-card:first-child img {
        width: 50px;
        height: 50px;
    }
}

/*-----------------------------------*
  #HOW IT WORKS SECTION
*-----------------------------------*/

.how-section {
    padding: var(--space-xxl) 0;
}

.how-section h2 {
    text-align: center;
    margin-bottom: var(--space-xxl);
    opacity: 0;
    transform: translateY(20px);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    opacity: 0;
    transform: translateY(20px);
    position: relative;
}

.how-card {

    background: var(--carbon-mid);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-md);
    text-align: left;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: default;
    position: relative;

    display: flex;
    flex-direction: column;

    transition:
        transform var(--motion-md) var(--ease-smooth),
        box-shadow var(--motion-md) var(--ease-smooth),
        border-color var(--motion-md) var(--ease-smooth),
        background var(--motion-md) var(--ease-smooth);
}

.how-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(79, 124, 255, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* Step number chip - top-right corner of card */
.how-card::before {
    content: attr(data-step);
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(79, 124, 255, 0.14);
    border: 1px solid rgba(79, 124, 255, 0.28);
    color: var(--primary);
    font-size: 11px;
    font-weight: var(--fw-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ICON CIRCLE */
.how-icon {
    width: 80px;
    height: 80px;
    margin: 0 0 var(--space-md) 0;  /* left-aligned, no auto */
    border-radius: 50%;
    background: rgba(79, 124, 255, 0.10);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;

    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.05);

    transition:
        transform var(--motion-sm) var(--ease-smooth),
        border-color var(--motion-sm) var(--ease-smooth),
        box-shadow var(--motion-sm) var(--ease-smooth),
        background var(--motion-sm) var(--ease-smooth);
}

.how-card:hover .how-icon {
    transform: scale(1.06);
    border-color: var(--primary);
    background: rgba(79, 124, 255, 0.16);
    box-shadow: 0 0 16px rgba(79, 124, 255, 0.35);
}

/* Cover images */
.how-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

/* Contained icons */
.how-icon img.icon-contain,
.how-icon img#how-verify {
    width: 62%;
    height: 62%;
    object-fit: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.how-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 15px;
    font-weight: var(--fw-bold);
    line-height: 1.3;
    /* Strip the number prefix visually - step chip handles it */
}

.how-card p {
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    font-size: 13px;
    /* Push to fill remaining card height so cards align at bottom too */
    flex: 1;
}

/*-----------------------------------*
  #RESPONSIVE - TABLET 1200px
*-----------------------------------*/

@media (max-width: 1200px) {
    .how-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Connector line doesn't make sense on 2-col - hide it */
    .how-grid::before {
        display: none;
    }
}

/*-----------------------------------*
  #RESPONSIVE - TABLET 1024px
*-----------------------------------*/

@media (max-width: 1024px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Hide the decorative halo behind the image on tablet */
    .hero-inner::before {
        display: none;
    }

    /* Centre the subtitle line + eyebrow bar */
    .hero-subtitle {
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
        max-width: 540px;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
    }

    .hero-stats {
        justify-content: center;
        gap: var(--space-sm);
        margin-left: auto;
        margin-right: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    /* Keep the diagonal centered once the hero content stacks. */
    .hero::after {
        clip-path: polygon(56% 0%, 100% 0%, 100% 100%, 44% 100%);
        opacity: 0.6;
    }

    .hero-graphics {
        max-width: 420px;
        width: 100%;
    }

}

/*-----------------------------------*
  #RESPONSIVE - MOBILE 768px
*-----------------------------------*/

@media (max-width: 768px) {
    .home-body .hero {
        min-height: auto;
        padding-top: calc(72px + var(--space-md));
    }

    .hero {
        min-height: auto;
        padding: var(--space-xl) 0 0;
    }

    .hero-inner {
        gap: var(--space-lg);
    }

    .hero-content h1 {
        font-size: clamp(26px, 6vw, 36px);
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero::after {
        display: none;
    }

    /* Shrink orb so it doesn't dominate small screens */
    .hero::before {
        width: 400px;
        height: 400px;
        top: -160px;
        right: -60px;
        box-shadow: none;
    }

    .hero-stats {
        justify-content: center;
        gap: var(--space-sm);
    }

    .hero-stat {
        padding: 8px 22px;
    }

    .hero-stat-value {
        font-size: 15px;
    }

    .hero-graphics {
        max-width: 340px;
        width: 100%;
        aspect-ratio: 1 / 1.04;
        isolation: isolate;
        margin-inline: auto;
        overflow: hidden;
        border-radius: 32px;
    }

    .hero-graphics::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background:
            radial-gradient(circle at 52% 34%, rgba(79, 124, 255, 0.24), transparent 58%),
            linear-gradient(155deg, transparent 0 22%, rgba(79, 124, 255, 0.12) 22% 58%, rgba(25, 47, 136, 0.26) 58% 100%);
        clip-path: polygon(0 28%, 100% 8%, 100% 100%, 0 100%);
        filter: blur(0.2px);
        opacity: 0.92;
        z-index: 0;
    }

    .hero-image {
        height: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .hero-image img {
        width: 92%;
        height: 96%;
        object-fit: contain;
        object-position: center bottom;
    }

    .cards-section {
        padding: var(--space-md) 0 var(--space-xl);
    }

    .how-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/*-----------------------------------*
  #RESPONSIVE - SMALL MOBILE 576px
*-----------------------------------*/

@media (max-width: 576px) {
    .hero {
        padding: var(--space-lg) 0 0;
    }

    .hero-inner {
        gap: var(--space-md);
    }

    .hero-content h1 {
        font-size: clamp(22px, 7vw, 30px);
        letter-spacing: 0.5px;
    }

    .hero-buttons {
        gap: var(--space-sm);
    }

    .btn-primary,
    .btn-secondary {
        padding: var(--space-xs) var(--space-md);
        font-size: 14px;
    }

    .hero-graphics {
        max-width: min(78vw, 280px);
    }

    .how-section {
        padding: var(--space-xl) 0;
    }

}

/*-----------------------------------*
  #RESPONSIVE - EXTRA SMALL 375px
*-----------------------------------*/

@media (max-width: 375px) {
    .hero {
        padding: var(--space-md) 0 0;
    }

    .hero-inner {
        gap: var(--space-sm);
    }

    .hero-content h1 {
        font-size: 22px;
        letter-spacing: 0.5px;
    }

    .hero-content p {
        font-size: var(--fs-body-md);
        max-width: 95%;
    }

    .hero-buttons {
        gap: var(--space-xs);
    }

    .btn-primary,
    .btn-secondary {
        padding: var(--space-xs) var(--space-sm);
        font-size: 13px;
    }

    .hero-graphics {
        max-width: min(76vw, 230px);
    }

    .hero-graphics::before {
        border-radius: 26px;
        clip-path: polygon(0 24%, 100% 10%, 100% 100%, 0 100%);
    }

    /* DONATE BUTTONS */
    .donate-buttons button {
        padding: var(--space-xs) var(--space-sm);
        font-size: 13px;
    }

    /* HOW IT WORKS */
    .how-section {
        padding: var(--space-lg) 0;
    }

    .how-section h2 {
        margin-bottom: var(--space-xl);
        font-size: 22px;
    }

    .how-grid {
        gap: var(--space-md);
    }

    .how-card {
        padding: var(--space-lg);
    }

    .how-icon {
        width: 70px;
        height: 70px;
    }

    .how-card h3 {
        font-size: 16px;
    }

    .how-card p {
        font-size: var(--fs-body-md);
    }
}

/*-----------------------------------*
  #OVERFLOW GUARD
*-----------------------------------*/

.hero,
.game-section,
.cards-section,
.how-section {
    overflow-x: hidden;
}
