/* Hallmark · pre-emit critique: P5 H4 E5 S4 R5 V5 */
/* Hallmark · genre: utilitarian-playful · macrostructure: Ecosystem Index · theme: Sport
 * nav: N5 floating pill + mobile tab bar · footer: Ft2 inline · enrichment: none
 * H5 game launcher — NOT editorial / magazine / newspaper */

@import url("https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,500;0,600;0,700;1,700&family=Inter+Tight:ital,wght@0,600;0,700;1,700&family=JetBrains+Mono:wght@500&display=swap");

:root {
    --color-paper: oklch(98% 0.003 250);
    --color-paper-2: oklch(95% 0.005 250);
    --color-paper-3: oklch(91% 0.007 250);
    --color-rule: oklch(88% 0.01 250);
    --color-rule-2: oklch(78% 0.012 250);
    --color-muted: oklch(52% 0.02 250);
    --color-ink: oklch(16% 0.08 260);
    --color-ink-2: oklch(22% 0.06 258);
    --color-accent: oklch(58% 0.19 35);
    --color-accent-hover: oklch(52% 0.2 35);
    --color-accent-ink: oklch(98% 0.003 250);
    --color-focus: oklch(58% 0.19 35);
    --color-success: oklch(55% 0.16 145);
    --font-display: "Inter Tight", "Albert Sans", system-ui, sans-serif;
    --font-body: "Albert Sans", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    --radius-card: 12px;
    --radius-pill: 999px;
    --radius-launch: 20px;
    --rule-card: 1.5px;
    --shadow-card: 0 4px 14px oklch(16% 0.06 260 / 0.08);
    --shadow-lift: 0 12px 32px oklch(16% 0.08 260 / 0.14);
    --page-max: 76rem;
    --gutter: clamp(1rem, 4vw, 1.5rem);
    --pill-top: 0.75rem;
    --tabbar-h: 3.75rem;
    --dur: 200ms;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-ink);
    background: var(--color-paper-2);
    overflow-x: clip;
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
        padding-top: 4.5rem;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
}

:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

/* N5 · Floating pill */
.gx-pill {
    display: none;
}

@media (min-width: 768px) {
    .gx-pill {
        display: inline-flex;
        align-items: center;
        gap: 1.25rem;
        position: fixed;
        top: var(--pill-top);
        left: 50%;
        transform: translateX(-50%);
        z-index: 300;
        padding: 0.45rem 0.65rem 0.45rem 0.85rem;
        background: color-mix(in oklch, var(--color-paper) 82%, transparent);
        backdrop-filter: blur(14px) saturate(120%);
        border: 1px solid var(--color-rule);
        border-radius: var(--radius-pill);
        box-shadow: var(--shadow-card);
    }

    .gx-pill__brand {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
        color: var(--color-ink);
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 0.8rem;
        font-style: italic;
        letter-spacing: -0.02em;
        text-transform: none;
    }

    .gx-pill__logo {
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 8px;
    }

    .gx-pill__links {
        display: flex;
        gap: 0.35rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .gx-pill__links a {
        display: flex;
        align-items: center;
        min-height: 36px;
        padding: 0 0.75rem;
        font-size: 0.8125rem;
        font-weight: 600;
        text-decoration: none;
        color: var(--color-muted);
        border-radius: var(--radius-pill);
    }

    .gx-pill__links a:hover,
    .gx-pill__links a.is-active {
        color: var(--color-ink);
        background: var(--color-paper-3);
    }

    .gx-pill__play {
        min-height: 36px;
        padding: 0 1rem;
        background: var(--color-accent);
        color: var(--color-accent-ink);
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 0.75rem;
        font-style: italic;
        text-decoration: none;
        border-radius: var(--radius-pill);
    }

    .gx-pill__genres {
        position: relative;
    }

    .gx-pill__genres-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        min-height: 36px;
        padding: 0 0.85rem;
        border: 1px solid var(--color-rule);
        border-radius: var(--radius-pill);
        background: var(--color-paper-3);
        font-family: inherit;
        font-weight: 600;
        font-size: 0.8125rem;
        color: var(--color-ink);
        cursor: pointer;
        white-space: nowrap;
        max-width: 10rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gx-pill__genres-btn::after {
        content: "";
        flex-shrink: 0;
        width: 0.4rem;
        height: 0.4rem;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-1px);
        opacity: 0.65;
    }

    .gx-pill__genres-btn[aria-expanded="true"]::after {
        transform: rotate(-135deg) translateY(1px);
    }

    .gx-pill__genres-panel {
        position: absolute;
        top: calc(100% + 0.45rem);
        right: 0;
        z-index: 400;
        min-width: 11.5rem;
        max-width: 16rem;
        max-height: min(55vh, 18rem);
        overflow-y: auto;
        padding: 0.45rem;
        background: var(--color-paper);
        border: var(--rule-card) solid var(--color-rule-2);
        border-radius: var(--radius-card);
        box-shadow: var(--shadow-lift);
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }

    .gx-pill__genres-panel[hidden] {
        display: none !important;
    }

    .gx-pill__genres-panel .gx-cat-tag {
        width: 100%;
        justify-content: flex-start;
    }
}

.gx-cat-tag {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-muted);
    background: var(--color-paper-3);
    border: 1px solid var(--color-rule);
    border-radius: var(--radius-pill);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.gx-cat-tag:hover {
    color: var(--color-ink);
    border-color: var(--color-rule-2);
    background: var(--color-paper);
}

.gx-cat-tag.is-active {
    color: var(--color-accent-ink);
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.gx-drawer-cats__label {
    margin: 0.75rem 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.gx-drawer-cats__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding-bottom: 0.5rem;
}

.gx-drawer__sheet .gx-drawer-cats__tags .gx-cat-tag {
    display: inline-flex;
    min-height: 40px;
    line-height: 1.2;
    border-bottom: none;
}

/* Mobile top bar (minimal, not magazine masthead) */
.gx-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem var(--gutter);
    background: var(--color-paper);
    border-bottom: var(--rule-card) solid var(--color-rule-2);
    position: sticky;
    top: 0;
    z-index: 200;
}

@media (min-width: 768px) {
    .gx-topbar {
        display: none;
    }
}

.gx-topbar__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: 1rem;
}

.gx-topbar__logo {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
}

.gx-menu-btn {
    min-width: 44px;
    min-height: 44px;
    border: var(--rule-card) solid var(--color-rule-2);
    border-radius: var(--radius-card);
    background: var(--color-paper-2);
    font-weight: 700;
    cursor: pointer;
}

.gx-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 400;
    background: oklch(16% 0.06 260 / 0.45);
}

.gx-drawer.is-open {
    display: block;
}

.gx-drawer__sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: var(--color-paper);
    border-radius: var(--radius-launch) var(--radius-launch) 0 0;
    padding: 1.25rem var(--gutter) calc(var(--tabbar-h) + 1rem);
    overflow-y: auto;
}

.gx-drawer__close {
    float: right;
    min-width: 44px;
    min-height: 44px;
    border: var(--rule-card) solid var(--color-rule-2);
    border-radius: 12px;
    background: var(--color-paper-2);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
}

.gx-drawer__nav {
    clear: both;
}

.gx-drawer__sheet .gx-drawer__nav a {
    display: block;
    min-height: 48px;
    line-height: 48px;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-ink);
    border-bottom: 1px solid var(--color-rule);
}

/* Mobile tab bar — game app pattern */
.gx-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    min-height: var(--tabbar-h);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--color-paper);
    border-top: var(--rule-card) solid var(--color-rule-2);
    box-shadow: 0 -4px 20px oklch(16% 0.06 260 / 0.06);
}

@media (min-width: 768px) {
    .gx-tabbar {
        display: none;
    }
}

.gx-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 48px;
    padding: 0.35rem 0.25rem 0.25rem;
    text-decoration: none;
    color: var(--color-muted);
}

.gx-tabbar a.is-active {
    color: var(--color-accent);
}

.gx-tabbar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    flex-shrink: 0;
    opacity: 0.5;
}

.gx-tabbar__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.gx-tabbar a.is-active .gx-tabbar__icon {
    opacity: 1;
}

.gx-tabbar__label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

/* Page */
.gx-page {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 1rem var(--gutter) 2rem;
}

.gx-skip {
    position: absolute;
    left: -9999px;
}

.gx-skip:focus {
    left: var(--gutter);
    z-index: 500;
    padding: 0.5rem 1rem;
    background: var(--color-ink);
    color: var(--color-accent-ink);
}

/* Page banner — genres / marketing */
.gx-page-banner {
    margin: 0 0 1.25rem;
    border-radius: var(--radius-launch);
    overflow: hidden;
    border: var(--rule-card) solid var(--color-rule);
    box-shadow: var(--shadow-card);
}

.gx-page-banner img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

/* Launch hero — immersive game cover */
.gx-launch {
    position: relative;
    border-radius: var(--radius-launch);
    overflow: hidden;
    min-height: min(52vw, 22rem);
    margin-bottom: 1.25rem;
    border: var(--rule-card) solid var(--color-ink);
    box-shadow: var(--shadow-lift);
}

.gx-launch__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gx-launch__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, oklch(16% 0.08 260 / 0.88) 0%, oklch(16% 0.08 260 / 0.35) 55%, transparent 100%);
}

.gx-launch__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: inherit;
    padding: 1.25rem;
    color: var(--color-accent-ink);
}

.gx-launch__poster {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--radius-card);
    object-fit: cover;
    border: 2px solid oklch(98% 0.003 250 / 0.9);
    box-shadow: var(--shadow-card);
    margin-bottom: 0.65rem;
}

.gx-launch__poster[hidden] {
    display: none;
}

.gx-launch__tag {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.gx-launch__rating {
    margin: 0 0 0.65rem;
}

.gx-launch__rating .gx-rating {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    background: oklch(98% 0.003 250 / 0.92);
    color: var(--color-ink);
    font-size: 0.8125rem;
    font-weight: 600;
}

.gx-launch__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: clamp(1.5rem, 4.5vw, 2.25rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0.35rem 0 0.75rem;
    overflow-wrap: anywhere;
    min-width: 0;
}

.gx-launch__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.gx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.25rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: 0.8125rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    border: var(--rule-card) solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.gx-btn--play {
    background: var(--color-accent);
    color: var(--color-accent-ink);
    border-color: var(--color-accent);
}

.gx-btn--play:hover {
    background: var(--color-accent-hover);
    color: var(--color-accent-ink);
}

.gx-btn--ghost {
    background: oklch(98% 0.003 250 / 0.15);
    color: var(--color-accent-ink);
    border-color: oklch(98% 0.003 250 / 0.4);
}

.gx-ad {
    border: var(--rule-card) dashed var(--color-rule-2);
    border-radius: var(--radius-card);
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--color-paper);
    overflow: hidden;
}

/* Section ads — ~2–3 viewport rhythm between major blocks on mobile */
.gx-ad--section {
    margin-block: clamp(1.75rem, 8vh, 3rem);
}

.gx-ad--infeed {
    margin-bottom: 0;
    width: 100%;
}

.gx-grid-ad {
    grid-column: 1 / -1;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gx-grid-ad .gx-ad {
    margin-bottom: 0;
}

/* Chip filter */
.gx-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0 1rem;
    -webkit-overflow-scrolling: touch;
}

.gx-chips button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 1rem;
    border: var(--rule-card) solid var(--color-rule-2);
    border-radius: var(--radius-pill);
    background: var(--color-paper);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    color: var(--color-ink-2);
}

.gx-chips button.is-active {
    background: var(--color-ink);
    border-color: var(--color-ink);
    color: var(--color-accent-ink);
}

/* Ecosystem shelf */
.gx-shelf {
    margin-bottom: 1.75rem;
}

.gx-shelf__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.gx-shelf__head h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    margin: 0;
}

.gx-shelf__head a {
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.gx-rail {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Rail card — portrait launcher (fixed tile size) */
.gx-rail-card {
    flex: 0 0 7.5rem;
    width: 7.5rem;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.gx-rail-card__img {
    position: relative;
    width: 100%;
    height: 10rem;
    flex-shrink: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: var(--rule-card) solid var(--color-rule-2);
    background: var(--color-paper-3);
    box-shadow: var(--shadow-card);
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.gx-rail-card:hover .gx-rail-card__img {
    transform: scale(1.03);
    border-color: var(--color-accent);
}

.gx-rail-card__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gx-rail-card__name {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gx-rail-card__meta {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--color-muted);
}

.gx-rail-card__meta .gx-rating {
    color: var(--color-success);
    font-weight: 600;
}

/* Hot games — light editorial stack (Sport palette, not rail / not icon grid) */
.gx-hot {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--color-paper);
    color: var(--color-ink-2);
    border-radius: var(--radius-launch);
    border: var(--rule-card) solid var(--color-rule-2);
    box-shadow: var(--shadow-card);
}

.gx-hot__head {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: var(--rule-card) solid var(--color-rule);
}

@media (min-width: 720px) {
    .gx-hot__head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1.5rem;
    }
}

.gx-hot__eyebrow {
    margin: 0 0 0.2rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.gx-hot__head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.gx-hot__lead {
    margin: 0;
    max-width: 22rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--color-muted);
}

.gx-hot__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gx-hot__card {
    display: grid;
    grid-template-columns: auto 5.25rem minmax(0, 1fr);
    gap: 0.75rem 1rem;
    align-items: start;
    padding: 0.85rem 0.9rem;
    background: var(--color-paper-2);
    border: var(--rule-card) solid var(--color-rule);
    border-radius: var(--radius-card);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.gx-hot__card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-card);
}

.gx-hot__rank {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-rule-2);
    padding-top: 0.15rem;
}

.gx-hot__thumb {
    position: relative;
    display: block;
    width: 5.25rem;
    height: 5.25rem;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: var(--rule-card) solid var(--color-rule-2);
    background: var(--color-paper-3);
    flex-shrink: 0;
    box-shadow: var(--shadow-card);
}

.gx-hot__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gx-hot__thumb .gx-rating-badge {
    top: 0.25rem;
    right: 0.25rem;
    font-size: 0.5625rem;
    padding: 0.15rem 0.35rem;
}

.gx-hot__body {
    min-width: 0;
}

.gx-hot__name {
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gx-hot__name a {
    color: var(--color-ink);
    text-decoration: none;
}

.gx-hot__name a:hover {
    color: var(--color-accent);
}

.gx-hot__meta {
    margin: 0 0 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--color-muted);
}

.gx-hot__meta .gx-rating {
    color: var(--color-success);
    font-weight: 600;
}

.gx-hot__desc {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--color-ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gx-hot__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
}

.gx-hot__play {
    min-height: 36px;
    padding: 0 0.9rem;
    font-size: 0.75rem;
}

.gx-hot__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-muted);
    text-decoration: none;
}

.gx-hot__link:hover {
    color: var(--color-accent);
}

@media (min-width: 640px) {
    .gx-hot__card {
        grid-template-columns: auto 6.5rem minmax(0, 1fr);
        gap: 0.85rem 1.15rem;
        padding: 1rem 1.1rem;
    }

    .gx-hot__thumb {
        width: 6.5rem;
        height: 6.5rem;
    }

    .gx-hot__desc {
        -webkit-line-clamp: 2;
    }
}

/* Main grid — square launcher icons */
.gx-grid-section h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
}

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

@media (min-width: 480px) {
    .gx-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

@media (min-width: 900px) {
    .gx-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.gx-icon-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gx-icon-card__img {
    aspect-ratio: 1;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: var(--rule-card) solid var(--color-rule-2);
    background: var(--color-paper);
    box-shadow: var(--shadow-card);
    position: relative;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.gx-icon-card:hover .gx-icon-card__img {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.gx-icon-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gx-rating-badge {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 1;
    padding: 0.2rem 0.45rem;
    background: var(--color-ink);
    color: var(--color-accent-ink);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 6px;
    line-height: 1.2;
    white-space: nowrap;
}

.gx-icon-card__label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gx-sentinel {
    grid-column: 1 / -1;
    height: 2px;
}

.gx-info {
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--color-paper);
    border: var(--rule-card) solid var(--color-rule-2);
    border-radius: var(--radius-card);
    font-size: 0.875rem;
    color: var(--color-muted);
}

.gx-info__layout {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 768px) {
    .gx-info__layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: 1.5rem;
    }
}

.gx-info__promo {
    margin: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: var(--rule-card) solid var(--color-rule);
    box-shadow: var(--shadow-card);
}

.gx-info__promo img {
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    display: block;
}

.gx-info__copy {
    min-width: 0;
}

.gx-info h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    color: var(--color-ink);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.gx-info h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--color-ink);
    margin: 1.25rem 0 0.5rem;
}

.gx-info p {
    margin: 0 0 0.75rem;
    line-height: 1.55;
}

.gx-info a {
    color: var(--color-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Detail — game page */
.gx-detail-hero {
    margin: 0 calc(-1 * var(--gutter)) 1.25rem;
    position: relative;
    aspect-ratio: 16 / 10;
    max-height: 20rem;
    background: var(--color-ink);
}

@media (min-width: 768px) {
    .gx-detail-hero {
        margin: 0 0 1.25rem;
        border-radius: var(--radius-launch);
        overflow: hidden;
        border: var(--rule-card) solid var(--color-ink);
    }
}

.gx-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.gx-detail-play-fab {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    min-width: 3.5rem;
    min-height: 3.5rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-accent-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: 0.75rem;
    text-decoration: none;
    border: 3px solid var(--color-accent-ink);
    box-shadow: var(--shadow-lift);
}

.gx-segments {
    display: flex;
    gap: 0.35rem;
    padding: 0.25rem;
    background: var(--color-paper-3);
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
    overflow-x: auto;
}

.gx-segments button {
    flex: 1 0 auto;
    min-height: 40px;
    padding: 0 1rem;
    border: none;
    border-radius: var(--radius-pill);
    background: transparent;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    color: var(--color-muted);
    white-space: nowrap;
}

.gx-segments button.is-active {
    background: var(--color-paper);
    color: var(--color-ink);
    box-shadow: var(--shadow-card);
}

.gx-panel {
    display: none;
    padding: 1rem;
    background: var(--color-paper);
    border: var(--rule-card) solid var(--color-rule-2);
    border-radius: var(--radius-card);
    margin-bottom: 1rem;
    color: var(--color-ink-2);
    font-size: 0.9375rem;
}

.gx-panel.is-active {
    display: block;
}

.gx-panel[hidden] {
    display: none !important;
}

.gx-detail-meta {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--color-muted);
}

.gx-rating-note {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    color: var(--color-muted);
}

@media (min-width: 480px) {
    .gx-rating-note {
        display: inline;
        margin-top: 0;
    }
}

.gx-detail-desc {
    color: var(--color-ink-2);
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

.gx-comments-section {
    margin-top: 1.5rem;
}

.gx-comments-section__title {
    margin-bottom: 0.5rem;
}

.gx-ugc-note {
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin: 0 0 1rem;
    line-height: 1.45;
}

.gx-ugc-note a {
    color: inherit;
    text-decoration: underline;
}

.gx-detail-not-found {
    text-align: center;
    padding: 2.5rem 1rem 3rem;
}

.gx-detail-not-found__text {
    color: var(--color-muted);
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.gx-detail-not-found .gx-btn {
    display: inline-flex;
    margin: 0.35rem;
}

.gx-detail-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem;
    overflow-wrap: anywhere;
}

.gx-rating {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-success);
    font-weight: 500;
}

.gx-genres {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (min-width: 600px) {
    .gx-genres {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.gx-genres a {
    min-height: 4.5rem;
    padding: 0.85rem;
    display: flex;
    align-items: flex-end;
    background: var(--color-paper);
    border: var(--rule-card) solid var(--color-ink);
    border-radius: var(--radius-card);
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--color-ink);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.gx-genres a:hover {
    background: var(--color-accent);
    color: var(--color-accent-ink);
}

.gx-play-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-ink);
    padding-bottom: 0;
}

.gx-play-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem var(--gutter);
    background: var(--color-paper);
    border-bottom: var(--rule-card) solid var(--color-rule-2);
}

.gx-play-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gx-play-footer {
    padding: 0.65rem var(--gutter);
    background: var(--color-paper);
    border-top: var(--rule-card) solid var(--color-rule-2);
}

.gx-play-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
}

.gx-play-footer__nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-muted);
}

.gx-play-footer__nav a:hover {
    color: var(--color-ink);
}

.gx-play-stage iframe {
    width: 100%;
    max-width: 960px;
    height: min(80vh, 680px);
    border: none;
    border-radius: var(--radius-card);
}

.gx-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.gx-form input,
.gx-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 0.85rem;
    border: var(--rule-card) solid var(--color-rule-2);
    border-radius: var(--radius-card);
    font: inherit;
    margin-bottom: 0.75rem;
}

.gx-form textarea {
    min-height: 7rem;
}

.gx-legal h1 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0 0 0.5rem;
    color: var(--color-ink);
}

.gx-legal__lead {
    color: var(--color-muted);
    margin: 0 0 1.5rem;
    line-height: 1.55;
    max-width: 42rem;
}

.gx-legal__meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    margin: 0 0 1.25rem;
}

.gx-legal__doc {
    padding: 1.25rem 1.15rem;
    background: var(--color-paper);
    border: var(--rule-card) solid var(--color-rule-2);
    border-radius: var(--radius-card);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-muted);
}

.gx-legal__doc section + section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-rule);
}

.gx-legal__doc h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-ink);
    margin: 0 0 0.65rem;
}

.gx-legal__doc h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-ink);
    margin: 1rem 0 0.35rem;
}

.gx-legal__doc p {
    margin: 0 0 0.75rem;
}

.gx-legal__doc ul {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
}

.gx-legal__doc li {
    margin-bottom: 0.35rem;
}

.gx-legal__doc a {
    color: var(--color-ink);
    font-weight: 600;
}

.gx-legal__cards {
    display: grid;
    gap: 0.85rem;
    margin: 0 0 1.5rem;
}

@media (min-width: 640px) {
    .gx-legal__cards {
        grid-template-columns: 1fr 1fr;
    }
}

.gx-legal__card {
    padding: 1rem 1.1rem;
    background: var(--color-paper);
    border: var(--rule-card) solid var(--color-rule);
    border-radius: var(--radius-card);
}

.gx-legal__card h2 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-ink);
    margin: 0 0 0.35rem;
}

.gx-legal__card p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--color-muted);
}

.gx-legal__card a {
    display: inline-block;
    margin-top: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.gx-support-links {
    display: grid;
    gap: 0.65rem;
    margin: 0 0 1.5rem;
}

.gx-support-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: inherit;
    background: var(--color-paper);
    border: var(--rule-card) solid var(--color-rule);
    border-radius: var(--radius-card);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.gx-support-link:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-card);
}

.gx-support-link__title {
    display: block;
    font-weight: 700;
    color: var(--color-ink);
    font-size: 0.9375rem;
}

.gx-support-link__desc {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin-top: 0.15rem;
}

.gx-support-link__arrow {
    margin-left: auto;
    color: var(--color-accent);
    font-weight: 700;
}

.gx-legal__notice {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin: 0.75rem 0 0;
    line-height: 1.5;
}

.gx-legal__form-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-ink);
    margin: 0 0 0.75rem;
}

.gx-hidden {
    display: none !important;
}

.gx-toast {
    position: fixed;
    bottom: calc(var(--tabbar-h) + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    padding: 0.65rem 1.15rem;
    background: var(--color-ink);
    color: var(--color-accent-ink);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-pill);
    z-index: 500;
    opacity: 0;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.gx-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (min-width: 768px) {
    .gx-toast {
        bottom: 1.5rem;
    }
}

/* Ft2 footer — brand, link grid, disclaimer, copyright */
.gx-footer {
    max-width: var(--page-max);
    margin: 2rem auto 0;
    padding: 1.5rem var(--gutter);
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    border-top: var(--rule-card) solid var(--color-rule-2);
    font-size: 0.8125rem;
    color: var(--color-muted);
    background: var(--color-paper);
}

@media (max-width: 767px) {
    .gx-footer {
        padding-bottom: calc(1.5rem + var(--tabbar-h) + env(safe-area-inset-bottom));
    }
}

.gx-footer__top {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .gx-footer__top {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
        align-items: start;
    }
}

.gx-footer__wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--color-ink);
    margin: 0 0 0.35rem;
}

.gx-footer__tagline {
    margin: 0;
    line-height: 1.45;
    max-width: 28rem;
}

.gx-footer__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

@media (min-width: 520px) {
    .gx-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gx-footer__col-title {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-ink);
    margin: 0 0 0.5rem;
}

.gx-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.gx-footer__list a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-muted);
    font-weight: 600;
}

.gx-footer__list a:hover {
    color: var(--color-ink);
}

.gx-footer__list a.is-active {
    color: var(--color-accent);
}

.gx-footer__disclaimer {
    margin: 0 0 0.85rem;
    line-height: 1.5;
    font-size: 0.75rem;
    color: var(--color-muted);
    border-top: 1px solid var(--color-rule);
    padding-top: 0.85rem;
}

.gx-footer__copy {
    margin: 0;
    font-size: 0.75rem;
    color: var(--color-muted);
}

.gx-play-footer__brand {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-ink);
    text-align: center;
}

.gx-play-footer__disclaimer {
    margin: 0.65rem 0 0;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: var(--color-muted);
    text-align: center;
}

.gx-play-footer__disclaimer a {
    color: var(--color-ink);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .gx-rail-card:hover .gx-rail-card__img,
    .gx-icon-card:hover .gx-icon-card__img {
        transform: none;
    }
}
