* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a0a2a, #000033, #1a1a4a);
    color: #fff;
    min-height: 100vh;
    font-family: 'Share Tech Mono', monospace;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 3px solid #00ffff;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
}

.game-area {
    display: flex;
    flex: 1;
    gap: 20px;
    margin-bottom: 20px;
}

.game-info {
    flex: 1;
    background: rgba(0, 0, 50, 0.7);
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #00ffff;
    max-width: 400px;
}

.game-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    background: rgba(0, 20, 60, 0.8);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #00aaff;
}

#target-word {
    font-size: 2.5rem;
    color: #ffff00;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
    margin: 15px 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
}

.input-container {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

#word-input {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #00ff00;
    border: 2px solid #00aa00;
    border-radius: 5px;
    font-size: 1.1rem;
}

.game-screen {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#game-container {
    flex: 1;
    background: #000033;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 2px solid #00ffff;
}

#player {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: linear-gradient(45deg, #00aaff, #0088ff);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    z-index: 10;
}

.alien {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
    text-align: center;
    z-index: 5;
}

.laser {
    position: absolute;
    width: 3px;
    height: 15px;
    background: #00ffff;
    border-radius: 2px;
    z-index: 8;
}

#earth {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to top, #0044aa, #0066cc);
    z-index: 1;
}

.btn {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 30, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #0a0a2a;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #ff00ff;
    max-width: 500px;
    width: 90%;
}

/* Responsive */
@media (max-width: 768px) {
    .game-area {
        flex-direction: column;
    }
    .game-info {
        max-width: 100%;
    }
    h1 {
        font-size: 2rem;
    }
}