/* Terminal Defense Game Styles */

.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.game-container {
    position: relative;
    background: #000;
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    padding: 20px;
    border-radius: 4px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.game-header-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.game-header-center {
    display: flex;
    align-items: center;
    gap: 20px;
}

.game-title {
    font-weight: bold;
    letter-spacing: 3px;
    flex-shrink: 0;
}

.game-lives {
    font-size: 14px;
    color: #ff0066;
}

.game-wave {
    font-weight: bold;
    color: #ffff00;
}

.game-score {
    font-weight: bold;
    flex-shrink: 0;
}

.game-close-btn {
    background: none;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

.game-close-btn:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.game-grid {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.2;
    color: #00ff00;
    background: #000;
    padding: 15px;
    border: 1px solid #00ff00;
    white-space: pre;
    width: auto;
    min-width: 340px;
    user-select: none;
}

.game-controls {
    margin-top: 15px;
    text-align: center;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    opacity: 0.7;
    letter-spacing: 2px;
}

.game-controls span {
    margin: 0 20px;
}

.game-over-screen {
    text-align: center;
    padding: 40px 20px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    line-height: 1.8;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Prevent text selection during gameplay */
.game-overlay * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Touch Controls for Mobile */
.game-touch-controls {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 20px;
    padding: 10px;
}

.touch-btn {
    width: 70px;
    height: 70px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    border-radius: 8px;
    color: #00ff00;
    font-size: 28px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.touch-btn:active {
    background: rgba(0, 255, 0, 0.3);
    transform: scale(0.95);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.touch-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

/* Responsive sizing for smaller screens */
@media (max-width: 480px) {
    .touch-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .game-touch-controls {
        gap: 60px;
    }
}
