:root {
    --bg: #05050a;
    --bg-soft: #0b0d18;
    --panel: rgba(16, 17, 32, 0.92);
    --panel-deep: rgba(5, 7, 15, 0.95);
    --text: #ffffff;
    --muted: #b8b8c8;
    --cyan: #00f7ff;
    --pink: #ff00f5;
    --yellow: #fff200;
    --green: #39ff14;
    --purple: #a855f7;
    --border: rgba(0, 247, 255, 0.55);
    --shadow-cyan: 0 0 22px rgba(0, 247, 255, 0.7);
    --shadow-pink: 0 0 22px rgba(255, 0, 245, 0.7);
    --shadow-yellow: 0 0 22px rgba(255, 242, 0, 0.6);
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(rgba(0, 247, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 247, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at top left, rgba(255, 0, 245, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(0, 247, 255, 0.18), transparent 30%),
        #05050a;
    background-size: 48px 48px, 48px 48px, auto, auto, auto;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(45deg, rgba(255, 0, 245, 0.04), transparent 35%),
        linear-gradient(-45deg, rgba(0, 247, 255, 0.04), transparent 35%);
    pointer-events: none;
    z-index: -3;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.025) 0,
        rgba(255, 255, 255, 0.025) 1px,
        transparent 1px,
        transparent 5px
    );
    pointer-events: none;
    z-index: 50;
    mix-blend-mode: screen;
    opacity: 0.12;
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.page-glow {
    position: fixed;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.25;
    pointer-events: none;
    z-index: -4;
}

.page-glow-pink {
    top: 120px;
    left: -120px;
    background: var(--pink);
}

.page-glow-cyan {
    right: -140px;
    bottom: 80px;
    background: var(--cyan);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(5, 5, 10, 0.92);
    border-bottom: 2px solid var(--cyan);
    box-shadow: 0 0 28px rgba(0, 247, 255, 0.3);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-family: "Courier New", monospace;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: var(--shadow-pink);
}

.brand-icon {
    color: var(--pink);
    font-size: 30px;
    filter: drop-shadow(0 0 10px var(--pink));
}

.brand-text {
    font-size: 20px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-link,
.header-cta {
    color: var(--muted);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 6px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    border: 1px solid var(--cyan);
    box-shadow: var(--shadow-cyan);
}

.header-cta {
    color: var(--text);
    border: 1px solid var(--green);
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.45);
}

.hero-section {
    position: relative;
    min-height: 820px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0, 247, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 247, 255, 0.12) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: perspective(600px) rotateX(58deg) scale(1.6);
    transform-origin: center bottom;
    opacity: 0.65;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 45%, rgba(255, 0, 245, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(5, 5, 10, 0.68), rgba(5, 5, 10, 0.95));
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 90px 0;
}

.hero-copy {
    max-width: 610px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--cyan);
    font-family: "Courier New", monospace;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: var(--shadow-cyan);
}

.hero-title {
    margin: 0;
    font-family: "Courier New", monospace;
    font-size: clamp(58px, 8vw, 112px);
    line-height: 0.9;
    color: var(--text);
    text-shadow:
        0 0 8px #fff,
        0 0 18px var(--pink),
        0 0 34px var(--pink),
        0 0 54px var(--cyan);
}

.hero-title span {
    display: block;
    color: var(--cyan);
    text-shadow:
        0 0 8px #fff,
        0 0 20px var(--cyan),
        0 0 42px var(--cyan);
}

.hero-tagline {
    margin: 24px 0 18px;
    color: var(--yellow);
    font-size: 28px;
    font-weight: 800;
    text-shadow: var(--shadow-yellow);
}

.hero-text {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions,
.community-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 26px;
    color: var(--text);
    text-decoration: none;
    background: rgba(5, 5, 10, 0.78);
    border-radius: 6px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid currentColor;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-cyan {
    color: var(--cyan);
    box-shadow: var(--shadow-cyan);
}

.btn-pink {
    color: var(--pink);
    box-shadow: var(--shadow-pink);
}

.btn-yellow {
    color: var(--yellow);
    box-shadow: var(--shadow-yellow);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 36px;
}

.hero-stats div {
    background: rgba(8, 10, 18, 0.75);
    border: 1px solid rgba(0, 247, 255, 0.35);
    padding: 16px;
    border-radius: 10px;
}

.hero-stats strong {
    display: block;
    color: var(--yellow);
    font-family: "Courier New", monospace;
    font-size: 24px;
    text-shadow: var(--shadow-yellow);
}

.hero-stats span {
    display: block;
    color: var(--muted);
    margin-top: 6px;
    font-size: 13px;
}

.hero-arcade {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
}

.portal-frame {
    width: min(100%, 520px);
    aspect-ratio: 1 / 1;
    border: 3px solid var(--pink);
    border-radius: 28px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(255, 0, 245, 0.16), rgba(0, 247, 255, 0.12)),
        rgba(5, 5, 10, 0.82);
    box-shadow:
        0 0 26px rgba(255, 0, 245, 0.85),
        inset 0 0 30px rgba(0, 247, 255, 0.35);
    transform: perspective(700px) rotateY(-8deg);
}

.portal-screen {
    position: relative;
    height: 100%;
    border: 2px solid var(--cyan);
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(0, 247, 255, 0.18), transparent 34%),
        linear-gradient(rgba(0, 247, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 245, 0.14) 1px, transparent 1px),
        #05050a;
    background-size: auto, 38px 38px, 38px 38px, auto;
    display: grid;
    place-items: center;
}

.arcade-title {
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--yellow);
    font-family: "Courier New", monospace;
    font-size: 28px;
    font-weight: 900;
    text-shadow: var(--shadow-yellow);
}

.gamepad {
    font-size: 110px;
    filter: drop-shadow(0 0 18px var(--cyan));
    animation: float 3s ease-in-out infinite;
}

.scanline {
    position: absolute;
    left: 0;
    right: 0;
    top: -20%;
    height: 80px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.12), transparent);
    animation: scan 3.5s linear infinite;
}

.floating-icon {
    position: absolute;
    font-size: 42px;
    filter: drop-shadow(0 0 14px var(--pink));
    animation: float 4s ease-in-out infinite;
}

.icon-one {
    top: 18px;
    left: 12px;
}

.icon-two {
    bottom: 30px;
    left: 36px;
    animation-delay: 0.4s;
}

.icon-three {
    top: 60px;
    right: 18px;
    animation-delay: 0.8s;
}

.icon-four {
    bottom: 80px;
    right: 40px;
    animation-delay: 1.2s;
}

.section {
    padding: 96px 0;
}

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 52px;
}

.section-heading h2,
.community-box h2,
.contact-grid h2,
.neon-panel h2 {
    margin: 0 0 16px;
    font-family: "Courier New", monospace;
    font-size: clamp(34px, 5vw, 58px);
    color: var(--text);
    text-shadow:
        0 0 12px var(--pink),
        0 0 28px var(--pink);
}

.section-heading p,
.neon-panel p,
.community-box p,
.contact-grid p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 17px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.game-card,
.neon-panel,
.community-box,
.contact-form {
    position: relative;
    background: var(--panel);
    border: 2px solid var(--cyan);
    border-radius: 12px;
    box-shadow:
        0 0 16px rgba(0, 247, 255, 0.45),
        inset 0 0 20px rgba(255, 0, 245, 0.05);
}

.game-card {
    min-height: 420px;
    padding: 34px 26px;
    text-align: center;
    transition: 0.25s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--pink);
    box-shadow: var(--shadow-pink);
}

.card-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    color: #05050a;
    background: var(--green);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.game-icon {
    font-size: 70px;
    margin: 18px 0 26px;
    filter: drop-shadow(0 0 16px var(--cyan));
}

.game-card h3 {
    margin: 0 0 18px;
    font-size: 25px;
}

.game-card p {
    color: var(--muted);
    line-height: 1.7;
}

.tag-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0;
}

.tag-row span {
    color: #05050a;
    background: var(--cyan);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.tag-row span:nth-child(2) {
    background: var(--pink);
}

.tag-row span:nth-child(3) {
    background: var(--yellow);
}

.card-link {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 900;
    text-shadow: var(--shadow-cyan);
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.neon-panel {
    padding: 42px;
}

.panel-icon {
    font-size: 58px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 18px var(--pink));
}

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

.feature-list li {
    color: var(--muted);
    padding: 12px 0 12px 34px;
    border-bottom: 1px solid rgba(0, 247, 255, 0.2);
    position: relative;
}

.feature-list li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--yellow);
    text-shadow: var(--shadow-yellow);
}

.community-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 46px;
    border-color: var(--pink);
    box-shadow: var(--shadow-pink);
}

.contact-grid {
    align-items: start;
}

.contact-form {
    padding: 32px;
}

.contact-form label {
    display: block;
    margin-bottom: 20px;
    color: var(--text);
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 15px 16px;
    color: var(--text);
    background: #02030a;
    border: 1px solid var(--cyan);
    border-radius: 6px;
    font-size: 16px;
    outline: none;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

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

.site-footer {
    padding: 34px 0;
    border-top: 2px solid var(--cyan);
    background: rgba(5, 5, 10, 0.95);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-family: "Courier New", monospace;
    font-weight: 900;
    text-shadow: var(--shadow-pink);
}

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

@keyframes scan {
    from {
        top: -20%;
    }
    to {
        top: 120%;
    }
}

@media (max-width: 1050px) {
    .header-cta {
        display: none;
    }

    .hero-inner,
    .about-grid,
    .contact-grid,
    .community-box {
        grid-template-columns: 1fr;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-arcade {
        min-height: 420px;
    }
}

@media (max-width: 760px) {
    .header-inner {
        flex-direction: column;
        padding: 16px 0;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-inner {
        padding: 70px 0;
    }

    .hero-stats,
    .game-grid {
        grid-template-columns: 1fr;
    }

    .portal-frame {
        transform: none;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile hero alignment fix */
@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, var(--max));
    }

    .site-header {
        position: relative;
    }

    .header-inner {
        min-height: auto;
        padding: 18px 0 22px;
        gap: 18px;
    }

    .brand {
        justify-content: center;
        width: 100%;
        gap: 10px;
        text-align: center;
    }

    .brand-icon {
        font-size: 42px;
    }

    .brand-text {
        font-size: 24px;
        letter-spacing: 4px;
        line-height: 1.2;
    }

    .main-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 14px 8px;
        font-size: 18px;
    }

    .header-cta {
        display: none;
    }

    .hero-section {
        min-height: auto;
        display: block;
    }

    .hero-inner {
        display: flex;
        flex-direction: column;
        gap: 32px;
        padding: 46px 0 58px;
        text-align: center;
    }

    .hero-copy {
        max-width: 100%;
        order: 1;
    }

    .eyebrow {
        text-align: center;
        font-size: 13px;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: clamp(48px, 16vw, 76px);
        line-height: 0.95;
        text-align: center;
    }

    .hero-tagline {
        font-size: 22px;
        line-height: 1.25;
        text-align: center;
    }

    .hero-text {
        font-size: 16px;
        line-height: 1.65;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
        margin-top: 26px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .hero-stats {
        order: 3;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 14px;
        margin-top: 22px;
    }

    .hero-stats div {
        text-align: left;
        padding: 18px 20px;
    }

    .hero-arcade {
        order: 2;
        width: 100%;
        min-height: auto;
        margin-top: 8px;
    }

    .portal-frame {
        width: min(100%, 360px);
        margin: 0 auto;
        transform: none;
        border-radius: 22px;
        padding: 16px;
    }

    .arcade-title {
        font-size: 20px;
        top: 22px;
    }

    .gamepad {
        font-size: 72px;
    }

    .floating-icon {
        font-size: 30px;
    }

    .icon-one {
        top: -8px;
        left: 8px;
    }

    .icon-two {
        bottom: 12px;
        left: 12px;
    }

    .icon-three {
        top: 12px;
        right: 10px;
    }

    .icon-four {
        bottom: 30px;
        right: 18px;
    }

    .section {
        padding: 64px 0;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .section-heading h2 {
        font-size: clamp(34px, 12vw, 52px);
    }

    .game-card {
        min-height: auto;
        padding: 30px 22px;
    }
}


/* Arcade polish accents without covering the hero grid */
.hero-inner {
    position: relative;
    z-index: 3;
}

.hero-copy {
    position: relative;
}

.hero-copy::before {
    content: "";
    position: absolute;
    left: -28px;
    top: -24px;
    width: 170px;
    height: 4px;
    background: var(--pink);
    box-shadow: var(--shadow-pink);
}

.hero-copy::after {
    content: "";
    position: absolute;
    left: 88px;
    top: -24px;
    width: 170px;
    height: 4px;
    background: var(--cyan);
    box-shadow: var(--shadow-cyan);
}

.portal-frame {
    position: relative;
}

.portal-frame::before {
    content: "LEVEL UP";
    position: absolute;
    top: -46px;
    right: 28px;
    color: var(--green);
    border: 2px solid var(--green);
    border-radius: 8px;
    padding: 8px 16px;
    font-family: "Courier New", monospace;
    font-weight: 900;
    letter-spacing: 2px;
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.7);
    background: rgba(5, 5, 10, 0.9);
}

.portal-frame::after {
    content: "INSERT COIN";
    position: absolute;
    bottom: -42px;
    left: 24px;
    color: var(--yellow);
    font-family: "Courier New", monospace;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: var(--shadow-yellow);
}

.game-card {
    overflow: hidden;
}

.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 0, 245, 0.16), transparent 35%),
        linear-gradient(315deg, rgba(0, 247, 255, 0.14), transparent 35%);
    opacity: 0.55;
    pointer-events: none;
}

.game-card::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 18px;
    height: 4px;
    background: linear-gradient(90deg, var(--pink), var(--cyan), var(--yellow));
    border-radius: 999px;
    box-shadow:
        0 0 12px rgba(255, 0, 245, 0.7),
        0 0 18px rgba(0, 247, 255, 0.55);
}

.game-card > * {
    position: relative;
    z-index: 2;
}

@media (max-width: 760px) {
    .hero-copy::before,
    .hero-copy::after {
        display: none;
    }

    .portal-frame::before,
    .portal-frame::after {
        display: none;
    }
}

/* Final hero grid clarity */
.hero-grid {
    opacity: 0.92 !important;
    background:
        linear-gradient(rgba(0, 247, 255, 0.20) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 245, 0.16) 1px, transparent 1px) !important;
    background-size: 52px 52px !important;
}

.hero-overlay {
    background:
        radial-gradient(circle at 78% 45%, rgba(255, 0, 245, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(5, 5, 10, 0.18), rgba(5, 5, 10, 0.50)) !important;
}


/* Featured Games neon divider polish */
.featured-section .section-heading {
    position: relative;
    padding-top: 18px;
}

.featured-section .section-heading::before,
.featured-section .section-heading::after {
    content: "";
    position: absolute;
    top: 0;
    width: 180px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--cyan), var(--yellow));
    box-shadow:
        0 0 14px rgba(255, 0, 245, 0.8),
        0 0 20px rgba(0, 247, 255, 0.65);
}

.featured-section .section-heading::before {
    left: 50%;
    transform: translateX(-210px);
}

.featured-section .section-heading::after {
    right: 50%;
    transform: translateX(210px);
}

.featured-section .section-heading h2 {
    color: #ffffff;
    text-shadow:
        0 0 8px #ffffff,
        0 0 18px var(--pink),
        0 0 34px var(--pink),
        0 0 48px var(--cyan);
}

.featured-section .eyebrow {
    color: var(--cyan);
    letter-spacing: 4px;
}

@media (max-width: 760px) {
    .featured-section .section-heading::before,
    .featured-section .section-heading::after {
        width: 90px;
    }

    .featured-section .section-heading::before {
        transform: translateX(-112px);
    }

    .featured-section .section-heading::after {
        transform: translateX(112px);
    }
} 
/* Floating alien runner */
.alien-runner {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    font-size: 34px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transform: translate(-50%, -50%);
    offset-rotate: 0deg;
    animation:
        alienRunMain 26s linear infinite,
        alienGlowFlicker 1.4s ease-in-out infinite;
}

.alien-pink {
    color: #ff00f5;
    text-shadow:
        0 0 6px #ffffff,
        0 0 10px #ff00f5,
        0 0 22px #ff00f5,
        0 0 38px #ff00f5;
    filter:
        drop-shadow(0 0 8px #ff00f5)
        drop-shadow(0 0 18px #ff00f5);
}

/* Desktop path for the pink alien */
@keyframes alienRunMain {
    0% {
        top: 70px;
        left: 210px;
        transform: translate(-50%, -50%) scale(1);
    }

    10% {
        top: 70px;
        left: 520px;
        transform: translate(-50%, -50%) scale(1.1);
    }

    20% {
        top: 245px;
        left: 520px;
        transform: translate(-50%, -50%) scale(1);
    }

    35% {
        top: 245px;
        left: calc(100vw - 180px);
        transform: translate(-50%, -50%) scale(1.08);
    }

    48% {
        top: 720px;
        left: calc(100vw - 180px);
        transform: translate(-50%, -50%) scale(1);
    }

    62% {
        top: 720px;
        left: 180px;
        transform: translate(-50%, -50%) scale(1.12);
    }

    78% {
        top: 1120px;
        left: 180px;
        transform: translate(-50%, -50%) scale(1);
    }

    90% {
        top: 1120px;
        left: calc(100vw - 220px);
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        top: 70px;
        left: 210px;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Glow flicker while traveling */
@keyframes alienGlowFlicker {
    0%, 100% {
        opacity: 0.9;
        filter:
            drop-shadow(0 0 8px #ff00f5)
            drop-shadow(0 0 18px #ff00f5);
    }

    25% {
        opacity: 1;
        filter:
            drop-shadow(0 0 10px #ffffff)
            drop-shadow(0 0 18px #ff00f5)
            drop-shadow(0 0 34px #ff00f5);
    }

    50% {
        opacity: 0.72;
        filter:
            drop-shadow(0 0 5px #ff00f5)
            drop-shadow(0 0 12px #ff00f5);
    }

    75% {
        opacity: 1;
        filter:
            drop-shadow(0 0 12px #ffffff)
            drop-shadow(0 0 22px #ff00f5)
            drop-shadow(0 0 42px #ff00f5);
    }
}

/* Keep animation calmer on phones */
@media (max-width: 760px) {
    .alien-runner {
        font-size: 26px;
        animation:
            alienRunMobile 18s linear infinite,
            alienGlowFlicker 1.4s ease-in-out infinite;
    }

    @keyframes alienRunMobile {
        0% {
            top: 110px;
            left: 34px;
        }

        25% {
            top: 110px;
            left: calc(100vw - 34px);
        }

        50% {
            top: 520px;
            left: calc(100vw - 34px);
        }

        75% {
            top: 520px;
            left: 34px;
        }

        100% {
            top: 110px;
            left: 34px;
        }
    }
}

/* Respect reduced motion settings */
@media (prefers-reduced-motion: reduce) {
    .alien-runner {
        animation: none;
        display: none;
    }
}

/* Extra alien colors with staggered travel */
.alien-cyan {
    color: #00f7ff;
    animation-delay: -9s, -0.45s;
    text-shadow:
        0 0 6px #ffffff,
        0 0 10px #00f7ff,
        0 0 22px #00f7ff,
        0 0 38px #00f7ff;
    filter:
        drop-shadow(0 0 8px #00f7ff)
        drop-shadow(0 0 18px #00f7ff);
}

.alien-yellow {
    color: #fff200;
    animation-delay: -17s, -0.85s;
    text-shadow:
        0 0 6px #ffffff,
        0 0 10px #fff200,
        0 0 22px #fff200,
        0 0 38px #fff200;
    filter:
        drop-shadow(0 0 8px #fff200)
        drop-shadow(0 0 18px #fff200);
}

/* Give each color its own glow flicker */
.alien-cyan {
    animation-name: alienRunMain, alienGlowFlickerCyan;
}

.alien-yellow {
    animation-name: alienRunMain, alienGlowFlickerYellow;
}

@keyframes alienGlowFlickerCyan {
    0%, 100% {
        opacity: 0.86;
        filter:
            drop-shadow(0 0 8px #00f7ff)
            drop-shadow(0 0 18px #00f7ff);
    }

    25% {
        opacity: 1;
        filter:
            drop-shadow(0 0 10px #ffffff)
            drop-shadow(0 0 20px #00f7ff)
            drop-shadow(0 0 36px #00f7ff);
    }

    50% {
        opacity: 0.7;
        filter:
            drop-shadow(0 0 5px #00f7ff)
            drop-shadow(0 0 12px #00f7ff);
    }

    75% {
        opacity: 1;
        filter:
            drop-shadow(0 0 12px #ffffff)
            drop-shadow(0 0 24px #00f7ff)
            drop-shadow(0 0 42px #00f7ff);
    }
}

@keyframes alienGlowFlickerYellow {
    0%, 100% {
        opacity: 0.88;
        filter:
            drop-shadow(0 0 8px #fff200)
            drop-shadow(0 0 18px #fff200);
    }

    25% {
        opacity: 1;
        filter:
            drop-shadow(0 0 10px #ffffff)
            drop-shadow(0 0 20px #fff200)
            drop-shadow(0 0 36px #fff200);
    }

    50% {
        opacity: 0.72;
        filter:
            drop-shadow(0 0 5px #fff200)
            drop-shadow(0 0 12px #fff200);
    }

    75% {
        opacity: 1;
        filter:
            drop-shadow(0 0 12px #ffffff)
            drop-shadow(0 0 24px #fff200)
            drop-shadow(0 0 42px #fff200);
    }
}

/* Mobile staggered aliens */
@media (max-width: 760px) {
    .alien-cyan {
        animation-name: alienRunMobile, alienGlowFlickerCyan;
        animation-delay: -6s, -0.45s;
    }

    .alien-yellow {
        animation-name: alienRunMobile, alienGlowFlickerYellow;
        animation-delay: -12s, -0.85s;
    }
}

/* Header / top screen polish */
.site-header {
    background:
        linear-gradient(180deg, rgba(5, 5, 12, 0.98), rgba(8, 8, 18, 0.94)),
        linear-gradient(90deg, rgba(255, 0, 245, 0.12), rgba(0, 247, 255, 0.12));
    border-bottom: 2px solid var(--cyan);
    box-shadow:
        0 0 22px rgba(0, 247, 255, 0.45),
        0 0 42px rgba(255, 0, 245, 0.18);
}

.header-inner {
    min-height: 88px;
    padding: 0 6px;
}

.brand {
    position: relative;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(5, 5, 12, 0.45);
}

.brand::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--pink), transparent, var(--cyan));
    opacity: 0.28;
    z-index: -1;
    filter: blur(8px);
}

.brand-icon {
    font-size: 34px;
}

.brand-text {
    color: #ffffff;
    font-size: 22px;
    letter-spacing: 2px;
    text-shadow:
        0 0 8px #ffffff,
        0 0 16px var(--pink),
        0 0 26px var(--pink);
}

.main-nav {
    background: rgba(3, 4, 10, 0.42);
    border: 1px solid rgba(0, 247, 255, 0.16);
    border-radius: 999px;
    padding: 6px;
    box-shadow: inset 0 0 18px rgba(0, 247, 255, 0.08);
}

.nav-link {
    border-radius: 999px;
    font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(0, 247, 255, 0.08);
    border: 1px solid var(--cyan);
    box-shadow:
        0 0 12px rgba(0, 247, 255, 0.75),
        inset 0 0 12px rgba(0, 247, 255, 0.18);
}

.header-cta {
    border-radius: 10px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(3, 4, 10, 0.65);
}

/* Keep alien runners out of the header layer */
.alien-runner {
    z-index: 18;
}

.site-header {
    z-index: 50;
}

/* Better mobile header */
@media (max-width: 760px) {
    .site-header {
        position: relative;
    }

    .header-inner {
        min-height: auto;
        padding: 18px 0 20px;
        gap: 18px;
    }

    .brand {
        width: 100%;
        justify-content: center;
        padding: 12px 10px;
        border: 1px solid rgba(255, 0, 245, 0.4);
        box-shadow:
            0 0 18px rgba(255, 0, 245, 0.4),
            inset 0 0 14px rgba(0, 247, 255, 0.08);
    }

    .brand-icon {
        font-size: 36px;
    }

    .brand-text {
        font-size: 22px;
        letter-spacing: 3px;
        text-align: center;
    }

    .main-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
        border-radius: 14px;
        background: rgba(4, 5, 12, 0.72);
        border: 1px solid rgba(0, 247, 255, 0.35);
    }

    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 8px;
        font-size: 17px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(0, 0, 0, 0.28);
    }

    .nav-link.active {
        border-color: var(--cyan);
        box-shadow:
            0 0 14px rgba(0, 247, 255, 0.7),
            inset 0 0 12px rgba(0, 247, 255, 0.18);
    }

    .header-cta {
        display: block;
        width: 100%;
        text-align: center;
        border-color: var(--green);
        box-shadow: 0 0 16px rgba(57, 255, 20, 0.45);
    }

    .alien-runner {
        z-index: 10;
    }
}

/* Clean hero grid, remove fake floor sheet */
.hero-grid {
    transform: none !important;
    inset: 0 !important;
    opacity: 0.72 !important;
    background:
        linear-gradient(rgba(0, 247, 255, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 245, 0.10) 1px, transparent 1px) !important;
    background-size: 52px 52px !important;
}

.hero-overlay {
    background:
        radial-gradient(circle at 78% 45%, rgba(255, 0, 245, 0.10), transparent 30%),
        linear-gradient(180deg, rgba(5, 5, 10, 0.16), rgba(5, 5, 10, 0.42)) !important;
}

body::after {
    opacity: 0.06 !important;
}

/* Keep alien runners below the header area */
@keyframes alienRunMain {
    0% {
        top: 130px;
        left: 210px;
        transform: translate(-50%, -50%) scale(1);
    }

    10% {
        top: 130px;
        left: 520px;
        transform: translate(-50%, -50%) scale(1.1);
    }

    20% {
        top: 285px;
        left: 520px;
        transform: translate(-50%, -50%) scale(1);
    }

    35% {
        top: 285px;
        left: calc(100vw - 180px);
        transform: translate(-50%, -50%) scale(1.08);
    }

    48% {
        top: 720px;
        left: calc(100vw - 180px);
        transform: translate(-50%, -50%) scale(1);
    }

    62% {
        top: 720px;
        left: 180px;
        transform: translate(-50%, -50%) scale(1.12);
    }

    78% {
        top: 1120px;
        left: 180px;
        transform: translate(-50%, -50%) scale(1);
    }

    90% {
        top: 1120px;
        left: calc(100vw - 220px);
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        top: 130px;
        left: 210px;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (max-width: 760px) {
    @keyframes alienRunMobile {
        0% {
            top: 260px;
            left: 44px;
        }

        20% {
            top: 260px;
            left: calc(100vw - 44px);
        }

        40% {
            top: 520px;
            left: calc(100vw - 44px);
        }

        60% {
            top: 520px;
            left: 44px;
        }

        80% {
            top: 760px;
            left: 44px;
        }

        100% {
            top: 260px;
            left: 44px;
        }
    }
}

/* About and Vibe arcade panel polish */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 0, 245, 0.12), transparent 28%),
        radial-gradient(circle at 82% 45%, rgba(0, 247, 255, 0.10), transparent 30%);
    pointer-events: none;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.neon-panel {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(18, 20, 38, 0.96), rgba(6, 7, 16, 0.96));
    border: 2px solid rgba(0, 247, 255, 0.75);
    box-shadow:
        0 0 18px rgba(0, 247, 255, 0.45),
        inset 0 0 24px rgba(255, 0, 245, 0.08);
}

.neon-panel::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 18px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--cyan), var(--yellow));
    box-shadow:
        0 0 14px rgba(255, 0, 245, 0.75),
        0 0 18px rgba(0, 247, 255, 0.55);
}

.neon-panel::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 247, 255, 0.18), transparent 70%);
    pointer-events: none;
}

.panel-icon {
    display: inline-grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: rgba(5, 5, 12, 0.85);
    border: 1px solid rgba(255, 0, 245, 0.65);
    box-shadow:
        0 0 18px rgba(255, 0, 245, 0.55),
        inset 0 0 18px rgba(0, 247, 255, 0.12);
}

.neon-panel h2 {
    color: #ffffff;
    text-shadow:
        0 0 8px #ffffff,
        0 0 18px var(--pink),
        0 0 32px var(--pink);
}

.feature-list li {
    border-bottom: 1px solid rgba(0, 247, 255, 0.22);
}

.feature-list li::before {
    color: var(--yellow);
    text-shadow:
        0 0 8px var(--yellow),
        0 0 18px var(--yellow);
}

@media (max-width: 760px) {
    .neon-panel {
        padding: 34px 24px;
    }

    .panel-icon {
        width: 64px;
        height: 64px;
        font-size: 38px;
    }
}

/* AuthorVault final screen layout */
.authorvault-page .portal-screen {
    position: relative;
    overflow: hidden;
}

.authorvault-page .authorvault-screen-stack {
    position: absolute;
    left: 50%;
    top: 57%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    text-align: center;
    width: 100%;
    z-index: 3;
}

.authorvault-page .authorvault-book-icon {
    font-size: 6.4rem;
    line-height: 1;
    margin: 0;
    filter: drop-shadow(0 0 14px rgba(32, 227, 255, 0.45));
}

.authorvault-page .authorvault-write-icon {
    font-size: 4.4rem;
    line-height: 1;
    margin: -0.25rem 0 0;
    filter: drop-shadow(0 0 12px rgba(255, 159, 28, 0.45));
}

.authorvault-page .authorvault-screen-slogan {
    margin: 0.15rem 0 0;
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(32, 227, 255, 0.65);
}

.authorvault-page .hero-arcade > .insert-coin {
    display: none;
}

/* AuthorVault stronger icon size override */
.authorvault-page .portal-screen .authorvault-screen-stack {
    top: 60% !important;
    gap: 0.20rem !important;
}

.authorvault-page .portal-screen .authorvault-book-icon {
    display: block !important;
    font-size: 9rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    transform: scale(1.20) !important;
    transform-origin: center center !important;
}

.authorvault-page .portal-screen .authorvault-write-icon {
    display: block !important;
    font-size: 6.2rem !important;
    line-height: 1 !important;
    margin: -0.35rem 0 0 !important;
    transform: translateY(-0.30rem) scale(1.20) !important;
    transform-origin: center center !important;
}

.authorvault-page .portal-screen .authorvault-screen-slogan {
    margin-top: 0.35rem !important;
    font-size: 1.35rem !important;
    line-height: 1.2 !important;
    letter-spacing: 0.03em !important;
}
