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

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* CRT Effect */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1000;
}

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

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.clouds-layer {
    position: absolute;
    width: 120%;
    height: 120%;
    background: url('/api/retrodiffusion/image/512/512/texture?prompt=fluffy+white+clouds+on+blue+sky+repeating+pattern&tile_x=true&tile_y=true&seed=201') repeat;
    animation: float 20s ease-in-out infinite;
    opacity: 0.3;
}

.temple-layer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60%;
    background: url('/api/retrodiffusion/image/512/256/default?prompt=ancient+Greek+temple+silhouettes+on+horizon+dark+mysterious&seed=202') repeat-x bottom;
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.game-title {
    font-size: 4rem;
    font-weight: 900;
    text-shadow: 
        4px 4px 0px #333,
        8px 8px 0px #666,
        12px 12px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.tagline {
    font-size: 1.2rem;
    color: #a0a0ff;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.pit-character {
    display: inline-block;
    transition: transform 0.3s ease;
}

.pit-character img {
    width: 128px;
    height: 128px;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.5));
}

/* Game Demo Section */
.game-demo-section {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.game-area {
    position: relative;
    display: inline-block;
    border: 4px solid #333;
    border-radius: 8px;
    background: #000;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

#gameCanvas {
    display: block;
    width: 512px;
    height: 384px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.game-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    pointer-events: none;
}

.health-display {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 18px;
}

.hearts {
    color: #ff0000;
}

.score-display {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 14px;
    color: #ffd700;
}

.game-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 300px;
}

.controls-guide {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    display: inline-block;
}

.controls-guide h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.control-item {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.key {
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: monospace;
    font-weight: bold;
    margin-right: 8px;
    border: 2px solid #666;
    box-shadow: 0 2px 0 #111;
}

/* Info Section */
.info-section {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.info-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.story-panel, .features-panel {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-panel h2, .features-panel h2 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.story-panel p {
    line-height: 1.6;
    color: #cccccc;
}

.features-panel ul {
    list-style: none;
}

.features-panel li {
    padding: 0.5rem 0;
    color: #cccccc;
    position: relative;
    padding-left: 1.5rem;
}

.features-panel li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: #ffd700;
}

/* Screenshots Gallery */
.gallery-section {
    padding: 4rem 2rem;
    text-align: center;
}

.gallery-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffd700;
}

.screenshot-gallery {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.screenshot-gallery img {
    width: 256px;
    height: 256px;
    border: 3px solid #333;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    image-rendering: pixelated;
}

.screenshot-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

/* Call to Action */
.cta-section {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffd700;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.arcade-button {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 0 #cc5555,
        0 8px 25px rgba(0, 0, 0, 0.3);
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
}

.arcade-button.secondary {
    background: linear-gradient(45deg, #4ecdc4, #72d9d1);
    box-shadow: 
        0 6px 0 #3bb3ab,
        0 8px 25px rgba(0, 0, 0, 0.3);
}

.arcade-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 0 #cc5555,
        0 12px 35px rgba(0, 0, 0, 0.4);
}

.arcade-button.secondary:hover {
    box-shadow: 
        0 8px 0 #3bb3ab,
        0 12px 35px rgba(0, 0, 0, 0.4);
}

.arcade-button:active {
    transform: translateY(4px);
    box-shadow: 
        0 2px 0 #cc5555,
        0 4px 15px rgba(0, 0, 0, 0.3);
}

.newsletter-signup {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-signup h3 {
    margin-bottom: 1rem;
    color: #a0a0ff;
}

.email-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

#email-input {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem;
    border: 2px solid #333;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-family: 'Orbitron', monospace;
}

#email-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.subscribe-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a {
    color: #ffd700;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(-10px) translateY(-5px); }
    50% { transform: translateX(0px) translateY(-10px); }
    75% { transform: translateX(10px) translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-title {
        font-size: 2.5rem;
    }
    
    #gameCanvas {
        width: 90vw;
        max-width: 512px;
        height: auto;
    }
    
    .info-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .email-form {
        flex-direction: column;
        align-items: center;
    }
    
    #email-input {
        width: 100%;
    }
    
    .screenshot-gallery {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .controls-guide {
        padding: 1rem;
    }
    
    .control-item {
        display: block;
        margin: 0.3rem 0;
    }
}