/* ==========================================================================
   Lumin Hub — v2
   Monochrome system: near-black surfaces, hairline borders, two-tone type.
   The violet brand art is the only large use of colour.
   ========================================================================== */

/* self-hosted (latin, variable weight) so no third-party CSS blocks first paint */
@font-face {
    font-family: "Geist"; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url("fonts/geist-latin.woff2") format("woff2");
}
@font-face {
    font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
    src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
}

@property --gx { syntax: "<percentage>"; inherits: true; initial-value: 22%; }
@property --gy { syntax: "<percentage>"; inherits: true; initial-value: 12%; }

/* cross-page fade; the nav stays put */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.18s ease both; }
::view-transition-new(root) { animation: vt-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

:root {
    --bg: #09090b;
    --bg-2: #0f0f12;
    --bg-3: #16161a;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #ededf0;
    --text-2: #a1a1aa;
    --text-3: #6b6b76;
    --accent: #c700ff;          /* straight from the in-game UI */
    --accent-soft: #d98cff;

    --r-lg: 24px;
    --r: 16px;
    --r-sm: 12px;

    --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --wrap: 1200px;
    --gutter: 1.5rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex; flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; width: 100%; }
/* faint top light + fine grain behind everything (depth without colour) */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 70% 45% at 50% -12%, rgba(255, 255, 255, 0.075), transparent 70%);
}
body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: var(--grain);
    background-size: 200px 200px;
    opacity: 0.035;
}
::selection { background: rgba(199, 0, 255, 0.45); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #232329; border-radius: 5px; border: 2px solid var(--bg); }
* { scrollbar-width: thin; scrollbar-color: #232329 var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
svg { display: block; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.muted { color: var(--text-2); }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

/* ---------- buttons: small pills --------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    height: 2.5rem; padding: 0 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem; font-weight: 500; letter-spacing: -0.005em;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:active { transform: scale(0.98); }
.btn-sm { height: 2.1rem; padding: 0 0.9rem; font-size: 0.84rem; }
.btn-light, .btn-primary { color: #09090b; background: #ededf0; }
.btn-light:hover, .btn-primary:hover { background: #fff; }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn-arrow { display: inline-block; transition: transform 0.25s var(--ease-out); }
a:hover .btn-arrow, .btn:hover .btn-arrow { transform: translateX(2px); }

.link-arrow {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.9rem; font-weight: 500; color: var(--text-2);
    transition: color 0.2s ease;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease-out); }
.link-arrow:hover { color: var(--text); }
.link-arrow:hover svg { transform: translateX(2px); }

.icon-btn { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; color: var(--text-2); transition: color 0.2s ease; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--text); }

/* ---------- header: the one piece of glass ------------------------------ */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: 0.75rem; pointer-events: none; }
.site-head > .wrap { pointer-events: auto; }
.bar {
    display: flex; align-items: center; gap: 1rem;
    height: 3.25rem; padding: 0 0.45rem 0 1rem;
    border-radius: 999px;
    background: rgba(18, 18, 22, 0.6);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px -12px rgba(0, 0, 0, 0.7);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 26px; width: auto; }
.nav-links { position: relative; display: flex; align-items: center; gap: 0.1rem; margin-inline: auto; }
.nav-links a { position: relative; z-index: 1; padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.86rem; font-weight: 500; color: var(--text-2); transition: color 0.2s ease; }
.nav-pill {
    position: absolute; left: 0; top: 50%; z-index: 0;
    width: 0; height: 2rem; margin-top: -1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    opacity: 0;
    pointer-events: none;
}
.site-head { view-transition-name: site-head; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.scroll-line { display: none; }
.menu-btn { display: none; width: 2.4rem; height: 2.4rem; position: relative; border-radius: 999px; margin-left: auto; }
.menu-btn span {
    position: absolute; left: 50%; width: 16px; height: 1.5px; margin-left: -8px;
    border-radius: 2px; background: var(--text);
    transition: transform 0.35s var(--ease-out);
}
.menu-btn span:first-child { top: calc(50% - 3.5px); }
.menu-btn span:last-child { top: calc(50% + 2.5px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu {
    display: grid; gap: 0.1rem;
    margin-top: 0.5rem; padding: 0.5rem;
    border-radius: 20px;
    background: #121216;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 40px -12px rgba(0, 0, 0, 0.8);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > a:not(.btn) { padding: 0.75rem 0.85rem; border-radius: 12px; font-size: 1rem; font-weight: 500; color: var(--text-2); }
.mobile-menu > a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.mobile-menu .btn { margin-top: 0.35rem; height: 2.75rem; }

/* ---------- type -------------------------------------------------------- */
.display {
    font-size: clamp(2.6rem, 5vw, 4.3rem);
    font-weight: 600; line-height: 1; letter-spacing: -0.05em;
}
.display .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.display .line + .line { color: var(--text-3); }
.display .w { display: inline-block; padding-bottom: 0.06em; }
.lede {
    max-width: 38rem;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 500; line-height: 1.2; letter-spacing: -0.03em;
    color: var(--text-3);
}
.lede strong { font-weight: 500; color: var(--text); }
/* even line lengths, no one-word last lines */
.display, .lede, .page-title { text-wrap: balance; }
.sub, .legal-list li, .why-card p { text-wrap: pretty; }
.sub { max-width: 30rem; color: var(--text-2); font-size: 1.05rem; line-height: 1.55; }

/* ---------- hero -------------------------------------------------------- */
.hero { padding-top: clamp(7.5rem, 15vh, 9.5rem); }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.hero-copy .sub { margin-top: -0.25rem; }

.loader {
    display: flex; align-items: center; gap: 0.6rem;
    width: min(36rem, 100%);
    height: 2.9rem;
    padding: 0 0.35rem 0 0.95rem;
    border-radius: var(--r-sm);
    background: var(--bg-2);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow 0.25s ease;
}
.loader:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.loader.flash { box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.5); }
.loader code {
    flex: 1; min-width: 0;
    font-family: var(--mono); font-size: 0.74rem; color: var(--text-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tk-fn { color: var(--text); }
.tk-str { color: var(--accent-soft); }
.copy-btn {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 0.4rem;
    height: 2.15rem; padding: 0 0.8rem;
    border-radius: 9px;
    font-size: 0.8rem; font-weight: 500; color: var(--text);
    background: var(--bg-3);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background 0.2s ease;
}
.copy-btn:hover { background: #1d1d22; }
.copy-btn.copied { color: #4ade80; }
.copy-icon { position: relative; width: 14px; height: 14px; }
.copy-icon svg { position: absolute; inset: 0; width: 14px; height: 14px; transition: opacity 0.2s ease, transform 0.3s var(--ease-out); }
.ic-check { opacity: 0; transform: scale(0.5); }
.copied .ic-copy { opacity: 0; transform: scale(0.5); }
.copied .ic-check { opacity: 1; transform: none; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* hero screenshot: just the UI, tilted in 3D (site.js nudges --tx/--ty with the cursor) */
.stage { position: relative; }
.stage-float { perspective: 1600px; animation: float 9s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(-6px); }
    50% { transform: translateY(8px); }
}
.shot {
    position: relative;
    transition: --gx 0.6s var(--ease-out), --gy 0.6s var(--ease-out);
    border-radius: 12px;
    overflow: hidden;
    transform-origin: 40% 50%;
    transform:
        translateY(calc(var(--py, 0) * 1px))
        rotateY(calc(-16deg + var(--tx, 0) * 1deg))
        rotateX(calc(7deg + var(--ty, 0) * 1deg));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 40px 50px 90px -30px rgba(0, 0, 0, 0.9);
    will-change: transform;
}
.shot img { width: 100%; }
/* soft highlight that tracks the cursor, like light on a screen */
.shot-glare {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(560px circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.16), transparent 55%);
    mix-blend-mode: overlay;
}
.shot::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* ---------- sections ---------------------------------------------------- */
.sec { padding-top: clamp(5rem, 11vh, 8rem); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem 3rem; flex-wrap: wrap; margin-bottom: 2.25rem; }

/* ---------- games ------------------------------------------------------- */
.games-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem 1rem; }
.ggrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 1rem; }
.game { display: block; }
.game[hidden] { display: none; }
.game-media {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--bg-2);
}
.game-media::after {
    content: ""; position: absolute; inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.3s ease;
    pointer-events: none;
}
.game-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.game-media::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
    transform: translateX(-130%);
}
.game:hover .game-media::before { transform: translateX(130%); transition: transform 0.9s var(--ease-out); }
.game-ph { display: grid; place-items: center; height: 100%; padding: 1rem; text-align: center; font-weight: 600; color: var(--text-3); }
.game-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.7rem; }
.game-name { min-width: 0; font-size: 0.9rem; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s ease; }
.game-go { flex-shrink: 0; color: var(--text-3); opacity: 0; transform: translate(-3px, 3px); transition: opacity 0.25s ease, transform 0.3s var(--ease-out), color 0.2s ease; }
.game-go svg { width: 14px; height: 14px; }
.game:hover .game-media img { transform: scale(1.04); }
.game:hover .game-media::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.game:hover .game-name { color: var(--text); }
.game:hover .game-go { opacity: 1; transform: none; color: var(--text); }

/* ---------- stats ------------------------------------------------------- */
.stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: var(--r-lg);
    background: var(--bg-2);
    box-shadow: inset 0 0 0 1px var(--line);
    overflow: hidden;
}
.stat { display: block; padding: 2rem 2rem 2.1rem; transition: background 0.2s ease; }
.stat + .stat { border-left: 1px solid var(--line); }
a.stat:hover { background: rgba(255, 255, 255, 0.02); }
.stat-num { font-size: clamp(2.2rem, 3.8vw, 3.1rem); font-weight: 500; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.stat-lbl { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.75rem; font-size: 0.86rem; color: var(--text-3); transition: color 0.2s ease; }
.stat-lbl svg { width: 13px; height: 13px; }
.live-dot {
    width: 7px; height: 7px; margin-right: 0.15rem; border-radius: 50%;
    background: #4ade80;
    animation: live 2s ease-out infinite;
}
@keyframes live {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45); }
    100% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
}
a.stat:hover .stat-lbl { color: var(--text-2); }

/* ---------- CTA --------------------------------------------------------- */
.sec-cta { padding-bottom: clamp(4rem, 9vh, 6rem); }
.cta {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem; flex-wrap: wrap;
    padding: clamp(2.2rem, 5vw, 3.5rem);
    border-radius: var(--r-lg);
    background: var(--bg-2);
    box-shadow: inset 0 0 0 1px var(--line);
}
.cta::before {
    content: ""; position: absolute; top: -40%; bottom: -40%; right: -10%; width: 60%; z-index: -1;
    background: url("lumin-art-900.webp") center / cover no-repeat;
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(to left, #000 20%, transparent 90%);
    mask-image: linear-gradient(to left, #000 20%, transparent 90%);
    translate: calc(var(--cx, 0) * 1px) calc(var(--cy, 0) * 1px);
    transition: translate 0.8s var(--ease-out);
    animation: cta-drift 24s ease-in-out infinite alternate;
}
@keyframes cta-drift {
    from { transform: translateX(-4%) scale(1.02); }
    to { transform: translateX(4%) scale(1.06); }
}
.cta .lede { max-width: 32rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- sub pages --------------------------------------------------- */
.page-hero { padding-top: clamp(8rem, 17vh, 10rem); padding-bottom: 2.75rem; }
.page-title { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.045em; }
.page-title .count { color: var(--text-3); font-weight: 500; }
.page-hero .sub { margin-top: 1rem; }
.sec-tight { padding-top: 0; }
.wrap-narrow { width: min(760px, 100% - var(--gutter) * 2); }

/* games page */
.search {
    display: flex; align-items: center; gap: 0.6rem;
    width: min(24rem, 100%); height: 2.6rem;
    margin-top: 1.75rem; padding: 0 0.6rem 0 0.9rem;
    border-radius: 999px;
    background: var(--bg-2);
    box-shadow: inset 0 0 0 1px var(--line);
    cursor: text;
    transition: box-shadow 0.2s ease;
}
.search:focus-within { box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 4px rgba(255, 255, 255, 0.04); }
.search svg { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 0.92rem; }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { font-family: var(--mono); font-size: 0.7rem; color: var(--text-3); padding: 0.1rem 0.4rem; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.games-page { padding-bottom: clamp(3rem, 8vh, 5rem); }
.empty { padding: 3rem 0; color: var(--text-2); }
.empty[hidden] { display: none; }

/* cards (get key / reseller) */
.card {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column;
    padding: 1.75rem;
    border-radius: var(--r-lg);
    background: var(--bg-2);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow 0.25s ease;
}
.card:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.card-featured::before {
    content: ""; position: absolute; inset: 0 0 45% 0; z-index: -1;
    background: url("lumin-art-900.webp") 50% 35% / cover no-repeat;
    opacity: 0.6;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
    mask-image: linear-gradient(to bottom, #000, transparent);
}
.card .btn { width: 100%; margin-top: auto; }

.key-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.key-badge {
    position: absolute; top: 1.4rem; right: 1.4rem;
    padding: 0.2rem 0.6rem; border-radius: 999px;
    font-size: 0.72rem; font-weight: 500; color: #fff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.key-card-logo { display: flex; align-items: center; height: 40px; margin-bottom: 1.5rem; }
.key-card-logo img { max-height: 30px; width: auto; }
.key-card h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; }
.key-list { list-style: none; margin: 0 0 2rem; display: grid; gap: 0.55rem; }
.key-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--text-2); }
.key-list svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--text-3); }
.why-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: var(--r-lg);
    background: var(--bg-2);
    box-shadow: inset 0 0 0 1px var(--line);
    overflow: hidden;
}
.why-card { padding: 1.9rem 2rem 2rem; }
.why-card + .why-card { border-left: 1px solid var(--line); }
.why-card .icon { color: var(--text-2); margin-bottom: 1.1rem; }
.why-card .icon svg { width: 20px; height: 20px; }
.why-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.why-card p { font-size: 0.92rem; color: var(--text-2); }

.sellers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.seller-icon {
    display: grid; place-items: center;
    width: 3rem; height: 3rem; margin-bottom: 1.4rem;
    border-radius: 14px;
    background: var(--bg-3);
    box-shadow: inset 0 0 0 1px var(--line);
    overflow: hidden;
}
.seller-icon svg { width: 24px; height: 24px; }
.seller-icon img { width: 72%; height: 72%; object-fit: contain; }
.seller-card h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; }
.seller-card .desc { margin-top: 0.35rem; color: var(--text-2); font-size: 0.93rem; }
.pay-label { margin-top: 1.6rem; font-size: 0.8rem; color: var(--text-3); }
.pay-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 2rem; }
.pay-tags span {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.32rem 0.7rem 0.32rem 0.5rem; border-radius: 999px;
    font-size: 0.8rem; color: var(--text-2);
    background: var(--bg-3);
    box-shadow: inset 0 0 0 1px var(--line);
}
.pay-tags svg { width: 14px; height: 14px; flex: 0 0 14px; }

/* ToS / privacy: plain document */
.legal-sec { padding: 2rem 0; border-top: 1px solid var(--line); }
.legal-sec h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.9rem; }
.legal-list { list-style: none; display: grid; gap: 0.6rem; }
.legal-list li { position: relative; padding-left: 1.2rem; color: var(--text-2); font-size: 0.97rem; line-height: 1.65; }
.legal-list li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 7px; height: 1px; background: var(--text-3); }
.legal a, .notice a { color: var(--text); text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 3px; }
.notice { margin-top: 1rem; padding: 1.5rem 1.6rem; border-radius: var(--r); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.notice h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.notice p { color: var(--text-2); font-size: 0.95rem; }

/* ---------- footer ------------------------------------------------------ */
.foot { flex-shrink: 0; border-top: 1px solid var(--line); padding: 1.75rem 0; margin-top: clamp(2rem, 5vh, 4rem); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot p { font-size: 0.84rem; color: var(--text-3); }
.foot-links { display: flex; align-items: center; gap: 1.25rem; }
.foot-links a:not(.icon-btn) { font-size: 0.84rem; color: var(--text-2); transition: color 0.2s ease; }
.foot-links a:not(.icon-btn):hover { color: var(--text); }

/* ---------- motion states ---------------------------------------------- */
/* hidden until site.js animates them in; .failsafe (set 2.5s after load)
   reveals everything if the scripts never ran */
.js [data-reveal],
.js [data-stagger] > *,
.intro .display .w,
.intro [data-hero],
.intro .stage { opacity: 0; }

.failsafe:not(.motion) [data-reveal],
.failsafe:not(.motion) [data-stagger] > *,
.failsafe:not(.motion) .display .w,
.failsafe:not(.motion) [data-hero],
.failsafe:not(.motion) .stage,
.static [data-reveal],
.static [data-stagger] > *,
.static .display .w,
.static [data-hero],
.static .stage { opacity: 1 !important; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* home games: expanding gallery on desktop (hovered game widens, the rest make room) */
@media (min-width: 961px) {
    .games-reel { display: flex; gap: 0.75rem; height: 19rem; }
    .games-reel .game {
        position: relative; flex: 1 1 0; min-width: 0;
        border-radius: var(--r); overflow: hidden;
        transition: flex-grow 0.7s var(--ease-out);
    }
    .games-reel .game:hover, .games-reel .game:focus-visible { flex-grow: 2.4; }
    .games-reel .game-media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: inherit; }
    .games-reel .game-meta {
        position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
        margin: 0; padding: 3.5rem 1.1rem 1rem;
        background: linear-gradient(to top, rgba(9, 9, 11, 0.92), rgba(9, 9, 11, 0));
    }
    .games-reel .game-name { color: var(--text); font-size: 0.95rem; }
    .games-reel .game:hover .game-media img { transform: scale(1.03); }
}

/* ---------- responsive -------------------------------------------------- */
@media (max-width: 1100px) {
    .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ggrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .games-grid.games-reel {
        display: flex; gap: 0.75rem;
        overflow-x: auto; overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
        margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 0.25rem;
        scrollbar-width: none;
    }
    .games-grid.games-reel::-webkit-scrollbar { display: none; }
    .games-reel .game { flex: 0 0 min(40%, 300px); scroll-snap-align: start; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .stage { max-width: 640px; }
    .shot { transform: translateY(calc(var(--py, 0) * 1px)) rotateY(calc(-8deg + var(--tx, 0) * 1deg)) rotateX(calc(4deg + var(--ty, 0) * 1deg)); }
    .key-grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
    .sellers-grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
    .why-grid { grid-template-columns: minmax(0, 1fr); }
    .why-card, .why-card + .why-card { padding: 1.5rem; border-left: 0; }
    .why-card + .why-card { border-top: 1px solid var(--line); }
}
@media (max-width: 768px) {
    :root { --gutter: 1rem; }
    .nav-links, .nav-cta { display: none; }
    .menu-btn { display: block; }
    .bar { background: rgba(18, 18, 22, 0.94); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .hero { padding-top: 6.5rem; }
    .hero-ctas { width: 100%; }
    .hero-ctas .btn { flex: 1 1 10rem; height: 2.75rem; }
    .loader { height: auto; min-height: 2.9rem; padding: 0.55rem 0.4rem 0.55rem 0.85rem; }
    .loader code { font-size: 0.72rem; line-height: 1.5; white-space: normal; word-break: break-all; }
    .games-reel .game { flex-basis: 72%; }
    .search kbd { display: none; }
    .shot { border-radius: 9px; }
    .games-grid, .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.75rem; }
    .game-go { display: none; }
    .stats { grid-template-columns: minmax(0, 1fr); }
    .stat { padding: 1.5rem 1.5rem; }
    .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
    .cta { flex-direction: column; align-items: flex-start; }
    .cta::before { width: 100%; right: -30%; opacity: 0.4; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { flex: 1 1 10rem; height: 2.75rem; }
}
@media (max-width: 600px) {
    .foot-inner { flex-direction: column; text-align: center; }
}
