/* CSS Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    touch-action: pan-x pan-y;
    /* Disable double-tap zoom but allow scroll */
}

/* Safety net for interactions */
a,
button,
.btn,
.mobile-menu-btn {
    pointer-events: auto !important;
    cursor: pointer;
}

:root {
    --bg-color: #050505;
    --bg-secondary: #0f120f;
    --text-primary: #ffffff;

    /* PEPE PALETTE */
    --pepe-green: #54a836;
    --pepe-dark: #3b7a24;
    --neon-green: #00FF41;
    --laser-red: #ff0000;
    --electric-blue: #00F0FF;

    --font-heading: 'Orbitron', sans-serif;
    /* Tech base */
    --font-meme: 'Comic Sans MS', 'Chalkboard SE', sans-serif;
    /* Chaotic overlay */
    --font-body: 'Rajdhani', monospace;

    --glow-green: 0 0 15px var(--pepe-green), 0 0 30px var(--neon-green);
    --glow-red: 0 0 15px var(--laser-red), 0 0 30px var(--laser-red);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Fix horizontal scroll issues */
    width: 100%;
    /* Prevent width overflow */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(84, 168, 54, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 0, 0.1) 0%, transparent 20%);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Utilities */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--neon-green);
    text-shadow: var(--glow-green);
    font-weight: 800;
    font-style: italic;
}

.strike-red {
    text-decoration: line-through;
    color: var(--laser-red);
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.9);
    border-bottom: 2px solid var(--pepe-green);
    box-shadow: 0 5px 20px rgba(84, 168, 54, 0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    transform: rotate(-3deg);
    transition: transform 0.3s;
}

.logo-container:hover {
    transform: rotate(0deg) scale(1.05);
}

.site-logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--pepe-green);
    object-fit: cover;
    box-shadow: 0 0 10px var(--pepe-green);
}

.logo-text {
    font-family: var(--font-meme);
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--pepe-green);
    text-shadow: 2px 2px 0px #fff;
    line-height: 1;
}

.nav-link {
    margin-left: 25px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.nav-link:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-content {
    z-index: 10;
    max-width: 1000px;
    text-align: center;
}

h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 3px 3px 0px var(--pepe-green), -2px -2px 0px var(--laser-red);
    animation: shake 3s infinite;
}

.subtitle {
    font-size: 1.3rem;
    color: #ddd;
    margin-bottom: 1.5rem;
    font-family: var(--font-meme);
    background: var(--bg-secondary);
    display: inline-block;
    padding: 5px 15px;
    transform: rotate(1deg);
    border: 1px dashed var(--neon-green);
}

/* Hero CA Box - Below Subtitle */
.ca-box-hero {
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid var(--neon-green);
    padding: 12px 25px;
    border-radius: 10px;
    font-family: monospace;
    margin-top: 15px;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.ca-box-hero:hover {
    background: rgba(0, 255, 65, 0.15);
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--neon-green);
    border-color: var(--pepe-green);
}

.ca-box-hero:active {
    transform: scale(0.98);
}

.ca-label-hero {
    font-weight: bold;
    color: var(--neon-green);
    font-size: 1.1rem;
    text-shadow: 0 0 10px var(--neon-green);
}

.ca-text-hero {
    font-family: monospace;
    font-size: 1.5rem;
    color: white;
    letter-spacing: 1px;
    word-break: break-all;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.copy-icon-hero {
    font-size: 1.4rem;
}

.copy-tooltip-hero {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pepe-green);
    color: #000;
    font-weight: bold;
    font-family: var(--font-heading);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 0 10px var(--pepe-green);
}

.ca-box-hero:hover .copy-tooltip-hero {
    opacity: 1;
}

.copy-tooltip-hero.copied {
    background: #fff;
    color: var(--pepe-green);
}


.hero-visual {
    position: relative;
    margin: 2rem auto;
    width: 100%;
    max-width: 700px;
}

/* Monitor/Stream Frame */
.video-container {
    position: relative;
    border: 5px solid #444;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(84, 168, 54, 0.5);
    background: #000;
    overflow: hidden;
    transform: perspective(1000px) rotateX(5deg);
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
}

.stream-feed {
    width: 100%;
    display: block;
    mix-blend-mode: normal;
    /* Ensure the image pops */
    filter: contrast(1.1) saturate(1.2);
}

/* LIVE BADGE */
.live-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--laser-red);
    color: white;
    padding: 5px 15px;
    font-size: 1.2rem;
    font-weight: 900;
    font-family: var(--font-heading);
    border: 2px solid white;
    box-shadow: 0 0 15px var(--laser-red);
    animation: pulse-red 0.5s infinite alternate;
    z-index: 20;
}

.avatar-overlay {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid var(--neon-green);
    overflow: hidden;
    z-index: 25;
    background: #000;
    box-shadow: 0 0 30px var(--neon-green);
    animation: float 4s ease-in-out infinite;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA Buttons */
.cta-container {
    margin-top: 60px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-family: var(--font-tech);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: all 0.3s;
    letter-spacing: 2px;
    gap: 10px;
    /* Space between icon and text */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 10;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.primary-cta {
    background: var(--pepe-green);
    color: white;
    border: 4px solid var(--neon-green);
    box-shadow: 0 0 20px var(--pepe-green);
    animation: wiggle 3s infinite;
}

.primary-cta:hover {
    background: var(--neon-green);
    color: black;
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 0 50px var(--neon-green);
}

.secondary-cta {
    background: transparent;
    color: var(--electric-blue);
    border: 3px solid var(--electric-blue);
}

.secondary-cta:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 30px var(--electric-blue);
}

/* Contract Address Box */
.ca-box {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--neon-blue);
    padding: 15px 25px;
    border-radius: 10px;
    font-family: monospace;
    color: var(--neon-blue);
    margin-top: 30px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /* overflow: hidden; Removed to allow tooltip visibility */
}

.ca-box:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: scale(1.02);
    box-shadow: 0 0 15px var(--neon-blue);
}

.ca-box:active {
    transform: scale(0.98);
}

.copy-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pepe-green);
    color: #000;
    font-weight: bold;
    font-family: var(--font-tech);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.ca-box:hover .copy-tooltip {
    opacity: 1;
}

.copy-tooltip.copied {
    background: #fff;
    color: var(--pepe-green);
}

.ca-label {
    font-weight: bold;
    color: var(--pepe-green);
}

.ca-text {
    font-family: monospace;
    font-size: 1.2rem;
    color: white;
    letter-spacing: 1px;
    word-break: break-all;
}

.copy-icon {
    font-size: 1.2rem;
}

/* Scanlines/Grid Background */
.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

/* Sections */
section {
    padding: 100px 0;
    border-bottom: 1px solid #333;
    position: relative;
    z-index: 5;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3.5rem;
    color: white;
    text-shadow: 4px 4px 0px var(--bg-secondary), 6px 6px 0px var(--pepe-green);
    display: inline-block;
    background: #000;
    padding: 10px 30px;
    border: 2px solid var(--pepe-green);
    transform: skew(-10deg);
}

/* Project (Chaos Layout) */
.project-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.project-text {
    flex: 1;
    min-width: 300px;
}

.project-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.tech-list li {
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--laser-red);
    font-family: var(--font-heading);
}

.project-visual {
    flex: 1;
    min-width: 300px;
}

.laser-img {
    width: 100%;
    border-radius: 10px;
    border: 4px solid var(--laser-red);
    box-shadow: 0 0 40px var(--laser-red);
    filter: contrast(1.2);
    transform: rotate(2deg);
}

/* Community (Melting) */
.meme-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.meme-card {
    background: #111;
    border: 2px solid #333;
    padding: 10px;
    transform: rotate(var(--rot));
    transition: transform 0.3s;
}

.meme-card:hover {
    transform: scale(1.1) rotate(0deg);
    z-index: 10;
    border-color: var(--pepe-green);
}

.meme-img {
    width: 100%;
    display: block;
    border-bottom: 2px solid #333;
}

.meme-caption {
    padding: 15px;
    text-align: center;
    font-family: var(--font-meme);
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--neon-green);
}

/* Tokenomics (Rich) */
.token-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rich-visual {
    position: relative;
    max-width: 600px;
    margin-bottom: 40px;
}

.rich-img {
    width: 100%;
    border: 5px solid gold;
    box-shadow: 0 0 50px gold;
    border-radius: 20px;
}

.char.tokenomics-content {
    margin-top: 50px;
}

.token-stats-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.stat-item {
    background: #111;
    border: 1px solid #333;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
    /* Default sized generic */
    flex: 1 1 200px;
}

/* Force 2 items on top row */
.stat-item.large {
    flex: 1 1 40%;
    min-width: 280px;
}

/* Force 3 items on bottom row */
.stat-item.small {
    flex: 1 1 25%;
    min-width: 150px;
}

/* Break line force */
.break {
    flex-basis: 100%;
    height: 0;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--pepe-green);
    box-shadow: 0 0 15px rgba(84, 168, 54, 0.2);
}

.stat-item h3 {
    color: var(--pepe-green);
    font-size: 1rem;
    margin-bottom: 10px;
    font-family: var(--font-tech);
    letter-spacing: 2px;
}

.stat-item p {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-heading);
}

.token-visual-container {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.rich-img {
    width: 100%;
    display: block;
}

.chart-overlay {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid gold;
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-box .num {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--pepe-green);
}

.stat-box .label {
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #888;
}

/* Legal (Neutral) */
.legal-disclaimer {
    background: #000;
    padding: 30px 0;
    border-top: 1px solid #333;
}

/* Socials Section */
.socials-section {
    padding: 20px 0;
    background: #000;
    text-align: center;
    border-top: 1px solid #333;
}

.social-icon.dex-icon {
    padding: 0;
    /* Remove padding for Dex to fill the circle */
}

/* Footer Socials */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    border: 2px solid #333;
    border-radius: 50%;
    transition: all 0.3s;
    overflow: hidden;
    padding: 8px;
    /* Padding to keep logos from touching edges */
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-icon:hover {
    background: var(--pepe-green);
    border-color: var(--neon-green);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 0 15px var(--pepe-green);
}

.legal-text {
    color: #888;
    font-family: monospace;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.8rem;
}

/* Animations */
@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

@keyframes pulse-red {
    from {
        opacity: 0.8;
        transform: scale(1);
    }

    to {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-1deg);
    }

    50% {
        transform: rotate(1deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* How to Buy */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background: #111;
    border: 2px solid #333;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--pepe-green);
    box-shadow: 0 0 20px rgba(84, 168, 54, 0.2);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(84, 168, 54, 0.5));
}

.step-card h3 {
    color: var(--pepe-green);
    margin-bottom: 10px;
}

.step-card p {
    color: #ccc;
    font-size: 1rem;
}

/* Animations Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 3px;
    background-color: var(--pepe-green);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
        /* Reduce from 3.5rem to fit mobile */
        padding: 10px 15px;
        /* Reduce padding */
    }

    .site-header {
        padding: 15px 20px;
    }

    /* Mobile Navigation */
    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        display: flex;
        /* Key fix */
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 100px;
        transition: right 0.3s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
        backdrop-filter: blur(10px);
    }

    .main-nav.active {
        right: 0;
    }

    .nav-link {
        margin: 0;
        padding: 25px 0;
        width: 80%;
        text-align: center;
        font-size: 1.5rem;
        margin-left: 0;
        border-bottom: 1px solid #333;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .hero-section {
        padding-top: 140px;
        /* Clear header */
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-visual {
        margin-top: 1rem;
    }

    .avatar-overlay {
        width: 100px;
        height: 100px;
        bottom: -20px;
        right: -10px;
    }

    .project-content {
        flex-direction: column;
        gap: 30px;
    }

    .project-text,
    .project-visual {
        min-width: 100%;
    }

    .cta-container {
        flex-direction: column;
        padding: 0 20px;
        width: 100%;
    }

    .cta-button {
        width: 100%;
    }

    /* Tokenomics Mobile */
    .token-stats-grid {
        gap: 15px;
    }

    .stat-item {
        padding: 15px;
    }

    .stat-item p {
        font-size: 1.5rem;
    }

    /* Footer / Socials */
    .footer-socials {
        gap: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }

    /* Fix Meme Cards causing overflow on mobile */
    .meme-card {
        transform: rotate(0deg) !important;
        margin: 0 auto;
    }

    .bundle-notice {
        font-size: 0.95rem;
        padding: 15px;
        width: 95%;
        margin: 20px auto;
    }
}

/* Bundle Buy Notice */
.bundle-notice {
    background: rgba(0, 0, 0, 0.8);
    border: 2px dashed var(--pepe-green);
    color: var(--neon-green);
    padding: 15px;
    margin: 30px auto;
    text-align: center;
    max-width: 800px;
    border-radius: 10px;
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(84, 168, 54, 0.2);
    letter-spacing: 1px;
    line-height: 1.4;
}

.bundle-notice strong {
    color: #fff;
    text-transform: uppercase;
}

#gate-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.98) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    pointer-events: auto;
    /* Allow interaction when visible */
}

/* Critical: Hide overlay completely when hidden */
#gate-overlay[style*="display: none"],
#gate-overlay[style*="opacity: 0"] {
    pointer-events: none !important;
    /* Don't block clicks when fading/hidden */
}

/* Safari / Mobile Specific Override - COMPACT VERSION */
@media (max-width: 768px) {
    #gate-overlay {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        /* Center vertical */
        align-items: center;
        /* Center horizontal */
        padding: 10px;
        z-index: 2147483647 !important;
        background: rgba(0, 0, 0, 0.98) !important;
    }

    .gate-content {
        position: relative !important;
        width: 95% !important;
        max-width: 350px !important;
        /* Limit width */
        max-height: 85vh !important;
        /* Ensure it fits height */
        margin: 0 !important;
        padding: 15px !important;
        overflow-y: auto !important;
        /* Internal scroll if needed */
        display: flex;
        flex-direction: column;
    }

    .gate-content h2 {
        font-size: 1.1rem;
        /* Smaller header */
        margin-bottom: 10px;
        line-height: 1.2;
    }

    /* Hide the detailed list on mobile to ensure fit */
    .gate-content .terminal-list {
        display: none !important;
    }

    /* Show a short summary instead if you had one, otherwise just text */
    .gate-content p {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .warning-text {
        font-size: 0.7rem !important;
        padding: 8px;
        margin: 5px 0 15px 0;
        font-weight: bold;
    }

    #accept-gate {
        font-size: 1rem;
        padding: 12px;
        width: 100%;
        margin-top: auto;
        /* Push to bottom if space permits */
        -webkit-appearance: none;
        background: var(--neon-green);
        color: #000;
        border: none;
        font-weight: bold;
    }
}

.gate-content {
    background: #000;
    border: 2px solid var(--neon-green);
    padding: 20px;
    max-width: 700px;
    width: 95%;
    /* Removed max-height/overflow to let overlay handle scroll */
    text-align: left;
    box-shadow: 0 0 50px rgba(57, 255, 20, 0.2);
    position: relative;
    z-index: 10001;
    font-family: var(--font-body);
}

@media (min-width: 768px) {
    .gate-content {
        padding: 40px;
        width: 90%;
    }
}

#accept-gate {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 2147483647;
    -webkit-appearance: none;
    touch-action: manipulation;
}

.gate-content h2 {
    color: var(--neon-green);
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 1px dashed var(--neon-green);
    padding-bottom: 15px;
    letter-spacing: 2px;
}

.terminal-body {
    text-align: left;
    color: #ccc;
    font-size: 0.95rem;
}

.terminal-body p {
    margin-bottom: 15px;
}

.highlight-text {
    color: #fff;
    font-weight: bold;
}

.terminal-list {
    list-style-type: none;
    padding-left: 10px;
    margin-bottom: 20px;
}

.terminal-list li {
    margin-bottom: 10px;
    padding-left: 15px;
    border-left: 2px solid var(--neon-green);
}

.warning-text {
    color: #ffcc00;
    /* Warning yellow instead of scary red */
    border: 1px solid #ffcc00;
    padding: 10px;
    background: rgba(255, 204, 0, 0.1);
    font-size: 0.9rem;
}

/* Blur Effect when Gate is Active */
/* Removed overflow hidden to prevent permanent scroll lock bugs in iOS */

/* ONLY blur, do not disable pointer events on body itself, just children */
body.gate-active .hero-content,
body.gate-active .main-nav,
body.gate-active footer {
    filter: blur(10px) grayscale(0.5);
    /* potentially remove pointer-events: none here if it persists */
}

@keyframes gate-pulse {
    from {
        box-shadow: 0 0 20px var(--neon-green);
    }

    to {
        box-shadow: 0 0 40px var(--neon-green), 0 0 10px var(--pepe-green);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}