/* ==========================================================================
   Krethz Games — Home
   ========================================================================== */

:root {
    --bg: #07070b;
    --bg-elev: #0e0e15;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f5f5f7;
    --muted: #8e8e9c;
    --faint: #5a5a68;

    --brand-1: #ff4d8d;
    --brand-2: #8b5cf6;
    --brand-3: #38bdf8;
    --brand-gradient: linear-gradient(100deg, var(--brand-1), var(--brand-2) 50%, var(--brand-3));

    --accent: var(--brand-2);
    --accent-2: var(--brand-1);

    --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-serif: 'Instrument Serif', ui-serif, Georgia, serif;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;

    --container: 1200px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --nav-h: 76px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

::selection {
    background: var(--brand-2);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--brand-3);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

section[id] {
    scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ==========================================================================
   Global overlays
   ========================================================================== */

.scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    height: 2px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(var(--progress, 0));
    background: var(--brand-gradient);
    z-index: 1001;
}

.cursor-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, -20%), rgba(139, 92, 246, 0.09), transparent 60%);
    transition: opacity 0.4s ease;
}

.grain {
    position: fixed;
    inset: -50%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-5%, 4%); }
    40% { transform: translate(4%, -6%); }
    60% { transform: translate(-3%, 7%); }
    80% { transform: translate(6%, -2%); }
}

main,
.footer {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.display {
    font-size: clamp(2.5rem, 6vw, 4.75rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.display em,
.word-accent {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
    background: var(--brand-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 6s linear infinite;
    padding-right: 0.08em;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--muted);
    max-width: 52ch;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */

.btn {
    --btn-pad: 0.9rem 1.5rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: var(--btn-pad);
    border-radius: 999px;
    border: 1px solid transparent;
    font: 500 0.95rem/1 var(--font-sans);
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.3s var(--ease-out), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.btn i {
    font-size: 0.8em;
    transition: transform 0.3s var(--ease-out);
}

.btn:hover i {
    transform: translateX(3px);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    color: #0a0a0f;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
}

.btn-primary:hover {
    box-shadow: 0 0 40px -6px rgba(139, 92, 246, 0.7), 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.btn-ghost {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-light {
    color: #0a0a0f;
    background: #fff;
}

.btn-light:hover {
    background: #e9e9ee;
}

.btn-sm {
    --btn-pad: 0.6rem 1.1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.link-subtle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    transition: color 0.2s ease;
}

.link-subtle:hover {
    color: var(--text);
}

.icon-diag {
    transform: rotate(-45deg);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
    position: fixed;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 16px;
    pointer-events: none;
}

.nav-pill {
    pointer-events: auto;
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 8px 8px 8px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, max-width 0.5s var(--ease-out);
}

.nav.is-scrolled .nav-pill {
    max-width: 760px;
    background: rgba(14, 14, 21, 0.72);
    border-color: var(--border);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-logo-mark {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface-hover);
}

.nav-chevron {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    min-width: 230px;
    padding: 6px;
    border-radius: var(--radius);
    background: rgba(14, 14, 21, 0.92);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease-out), visibility 0.25s;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

.nav-game-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-game-link:hover {
    color: var(--text);
    background: var(--surface-hover);
}

.nav-game-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.nav-menu-cta {
    display: none;
}

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    position: relative;
}

.hamburger span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}

.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 24px; }

.hamburger.active span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--nav-h) + 72px) 0 72px;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    mix-blend-mode: screen;
    will-change: transform;
}

.aurora-1 {
    width: 55vw;
    height: 55vw;
    max-width: 760px;
    max-height: 760px;
    top: -18%;
    left: -10%;
    background: radial-gradient(circle, var(--brand-1), transparent 65%);
    animation: drift-1 18s ease-in-out infinite alternate;
}

.aurora-2 {
    width: 50vw;
    height: 50vw;
    max-width: 700px;
    max-height: 700px;
    top: -10%;
    right: -12%;
    background: radial-gradient(circle, var(--brand-2), transparent 65%);
    animation: drift-2 22s ease-in-out infinite alternate;
}

.aurora-3 {
    width: 40vw;
    height: 40vw;
    max-width: 560px;
    max-height: 560px;
    top: 35%;
    left: 30%;
    background: radial-gradient(circle, var(--brand-3), transparent 65%);
    opacity: 0.3;
    animation: drift-3 26s ease-in-out infinite alternate;
}

@keyframes drift-1 {
    to { transform: translate(18%, 22%) scale(1.15); }
}

@keyframes drift-2 {
    to { transform: translate(-20%, 18%) scale(0.9); }
}

@keyframes drift-3 {
    to { transform: translate(-25%, -15%) scale(1.2); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 100%);
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 28px;
}

.badge-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
}

.badge-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #34d399;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% { transform: scale(2.6); opacity: 0; }
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8.5rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.055em;
    max-width: 12ch;
}

.hero-title .word {
    display: inline-block;
    opacity: 0;
    filter: blur(14px);
    transform: translateY(0.35em);
    animation: word-in 1.1s var(--ease-out) forwards;
    animation-delay: calc(120ms + var(--i) * 110ms);
}

.hero-title .word-accent {
    animation: word-in 1.1s var(--ease-out) forwards, shimmer 6s linear infinite;
    animation-delay: calc(120ms + var(--i) * 110ms), 0s;
}

@keyframes word-in {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.hero-subtitle {
    margin-top: 28px;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: var(--muted);
    max-width: 44ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

/* 3D fan of game cards */
.hero-stack {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    width: min(100%, 860px);
    height: clamp(220px, 34vw, 380px);
    margin-top: 72px;
    perspective: 1400px;
}

.stack-card {
    --spread: clamp(150px, 30vw, 340px);
    position: absolute;
    z-index: var(--z, 1);
    left: 50%;
    top: 0;
    width: clamp(240px, 42vw, 440px);
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    background: var(--bg-elev);
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform:
        translateX(-50%)
        translateX(calc(var(--offset) * var(--spread)))
        translateY(calc(var(--offset) * var(--offset) * 24px))
        rotateX(var(--rx))
        rotateY(calc(var(--ry) + var(--offset) * -10deg))
        rotateZ(calc(var(--offset) * 6deg));
    transition: transform 0.7s var(--ease-out), box-shadow 0.4s ease, border-color 0.4s ease;
}

.stack-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 7, 11, 0.9));
}

.stack-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.stack-card:hover {
    z-index: 10;
    border-color: var(--accent);
    box-shadow:
        0 40px 100px -20px rgba(0, 0, 0, 0.9),
        0 0 60px -10px var(--accent);
    transform:
        translateX(-50%)
        translateX(calc(var(--offset) * var(--spread) * 1.1))
        translateY(-14px)
        rotateX(var(--rx))
        rotateY(var(--ry))
        rotateZ(0deg)
        scale(1.04);
}

.stack-card:hover img {
    transform: scale(1.06);
}

.stack-card-label {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
}

.stack-card-label strong {
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.stack-card-status {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(24px, 6vw, 72px);
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    width: min(100%, 720px);
}

.hero-stats div {
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
}

.hero-stats dt {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}

.hero-stats dd {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-block: 1px solid var(--border);
    padding: 22px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 36px;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.marquee-track span {
    font-size: clamp(1.25rem, 2.6vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--faint);
    transition: color 0.3s ease;
}

.marquee-track span:hover {
    color: var(--text);
}

.marquee-track i {
    font-style: normal;
    color: var(--brand-2);
    font-size: 1rem;
}

@keyframes marquee {
    to { transform: translateX(calc(-50% - 18px)); }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
    padding: clamp(96px, 14vw, 160px) 0;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: clamp(48px, 7vw, 80px);
}

/* Spotlight border effect (cursor-tracked) */
.spotlight {
    --x: 50%;
    --y: 50%;
    position: relative;
    isolation: isolate;
}

.spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(420px circle at var(--x) var(--y), var(--accent), transparent 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.spotlight::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(500px circle at var(--x) var(--y), color-mix(in srgb, var(--accent) 12%, transparent), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.spotlight:hover::before,
.spotlight:hover::after,
.spotlight:focus-within::before {
    opacity: 1;
}

/* ==========================================================================
   Games grid
   ========================================================================== */

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 20px;
}

.game-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.6s var(--ease-out), border-color 0.4s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
}

.game-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 10px 10px 0;
    border-radius: calc(var(--radius-lg) - 10px);
}

.game-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out), filter 0.6s ease;
    filter: saturate(0.9);
}

.game-card:hover .game-card-media img {
    transform: scale(1.06);
    filter: saturate(1.1);
}

.status-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(7, 7, 11, 0.65);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
}

.status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-pill--live::before {
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
}

.status-pill--soon::before {
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
}

.game-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 24px 26px 26px;
}

.game-card-index {
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    color: var(--faint);
}

.game-card h3 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.game-card p {
    color: var(--muted);
    font-size: 0.98rem;
}

.game-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--muted);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.card-arrow {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    font-size: 0.85rem;
    transition: background 0.4s ease, color 0.4s ease, transform 0.5s var(--ease-out), border-color 0.4s ease;
}

.card-arrow i {
    transform: rotate(-45deg);
    transition: transform 0.5s var(--ease-out);
}

.game-card:hover .card-arrow {
    background: #fff;
    color: #0a0a0f;
    border-color: #fff;
}

.game-card:hover .card-arrow i {
    transform: rotate(0deg);
}

/* ==========================================================================
   Game detail
   ========================================================================== */

.game-detail {
    position: relative;
    padding: clamp(80px, 12vw, 140px) 0;
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.game-detail::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    width: 900px;
    height: 600px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), transparent);
    pointer-events: none;
    z-index: -1;
}

.game-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.game-detail--reverse .game-detail-media {
    order: 2;
}

.game-detail-media {
    position: relative;
    perspective: 1200px;
}

.media-glow {
    position: absolute;
    inset: 12% 8%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    filter: blur(70px);
    opacity: 0.35;
    animation: pulse-glow 6s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    to { opacity: 0.55; transform: scale(1.08); }
}

.media-frame {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    border-radius: var(--radius-lg);
    padding: 8px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-strong);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 0.6s var(--ease-out);
    transform-style: preserve-3d;
}

.media-frame img {
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 8px);
}

.game-detail-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.game-detail-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.game-detail .eyebrow {
    color: var(--accent);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.5s var(--ease-out);
}

.feature:hover {
    background: var(--surface-hover);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    transform: translateY(-3px);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border-radius: 24px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    color: var(--accent);
}

.feature-icon img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

.feature h4 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.feature p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
}

.game-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 18px;
}

/* Store badges */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease-out), box-shadow 0.3s ease;
}

.store-badge i {
    font-size: 1.4rem;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.store-badge-text small {
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.store-badge-text strong {
    font-size: 0.98rem;
    font-weight: 600;
}

.store-badge--active {
    background: #fff;
    color: #0a0a0f;
    border-color: #fff;
}

.store-badge--active .store-badge-text small {
    color: #55555f;
}

.store-badge--active:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px -10px var(--accent);
}

.store-badge--soon {
    border-style: dashed;
    color: var(--muted);
    cursor: default;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.contact-intro {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-mail {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    width: fit-content;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    padding-bottom: 4px;
    transition: background-size 0.5s var(--ease-out);
}

.contact-mail:hover {
    background-size: 100% 1px;
}

.contact-mail i {
    font-size: 0.7em;
    color: var(--brand-2);
    transition: transform 0.4s var(--ease-out);
}

.contact-mail:hover i {
    transform: rotate(0deg);
}

.contact-location {
    color: var(--faint);
    font-size: 0.95rem;
}

.contact-location i {
    margin-right: 6px;
}

.contact-form {
    --accent: var(--brand-2);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(24px, 4vw, 36px);
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field span {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
}

.field input,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--faint);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--brand-2) 70%, transparent);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.contact-form .btn {
    margin-top: 6px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    border-top: 1px solid var(--border);
    padding-top: 72px;
    overflow: hidden;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 30ch;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.92rem;
    color: var(--muted);
    width: fit-content;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.4s var(--ease-out);
}

.footer-social a:hover {
    color: #0a0a0f;
    background: #fff;
    border-color: #fff;
    transform: translateY(-3px);
}

.footer-wordmark {
    margin-top: 64px;
    font-size: clamp(5rem, 22vw, 20rem);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.06em;
    text-align: center;
    color: transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
    margin-bottom: -0.08em;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 0 32px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--faint);
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
    transition:
        opacity 0.9s var(--ease-out),
        transform 0.9s var(--ease-out),
        filter 0.9s var(--ease-out);
    transition-delay: var(--delay, 0ms);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

/* game cards keep their own hover transform after reveal */
.js .game-card[data-reveal].is-visible:hover {
    transform: translateY(-6px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
    .game-detail-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .game-detail--reverse .game-detail-media {
        order: 0;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    :root {
        --nav-h: 68px;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        inset: 0;
        z-index: -1;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 6px;
        padding: 100px 28px 40px;
        background: rgba(7, 7, 11, 0.96);
        backdrop-filter: blur(20px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu > li {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
    }

    .nav-menu.active > li {
        opacity: 1;
        transform: none;
    }

    .nav-menu.active > li:nth-child(2) { transition-delay: 60ms; }
    .nav-menu.active > li:nth-child(3) { transition-delay: 120ms; }

    .nav-link {
        font-size: 2rem;
        font-weight: 500;
        letter-spacing: -0.03em;
        color: var(--text);
        padding: 0.4rem 0;
    }

    .nav-link:hover {
        background: none;
    }

    .nav-chevron {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        background: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0 0 12px;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        transform: none;
    }

    .nav-game-link {
        font-size: 1.05rem;
        padding: 0.5rem 0;
    }

    .nav-menu-cta {
        display: block;
        margin-top: 24px;
    }

    .nav-menu-cta .btn {
        width: 100%;
        --btn-pad: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* backdrop-filter would become the containing block of the fixed menu */
    .nav-pill,
    .nav.is-scrolled .nav-pill {
        background: rgba(14, 14, 21, 0.9);
        border-color: var(--border);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .media-frame img {
        max-height: 440px;
    }

    .hero {
        padding-top: calc(var(--nav-h) + 56px);
    }

    .hero-stack {
        margin-top: 56px;
    }

    .stack-card {
        --spread: 26vw;
        width: 64vw;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .feature {
        flex-direction: row;
        align-items: center;
    }

    .feature-icon {
        flex-shrink: 0;
        width: 76px;
        height: 76px;
        border-radius: 18px;
    }

    .feature-icon img {
        width: 62px;
        height: 62px;
    }

    .game-card-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        flex: 1;
    }
}

@media (hover: none) {
    .cursor-glow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-title .word {
        opacity: 1;
        filter: none;
        transform: none;
    }

    .grain {
        display: none;
    }
}
