/* Game-specific styles */

/* Labyrinth Game Container */
.labyrinth-game {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Game Canvas */
.game-canvas {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

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

/* Game HUD */
.game-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.level-badge span {
    font-size: 1.25rem;
    min-width: 1.5rem;
    text-align: center;
}

.btn-restart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-card);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.btn-restart:hover {
    background: var(--color-secondary);
    transform: rotate(180deg) scale(1.1);
}

/* Game Controls */
.game-controls {
    text-align: center;
    padding: 1rem;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.game-controls p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Game Complete Overlay */
.game-complete {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    border-radius: var(--radius-lg);
    z-index: 300;
}

.game-complete.hidden {
    display: none;
}

.complete-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.complete-content h2 {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.complete-content p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .game-canvas {
        aspect-ratio: 4 / 3;
    }

    .level-badge {
        font-size: 1rem;
        padding: 0.375rem 0.75rem;
    }

    .game-controls {
        font-size: 0.75rem;
    }
}

/* Loading state */
.game-canvas.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-canvas.loading::after {
    content: '🤖';
    font-size: 3rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
