:root {
    --gate-size: min(48vw, 68svh, 700px);
    --page-max: 1560px;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    display: block;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
}

.portal-page {
    display: block;
    min-height: 100svh;
    padding: 0;
}

.portal-page::before,
.portal-page::after {
    display: none;
}

.portal-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    align-items: center;
    width: min(100%, var(--page-max));
    min-height: auto;
    margin-inline: auto;
    padding: clamp(62px, 7svh, 88px) clamp(24px, 4vw, 72px) clamp(24px, 3vw, 44px);
}

.portal-hero::before {
    position: absolute;
    inset: 26px;
    z-index: -2;
    border: 1px solid rgba(38, 61, 69, .12);
    background:
        linear-gradient(90deg, transparent 49.94%, rgba(27, 58, 68, .07) 50%, transparent 50.06%),
        linear-gradient(0deg, transparent 49.94%, rgba(27, 58, 68, .05) 50%, transparent 50.06%);
    content: "";
    pointer-events: none;
}

.portal-hero::after {
    position: absolute;
    top: 26px;
    right: 26px;
    width: 58px;
    height: 58px;
    border-top: 2px solid rgba(6, 122, 156, .4);
    border-right: 2px solid rgba(6, 122, 156, .4);
    content: "";
}

.hero-gate-column {
    position: relative;
    display: grid;
    min-width: 0;
    place-items: center;
    padding: clamp(62px, 8vw, 96px) 0 clamp(20px, 2vw, 32px);
}

.hero-gate-column::before,
.hero-gate-column::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(26, 52, 63, .065);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.hero-gate-column::before {
    width: calc(var(--gate-size) * 1.18);
    aspect-ratio: 1;
}

.hero-gate-column::after {
    width: calc(var(--gate-size) * 1.37);
    aspect-ratio: 1;
    border-color: rgba(26, 52, 63, .035);
}

.portal-node-label {
    position: absolute;
    top: clamp(16px, 3vw, 34px);
    left: clamp(14px, 3vw, 42px);
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #5c6b71;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
}

.portal-node-label span {
    width: 7px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #57c9ff;
    box-shadow: 0 0 0 5px rgba(68, 215, 233, .12), 0 0 15px rgba(68, 215, 233, .48);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 590px;
    padding: clamp(26px, 4vw, 58px);
    border-left: 1px solid rgba(25, 48, 57, .13);
}

.ant-logo {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-bottom: clamp(34px, 6vh, 66px);
}

/* Mobile gets a dedicated copy of the animated brand above the Stargate. */
.ant-logo--mobile {
    display: none;
}

.ant-logo-mark {
    position: relative;
    display: grid;
    width: 72px;
    container-type: inline-size;
    aspect-ratio: 1;
    place-items: center;
    clip-path: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%);
    background: linear-gradient(145deg, #e9eef0 0 12%, #5a666b 13% 18%, #141c20 19% 78%, #68757a 79% 87%, #d9e1e3 88%);
    filter: drop-shadow(0 12px 16px rgba(17, 32, 39, .14));
}

.ant-logo-mark::before {
    position: absolute;
    inset: 8px;
    clip-path: inherit;
    z-index: 0;
    border: 1px solid rgba(202, 244, 250, .35);
    background: linear-gradient(145deg, #233139, #081014);
    content: "";
}

.ant-logo-mark b {
    position: relative;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #ecfdff;
    font-size: 2.25rem;
    line-height: 1;
    text-shadow: 0 0 18px rgba(76, 226, 244, .42);
}

/* A → N → T → quick supernova flash. Letters hold ~3s; nova flashes for .75s. */
.ant-logo-glyph-state {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(.76) rotate(-8deg);
    animation-duration: 9.75s;
    animation-timing-function: cubic-bezier(.4, 0, .2, 1);
    animation-iteration-count: infinite;
    will-change: opacity, transform, filter;
}

.ant-logo-glyph-a { animation-name: ant-logo-glyph-a; }
.ant-logo-glyph-n { animation-name: ant-logo-glyph-n; }
.ant-logo-glyph-t { animation-name: ant-logo-glyph-t; }
.ant-logo-glyph-nova { animation-name: ant-logo-glyph-nova; }

.ant-logo-supernova {
    position: relative;
    display: block;
    width: 10px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #f5feff;
    box-shadow:
        0 0 5px 2px #f5feff,
        0 0 12px 5px rgba(86, 229, 246, .92),
        0 0 22px 9px rgba(20, 170, 205, .48);
    animation: ant-logo-supernova-pulse .75s ease-out infinite;
}

.ant-logo-supernova::before,
.ant-logo-supernova::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(236, 253, 255, .95), transparent);
    content: "";
    transform: translate(-50%, -50%);
}

.ant-logo-supernova::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

@keyframes ant-logo-glyph-a {
    0%, 28.9% { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); }
    30.2% { opacity: 0; transform: scale(1.08) rotate(4deg); filter: blur(1.5px); }
    30.8%, 99% { opacity: 0; transform: scale(.78) rotate(-6deg); filter: blur(2px); }
    100% { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); }
}

@keyframes ant-logo-glyph-n {
    0%, 29.4% { opacity: 0; transform: scale(.78) rotate(-6deg); filter: blur(2px); }
    30.8%, 59.7% { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); }
    61.0% { opacity: 0; transform: scale(1.08) rotate(4deg); filter: blur(1.5px); }
    61.6%, 100% { opacity: 0; transform: scale(.78) rotate(-6deg); filter: blur(2px); }
}

@keyframes ant-logo-glyph-t {
    0%, 60.2% { opacity: 0; transform: scale(.78) rotate(-6deg); filter: blur(2px); }
    61.6%, 90.5% { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); }
    91.8% { opacity: 0; transform: scale(1.08) rotate(4deg); filter: blur(1.5px); }
    92.3%, 100% { opacity: 0; transform: scale(.78) rotate(-6deg); filter: blur(2px); }
}

@keyframes ant-logo-glyph-nova {
    0%, 91.8% { opacity: 0; transform: scale(.35) rotate(-18deg); filter: blur(3px); }
    92.3% { opacity: .35; transform: scale(.55) rotate(-8deg); filter: blur(1.5px); }
    95.0% { opacity: 1; transform: scale(1.3) rotate(0); filter: blur(0); }
    98.0% { opacity: .9; transform: scale(.95) rotate(8deg); filter: blur(.4px); }
    100% { opacity: 0; transform: scale(1.7) rotate(18deg); filter: blur(3px); }
}

@keyframes ant-logo-supernova-pulse {
    0% { transform: scale(.35); opacity: 0; }
    28% { transform: scale(1.45); opacity: 1; }
    58% { transform: scale(.9); opacity: .95; }
    100% { transform: scale(1.7); opacity: 0; }
}

.ant-logo-type {
    display: grid;
    gap: 5px;
}

.ant-logo-type > span {
    display: flex;
    align-items: baseline;
    letter-spacing: -.07em;
    line-height: .78;
}

.ant-logo-type strong {
    color: #0d1519;
    font-size: clamp(3rem, 5.2vw, 5.4rem);
    font-weight: 700;
}

.ant-logo-type b {
    color: var(--portal-deep);
    font-size: clamp(1.35rem, 2.15vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -.05em;
}

.ant-logo-type small {
    color: #697980;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
}

.hero-eyebrow,
.section-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #67767c;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
}

.hero-eyebrow span {
    display: block;
    width: 34px;
    height: 2px;
    background: linear-gradient(90deg, var(--portal-deep), var(--portal));
}

.hero-copy h1 {
    margin: 0;
    color: #121b20;
    font-size: clamp(2.85rem, 5vw, 5.45rem);
    font-weight: 500;
    letter-spacing: -.065em;
    line-height: .94;
}

.hero-copy h1 em {
    color: #237f99;
    font-style: normal;
    font-weight: 650;
}

.hero-intro {
    max-width: 52ch;
    margin: 28px 0 30px;
    color: #5e6d73;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.68;
}

.hero-cta {
    display: inline-grid;
    grid-template-columns: 1fr 54px;
    align-items: center;
    min-width: min(100%, 390px);
    min-height: 58px;
    overflow: hidden;
    border: 1px solid #0f1c21;
    border-radius: 3px;
    background: #111b20;
    box-shadow: 0 12px 28px rgba(20, 43, 51, .12);
    color: #f4feff;
    font-family: var(--font-mono);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .08em;
    transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
}

.hero-cta span { padding: 14px 18px; }

.hero-cta b {
    display: grid;
    align-self: stretch;
    place-items: center;
    border-left: 1px solid rgba(255, 255, 255, .15);
    background: linear-gradient(145deg, #35b85d, #087995);
    font-size: 1.1rem;
}

.hero-cta:hover {
    transform: translateY(-2px);
    border-color: #72e47b;
    box-shadow: 0 16px 34px rgba(20, 126, 151, .18);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 480px;
    margin: 40px 0 20px;
    border-top: 1px solid #cad5d8;
    border-bottom: 1px solid #cad5d8;
}

.hero-metrics div { padding: 15px 10px 14px 0; }

.hero-metrics div + div {
    border-left: 1px solid #cad5d8;
    padding-left: 16px;
}

.hero-metrics dt {
    color: #152127;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -.04em;
}

.hero-metrics dd {
    margin: 2px 0 0;
    color: #718087;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .1em;
}

.hero-note {
    margin: 0;
    color: #77868b;
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .04em;
}

.hero-note span { margin-right: 7px; color: #6ee56f; }

.webgl-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(30px, 3.5vw, 52px) clamp(16px, 3.4vw, 56px) clamp(96px, 11vw, 168px);
    border-top: 0;
    background:
        radial-gradient(circle at 18% -10%, rgba(55, 202, 224, .22), transparent 30%),
        radial-gradient(circle at 82% 2%, rgba(255, 148, 72, .13), transparent 22%),
        linear-gradient(rgba(28, 65, 76, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 65, 76, .045) 1px, transparent 1px),
        linear-gradient(180deg, #edf7f9 0, #f7fafb 360px, #f8fafb 100%);
    background-size: auto, auto, 44px 44px, 44px 44px, auto;
}

.webgl-section::before {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: -1;
    width: min(calc(100% - 52px), var(--page-max));
    height: 18px;
    transform: translateX(-50%);
    background:
        radial-gradient(circle, #6ee56f 0 3px, transparent 3.5px) 0 5px / 100% 8px no-repeat,
        radial-gradient(circle, #57c9ff 0 3px, transparent 3.5px) 100% 5px / 100% 8px no-repeat,
        linear-gradient(90deg, #6ee56f, #aabfc5 16%, #aabfc5 84%, #57c9ff) 50% 8px / 100% 1px no-repeat;
    content: "";
}

.webgl-section::after {
    position: absolute;
    top: -320px;
    right: 4%;
    z-index: -1;
    width: 570px;
    aspect-ratio: 1;
    border: 1px solid rgba(31, 123, 146, .1);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(255, 255, 255, .18), 0 0 0 25px rgba(31, 123, 146, .055);
    content: "";
}

.webgl-heading {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .5fr);
    align-items: center;
    width: min(100%, var(--page-max));
    gap: clamp(34px, 5vw, 74px);
    margin: 0 auto clamp(30px, 4vw, 48px);
    border-left: 4px solid #6ee56f;
    padding: clamp(22px, 3vw, 38px) clamp(18px, 3vw, 42px);
    background: linear-gradient(90deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .22));
    box-shadow: inset 0 1px rgba(255, 255, 255, .86), inset 0 -1px rgba(64, 96, 106, .08);
}

.section-kicker span {
    border: 1px solid rgba(8, 123, 150, .24);
    border-radius: 2px;
    padding: 6px 9px;
    background: rgba(223, 249, 252, .82);
    color: #087b96;
}

.webgl-heading h2 {
    margin: 0;
    color: #101a1f;
    font-size: clamp(2.8rem, 5.2vw, 5.7rem);
    font-weight: 650;
    letter-spacing: -.064em;
    line-height: .9;
}

.section-intro {
    max-width: 46ch;
    margin: 0;
    border-left: 2px solid #27c5df;
    padding-left: 22px;
    color: #53676f;
    font-size: 1rem;
    line-height: 1.65;
}

.game-deck {
    position: relative;
    z-index: 1;
    width: min(100%, var(--page-max));
    margin-inline: auto;
    border: 1px solid #53636a;
    border-radius: 3px;
    padding: 10px;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .11) 0 1px, transparent 1px 7px),
        linear-gradient(145deg, #76858b, #d9e0e2 13%, #6e7c82 13.2%, #aebbc0 98%);
    box-shadow: 0 30px 74px rgba(17, 47, 58, .16), inset 0 1px rgba(255, 255, 255, .82);
}

.deck-toolbar,
.deck-footer {
    display: grid;
    align-items: center;
    min-height: 48px;
    border: 1px solid #0a1013;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 6px),
        linear-gradient(180deg, #29343a, #0b1216);
    color: #bcd0d6;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .09em;
}

.deck-toolbar {
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    padding: 9px 15px;
    border-bottom-color: #6ee56f;
}

.deck-toolbar span:nth-child(2) { color: rgba(188, 208, 214, .45); }
.deck-toolbar span:last-child { justify-self: end; }

.deck-toolbar i {
    display: inline-block;
    width: 7px;
    aspect-ratio: 1;
    margin-right: 8px;
    border-radius: 50%;
    background: #54d9ea;
    box-shadow: 0 0 11px #54d9ea;
}

.webgl-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-block: 12px;
}

.webgl-card[hidden],
.load-more[hidden] { display: none !important; }

.webgl-card {
    position: relative;
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #aebdc1;
    border-radius: 2px;
    background: #fcfefe;
    box-shadow: 0 4px 13px rgba(17, 36, 44, .08);
    transition: transform .28s var(--ease), border-color .28s ease, box-shadow .28s ease;
}

.webgl-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 4;
    height: 3px;
    background: linear-gradient(90deg, #6ee56f 0 18%, #57c9ff 18% 72%, #142329 72%);
    content: "";
}

.webgl-card:hover {
    z-index: 2;
    transform: translateY(-3px);
    border-color: #2dbbd3;
    box-shadow: 0 16px 34px rgba(17, 73, 88, .16);
}

.webgl-card.is-revealed { animation: card-reveal .55s var(--ease) both; }

.webgl-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0d171c;
}

.webgl-card-media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 11, 15, .04), transparent 48%, rgba(4, 11, 15, .5));
    content: "";
}

.webgl-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease), filter .4s ease;
}

.webgl-card:hover .webgl-card-media img { transform: scale(1.045); filter: saturate(1.08); }

.card-index,
.card-rating {
    position: absolute;
    z-index: 2;
    top: 9px;
    border: 1px solid rgba(206, 241, 246, .32);
    border-radius: 2px;
    padding: 5px 7px;
    background: rgba(7, 18, 23, .84);
    backdrop-filter: blur(8px);
    color: #e7fcff;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
}

.card-index { left: 9px; }
.card-rating { right: 9px; }
.card-rating b { color: #68e7f6; font-size: .65rem; }

.webgl-card-body {
    display: grid;
    grid-template-rows: 24px 2.65em minmax(92px, 1fr) auto auto;
    gap: 12px;
    min-height: 316px;
    padding: 16px 16px 15px;
    background: linear-gradient(180deg, #fff, #fbfdfd);
}

.card-route {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    min-width: 0;
    gap: 12px;
    overflow: hidden;
    border-bottom: 1px solid #dce6e8;
    padding-bottom: 8px;
    color: #718087;
    font-family: var(--font-mono);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .07em;
    line-height: 1;
}

.card-route-name {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #087e98;
    white-space: nowrap;
}

.card-route-name i {
    display: block;
    width: 30px;
    height: 7px;
    transform: rotate(-6deg);
    background: radial-gradient(circle, #6ee56f 0 2px, transparent 2.4px) 0 50% / 7px 7px repeat-x;
}

.card-genre {
    min-width: 0;
    overflow: hidden;
    color: #74848a;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.webgl-card h3 {
    display: -webkit-box;
    min-height: 2.65em;
    margin: 0;
    overflow: hidden;
    color: #172228;
    font-size: 1.12rem;
    font-weight: 650;
    letter-spacing: -.025em;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.webgl-card-body > p {
    display: -webkit-box;
    min-height: 6em;
    margin: 0;
    overflow: hidden;
    color: #65747a;
    font-size: .94rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.card-data {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
    border-top: 1px solid #e1e8ea;
    padding-top: 9px;
    color: #7a898f;
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 600;
}

.card-play {
    display: grid;
    grid-template-columns: 1fr 34px;
    align-items: center;
    min-height: 38px;
    overflow: hidden;
    border: 1px solid #1b2b32;
    border-radius: 2px;
    background: #152127;
    color: #effdff;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    transition: border-color .2s ease, background-color .2s ease;
}

.card-play span { padding-left: 11px; }

.card-play b {
    display: grid;
    align-self: stretch;
    place-items: center;
    border-left: 1px solid rgba(255, 255, 255, .13);
    background: #d56f32;
    font-size: .82rem;
}

.card-play:hover { border-color: #42d5e7; background: #0d3945; }
.card-play:hover b { background: #0787a3; }

.deck-footer {
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 8px 9px 8px 15px;
}

.deck-footer p { margin: 0; color: #8da2a9; }
.deck-footer p b { color: #eefcff; }

.load-more {
    display: inline-grid;
    grid-template-columns: 1fr 38px;
    align-items: center;
    min-height: 38px;
    overflow: hidden;
    border: 1px solid #65767c;
    border-radius: 2px;
    padding: 0;
    background: #172329;
    color: #eafcff;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
}

.load-more span { padding-inline: 14px; }

.load-more b {
    display: grid;
    align-self: stretch;
    place-items: center;
    border-left: 1px solid rgba(255, 255, 255, .14);
    background: #b75f29;
    font-size: 1rem;
}

.load-more:hover { border-color: #9feefa; background: #21414b; }

.catalog-error--grid {
    width: min(100%, var(--page-max));
    margin-inline: auto;
    padding: 70px 20px;
    border: 1px solid #c8d4d7;
    background: #fff;
}

.site-footer {
    border-top: 1px solid #26353b;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 7px), #091216;
    color: #d5e5e9;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(240px, 1.1fr) minmax(300px, .9fr) minmax(220px, .65fr);
    width: min(100%, var(--page-max));
    gap: clamp(36px, 7vw, 110px);
    margin-inline: auto;
    padding: clamp(62px, 8vw, 108px) clamp(20px, 4vw, 60px);
}

.footer-brand strong {
    color: #f4feff;
    font-size: clamp(2.7rem, 5vw, 5.3rem);
    letter-spacing: -.075em;
    line-height: .8;
}

.footer-brand strong span { color: #3bc9df; font-size: .45em; }

.footer-brand p {
    max-width: 36ch;
    margin: 25px 0 0;
    color: #83979e;
    font-size: 1rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    align-content: start;
    border-top: 1px solid #304148;
}

.footer-links a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #304148;
    color: #b8cacf;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    transition: color .2s ease, padding .25s var(--ease);
}

.footer-links a:hover { padding-inline: 5px; color: #76efff; }

.footer-status {
    display: grid;
    align-content: start;
    gap: 10px;
    font-family: var(--font-mono);
    text-align: right;
}

.footer-status span { color: #92a9af; font-size: .75rem; letter-spacing: .08em; }

.footer-status i {
    display: inline-block;
    width: 7px;
    aspect-ratio: 1;
    margin-right: 7px;
    border-radius: 50%;
    background: #50de95;
    box-shadow: 0 0 12px rgba(80, 222, 149, .7);
}

.footer-status b { color: #f1fdff; font-size: 1.15rem; }
.footer-status small { color: #61767d; font-size: .72rem; letter-spacing: .08em; }

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 44px;
    align-items: center;
    gap: 20px;
    border-top: 1px solid #26363c;
    padding: 8px clamp(16px, 3vw, 42px);
    color: #647a81;
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .07em;
}

.footer-bottom span:last-child { justify-self: end; }

@keyframes card-reveal {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1120px) {
    .portal-hero { padding-inline: 24px; }
    .hero-copy { padding-inline: 30px 10px; }
    .webgl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
    :root { --gate-size: min(88vw, 680px); }
    .portal-page { padding: 0; }
    .portal-hero { grid-template-columns: 1fr; min-height: auto; padding: 38px 18px 48px; }
    .ant-logo--mobile {
        display: inline-flex;
        justify-self: center;
        margin: 0 auto 18px;
    }
    .hero-copy > .ant-logo { display: none; }
    .hero-gate-column { min-height: calc(var(--gate-size) + 108px); }
    .hero-copy { width: min(100%, 680px); max-width: none; margin-inline: auto; border-top: 1px solid rgba(25, 48, 57, .13); border-left: 0; padding: 36px 10px 10px; }
    .hero-intro { max-width: 62ch; }
    .webgl-heading { grid-template-columns: 1fr; gap: 28px; }
    .webgl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .section-intro { max-width: 60ch; }
    .footer-main { grid-template-columns: 1.1fr .9fr; }
    .footer-status { grid-column: 1 / -1; grid-template-columns: 1fr auto auto; align-items: center; padding-top: 25px; border-top: 1px solid #304148; text-align: left; }
}

@media (max-width: 760px) {
    .webgl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .deck-toolbar { grid-template-columns: 1fr auto; }
    .deck-toolbar span:nth-child(2) { display: none; }
    .webgl-card-body { min-height: 274px; padding-inline: 12px; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-status { grid-column: auto; grid-template-columns: 1fr; }
    .footer-bottom { grid-template-columns: 1fr auto; }
    .footer-bottom span:nth-child(2) { display: none; }
}

@media (max-width: 600px) {
    :root { --gate-size: min(95vw, 570px); }
    .portal-hero { padding: 26px 6px 42px; }
    .portal-hero::before { inset: 7px; }
    .portal-hero::after { top: 7px; right: 7px; }
    .ant-logo--mobile {
        gap: 12px;
        margin: 0 auto 10px;
        padding-inline: 10px;
    }
    .hero-gate-column { min-height: calc(var(--gate-size) + 92px); padding-block: 42px 28px; }
    .portal-node-label { top: 16px; left: 16px; font-size: .72rem; }
    .hero-copy { padding: 30px 14px 0; }
    .ant-logo { gap: 12px; }
    .ant-logo-mark { width: 58px; }
    .ant-logo-mark b { width: 36px; height: 36px; font-size: 1.8rem; }
    .ant-logo-type strong { font-size: clamp(2.8rem, 17vw, 4.2rem); }
    .ant-logo-type b { font-size: clamp(1.2rem, 7vw, 1.8rem); }
    .ant-logo-type small { font-size: .72rem; letter-spacing: .08em; }
    .hero-copy h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
    .hero-intro { margin-top: 23px; font-size: 1rem; }
    .hero-cta { width: 100%; min-width: 0; }
    .hero-metrics { margin-top: 32px; }
    .hero-metrics div + div { padding-left: 10px; }
    .webgl-section { padding-inline: 7px; background-size: 32px 32px; }
    .webgl-heading { padding-inline: 10px; }
    .webgl-heading h2 { font-size: clamp(2.7rem, 15vw, 4.8rem); }
    .webgl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-block: 6px; }
    .game-deck { padding: 6px; }
    .deck-toolbar { min-height: 42px; padding-inline: 10px; font-size: .72rem; }
    .webgl-card-body { grid-template-rows: 20px 2.65em minmax(70px, 1fr) auto auto; gap: 8px; min-height: 286px; padding: 11px 9px 9px; }
    .card-route { gap: 7px; font-size: .62rem; }
    .card-route-name { gap: 5px; }
    .card-route-name i { width: 20px; }
    .card-genre { font-size: .62rem; }
    .webgl-card h3 { font-size: .91rem; }
    .webgl-card-body > p { font-size: .875rem; -webkit-line-clamp: 3; }
    .card-data { font-size: .72rem; }
    .deck-footer { grid-template-columns: 1fr; padding: 11px; }
    .deck-footer p { text-align: center; }
    .load-more { width: 100%; }
    .footer-main { padding-inline: 22px; }
    .footer-bottom { padding-inline: 12px; font-size: .72rem; }
}

@media (max-height: 650px) and (min-width: 641px) {
    :root { --gate-size: min(87vw, 65svh); }
    .portal-page { padding: 0; }
    .portal-hero { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .webgl-card.is-revealed { animation: none; }
}


/* Mobile composition pass: centered hero, tighter section typography and compact footer. */
@media (max-width: 600px) {
    :root { --gate-size: min(92vw, 520px); }

    .portal-hero {
        padding: 24px 12px 30px;
    }

    .portal-hero::before { inset: 6px; }
    .portal-hero::after { top: 6px; right: 6px; width: 38px; height: 38px; }

    .hero-gate-column {
        min-height: calc(var(--gate-size) + 64px);
        padding-block: 42px 18px;
    }

    .portal-node-label {
        display: none;
    }

    .hero-copy {
        width: 100%;
        padding: 36px 12px 0;
        text-align: center;
    }

    .ant-logo {
        justify-content: center;
        width: 100%;
        gap: 10px;
        margin-bottom: 28px;
    }

    .ant-logo-mark { width: 52px; }
    .ant-logo-mark b { font-size: 1.65rem; }
    .ant-logo-type { text-align: left; }
    .ant-logo-type strong { font-size: clamp(2.45rem, 13vw, 3.25rem); }
    .ant-logo-type b { font-size: clamp(1rem, 5.2vw, 1.35rem); }
    .ant-logo-type small { font-size: .62rem; letter-spacing: .055em; }

    .hero-eyebrow {
        justify-content: center;
        gap: 8px;
        margin-bottom: 14px;
        font-size: .65rem;
        letter-spacing: .09em;
        text-align: center;
    }

    .hero-eyebrow span { width: 24px; }

    .hero-copy h1 {
        font-size: clamp(2.25rem, 10.5vw, 3.15rem);
        letter-spacing: -.055em;
        line-height: .96;
        text-align: center;
    }

    .hero-intro {
        max-width: 34ch;
        margin: 18px auto 22px;
        font-size: .94rem;
        line-height: 1.55;
        text-align: center;
    }

    .hero-cta {
        width: min(100%, 360px);
        min-height: 52px;
        margin-inline: auto;
        font-size: .68rem;
    }

    .hero-cta span { padding: 12px 14px; }

    .hero-metrics {
        width: min(100%, 390px);
        margin: 26px auto 16px;
    }

    .hero-metrics div { padding: 12px 6px; }
    .hero-metrics div + div { padding-left: 6px; }
    .hero-metrics dt { font-size: 1.05rem; }
    .hero-metrics dd { font-size: .61rem; letter-spacing: .07em; }

    .hero-note {
        max-width: 38ch;
        margin-inline: auto;
        font-size: .66rem;
        line-height: 1.5;
        text-align: center;
    }

    .webgl-section {
        padding: 24px 10px 66px;
        background-size: 30px 30px;
    }

    .webgl-section::before { width: calc(100% - 24px); }

    .webgl-heading {
        gap: 18px;
        margin-bottom: 22px;
        border-left: 0;
        border-top: 3px solid #6ee56f;
        padding: 18px 10px 20px;
        text-align: center;
    }

    .section-kicker {
        justify-content: center;
        gap: 7px;
        margin-bottom: 12px;
        font-size: .62rem;
        letter-spacing: .075em;
        text-align: center;
    }

    .section-kicker span { padding: 5px 7px; }

    .webgl-heading h2 {
        font-size: clamp(1.95rem, 9.2vw, 2.75rem);
        letter-spacing: -.05em;
        line-height: .96;
        white-space: nowrap;
    }

    .section-intro {
        max-width: 35ch;
        margin-inline: auto;
        border-top: 1px solid rgba(39, 197, 223, .55);
        border-left: 0;
        padding: 14px 4px 0;
        font-size: .91rem;
        line-height: 1.55;
        text-align: center;
    }

    .game-deck { padding: 5px; }
    .webgl-grid { gap: 5px; padding-block: 5px; }

    .footer-main {
        gap: 24px;
        padding: 34px 18px 28px;
        text-align: center;
    }

    .footer-brand strong {
        font-size: clamp(2.1rem, 11vw, 2.9rem);
    }

    .footer-brand p {
        max-width: 30ch;
        margin: 12px auto 0;
        font-size: .88rem;
        line-height: 1.5;
    }

    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-top: 0;
        gap: 1px;
        background: #304148;
    }

    .footer-links a {
        min-height: 42px;
        padding-inline: 10px;
        border-bottom: 0;
        background: #091216;
        font-size: .64rem;
        letter-spacing: .055em;
        text-align: left;
    }

    .footer-status {
        justify-items: center;
        gap: 6px;
        padding-top: 18px;
        border-top: 1px solid #304148;
        text-align: center;
    }

    .footer-status span { font-size: .66rem; }
    .footer-status b { font-size: 1rem; }
    .footer-status small { font-size: .62rem; }

    .footer-bottom {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 0;
        padding: 12px 14px;
        font-size: .62rem;
        letter-spacing: .045em;
        text-align: center;
    }

    .footer-bottom span:last-child { display: none; }
}

@media (max-width: 380px) {
    .portal-hero { padding-inline: 8px; }
    .hero-copy { padding-inline: 8px; }
    .hero-copy h1 { font-size: clamp(2.05rem, 10.5vw, 2.55rem); }
    .webgl-heading h2 { font-size: clamp(1.78rem, 9vw, 2.15rem); }
    .section-kicker { font-size: .58rem; letter-spacing: .055em; }
    .footer-main { padding-inline: 14px; }
}

/* 2026-09-03 compact colony pass: the home grid now opens with 16 games, so the section should read as a compact continuation rather than a second hero. */
.webgl-section {
    padding-top: clamp(24px, 2.6vw, 38px);
    padding-bottom: clamp(58px, 7vw, 96px);
}

.webgl-heading {
    gap: clamp(24px, 3.2vw, 48px);
    margin-bottom: clamp(18px, 2.4vw, 28px);
    padding: clamp(16px, 2vw, 25px) clamp(16px, 2.4vw, 30px);
}

.webgl-heading h2 {
    font-size: clamp(2.35rem, 4.3vw, 4.55rem);
}

.section-intro {
    font-size: .94rem;
    line-height: 1.55;
}

.webgl-grid { gap: 9px; padding-block: 9px; }
.webgl-card-body {
    grid-template-rows: 20px 2.45em minmax(58px, 1fr) auto auto;
    gap: 9px;
    min-height: 252px;
    padding: 13px 13px 12px;
}
.webgl-card h3 { min-height: 2.35em; font-size: 1.02rem; }
.webgl-card-body > p { min-height: 4.3em; font-size: .88rem; line-height: 1.44; -webkit-line-clamp: 3; }
.deck-toolbar { min-height: 43px; }
.deck-footer { min-height: 43px; }

@media (max-width: 600px) {
    .webgl-section { padding: 20px 8px 52px; }
    .webgl-heading { gap: 13px; margin-bottom: 16px; padding: 14px 8px 16px; }
    .webgl-heading h2 { font-size: clamp(1.82rem, 8.6vw, 2.4rem); }
    .section-intro { padding-top: 10px; font-size: .84rem; line-height: 1.48; }
    .webgl-card-body { grid-template-rows: 18px 2.4em minmax(52px, 1fr) auto auto; gap: 6px; min-height: 244px; padding: 9px 8px 8px; }
    .webgl-card-body > p { min-height: 3.8em; font-size: .8rem; line-height: 1.4; -webkit-line-clamp: 3; }
    .webgl-card h3 { font-size: .86rem; }
    .deck-toolbar, .deck-footer { min-height: 39px; }
}

/* 2026-09-03 transition-space correction: remove the oversized empty area below FREE GAMES DAILY. */
.webgl-section {
    padding-bottom: clamp(24px, 3vw, 42px);
}

@media (max-width: 600px) {
    .webgl-section { padding-bottom: 22px; }
}


@media (prefers-reduced-motion: reduce) {
    .ant-logo-glyph-state { animation: none; opacity: 0; transform: none; filter: none; }
    .ant-logo-glyph-a { opacity: 1; }
    .ant-logo-supernova { animation: none; }
}

/* 2026-09-03 ANT mark alignment fix.
   Anchor every animated state to the mark itself, not a smaller glyph box. */
.ant-logo-mark > .ant-logo-glyph {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    margin: 0;
    padding: 0;
    line-height: 1;
    text-align: center;
}

.ant-logo-mark .ant-logo-glyph-state {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 0 .055em;
    box-sizing: border-box;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transform-origin: 50% 50%;
}

/* Keep every breakpoint on the same geometric center. */
@media (max-width: 600px) {
    .ant-logo-mark > .ant-logo-glyph {
        width: 100%;
        height: 100%;
    }
}


/* 2026-09-03 logo cleanup + shared footer brand.
   The retired orange orbit dot is removed in markup; this guard also prevents
   any stale/cached breakpoint rule from making an old node visible. */
.ant-logo-mark > i {
    display: none !important;
}

.footer-ant-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0;
}

.footer-ant-logo .ant-logo-mark {
    flex: 0 0 auto;
    width: 64px;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28));
}

.footer-ant-logo .ant-logo-type {
    gap: 0;
}

.footer-ant-logo .ant-logo-type > span {
    gap: .08em;
    letter-spacing: -.035em;
    line-height: .82;
}

.footer-ant-logo .ant-logo-type strong {
    color: #f4feff;
    font-size: clamp(2.55rem, 4.5vw, 4.75rem);
    letter-spacing: -.055em;
}

.footer-ant-logo .ant-logo-type b {
    color: #62dff0;
    font-size: clamp(1.15rem, 1.9vw, 2rem);
    letter-spacing: .035em;
    margin-left: .035em;
}

/* Old footer-only wordmark rules no longer control the shared logo. */
.footer-brand > strong {
    display: none;
}

@media (max-width: 760px) {
    .footer-ant-logo {
        justify-content: center;
        gap: 11px;
    }

    .footer-ant-logo .ant-logo-mark {
        width: 54px;
    }

    .footer-ant-logo .ant-logo-type > span {
        gap: .1em;
    }

    .footer-ant-logo .ant-logo-type strong {
        font-size: clamp(2.15rem, 12vw, 3rem);
    }

    .footer-ant-logo .ant-logo-type b {
        font-size: clamp(1rem, 5.3vw, 1.35rem);
        letter-spacing: .045em;
    }
}

/* 2026-09-03 mobile hero gap correction:
   The ANT.com brand moved above the Stargate, so the old hero-copy top
   allowance is no longer needed. Keep ACCESS NODE close to the gate. */
@media (max-width: 600px) {
    .hero-copy {
        padding-top: 4px;
    }
}

/* ============================================================
   CURSOR-REACTIVE DOT FIELD
   Lightweight fixed canvas background. It never receives pointer
   events and is disabled for touch/coarse pointers and reduced motion.
   ============================================================ */
.cursor-dot-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .78;
}

.portal-page,
.site-footer {
    position: relative;
    z-index: 1;
}

@media (hover: none), (pointer: coarse) {
    .cursor-dot-field {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cursor-dot-field {
        display: none;
    }
}

/* ============================================================
   CATEGORY QUICK ROUTES — compact CTA thumbnails below Stargate
   ============================================================ */
.category-hub {
    position: relative;
    width: min(1280px, calc(100% - 40px));
    margin: clamp(18px, 2.4vw, 34px) auto clamp(30px, 4vw, 54px);
    padding-top: 11px;
    border-top: 1px solid rgba(149, 168, 173, .62);
}

.category-hub::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 96px;
    height: 2px;
    background: linear-gradient(90deg, #6ee56f, #57c9ff);
}

.category-hub-grid {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 7px;
}

.category-hub-card {
    position: relative;
    grid-column: span 2;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(146, 165, 170, .7);
    border-radius: 2px;
    background: #0a171c;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}


.category-hub-card--label {
    display: grid;
    place-items: stretch;
    border-color: rgba(148, 169, 174, .58);
    background:
        linear-gradient(rgba(109, 145, 153, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(109, 145, 153, .08) 1px, transparent 1px),
        linear-gradient(145deg, rgba(255,255,255,.88), rgba(231,241,243,.9));
    background-size: 18px 18px, 18px 18px, auto;
    color: #122127;
}

.category-hub-card--label::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #6ee56f, #57c9ff);
}

.category-hub-card--label:hover {
    transform: none;
    border-color: rgba(148, 169, 174, .58);
    box-shadow: none;
}

.category-hub-labelcard-inner {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3px;
    padding: 12px 11px 10px 14px;
    aspect-ratio: 16 / 9;
}

.category-hub-labelcard-inner > small {
    color: #5d747c;
    font-family: var(--font-mono);
    font-size: .42rem;
    font-weight: 700;
    letter-spacing: .13em;
    line-height: 1;
}

.category-hub-labelcard-inner > strong {
    color: #101d22;
    font-size: clamp(.82rem, 1vw, 1.02rem);
    font-weight: 760;
    letter-spacing: -.035em;
    line-height: 1;
}

.category-hub-labelcard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.category-hub-labelcard-meta b {
    padding: 3px 5px;
    border: 1px solid rgba(106, 138, 146, .35);
    background: rgba(255,255,255,.55);
    color: #60767d;
    font-family: var(--font-mono);
    font-size: .34rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
}

.category-hub-card:hover {
    z-index: 2;
    transform: translateY(-2px);
    border-color: rgba(61, 201, 220, .95);
    box-shadow: 0 9px 20px rgba(23, 61, 72, .12);
}

.category-hub-art {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(circle at 76% 12%, rgba(68, 205, 224, .23), transparent 38%),
        radial-gradient(circle at 10% 92%, rgba(255, 120, 51, .18), transparent 35%),
        linear-gradient(145deg, #071116, #12303a);
}

.category-hub-art::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 11, 15, .02) 34%, rgba(3, 11, 15, .25) 58%, rgba(3, 11, 15, .92) 100%);
    pointer-events: none;
}

.category-hub-art::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 5px;
    border: 1px solid rgba(222, 247, 250, .08);
    pointer-events: none;
}

.category-hub-art img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px 6px 0;
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .34));
    transition: transform .24s cubic-bezier(.2,.7,.2,1), filter .24s ease;
}

.category-hub-card:hover .category-hub-art img {
    transform: scale(1.055) translateY(-1px);
    filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .42));
}

.category-hub-label {
    position: absolute;
    z-index: 4;
    left: 10px;
    right: 30px;
    bottom: 8px;
    display: grid;
    gap: 2px;
    min-width: 0;
}

.category-hub-label small {
    color: #88dce8;
    font-family: var(--font-mono);
    font-size: .42rem;
    font-weight: 600;
    letter-spacing: .09em;
    line-height: 1;
}

.category-hub-label strong {
    overflow: hidden;
    color: #f7fbfc;
    font-size: clamp(.66rem, .82vw, .82rem);
    font-weight: 650;
    letter-spacing: -.02em;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-hub-arrow {
    position: absolute;
    z-index: 4;
    right: 9px;
    bottom: 8px;
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border: 1px solid rgba(226, 248, 251, .26);
    color: #fff;
    font-family: var(--font-mono);
    font-size: .62rem;
    font-weight: 500;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.category-hub-card:hover .category-hub-arrow {
    transform: translate(1px, -1px);
    border-color: rgba(90, 217, 233, .72);
    background: rgba(21, 164, 184, .18);
}

@media (max-width: 1040px) {
    .category-hub-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .category-hub-card {
        grid-column: auto;
    }
}

@media (max-width: 700px) {
    .category-hub {
        width: 100%;
        margin-top: 14px;
        margin-bottom: 24px;
        padding: 8px 0 2px;
        overflow: hidden;
    }

    .category-hub::before {
        left: 10px;
    }

    .category-hub-grid {
        display: flex;
        grid-template-columns: none;
        gap: 7px;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 10px 9px;
        scroll-padding-inline: 10px;
        scroll-snap-type: x proximity;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-hub-grid::-webkit-scrollbar {
        display: none;
    }

    .category-hub-card {
        flex: 0 0 clamp(150px, 42vw, 190px);
        grid-column: auto;
        scroll-snap-align: start;
    }

    .category-hub-card--label {
        flex-basis: clamp(142px, 39vw, 176px);
    }

    .category-hub-art,
    .category-hub-labelcard-inner {
        aspect-ratio: 16 / 10;
    }

    .category-hub-labelcard-inner {
        padding: 10px 9px 9px 12px;
    }

    .category-hub-labelcard-meta {
        gap: 3px;
    }

    .category-hub-labelcard-meta b {
        padding: 3px 4px;
        font-size: .31rem;
    }

    .category-hub-label {
        left: 8px;
        right: 27px;
        bottom: 7px;
    }

    .category-hub-label small {
        font-size: .38rem;
    }

    .category-hub-label strong {
        font-size: .72rem;
    }

    .category-hub-arrow {
        right: 7px;
        bottom: 7px;
        width: 17px;
        height: 17px;
        font-size: .56rem;
    }
}

@media (max-width: 370px) {
    .category-hub-card {
        flex-basis: 46vw;
    }

    .category-hub-card--label {
        flex-basis: 43vw;
    }
}


/* ============================================================
   MOBILE CATEGORY RAIL — hard override + scroll-cost reduction
   Kept at the end intentionally so older grid breakpoints cannot win.
   ============================================================ */
@media (max-width: 900px) {
    .category-hub {
        width: 100% !important;
        margin: 12px 0 20px !important;
        padding: 8px 0 0 !important;
        overflow: hidden !important;
        contain: layout paint style;
    }

    .category-hub-grid {
        display: flex !important;
        flex-flow: row nowrap !important;
        grid-template-columns: none !important;
        grid-auto-flow: unset !important;
        gap: 7px !important;
        width: 100% !important;
        max-width: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 10px 9px !important;
        scroll-padding-inline: 10px;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-hub-grid::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .category-hub-card,
    .category-hub-card--label {
        display: block;
        flex: 0 0 min(44vw, 184px) !important;
        width: min(44vw, 184px) !important;
        min-width: min(44vw, 184px) !important;
        max-width: min(44vw, 184px) !important;
        grid-column: auto !important;
        scroll-snap-align: start;
        scroll-snap-stop: normal;
        transform: none !important;
        box-shadow: none !important;
        transition: none !important;
    }

    .category-hub-art,
    .category-hub-labelcard-inner {
        aspect-ratio: 16 / 10 !important;
    }

    .category-hub-art img {
        transform: none !important;
        transition: none !important;
        filter: none !important;
    }

    /* Keep the long home page cheap while sections are off-screen. */
    .top-games-section,
    .webgl-section,
    .y8-story {
        content-visibility: auto;
        contain-intrinsic-size: 1px 900px;
    }
}

@media (max-width: 390px) {
    .category-hub-card,
    .category-hub-card--label {
        flex-basis: 46vw !important;
        width: 46vw !important;
        min-width: 46vw !important;
        max-width: 46vw !important;
    }
}


/* 2026-09-03 compact footer directory pass */
.site-footer {
    overflow: hidden;
}

.footer-main {
    grid-template-columns: minmax(210px, .72fr) minmax(480px, 1.55fr) minmax(190px, .58fr);
    gap: clamp(22px, 3vw, 46px);
    padding: clamp(26px, 3.4vw, 42px) clamp(18px, 3vw, 42px);
}

.footer-ant-logo {
    gap: 10px;
}

.footer-ant-logo .ant-logo-mark {
    width: 48px;
    filter: drop-shadow(0 7px 13px rgba(0, 0, 0, .24));
}

.footer-ant-logo .ant-logo-type strong {
    font-size: clamp(2rem, 3vw, 3rem);
}

.footer-ant-logo .ant-logo-type b {
    font-size: clamp(.88rem, 1.25vw, 1.25rem);
}

.footer-brand p {
    max-width: 28ch;
    margin: 10px 0 0;
    font-size: .8rem;
    line-height: 1.45;
}

.footer-directory {
    min-width: 0;
}

.footer-links-quick {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #2c3c42;
}

.footer-links-quick a {
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-right: 1px solid #2c3c42;
    color: #b7c9ce;
    font-size: .64rem;
    letter-spacing: .055em;
}

.footer-links-quick a:last-child {
    border-right: 0;
}

.footer-links-quick a:hover {
    padding-inline: 10px;
    color: #76efff;
    background: rgba(118, 239, 255, .035);
}

.footer-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 6px;
    color: #637a81;
    font-family: var(--font-mono);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .09em;
}

.footer-category-head span {
    color: #9cb1b7;
}

.footer-category-head small {
    font: inherit;
    color: #536970;
}

.footer-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px 10px;
}

.footer-categories a {
    position: relative;
    min-width: 0;
    padding: 4px 0 4px 10px;
    overflow: hidden;
    color: #758a91;
    font-family: var(--font-mono);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .035em;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .18s ease, transform .18s ease;
}

.footer-categories a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border: 1px solid #42565d;
    transform: translateY(-50%) rotate(45deg);
}

.footer-categories a:hover,
.footer-categories a[aria-current="page"] {
    color: #72e7f7;
    transform: translateX(2px);
}

.footer-categories a[aria-current="page"]::before {
    border-color: #72e7f7;
    background: #72e7f7;
}

.footer-status {
    gap: 6px;
}

.footer-status span {
    font-size: .64rem;
}

.footer-status b {
    font-size: .95rem;
}

.footer-status small {
    font-size: .58rem;
}

.footer-bottom {
    min-height: 36px;
    padding-block: 6px;
    font-size: .61rem;
}

@media (max-width: 980px) {
    .footer-main {
        grid-template-columns: minmax(180px, .7fr) minmax(0, 1.5fr);
    }

    .footer-status {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, auto);
        justify-content: space-between;
        align-items: center;
        padding-top: 10px;
        border-top: 1px solid #26363c;
        text-align: left;
    }
}

@media (max-width: 700px) {
    .footer-main {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px 14px 18px;
        text-align: center;
    }

    .footer-ant-logo {
        justify-content: center;
        gap: 9px;
    }

    .footer-ant-logo .ant-logo-mark {
        width: 44px;
    }

    .footer-ant-logo .ant-logo-type strong {
        font-size: 2.1rem;
    }

    .footer-ant-logo .ant-logo-type b {
        font-size: .92rem;
    }

    .footer-brand p {
        margin: 7px auto 0;
        font-size: .75rem;
    }

    .footer-links-quick {
        grid-template-columns: repeat(4, minmax(74px, 1fr));
        overflow-x: auto;
        background: transparent;
        scrollbar-width: none;
    }

    .footer-links-quick::-webkit-scrollbar,
    .footer-categories::-webkit-scrollbar {
        display: none;
    }

    .footer-links-quick a {
        min-height: 32px;
        background: #091216;
        font-size: .59rem;
        text-align: left;
    }

    .footer-category-head {
        margin-top: 10px;
        padding-inline: 2px;
        font-size: .55rem;
    }

    .footer-categories {
        display: flex;
        width: 100%;
        gap: 6px;
        padding: 2px 1px 7px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .footer-categories a {
        flex: 0 0 auto;
        min-height: 28px;
        padding: 7px 10px 7px 17px;
        border: 1px solid #283940;
        background: rgba(255, 255, 255, .018);
        font-size: .56rem;
        scroll-snap-align: start;
    }

    .footer-categories a::before {
        left: 8px;
    }

    .footer-status {
        grid-column: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 7px 12px;
        padding-top: 12px;
        text-align: center;
    }

    .footer-status span,
    .footer-status b,
    .footer-status small {
        font-size: .57rem;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 2px;
        min-height: 0;
        padding: 8px 10px;
        font-size: .55rem;
        line-height: 1.35;
    }

    .footer-bottom span:nth-child(2),
    .footer-bottom span:last-child {
        display: none;
    }
}


/* 2026-09-03 index vertical rhythm pass
   Keep the hero -> categories -> TOP GAMES -> FREE GAMES sequence compact. */
.category-hub {
    margin-top: clamp(12px, 1.4vw, 20px);
    margin-bottom: clamp(10px, 1.2vw, 16px);
}

.webgl-section {
    padding-top: clamp(12px, 1.35vw, 20px);
    padding-bottom: clamp(20px, 2.2vw, 32px);
}

.webgl-heading {
    margin-bottom: clamp(12px, 1.4vw, 18px);
    padding-top: clamp(12px, 1.3vw, 18px);
    padding-bottom: clamp(12px, 1.3vw, 18px);
}

@media (max-width: 900px) {
    .category-hub {
        margin: 8px 0 10px !important;
        padding-top: 6px !important;
    }

    .webgl-section {
        padding-top: 10px;
        padding-bottom: 18px;
    }
}

@media (max-width: 600px) {
    .webgl-section {
        padding: 9px 8px 16px;
    }

    .webgl-heading {
        margin-bottom: 10px;
        padding: 10px 8px 12px;
    }
}

/* 2026-09-03 tighter index top rhythm:
   reduce dead space above the hero/header and between Stargate + category rail. */
.portal-hero {
    padding-top: clamp(34px, 4.2svh, 52px);
    padding-bottom: clamp(12px, 1.6vw, 22px);
}

.category-hub {
    margin-top: clamp(7px, .9vw, 12px);
    padding-top: 6px;
}

@media (max-width: 700px) {
    .portal-hero {
        padding-top: 12px;
        padding-bottom: 16px;
    }

    .category-hub {
        margin-top: 5px;
        padding-top: 5px;
    }
}

/* 2026-09-03 category rail top-gap balance
   Match the space above the category directory more closely to the compact gap below it. */
.portal-hero {
    padding-bottom: clamp(4px, .5vw, 7px);
}

.category-hub {
    margin-top: clamp(3px, .35vw, 5px);
}

@media (max-width: 700px) {
    .portal-hero {
        padding-bottom: 7px;
    }

    .category-hub {
        margin-top: 3px;
    }
}

/* 2026-09-03 hero content-density pass:
   add useful portal context while tightening the loose vertical rhythm. */
.hero-copy {
    max-width: 620px;
}

.hero-copy > .ant-logo {
    margin-bottom: clamp(22px, 3.2vh, 36px);
}

.hero-eyebrow {
    margin-bottom: 12px;
}

.hero-intro {
    max-width: 55ch;
    margin: 18px 0 16px;
    line-height: 1.52;
}

.hero-brief {
    display: grid;
    gap: 10px;
    max-width: 520px;
    margin: 0 0 16px;
    border-top: 1px solid rgba(37, 75, 86, .2);
    border-bottom: 1px solid rgba(37, 75, 86, .16);
    padding: 11px 0 10px;
}

.hero-brief-copy {
    display: grid;
    grid-template-columns: minmax(126px, .72fr) minmax(0, 1.75fr);
    align-items: start;
    gap: 12px;
}

.hero-brief-copy small {
    color: #1786a2;
    font-family: var(--font-mono);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.45;
}

.hero-brief-copy p {
    margin: 0;
    color: #5f7077;
    font-size: .86rem;
    line-height: 1.48;
}

.hero-brief-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.hero-brief-tags span {
    border: 1px solid rgba(44, 83, 94, .2);
    border-radius: 2px;
    padding: 5px 7px 4px;
    background: rgba(255, 255, 255, .4);
    color: #62757c;
    font-family: var(--font-mono);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .075em;
}

.hero-cta {
    min-height: 54px;
}

.hero-metrics {
    max-width: 520px;
    margin: 18px 0 12px;
}

.hero-metrics div {
    padding-top: 12px;
    padding-bottom: 11px;
}

.hero-note {
    max-width: 520px;
    line-height: 1.48;
}

@media (max-width: 940px) {
    .hero-copy {
        max-width: 700px;
    }

    .hero-brief,
    .hero-metrics,
    .hero-note {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-intro {
        max-width: 38ch;
        margin: 14px auto 13px;
    }

    .hero-brief {
        width: min(100%, 390px);
        margin: 0 auto 14px;
        padding: 9px 0;
        text-align: left;
    }

    .hero-brief-copy {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .hero-brief-copy small {
        font-size: .58rem;
    }

    .hero-brief-copy p {
        font-size: .8rem;
        line-height: 1.42;
    }

    .hero-brief-tags {
        justify-content: center;
        margin-top: 2px;
    }

    .hero-metrics {
        margin-top: 16px;
    }

    .hero-note {
        max-width: 42ch;
    }
}

/* ============================================================
   GROMBI.COM BRAND LAYER v1
   Original kinetic identity: lime signal + sky accent + playful orb.
   ============================================================ */

:root {
    --grombi-green: #70e978;
    --grombi-green-strong: #2fb95b;
    --grombi-green-deep: #187b3d;
    --grombi-sky: #57c9ff;
    --grombi-lime: #dff26d;
    --grombi-ink: #0d1c1a;
    --grombi-dark: #0b1919;
    --grombi-paper: #f2f8f3;
}

body {
    background:
        radial-gradient(circle at 14% 11%, rgba(112,233,120,.10), transparent 24%),
        radial-gradient(circle at 84% 8%, rgba(87,201,255,.10), transparent 26%),
        linear-gradient(rgba(35,113,66,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(35,113,66,.035) 1px, transparent 1px),
        var(--grombi-paper);
    background-size: auto, auto, 44px 44px, 44px 44px, auto;
}

.portal-hero::after {
    border-color: rgba(47,185,91,.42);
}

/* --- Brand mark: no cube; an elastic signal-orb with two eye nodes. --- */
.grombi-logo {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: clamp(26px, 4.4vh, 50px);
}

.grombi-logo--mobile { display: none; }

.grombi-logo-mark {
    position: relative;
    display: grid;
    width: 94px;
    aspect-ratio: 1;
    place-items: center;
    overflow: visible;
    border: 2px solid #16382a;
    border-radius: 50% 46% 48% 52% / 52% 52% 46% 48%;
    background:
        radial-gradient(circle at 34% 28%, rgba(255,255,255,.32), transparent 18%),
        radial-gradient(circle at 68% 72%, rgba(8, 84, 40, .14), transparent 28%),
        linear-gradient(145deg, #8ff98d 0 20%, #48d367 46%, #1b8a49 100%);
    box-shadow:
        inset 0 -10px 16px rgba(10,82,45,.22),
        0 12px 24px rgba(25,117,62,.16);
    transform-origin: 50% 74%;
    animation: grombi-mark-bounce 7.2s cubic-bezier(.22,1,.36,1) infinite;
}

.grombi-logo-mark::before {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(236,255,237,.64);
    border-radius: 50%;
    content: "";
    box-shadow: inset -11px 0 0 rgba(16, 100, 48, .14);
}

.grombi-logo-mark::after {
    position: absolute;
    right: 9px;
    top: 50%;
    width: 14px;
    height: 12px;
    border-top: 2px solid rgba(7,56,32,.62);
    border-right: 2px solid rgba(7,56,32,.62);
    border-radius: 0 12px 12px 0;
    content: "";
    transform: translateY(-2px);
}

.grombi-logo-mark > b {
    position: relative;
    z-index: 3;
    color: #092218;
    font-size: 3.32rem;
    font-weight: 800;
    line-height: .92;
    letter-spacing: -.105em;
    text-shadow: 0 1px rgba(255,255,255,.24);
    transform: translateX(-1px);
}

.grombi-logo-orbit {
    position: absolute;
    inset: -7px;
    z-index: -1;
    border: 1px solid rgba(47,185,91,.28);
    border-radius: 50%;
    animation: grombi-orbit-pulse 2.8s ease-in-out infinite;
}

.grombi-logo-eye {
    position: absolute;
    z-index: 4;
    top: -8px;
    width: 18px;
    aspect-ratio: 1;
    border: 2px solid #16382a;
    border-radius: 50%;
    background: #f8fff8;
    box-shadow: inset 0 0 0 5px #57c9ff, inset 0 0 0 7px #0c2920;
}

.grombi-logo-eye--one { left: 13px; animation: grombi-eye-look 5.6s ease-in-out infinite; }
.grombi-logo-eye--two { right: 11px; animation: grombi-eye-look 5.6s ease-in-out -2.8s infinite; }

.grombi-logo-type {
    display: grid;
    gap: 5px;
}

.grombi-logo-type > span {
    display: flex;
    align-items: baseline;
    gap: .02em;
    line-height: .78;
    letter-spacing: -.05em;
}

.grombi-logo-type strong {
    color: #0c1817;
    font-size: clamp(2.95rem, 5vw, 5.15rem);
    font-weight: 700;
}

.grombi-logo-type b {
    color: var(--grombi-green-strong);
    font-size: clamp(1.16rem, 1.8vw, 1.92rem);
    font-weight: 700;
    letter-spacing: -.04em;
}

.grombi-logo-type small {
    color: #667970;
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
}


.grombi-logo:not(.footer-grombi-logo) .grombi-logo-mark {
    clip-path: polygon(0 0, 89% 0, 100% 14%, 100% 86%, 89% 100%, 0 100%);
    animation:
        grombi-mark-bounce 7.2s cubic-bezier(.22,1,.36,1) infinite,
        grombi-mark-chomp 7.2s ease-in-out infinite;
}

.grombi-logo:not(.footer-grombi-logo) .grombi-logo-mark::after {
    right: 7px;
    top: 50%;
    width: 18px;
    height: 15px;
    border-top: 2px solid rgba(7,56,32,.68);
    border-right: 2px solid rgba(7,56,32,.68);
    border-radius: 0 16px 16px 0;
    transform: translateY(-1px);
    animation: grombi-mouth-smile 7.2s ease-in-out infinite;
}

.grombi-logo:not(.footer-grombi-logo) .grombi-logo-type > span {
    position: relative;
    overflow: visible;
    white-space: nowrap;
    transform-origin: left center;
    animation: grombi-word-swallow 7.2s ease-in-out infinite;
}

.grombi-logo:not(.footer-grombi-logo) .grombi-logo-type small {
    animation: grombi-tag-bob 7.2s ease-in-out infinite;
}

@keyframes grombi-mark-chomp {
    0%, 16%, 100% {
        clip-path: polygon(0 0, 89% 0, 100% 14%, 100% 86%, 89% 100%, 0 100%);
    }
    24% {
        clip-path: polygon(0 0, 85% 0, 70% 38%, 100% 50%, 70% 62%, 85% 100%, 0 100%);
    }
    31% {
        clip-path: polygon(0 0, 81% 0, 58% 31%, 100% 50%, 58% 69%, 81% 100%, 0 100%);
    }
    38% {
        clip-path: polygon(0 0, 87% 0, 74% 41%, 100% 50%, 74% 59%, 87% 100%, 0 100%);
    }
    46%, 70% {
        clip-path: polygon(0 0, 89% 0, 100% 14%, 100% 86%, 89% 100%, 0 100%);
    }
    77% {
        clip-path: polygon(0 0, 83% 0, 66% 39%, 100% 50%, 66% 61%, 83% 100%, 0 100%);
    }
    84% {
        clip-path: polygon(0 0, 89% 0, 100% 14%, 100% 86%, 89% 100%, 0 100%);
    }
}

@keyframes grombi-mouth-smile {
    0%, 16%, 100% { transform: translateY(-1px) scale(1) rotate(0deg); }
    24% { transform: translateY(-1px) scale(1.05, 1.18) rotate(2deg); }
    31% { transform: translateY(-1px) scale(1.08, 1.35) rotate(3deg); }
    38% { transform: translateY(-1px) scale(1.02, 1.14) rotate(1deg); }
    77% { transform: translateY(-1px) scale(1.06, 1.22) rotate(2deg); }
}

@keyframes grombi-word-swallow {
    0%, 17%, 100% {
        transform: translateX(0) scaleX(1);
        opacity: 1;
        filter: blur(0);
    }
    23% {
        transform: translateX(-18px) scaleX(.94);
        opacity: 1;
        filter: blur(0);
    }
    30% {
        transform: translateX(-68px) scaleX(.08);
        opacity: .18;
        filter: blur(1.3px);
    }
    36%, 50% {
        transform: translateX(-82px) scaleX(.02);
        opacity: 0;
        filter: blur(2px);
    }
    58% {
        transform: translateX(24px) scaleX(.14);
        opacity: .24;
        filter: blur(3px);
    }
    66% {
        transform: translateX(10px) scaleX(1.08);
        opacity: 1;
        filter: blur(0);
    }
    73% {
        transform: translateX(0) scaleX(1);
        opacity: 1;
        filter: blur(0);
    }
    77% {
        transform: translateX(-8px) scaleX(.98);
        opacity: 1;
    }
    84% {
        transform: translateX(0) scaleX(1);
        opacity: 1;
    }
}

@keyframes grombi-tag-bob {
    0%, 22%, 100% { transform: translateX(0); opacity: 1; }
    30%, 47% { transform: translateX(-14px); opacity: .4; }
    61% { transform: translateX(6px); opacity: .9; }
    72% { transform: translateX(0); opacity: 1; }
}

@keyframes grombi-mark-bounce {
    0%, 74%, 100% { transform: translateY(0) rotate(0) scale(1); }
    79% { transform: translateY(-7px) rotate(-5deg) scale(1.03,.97); }
    83% { transform: translateY(1px) rotate(4deg) scale(.98,1.03); }
    87% { transform: translateY(-3px) rotate(-2deg) scale(1.01); }
    91% { transform: translateY(0) rotate(0) scale(1); }
}

@keyframes grombi-eye-look {
    0%, 18%, 100% { transform: translate(0,0); }
    28%, 42% { transform: translate(2px,1px); }
    53%, 66% { transform: translate(-2px,0); }
    74% { transform: scaleY(.22); }
    79% { transform: scaleY(1); }
}

@keyframes grombi-orbit-pulse {
    0%, 100% { transform: scale(.96); opacity: .35; }
    50% { transform: scale(1.12); opacity: .08; }
}

/* --- Hero: the old ant/Stargate wheel is gone. This is a clean game-signal screen. --- */
.hero-stage-column {
    position: relative;
    display: grid;
    min-width: 0;
    place-items: center;
    padding: clamp(54px, 6vw, 78px) clamp(8px, 1.8vw, 24px) clamp(14px, 2vw, 28px);
}

.hero-stage-column::before {
    position: absolute;
    inset: clamp(28px, 4vw, 54px) 0 0;
    z-index: -1;
    border-radius: 48% 52% 46% 54%;
    background:
        radial-gradient(circle at 50% 42%, rgba(112,233,120,.12), transparent 37%),
        radial-gradient(circle at 68% 20%, rgba(87,201,255,.10), transparent 26%);
    content: "";
}

.grombi-stage {
    position: relative;
    width: min(100%, 710px);
    min-width: 0;
    isolation: isolate;
}

.grombi-stage-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid #17342a;
    border-radius: 18px 18px 28px 18px;
    background: #0a1717;
    box-shadow: 0 26px 60px rgba(13,70,42,.17);
}

.grombi-stage-shell::before {
    position: absolute;
    inset: 7px;
    z-index: 5;
    border: 1px solid rgba(151,255,160,.13);
    border-radius: 13px 13px 22px 13px;
    content: "";
    pointer-events: none;
}

.grombi-stage-topbar,
.grombi-stage-footer {
    position: relative;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 0 16px;
    background: #0d201d;
    color: #a9bcb2;
    font-family: var(--font-mono);
    font-size: .61rem;
    font-weight: 600;
    letter-spacing: .08em;
}

.grombi-stage-topbar {
    border-bottom: 1px solid rgba(126,236,137,.16);
}

.grombi-stage-topbar span { display: inline-flex; align-items: center; gap: 7px; }
.grombi-stage-topbar i { width: 7px; aspect-ratio: 1; border-radius: 50%; background: var(--grombi-green); box-shadow: 0 0 0 4px rgba(112,233,120,.1),0 0 15px rgba(112,233,120,.55); }
.grombi-stage-topbar b { color: #d9f6de; font-weight: 600; }

.grombi-stage-viewport {
    position: relative;
    height: clamp(420px, 38vw, 570px);
    overflow: hidden;
    background: #071313;
}

.grombi-slide-stack { position: absolute; inset: 0; }

.grombi-game-slide {
    overflow: hidden;
    border-radius: 0;
}

.grombi-game-slide.is-active .grombi-game-image {
    transform: scale(1.045);
}

.grombi-game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 5s linear, filter .45s ease;
}

.grombi-stage.is-switching .grombi-game-slide.is-active .grombi-game-image {
    filter: saturate(.72) brightness(.72) blur(1px);
}

.grombi-screen-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(3,17,12,.08) 8%, rgba(4,15,13,.12) 40%, rgba(4,14,13,.92) 100%),
        radial-gradient(circle at 78% 12%, rgba(112,233,120,.14), transparent 32%);
    pointer-events: none;
}

.grombi-stage-grid {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: .25;
    background:
        linear-gradient(rgba(144,255,151,.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(144,255,151,.09) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 70%);
    pointer-events: none;
}

.grombi-stage-ripple {
    position: absolute;
    z-index: 4;
    top: 12%;
    right: 8%;
    width: 96px;
    aspect-ratio: 1;
    border: 1px solid rgba(116,240,129,.38);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: grombi-stage-ripple 3.8s ease-out infinite;
}

.grombi-stage-ripple--two { animation-delay: 1.9s; }

@keyframes grombi-stage-ripple {
    0% { transform: scale(.3); opacity: .45; }
    72%,100% { transform: scale(2.4); opacity: 0; }
}

.grombi-game-badges {
    z-index: 5;
    top: 18px;
    right: 18px;
    left: 18px;
}

.grombi-game-copy {
    right: clamp(18px, 5vw, 48px);
    bottom: clamp(22px, 4vw, 42px);
    left: clamp(18px, 5vw, 48px);
    z-index: 5;
    text-align: left;
}

.grombi-game-copy .destination-kicker {
    justify-content: flex-start;
}

.grombi-game-copy h2 {
    max-width: 13ch;
    font-size: clamp(2rem, 4.3vw, 4.15rem);
    line-height: .94;
}

.grombi-game-copy .destination-description {
    max-width: 58ch;
    margin-right: auto;
    font-size: clamp(.72rem, 1.05vw, .9rem);
}

.grombi-game-copy .play-link {
    margin-inline: 0;
    border-color: rgba(226,255,230,.72);
    background: rgba(9,29,20,.82);
}

.grombi-game-copy .play-link:hover {
    border-color: var(--grombi-green);
    background: var(--grombi-green);
    color: #092117;
}

.grombi-game-copy .play-link b { background: var(--grombi-green-strong); }

.grombi-stage-footer {
    min-height: 48px;
    border-top: 1px solid rgba(126,236,137,.16);
}

.grombi-stage-footer p { margin: 0; color: #d6efda; }
.grombi-stage-footer small { color: #72897c; font-size: .54rem; }

.grombi-stage-meter {
    position: relative;
    flex: 1;
    max-width: 200px;
    height: 2px;
    overflow: hidden;
    background: rgba(229,255,232,.12);
}

.grombi-stage-meter i {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left;
    background: linear-gradient(90deg,var(--grombi-green),var(--grombi-sky));
    animation: grombi-stage-meter 5s linear infinite;
}

.grombi-stage.is-switching .grombi-stage-meter i { animation: none; transform: scaleX(.08); }

@keyframes grombi-stage-meter { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.grombi-bounce-orb {
    position: absolute;
    z-index: 10;
    width: 14px;
    aspect-ratio: 1;
    border: 2px solid #17382a;
    border-radius: 50%;
    background: var(--grombi-green);
    box-shadow: 0 0 0 5px rgba(112,233,120,.11);
    pointer-events: none;
}

.grombi-bounce-orb--one { top: 4%; left: -7px; animation: grombi-orb-hop 5.8s ease-in-out infinite; }
.grombi-bounce-orb--two { right: -8px; bottom: 12%; width: 10px; background: var(--grombi-sky); animation: grombi-orb-hop 7.2s ease-in-out -2.1s infinite reverse; }

@keyframes grombi-orb-hop {
    0%,100% { transform: translateY(0) scale(1); }
    35% { transform: translateY(38px) scale(.88,1.12); }
    58% { transform: translateY(12px) scale(1.08,.92); }
    78% { transform: translateY(55px) scale(.9,1.1); }
}

.portal-node-label span {
    background: var(--grombi-green);
    box-shadow: 0 0 0 5px rgba(112,233,120,.12), 0 0 15px rgba(112,233,120,.42);
}

.hero-copy h1 em { color: #239b51; }
.hero-eyebrow span { background: linear-gradient(90deg,var(--grombi-green-strong),var(--grombi-sky)); }
.hero-cta b { background: linear-gradient(145deg,#43d66c,#239b51); }
.hero-cta:hover { border-color: var(--grombi-green); box-shadow: 0 16px 34px rgba(46,163,82,.16); }
.hero-note span { color: var(--grombi-green-strong); }

/* Recolor the existing page systems without changing their structure. */
.category-hub-card--label { border-left-color: var(--grombi-green); }
.category-hub-grid::before,
.top-games-heading::before,
.webgl-heading::before { background: linear-gradient(90deg,var(--grombi-green),var(--grombi-sky)); }

.webgl-section {
    background:
        radial-gradient(circle at 18% -10%, rgba(112,233,120,.18), transparent 30%),
        radial-gradient(circle at 82% 2%, rgba(87,201,255,.12), transparent 22%),
        linear-gradient(rgba(39,112,67,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(39,112,67,.04) 1px, transparent 1px),
        linear-gradient(180deg, #edf7ef 0, #f7fbf8 360px, #f8fbf9 100%);
    background-size: auto, auto, 44px 44px, 44px 44px, auto;
}

.footer-ant-logo { display: none !important; }
.footer-grombi-logo { margin: 0; }
.footer-grombi-logo .grombi-logo-mark { width: 52px; }
.footer-grombi-logo .grombi-logo-mark > b { font-size: 1.9rem; }
.footer-grombi-logo .grombi-logo-eye { width: 12px; top: -6px; box-shadow: inset 0 0 0 3px #57c9ff, inset 0 0 0 5px #0c2920; }
.footer-grombi-logo .grombi-logo-eye--one { left: 8px; }
.footer-grombi-logo .grombi-logo-eye--two { right: 7px; }
.footer-grombi-logo .grombi-logo-type strong { font-size: 2.35rem; }
.footer-grombi-logo .grombi-logo-type b { font-size: .95rem; }

@media (max-width: 900px) {
    .portal-hero { grid-template-columns: 1fr; }
    .hero-stage-column { order: 2; padding-top: 30px; }
    .hero-copy { order: 1; max-width: none; }
    .hero-copy > .grombi-logo { display: none; }
    .grombi-logo--mobile {
        display: inline-flex;
        grid-column: 1 / -1;
        justify-self: center;
        margin: 0 auto 12px;
    }
    .grombi-stage { width: min(100%, 760px); }
    .grombi-stage-viewport { height: min(64vw, 530px); min-height: 390px; }
}

@media (max-width: 600px) {
    .grombi-logo--mobile { gap: 11px; }
    .grombi-logo-mark { width: 66px; }
    .grombi-logo-mark > b { font-size: 2.32rem; }
    .grombi-logo-eye { width: 14px; top: -6px; box-shadow: inset 0 0 0 4px #57c9ff, inset 0 0 0 6px #0c2920; }
    .grombi-logo-eye--one { left: 9px; }
    .grombi-logo-eye--two { right: 8px; }
    .grombi-logo-type strong { font-size: clamp(2.55rem, 12vw, 3.25rem); }
    .grombi-logo-type b { font-size: clamp(.95rem, 5vw, 1.25rem); }
    .grombi-logo-type small { font-size: .58rem; letter-spacing: .06em; }
    .hero-stage-column { padding: 22px 10px 10px; }
    .portal-node-label { top: 0; left: 12px; font-size: .57rem; }
    .grombi-stage-shell { border-radius: 13px 13px 20px 13px; }
    .grombi-stage-topbar { min-height: 36px; padding: 0 11px; font-size: .5rem; }
    .grombi-stage-viewport { min-height: 350px; height: 112vw; max-height: 465px; }
    .grombi-game-badges { top: 12px; right: 12px; left: 12px; }
    .grombi-game-copy { right: 16px; bottom: 18px; left: 16px; }
    .grombi-game-copy h2 { font-size: clamp(1.8rem, 10vw, 3rem); }
    .grombi-game-copy .destination-description { font-size: .7rem; }
    .grombi-stage-footer { min-height: 42px; padding: 0 11px; font-size: .49rem; }
    .grombi-stage-footer small { display: none; }
    .grombi-stage-meter { max-width: 120px; }
    .footer-grombi-logo .grombi-logo-mark { width: 46px; }
    .footer-grombi-logo .grombi-logo-type strong { font-size: 1.95rem; }
    .footer-grombi-logo .grombi-logo-type b { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .grombi-logo-mark,
    .grombi-logo-eye,
    .grombi-logo-orbit,
    .grombi-stage-ripple,
    .grombi-stage-meter i,
    .grombi-bounce-orb,
    .grombi-logo-type > span,
    .grombi-logo-type small { animation: none !important; }
}

/* ============================================================
   GROMBI UI POLISH v1.1 — contrast + irregular modern actions
   ============================================================ */

/* Footer brand must stay readable on the dark footer surface. */
.footer-grombi-logo .grombi-logo-type strong {
    color: #f4fff6;
    text-shadow: 0 1px 0 rgba(255,255,255,.04);
}

.footer-grombi-logo .grombi-logo-type b {
    color: #70e978;
}

.footer-brand > p {
    color: #9eb8aa;
}

.footer-grombi-logo .grombi-logo-mark {
    border-color: rgba(190,255,198,.54);
    box-shadow:
        inset 0 -8px 14px rgba(8,69,37,.22),
        0 9px 20px rgba(0,0,0,.24),
        0 0 0 1px rgba(112,233,120,.08);
}

/* Shared Grombi action language: asymmetric, softer, no orange accent. */
.hero-cta,
.card-play,
.load-more,
.grombi-game-copy .play-link {
    border-radius: 17px 7px 17px 7px;
    border-color: rgba(28,74,52,.9);
    background: linear-gradient(145deg, #10251d, #0b1d19 72%);
    box-shadow: 0 10px 24px rgba(13,67,39,.11);
}

.hero-cta,
.card-play,
.load-more,
.grombi-game-copy .play-link {
    transition:
        transform .22s cubic-bezier(.22,1,.36,1),
        border-color .22s ease,
        background-color .22s ease,
        box-shadow .22s ease;
}

.hero-cta b,
.card-play b,
.load-more b,
.grombi-game-copy .play-link b {
    border-left-color: rgba(232,255,236,.16);
    background: linear-gradient(145deg, #69eb7c 0%, #32bb60 55%, #42bde9 135%);
    color: #082117;
}

.hero-cta:hover,
.card-play:hover,
.load-more:hover,
.grombi-game-copy .play-link:hover {
    transform: translateY(-2px) rotate(-.18deg);
    border-color: #70e978;
    background: linear-gradient(145deg, #153127, #0d2a21 72%);
    color: #f5fff6;
    box-shadow: 0 16px 32px rgba(32,143,72,.16);
}

.hero-cta:hover b,
.card-play:hover b,
.load-more:hover b,
.grombi-game-copy .play-link:hover b {
    background: linear-gradient(145deg, #83f28c 0%, #43cf6b 54%, #57c9ff 135%);
    color: #071d14;
}

.hero-cta:focus-visible,
.card-play:focus-visible,
.load-more:focus-visible,
.grombi-game-copy .play-link:focus-visible {
    outline: 3px solid rgba(112,233,120,.3);
    outline-offset: 3px;
}

/* The large hero action gets a slightly more expressive silhouette. */
.hero-cta {
    min-height: 60px;
    border-radius: 20px 8px 22px 8px;
}

.hero-cta b {
    min-width: 56px;
}

/* Small card actions keep the same family without looking bulky. */
.card-play,
.load-more {
    border-radius: 13px 5px 14px 5px;
}

/* Remove the old orange split-button remnants explicitly. */
.card-play b,
.load-more b {
    background: linear-gradient(145deg, #52d970, #2bad5b 66%, #42bde9 135%);
}

@media (max-width: 600px) {
    .hero-cta {
        border-radius: 16px 6px 18px 6px;
    }

    .card-play,
    .load-more,
    .grombi-game-copy .play-link {
        border-radius: 12px 5px 13px 5px;
    }
}


/* 2026-09-04 Wemaxa footer credit */
.footer-credit-link {
    color: #7eea9a;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .08em;
    transition: color .18s ease, opacity .18s ease;
}

.footer-credit-link:hover,
.footer-credit-link:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================================
   GROMBI MOBILE DENSITY v1.2
   Keep the phone hero focused on the primary copy + CTA.
   ============================================================ */
@media (max-width: 700px) {
    .hero-brief {
        display: none !important;
    }

    .hero-intro {
        margin-bottom: 14px;
    }

    .hero-cta {
        margin-top: 0;
    }
}

/* ============================================================
   GROMBI HOME MOBILE CATEGORY MATRIX v1.3
   Match the compact 2 x 7 route matrix used inside category pages.
   ============================================================ */
.category-hub-mobile-label,
.category-hub-mobile-title {
    display: none;
}

@media (max-width: 700px) {
    .portal-page > .category-hub {
        width: 100% !important;
        margin: 8px 0 18px !important;
        padding: 7px 10px 0 !important;
        overflow: visible !important;
        contain: none !important;
    }

    .portal-page > .category-hub::before {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
    }

    .portal-page > .category-hub .category-hub-grid {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-flow: row !important;
        gap: 4px !important;
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        overflow: visible !important;
        scroll-snap-type: none !important;
        touch-action: auto !important;
    }

    .portal-page > .category-hub .category-hub-card,
    .portal-page > .category-hub .category-hub-card--label {
        display: grid !important;
        place-items: stretch !important;
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 9px 3px 9px 3px !important;
        overflow: hidden !important;
        scroll-snap-align: none !important;
        transform: none !important;
        box-shadow: none !important;
        transition: border-color .18s ease, background-color .18s ease !important;
    }

    .portal-page > .category-hub .category-hub-card--label {
        border: 1px solid rgba(41, 127, 74, .34) !important;
        background:
            radial-gradient(circle at 78% 18%, rgba(87, 201, 255, .18), transparent 40%),
            linear-gradient(145deg, #eefbf1, #dff4e5) !important;
    }

    .portal-page > .category-hub .category-hub-labelcard-inner {
        position: relative;
        display: grid !important;
        place-items: center !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        padding: 3px !important;
    }

    .portal-page > .category-hub .category-hub-labelcard-inner > small,
    .portal-page > .category-hub .category-hub-labelcard-inner > strong,
    .portal-page > .category-hub .category-hub-labelcard-meta {
        display: none !important;
    }

    .portal-page > .category-hub .category-hub-mobile-title {
        display: grid !important;
        place-items: center !important;
        width: 100%;
        height: 100%;
        color: #176d39;
        font-family: var(--font-mono);
        font-size: clamp(.37rem, 1.6vw, .53rem);
        font-weight: 800;
        line-height: 1;
        letter-spacing: .015em;
        text-align: center;
    }

    .portal-page > .category-hub .category-hub-art {
        position: relative !important;
        display: grid !important;
        place-items: center !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        padding: 0 !important;
        background:
            radial-gradient(circle at 75% 18%, rgba(87, 201, 255, .13), transparent 38%),
            linear-gradient(145deg, #f9fdf9, #eaf7ed) !important;
    }

    .portal-page > .category-hub .category-hub-art::before,
    .portal-page > .category-hub .category-hub-art::after,
    .portal-page > .category-hub .category-hub-art img,
    .portal-page > .category-hub .category-hub-label,
    .portal-page > .category-hub .category-hub-arrow {
        display: none !important;
    }

    .portal-page > .category-hub .category-hub-mobile-label {
        position: relative;
        z-index: 4;
        display: grid !important;
        place-items: center !important;
        width: 100%;
        height: 100%;
        padding: 2px;
        color: #294f39;
        font-family: var(--font-mono);
        font-size: clamp(.36rem, 1.55vw, .52rem);
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0;
        text-align: center;
        white-space: nowrap;
    }

    .portal-page > .category-hub .category-hub-card:hover,
    .portal-page > .category-hub .category-hub-card:focus-visible {
        border-color: #53d873 !important;
        background: #eefaf1 !important;
    }
}

@media (max-width: 390px) {
    .portal-page > .category-hub .category-hub-grid {
        gap: 3px !important;
    }

    .portal-page > .category-hub .category-hub-mobile-title,
    .portal-page > .category-hub .category-hub-mobile-label {
        font-size: clamp(.33rem, 1.45vw, .44rem);
    }
}


/* ============================================================
   GROMBI LOGO SEQUENCE v2.0 — letter-by-letter eater
   ============================================================ */
.grombi-logo {
    position: relative;
}

.grombi-logo-mark {
    background: none;
    border: 0;
    box-shadow: none;
}

.grombi-logo-face {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid #16382a;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 28%, rgba(255,255,255,.32), transparent 18%),
        radial-gradient(circle at 68% 72%, rgba(8,84,40,.14), transparent 28%),
        linear-gradient(145deg, #8ff98d 0 20%, #48d367 46%, #1b8a49 100%);
    box-shadow:
        inset 0 -10px 16px rgba(10,82,45,.22),
        0 12px 24px rgba(25,117,62,.16);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 100% 50%, 100% 50%, 100% 100%, 0 100%);
    transform-origin: center;
}

.grombi-logo-face::before {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(236,255,237,.64);
    border-radius: 50%;
    content: "";
    box-shadow: inset -11px 0 0 rgba(16,100,48,.14);
}

.grombi-logo-face::after {
    position: absolute;
    right: 9px;
    top: 51%;
    width: 14px;
    height: 8px;
    border-bottom: 2px solid rgba(7,56,32,.68);
    border-radius: 50%;
    content: "";
    transform: translateY(-50%) rotate(-5deg);
}

.grombi-logo-face > b {
    position: relative;
    z-index: 3;
    color: #092218;
    font-size: 3.45rem;
    font-weight: 800;
    line-height: .92;
    letter-spacing: -.105em;
    text-shadow: 0 1px rgba(255,255,255,.24);
    transform: translateX(-2px);
}

.grombi-logo-mark::before,
.grombi-logo-mark::after {
    content: none !important;
}

.grombi-logo-word {
    display: inline-flex !important;
    align-items: baseline;
    gap: 0;
    white-space: nowrap;
    line-height: .78;
    letter-spacing: -.05em;
}

.grombi-logo-letter {
    display: inline-block;
    color: #0c1817;
    font-size: clamp(2.95rem, 5vw, 5.15rem);
    font-weight: 700;
    line-height: .78;
    transform-origin: center;
    will-change: transform, opacity, filter;
}

.grombi-logo-letter--domain {
    color: var(--grombi-green-strong);
    font-size: clamp(1.16rem, 1.8vw, 1.92rem);
    letter-spacing: -.04em;
    transform: translateY(-.02em);
}

/* The JS sequence owns movement. Disable the earlier prototype loops. */
.grombi-logo--sequence .grombi-logo-mark,
.grombi-logo--sequence .grombi-logo-face,
.grombi-logo--sequence .grombi-logo-type > span,
.grombi-logo--sequence .grombi-logo-type small {
    animation: none !important;
}

.grombi-logo--sequence .grombi-logo-mark {
    z-index: 8;
    width: 102px;
    transform: translate3d(0,0,0);
    will-change: transform, opacity, filter;
}

.grombi-logo--sequence .grombi-logo-eye {
    z-index: 10;
}

.grombi-logo-particle {
    position: absolute;
    z-index: 20;
    width: 7px;
    height: 7px;
    pointer-events: none;
    border-radius: 50%;
    background: #5ee879;
    box-shadow: 0 0 0 1px rgba(11,73,42,.22);
}

.footer-grombi-logo .grombi-logo-face {
    border-color: rgba(190,255,198,.54);
    box-shadow:
        inset 0 -8px 14px rgba(8,69,37,.22),
        0 9px 20px rgba(0,0,0,.24),
        0 0 0 1px rgba(112,233,120,.08);
}

.footer-grombi-logo .grombi-logo-face > b {
    font-size: 1.9rem;
}

.footer-grombi-logo .grombi-logo-letter {
    color: #f4fff6;
    font-size: 2.35rem;
}

.footer-grombi-logo .grombi-logo-letter--domain {
    color: #70e978;
    font-size: .95rem;
}

@media (max-width: 600px) {
    .grombi-logo--sequence .grombi-logo-mark { width: 72px; }
    .grombi-logo-face > b { font-size: 2.5rem; }
    .grombi-logo-letter { font-size: clamp(2.2rem, 10.6vw, 3.05rem); }
    .grombi-logo-letter--domain { font-size: clamp(.9rem, 4.2vw, 1.16rem); }
    .footer-grombi-logo .grombi-logo-mark { width: 46px; }
    .footer-grombi-logo .grombi-logo-face > b { font-size: 1.72rem; }
    .footer-grombi-logo .grombi-logo-letter { font-size: 1.95rem; }
    .footer-grombi-logo .grombi-logo-letter--domain { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .grombi-logo--sequence .grombi-logo-mark,
    .grombi-logo--sequence .grombi-logo-face,
    .grombi-logo--sequence .grombi-logo-letter {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }
}


/* ============================================================
   GROMBI LOGO SEQUENCE v2.1 — clean mouth outline + reactive eyes
   ============================================================ */
.grombi-logo--sequence .grombi-logo-mark {
    clip-path: none !important;
    overflow: visible !important;
}

.grombi-logo--sequence .grombi-logo-face {
    overflow: hidden;
    border: 3px solid #10271e;
    clip-path: polygon(0 0,100% 0,100% 100%,0 100%);
    will-change: clip-path;
}

.grombi-logo--sequence .grombi-logo-face::after {
    content: none !important;
}

.grombi-mouth-line {
    position: absolute;
    z-index: 12;
    left: 58%;
    top: 50%;
    width: 48%;
    height: 3px;
    pointer-events: none;
    background: #10271e;
    border-radius: 999px;
    opacity: 0;
    transform-origin: left center;
    box-shadow: 0 0 0 .3px rgba(0,0,0,.18);
    will-change: transform, opacity;
}

.grombi-mouth-line--upper { transform: rotate(-34deg) scaleX(.12); }
.grombi-mouth-line--lower { transform: rotate(34deg) scaleX(.12); }

.grombi-logo--sequence .grombi-logo-eye {
    will-change: transform;
    transform-origin: center bottom;
}

/* React instead of flashing: the strapline tightens, jitters and pulses like an alarm. */
.grombi-logo--sequence.is-eating .grombi-logo-type small {
    color: #176941;
    animation: grombi-tag-panic 410ms steps(2,end) infinite !important;
}

.grombi-logo--sequence.is-spitting .grombi-logo-type small {
    color: #2088a8;
    animation: grombi-tag-release 620ms ease-out 1 !important;
}

@keyframes grombi-tag-panic {
    0%   { transform: translateX(0) skewX(0); letter-spacing: .14em; text-shadow: none; }
    25%  { transform: translateX(-1.5px) skewX(-3deg); letter-spacing: .105em; text-shadow: 2px 0 0 rgba(87,201,255,.20); }
    50%  { transform: translateX(1px) skewX(2deg); letter-spacing: .125em; text-shadow: -2px 0 0 rgba(47,185,91,.18); }
    75%  { transform: translateX(-.5px) skewX(-1deg); letter-spacing: .095em; text-shadow: 1px 0 0 rgba(87,201,255,.16); }
    100% { transform: translateX(0) skewX(0); letter-spacing: .14em; text-shadow: none; }
}

@keyframes grombi-tag-release {
    0%   { transform: scaleX(.94); letter-spacing: .08em; opacity: .65; }
    58%  { transform: scaleX(1.04); letter-spacing: .16em; opacity: 1; }
    100% { transform: scaleX(1); letter-spacing: .14em; opacity: 1; }
}

@media (max-width: 600px) {
    .grombi-mouth-line { height: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    .grombi-mouth-line { display: none !important; }
    .grombi-logo--sequence .grombi-logo-type small { animation: none !important; }
}


/* ============================================================
   GROMBI LOGO SEQUENCE v2.2 — refined mouth / internal eaten-letter memory
   ============================================================ */
.grombi-logo--sequence .grombi-logo-face {
    border-width: 2px;
}

.grombi-logo--sequence .grombi-logo-face > b {
    transition: opacity 140ms ease, transform 140ms ease;
}

.grombi-mouth-line {
    left: 48%;
    top: 50%;
    width: 34%;
    height: 2px;
    background: #10271e;
    box-shadow: none;
    transform-origin: left center;
}

.grombi-mouth-line--upper { transform: rotate(-37deg) scaleX(.12); }
.grombi-mouth-line--lower { transform: rotate(37deg) scaleX(.12); }

.grombi-logo--sequence .grombi-logo-eye {
    transition: transform 170ms ease, filter 170ms ease;
}

.grombi-logo--sequence .grombi-logo-eye::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: 70%;
    height: 34%;
    border-top: 1.5px solid rgba(8, 27, 20, .55);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(.78);
    transition: opacity 170ms ease, transform 170ms ease;
}

.grombi-logo--sequence.is-mouth-open .grombi-logo-eye::after {
    opacity: .92;
    transform: translate(-50%, -62%) scaleX(1);
}

@media (max-width: 600px) {
    .grombi-mouth-line {
        width: 33%;
        height: 2px;
        left: 49%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .grombi-logo--sequence .grombi-logo-eye::after {
        transition: none !important;
    }
}


/* ============================================================
   GROMBI LOGO SEQUENCE v2.3 — bigger G / synced bite / roll-back
   ============================================================ */
.grombi-logo--sequence .grombi-logo-face > b {
    transform-origin: center;
}

.grombi-logo--sequence .grombi-logo-face > b.is-default-glyph {
    font-size: 3.92rem;
    letter-spacing: -.13em;
    transform: translateX(-2px) scale(1);
}

.grombi-logo--sequence .grombi-logo-face > b.is-eaten-glyph {
    font-size: 3.12rem;
    letter-spacing: -.1em;
    transform: translateX(-1px) scale(1);
}

.grombi-logo--sequence .grombi-logo-face > b.is-domain-glyph {
    font-size: 1.68rem;
    letter-spacing: -.04em;
    transform: translateX(-1px) scale(1);
}

@media (max-width: 600px) {
    .grombi-logo--sequence .grombi-logo-face > b.is-default-glyph {
        font-size: 2.9rem;
    }

    .grombi-logo--sequence .grombi-logo-face > b.is-eaten-glyph {
        font-size: 2.34rem;
    }

    .grombi-logo--sequence .grombi-logo-face > b.is-domain-glyph {
        font-size: 1.24rem;
    }
}


/* ============================================================
   GROMBI LOGO SEQUENCE v2.4 — growth + color ramp
   ============================================================ */
.grombi-logo--sequence .grombi-logo-face {
    transition: background 180ms linear, border-color 180ms linear, box-shadow 180ms linear;
}

.grombi-logo--sequence .grombi-logo-face > b.is-default-glyph {
    font-size: 4.18rem;
    letter-spacing: -.14em;
}

.grombi-logo--sequence .grombi-logo-face > b.is-eaten-glyph {
    font-size: 3.02rem;
}

.grombi-logo--sequence .grombi-logo-face > b.is-domain-glyph {
    font-size: 1.6rem;
}

@media (max-width: 600px) {
    .grombi-logo--sequence .grombi-logo-face > b.is-default-glyph {
        font-size: 3.08rem;
    }

    .grombi-logo--sequence .grombi-logo-face > b.is-eaten-glyph {
        font-size: 2.28rem;
    }

    .grombi-logo--sequence .grombi-logo-face > b.is-domain-glyph {
        font-size: 1.18rem;
    }
}
