/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Game Setup */
.game-setup {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.game-setup h2 {
    margin-bottom: 20px;
    color: #4a5568;
}

.setup-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setup-controls label {
    font-weight: 600;
    color: #4a5568;
}

.setup-controls select {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    margin-top: 5px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

.options input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

/* Game Area */
.game-area {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: calc(100vh - 200px);
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 600;
    color: #4a5568;
}

.target-note {
    text-align: center;
    margin-bottom: 20px;
}

.target-note h2 {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 8px;
}

.target-note span {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
}

/* Fretboard */
.fretboard-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    min-height: 200px;
}

.fretboard {
    display: grid;
    grid-template-columns: 50px repeat(6, 1fr);
    grid-template-rows: 25px repeat(4, 1fr);
    gap: 1px;
    width: 100%;
    max-width: 450px;
    background: #8b4513;
    padding: 10px;
    border-radius: 10px;
    height: min(300px, calc(100vh - 400px));
    min-height: 200px;
    position: relative;
}

.fret-header {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4a5568;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    font-size: 14px;
    grid-column: 1;
}

.string-header {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2d3748;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    font-size: 12px;
    grid-row: 1;
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

.fret-position {
    aspect-ratio: 1;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
    font-size: 18px;
    position: relative;
}

.fret-position:hover {
    background: #edf2f7;
    border-color: #667eea;
    transform: scale(1.05);
}

.fret-position.selected {
    background: #667eea;
    color: white;
    border-color: #5a6fd8;
}

.fret-position.correct {
    background: #48bb78;
    color: white;
    border-color: #38a169;
}

.fret-position.incorrect {
    background: #f56565;
    color: white;
    border-color: #e53e3e;
}

.fret-position.missed {
    background: #ed8936;
    color: white;
    border-color: #dd6b20;
}

/* Game Controls */
.game-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Results */
.results {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.results h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2rem;
}

.final-score {
    margin-bottom: 30px;
}

.final-score p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #4a5568;
}

.final-score span {
    font-weight: bold;
    color: #667eea;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Main Menu */
.main-menu {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.main-menu h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4a5568;
    font-size: 2rem;
}

.menu-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.menu-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.menu-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.menu-card h3 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.menu-card p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.5;
}

.back-button {
    margin-bottom: 20px;
}

/* Flashcard Game */
.flashcard-game {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.flashcard-setup {
    max-width: 500px;
    margin: 0 auto;
}

.flashcard-area {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
}

.flashcard {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    margin: 20px 0;
    padding: 40px;
    color: white;
    text-align: center;
    min-height: 200px;
}

.flashcard-question h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.key-display {
    font-size: 1.2rem;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
}

.answer-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.answer-btn {
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-btn:hover {
    background: #f7fafc;
    border-color: #667eea;
    transform: translateY(-2px);
}

.answer-btn.selected {
    background: #667eea;
    color: white;
    border-color: #5a6fd8;
}

.answer-btn.correct {
    background: #48bb78;
    color: white;
    border-color: #38a169;
}

.answer-btn.incorrect {
    background: #f56565;
    color: white;
    border-color: #e53e3e;
}

.flashcard-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.flashcard-results {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.flashcard-results h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2rem;
}

/* Scale Degrees Game */
.scale-degrees-game {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.scale-degrees-setup {
    max-width: 500px;
    margin: 0 auto;
}

.scale-degrees-area {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
}

.scale-degrees-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-radius: 15px;
    margin: 20px 0;
    padding: 40px;
    color: white;
    text-align: center;
    min-height: 200px;
}

.scale-degrees-question h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.scale-display {
    font-size: 1.2rem;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 10px;
}

.degree-note {
    font-size: 1.5rem;
    font-weight: bold;
    background: rgba(255,255,255,0.3);
    padding: 15px 25px;
    border-radius: 30px;
    display: inline-block;
}

.degree-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.degree-btn {
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #4a5568;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.degree-btn:hover {
    background: #f7fafc;
    border-color: #667eea;
    transform: translateY(-2px);
}

.degree-btn.selected {
    background: #667eea;
    color: white;
    border-color: #5a6fd8;
}

.degree-btn.correct {
    background: #48bb78;
    color: white;
    border-color: #38a169;
}

.degree-btn.incorrect {
    background: #f56565;
    color: white;
    border-color: #e53e3e;
}

.scale-degrees-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.scale-degrees-results {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.scale-degrees-results h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2rem;
}

/* Chord Progressions Game */
.chord-progressions-game {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.progressions-setup {
    max-width: 500px;
    margin: 0 auto;
}

.progressions-area {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
}

.progression-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    margin: 20px 0;
    padding: 40px;
    color: white;
    text-align: center;
    min-height: 200px;
}

.progression-question h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.progression-display {
    font-size: 1.2rem;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 20px;
}

.progression-sequence {
    font-size: 2rem;
    font-weight: bold;
    background: rgba(255,255,255,0.3);
    padding: 20px 30px;
    border-radius: 15px;
    display: inline-block;
    font-family: 'Courier New', monospace;
}

.progression-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.progression-btn {
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progression-btn:hover {
    background: #f7fafc;
    border-color: #667eea;
    transform: translateY(-2px);
}

.progression-btn.selected {
    background: #667eea;
    color: white;
    border-color: #5a6fd8;
}

.progression-btn.correct {
    background: #48bb78;
    color: white;
    border-color: #38a169;
}

.progression-btn.incorrect {
    background: #f56565;
    color: white;
    border-color: #e53e3e;
}

.progression-help {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.progression-help h3 {
    color: #4a5568;
    margin-bottom: 15px;
}

.help-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.help-progression {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
}

.help-progression h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 14px;
}

.help-progression p {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #4a5568;
    margin: 5px 0;
}

.progressions-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.progressions-results {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.progressions-results h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2rem;
}

/* Chord Note Guessing Game */
.chord-note-game {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.chord-note-setup {
    max-width: 500px;
    margin: 0 auto;
}

.chord-note-area {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
}

.chord-display {
    text-align: center;
    margin-bottom: 20px;
}

.chord-display h2 {
    color: #4a5568;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.chord-instruction {
    color: #718096;
    font-size: 1.1rem;
}

.chord-fretboard-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    margin: 20px 0;
    flex: 1;
}

.chord-fretboard {
    background: #8b4513;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    width: 350px;
    height: 450px;
}

.string-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 30px;
}

.string-label {
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    width: 40px;
}

.open-strings {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 0 30px;
}

.open-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
}

.open-indicator.played {
    background: #48bb78;
}

.open-indicator.played.missing {
    background: #e2e8f0;
    color: #4a5568;
    border: 2px dashed #a0aec0;
}

.open-indicator.played.known {
    background: #48bb78;
}

.open-indicator.muted {
    background: #f56565;
}

.chord-fret {
    display: flex;
    align-items: center;
    height: 70px;
    border-bottom: 3px solid #654321;
    position: relative;
    padding: 0 30px;
}

.chord-fret:last-child {
    border-bottom: none;
}

.fret-number {
    color: white;
    font-weight: bold;
    font-size: 12px;
    width: 20px;
    text-align: center;
    margin-right: 10px;
    position: absolute;
    left: 5px;
}

.chord-string {
    width: 3px;
    height: 100%;
    background: #ddd;
    position: relative;
    flex: 1;
    margin: 0 18.5px;
}

.chord-finger {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: white;
}

.chord-finger.known {
    background: #48bb78;
}

.chord-finger.missing {
    background: #e2e8f0;
    color: #4a5568;
    border: 2px dashed #a0aec0;
}

.chord-finger.revealed {
    background: #667eea;
}

.chord-notes-display {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    min-width: 200px;
}

.chord-notes-display h3 {
    color: #4a5568;
    margin-bottom: 15px;
    text-align: center;
}

.known-notes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.note-badge {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 18px;
    min-width: 50px;
    text-align: center;
}

.note-badge.known {
    background: #48bb78;
    color: white;
}

.note-badge.missing {
    background: #e2e8f0;
    color: #4a5568;
    border: 2px dashed #a0aec0;
    font-size: 24px;
}

.note-badge.revealed {
    background: #667eea;
    color: white;
}

.note-options {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin: 20px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.note-btn {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #4a5568;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.note-btn:hover {
    background: #f7fafc;
    border-color: #667eea;
    transform: translateY(-2px);
}

.note-btn.selected {
    background: #667eea;
    color: white;
    border-color: #5a6fd8;
}

.note-btn.correct {
    background: #48bb78;
    color: white;
    border-color: #38a169;
}

.note-btn.incorrect {
    background: #f56565;
    color: white;
    border-color: #e53e3e;
}

.chord-note-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.chord-help {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.chord-help h3 {
    color: #4a5568;
    margin-bottom: 15px;
}

.help-chord-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.chord-info-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
}

.chord-info-item h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 14px;
}

.chord-info-item p {
    font-size: 14px;
    color: #4a5568;
    margin: 5px 0;
}

.chord-note-results {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.chord-note-results h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .game-setup, .game-area, .results {
        padding: 15px;
    }
    
    .game-area {
        height: calc(100vh - 150px);
    }
    
    .fretboard {
        max-width: 400px;
        padding: 8px;
        height: min(250px, calc(100vh - 300px));
        min-height: 180px;
    }
    
    .string-header {
        font-size: 10px;
    }
    
    .fret-header {
        font-size: 12px;
    }
    
    .fret-position {
        font-size: 16px;
    }
    
    .fret-position {
        font-size: 12px;
    }
    
    .target-note h2 {
        font-size: 1.5rem;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 200px;
    }
    
    .menu-options {
        grid-template-columns: 1fr;
    }
    
    .menu-card {
        padding: 20px;
    }
    
    .menu-icon {
        font-size: 2.5rem;
    }
    
    .flashcard {
        padding: 20px;
        min-height: 150px;
    }
    
    .flashcard-question h2 {
        font-size: 1.5rem;
    }
    
    .answer-options {
        grid-template-columns: 1fr;
    }
    
    .scale-degrees-card {
        padding: 20px;
        min-height: 150px;
    }
    
    .scale-degrees-question h2 {
        font-size: 1.5rem;
    }
    
    .degree-options {
        grid-template-columns: 1fr;
    }
    
    .degree-btn {
        padding: 15px;
        font-size: 16px;
    }
    
    .progression-card {
        padding: 20px;
        min-height: 150px;
    }
    
    .progression-question h2 {
        font-size: 1.5rem;
    }
    
    .progression-sequence {
        font-size: 1.5rem;
        padding: 15px 20px;
    }
    
    .progression-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progression-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .help-content {
        grid-template-columns: 1fr;
    }
    
    .chord-fretboard-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .chord-fretboard {
        width: 280px;
        height: 360px;
        padding: 15px;
    }
    
    .string-labels {
        padding: 0 25px;
    }
    
    .string-label {
        font-size: 12px;
        width: 30px;
    }
    
    .open-strings {
        padding: 0 25px;
    }
    
    .open-indicator {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .chord-fret {
        height: 55px;
        padding: 0 25px;
    }
    
    .fret-number {
        font-size: 10px;
        width: 15px;
        left: 3px;
    }
    
    .chord-string {
        margin: 0 12px;
    }
    
    .chord-finger {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .chord-notes-display {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .known-notes {
        flex-direction: row;
        justify-content: center;
    }
    
    .note-options {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .note-btn {
        padding: 12px;
        font-size: 16px;
    }
    
    .help-chord-info {
        grid-template-columns: 1fr;
    }

    .horizontal-fretboard-container {
        padding: 10px 0;
    }

    .horizontal-fretboard {
        min-width: 600px;
        height: 300px;
        padding: 15px;
        grid-template-columns: 50px repeat(13, 1fr);
        grid-template-rows: repeat(7, 1fr);
    }

    .fret-header-horizontal {
        font-size: 12px;
    }

    .string-header-horizontal {
        font-size: 12px;
    }

    .fret-position-horizontal {
        font-size: 14px;
        min-height: 30px;
    }

    .find-all-notes-controls {
        flex-direction: column;
        align-items: center;
    }

    .find-all-notes-controls .btn-primary,
    .find-all-notes-controls .btn-secondary {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .horizontal-fretboard {
        min-width: 500px;
        height: 250px;
        padding: 10px;
        grid-template-columns: 40px repeat(13, 1fr);
    }

    .fret-header-horizontal {
        font-size: 10px;
    }

    .string-header-horizontal {
        font-size: 10px;
    }

    .fret-position-horizontal {
        font-size: 12px;
        min-height: 25px;
    }
}

@media (max-width: 480px) {
    .game-area {
        height: calc(100vh - 120px);
    }
    
    .fretboard {
        max-width: 350px;
        padding: 6px;
        height: min(220px, calc(100vh - 280px));
        min-height: 160px;
    }
    
    .string-header {
        font-size: 9px;
    }
    
    .fret-header {
        font-size: 11px;
    }
    
    .fret-position {
        font-size: 14px;
    }
    
    .fret-position {
        font-size: 11px;
    }
    
    .options {
        font-size: 14px;
    }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.target-note span {
    animation: pulse 2s infinite;
}

.fret-position.correct {
    animation: pulse 0.5s ease-in-out;
}

/* Find All the Notes Game */
.find-all-notes-game {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.find-all-notes-setup {
    max-width: 500px;
    margin: 0 auto;
}

.find-all-notes-area {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
}

.target-note-display {
    text-align: center;
    margin-bottom: 20px;
}

.target-note-display h2 {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 8px;
}

.target-note-display span {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
}

.note-instruction {
    color: #718096;
    font-size: 1.1rem;
}

.horizontal-fretboard-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    flex: 1;
    overflow: auto;
    padding: 20px;
}

/* Gitori-style fretboard */
.gitori-fretboard {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 300px;
    background: linear-gradient(to bottom,
        #8B4513 0%,
        #A0522D 20%,
        #CD853F 50%,
        #A0522D 80%,
        #8B4513 100%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* Fret lines */
.fret-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #2F4F4F;
    box-shadow: 1px 0 2px rgba(0,0,0,0.5);
    z-index: 2;
}

.fret-line.nut {
    width: 8px;
    background: #FFFFFF;
    box-shadow: 2px 0 6px rgba(0,0,0,0.8);
    z-index: 3;
}

/* Fret numbers */
.fret-number {
    position: absolute;
    top: -25px;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: bold;
    color: #4a5568;
    z-index: 3;
}

/* String lines */
.string-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #C0C0C0, #E5E5E5, #C0C0C0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    z-index: 1;
}

/* String labels */
.string-label {
    position: absolute;
    left: -30px;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: bold;
    color: #2d3748;
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 4;
}

/* Fret markers container */
.fret-markers-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Fret markers */
.fret-marker-gitori {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    pointer-events: none;
    z-index: 1;
}

.fret-marker-gitori.single-dot {
    justify-content: center;
}

.fret-marker-gitori.double-dot {
    gap: 40px;
}

.fret-dot-gitori {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #F5F5DC 0%, #D2B48C 70%, #8B7355 100%);
    border-radius: 50%;
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.3),
        0 2px 4px rgba(0,0,0,0.4);
    border: 1px solid #8B7355;
}

/* Fret positions */
.fret-position-gitori {
    position: absolute;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.1);
    border: 2px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
    font-size: 12px;
    color: #2d3748;
    z-index: 3;
}

.fret-position-gitori:hover {
    background: rgba(255,255,255,0.3);
    border-color: #667eea;
    transform: translate(-50%, -50%) scale(1.2);
}

.fret-position-gitori.selected {
    background: #667eea;
    color: white;
    border-color: #5a6fd8;
    transform: translate(-50%, -50%) scale(1.2);
}

.fret-position-gitori.correct {
    background: #48bb78;
    color: white;
    border-color: #38a169;
    transform: translate(-50%, -50%) scale(1.2);
}

.fret-position-gitori.incorrect {
    background: #f56565;
    color: white;
    border-color: #e53e3e;
    transform: translate(-50%, -50%) scale(1.2);
}

.fret-position-gitori.missed {
    background: #ed8936;
    color: white;
    border-color: #dd6b20;
    transform: translate(-50%, -50%) scale(1.2);
}

.fret-position-gitori.hint {
    background: #ffd700;
    color: #333;
    border-color: #ffcc00;
    transform: translate(-50%, -50%) scale(1.2);
}


.find-all-notes-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.find-all-notes-results {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.find-all-notes-results h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2rem;
}