/* ===== FONT LOAD ===== */
@font-face {
    font-family: 'PixelSeek';
    src: url('pixel_font.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Sage/teal pixel-water palette — matches in-game promo art backgrounds */
    --bg:       #d3ddd8;   /* main sage-teal canvas */
    --bg-alt:   #c2cec8;   /* darker sage band */
    --bg-soft:  #e3ebe6;   /* lightest lift */
    --bg-card:  #ffffff;   /* pure white cards */
    --bg-dark:  #131318;
    --bg-dark-2:#1b1b22;

    --ink:       #141418;
    --ink-2:     #3d3d46;
    --ink-3:     #64646e;
    --ink-muted: #8d8d96;

    --line:      rgba(20, 20, 24, 0.13);
    --line-soft: rgba(20, 20, 24, 0.06);

    /* Accent palette — matched 1:1 to halo colors in promo art */
    --accent-tap:      #f97338;   /* orange halo */
    --accent-arcade:   #b89cf5;   /* light purple halo */
    --accent-boss:     #f47a8c;   /* coral/pink halo */
    --accent-news:     #f5b400;   /* amber halo */
    --accent-profile:  #7cc6f0;   /* sky-blue halo */
    --accent-rank:     #f5b400;   /* amber halo */
    --accent-upgrades: #4dd9b6;   /* mint halo */
    --accent-quests:   #a26ce8;   /* purple halo */
    --accent-pass:     #fbb284;   /* peach halo */
    --accent-message:  #7cc6f0;   /* sky-blue halo */

    /* Primary stays orange-red — the ember/TAP signature color */
    --accent-primary: #f97338;

    --font-pixel: 'PixelSeek', 'Courier New', monospace;
    --font-hud:   'JetBrains Mono', 'Space Mono', ui-monospace, monospace;
    --font-body:  'Inter', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--ink);
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    line-height: 1.6;
    position: relative;
    z-index: 0;
}

/* Soft vertical gradient wash — adds depth to the flat sage canvas
   without the previous tiled pixel-water seams. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(227, 235, 230, 0.6) 0%,
        rgba(211, 221, 216, 0.4) 50%,
        rgba(194, 206, 200, 0.55) 100%);
    pointer-events: none;
    z-index: 0;
}

::selection { background: var(--ink); color: var(--bg); }
img { display: block; max-width: 100%; }

/* ===== AMBIENT BACKGROUND ===== */
.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(20, 20, 24, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 20, 24, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 15%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 15%, transparent 85%);
}

.ambient-noise {
    position: absolute; inset: 0;
    opacity: 0.32;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 180px 180px;
}

.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.5;
    animation: blobDrift 32s ease-in-out infinite;
}

.ambient-blob.b-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(249, 115, 56, 0.18), transparent 70%);
    top: -8%; right: -6%;
}

.ambient-blob.b-2 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(124, 198, 240, 0.22), transparent 70%);
    bottom: -10%; left: -8%;
    animation-delay: -10s;
}

.ambient-blob.b-3 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(77, 217, 182, 0.20), transparent 70%);
    top: 45%; left: 42%;
    animation-delay: -18s;
}

@keyframes blobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.06); }
    66% { transform: translate(30px, -20px) scale(0.96); }
}

.ambient-cross {
    position: absolute;
    width: 40px; height: 40px;
    color: rgba(20, 20, 24, 0.2);
    animation: crossPulse 4s ease-in-out infinite;
}
.ambient-cross.tl { top: 95px; left: 28px; }
.ambient-cross.tr { top: 95px; right: 28px; animation-delay: -1s; }
.ambient-cross.bl { bottom: 28px; left: 28px; animation-delay: -2s; }
.ambient-cross.br { bottom: 28px; right: 28px; animation-delay: -3s; }

@keyframes crossPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(1.08); }
}

/* Stack content above ambient */
.navbar, section, footer, main { position: relative; z-index: 1; }

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0.85rem 0;
    background: rgba(19, 19, 24, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.nav-side { display: flex; list-style: none; gap: 2rem; }
.nav-side.left  { justify-content: flex-end; }
.nav-side.right { justify-content: flex-start; }
.nav-side.mobile-panel { display: none; }

.nav-side a {
    font-family: var(--font-hud);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c4c4cc;
    text-decoration: none;
    position: relative;
    padding: 0.4rem 0.2rem;
    transition: color 0.25s ease;
}

.nav-side a::before {
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    width: 0; height: 2px;
    background: var(--accent-primary);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.nav-side a:hover { color: #ffffff; }
.nav-side a:hover::before { width: 100%; }

.nav-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
    padding: 0.2rem 0.8rem;
    transition: transform 0.3s ease;
}

.nav-banner:hover { transform: scale(1.03); }

.nav-banner .nb-main {
    font-family: var(--font-pixel);
    font-size: 1.45rem;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 0.9;
}

.nav-banner .nb-sub {
    font-family: var(--font-hud);
    font-size: 0.52rem;
    letter-spacing: 0.35em;
    color: #85858e;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(196, 196, 204, 0.6);
    cursor: pointer;
    padding: 0;
    width: 44px; height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    border-color: #ffffff;
    outline: none;
}

.nav-toggle.active { background: rgba(255, 255, 255, 0.08); border-color: #ffffff; }

.nav-toggle span {
    display: block;
    width: 20px; height: 2px;
    background: #c4c4cc;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease,
                background 0.2s ease;
    transform-origin: center;
}

.nav-toggle.active span { background: #ffffff; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@keyframes blink { 50% { opacity: 0.25; } }

/* ===== SECTION TAG ===== */
.section-tag {
    font-family: var(--font-hud);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
.section-tag::before, .section-tag::after {
    content: '';
    width: 1.6rem; height: 1px;
    background: currentColor;
    opacity: 0.4;
}

/* ===== HERO ===== */
/* Dark cinematic hero — same dark canvas as Studio, white title with
   glitch (matching BUILT SOLO grammar). Cap to 100vh, accounting for
   the fixed navbar via --nav-h. */
.hero {
    background: var(--bg-dark);
    color: var(--bg);
    height: 100vh;
    padding-top: calc(var(--nav-h, 4rem) + clamp(1rem, 4vh, 4rem));
    padding-bottom: clamp(2.5rem, 5vh, 5rem);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Subtle grid overlay echoing the Studio panel */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Hero decor — atmospheric HUD chrome on dark canvas ---- */
.hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    color: rgba(255, 255, 255, 0.32);
}

.hd-coord {
    position: absolute;
    font-family: var(--font-hud);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
    z-index: 1;
}
.hd-coord-tl { top: 6rem; left: 2rem; }
.hd-coord-tr { top: 6rem; right: 2rem; color: var(--accent-tap); }
.hd-coord-bl { bottom: 5.5rem; left: 2rem; }
.hd-coord-br { bottom: 5.5rem; right: 2rem; color: var(--accent-upgrades); }

.hd-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}
.hd-glow-1 {
    width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(249, 115, 56, 0.32), transparent 68%);
    top: -15%; right: -12%;
}
.hd-glow-2 {
    width: 580px; height: 580px;
    background: radial-gradient(circle, rgba(124, 198, 240, 0.22), transparent 70%);
    bottom: -16%; left: -10%;
}

.hd-watermark {
    position: absolute;
    bottom: 0;
    left: -2%;
    font-family: var(--font-pixel);
    font-size: clamp(10rem, 26vw, 24rem);
    line-height: 0.8;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.045);
    transform: rotate(-3deg);
    user-select: none;
    text-shadow:
        0.14em 0.14em 0 rgba(255, 255, 255, 0.04),
        0 0 80px rgba(249, 115, 56, 0.18);
    z-index: 0;
}

.hd-ghost {
    position: absolute;
    top: var(--gy, 50%);
    left: var(--gx, 50%);
    font-family: var(--font-hud);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    color: rgba(255, 255, 255, 0.22);
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    animation: ghostDrift var(--gt, 14s) ease-in-out infinite;
    animation-delay: var(--gd, 0s);
    z-index: 1;
}

.hd-cross {
    position: absolute;
    width: 32px; height: 32px;
    color: rgba(255, 255, 255, 0.35);
}
.hd-cross-tl { top: 9.5rem; left: 2rem; }
.hd-cross-br { bottom: 9rem; right: 2rem; }

/* Stack hero content above decor */
.hero-container { position: relative; z-index: 2; }

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.hero-meta {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
    font-family: var(--font-hud);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.hero-meta span { display: inline-flex; align-items: center; }
.hero-meta span:not(:last-child)::after {
    content: '/';
    color: rgba(255, 255, 255, 0.32);
    margin-left: 1.2rem;
}
.hero-meta span:last-child {
    color: var(--accent-tap);
}

.hero-title {
    font-family: var(--font-pixel);
    font-size: clamp(3.5rem, 9vw, 7.2rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
}

.hero-line { display: inline-block; line-height: 0.95; }

/* Glitch effect on each title line — same chromatic split grammar
   as the section-title.glitch in Release/Studio/Features. White main
   on dark Hero canvas, mirroring BUILT SOLO's treatment. */
.glitch-text {
    position: relative;
    color: #ffffff;
    isolation: isolate;
    display: inline-block;
}
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    text-align: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    font: inherit;
}
.glitch-text::before {
    color: var(--accent-upgrades);
    text-shadow:
        0 0 14px rgba(77, 217, 182, 0.6),
        0 0 28px rgba(77, 217, 182, 0.25);
    animation: glitchA 5s ease-in-out infinite;
}
.glitch-text::after {
    color: var(--accent-rank);
    text-shadow:
        0 0 14px rgba(245, 180, 0, 0.55),
        0 0 28px rgba(245, 180, 0, 0.25);
    animation: glitchB 5s ease-in-out infinite;
}
.hero-line:nth-child(2).glitch-text::before { animation-delay: -1.5s; }
.hero-line:nth-child(2).glitch-text::after  { animation-delay: -1.5s; }
.hero-line:nth-child(3).glitch-text::before { animation-delay: -3s; }
.hero-line:nth-child(3).glitch-text::after  { animation-delay: -3s; }

.hero-subtitle {
    font-family: var(--font-hud);
    font-size: 0.8rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.hero-subtitle::before, .hero-subtitle::after {
    content: '';
    width: 2rem; height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.hero-lead {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    color: #c8c8cf;
    max-width: 540px;
    margin-bottom: 2.5rem;
}

.hero-lead strong {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 2.1rem;
    font-family: var(--font-hud);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--ink);
    color: var(--bg);
    padding: 1.25rem 2.3rem;
}

.btn-primary::before, .btn-primary::after {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    border: 2px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.btn-primary::before { top: 5px; left: 5px; border-right: none; border-bottom: none; }
.btn-primary::after { bottom: 5px; right: 5px; border-left: none; border-top: none; }

.btn-primary:hover {
    background: var(--accent-primary);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}

.btn-primary:hover::before, .btn-primary:hover::after { border-color: var(--bg); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
    padding: 1.1rem 2rem;
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--bg);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--accent-primary);
}

.btn-icon {
    width: 11px; height: 11px;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon { transform: rotate(45deg) translate(2px, -2px); }

/* ---- Command-line buttons for the dark Hero ----
   Ink-black slab with a glowing accent strip along the bottom edge —
   matches the carousel-arrow grammar and feels like a "boot command". */
.btn-cmd {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.15rem 1.9rem;
    font-family: var(--font-hud);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease;
}

.btn-cmd::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--accent-tap);
    transition: height 0.3s ease, box-shadow 0.3s ease;
}

.btn-cmd:hover {
    background: #1a1a22;
    transform: translateY(-3px);
}
.btn-cmd:hover::after {
    height: 4px;
    box-shadow: 0 0 18px var(--accent-tap);
}

.btn-cmd-prefix {
    color: var(--accent-tap);
    font-size: 1em;
    line-height: 1;
    text-shadow: 0 0 8px rgba(249, 115, 56, 0.5);
    transition: transform 0.3s ease;
}

.btn-cmd:hover .btn-cmd-prefix {
    transform: translateX(3px);
}

/* Twitter variant — white slab for high-visibility social CTA on dark.
   Hover flips to accent-orange to keep the brand connection. */
.btn-cmd-x {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.15rem 1.9rem;
    font-family: var(--font-hud);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid #ffffff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease;
}

.btn-cmd-x::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--accent-tap);
    transition: height 0.3s ease, box-shadow 0.3s ease;
}

.btn-cmd-x:hover {
    background: var(--accent-tap);
    color: #ffffff;
    border-color: var(--accent-tap);
    transform: translateY(-3px);
}
.btn-cmd-x:hover::after {
    height: 4px;
    box-shadow: 0 0 18px var(--accent-tap);
}

.btn-x {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: brightness(0); /* solid black on white bg */
    transition: filter 0.3s ease, transform 0.25s ease;
    display: block;
}

.btn-cmd-x:hover .btn-x {
    filter: brightness(0) invert(1); /* white on accent-orange hover */
    transform: scale(1.08);
}

/* ===== HERO LOGO FRAME — pixel-card "specimen" display ===== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
}

.hero-frame {
    position: relative;
    width: min(100%, 460px);
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: var(--ink);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(255, 255, 255, 0.04);
    animation: mascotFloat 6.5s ease-in-out infinite;
}

/* Top HUD rail — same grammar as feature cards */
.hf-rail {
    background: var(--ink);
    color: var(--bg);
    padding: 0.7rem 1rem 0.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    font-family: var(--font-hud);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    position: relative;
}

.hf-rail-id {
    color: var(--accent-tap);
    text-shadow: 0 0 10px rgba(249, 115, 56, 0.6);
}

.hf-rail-status {
    color: rgba(255, 255, 255, 0.62);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hf-rail-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-tap);
    box-shadow: 0 0 8px var(--accent-tap),
                0 0 18px rgba(249, 115, 56, 0.45);
    animation: livePulse 1.6s ease-in-out infinite;
}

/* Accent line beneath the rail */
.hf-rail::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--accent-tap);
    box-shadow: 0 0 14px rgba(249, 115, 56, 0.55);
}

/* Image cell */
.hf-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg);
    line-height: 0;
}

.hf-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    image-rendering: pixelated; /* preserve pixel-art crispness */
}

/* Big accent corner brackets — outside the frame, decorative HUD chrome */
.hf-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid var(--accent-tap);
    pointer-events: none;
    z-index: 2;
}
.hf-corner.tl { top: -11px; left: -11px; border-right: none; border-bottom: none; }
.hf-corner.tr { top: -11px; right: -11px; border-left: none; border-bottom: none; }
.hf-corner.bl { bottom: -11px; left: -11px; border-right: none; border-top: none; }
.hf-corner.br { bottom: -11px; right: -11px; border-left: none; border-top: none; }

/* Small HUD tags below the image */
.hf-tag {
    position: absolute;
    bottom: -1.5rem;
    font-family: var(--font-hud);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}
.hf-tag-bl { left: 0; }
.hf-tag-br { right: 0; color: var(--accent-tap); }

@media (prefers-reduced-motion: reduce) {
    .hero-frame { animation: none; }
}

.hero-mascot-wrap {
    position: relative;
    width: min(100%, 540px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Crosshair corners on the frame */
.hmw-corner {
    position: absolute;
    width: 24px; height: 24px;
    border: 2px solid rgba(20, 20, 24, 0.4);
    pointer-events: none;
}
.hmw-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.hmw-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.hmw-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.hmw-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

/* Glow */
.hero-mascot-glow {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(249, 115, 56, 0.32) 0%, rgba(249, 115, 56, 0.12) 40%, transparent 70%);
    filter: blur(28px);
    animation: glowPulse 4.5s ease-in-out infinite;
    z-index: 0;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

/* Outer ring: large dashed, rotating */
.hero-mascot-ring.outer {
    position: absolute;
    inset: 3%;
    border-radius: 50%;
    border: 1px dashed rgba(20, 20, 24, 0.3);
    animation: ringRotate 45s linear infinite;
    z-index: 0;
}

/* Ring points (4 dots at cardinal positions) */
.hero-mascot-ring.outer .rp {
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    top: 50%; left: 50%;
    margin: -5px 0 0 -5px;
    background: var(--accent-primary);
    box-shadow: 0 0 12px rgba(229, 48, 48, 0.6);
}
.hero-mascot-ring.outer .rp-1 { transform: translateY(-50%) translate(0, calc(-50% * 0)) translateY(-245px); }
/* Simpler: use absolute positions at 12/3/6/9 */
.hero-mascot-ring.outer .rp-1 { top: -5px; left: 50%; margin-left: -5px; background: var(--accent-tap); box-shadow: 0 0 12px rgba(249, 115, 56, 0.7); }
.hero-mascot-ring.outer .rp-2 { top: 50%; right: -5px; margin-top: -5px; left: auto; background: var(--accent-rank); box-shadow: 0 0 10px rgba(245, 180, 0, 0.6); width: 8px; height: 8px; }
.hero-mascot-ring.outer .rp-3 { bottom: -5px; left: 50%; margin-left: -4px; top: auto; background: var(--accent-upgrades); box-shadow: 0 0 10px rgba(77, 217, 182, 0.7); width: 8px; height: 8px; }
.hero-mascot-ring.outer .rp-4 { top: 50%; left: -5px; margin-top: -4px; background: var(--accent-profile); box-shadow: 0 0 10px rgba(124, 198, 240, 0.7); width: 8px; height: 8px; }

/* Inner ring: smaller solid, counter-rotating */
.hero-mascot-ring.inner {
    position: absolute;
    inset: 13%;
    border-radius: 50%;
    border: 1px solid rgba(20, 20, 24, 0.14);
    animation: ringRotateReverse 70s linear infinite;
    z-index: 0;
}

@keyframes ringRotate { to { transform: rotate(360deg); } }
@keyframes ringRotateReverse { to { transform: rotate(-360deg); } }

/* Tick marks around inner dial (12 small ticks) */
.hero-mascot-ticks {
    position: absolute;
    inset: 7%;
    pointer-events: none;
    z-index: 0;
}
.hero-mascot-ticks span {
    position: absolute;
    top: 50%; left: 50%;
    width: 2px; height: 8px;
    background: rgba(20, 20, 24, 0.3);
    transform-origin: 50% calc(100% + 218px);
}
.hero-mascot-ticks span:nth-child(1)  { transform: translate(-50%, -100%) rotate(0deg); }
.hero-mascot-ticks span:nth-child(2)  { transform: translate(-50%, -100%) rotate(30deg); }
.hero-mascot-ticks span:nth-child(3)  { transform: translate(-50%, -100%) rotate(60deg); }
.hero-mascot-ticks span:nth-child(4)  { transform: translate(-50%, -100%) rotate(90deg); }
.hero-mascot-ticks span:nth-child(5)  { transform: translate(-50%, -100%) rotate(120deg); }
.hero-mascot-ticks span:nth-child(6)  { transform: translate(-50%, -100%) rotate(150deg); }
.hero-mascot-ticks span:nth-child(7)  { transform: translate(-50%, -100%) rotate(180deg); }
.hero-mascot-ticks span:nth-child(8)  { transform: translate(-50%, -100%) rotate(210deg); }
.hero-mascot-ticks span:nth-child(9)  { transform: translate(-50%, -100%) rotate(240deg); }
.hero-mascot-ticks span:nth-child(10) { transform: translate(-50%, -100%) rotate(270deg); }
.hero-mascot-ticks span:nth-child(11) { transform: translate(-50%, -100%) rotate(300deg); }
.hero-mascot-ticks span:nth-child(12) { transform: translate(-50%, -100%) rotate(330deg); }

.hero-mascot {
    width: 68%;
    height: auto;
    position: relative;
    z-index: 1;
    animation: mascotFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(10, 10, 12, 0.2));
}

@keyframes mascotFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

/* ---- Mascot HUD enhancements — status pill + corner tags ---- */
.hmw-status {
    position: absolute;
    top: 6%;
    right: 6%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-hud);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0.32rem 0.55rem;
    white-space: nowrap;
}

.hmw-status-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent-tap);
    box-shadow: 0 0 6px var(--accent-tap);
    animation: livePulse 1.6s ease-in-out infinite;
}

.hmw-tag {
    position: absolute;
    z-index: 4;
    font-family: var(--font-hud);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(20, 20, 24, 0.55);
    white-space: nowrap;
}
.hmw-tag-tl { top: 6%; left: 6%; }
.hmw-tag-br { bottom: 6%; right: 6%; color: var(--accent-tap); }

/* ---- Bottom HUD bar — section counter + scroll + status tag ---- */
.hero-bottom {
    position: absolute;
    bottom: 1.5rem;
    left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    z-index: 2;
}

.hb-tag {
    font-family: var(--font-hud);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
.hb-tag-r { color: var(--accent-tap); }

.hero-scroll {
    font-family: var(--font-hud);
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.hero-scroll::before,
.hero-scroll::after {
    content: '';
    width: 30px; height: 1px;
    background: rgba(255, 255, 255, 0.45);
}

@keyframes scrollDown {
    0% { opacity: 0; transform: translateY(-10px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(10px); }
}

/* ===== SECTIONS ===== */
.section {
    padding: 7rem 0;
    position: relative;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4.5rem;
    text-align: center;
}

.section-title {
    font-family: var(--font-pixel);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1;
}

.section-title.t-tap      { color: var(--accent-tap); }
.section-title.t-arcade   { color: var(--accent-arcade); }
.section-title.t-boss     { color: var(--accent-boss); }
.section-title.t-news     { color: var(--accent-news); }
.section-title.t-profile  { color: var(--accent-profile); }
.section-title.t-rank     { color: var(--accent-rank); }
.section-title.t-upgrades { color: var(--accent-upgrades); }
.section-title.t-quests   { color: var(--accent-quests); }
.section-title.t-pass     { color: var(--accent-pass); }
.section-title.t-message  { color: var(--accent-message); }

/* ===== Glitch heading — chromatic split behind the main text =====
   Unified mint + amber chromatic palette across ALL glitch headings
   (Hero, Release, Features, Studio). Only the main text color flips
   for bg contrast: ink-black on light sage, white on dark panels. */
.section-title.glitch {
    position: relative;
    color: var(--ink);
    isolation: isolate;
}

.section-title.glitch::before,
.section-title.glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    text-align: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    font: inherit;
}

.section-title.glitch::before {
    color: var(--accent-upgrades);
    text-shadow:
        0 0 14px rgba(77, 217, 182, 0.6),
        0 0 28px rgba(77, 217, 182, 0.25);
    animation: glitchA 5s ease-in-out infinite;
}
.section-title.glitch::after {
    color: var(--accent-rank);
    text-shadow:
        0 0 14px rgba(245, 180, 0, 0.55),
        0 0 28px rgba(245, 180, 0, 0.25);
    animation: glitchB 5s ease-in-out infinite;
}

/* Dark variant — white main on dark Studio panel.
   Glitch colors inherited from base (mint + amber) — no override needed. */
.section-title.glitch.glitch-dark { color: #ffffff; }

/* Cool variant — inherits ink-black main + white glitch from base. */
.section-title.glitch.glitch-cool { color: var(--ink); }

@keyframes glitchA {
    0%, 100% { transform: translate(-4px, 2px);  clip-path: inset(0); }
    7%       { transform: translate(-7px, 0);    clip-path: inset(15% 0 65% 0); }
    14%      { transform: translate(-2px, 3px);  clip-path: inset(55% 0 25% 0); }
    21%      { transform: translate(-5px, 1px);  clip-path: inset(0); }
    52%      { transform: translate(-4px, 2px); }
    58%      { transform: translate(-8px, 1px);  clip-path: inset(40% 0 35% 0); }
    63%      { transform: translate(-3px, 4px);  clip-path: inset(10% 0 70% 0); }
    68%      { transform: translate(-4px, 2px);  clip-path: inset(0); }
}

@keyframes glitchB {
    0%, 100% { transform: translate(4px, -2px);  clip-path: inset(0); }
    7%       { transform: translate(1px, -1px);  clip-path: inset(15% 0 65% 0); }
    14%      { transform: translate(6px, -3px);  clip-path: inset(55% 0 25% 0); }
    21%      { transform: translate(3px, -2px);  clip-path: inset(0); }
    52%      { transform: translate(4px, -2px); }
    58%      { transform: translate(7px, -1px);  clip-path: inset(40% 0 35% 0); }
    63%      { transform: translate(2px, -4px);  clip-path: inset(10% 0 70% 0); }
    68%      { transform: translate(4px, -2px);  clip-path: inset(0); }
}

@media (prefers-reduced-motion: reduce) {
    .section-title.glitch::before,
    .section-title.glitch::after { animation: none; }
}

.section-sub {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink-2);
    max-width: 640px;
    line-height: 1.7;
}

@keyframes livePulse {
    50% { opacity: 0.35; transform: scale(0.8); }
}

/* Badges */
.badge {
    font-family: var(--font-hud);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--ink);
    color: var(--ink);
    background: var(--bg-card);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge::before {
    content: '';
    width: 6px; height: 6px;
    background: currentColor;
    border-radius: 50%;
}

.badge.badge-alt {
    color: var(--bg);
    background: var(--ink);
}

/* ===== FEATURES — horizontal carousel ===== */
.features {
    background: var(--bg);
    border-top: 1px solid var(--line-soft);
    position: relative;
    overflow: hidden;
}

/* Same one-viewport-block treatment as Release / Studio.
   Flex column distributes section-head + carousel within the available
   height. Carousel grows to fill remaining space; cards center within
   it via align-items on the track. */
.section.features {
    height: calc(100vh - var(--nav-h, 4rem));
    display: flex;
    flex-direction: column;
    padding-top: clamp(2rem, 4vh, 3.5rem);
    padding-bottom: clamp(2.5rem, 5vh, 5rem);
}

.section.features > .container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 2;
}

.section.features .section-head {
    flex-shrink: 0;
    margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

.section.features .feature-carousel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.section.features .fc-viewport {
    flex: 1;
    min-height: 0;
}

.section.features .fc-track {
    height: 100%;
    align-items: center;
}

.features > .container { position: relative; z-index: 2; }

/* Mobile — release the hard viewport cap AND undo the flex
   distribution so cards/controls flow naturally instead of the
   carousel stretching to fill remaining space (which pushed the
   controls "куда-то далеко" below the cards). */
@media (max-width: 900px) {
    .section.features {
        height: auto;
        min-height: calc(100vh - var(--nav-h, 4rem));
        overflow: visible;
        display: block;
        padding-bottom: clamp(3rem, 6vh, 5rem);
    }
    .section.features > .container {
        flex: initial;
        min-height: initial;
        display: block;
    }
    .section.features .feature-carousel {
        flex: initial;
        min-height: initial;
        display: block;
    }
    .section.features .fc-viewport {
        flex: initial;
        min-height: initial;
    }
    .section.features .fc-track {
        height: auto;
        align-items: stretch;
    }
}

/* ---- Features decor layer — atmospheric "system matrix" backdrop ---- */
.features-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    color: rgba(20, 20, 24, 0.32);
}

/* Faded watermark stamp in lower-left */
.fd-watermark {
    position: absolute;
    bottom: -8%;
    left: -3%;
    font-family: var(--font-pixel);
    font-size: clamp(8rem, 22vw, 20rem);
    line-height: 0.85;
    letter-spacing: 0.06em;
    color: rgba(20, 20, 24, 0.055);
    transform: rotate(-3deg);
    user-select: none;
    text-shadow: 0.18em 0.18em 0 rgba(20, 20, 24, 0.045);
}

/* HUD coordinate labels in each corner — "system telemetry" */
.fd-coord {
    position: absolute;
    font-family: var(--font-hud);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(20, 20, 24, 0.42);
    white-space: nowrap;
}
.fd-coord-tl { top: 1.4rem; left: 2rem; }
.fd-coord-tr { top: 1.4rem; right: 2rem; }
.fd-coord-bl { bottom: 1.4rem; left: 2rem; }
.fd-coord-br { bottom: 1.4rem; right: 2rem; }

/* Glow blobs — one cool (sky/profile), one warm (orange/tap).
   Visual rhyme with the chromatic split in the FEATURES title. */
.fd-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}
.fd-glow-1 {
    width: 580px; height: 580px;
    background: radial-gradient(circle, rgba(124, 198, 240, 0.32), transparent 68%);
    top: 8%; left: -12%;
}
.fd-glow-2 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(249, 115, 56, 0.22), transparent 70%);
    bottom: -8%; right: -8%;
}
.fd-glow-3 {
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(245, 180, 0, 0.16), transparent 72%);
    top: 60%; left: 35%;
}

/* MASSIVE "10" stamp — sits in top-right corner where cards don't reach.
   Reads as the section's module-count signature, visible above carousel. */
.fd-bignum {
    position: absolute;
    top: -3rem;
    right: -1rem;
    font-family: var(--font-pixel);
    font-size: clamp(10rem, 22vw, 20rem);
    line-height: 0.75;
    letter-spacing: -0.02em;
    color: rgba(20, 20, 24, 0.07);
    user-select: none;
    pointer-events: none;
    z-index: 0;
    text-shadow:
        0.12em 0.12em 0 rgba(20, 20, 24, 0.06),
        0 0 50px rgba(249, 115, 56, 0.15);
}

/* Radar emitter — pulsing core + 4 expanding rings in top-left corner.
   Sits in the top strip above the carousel, fully visible. */
.fd-radar {
    position: absolute;
    top: 2.8rem;
    left: 5%;
    width: 14px;
    height: 14px;
    pointer-events: none;
    z-index: 1;
}
.fd-radar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-tap);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(249, 115, 56, 0.9),
                0 0 28px rgba(249, 115, 56, 0.4);
    animation: livePulse 1.8s ease-in-out infinite;
}
.fd-radar > span {
    position: absolute;
    inset: 0;
    border: 1.5px solid rgba(249, 115, 56, 0.55);
    border-radius: 50%;
    animation: radarRing 5s ease-out infinite;
}
.fd-radar > span:nth-child(2) { animation-delay: 1.25s; }
.fd-radar > span:nth-child(3) { animation-delay: 2.5s; }
.fd-radar > span:nth-child(4) { animation-delay: 3.75s; }

/* Note: @keyframes radarRing already defined in Release decor */

/* Ghost modules — translucent module IDs drifting in top/bottom strips.
   Each gets unique position via --gx/--gy and timing via --gd/--gt. */
.fd-ghost {
    position: absolute;
    top: var(--gy, 50%);
    left: var(--gx, 50%);
    font-family: var(--font-hud);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    color: rgba(20, 20, 24, 0.22);
    text-transform: uppercase;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
    animation: ghostDrift var(--gt, 14s) ease-in-out infinite;
    animation-delay: var(--gd, 0s);
    z-index: 1;
}

@keyframes ghostDrift {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.18;
    }
    50% {
        transform: translate(18px, -10px);
        opacity: 0.45;
    }
}

/* Radial dot-grid — "system matrix" pattern fades to edges */
.fd-grid {
    position: absolute;
    inset: 12% 4% 18%;
    background-image:
        radial-gradient(circle at center,
            rgba(20, 20, 24, 0.22) 1px,
            transparent 1.6px);
    background-size: 38px 38px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 78%);
    opacity: 0.55;
}

/* Crosshair markers — match the global ambient HUD chrome */
.fd-cross {
    position: absolute;
    width: 32px; height: 32px;
    color: rgba(20, 20, 24, 0.32);
}
.fd-cross-tl { top: 4rem; left: 2rem; }
.fd-cross-br { bottom: 4rem; right: 2rem; }

@media (max-width: 700px) {
    .fd-coord { font-size: 0.52rem; letter-spacing: 0.22em; }
    .fd-coord-tl, .fd-coord-tr { top: 0.9rem; }
    .fd-coord-bl, .fd-coord-br { bottom: 0.9rem; }
    .fd-coord-tl, .fd-coord-bl { left: 1rem; }
    .fd-coord-tr, .fd-coord-br { right: 1rem; }
    .fd-cross { display: none; }
    .fd-watermark { font-size: clamp(6rem, 28vw, 12rem); left: -4%; bottom: -4%; }
    .fd-grid { background-size: 28px 28px; inset: 18% 4% 22%; }
    .fd-bignum { font-size: clamp(7rem, 28vw, 14rem); top: -1.5rem; right: -0.5rem; }
    .fd-radar { top: 1.5rem; left: 1rem; width: 10px; height: 10px; }
    .fd-ghost { font-size: 0.55rem; letter-spacing: 0.22em; }
    .fd-ghost:nth-child(n+5) { display: none; } /* hide bottom ghosts on mobile */
}

@media (prefers-reduced-motion: reduce) {
    .fd-radar > span,
    .fd-radar::before,
    .fd-ghost { animation: none; }
}

.feature-carousel {
    position: relative;
    max-width: 1220px;
    margin: 0 auto;
}

.fc-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -2.5rem;
    padding: 1.2rem 2.5rem 2.4rem;
}
.fc-viewport::-webkit-scrollbar { display: none; }

.fc-track {
    display: flex;
    gap: 1rem;
}

.fc-card {
    /* Width auto-scales so exactly 4 cards always fit. Generous buffer
       220px guarantees the rightmost card never clips on any window
       (covers padding, gaps, scrollbar, browser quirks). */
    flex: 0 0 clamp(180px, calc((100vw - 220px) / 4), 240px);
    scroll-snap-align: start;
    /* No background, no shadow — clean stack of rail + image + gauge.
       The image's black border carries the framing. Hover is a pure
       transform lift, no blurry halo around the card. */
    background: transparent;
    transform: translateY(-5px);
    --accent: var(--accent-primary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top halo strip — echoes the colored circle on each promo screenshot.
   On hover it thickens and emits a colored glow — feels more "active". */
.fc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent);
    z-index: 3;
    transition: height 0.3s ease, box-shadow 0.3s ease;
}

.fc-card:hover {
    transform: translateY(-12px);
}
.fc-card:hover::before {
    height: 6px;
    box-shadow: 0 0 22px var(--accent);
}

.fc-media {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: var(--ink);
    border: 2px solid var(--ink);
    margin: 0;
}

.fc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fc-card:hover .fc-media img { transform: scale(1.10); }

/* Corner markers hidden — they had white fill that read as a frame.
   Black border on .fc-media now does the framing on its own. */
.fc-corner { display: none; }

/* Status pill — overlay on the media, communicates per-feature meta
   (game count, season, mode). Pulsing accent dot ties to live indicator. */
.fc-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-hud);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    padding: 0.32rem 0.6rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    white-space: nowrap;
}

.fc-pill-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: livePulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

/* ---- Top HUD rail — minimal: ID·XX on left, XX/10 counter on right.
   Ink-black bar with accent-color glowing bottom edge. */
.fc-rail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    background: var(--ink);
    color: var(--bg);
    font-family: var(--font-hud);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    position: relative;
    z-index: 4;
}

.fc-rail-id {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
}

.fc-rail-count {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.25s ease;
}
.fc-card:hover .fc-rail-count { color: rgba(255, 255, 255, 0.85); }

/* Hide the old halo strip — rail replaces it */
.fc-card::before { display: none; }

/* Accent bottom-line of the rail glows on hover */
.fc-rail::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--accent);
    transition: box-shadow 0.3s ease;
}
.fc-card:hover .fc-rail::after { box-shadow: 0 0 18px var(--accent); }

/* Bottom decorative gauge — single accent-bar that pulses softly,
   becomes a "module live" indicator. No labels, pure visual. */
.fc-gauge {
    height: 6px;
    background: rgba(20, 20, 24, 0.08);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.fc-gauge-fill {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent),
                inset 0 0 6px rgba(255, 255, 255, 0.35);
    position: relative;
    animation: gaugePulse 2.4s ease-in-out infinite;
}

@keyframes gaugePulse {
    0%, 100% { opacity: 0.85; }
    50%      { opacity: 1; }
}

/* Hover sheen — moving highlight across the gauge fill */
.fc-gauge-fill::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: -40%;
    width: 30%;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.fc-card:hover .fc-gauge-fill::after {
    opacity: 1;
    animation: gaugeSheen 1.5s ease-in-out infinite;
}

@keyframes gaugeSheen {
    0%   { left: -40%; }
    100% { left: 110%; }
}

.fc-card.c-tap      { --accent: var(--accent-tap); }
.fc-card.c-arcade   { --accent: var(--accent-arcade); }
.fc-card.c-boss     { --accent: var(--accent-boss); }
.fc-card.c-news     { --accent: var(--accent-news); }
.fc-card.c-profile  { --accent: var(--accent-profile); }
.fc-card.c-rank     { --accent: var(--accent-rank); }
.fc-card.c-upgrades { --accent: var(--accent-upgrades); }
.fc-card.c-quests   { --accent: var(--accent-quests); }
.fc-card.c-pass     { --accent: var(--accent-pass); }
.fc-card.c-message  { --accent: var(--accent-message); }

/* ---- Controls — HUD-style square buttons + segmented progress bar ---- */
.fc-controls {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.fc-btn {
    width: 56px;
    height: 56px;
    border: none;
    background: var(--ink);
    color: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.25s ease;
}

/* Accent strip along the bottom — echoes the rail's signature line */
.fc-btn::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--accent-tap);
    transition: height 0.3s ease, box-shadow 0.3s ease;
}

.fc-btn:hover:not(:disabled) {
    background: #1a1a22;
    transform: translateY(-3px);
}
.fc-btn:hover:not(:disabled)::after {
    height: 4px;
    box-shadow: 0 0 14px var(--accent-tap);
}

.fc-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.fc-arrow {
    width: 22px;
    height: 22px;
    color: var(--accent-tap);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.25s ease;
    position: relative;
    z-index: 1;
}

#fcPrev:hover:not(:disabled) .fc-arrow { transform: translateX(-3px); }
#fcNext:hover:not(:disabled) .fc-arrow { transform: translateX(3px); }
.fc-btn:disabled .fc-arrow { color: rgba(255, 255, 255, 0.55); }

/* Progress wrap: counter [progress bar] total */
.fc-progress-wrap {
    flex: 0 1 320px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0 0.5rem;
    font-family: var(--font-hud);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.fc-progress-counter {
    color: var(--accent-tap);
    text-shadow: 0 0 8px rgba(249, 115, 56, 0.4);
    min-width: 1.5em;
    text-align: right;
    transition: color 0.25s ease;
}

.fc-progress-total {
    color: var(--ink-muted);
    min-width: 1.5em;
}

.fc-progress {
    position: relative;
    flex: 1;
    height: 6px;
    background: var(--ink);
    overflow: hidden;
}

/* 10-segment dividers under the fill — a "module slots" feel */
.fc-progress::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to right,
        transparent 0,
        transparent calc(10% - 1px),
        rgba(255, 255, 255, 0.08) calc(10% - 1px),
        rgba(255, 255, 255, 0.08) 10%);
    pointer-events: none;
    z-index: 2;
}

.fc-progress-fill {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 0;
    background: var(--accent-tap);
    box-shadow: 0 0 12px var(--accent-tap),
                inset 0 0 4px rgba(255, 255, 255, 0.45);
    z-index: 1;
}

/* ===== RELEASE / PRODUCT (image + specs merged) ===== */
/* Higher specificity (.section.release) so the tight Release padding
   wins over the default .section { padding: 7rem 0 } AND over the
   large-screen media-query overrides that bump it to 9rem / 11rem.

   Layout math:
     navbar (fixed overlay) ≈ 4rem (64px)
     padding-top: 4rem      → heading sits one nav-height below the navbar
                              (visual symmetry: nav above, equal air below)
     section-head margin-bottom: 3rem  → tight, intentional gap to spread
     padding-bottom: 5rem   → buffer below spread, slightly larger than top
                              so the banner doesn't kiss the Studio border
     min-height: 100vh      → guarantees no Studio (dark) bleed at bottom

   Result on a 900px viewport: heading at ~128px page-y, spread visible
   in full, ~180px of sage fill below the spread before Studio starts. */
.section.release {
    background: var(--bg-alt);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    position: relative;
    /* HARD viewport cap — section equals viewport MINUS the fixed
       navbar height, so when scrolled-to the section spans exactly
       from below the nav to the viewport's bottom edge. --nav-h is
       set dynamically from JS (script.js → syncNavHeight). */
    height: calc(100vh - var(--nav-h, 4rem));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 4rem;
    padding-bottom: 5rem;
}

/* Container is the flex parent for content stack; min-height:0 lets
   children shrink past their content size (default flex behavior is to
   refuse — that's what was making the block grow past 100vh). */
.section.release > .container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.section.release .section-head {
    flex-shrink: 0;
    margin-bottom: 3rem;
}

/* Spread takes whatever height remains after section-head + paddings.
   Grid columns still 1.5fr / 1fr; align-items:center keeps specs and
   image vertically aligned regardless of how tall the row is. */
.section.release .product-spread {
    flex: 1;
    min-height: 0;
    align-self: stretch;
    align-content: center;
}

/* Banner fills the available row height; if intrinsic 16:9 height
   would exceed the row (compact viewports), excess clips evenly above
   and below via flex-center on the wrapper. */
.section.release .product-image {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section.release .product-image img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    display: block;
}

.release > .container { width: 100%; position: relative; z-index: 2; }

/* ---- Release decorative HUD layer ---- */
.release-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    color: rgba(20, 20, 24, 0.32);
}

/* Big faint watermark — stamps the section like a release logo */
.rd-watermark {
    position: absolute;
    right: -2%;
    bottom: -8%;
    font-family: var(--font-pixel);
    font-size: clamp(8rem, 22vw, 20rem);
    line-height: 0.85;
    letter-spacing: 0.06em;
    color: rgba(20, 20, 24, 0.055);
    transform: rotate(-4deg);
    user-select: none;
    text-shadow: 0.18em 0.18em 0 rgba(20, 20, 24, 0.045);
}

/* HUD coordinate / status labels in each corner */
.rd-coord {
    position: absolute;
    font-family: var(--font-hud);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(20, 20, 24, 0.42);
    white-space: nowrap;
}
.rd-coord-tl { top: 1.4rem; left: 2rem; }
.rd-coord-tr { top: 1.4rem; right: 2rem; }
.rd-coord-bl { bottom: 1.4rem; left: 2rem; }
.rd-coord-br { bottom: 1.4rem; right: 2rem; }

/* Soft accent blobs — orange (TAP/ember) and amber (RANK/news) */
.rd-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.rd-glow-1 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(249, 115, 56, 0.28), transparent 68%);
    top: -10%; right: -8%;
}
.rd-glow-2 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(245, 180, 0, 0.20), transparent 70%);
    bottom: -6%; left: -6%;
}

/* Crosshair markers — echo the global ambient HUD chrome */
.rd-cross {
    position: absolute;
    width: 32px; height: 32px;
    color: rgba(20, 20, 24, 0.32);
}
.rd-cross-tl { top: 4rem; left: 2rem; }
.rd-cross-bl { bottom: 4rem; left: 2rem; }
.rd-cross-br { bottom: 4rem; right: 2rem; }

/* Vertical accent bars on the side margins — like rack stripes */
.rd-bar {
    position: absolute;
    top: 25%; bottom: 25%;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(20, 20, 24, 0.18) 30%,
        rgba(20, 20, 24, 0.18) 70%,
        transparent 100%);
}
.rd-bar-l { left: 2.6rem; }
.rd-bar-r { right: 2.6rem; }

/* ---- Large rotating decorative dial — sits behind content as a ghosted HUD ornament ---- */
.rd-dial {
    position: absolute;
    width: 720px;
    height: 720px;
    right: -180px;
    bottom: -200px;
    color: rgba(20, 20, 24, 0.32);
    animation: dialSpin 90s linear infinite;
    pointer-events: none;
}

.rd-dial-inner {
    position: absolute;
    width: 320px;
    height: 320px;
    left: -80px;
    top: -60px;
    color: rgba(249, 115, 56, 0.42);
    animation: dialSpinReverse 55s linear infinite;
    pointer-events: none;
}

@keyframes dialSpin        { to { transform: rotate(360deg);  } }
@keyframes dialSpinReverse { to { transform: rotate(-360deg); } }

/* ---- Radar emitter — concentric rings pulse out from upper-right corner ---- */
.rd-radar {
    position: absolute;
    top: 10%;
    right: 8%;
    width: 14px;
    height: 14px;
    pointer-events: none;
}
.rd-radar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-tap);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(249, 115, 56, 0.9);
    animation: livePulse 1.8s ease-in-out infinite;
}
.rd-radar > span {
    position: absolute;
    inset: 0;
    border: 1.5px solid rgba(249, 115, 56, 0.55);
    border-radius: 50%;
    animation: radarRing 4.5s ease-out infinite;
}
.rd-radar > span:nth-child(2) { animation-delay: 1.5s; }
.rd-radar > span:nth-child(3) { animation-delay: 3s; }

@keyframes radarRing {
    0%   { transform: scale(1);  opacity: 0.9; }
    100% { transform: scale(22); opacity: 0; }
}

/* ---- Drifting embers — slow rise, drift sideways, fade ---- */
.rd-ember {
    position: absolute;
    bottom: -12px;
    left: var(--ex, 50%);
    width: var(--es, 4px);
    height: var(--es, 4px);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 200, 140, 0.95) 0%,
        rgba(249, 115, 56, 0.85) 40%,
        transparent 75%);
    box-shadow: 0 0 10px rgba(249, 115, 56, 0.7),
                0 0 20px rgba(249, 115, 56, 0.35);
    opacity: 0;
    animation: emberRise var(--et, 16s) linear infinite;
    animation-delay: var(--ed, 0s);
    will-change: transform, opacity;
}

@keyframes emberRise {
    0%   { transform: translate(0, 0)              scale(0.6); opacity: 0; }
    8%   { opacity: 0.95; }
    50%  { transform: translate(calc(var(--ew) * 0.5), -55vh) scale(1); opacity: 0.85; }
    85%  { opacity: 0.4; }
    100% { transform: translate(var(--ew, 0), -110vh) scale(0.4); opacity: 0; }
}

/* Mobile — keep things light, kill the heavy decor */
@media (max-width: 700px) {
    .rd-coord { font-size: 0.52rem; letter-spacing: 0.22em; }
    .rd-coord-tl, .rd-coord-tr { top: 0.9rem; }
    .rd-coord-bl, .rd-coord-br { bottom: 0.9rem; }
    .rd-coord-tl, .rd-coord-bl { left: 1rem; }
    .rd-coord-tr, .rd-coord-br { right: 1rem; }
    .rd-cross { display: none; }
    .rd-bar { display: none; }
    .rd-watermark { font-size: clamp(6rem, 28vw, 12rem); right: -4%; bottom: -4%; }
    .rd-dial { width: 480px; height: 480px; right: -140px; bottom: -160px; }
    .rd-dial-inner { width: 220px; height: 220px; left: -50px; top: -40px; }
}

/* Reduced-motion: kill the kinetic background pieces */
@media (prefers-reduced-motion: reduce) {
    .rd-dial, .rd-dial-inner,
    .rd-radar > span,
    .rd-ember { animation: none; }
    .rd-ember { display: none; }
    .rd-radar > span { display: none; }
}

/* Soft band to lift release out of the body texture */
.release::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.04) 100%);
    pointer-events: none;
}
.release > .container { position: relative; z-index: 1; }

.product-spread {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.product-image {
    position: relative;
    line-height: 0;
    border: 2px solid var(--ink);
    background: var(--bg-card);
    box-shadow: 0 20px 40px rgba(10, 18, 22, 0.2);
}

.product-image img { width: 100%; height: auto; display: block; }

.release-corner {
    position: absolute;
    width: 18px; height: 18px;
    border: 3px solid var(--accent-primary);
    background: var(--bg-alt);
    pointer-events: none;
    z-index: 2;
}

.release-corner.tl { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.release-corner.tr { top: -10px; right: -10px; border-left: none; border-bottom: none; }
.release-corner.bl { bottom: -10px; left: -10px; border-right: none; border-top: none; }
.release-corner.br { bottom: -10px; right: -10px; border-left: none; border-top: none; }

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.product-specs {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-specs li {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: baseline;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px dashed var(--line);
}

.product-specs li:last-child { border-bottom: none; }

.ps-k {
    font-family: var(--font-hud);
    font-size: 0.66rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 600;
}

.ps-v {
    font-family: var(--font-hud);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    color: var(--ink);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.ps-live {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--accent-upgrades);
    border-radius: 50%;
    margin-right: 0.55rem;
    box-shadow: 0 0 8px rgba(77, 217, 182, 0.7);
    animation: livePulse 1.6s ease-in-out infinite;
}

.product-badges {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.product-tag {
    font-family: var(--font-hud);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--ink);
    font-weight: 500;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-style: italic;
}

/* ===== STUDIO (dark panel) ===== */
/* Like Release: section equals viewport minus the fixed navbar so the
   whole "Studio + Contact" block lives in one screen. Flex column +
   min-height:0 distributes head / about-content / studio-contact. */
.section.about {
    background: var(--bg-dark);
    color: var(--bg);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    height: calc(100vh - var(--nav-h, 4rem));
    display: flex;
    flex-direction: column;
    padding-top: clamp(2.5rem, 5vh, 7rem);
    padding-bottom: clamp(2.5rem, 5vh, 7rem);
}

.section.about > .container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 1;
}

.section.about .section-head {
    flex-shrink: 0;
    margin-bottom: clamp(1.5rem, 3.5vh, 4.5rem);
}

.section.about .about-content {
    flex: 1;
    min-height: 0;
}

.section.about .studio-contact {
    flex-shrink: 0;
    margin-top: clamp(2rem, 4vh, 4.5rem);
    padding-top: clamp(1.5rem, 3vh, 3rem);
}

/* On stacked mobile layouts content cannot fit one screen — restore
   natural flow so the user can scroll the whole panel. */
@media (max-width: 900px) {
    .section.about {
        height: auto;
        min-height: calc(100vh - var(--nav-h, 4rem));
        overflow: visible;
        padding-top: clamp(3rem, 6vh, 5rem);
        padding-bottom: clamp(3rem, 6vh, 5rem);
    }
}

/* Legacy fallback for the old plain `.about { ... }` selector — keep the
   visual identity even if specificity wars favour it elsewhere. */
.about {
    background: var(--bg-dark);
    color: var(--bg);
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    pointer-events: none;
}

.about .section-tag { color: #a5a5ae; }

.about-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text .about-lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.about-text p {
    color: #c8c8cf;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.about-text strong {
    color: var(--accent-upgrades);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.stat {
    padding: 1.6rem 1.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    --stat-accent: var(--accent-upgrades);
}

.stat.stat-boss    { --stat-accent: var(--accent-upgrades); }
.stat.stat-profile { --stat-accent: var(--accent-profile); }
.stat.stat-rank    { --stat-accent: var(--accent-rank); }

.stat::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--stat-accent);
    transform: scaleY(0.3);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--stat-accent);
}

.stat:hover::before { transform: scaleY(1); }

.stat-label {
    font-family: var(--font-hud);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #a5a5ae;
}

.stat-number {
    font-family: var(--font-pixel);
    font-size: 2.2rem;
    color: var(--stat-accent);
    line-height: 1;
    background: transparent;
}

/* ===== STUDIO ↔ CONTACT integrated row ===== */
.studio-contact {
    margin-top: 4.5rem;
    padding-top: 3rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.14);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.sc-left {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.sc-tag {
    font-family: var(--font-hud);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent-tap);
    font-weight: 600;
    line-height: 1;
}

.sc-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #c8c8cf;
    line-height: 1.55;
    max-width: 520px;
    margin: 0;
}

.sc-social {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.3rem;
    text-decoration: none;
    font-family: var(--font-hud);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c8c8cf;
    transition: color 0.2s ease, transform 0.2s ease;
    width: max-content;
}
.sc-social:hover { color: #ffffff; transform: translateX(2px); }

.sc-social-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    /* Logo PNG is solid black — invert so it reads as white on dark panel */
    filter: invert(1);
    transition: transform 0.25s ease;
    display: block;
}
.sc-social:hover .sc-social-icon { transform: scale(1.08); }

.sc-cta {
    margin: 0;
    flex-shrink: 0;
    background: var(--bg);
    color: var(--ink);
}
.sc-cta::before, .sc-cta::after { border-color: var(--accent-tap); }

.sc-cta:hover {
    background: var(--accent-tap);
    color: #ffffff;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
}

@media (max-width: 700px) {
    .studio-contact {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
        padding-top: 2rem;
    }
    .sc-cta { width: 100%; justify-content: center; }
    .sc-text { font-size: 0.92rem; }
}

/* ===== FOOTER CONTACT STRIP (warm-dark band, smooth transition) ===== */
.footer-contact {
    /* Warm-dark tone that sits between studio (#131318 cool dark) and
       footer-main (#131318) without a harsh light/dark jump. */
    background: #211c16;
    padding: 2.6rem 0;
    position: relative;
}

.footer-contact::before,
.footer-contact::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
}

.footer-contact::before {
    top: 0;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 56, 0.5), transparent);
}

.footer-contact::after {
    bottom: 0;
    background: rgba(255, 255, 255, 0.06);
}

.footer-contact-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.fc-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.fc-left {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.fc-tag {
    font-family: var(--font-hud);
    font-size: 0.68rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent-tap);
    font-weight: 600;
    line-height: 1;
}

.fc-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #d8d4cc;
    line-height: 1.55;
    max-width: 520px;
    margin: 0;
}

.fc-social {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.2rem;
    padding: 0.35rem 0;
    text-decoration: none;
    font-family: var(--font-hud);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #d8d4cc;
    transition: color 0.2s ease, transform 0.2s ease;
    width: max-content;
}

.fc-social:hover { color: #ffffff; transform: translateX(2px); }

.fc-social-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    /* Logo PNG is solid black — invert so it reads as white on dark band */
    filter: invert(1);
    transition: transform 0.25s ease;
    display: block;
}

.fc-social:hover .fc-social-icon { transform: scale(1.08); }

.fc-cta {
    margin: 0;
    flex-shrink: 0;
    background: var(--bg);
    color: var(--ink);
}

.fc-cta::before,
.fc-cta::after { border-color: var(--accent-tap); }

.fc-cta:hover {
    background: var(--accent-tap);
    color: #ffffff;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
}

.fc-right .btn-primary {
    background: var(--bg);
    color: var(--ink);
}
.fc-right .btn-primary::before,
.fc-right .btn-primary::after { border-color: var(--accent-tap); }
.fc-right .btn-primary:hover {
    background: var(--accent-tap);
    color: #ffffff;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}

.fc-email {
    font-family: var(--font-hud);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: #85858e;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: var(--bg);
    padding: 0 0 2rem;
    position: relative;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.footer-main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3rem 2.5rem 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    margin-bottom: 1.5rem;
}

.footer-left {
    font-family: var(--font-hud);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #a5a5ae;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.footer-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.3s ease;
}

.footer-banner:hover { transform: scale(1.03); }

.footer-banner .fb-main {
    font-family: var(--font-pixel);
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 0.9;
}

.footer-banner .fb-sub {
    font-family: var(--font-hud);
    font-size: 0.5rem;
    letter-spacing: 0.35em;
    color: #85858e;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: var(--font-hud);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c8c8cf;
    text-decoration: none;
    transition: color 0.25s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-hud);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #70707a;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.footer-bottom .blink { animation: blink 1.6s steps(2, end) infinite; }

/* ===== REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ===== RESPONSIVE ===== */
/* ---- Large desktops (1600px+) — let typography and layout breathe ---- */
@media (min-width: 1600px) {
    .nav-container,
    .hero-container,
    .footer-contact-inner,
    .footer-main { max-width: 1560px; }

    .container { max-width: 1480px; }

    /* hero padding handled by base clamp + var(--nav-h) — no override */
    .hero-container { gap: 6rem; }
    .hero-title { font-size: clamp(4rem, 8.5vw, 9.2rem); }
    .hero-lead { font-size: 1.18rem; max-width: 600px; }
    .hero-meta { font-size: 0.78rem; }

    .hero-visual { min-height: 640px; }
    .hero-mascot-wrap { width: min(100%, 640px); }

    .section { padding: 9rem 0; }
    .section-title { font-size: clamp(3.4rem, 5.5vw, 6.4rem); }
    .section-sub { font-size: 1.12rem; max-width: 760px; }

    .feature-carousel { max-width: 1480px; }
    /* Cards keep their clamp() sizing on large screens — fixed widths
       here would force 4-card overflow because container caps at 1480. */

    .product-spread { max-width: 1440px; gap: 5rem; }
    .product-specs li { padding: 1.05rem 0; }
    .ps-v { font-size: 1rem; }
    .product-tag { font-size: 1rem; }

    .about-content { gap: 6rem; }
    .about-text .about-lead { font-size: 1.5rem; }
    .about-text p { font-size: 1.1rem; }
    .stat { padding: 2rem 2.2rem; }
    .stat-number { font-size: 2.6rem; }

    .nav-banner .nb-main { font-size: 1.65rem; }
    .nav-banner .nb-sub { font-size: 0.6rem; }

    .ambient-blob.b-1 { width: 720px; height: 720px; }
    .ambient-blob.b-2 { width: 660px; height: 660px; }
    .ambient-blob.b-3 { width: 520px; height: 520px; }
}

/* ---- Ultra-wide / 4K (2000px+) — push everything one more step ---- */
@media (min-width: 2000px) {
    .nav-container,
    .hero-container,
    .footer-contact-inner,
    .footer-main { max-width: 1880px; }

    .container { max-width: 1760px; }

    html { font-size: 18px; }

    /* hero padding handled by base clamp + var(--nav-h) — no override */
    .hero-container { gap: 8rem; }
    .hero-title { font-size: clamp(5rem, 8vw, 11rem); }
    .hero-lead { max-width: 680px; }

    .hero-visual { min-height: 760px; }
    .hero-mascot-wrap { width: min(100%, 760px); }

    .section { padding: 11rem 0; }

    .feature-carousel { max-width: 1760px; }
    /* clamp() handles card width — see base rule */

    .product-spread { max-width: 1700px; gap: 6rem; }
}

@media (max-width: 1100px) {
    /* clamp() handles fc-card width across all screens */
    .hero-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-visual { min-height: 380px; }
    .hero-mascot-wrap { width: min(88%, 420px); }
    .about-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .ambient-blob.b-1 { width: 360px; height: 360px; }
    .ambient-blob.b-2 { width: 320px; height: 320px; }
    .ambient-blob.b-3 { width: 260px; height: 260px; }
}

@media (max-width: 900px) {
    /* Nav: banner centered, toggle absolutely placed on right */
    .nav-container {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .nav-side:not(.mobile-panel) { display: none; }
    .nav-side.mobile-panel {
        display: none;
        position: absolute;
        top: calc(100% + 0.4rem);
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-dark);
        border: 1px solid rgba(255, 255, 255, 0.1);
        min-width: 260px;
        padding: 0;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        z-index: 100;
        list-style: none;
    }
    .nav-side.mobile-panel.open { display: flex; }
    .nav-side.mobile-panel li { list-style: none; }

    /* Mobile panel links — full-row tap targets with side-bar accent */
    .nav-side.mobile-panel a {
        display: block;
        padding: 1.25rem 1.6rem;
        font-size: 0.8rem;
        letter-spacing: 0.22em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: left;
        color: #c4c4cc;
        background: transparent;
        position: relative;
        transition: background 0.2s ease, color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .nav-side.mobile-panel li:last-child a { border-bottom: none; }

    /* Override the desktop underline — accent bar on the LEFT instead */
    .nav-side.mobile-panel a::before {
        left: 0;
        top: 0;
        bottom: 0;
        right: auto;
        width: 3px;
        height: auto;
        transform: scaleY(0);
        transform-origin: center;
        transition: transform 0.2s ease;
    }

    .nav-side.mobile-panel a:hover,
    .nav-side.mobile-panel a:active,
    .nav-side.mobile-panel a:focus-visible {
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;
        outline: none;
    }

    .nav-side.mobile-panel a:hover::before,
    .nav-side.mobile-panel a:active::before,
    .nav-side.mobile-panel a:focus-visible::before {
        transform: scaleY(1);
    }
    .nav-toggle {
        display: flex;
        position: absolute;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
    }
    .nav-toggle.active {
        transform: translateY(-50%);
    }

    .hero { height: auto; min-height: 100vh; padding: 7rem 0 3rem; }
    .ambient-cross { display: none; }

    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-left { justify-content: center; }
    .footer-links { justify-content: center; }
    .footer-bottom { justify-content: center; text-align: center; }

    .product-spread { grid-template-columns: 1fr; gap: 2.2rem; }
    .fc-row { grid-template-columns: 1fr; gap: 1.5rem; justify-items: start; }
}

@media (max-width: 700px) {
    .nav-container { padding: 0 1rem; }
    .nav-toggle { right: 1rem; }
    .nav-banner { padding: 0.15rem 0; }
    .nav-banner .nb-main { font-size: 1.05rem; letter-spacing: 0.05em; }
    .nav-banner .nb-sub  { font-size: 0.42rem; letter-spacing: 0.28em; margin-top: 0.22rem; }

    .section { padding: 4rem 0; }
    .container { padding: 0 1.2rem; }
    .hero-container { padding: 0 1.2rem; }
    .section-head { margin-bottom: 2.5rem; gap: 0.8rem; }

    /* Hero */
    .hero { padding: 6.5rem 0 2.5rem; }
    .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .hero-meta {
        justify-content: center;
        gap: 0.6rem;
        font-size: 0.58rem;
        margin-bottom: 1.3rem;
    }
    .hero-meta span:not(:last-child)::after { margin-left: 0.6rem; }
    .hero-title {
        font-size: clamp(2.8rem, 13vw, 4.2rem);
        line-height: 0.95;
        margin-bottom: 0.5rem;
    }
    .hero-subtitle {
        font-size: 0.6rem;
        letter-spacing: 0.32em;
        margin-bottom: 1.4rem;
    }
    .hero-subtitle::before, .hero-subtitle::after { width: 1.2rem; }
    .hero-lead {
        font-size: 0.92rem;
        line-height: 1.65;
        margin-bottom: 1.8rem;
        text-align: center;
    }
    .hero-actions { width: 100%; justify-content: center; }
    .btn { padding: 1rem 1.5rem; font-size: 0.78rem; letter-spacing: 0.2em; flex: 1 1 auto; justify-content: center; min-width: 0; }
    .btn-primary { padding: 1.1rem 1.6rem; }
    .btn-ghost { padding: 0.95rem 1.45rem; }
    /* Hero command buttons share the row equally on phones */
    .btn-cmd, .btn-cmd-x {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        padding: 1rem 1rem;
        font-size: 0.75rem;
        letter-spacing: 0.18em;
    }
    .hero-visual { min-height: 300px; }
    .hero-mascot-wrap { width: min(85%, 340px); }
    .hero-mascot { width: 70%; }
    .hero-mascot-ring.outer .rp { width: 8px; height: 8px; }
    .hero-mascot-ring.outer .rp-2,
    .hero-mascot-ring.outer .rp-3,
    .hero-mascot-ring.outer .rp-4 { width: 6px; height: 6px; }
    .hero-mascot-ticks { display: none; }
    .hmw-corner { width: 18px; height: 18px; border-width: 2px; }
    .hero-scroll { display: none; }
    .hero-bottom { display: none; }
    .hmw-tag { font-size: 0.5rem; letter-spacing: 0.2em; }
    .hmw-status { font-size: 0.5rem; padding: 0.26rem 0.45rem; }
    .hd-coord { font-size: 0.52rem; letter-spacing: 0.22em; }
    .hd-coord-tl, .hd-coord-tr { top: 5rem; }
    .hd-coord-bl, .hd-coord-br { bottom: 1rem; }
    .hd-coord-tl, .hd-coord-bl { left: 1rem; }
    .hd-coord-tr, .hd-coord-br { right: 1rem; }
    .hd-cross { display: none; }
    .hd-watermark { font-size: clamp(7rem, 30vw, 14rem); bottom: 4%; left: -3%; }
    .hd-ghost { font-size: 0.55rem; letter-spacing: 0.22em; }
    .hd-ghost:nth-child(n+10) { display: none; }
    .hero-frame { width: min(85%, 320px); }
    .hf-rail { padding: 0.55rem 0.7rem; font-size: 0.5rem; letter-spacing: 0.22em; }
    .hf-corner { width: 18px; height: 18px; border-width: 2px; }
    .hf-tag { font-size: 0.5rem; letter-spacing: 0.22em; }

    /* Section titles */
    .section-title { font-size: clamp(2.2rem, 8vw, 3rem); }
    .section-sub { font-size: 0.9rem; line-height: 1.55; }

    /* Carousel on phone — block sized to content (no forced 100vh),
       arrow buttons hidden (touch-swipe handles navigation), tighter
       bottom padding overall. */
    .section.features {
        min-height: 0;
        padding-bottom: 3rem;
    }
    .fc-btn { display: none; }
    .fc-controls { gap: 0; justify-content: center; }
    .fc-progress-wrap { flex: 1 1 auto; max-width: 280px; }
    .fc-viewport { margin: 0 -1.2rem; padding: 1rem 1.2rem 2rem; }
    .fc-card { flex: 0 0 240px; }
    .fc-media { margin: 10px 10px 0; }
    .fc-rail { padding: 0.55rem 0.75rem; font-size: 0.52rem; letter-spacing: 0.22em; }
    .fc-gauge { height: 5px; }
    .fc-controls { gap: 0.9rem; margin-top: 0.2rem; }
    .fc-btn { width: 42px; height: 42px; }
    .fc-progress { flex-basis: 120px; }

    /* Product / release */
    .release { padding: 4rem 0; }
    .product-info { gap: 1.4rem; }
    .product-specs li { grid-template-columns: 90px 1fr; gap: 0.6rem; padding: 0.7rem 0; }
    .ps-k { font-size: 0.6rem; letter-spacing: 0.2em; }
    .ps-v { font-size: 0.8rem; }
    .product-tag { font-size: 0.82rem; padding-top: 0.8rem; }
    .release-corner { width: 14px; height: 14px; }

    /* Studio */
    .about-text .about-lead { font-size: 1.05rem; }
    .about-text p { font-size: 0.92rem; }
    .stat { flex-direction: column; align-items: flex-start; gap: 0.4rem; padding: 1.2rem 1.3rem; }
    .stat-number { font-size: 1.7rem; }

    /* Contact strip */
    .footer-contact { padding: 2rem 0; }
    .fc-text { font-size: 0.9rem; }
    .fc-cta { width: 100%; justify-content: center; }

    /* Footer main */
    .footer-inner { padding: 0 1.2rem; }
    .footer-contact-inner { padding: 0 1.2rem; }
    .footer-main { padding: 2rem 1.2rem 0; }
    .footer-top { padding-bottom: 1.5rem; margin-bottom: 1.2rem; gap: 1.2rem; }
    .footer-bottom { flex-direction: column; font-size: 0.58rem; letter-spacing: 0.18em; }
    .footer-left { gap: 0.8rem; }
    .footer-links { gap: 1.2rem; }

    /* Ambient */
    .ambient-blob.b-1 { width: 240px; height: 240px; }
    .ambient-blob.b-2 { width: 200px; height: 200px; }
    .ambient-blob.b-3 { width: 160px; height: 160px; }
}

@media (max-width: 480px) {
    /* Super-narrow: simplify further */
    .hero-title { font-size: 2.6rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }
    .section-title { font-size: 2rem; }
    .fc-controls .fc-progress { display: none; }
    .fc-controls { gap: 1.5rem; }
    .product-specs li { grid-template-columns: 80px 1fr; }
    .ps-k { font-size: 0.56rem; }
    .ps-v { font-size: 0.76rem; }
    .footer-banner .fb-main { font-size: 1.2rem; }
}
