.front-page {
    position: relative;
    margin: 0;
    color: #edf6ff;
}

.front-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(168, 85, 247, 0.14), transparent 26%),
        radial-gradient(circle at bottom center, rgba(74, 222, 128, 0.08), transparent 26%),
        linear-gradient(180deg, #02040b 0%, #050b17 38%, #030612 100%);
}

.front-page::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.17;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 4px);
    background-size: 100% 4px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent 100%);
}

.front-skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 50;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    background: #22d3ee;
    color: #04111d;
    text-decoration: none;
    font-weight: 700;
}

.front-skip-link:focus {
    top: 1rem;
}

.front-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(8, 17, 35, 0.9) 55%, rgba(30, 12, 49, 0.86));
    border-bottom: 1px solid rgba(34, 211, 238, 0.26);
    box-shadow:
        0 16px 30px rgba(1, 4, 10, 0.38),
        inset 0 -1px 0 rgba(192, 132, 252, 0.16);
}

.front-header__inner,
.front-hero__grid,
.front-section,
.front-footer__inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.front-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.front-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.front-brand__logo {
    width: clamp(11rem, 18vw, 15rem);
    height: auto;
    filter:
        drop-shadow(0 0 16px rgba(34, 211, 238, 0.2))
        drop-shadow(0 8px 18px rgba(2, 6, 23, 0.34));
}

.front-brand__wordmark {
    color: #9be7ff;
    font-size: 1rem;
}

.front-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.35rem;
}

.front-nav a,
.front-header__link,
.front-footer__links a,
.front-link-cloud a,
.front-inline-link {
    color: #c7d8ea;
    text-decoration: none;
    transition:
        color 0.18s ease,
        text-shadow 0.18s ease,
        transform 0.18s ease;
}

.front-nav a:hover,
.front-nav a:focus-visible,
.front-header__link:hover,
.front-header__link:focus-visible,
.front-footer__links a:hover,
.front-footer__links a:focus-visible,
.front-link-cloud a:hover,
.front-link-cloud a:focus-visible,
.front-inline-link:hover,
.front-inline-link:focus-visible {
    color: #f8fcff;
    text-shadow: 0 0 16px rgba(34, 211, 238, 0.28);
}

.front-header__actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.front-header__link {
    font-size: 0.96rem;
}

.front-header__cta,
.front-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    padding: 0.95rem 1.3rem;
    border: 1px solid rgba(34, 211, 238, 0.38);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 1.2rem 0.65rem 1.2rem 0.65rem;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease;
}

.front-header__cta,
.front-button--primary {
    background:
        linear-gradient(180deg, rgba(34, 211, 238, 0.24), rgba(5, 83, 116, 0.68));
    color: #effcff;
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.16),
        0 0 22px rgba(34, 211, 238, 0.16);
}

.front-button--secondary,
.front-button--ghost {
    color: #d9f5ff;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(4, 8, 18, 0.88));
}

.front-button--secondary {
    border-color: rgba(192, 132, 252, 0.34);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.1);
}

.front-button--ghost {
    border-color: rgba(148, 163, 184, 0.24);
}

.front-header__cta:hover,
.front-header__cta:focus-visible,
.front-button:hover,
.front-button:focus-visible {
    transform: translateY(-2px);
    color: #ffffff;
    outline: none;
}

.front-header__cta:hover,
.front-header__cta:focus-visible,
.front-button--primary:hover,
.front-button--primary:focus-visible {
    border-color: rgba(103, 232, 249, 0.72);
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.22),
        0 0 28px rgba(34, 211, 238, 0.24);
}

.front-button--secondary:hover,
.front-button--secondary:focus-visible {
    border-color: rgba(216, 180, 254, 0.54);
    box-shadow: 0 0 26px rgba(192, 132, 252, 0.2);
}

.front-button--ghost:hover,
.front-button--ghost:focus-visible {
    border-color: rgba(34, 211, 238, 0.38);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}

.front-main {
    padding-bottom: 4.5rem;
}

.front-hero {
    position: relative;
    padding: 2.2rem 0 0;
}

.front-hero__backdrop {
    position: absolute;
    inset: 0 0 auto;
    height: 34rem;
    opacity: 0.18;
    background-size: cover;
    background-position: center;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 100%);
    pointer-events: none;
}

.front-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 1.6rem;
    align-items: stretch;
}

.front-hero__copy,
.front-panel,
.front-game-card,
.front-copy-panel,
.front-seo-copy,
.front-step {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(6, 15, 28, 0.9), rgba(4, 8, 18, 0.92));
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 1.85rem 0.9rem 1.85rem 0.9rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 20px 36px rgba(1, 4, 10, 0.34);
}

.front-hero__copy,
.front-panel,
.front-copy-panel,
.front-seo-copy {
    padding: clamp(1.5rem, 2.4vw, 2.6rem);
}

.front-panel::before,
.front-game-card::before,
.front-step::before,
.front-hero__copy::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.18), transparent 26%, transparent 72%, rgba(168, 85, 247, 0.16) 100%);
    opacity: 0.54;
}

.front-kicker {
    margin: 0 0 0.8rem;
    color: #72e8ff;
    font-size: 0.74rem;
    letter-spacing: 0.24em;
}

.front-hero__title {
    margin: 0;
    max-width: 11ch;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 0.94;
    color: #ffffff;
    text-shadow:
        0 0 18px rgba(34, 211, 238, 0.16),
        0 0 38px rgba(168, 85, 247, 0.12);
}

.front-hero__tagline {
    margin: 1rem 0 0;
    color: #d7f6ff;
    font-size: clamp(1.15rem, 2vw, 1.6rem);
}

.front-hero__intro,
.front-hero__support,
.front-panel__copy,
.front-section__lede,
.front-step__text,
.front-game-card__summary,
.front-copy-panel p,
.front-seo-copy p,
.front-signal-card__copy {
    margin: 0;
    color: #c1cfde;
    line-height: 1.7;
    font-size: 1rem;
}

.front-hero__intro {
    margin-top: 1.2rem;
    max-width: 64ch;
    font-size: 1.08rem;
}

.front-hero__support {
    margin-top: 1rem;
    max-width: 60ch;
    color: #9bb5c9;
}

.front-hero__actions,
.front-game-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.front-hero__actions {
    margin-top: 1.6rem;
}

.front-panel__kicker,
.front-game-card__eyebrow {
    position: relative;
    margin: 0 0 0.9rem;
    color: #8ef0d3;
    font-size: 0.74rem;
    letter-spacing: 0.2em;
}

.front-panel__title,
.front-section__title,
.front-game-card__title {
    position: relative;
    margin: 0;
    color: #f8fcff;
    letter-spacing: 0.1em;
}

.front-panel__title {
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    line-height: 1.25;
}

.front-panel__copy {
    position: relative;
    margin-top: 1rem;
}

.front-signal-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
    margin-top: 1.35rem;
}

.front-signal-card {
    padding: 1rem;
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 1.2rem 0.65rem 1.2rem 0.65rem;
    background:
        linear-gradient(180deg, rgba(8, 17, 35, 0.92), rgba(2, 6, 23, 0.9));
}

.front-signal-card__label {
    margin: 0;
    color: #72e8ff;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
}

.front-signal-card__value {
    margin: 0.65rem 0 0.5rem;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 700;
}

.front-signal-card__copy {
    font-size: 0.92rem;
}

.front-section {
    margin-top: 2rem;
}

.front-section__heading {
    max-width: 62rem;
    margin-bottom: 1.15rem;
}

.front-section__title {
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.25;
}

.front-section__lede {
    margin-top: 0.9rem;
    max-width: 68ch;
}

.front-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.front-step {
    padding: 1.2rem;
}

.front-step__number {
    position: relative;
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.95rem;
    border-radius: 999px;
    color: #04111d;
    background: linear-gradient(180deg, #86f4ff, #22d3ee);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.22);
}

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

.front-game-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.2rem;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.front-game-card:hover,
.front-game-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(103, 232, 249, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 24px 40px rgba(1, 4, 10, 0.4),
        0 0 28px rgba(34, 211, 238, 0.12);
}

.front-game-card__media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 9rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 1.15rem 0.65rem 1.15rem 0.65rem;
    background:
        linear-gradient(180deg, rgba(10, 20, 38, 0.94), rgba(4, 8, 18, 0.9));
    border: 1px solid rgba(34, 211, 238, 0.12);
}

.front-game-card__logo {
    max-width: 100%;
    max-height: 4.9rem;
    width: auto;
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 0 18px rgba(34, 211, 238, 0.16))
        drop-shadow(0 12px 20px rgba(2, 6, 23, 0.34));
}

.front-game-card__logo-fallback {
    color: #d8f7ff;
    font-size: 1rem;
    text-align: center;
}

.front-game-card__body {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.85rem;
}

.front-game-card__title {
    font-size: 1rem;
    line-height: 1.3;
}

.front-game-card__summary {
    font-size: 0.96rem;
}

.front-game-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.front-game-card__tags li {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(8, 15, 29, 0.9);
    color: #a9bdd0;
    font-size: 0.8rem;
}

.front-game-card__actions {
    position: relative;
    margin-top: 1.2rem;
}

.front-section--split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.front-copy-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.front-inline-link {
    margin-top: auto;
    color: #8de9ff;
}

.front-seo-copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.front-link-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 0.2rem;
}

.front-link-cloud a {
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    background: rgba(4, 11, 22, 0.84);
}

.front-footer {
    padding: 0 0 2.5rem;
}

.front-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem 1.2rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(103, 232, 249, 0.14);
    border-radius: 1.55rem 0.8rem 1.55rem 0.8rem;
    background:
        linear-gradient(180deg, rgba(6, 15, 28, 0.88), rgba(4, 8, 18, 0.92));
}

.front-footer__brand,
.front-footer__tagline {
    margin: 0;
}

.front-footer__brand {
    color: #9be7ff;
    font-size: 0.86rem;
}

.front-footer__tagline {
    color: #c1cfde;
}

.front-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
}

#featured-games,
#how-it-works,
#high-score-club {
    scroll-margin-top: 6rem;
}

@media (max-width: 1100px) {
    .front-hero__grid,
    .front-section--split,
    .front-game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .front-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .front-header__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .front-nav,
    .front-header__actions {
        justify-content: center;
    }

    .front-hero__grid,
    .front-section--split,
    .front-game-grid,
    .front-steps,
    .front-signal-grid {
        grid-template-columns: 1fr;
    }

    .front-hero {
        padding-top: 1.2rem;
    }

    .front-hero__title {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .front-header__inner,
    .front-hero__grid,
    .front-section,
    .front-footer__inner {
        width: min(100% - 1rem, 1180px);
    }

    .front-header__cta,
    .front-button {
        width: 100%;
    }

    .front-hero__actions,
    .front-game-card__actions {
        flex-direction: column;
    }

    .front-footer__inner {
        justify-content: flex-start;
    }
}
