:root {
    --primary: #4caf50;
    --secondary: #2e7d32;
    --accent: #ffeb3b;
    --bg: #1a1a1a;
    --text: #f5f5f5;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

#hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, #1a1a1a, #2d3436);
    padding: 20px;
}

h1 {
    font-size: 5rem;
    margin: 0;
    color: var(--primary);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.tagline {
    font-size: 1.5rem;
    margin: 10px 0 30px;
}

#hero-preview {
    width: 100%;
    max-width: 800px;
    height: 400px;
    border: 4px solid var(--primary);
    border-radius: 10px;
    background: #000;
}

#gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px;
}

#gallery img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border: 2px solid var(--primary);
    border-radius: 5px;
}

#features {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
}

#features li {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-bottom: 4px solid var(--primary);
}

#controls {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #333;
    border-radius: 10px;
}

.cta {
    padding: 50px;
    text-align: center;
}

#play-now {
    display: inline-block;
    padding: 20px 40px;
    font-size: 1.5rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.2s, background-color 0.2s;
}

#play-now:hover {
    transform: scale(1.1);
    background-color: var(--secondary);
}

canvas {
    display: block;
}

/* Game Styles */
#hotbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0,0,0,0.6);
    border-radius: 10px;
    border: 2px solid #fff;
}

.slot {
    width: 50px;
    height: 50px;
    background: #555;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.slot[aria-selected="true"] {
    border-color: var(--accent);
    background: #888;
}

#crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#ui-overlay {
    position: fixed;
    top: 10px;
    left: 10px;
    color: white;
    text-shadow: 1px 1px 2px black;
    pointer-events: none;
}

/* Touch Controls */
#touch-controls {
    position: fixed;
    bottom: 40px;
    left: 20px;
    right: 20px;
    display: none;
    justify-content: space-between;
}

@media (max-width: 768px) {
    #touch-controls {
        display: flex;
    }
    h1 {
        font-size: 3rem;
    }
    #hero-preview {
        height: 300px;
    }
}

.touch-btn {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.3);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    user-select: none;
    touch-action: none;
}
