/* Typing Master Games - Common Styles */
.tmg-game-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
}

.tmg-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    flex-wrap: wrap;
}

.tmg-game-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.tmg-game-header-bottom {
    display: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.tmg-game-title {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
}

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

.tmg-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

.tmg-game-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tmg-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tmg-btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.tmg-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.tmg-btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.tmg-btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

.tmg-volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tmg-volume-slider {
    width: 80px;
}

.tmg-game-canvas-container {
    position: relative;
    width: 100%;
    background: #1a1a2e;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.tmg-game-canvas {
    width: 100%;
    height: 100%;
}

.tmg-countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 10;
}

.tmg-countdown-number {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tmg-game-header {
        flex-direction: column;
        padding: 10px;
    }
    
    .tmg-game-header-bottom {
        display: flex;
    }
    
    .tmg-game-title {
        font-size: 1.2em;
    }
    
    .tmg-game-stats {
        gap: 10px;
    }
    
    .tmg-stat {
        font-size: 0.9em;
    }
    
    .tmg-btn {
        padding: 6px 12px;
        font-size: 0.9em;
    }
    
    .tmg-volume-slider {
        width: 60px;
    }
}