* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: #faf9f6;
    min-height: 100vh;
}

.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 0 1rem;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    padding: 2rem 0;
}

.staff-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2rem;
    margin: 0 auto 2rem;
    width: 366px;
    height: 266px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-container svg {
    max-width: 100%;
}

.feedback {
    height: 3rem;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback.correct {
    color: #2e7d32;
}

.feedback.waiting {
    color: #666;
}

.clef-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 300px;
    margin: 0 auto 2rem;
}

.clef-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    text-align: left;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.clef-option::before {
    content: '';
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: 2px solid #b0b0b0;
    border-radius: 50%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.clef-option:hover {
    border-color: #1a1a1a;
}

.clef-option.selected {
    border-color: #1a1a1a;
    background: #f3f1ea;
}

.clef-option.selected::before {
    border-color: #1a1a1a;
    box-shadow: inset 0 0 0 3px #1a1a1a;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.controls .btn {
    width: 220px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: #333;
}

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

.btn-secondary {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
}

.btn-secondary:hover {
    background: #f3f1ea;
}

.detected-note {
    font-size: 0.75rem;
    color: #999;
    max-width: 600px;
    margin: 0 auto;
    word-break: break-word;
}

#current-pitch {
    font-family: monospace;
    color: #666;
    font-size: 0.7rem;
}

.privacy-note {
    flex-shrink: 0;
    padding: 0.5rem 1rem 1rem;
    font-size: 0.7rem;
    line-height: 1.3;
    color: #999;
    text-align: center;
}

/* Staff SVG styles */
.staff-line {
    stroke: #1a1a1a;
    stroke-width: 1;
}

.ledger-line {
    stroke: #1a1a1a;
    stroke-width: 1;
}

.note-head-filled {
    fill: #1a1a1a;
}

.note-head-empty {
    fill: none;
    stroke: #1a1a1a;
    stroke-width: 2;
}

.note-stem {
    stroke: #1a1a1a;
    stroke-width: 2;
}

.note-flag {
    fill: none;
    stroke: #1a1a1a;
    stroke-width: 2;
}

/* Bravura music font for proper clef rendering */
@font-face {
    font-family: 'Bravura';
    src: url('fonts/Bravura.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.clef-symbol {
    font-family: 'Bravura', serif;
    fill: #1a1a1a;
}

.note-symbol {
    font-family: 'Bravura', serif;
    fill: #1a1a1a;
}

.accidental {
    font-family: 'Bravura', serif;
    fill: #1a1a1a;
}

/* Wrong note styling - red */
.wrong-note {
    fill: #cc3333;
    stroke: #cc3333;
}

.note-head-empty.wrong-note {
    fill: none;
    stroke: #cc3333;
}

.accidental.wrong-note {
    fill: #cc3333;
}

.ledger-line.wrong-note {
    stroke: #cc3333;
}