/* Responsive design */
@media (max-width: 768px) {
    .header {
        padding: 6px 12px;
        gap: 10px;
    }
    
    .stats {
        font-size: 0.9em;
        gap: 8px;
    }
}

@media (max-width: 768px), (max-height: 600px) {
    .game-container {
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    
    .header {
        padding: 5px 10px;
        gap: 8px;
    }
    
    .header-icons {
        gap: 3px;
    }
    
    .info-btn {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    
    .theme-toggle {
        width: 18px;
        height: 18px;
        padding: 2px;
    }
    
    .stats {
        font-size: 0.8em;
        gap: 6px;
    }
    
    .button-group .btn {
        min-width: 120px;
    }
    
    .start-screen h1 {
        font-size: 2em;
    }
    
    .start-screen .tagline {
        font-size: 1em;
        margin-bottom: 20px;
    }
    
    .theme-icon {
        width: 12px;
        height: 12px;
    }
    
    .theme-circle {
        width: 10px;
        height: 10px;
        border-width: 1px;
    }
    
    .circle-outline {
        width: 120px;
        height: 120px;
        border-width: 4px;
    }
    
    .start-screen, .level-complete, .game-over {
        padding: 20px;
    }
    
    .start-screen h2, .level-complete h2, .game-over h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }
    
    .btn {
        padding: 8px 18px;
        font-size: 1em;
    }
    
    .modal-content {
        padding: 30px;
    }
    
    .modal-content {
        padding: 40px 25px 30px;
        max-width: 95%;
    }
    
    .modal-content h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    
    .instruction-item {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .instruction-icon {
        font-size: 1.5em;
        width: 35px;
    }
    
    .instruction-text {
        font-size: 0.95em;
    }
}

/* Landscape mode - compact everything */
@media (max-height: 600px) and (orientation: landscape) {
    .daily-complete {
        padding: 10px;
        justify-content: flex-start;
    }
    
    .daily-complete h2 {
        font-size: 1.3em;
        margin-bottom: 8px;
    }
    
    .challenge-results {
        gap: 15px;
        margin-bottom: 8px;
    }
    
    .result-value {
        font-size: 1.3em;
    }
    
    .result-label {
        font-size: 0.75em;
    }
    
    .emoji-result {
        font-size: 1.2em;
        letter-spacing: 2px;
        margin-bottom: 3px;
    }
    
    .share-section {
        margin: 8px 0 5px;
        gap: 8px;
    }
    
    .next-challenge-timer {
        margin-top: 5px;
        padding: 8px 12px;
    }
    
    .next-challenge-timer p {
        font-size: 0.85em;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* Level Complete and Game Over screens */
.level-complete,
.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

/* Daily Challenge Info */
.daily-challenge-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
    z-index: 5;
}

@media (orientation: landscape) and (max-height: 600px) {
    .daily-challenge-info {
        gap: 4px;
        margin: 4px 0;
    }
}

.game-mode-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin: 10px 0;
    z-index: 5;
}

@media (min-width: 769px) {
    .game-mode-buttons {
        flex-direction: row;
        max-width: 520px;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .game-mode-buttons {
        gap: 8px;
        margin: 6px 0;
        max-width: 400px;
        flex-direction: row;
    }
    
    .game-mode-buttons .btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

.game-mode-buttons .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
}

.utility-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin: 10px 0 20px;
    z-index: 5;
}

@media (min-width: 769px) {
    .utility-buttons {
        flex-direction: row;
        max-width: 520px;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .utility-buttons {
        gap: 8px;
        margin: 6px 0 12px;
        max-width: 400px;
        flex-direction: row;
    }
    
    .utility-buttons .btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

.utility-buttons .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
}

.challenge-number {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-color);
}

.streak-info {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin: 10px 0 20px 0;
}
