.games-hero {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: grid;
    place-items: center;
    padding: 70px 0 76px;
    color: #f8fafc;
    text-align: center;
    background: radial-gradient(ellipse at 50% 110%, #254a73 0%, #152b49 42%, #101a2d 100%);
}

.games-hero__inner {
    position: relative;
    z-index: 1;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.games-eyebrow,
.section-kicker {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.games-eyebrow {
    color: #8ee7d2;
}

.games-eyebrow span {
    margin-right: 6px;
    color: #f8d46b;
}

.games-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.2rem, 6vw, 4rem);
    letter-spacing: -0.04em;
}

.games-hero__lead {
    margin: 16px 0 24px;
    color: #d3e1f1;
    line-height: 1.9;
}

.games-hero__button {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    background: rgb(255 255 255 / 10%);
    transition: background-color 0.2s, transform 0.2s;
}

.games-hero__button:hover {
    color: #fff;
    background: rgb(255 255 255 / 18%);
    transform: translateY(-2px);
}

.games-hero__glow {
    position: absolute;
    width: 240px;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.3;
}

.games-hero__glow--one {
    top: -145px;
    left: 8%;
    background: #5ce1cb;
}

.games-hero__glow--two {
    right: 4%;
    bottom: -190px;
    background: #9576ef;
}

.games-orbit {
    position: absolute;
    top: 50%;
    left: max(calc((100vw - 1160px) / 2), 5%);
    width: 78px;
    height: 78px;
    transform: translateY(-50%);
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 50%;
}

.orbit-ring {
    position: absolute;
    inset: 14px;
    border: 1px dashed rgb(255 255 255 / 28%);
    border-radius: 50%;
}

.orbit-dot {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
}

.orbit-dot--large {
    inset: 27px;
    background: #61e7d1;
    box-shadow: 0 0 22px rgb(97 231 209 / 70%);
}

.orbit-dot--small {
    top: 6px;
    right: 5px;
    width: 9px;
    height: 9px;
    background: #ffd365;
}

.section-space {
    padding: 62px 0 76px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.section-kicker {
    margin-bottom: 4px;
    color: #64748b;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-heading > p {
    margin: 0 0 4px;
    color: #64748b;
}

.game-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.game-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 35px rgb(15 23 42 / 8%);
}

.game-card-grid > .game-card:first-child {
    grid-column: 1 / -1;
}

.game-card--mini {
    grid-template-columns: 1fr;
}

.game-card--math-feature {
    grid-column: 1 / -1;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
}

.game-card--math-feature .mini-card-art { min-height: 100%; }

.game-card--mini .game-card__body {
    align-self: stretch;
    padding: 24px;
}

.game-card--mini .game-card__body h3 {
    font-size: 1.5rem;
}

.mini-card-art {
    position: relative;
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
    color: #fff;
    font-size: 2.3rem;
    font-weight: 900;
}

.mini-card-art::before,
.mini-card-art::after {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 50%;
    content: "";
}

.mini-card-art::before { transform: translate(-45px, 38px); }
.mini-card-art::after { transform: translate(45px, -38px); }
.mini-card-art > * { position: relative; z-index: 1; }
.mini-card-art i,
.mini-card-art b,
.mini-card-art em { font-style: normal; }
.mini-card-art--dungeon { background: radial-gradient(circle, #5c559b, #26224b 75%); }
.mini-card-art--dungeon span:nth-child(2) { color: #ffc66d; }
.mini-card-art--dungeon span:nth-child(3) { color: #85e5d8; }
.mini-card-art--dungeon i { color: #ff8490; }
.mini-card-art--coop { background: radial-gradient(circle, #428d79, #173c3c 78%); }
.mini-card-art--coop span { color: #ffe184; }
.mini-card-art--coop i { color: #b4f18c; }
.mini-card-art--coop b { color: #fff; }
.mini-card-art--festival { background: radial-gradient(circle, #b55e6b, #512c56 78%); }
.mini-card-art--festival span { color: #ffe391; }
.mini-card-art--festival i { color: #ffc0d2; }
.mini-card-art--festival b { color: #a9f0dc; }
.mini-card-art--festival em { color: #fff; }
.mini-card-art--sort { background: radial-gradient(circle, #bc8b48, #4a382f 78%); }
.mini-card-art--sort span { color: #98f0d4; }
.mini-card-art--sort i { color: #ffb4aa; }
.mini-card-art--sort b { color: #f8e48d; }
.mini-card-art--sort em { color: #fff; }

.game-card__art {
    position: relative;
    display: grid;
    min-height: 320px;
    overflow: hidden;
    place-items: center;
    background: radial-gradient(circle at 48% 48%, #203958 0%, #14243b 58%, #0c1727 100%);
}

.game-art__grid {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: linear-gradient(rgb(190 225 255 / 30%) 1px, transparent 1px), linear-gradient(90deg, rgb(190 225 255 / 30%) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
}

.game-art__player,
.game-art__enemy,
.game-art__orb {
    position: absolute;
    display: block;
    border-radius: 50%;
}

.game-art__player {
    z-index: 2;
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    background: #6de6d2;
    box-shadow: 0 0 0 10px rgb(109 230 210 / 15%), 0 0 34px rgb(109 230 210 / 70%);
}

.game-art__player span {
    width: 20px;
    height: 20px;
    border: 4px solid #124b54;
    border-radius: 50%;
    background: #d8fff7;
}

.game-art__enemy {
    width: 31px;
    height: 31px;
    background: #fc786d;
    box-shadow: 0 0 18px rgb(252 120 109 / 55%);
}

.game-art__enemy--one { top: 22%; left: 26%; }
.game-art__enemy--two { right: 19%; bottom: 27%; width: 43px; height: 43px; background: #b48aff; }
.game-art__enemy--three { top: 26%; right: 27%; width: 20px; height: 20px; background: #ffca66; }

.game-art__spark {
    position: absolute;
    color: #ffdb83;
    font-size: 1.3rem;
}

.game-art__spark--one { top: 30%; left: 46%; }
.game-art__spark--two { right: 29%; bottom: 35%; color: #8ee7d2; font-size: 0.9rem; }

.game-art__orb {
    width: 12px;
    height: 12px;
    background: #b8ff76;
    box-shadow: 0 0 13px rgb(184 255 118 / 80%);
}

.game-art__orb--one { top: 58%; left: 25%; }
.game-art__orb--two { top: 22%; right: 41%; width: 8px; height: 8px; }

.game-art__label {
    position: absolute;
    right: 16px;
    bottom: 16px;
    color: #b8cce1;
    font-size: 0.63rem;
    line-height: 1.35;
    letter-spacing: 0.16em;
    text-align: right;
}

.game-art__label strong {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.game-card__body {
    align-self: center;
    padding: clamp(24px, 4vw, 42px);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.game-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-pill {
    padding: 5px 10px;
    border-radius: 999px;
    color: #11635b;
    font-size: 0.75rem;
    font-weight: 800;
    background: #d9f7ef;
}

.game-pill--soft {
    color: #5c4c92;
    background: #eee9ff;
}

.game-card__body h3 {
    margin: 14px 0 8px;
    font-size: 2rem;
}

.game-card__description {
    margin: 0;
    color: #526176;
    line-height: 1.85;
}

.game-features {
    display: grid;
    gap: 8px;
    margin: 20px 0 24px;
    padding: 0;
    color: #43536a;
    font-size: 0.88rem;
    list-style: none;
}

.game-features li span {
    display: inline-block;
    width: 24px;
    color: #5a8c83;
    font-weight: 800;
    text-align: center;
}

.game-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 12px;
    color: #082c36;
    font-weight: 800;
    background: linear-gradient(105deg, #84efd9, #c2f783);
    box-shadow: 0 8px 18px rgb(38 173 146 / 18%);
    transition: transform 0.2s, box-shadow 0.2s;
}

.game-card__button:hover {
    color: #082c36;
    transform: translateY(-2px);
    box-shadow: 0 12px 23px rgb(38 173 146 / 28%);
}

.games-note {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 0.82rem;
    text-align: right;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .games-hero {
        min-height: 300px;
        padding: 58px 0 62px;
    }

    .games-orbit {
        top: 20px;
        left: auto;
        right: 18px;
        width: 52px;
        height: 52px;
        transform: none;
        opacity: 0.6;
    }

    .orbit-dot--large { inset: 19px; }
    .orbit-ring { inset: 10px; }
    .section-space { padding: 42px 0 56px; }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 8px;
    }

    .game-card {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .game-card-grid { grid-template-columns: 1fr; gap: 16px; }
    .game-card-grid > .game-card:first-child { grid-column: auto; }
    .game-card--math-feature { grid-column: auto; grid-template-columns: 1fr; }
    .game-card__art { min-height: 235px; }
    .game-card__body { padding: 24px; }
    .game-card__body h3 { font-size: 1.7rem; }
    .mini-card-art { min-height: 132px; }
    .games-note { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .games-hero__button,
    .game-card__button { transition: none; }
}
