/* ============================================
   KOBYGEN PREMIUM 2026 — ENHANCEMENT LAYER
   Futuristic Web3 / Comic / Cyber UI
   ============================================ */

/* ===== GLOBAL ATMOSPHERE ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: var(--gradient-hero);
    opacity: 0.85;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 240, 255, 0.012) 2px,
        rgba(0, 240, 255, 0.012) 4px
    );
    opacity: 0.5;
}

.noise-overlay { opacity: 0.045; }

/* ===== SECTION DIVIDERS ===== */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 80%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.35), transparent);
    opacity: 0.6;
}

section:first-of-type::before { display: none; }

.section-header {
    position: relative;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-number {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 1rem;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    letter-spacing: 5px;
    margin-bottom: 1rem;
}

.section-number::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--neon-cyan);
    opacity: 0.5;
}

.section-title {
    position: relative;
    letter-spacing: 4px;
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.15));
}

.section-subtitle {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

/* ===== PREMIUM GLASS CARDS ===== */
.glass-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card), var(--shadow-inset);
    overflow: hidden;
    isolation: isolate;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(255, 255, 255, 0.04) 40%, rgba(255, 0, 60, 0.12));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity var(--transition-smooth);
}

.glass-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.06) 0%, transparent 45%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--glass-border-hover);
}

.glass-card:hover::before { opacity: 1; }
.glass-card:hover::after { opacity: 1; }

/* ===== NAVIGATION ===== */
.site-header {
    background: rgba(10, 10, 15, 0.72);
    backdrop-filter: blur(var(--glass-blur-heavy));
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header.scrolled {
    background: rgba(10, 10, 15, 0.92);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-link {
    font-size: 0.72rem;
    letter-spacing: 2.5px;
}

.nav-link.is-active {
    color: var(--neon-cyan);
}

.nav-link.is-active::after { width: 100%; }

.logo-text {
    background: linear-gradient(135deg, #fff 40%, var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BRAND NAME — KOBYGEN.ONLINE ===== */
.brand-name {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.brand-core {
    flex-shrink: 0;
}

.brand-online {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.58em;
    letter-spacing: 0.1em;
    color: rgba(140, 220, 255, 0.82);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.22);
    opacity: 0;
    transform: translateX(-0.4em);
    margin-left: 0.04em;
    animation: brandOnlineReveal 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.gene-label.brand-name .brand-online {
    font-size: 0.55em;
    letter-spacing: 0.12em;
    color: rgba(120, 200, 255, 0.78);
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.18);
    animation-delay: 0.65s;
}

.page-loader-text.brand-name .brand-online {
    font-size: 0.52em;
    letter-spacing: 0.14em;
    color: rgba(160, 235, 255, 0.88);
    animation-delay: 0.35s;
}

.logo-text.brand-name .brand-online,
.footer-logo .brand-name .brand-online {
    -webkit-text-fill-color: rgba(150, 225, 255, 0.85);
    background: none;
    color: rgba(150, 225, 255, 0.85);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.28);
}

@keyframes brandOnlineReveal {
    0% {
        opacity: 0;
        transform: translateX(-0.4em);
        letter-spacing: 0.22em;
    }
    55% {
        opacity: 0.75;
        letter-spacing: 0.08em;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        letter-spacing: 0.1em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-online {
        opacity: 1;
        transform: none;
        animation: none;
        letter-spacing: 0.1em;
    }
}

/* Mobile: show .ONLINE immediately — animation opacity:0 often never completes on touch */
@media (max-width: 768px) {
    .brand-online {
        opacity: 1;
        transform: none;
        animation: none;
        letter-spacing: 0.08em;
        -webkit-text-fill-color: rgba(140, 230, 255, 0.95);
        background: none;
        -webkit-background-clip: border-box;
        background-clip: border-box;
        color: rgba(140, 230, 255, 0.95);
        text-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
    }

    .gene-label.brand-name .brand-online {
        font-size: 0.54em;
        letter-spacing: 0.1em;
        -webkit-text-fill-color: rgba(120, 220, 255, 0.95);
        color: rgba(120, 220, 255, 0.95);
        text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
    }

    .page-loader-text.brand-name .brand-online {
        -webkit-text-fill-color: rgba(160, 235, 255, 0.95);
        color: rgba(160, 235, 255, 0.95);
    }

    .logo-text.brand-name .brand-online,
    .footer-logo .brand-name .brand-online {
        -webkit-text-fill-color: rgba(150, 235, 255, 0.95);
        color: rgba(150, 235, 255, 0.95);
        text-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
    }

    .gene-label.brand-name {
        letter-spacing: 1px;
    }

    .logo-text.brand-name {
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .brand-online {
        font-size: 0.52em;
        letter-spacing: 0.07em;
    }

    .gene-label.brand-name .brand-online {
        font-size: 0.5em;
    }
}

/* ===== BUTTONS ===== */
.btn-primary-glow,
.btn-nav-buy,
.btn-nav-login {
    box-shadow: 0 4px 20px rgba(255, 0, 60, 0.25);
}

.btn-primary-glow:active,
.btn-nav-buy:active {
    transform: scale(0.98);
}

.btn-secondary-glow {
    background: rgba(0, 240, 255, 0.04);
    backdrop-filter: blur(8px);
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.72rem;
}

/* Ripple container */
.btn-primary-glow,
.btn-secondary-glow,
.btn-nav-buy {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: btnRipple 0.55s ease-out forwards;
    pointer-events: none;
}

@keyframes btnRipple {
    to { transform: scale(4); opacity: 0; }
}

/* ===== HERO ===== */
.hero-section {
    background: transparent;
}

.hero-bg-gradient {
    background:
        radial-gradient(ellipse 70% 50% at 30% 40%, rgba(0, 240, 255, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 75% 25%, rgba(255, 0, 60, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse 40% 35% at 60% 80%, rgba(139, 0, 255, 0.06) 0%, transparent 50%);
}

.hero-grid-lines {
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

.hero-badge {
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.title-line-2 {
    text-shadow: 0 0 60px rgba(0, 240, 255, 0.15);
}

.hero-stats-mini {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    width: fit-content;
}

.hero-visual-block {
    perspective: 1200px;
}

.hero-character-container {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.character-glow-ring {
    border-width: 1px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15), inset 0 0 30px rgba(0, 240, 255, 0.05);
}

.comic-burst {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    transform-origin: center;
}

.comic-burst-trigger:hover::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
}

.comic-burst-trigger:active::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
}

/* ===== HERO BURST CLICK FX (no points) ===== */
.hero-burst-fx-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    contain: strict;
    z-index: 52;
}
.hero-burst-flash {
    position: absolute;
    left: var(--bx, 50%);
    top: var(--by, 50%);
    width: var(--flash-size, 120px);
    height: var(--flash-size, 120px);
    transform: translate(-50%, -50%) scale(0.2);
    border-radius: 50%;
    background: radial-gradient(circle, var(--flash-color, rgba(255, 0, 60, 0.55)) 0%, transparent 70%);
    animation: heroBurstFlash 0.55s ease-out forwards;
    will-change: transform, opacity;
}
@keyframes heroBurstFlash {
    0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}
.hero-burst-spark {
    position: absolute;
    left: var(--bx, 50%);
    top: var(--by, 50%);
    width: var(--sz, 4px);
    height: var(--sz, 4px);
    border-radius: 50%;
    background: var(--spark-color, var(--neon-cyan));
    box-shadow: 0 0 8px var(--spark-color, var(--neon-cyan));
    animation: heroBurstSpark var(--dur, 0.7s) ease-out var(--delay, 0ms) forwards;
    will-change: transform, opacity;
}
@keyframes heroBurstSpark {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx, 0), var(--ty, 0)) scale(0); opacity: 0; }
}
.hero-burst-ripple {
    position: absolute;
    left: var(--bx, 50%);
    top: var(--by, 50%);
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%) scale(0.3);
    border-radius: 50%;
    border: 2px solid var(--ripple-color, rgba(0, 240, 255, 0.7));
    box-shadow: 0 0 16px var(--ripple-color, rgba(0, 240, 255, 0.4));
    animation: heroBurstRipple 0.85s ease-out forwards;
    will-change: transform, opacity;
}
@keyframes heroBurstRipple {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.85; }
    100% { transform: translate(-50%, -50%) scale(var(--ripple-scale, 5)); opacity: 0; }
}
.hero-burst-bolt {
    position: absolute;
    left: var(--bx, 50%);
    top: var(--by, 50%);
    width: 3px;
    height: var(--len, 48px);
    transform-origin: center top;
    transform: translate(-50%, 0) rotate(var(--rot, 0deg)) scaleY(0);
    background: linear-gradient(to bottom, var(--bolt-color, #ffe066), transparent);
    box-shadow: 0 0 12px var(--bolt-color, #ffe066);
    animation: heroBurstBolt 0.32s ease-out forwards;
}
@keyframes heroBurstBolt {
    0% { transform: translate(-50%, 0) rotate(var(--rot, 0deg)) scaleY(0); opacity: 1; }
    40% { transform: translate(-50%, 0) rotate(var(--rot, 0deg)) scaleY(1); opacity: 1; }
    100% { transform: translate(-50%, 0) rotate(var(--rot, 0deg)) scaleY(0.6); opacity: 0; }
}

/* ===== GENE CLICK EFFECTS (viewport-wide) ===== */
.gene-viewport-fx,
.gene-burst-viewport {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    contain: strict;
}
.gene-viewport-fx {
    z-index: 50;
    --fx-ox: 50vw;
    --fx-oy: 50vh;
}
.gene-burst-viewport {
    z-index: 55;
}

.gene-fx-particle {
    position: absolute;
    left: var(--fx-ox, 50%);
    top: var(--fx-oy, 50%);
    pointer-events: none;
    will-change: transform, opacity;
}

/* Combo meter ring */
.gene-combo-meter {
    position: absolute;
    inset: -12%;
    border-radius: 50%;
    border: 2px solid rgba(0, 240, 255, calc(0.08 + var(--combo-level, 0) * 0.55));
    box-shadow:
        0 0 calc(8px + var(--combo-level, 0) * 28px) rgba(0, 240, 255, calc(var(--combo-level, 0) * 0.45)),
        inset 0 0 calc(6px + var(--combo-level, 0) * 16px) rgba(0, 180, 255, calc(var(--combo-level, 0) * 0.25));
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
    pointer-events: none;
    z-index: 1;
}
.gene-combo-meter.is-active {
    opacity: 1;
    animation: geneComboMeterPulse 1.1s ease-out;
}
@keyframes geneComboMeterPulse {
    0% { transform: scale(0.88); }
    45% { transform: scale(calc(1 + var(--combo-level, 0) * 0.08)); }
    100% { transform: scale(1); }
}

/* Combo intensity on icon (glow) + trigger scale */
.gene-trigger[data-combo="0"] .gene-icon { filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.6)); }
.gene-trigger[data-combo="1"] .gene-icon,
.gene-trigger[data-combo="2"] .gene-icon {
    filter: drop-shadow(0 0 24px rgba(0, 240, 255, 0.75)) drop-shadow(0 0 40px rgba(0, 180, 255, 0.35));
}
.gene-trigger[data-combo="3"] .gene-icon,
.gene-trigger[data-combo="4"] .gene-icon {
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.9)) drop-shadow(0 0 55px rgba(0, 140, 255, 0.5));
}
.gene-trigger[data-combo="5"] .gene-icon,
.gene-trigger[data-combo="6"] .gene-icon,
.gene-trigger[data-combo="7"] .gene-icon {
    filter: drop-shadow(0 0 38px rgba(0, 240, 255, 1)) drop-shadow(0 0 70px rgba(0, 120, 255, 0.65)) drop-shadow(0 0 24px rgba(255, 0, 120, 0.25));
}
.gene-trigger[data-combo="8"] .gene-icon,
.gene-trigger[data-combo="9"] .gene-icon,
.gene-trigger[data-combo="10"] .gene-icon {
    filter: drop-shadow(0 0 45px rgba(0, 240, 255, 1)) drop-shadow(0 0 90px rgba(0, 100, 255, 0.75)) drop-shadow(0 0 30px rgba(255, 215, 0, 0.35));
}
.gene-trigger[data-combo="1"],
.gene-trigger[data-combo="2"] { transform: scale(1.03); }
.gene-trigger[data-combo="3"],
.gene-trigger[data-combo="4"] { transform: scale(1.05); }
.gene-trigger[data-combo="5"],
.gene-trigger[data-combo="6"],
.gene-trigger[data-combo="7"] { transform: scale(1.08); }
.gene-trigger[data-combo="8"],
.gene-trigger[data-combo="9"],
.gene-trigger[data-combo="10"] { transform: scale(1.1); }
.gene-trigger .gene-icon { transition: filter 0.25s ease; }
.gene-trigger { transition: transform 0.2s ease, filter 0.25s ease; }

.gene-combo-pulse .gene-icon {
    animation: geneComboSimplePulse 0.45s ease-out;
}
@keyframes geneComboSimplePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); filter: drop-shadow(0 0 32px rgba(0, 240, 255, 0.95)); }
}

/* Viewport flash + edge glow */
.gene-fx-vp-flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--fx-ox) var(--fx-oy),
        rgba(0, 240, 255, 0.28) 0%,
        rgba(0, 120, 200, 0.08) 32%,
        transparent 68%
    );
    animation: geneVpFlash 0.48s ease-out forwards;
}
.gene-fx-vp-flash--strong {
    background: radial-gradient(
        circle at var(--fx-ox) var(--fx-oy),
        rgba(0, 240, 255, 0.42) 0%,
        rgba(255, 0, 120, 0.06) 28%,
        rgba(0, 80, 180, 0.1) 45%,
        transparent 72%
    );
}
@keyframes geneVpFlash {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 0; }
}

.gene-fx-vp-edge-glow {
    position: absolute;
    inset: 0;
    box-shadow:
        inset 0 0 60px rgba(0, 240, 255, 0.22),
        inset 0 0 120px rgba(0, 100, 200, 0.12),
        inset 0 0 200px rgba(0, 60, 140, 0.06);
    animation: geneVpEdgeGlow 0.85s ease-out forwards;
}
.gene-fx-vp-edge-glow--epic {
    box-shadow:
        inset 0 0 80px rgba(0, 240, 255, 0.35),
        inset 0 0 160px rgba(255, 0, 120, 0.08),
        inset 0 0 240px rgba(0, 80, 200, 0.12);
}
@keyframes geneVpEdgeGlow {
    0% { opacity: 0; }
    35% { opacity: 1; }
    100% { opacity: 0; }
}

/* Viewport ripples */
.gene-fx-vp-ripple {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border: 2px solid rgba(0, 220, 255, var(--ripple-opacity, 0.55));
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
    animation: geneVpRipple 1.25s ease-out forwards;
}
.gene-fx-vp-ripple--accent {
    border-color: rgba(120, 255, 255, var(--ripple-opacity, 0.7));
    box-shadow: 0 0 22px rgba(255, 0, 120, 0.2), 0 0 18px rgba(0, 240, 255, 0.45);
}
@keyframes geneVpRipple {
    0% { transform: scale(0.15); opacity: var(--ripple-opacity, 0.75); }
    100% { transform: scale(var(--ripple-scale, 18)); opacity: 0; }
}

/* Viewport water */
.gene-fx-vp-water {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--fx-ox) var(--fx-oy),
        rgba(0, 220, 255, 0.18) 0%,
        rgba(0, 140, 255, 0.06) 35%,
        transparent 65%
    );
    animation: geneVpWater 1s ease-out forwards;
}
.gene-fx-vp-water--accent {
    background: radial-gradient(
        circle at var(--fx-ox) var(--fx-oy),
        rgba(0, 240, 255, 0.24) 0%,
        rgba(255, 0, 120, 0.04) 30%,
        transparent 62%
    );
}
@keyframes geneVpWater {
    0% { opacity: 0; transform: scale(0.6); }
    40% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.15); }
}

.gene-fx-vp-droplet {
    width: calc(7px * var(--drop-scale, 1));
    height: calc(11px * var(--drop-scale, 1));
    margin: -5px 0 0 -3px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: linear-gradient(180deg, #00F0FF, #0066cc);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.7);
    animation: geneVpDroplet var(--dur, 0.9s) ease-out forwards;
    animation-delay: var(--delay, 0ms);
}
@keyframes geneVpDroplet {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.1); opacity: 0; }
}

/* Viewport fire */
.gene-fx-vp-fire {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--fx-ox) var(--fx-oy),
        rgba(255, 120, 0, 0.22) 0%,
        rgba(255, 60, 0, 0.08) 38%,
        transparent 68%
    );
    animation: geneVpFire 1s ease-out forwards;
}
.gene-fx-vp-fire--plasma {
    background: radial-gradient(
        circle at var(--fx-ox) var(--fx-oy),
        rgba(0, 240, 255, 0.25) 0%,
        rgba(255, 90, 0, 0.14) 35%,
        transparent 65%
    );
}
@keyframes geneVpFire {
    0% { opacity: 0; }
    35% { opacity: 1; }
    100% { opacity: 0; }
}

.gene-fx-vp-ember {
    width: var(--sz, 5px);
    height: var(--sz, 5px);
    margin: calc(var(--sz, 5px) / -2) 0 0 calc(var(--sz, 5px) / -2);
    border-radius: 50%;
    background: radial-gradient(circle, #ffdd44, #ff4400);
    box-shadow: 0 0 10px #ff6600;
    animation: geneVpEmber var(--dur, 1s) ease-out forwards;
    animation-delay: var(--delay, 0ms);
}
.gene-fx-vp-ember--plasma {
    background: radial-gradient(circle, #e8ffff, #00F0FF 45%, #ff6600);
    box-shadow: 0 0 12px #00F0FF, 0 0 6px #ff8800;
}
@keyframes geneVpEmber {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx, 0), var(--ty, 0)) scale(0); opacity: 0; }
}

/* Viewport wind */
.gene-fx-vp-wind {
    height: 2px;
    width: var(--len, 40px);
    margin: -1px 0 0 calc(var(--len, 40px) / -2);
    background: linear-gradient(90deg, transparent, rgba(210, 235, 255, 0.85), transparent);
    animation: geneVpWind var(--dur, 0.75s) ease-out forwards;
    animation-delay: var(--delay, 0ms);
}
@keyframes geneVpWind {
    0% { transform: translate(0, 0) rotate(var(--rot, 0deg)) scaleX(0); opacity: 0; }
    40% { opacity: 1; transform: translate(calc(var(--tx, 0) * 0.3), calc(var(--ty, 0) * 0.3)) rotate(var(--rot, 0deg)) scaleX(1); }
    100% { transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--rot, 0deg)) scaleX(0.3); opacity: 0; }
}

/* Viewport lightning */
.gene-fx-vp-bolt {
    width: 3px;
    height: var(--len, 55px);
    margin: calc(var(--len, 55px) / -2) 0 0 -1.5px;
    background: linear-gradient(180deg, #fff 0%, #00F0FF 100%);
    box-shadow: 0 0 14px #00F0FF;
    transform-origin: center center;
    animation: geneVpBolt var(--dur, 0.3s) ease-out forwards;
}
@keyframes geneVpBolt {
    0% { opacity: 1; transform: translate(0, 0) rotate(var(--rot, 0deg)) scaleY(0); }
    50% { opacity: 1; transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--rot, 0deg)) scaleY(1); }
    100% { opacity: 0; transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--rot, 0deg)) scaleY(0.3); }
}

/* Viewport bio */
.gene-fx-vp-bio {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--fx-ox) var(--fx-oy),
        rgba(0, 240, 255, 0.28) 0%,
        rgba(0, 100, 200, 0.08) 40%,
        transparent 70%
    );
    animation: geneVpBio 1.15s ease-out forwards;
}
.gene-fx-vp-bio--epic {
    background: radial-gradient(
        circle at var(--fx-ox) var(--fx-oy),
        rgba(0, 240, 255, 0.38) 0%,
        rgba(0, 80, 180, 0.14) 35%,
        rgba(255, 0, 120, 0.05) 50%,
        transparent 72%
    );
}
@keyframes geneVpBio {
    0% { opacity: 0; }
    40% { opacity: 1; }
    100% { opacity: 0; }
}

.gene-fx-vp-bio-ring {
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border: 2px solid rgba(0, 240, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 22px #00F0FF, inset 0 0 16px rgba(0, 240, 255, 0.3);
    animation: geneVpBioRing 1.05s ease-out forwards;
}
.gene-fx-vp-bio-ring--accent {
    border-color: rgba(180, 255, 255, 0.85);
    box-shadow: 0 0 26px #00F0FF, 0 0 12px rgba(255, 0, 120, 0.3), inset 0 0 18px rgba(0, 240, 255, 0.35);
}
@keyframes geneVpBioRing {
    0% { transform: scale(0.2); opacity: 0.85; }
    100% { transform: scale(var(--ring-scale, 14)); opacity: 0; }
}

.gene-fx-vp-spark {
    width: var(--sz, 3px);
    height: var(--sz, 3px);
    margin: calc(var(--sz, 3px) / -2) 0 0 calc(var(--sz, 3px) / -2);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px #00F0FF, 0 0 4px #fff;
    animation: geneVpSpark var(--dur, 0.55s) ease-out forwards;
    animation-delay: var(--delay, 0ms);
}
@keyframes geneVpSpark {
    0% { transform: translate(0, 0) scale(1.2); opacity: 1; }
    100% { transform: translate(var(--tx, 0), var(--ty, 0)) scale(0); opacity: 0; }
}

/* Burst labels — separate layer from comic POW/BAM/WOW */
.gene-vp-burst {
    position: absolute;
    left: var(--fx-ox, 50%);
    top: var(--fx-oy, 50%);
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: var(--neon-pink);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 60, 0.6);
    white-space: nowrap;
    animation: geneVpBurstPop 0.9s ease-out forwards;
}
@keyframes geneVpBurstPop {
    0% { transform: translate(-50%, -50%) scale(calc(0.2 * var(--burst-scale, 1))) rotate(-12deg); opacity: 0; }
    42% { transform: translate(calc(-50% + var(--bx, 0px)), calc(-50% + var(--by, 0px))) scale(calc(1.2 * var(--burst-scale, 1))) rotate(6deg); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--bx, 0px)), calc(-50% + var(--by, 0px))) scale(calc(0.7 * var(--burst-scale, 1))) rotate(0deg); opacity: 0; }
}

/* Mobile: dynamic БАХ/ВАУ/БУМ — viewport edges, far from gene tap center */
@media (max-width: 768px) {
    .gene-vp-burst--mobile {
        position: fixed;
        left: auto;
        top: auto;
        right: auto;
        bottom: auto;
        font-size: 1.1rem;
        letter-spacing: 1px;
        animation: geneVpBurstMobile 0.78s ease-out forwards;
    }
    .gene-vp-burst--mobile.gene-vp-burst--slot-0 {
        left: 3%;
        top: 7%;
    }
    .gene-vp-burst--mobile.gene-vp-burst--slot-1 {
        right: 3%;
        left: auto;
        top: 7%;
        animation-name: geneVpBurstMobileRight;
    }
    .gene-vp-burst--mobile.gene-vp-burst--slot-2 {
        left: 3%;
        bottom: 20%;
        top: auto;
        animation-name: geneVpBurstMobileBottom;
    }
}
@keyframes geneVpBurstMobile {
    0% { transform: scale(0.3) rotate(-8deg); opacity: 0; }
    40% { transform: scale(1.1) rotate(4deg); opacity: 1; }
    100% { transform: scale(0.85) rotate(0deg); opacity: 0; }
}
@keyframes geneVpBurstMobileRight {
    0% { transform: scale(0.3) rotate(8deg); opacity: 0; }
    40% { transform: scale(1.1) rotate(-4deg); opacity: 1; }
    100% { transform: scale(0.85) rotate(0deg); opacity: 0; }
}
@keyframes geneVpBurstMobileBottom {
    0% { transform: scale(0.3) rotate(-6deg); opacity: 0; }
    40% { transform: scale(1.1) rotate(3deg); opacity: 1; }
    100% { transform: scale(0.85) rotate(0deg); opacity: 0; }
}

/* Legacy local-layer rules kept for reference — no longer used */
.gene-fx-wave {
    left: 50%; top: 50%;
    width: 18%; height: 18%;
    margin: -9% 0 0 -9%;
    border: 2px solid rgba(0, 220, 255, var(--wave-opacity, 0.65));
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
    animation: geneWaveExpand 1.3s ease-out forwards;
}
.gene-fx-wave--accent {
    border-color: rgba(120, 255, 255, var(--wave-opacity, 0.75));
    box-shadow: 0 0 16px rgba(255, 0, 120, 0.25), 0 0 14px rgba(0, 240, 255, 0.4);
}
@keyframes geneWaveExpand {
    0% { transform: scale(0.35); opacity: var(--wave-opacity, 0.85); }
    100% { transform: scale(var(--wave-scale, 4.5)); opacity: 0; }
}

.gene-fx-water-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 20%, rgba(0, 220, 255, 0.22) 48%, rgba(0, 140, 255, 0.12) 52%, transparent 78%);
    animation: geneWaterShimmer 1s ease-out forwards;
}
.gene-fx-water-shimmer--accent {
    background: linear-gradient(135deg, transparent 15%, rgba(0, 240, 255, 0.28) 42%, rgba(255, 0, 120, 0.08) 58%, transparent 82%);
}
@keyframes geneWaterShimmer {
    0% { opacity: 0; transform: translateX(-35%); }
    45% { opacity: 1; }
    100% { opacity: 0; transform: translateX(35%); }
}

.gene-fx-droplet {
    left: 50%; top: 50%;
    width: calc(7px * var(--drop-scale, 1)); height: calc(11px * var(--drop-scale, 1));
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: linear-gradient(180deg, #00F0FF, #0066cc);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.7);
    animation: geneDropletFly var(--dur, 1s) ease-out forwards;
    animation-delay: var(--delay, 0ms);
}
@keyframes geneDropletFly {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px))) scale(0.15); opacity: 0; }
}

.gene-fx-fire-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 120, 0, 0.35) 0%, rgba(255, 60, 0, 0.12) 40%, transparent 68%);
    animation: geneFirePulse 1.1s ease-out forwards;
}
.gene-fx-fire-glow--plasma {
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.35) 0%, rgba(255, 90, 0, 0.22) 35%, transparent 70%);
}
@keyframes geneFirePulse {
    0% { opacity: 0; transform: scale(0.7); }
    35% { opacity: 1; transform: scale(1.15); }
    100% { opacity: 0; transform: scale(1.4); }
}

.gene-fx-ember {
    left: 50%; top: 50%;
    width: var(--sz, 6px); height: var(--sz, 6px);
    border-radius: 50%;
    background: radial-gradient(circle, #ffdd44, #ff4400);
    box-shadow: 0 0 10px #ff6600;
    animation: geneEmberRise var(--dur, 1.2s) ease-out forwards;
    animation-delay: var(--delay, 0ms);
}
.gene-fx-ember--plasma {
    background: radial-gradient(circle, #e8ffff, #00F0FF 45%, #ff6600);
    box-shadow: 0 0 12px #00F0FF, 0 0 6px #ff8800;
}
@keyframes geneEmberRise {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px))) scale(0); opacity: 0; }
}

.gene-fx-wind-streak {
    left: var(--sx, 50%); top: var(--sy, 50%);
    height: 2px; width: var(--len, 45px);
    background: linear-gradient(90deg, transparent, rgba(210, 235, 255, 0.85), transparent);
    animation: geneWindStreak var(--dur, 0.85s) ease-out forwards;
    animation-delay: var(--delay, 0ms);
}
@keyframes geneWindStreak {
    0% { transform: translate(0, 0) rotate(var(--rot, 0deg)) scaleX(0); opacity: 0; }
    45% { opacity: 1; transform: translate(var(--mx, 0px), var(--my, 0px)) rotate(var(--rot, 0deg)) scaleX(1); }
    100% { transform: translate(var(--ex, 0px), var(--ey, 0px)) rotate(var(--rot, 0deg)) scaleX(0.4); opacity: 0; }
}

.gene-fx-swirl {
    left: 50%; top: 50%;
    width: 28px; height: 28px;
    border: 2px solid rgba(200, 230, 255, 0.45);
    border-radius: 50%;
    border-top-color: transparent;
    animation: geneSwirl 0.95s linear forwards;
    animation-delay: var(--delay, 0ms);
}
@keyframes geneSwirl {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(0.25); opacity: 0.85; }
    100% { transform: translate(-50%, -50%) rotate(720deg) scale(2.2); opacity: 0; }
}

.gene-fx-flash {
    position: absolute;
    inset: 0;
    background: rgba(100, 210, 255, 0.5);
    animation: geneFlash 0.45s ease-out forwards;
}
.gene-fx-flash--soft {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.35) 0%, transparent 72%);
}
@keyframes geneFlash {
    0% { opacity: 0; }
    18% { opacity: 1; }
    100% { opacity: 0; }
}

.gene-fx-bolt {
    left: 50%; top: 50%;
    width: 3px; height: var(--len, 55px);
    background: linear-gradient(180deg, #fff 0%, #00F0FF 100%);
    box-shadow: 0 0 14px #00F0FF;
    transform-origin: center top;
    animation: geneBolt var(--dur, 0.35s) ease-out forwards;
}
@keyframes geneBolt {
    0% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scaleY(0); }
    50% { opacity: 1; transform: translate(-50%, -35%) rotate(var(--rot, 0deg)) scaleY(1); }
    100% { opacity: 0; transform: translate(-50%, -25%) rotate(var(--rot, 0deg)) scaleY(0.4); }
}

.gene-fx-bio-pulse {
    position: absolute;
    inset: -8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.45) 0%, rgba(0, 100, 200, 0.12) 45%, transparent 72%);
    animation: geneBioPulse 1.25s ease-out forwards;
}
.gene-fx-bio-pulse--epic {
    inset: -14%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.55) 0%, rgba(0, 80, 180, 0.2) 38%, rgba(255, 0, 120, 0.06) 55%, transparent 75%);
}
@keyframes geneBioPulse {
    0% { transform: scale(0.55); opacity: 0; }
    40% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1.55); opacity: 0; }
}

.gene-fx-bio-ring {
    left: 50%; top: 50%;
    width: 38%; height: 38%;
    margin: -19% 0 0 -19%;
    border: 2px solid rgba(0, 240, 255, 0.75);
    border-radius: 50%;
    box-shadow: 0 0 22px #00F0FF, inset 0 0 18px rgba(0, 240, 255, 0.35);
    animation: geneBioRing 1.05s ease-out forwards;
}
.gene-fx-bio-ring--accent {
    border-color: rgba(180, 255, 255, 0.85);
    box-shadow: 0 0 26px #00F0FF, 0 0 12px rgba(255, 0, 120, 0.35), inset 0 0 20px rgba(0, 240, 255, 0.4);
}
@keyframes geneBioRing {
    0% { transform: scale(0.45); opacity: 0.9; }
    100% { transform: scale(var(--ring-scale, 2.8)); opacity: 0; }
}

.gene-bio-active .gene-icon {
    filter: drop-shadow(0 0 35px rgba(0, 240, 255, 1)) drop-shadow(0 0 60px rgba(0, 180, 255, 0.6));
    transition: filter 0.3s ease;
}

.gene-fx-spark {
    left: 50%; top: 50%;
    width: var(--sz, 3px); height: var(--sz, 3px);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px #00F0FF, 0 0 4px #fff;
    animation: geneSparkFly var(--dur, 0.55s) ease-out forwards;
    animation-delay: var(--delay, 0ms);
}
@keyframes geneSparkFly {
    0% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px))) scale(0); opacity: 0; }
}

.gene-effect-burst {
    position: absolute;
    left: 50%; top: 50%;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 900;
    color: var(--neon-pink);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 60, 0.6);
    z-index: 12;
    white-space: nowrap;
    animation: geneBurstPop 0.9s ease-out forwards;
}
@keyframes geneBurstPop {
    0% { transform: translate(-50%, -50%) scale(calc(0.25 * var(--burst-scale, 1))) rotate(-12deg); opacity: 0; }
    42% { transform: translate(calc(-50% + var(--bx, 0px)), calc(-50% + var(--by, 0px))) scale(calc(1.25 * var(--burst-scale, 1))) rotate(6deg); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--bx, 0px)), calc(-50% + var(--by, 0px))) scale(calc(0.75 * var(--burst-scale, 1))) rotate(0deg); opacity: 0; }
}

/* ===== ORIGIN CARDS ===== */
.origin-card {
    text-align: center;
}

.origin-card .card-icon {
    filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.3));
}

/* ===== COMIC UNIVERSE — ambient layer ===== */
.comic-section {
    overflow: hidden;
}

.comic-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 240, 255, 0.035) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    opacity: 0.35;
    mask-image: linear-gradient(180deg, transparent, black 18%, black 82%, transparent);
    z-index: 0;
}

.volume-section {
    animation: comicVolumeIn 0.7s var(--ease-out-expo) both;
}

@keyframes comicVolumeIn {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

.comic-chapter::before {
    content: none;
}

.chapter-text h3,
.comic-chapter-inline-title {
    background: linear-gradient(135deg, #fff 20%, var(--neon-cyan) 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.effect-burst {
    animation: comicBurstIn 0.55s var(--ease-spring) forwards;
}

@keyframes comicBurstIn {
    from { transform: rotate(-14deg) scale(0.4); opacity: 0; }
    to { transform: rotate(-8deg) scale(1); opacity: 0.95; }
}

/* ===== TOKEN SECTION ===== */
.token-card {
    border-top: 2px solid rgba(0, 240, 255, 0.2);
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-cyan);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.stat-card:hover::before { opacity: 1; }

.contract-address {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

/* ===== ROADMAP ===== */
.roadmap-item {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.roadmap-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
    opacity: 0.65;
    z-index: 1;
    pointer-events: none;
}

.roadmap-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(0, 240, 255, 0.06) 0%, transparent 55%);
    pointer-events: none;
    opacity: 0.8;
    z-index: 0;
}

.roadmap-status.in_progress {
    animation: roadmapStatusPulse 2s ease-in-out infinite;
}

/* ===== CHARACTERS ===== */
.character-card {
    position: relative;
    overflow: hidden;
}

.character-card::after {
    content: '';
    position: absolute;
    inset: -100%;
    background: linear-gradient(105deg, transparent 40%, rgba(0, 240, 255, 0.08) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.character-card:hover::after {
    transform: translateX(100%);
}

.character-avatar {
    position: relative;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.character-card:hover .character-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.4);
}

.character-card h3 {
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* ===== GALLERY ===== */
.gallery-item {
    border-radius: var(--radius-md);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 2;
}

.gallery-cat-btn {
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.gallery-lightbox.active {
    backdrop-filter: blur(20px);
    animation: lightboxIn 0.35s var(--ease-out-expo);
}

@keyframes lightboxIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-lightbox img {
    animation: lightboxZoom 0.4s var(--ease-out-expo);
}

@keyframes lightboxZoom {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===== COMMUNITY ===== */
.community-card {
    position: relative;
}

.community-icon-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 240, 255, 0.04);
}

.community-stats {
    border-radius: var(--radius-xl);
    padding: 2.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.community-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), transparent 50%, rgba(255, 215, 0, 0.04));
    pointer-events: none;
}

.cstat-number {
    background: linear-gradient(135deg, #fff, var(--neon-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== CONTACT & FORMS ===== */
.contact-form,
.auth-card {
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 240, 255, 0.1);
}

.contact-form input:focus,
.contact-form textarea:focus,
.form-group input:focus,
.form-group select:focus {
    transform: translateY(-1px);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 0, 60, 0.5);
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(180deg, transparent, rgba(10, 10, 15, 0.98));
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
}

.footer-logo {
    background: linear-gradient(135deg, #fff, var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== MODALS ===== */
.modal-overlay.active {
    backdrop-filter: blur(16px);
    animation: modalOverlayIn 0.3s ease;
}

@keyframes modalOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    border-radius: var(--radius-xl);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), var(--glow-cyan);
}

/* ===== SCROLL REVEAL ENHANCED ===== */
.reveal {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
    transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 400ms; }

/* ===== TOAST ===== */
.kobygen-toast {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 280px;
    max-width: 420px;
}

/* ===== PAGE LOADER ===== */
.page-loader-inner {
    animation: loaderPulse 2s ease-in-out infinite;
}

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

/* ===== USER MENU (site header) ===== */
.user-menu {
    outline: none;
    gap: var(--space-2, 0.5rem);
    padding: 0.35rem 0.85rem 0.35rem 0.45rem;
    background: var(--glass-bg-subtle, rgba(0, 240, 255, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.28);
    border-radius: var(--radius-pill, 50px);
    box-shadow: var(--shadow-sm, 0 4px 16px rgba(0, 0, 0, 0.25)), 0 0 20px rgba(0, 240, 255, 0.08);
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.user-menu:focus-visible {
    box-shadow: var(--focus-ring, 0 0 0 2px var(--bg-deep), 0 0 0 4px rgba(0, 240, 255, 0.45));
}

.user-menu:hover,
.user-menu:focus-within {
    background: rgba(0, 240, 255, 0.12);
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.35)), var(--glow-cyan, 0 0 20px rgba(0, 240, 255, 0.3));
}

.user-menu-name {
    font-family: var(--font-body);
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    color: var(--text-primary);
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-chevron {
    font-size: 0.65rem;
    color: var(--neon-cyan);
    opacity: 0.85;
    transition: transform var(--transition-fast);
}

.user-menu:hover .user-menu-chevron,
.user-menu:focus-within .user-menu-chevron {
    transform: rotate(180deg);
}

.user-dropdown {
    top: calc(100% + 0.65rem);
    right: 0;
    min-width: 260px;
    border-radius: var(--radius-md, 16px);
    box-shadow:
        var(--shadow-xl, 0 24px 64px rgba(0, 0, 0, 0.55)),
        0 0 0 1px rgba(0, 240, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: var(--space-2, 0.5rem);
    background: var(--surface-overlay, rgba(6, 6, 12, 0.94));
    backdrop-filter: blur(var(--glass-blur-heavy, 40px));
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy, 40px));
    border: 1px solid rgba(0, 240, 255, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition:
        opacity var(--transition-smooth, 0.3s ease),
        visibility var(--transition-smooth, 0.3s ease),
        transform var(--transition-smooth, 0.3s ease);
    z-index: var(--z-dropdown, 1000);
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown,
.user-menu.is-open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: accountDropdownReveal var(--duration-normal, 0.38s) var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

@keyframes accountDropdownReveal {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3, 0.75rem);
    width: 100%;
    padding: 0.72rem 0.85rem;
    border-radius: var(--radius-sm, 10px);
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: var(--text-sm, 0.78rem);
    font-weight: 500;
    line-height: 1.35;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.user-dropdown a.user-dropdown-item {
    border-bottom: none;
}

.user-dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.user-dropdown-label {
    flex: 1;
    min-width: 0;
}

.user-dropdown a,
.user-dropdown-item:hover,
.user-dropdown-item:focus-visible {
    outline: none;
}

.user-dropdown a:hover,
.user-dropdown a:focus-visible,
.user-dropdown-item:hover,
.user-dropdown-item:focus-visible {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    border-color: rgba(0, 240, 255, 0.18);
}


.user-dropdown .dropdown-divider {
    height: 1px;
    margin: var(--space-2, 0.5rem) var(--space-1, 0.25rem);
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
    border: none;
}

.user-dropdown-logout-form {
    display: block;
    margin: 0;
}

.user-dropdown-logout {
    color: var(--text-secondary);
}

.user-dropdown-logout:hover,
.user-dropdown-logout:focus-visible {
    background: rgba(255, 0, 60, 0.1);
    color: var(--neon-pink, #FF003C);
    border-color: rgba(255, 0, 60, 0.2);
}



@media (prefers-reduced-motion: reduce) {
    .user-menu:hover .user-dropdown,
    .user-menu:focus-within .user-dropdown,
    .user-menu.is-open .user-dropdown {
        animation: none;
    }
}

/* ===== LANG FLOAT ===== */
.lang-float-btn {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), var(--glow-cyan);
}

/* ===== DATA TABLES (site) ===== */
.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover td {
    background: rgba(0, 240, 255, 0.04);
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 768px) {
    .hero-stats-mini {
        width: 100%;
        justify-content: center;
    }

    .hero-title .title-line-1 {
        font-size: clamp(1.5rem, 6.5vw, 2.25rem);
        letter-spacing: 0.06em;
    }

    .hero-title .title-line-2 {
        font-size: clamp(2rem, 11vw, 3.25rem);
        letter-spacing: 0.04em;
        line-height: 1.05;
    }

    .hero-cta-group .btn-primary-glow,
    .hero-cta-group .btn-secondary-glow {
        min-height: 48px;
        width: 100%;
        justify-content: center;
    }

    .community-stats {
        padding: 1.75rem 1.25rem;
        gap: 1.25rem;
    }

    .gallery-grid {
        gap: 1.15rem;
    }

    .gallery-info h4 {
        font-size: 0.95rem;
    }

    .volume-section {
        padding-left: 1rem;
        margin-left: 0;
    }

    .comic-chapter::before {
        width: 3px;
    }

    .site-footer {
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-stagger > .reveal { transition-delay: 0ms !important; }
    .hero-character-container { transform: none !important; }
    .gene-combo-meter.is-active { animation: none; }
    .gene-trigger[data-combo] { transform: none !important; }
    .gene-icon { animation: none; }
    .gene-viewport-fx,
    .gene-burst-viewport,
    .hero-burst-fx-layer { display: none !important; }
}

/* ============================================
   PREMIUM 2026 — PHASE 2 ENHANCEMENTS
   Hero · Cards · Comic · Gallery · Footer
   ============================================ */

/* ---- Hero depth & CTA 2026 ---- */
.hero-section {
    isolation: isolate;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-deep), transparent);
    pointer-events: none;
    z-index: 1;
}

.hero-title .title-line-1 {
    font-size: var(--text-4xl);
    letter-spacing: var(--tracking-wider);
}

.hero-title .title-line-2 {
    font-size: var(--text-6xl);
    letter-spacing: var(--tracking-wide);
}

.hero-cta-group .btn-primary-glow {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-sm);
    letter-spacing: var(--tracking-wide);
    box-shadow:
        0 4px 24px rgba(255, 0, 60, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-cta-group .btn-secondary-glow {
    padding: calc(var(--space-4) - 2px) calc(var(--space-8) - 2px);
    background: rgba(0, 240, 255, 0.05);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-cta-group .btn-primary-glow:hover,
.hero-cta-group .btn-secondary-glow:hover {
    transform: translateY(-3px) scale(1.02);
}

.hero-description {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
}

/* ---- Card micro-interactions ---- */
.origin-card,
.community-card,
.token-card,
.character-card {
    transition:
        transform var(--transition-smooth),
        box-shadow var(--transition-smooth),
        border-color var(--transition-smooth);
}

.origin-card:hover,
.community-card:hover,
.character-card:hover {
    transform: translateY(-6px);
}

.roadmap-item {
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.roadmap-item:hover {
    transform: translateY(-5px) translateX(4px);
}

/* ---- Living comic reader ---- */
.comic-chapter.is-expanded .comic-chapter-title {
    background: linear-gradient(135deg, #fff 15%, var(--neon-cyan) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comic-script-progressive .comic-panel.is-latest {
    animation: comicPanelReveal 0.6s var(--ease-out-expo);
}

.comic-script-progressive .comic-panel.is-revealed.is-latest:first-of-type {
    animation: comicPanelRevealFirst 0.6s var(--ease-out-expo);
}

@keyframes comicPanelReveal {
    from { opacity: 0; transform: translateX(-24px) scale(0.94); filter: blur(6px); }
    to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes comicPanelRevealFirst {
    from { opacity: 0; transform: translateX(24px) scale(0.94); filter: blur(6px); }
    to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

.comic-panel-nav {
    border-top: 1px solid rgba(0, 240, 255, 0.08);
}

.btn-comic-next::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(139, 0, 255, 0.08));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-comic-next {
    position: relative;
    overflow: hidden;
}

.btn-comic-next:hover::before {
    opacity: 1;
}

.btn-comic-next-label,
.btn-comic-next-icon {
    position: relative;
    z-index: 1;
}

/* ---- Gallery & contact ---- */
.gallery-item img {
    transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(1.08) saturate(1.1);
}

.contact-section .glass-card {
    border-top: 2px solid rgba(0, 240, 255, 0.15);
}

.contact-form input,
.contact-form textarea {
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* ---- Footer polish ---- */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(6, 6, 12, 0.95));
    padding-top: var(--space-16);
}

.footer-links a {
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
    color: var(--neon-cyan);
    transform: translateX(3px);
}

.footer-social a {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.footer-social a:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-cyan);
}

@media (min-width: 600px) and (max-width: 1024px) {
    .gallery-item .gallery-info {
        padding: 0.9rem 1rem;
    }
}

@media (max-width: 768px) {
    @keyframes comicPanelReveal {
        from { opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(4px); }
        to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
    }

    @keyframes comicPanelRevealFirst {
        from { opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(4px); }
        to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .comic-orb,
    .volume-section,
    .effect-burst {
        animation: none !important;
    }

    .comic-script-progressive .comic-panel.is-latest,
    .comic-script-progressive .comic-panel.is-revealed.is-latest:first-of-type {
        animation: none;
    }

    .gallery-item:hover img {
        transform: none;
        filter: none;
    }
}

/* ============================================
   PREMIUM 2026 — PHASE 3
   Hero scan · Teaser shine · Token chrome
   ============================================ */

.hero-section .hero-grid-lines::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.5), transparent);
    animation: heroScanLine 8s linear infinite;
    opacity: 0.35;
    pointer-events: none;
}

.hero-section .hero-grid-lines {
    overflow: hidden;
}

@keyframes heroScanLine {
    0% { top: 0; }
    100% { top: 100%; }
}

.scroll-indicator .scroll-line {
    position: relative;
    overflow: hidden;
}

.scroll-indicator .scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--neon-cyan), transparent);
    animation: scrollLinePulse 2s ease-in-out infinite;
}

@keyframes scrollLinePulse {
    0%, 100% { top: -100%; opacity: 0.4; }
    50% { top: 100%; opacity: 1; }
}

.stat-mini--live .online-live-dot {
    box-shadow: 0 0 8px var(--neon-green), 0 0 16px rgba(0, 255, 136, 0.4);
}

.comics-teaser-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 80% 40%, rgba(139, 0, 255, 0.06), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.comics-teaser__shine {
    animation: teaserShine 4s ease-in-out infinite;
}

@keyframes teaserShine {
    0%, 100% { opacity: 0.6; transform: translateX(-10%); }
    50% { opacity: 1; transform: translateX(10%); }
}

.comics-teaser__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 40px rgba(0, 240, 255, 0.06);
}

.token-detail-row:last-child {
    border-bottom: none;
}

.btn-copy {
    transition:
        transform var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn-copy:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: var(--glow-cyan-soft);
}

.btn-copy.copied {
    animation: copySuccess 0.45s var(--ease-spring);
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    40% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.section-header .section-number {
    box-shadow: var(--glow-cyan-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .hero-section .hero-grid-lines::after,
    .scroll-indicator .scroll-line::after,
    .comics-teaser__shine {
        animation: none;
    }

    .btn-copy.copied {
        animation: none;
    }
}
