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

body {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0033 50%, #330066 100%);
    color: #ffffff;
    font-family: 'Orbitron', monospace;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated stars background */
body::before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 80px 10px, white, transparent),
        radial-gradient(2px 2px at 130px 80px, white, transparent),
        radial-gradient(1px 1px at 110px 120px, white, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: stars 200s linear infinite;
    opacity: 0.5;
}

@keyframes stars {
    0% { transform: translateY(0); }
    100% { transform: translateY(-2000px); }
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Header with glitch effect */
.header {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}

.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(24px, 5vw, 48px);
    text-transform: uppercase;
    background: linear-gradient(180deg, #ff00ff 0%, #00ffff 50%, #ffff00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
    line-height: 1.5;
    margin-bottom: 20px;
}

@keyframes glow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

.tagline {
    font-size: 16px;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    margin-top: 10px;
    letter-spacing: 3px;
}

/* Pixel art decorations */
.pixel-border {
    border: 4px solid #ff00ff;
    position: relative;
    padding: 30px;
    margin: 40px auto;
    max-width: 800px;
    background: rgba(10, 0, 30, 0.8);
    box-shadow:
        0 0 20px rgba(255, 0, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.pixel-border::before,
.pixel-border::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffff00;
    box-shadow: 0 0 10px #ffff00;
}

.pixel-border::before {
    top: -6px;
    left: -6px;
}

.pixel-border::after {
    bottom: -6px;
    right: -6px;
}

/* Coming Soon Section */
.coming-soon {
    text-align: center;
    margin: 60px 0;
}

.neon-text {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(20px, 4vw, 32px);
    color: #ff00ff;
    text-shadow:
        0 0 10px #ff00ff,
        0 0 20px #ff00ff,
        0 0 40px #ff00ff;
    animation: flicker 1.5s infinite alternate;
    margin-bottom: 30px;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.launch-date {
    font-size: 24px;
    color: #ffff00;
    text-shadow: 2px 2px 0 #ff00ff;
    margin: 20px 0;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature-card {
    background: rgba(75, 0, 130, 0.3);
    border: 2px solid #00ffff;
    padding: 25px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.5);
    background: rgba(75, 0, 130, 0.5);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 0 10px currentColor);
}

.feature-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #ffff00;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.feature-desc {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.6;
}

/* Email Signup */
.signup-section {
    text-align: center;
    margin: 80px 0;
}

.signup-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.pixel-input {
    width: 100%;
    padding: 15px;
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid #00ffff;
    color: #ffffff;
    text-align: center;
    transition: all 0.3s ease;
}

.pixel-input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    border-color: #ffff00;
}

.pixel-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.pixel-button {
    padding: 15px 40px;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    background: linear-gradient(180deg, #ff00ff 0%, #00ffff 100%);
    border: none;
    color: #000;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 0 #000,
        0 8px 20px rgba(255, 0, 255, 0.5);
}

.pixel-button:hover {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #000,
        0 4px 20px rgba(0, 255, 255, 0.8);
}

.pixel-button:active {
    transform: translateY(4px);
    box-shadow:
        0 0 0 #000,
        0 2px 10px rgba(0, 255, 255, 0.8);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.social-link {
    color: #00ffff;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-link:hover {
    color: #ffff00;
    transform: scale(1.1);
    text-shadow: 0 0 20px currentColor;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 2px solid #ff00ff;
    margin-top: 100px;
    position: relative;
}

.footer::before {
    content: '════════════════════════════';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff00ff;
    font-family: monospace;
    letter-spacing: -2px;
}

/* Loading animation */
.loading-bar {
    width: 200px;
    height: 20px;
    border: 2px solid #00ffff;
    margin: 20px auto;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
}

.loading-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00);
    animation: load 2s ease-in-out infinite;
}

@keyframes load {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 40px 15px 30px;
    }

    .logo {
        font-size: 24px;
        line-height: 1.4;
    }

    .tagline {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .neon-text {
        font-size: 18px;
    }

    .feature-card {
        clip-path: none;
        border-radius: 8px;
        padding: 20px;
    }

    .feature-icon {
        font-size: 40px;
    }

    .feature-title {
        font-size: 11px;
    }

    .feature-desc {
        font-size: 13px;
    }

    .pixel-button {
        font-size: 12px;
        padding: 15px 30px;
        width: 100%;
        max-width: 280px;
    }

    .pixel-border {
        padding: 20px 15px;
        margin: 30px 10px;
    }

    .ascii-art {
        font-size: 8px;
        overflow-x: auto;
    }

    .pixel-art-row {
        font-size: 18px;
        word-spacing: 10px;
    }

    .signup-section {
        margin: 50px 0;
    }

    .signup-form {
        padding: 0 10px;
    }

    .pixel-input {
        font-size: 14px;
        padding: 15px;
    }

    .arcade-characters {
        gap: 15px;
    }

    .game-sprite {
        font-size: 28px;
    }

    .character-parade {
        height: 50px;
    }

    .parade-char {
        font-size: 28px;
        margin: 0 20px;
    }

    .parade-track {
        line-height: 50px;
    }

    .features {
        gap: 20px;
        margin: 40px 0;
    }

    .footer {
        margin-top: 60px;
        padding: 30px 15px;
    }

    .footer::before {
        content: '════════════════';
        font-size: 10px;
    }

    /* Hide floating characters on mobile - they can be distracting */
    .floating-characters {
        display: none;
    }

    /* Button group stacking */
    .pixel-border > div[style*="display: flex"] {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 10px 20px;
    }

    .logo {
        font-size: 20px;
    }

    .tagline {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .neon-text {
        font-size: 14px;
    }

    .pixel-border {
        padding: 15px 12px;
        border-width: 3px;
    }

    .pixel-border::before,
    .pixel-border::after {
        width: 6px;
        height: 6px;
    }

    .pixel-border::before {
        top: -5px;
        left: -5px;
    }

    .pixel-border::after {
        bottom: -5px;
        right: -5px;
    }

    .ascii-art {
        font-size: 6px;
        display: none; /* Hide ASCII art on very small screens */
    }

    .pixel-art-row {
        font-size: 14px;
        word-spacing: 5px;
    }

    .feature-card {
        padding: 15px;
    }

    .feature-icon {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .feature-title {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .feature-desc {
        font-size: 12px;
        line-height: 1.5;
    }

    .arcade-characters {
        gap: 10px;
        margin: 15px 0;
    }

    .game-sprite {
        font-size: 24px;
    }

    .coming-soon {
        margin: 40px 0;
    }

    .loading-bar {
        width: 160px;
        height: 16px;
    }

    .character-parade {
        height: 40px;
        margin: 25px 0;
    }

    .parade-char {
        font-size: 22px;
        margin: 0 15px;
    }

    .parade-track {
        line-height: 40px;
    }

    .footer .ascii-art {
        display: none;
    }

    .footer .pixel-art-row {
        font-size: 20px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .logo {
        font-size: 18px;
    }

    .pixel-button {
        font-size: 10px;
        padding: 12px 20px;
    }

    .feature-card {
        padding: 12px;
    }

    .features {
        gap: 15px;
    }
}

/* Retro CRT effect */
.crt::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Arcade coin animation */
.coin {
    display: inline-block;
    animation: spin 2s linear infinite;
    color: #ffff00;
    font-size: 20px;
    margin: 0 10px;
}

@keyframes spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Floating game characters */
.floating-characters {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.character {
    position: absolute;
    font-size: 30px;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
    filter: drop-shadow(0 0 10px currentColor);
}

.character.pac {
    color: #ffff00;
    font-size: 40px;
}

.character.ghost {
    color: #ff00ff;
    font-size: 35px;
}

.character.invader {
    color: #00ff00;
    filter: drop-shadow(0 0 15px #00ff00);
}

.character.mushroom {
    color: #ff0000;
}

.character.star {
    color: #ffff00;
    animation: float 6s ease-in-out infinite, sparkle 1s ease-in-out infinite;
}

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

@keyframes sparkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Arcade characters in header */
.arcade-characters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.game-sprite {
    font-size: 32px;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px currentColor);
}

.game-sprite:nth-child(1) { animation-delay: 0s; }
.game-sprite:nth-child(2) { animation-delay: 0.2s; }
.game-sprite:nth-child(3) { animation-delay: 0.4s; }

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

/* Pixel art decoration */
.pixel-art-row {
    text-align: center;
    font-size: 24px;
    margin: 20px 0;
    word-spacing: 20px;
    color: #00ffff;
    text-shadow: 2px 2px 0 #ff00ff;
}

/* ASCII art style */
.ascii-art {
    font-family: monospace;
    white-space: pre;
    line-height: 1;
    color: #00ff00;
    text-align: center;
    font-size: 12px;
    margin: 20px 0;
    text-shadow: 0 0 5px currentColor;
}

/* Character Parade */
.character-parade {
    overflow: hidden;
    white-space: nowrap;
    margin: 40px 0;
    position: relative;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 2px solid #00ffff;
    border-bottom: 2px solid #00ffff;
}

.parade-track {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 20s linear infinite;
    line-height: 60px;
}

.parade-char {
    font-size: 36px;
    margin: 0 30px;
    display: inline-block;
    animation: hop 0.5s ease-in-out infinite;
}

.parade-char:nth-child(odd) {
    animation-delay: 0.25s;
}

@keyframes scroll-left {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50%, 0); }
}

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

/* Game Modal */
.game-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.game-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    max-width: 900px;
    width: 90%;
    background: linear-gradient(180deg, #1a0033 0%, #0a0a0a 100%);
    border: 4px solid #ff00ff;
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.8);
    border-radius: 10px;
}

.game-close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 40px;
    font-weight: bold;
    color: #ff00ff;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', cursive;
    line-height: 1;
}

.game-close-btn:hover {
    color: #ffff00;
    transform: scale(1.2);
    text-shadow: 0 0 20px #ffff00;
}

.game-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: #00ffff;
    text-align: center;
    margin-bottom: 20px;
    text-shadow:
        0 0 10px #00ffff,
        0 0 20px #00ffff;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
}

.game-level {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.game-score {
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00;
}

.game-lives {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

#gameCanvas {
    display: block;
    margin: 0 auto;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 100%);
    border: 3px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.game-controls {
    text-align: center;
    margin-top: 20px;
    font-family: 'Orbitron', monospace;
    color: #00ffff;
}

.game-controls p {
    margin: 5px 0;
}

/* Mobile Touch Controls */
.mobile-controls {
    display: none;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.mobile-controls-left {
    display: flex;
    gap: 10px;
}

.mobile-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #ff00ff 0%, #00ffff 100%);
    border: 3px solid #ffff00;
    border-radius: 10px;
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    color: #000;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 0 #000;
    transition: all 0.1s ease;
}

.mobile-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #000;
    background: linear-gradient(180deg, #00ffff 0%, #ff00ff 100%);
}

.jump-btn {
    width: 80px;
    font-size: 14px;
}

/* Mobile Game Styles */
@media (max-width: 768px) {
    .game-modal-content {
        margin: 5px;
        padding: 15px;
        width: 95%;
    }

    .game-title {
        font-size: 14px;
    }

    .game-info {
        font-size: 10px;
        flex-wrap: wrap;
        gap: 5px;
    }

    .game-level,
    .game-score,
    .game-lives {
        flex: 0 0 auto;
    }

    #gameCanvas {
        width: 100%;
        height: auto;
    }

    .mobile-controls {
        display: flex;
    }

    .game-controls p:first-child {
        display: none;
    }
}

@media (max-width: 480px) {
    .game-modal-content {
        padding: 10px;
    }

    .game-title {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .game-info {
        font-size: 8px;
    }

    .mobile-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .jump-btn {
        width: 70px;
        font-size: 12px;
    }
}
