@font-face {
    font-family: 'Pixellari';
    src: url('assets/Pixellari.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Pixellari', 'Courier New', monospace;
    background: #0f0f1b;
    color: #fafbf6;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    min-height: 100vh;
    padding: 10px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

@media (min-width: 769px) {
    body {
        overflow-y: auto;
        min-height: 100vh;
    }
    
    .container {
        max-width: 1200px;
        padding: 15px;
        min-height: 100vh;
    }
}

header {
    text-align: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    header {
        margin-bottom: 10px;
    }
}

header h1 {
    font-size: 24px;
    color: #fafbf6;
    text-shadow: 2px 2px 0px #565a75;
    letter-spacing: 2px;
}

@media (min-width: 769px) {
    header h1 {
        font-size: 24px;
        margin: 0;
    }
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .controls {
        margin-bottom: 8px;
        gap: 10px;
    }
}

.playback-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .playback-controls {
        margin-top: 8px;
        margin-bottom: 8px;
        gap: 10px;
    }
}

.control-btn {
    padding: 10px 20px;
    background: #c6b7be;
    color: #0f0f1b;
    border: 2px solid #565a75;
    border-radius: 0px;
    font-family: 'Pixellari', 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.1s;
    box-shadow: 3px 3px 0px #565a75;
}

.control-btn:hover {
    background: #fafbf6;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #565a75;
}

.control-btn i,
.clear-btn i,
.insert-row-btn i {
    margin-right: 6px;
}

.control-btn:active {
    background: #c6b7be;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #565a75;
}

.clear-tracker-btn {
    background: #565a75;
    color: #fafbf6;
    border-color: #0f0f1b;
}

.clear-tracker-btn:hover {
    background: #0f0f1b;
    color: #fafbf6;
    border-color: #565a75;
}

.clear-tracker-btn:active {
    background: #565a75;
    color: #c6b7be;
}

.tempo-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tempo-control label {
    font-size: 14px;
}

.tempo-control input {
    width: 60px;
    padding: 8px;
    background: #565a75;
    color: #fafbf6;
    border: 2px solid #0f0f1b;
    border-radius: 0px;
    font-family: 'Pixellari', 'Courier New', monospace;
    font-size: 14px;
    box-shadow: inset 2px 2px 0px rgba(15, 15, 27, 0.3);
}

.tracker-grid-container {
    background: #565a75;
    border: 4px solid #0f0f1b;
    border-radius: 0px;
    overflow: auto;
    margin-bottom: 10px;
    flex: 0 0 auto;
    min-height: 200px;
    max-height: 40vh;
    -webkit-overflow-scrolling: touch;
    box-shadow: inset 3px 3px 0px rgba(15, 15, 27, 0.5);
}

@media (min-width: 769px) {
    .tracker-grid-container {
        flex: 0 0 auto;
        min-height: 250px;
        max-height: 35vh;
        margin-bottom: 8px;
    }
}

.channel-headers {
    display: grid;
    grid-template-columns: 60px repeat(4, 1fr);
    gap: 2px;
    padding: 5px;
    background: #565a75;
    position: sticky;
    top: 0;
    z-index: 10;
}

.channel-header {
    padding: 8px;
    background: #c6b7be;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    border: 2px solid #0f0f1b;
    color: #0f0f1b;
    box-shadow: 2px 2px 0px #565a75;
}

.channel-header[data-channel] {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.channel-header[data-channel]:hover {
    background: #d6c7ce;
}

@media (min-width: 769px) {
    .channel-header {
        padding: 6px;
        font-size: 11px;
    }
}

.tracker-grid {
    display: flex;
    flex-direction: column;
}

.tracker-row {
    display: grid;
    grid-template-columns: 60px repeat(4, 1fr);
    gap: 2px;
    padding: 2px;
}

@media (min-width: 769px) {
    .tracker-row {
        gap: 1px;
        padding: 1px;
    }
}

.tracker-row:hover {
    background: rgba(198, 183, 190, 0.1);
}

.tracker-row.active {
    background: #c6b7be;
}

.row-number {
    padding: 8px;
    background: #0f0f1b;
    text-align: center;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #565a75;
    color: #c6b7be;
}

@media (min-width: 769px) {
    .row-number {
        padding: 4px;
        font-size: 10px;
    }
}

.cell {
    padding: 8px 4px;
    background: #0f0f1b;
    border: 1px solid #565a75;
    text-align: center;
    font-size: 11px;
    cursor: pointer;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-all;
    transition: background 0.1s;
    color: #fafbf6;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(86, 90, 117, 0.1) 1px,
            rgba(86, 90, 117, 0.1) 2px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(86, 90, 117, 0.1) 1px,
            rgba(86, 90, 117, 0.1) 2px
        );
}

@media (min-width: 769px) {
    .cell {
        padding: 4px 2px;
        font-size: 10px;
        min-height: 24px;
    }
}

.cell:hover {
    background: #565a75;
    border-color: #c6b7be;
    background-image: none;
}

.cell.selected {
    background: #c6b7be;
    border-color: #fafbf6;
    color: #0f0f1b;
    border-width: 2px;
    background-image: none;
    box-shadow: inset 0 0 0 1px #fafbf6;
}

.cell.empty {
    color: #565a75;
}

.piano-controls {
    background: #565a75;
    border: 4px solid #0f0f1b;
    border-radius: 0px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    flex-grow: 0;
    box-shadow: inset 2px 2px 0px rgba(15, 15, 27, 0.5);
}

@media (min-width: 769px) {
    .piano-controls {
        padding: 8px;
        margin-bottom: 6px;
        gap: 12px;
    }
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-group label {
    font-size: 14px;
    white-space: nowrap;
}

.control-group input,
.control-group select {
    padding: 6px 10px;
    background: #c6b7be;
    color: #0f0f1b;
    border: 2px solid #0f0f1b;
    border-radius: 0px;
    font-family: 'Pixellari', 'Courier New', monospace;
    font-size: 14px;
    box-shadow: 2px 2px 0px #0f0f1b;
}

.control-group input {
    width: 60px;
}

.control-group select {
    min-width: 100px;
}

.clear-btn {
    padding: 6px 15px;
    background: #0f0f1b;
    color: #fafbf6;
    border: 2px solid #fafbf6;
    border-radius: 0px;
    font-family: 'Pixellari', 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 2px 2px 0px #fafbf6;
    transition: all 0.1s;
}

.clear-btn:hover {
    background: #565a75;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #fafbf6;
}

.insert-row-btn {
    padding: 6px 15px;
    background: #565a75;
    color: #fafbf6;
    border: 2px solid #fafbf6;
    border-radius: 0px;
    font-family: 'Pixellari', 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 2px 2px 0px #fafbf6;
    transition: all 0.1s;
}

.insert-row-btn:hover {
    background: #c6b7be;
    color: #0f0f1b;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #fafbf6;
}

.delete-row-btn {
    padding: 6px 15px;
    background: #565a75;
    color:  #fafbf6;
    border: 2px solid #fafbf6;
    border-radius: 0px;
    font-family: 'Pixellari', 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 2px 2px 0px #fafbf6;
    transition: all 0.1s;
}

.delete-row-btn:hover {
    background:  #c6b7be;
    color: #0f0f1b;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #fafbf6;
}

.delete-row-btn i {
    margin-right: 6px;
}

.settings-toggle-btn {
    background: #565a75;
    color: #fafbf6;
    border-color: #fafbf6;
}

.settings-toggle-btn:hover {
    background: #c6b7be;
    color: #0f0f1b;
}

.export-btn, .import-btn {
    background: #565a75;
    color: #fafbf6;
    border-color: #0f0f1b;
}

.export-btn:hover, .import-btn:hover {
    background: #c6b7be;
    color: #0f0f1b;
}

.settings-panel {
    background: #565a75;
    border: 4px solid #0f0f1b;
    border-radius: 0px;
    padding: 15px;
    margin-bottom: 10px;
    flex-shrink: 0;
    flex-grow: 0;
    box-shadow: inset 2px 2px 0px rgba(15, 15, 27, 0.5);
}

@media (min-width: 769px) {
    .settings-panel {
        padding: 12px;
        margin-bottom: 6px;
    }
}

.settings-content h3 {
    font-size: 16px;
    color: #fafbf6;
    margin-bottom: 12px;
    text-shadow: 1px 1px 0px #0f0f1b;
}

.setting-item {
    margin-bottom: 15px;
}

.setting-label {
    display: block;
    font-size: 14px;
    color: #fafbf6;
    margin-bottom: 8px;
    font-weight: bold;
}

.theme-select {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    background: #c6b7be;
    color: #0f0f1b;
    border: 2px solid #0f0f1b;
    border-radius: 0px;
    font-family: 'Pixellari', 'Courier New', monospace;
    font-size: 14px;
    box-shadow: 2px 2px 0px #0f0f1b;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #fafbf6;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #c6b7be;
    border: 2px solid #0f0f1b;
}

.checkbox-label span {
    user-select: none;
}

.setting-description {
    font-size: 12px;
    color: #c6b7be;
    margin-top: 5px;
    margin-left: 30px;
    line-height: 1.4;
}

.help-panel {
    background: #565a75;
    border: 4px solid #0f0f1b;
    border-radius: 0px;
    padding: 10px;
    flex-shrink: 0;
    flex-grow: 0;
    max-height: 120px;
    overflow-y: auto;
}

@media (min-width: 769px) {
    .help-panel {
        padding: 8px;
        max-height: 100px;
    }
}

.help-toggle {
    width: 100%;
    padding: 10px;
    background: #c6b7be;
    color: #0f0f1b;
    border: 2px solid #0f0f1b;
    border-radius: 0px;
    font-family: 'Pixellari', 'Courier New', monospace;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
}

.help-toggle:hover {
    background: #fafbf6;
}

.help-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #0f0f1b;
}

.help-section {
    margin-bottom: 15px;
}

.help-section h3 {
    font-size: 14px;
    color: #fafbf6;
    margin-bottom: 8px;
}

.help-section p {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 5px;
    color: #c6b7be;
}

.help-section strong {
    color: #fafbf6;
}

.piano-panel {
    background: #565a75;
    border: 4px solid #0f0f1b;
    border-radius: 0px;
    padding: 10px;
    margin-bottom: 10px;
    flex-shrink: 0;
    flex-grow: 0;
    box-shadow: inset 2px 2px 0px rgba(15, 15, 27, 0.5);
    overflow: hidden;
}

@media (min-width: 769px) {
    .piano-panel {
        padding: 8px;
        margin-bottom: 6px;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    text-align: center;
    padding: 20px 10px;
    margin-top: 15px;
    border-top: 2px solid #565a75;
    flex-shrink: 0;
}

.footer-content {
    font-size: 13px;
    color: #c6b7be;
}

.footer-content p {
    margin: 0;
}

.footer-content a {
    color: #fafbf6;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.footer-content a:hover {
    color: #c6b7be;
}

.footer-content i {
    margin-right: 4px;
}

@media (min-width: 769px) {
    .site-footer {
        padding: 15px 10px;
        margin-top: 10px;
    }
}

.piano-container {
    width: 100%;

    -webkit-overflow-scrolling: touch;
}

.piano-keyboard {
    display: flex;
    position: relative;
    width: 100%;
    min-height: 120px;
    max-width: 600px;
    margin: 0 auto;
    justify-content: center;
    align-items: flex-start;
}

@media (min-width: 769px) {
    .piano-keyboard {
        min-height: 165px;
    }
    
    .piano-key.white {
        height: 165px;
    }
    
    .piano-key.black {
        height: 110px;
    }
}

.piano-key {
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: background 0.1s;
}

.piano-key.white {
    background: #fafbf6;
    border: 2px solid #0f0f1b;
    border-radius: 0px;
    width: calc(100% / 7);
    min-width: 40px;
    height: 180px;
    box-shadow: 3px 3px 0px #0f0f1b;
    z-index: 1;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(86, 90, 117, 0.05) 2px,
            rgba(86, 90, 117, 0.05) 4px
        );
}

.piano-key.white:active,
.piano-key.white.pressed {
    background: #c6b7be;
    box-shadow: inset 2px 2px 0px rgba(15, 15, 27, 0.3);
    transform: translate(1px, 1px);
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 1px,
            rgba(15, 15, 27, 0.1) 1px,
            rgba(15, 15, 27, 0.1) 2px
        );
}

.piano-key.black {
    background: #0f0f1b;
    border: 2px solid #565a75;
    border-radius: 0px;
    width: calc(60% / 7);
    min-width: 24px;
    height: 120px;
    position: absolute;
    z-index: 2;
    box-shadow: 3px 3px 0px #565a75;
    background-image: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(86, 90, 117, 0.3) 2px,
            rgba(86, 90, 117, 0.3) 4px
        );
}

.piano-key.black:active,
.piano-key.black.pressed {
    background: #565a75;
    box-shadow: inset 2px 2px 0px rgba(198, 183, 190, 0.2);
    transform: translate(1px, 1px);
    background-image: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 1px,
            rgba(198, 183, 190, 0.2) 1px,
            rgba(198, 183, 190, 0.2) 2px
        );
}

/* Black key positioning for C#, D#, F#, G#, A# */
.piano-key.black.csharp {
    left: calc(100% / 7 * 1 - 60% / 14);
}

.piano-key.black.dsharp {
    left: calc(100% / 7 * 2 - 60% / 14);
}

.piano-key.black.fsharp {
    left: calc(100% / 7 * 4 - 60% / 14);
}

.piano-key.black.gsharp {
    left: calc(100% / 7 * 5 - 60% / 14);
}

.piano-key.black.asharp {
    left: calc(100% / 7 * 6 - 60% / 14);
}

.piano-key-label {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: bold;
    color: #0f0f1b;
    pointer-events: none;
    text-shadow: 1px 1px 0px rgba(86, 90, 117, 0.3);
}

.piano-key.black .piano-key-label {
    color: #fafbf6;
    font-size: 10px;
    text-shadow: 1px 1px 0px rgba(15, 15, 27, 0.5);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container {
        padding: 5px;
        height: 100vh;
    }
    
    header h1 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .controls {
        margin-bottom: 5px;
    }
    
    .playback-controls {
        margin-top: 5px;
        margin-bottom: 5px;
    }
    
    .tracker-grid-container {
        max-height: 35vh;
    }
    
    .piano-keyboard {
        min-height: 100px;
    }
    
    .piano-key.white {
        height: 100px;
        min-width: calc((100vw - 50px) / 7);
    }
    
    .piano-key.black {
        height: 65px;
        min-width: calc((100vw - 50px) / 7 * 0.6);
    }
    
    .piano-key-label {
        font-size: 11px;
    }
    
    .piano-key.black .piano-key-label {
        font-size: 9px;
    }
    
    .piano-controls {
        padding: 8px;
        margin-bottom: 5px;
    }
    
    .piano-panel {
        padding: 8px;
        margin-bottom: 5px;
    }
    
    .help-panel {
        padding: 8px;
        max-height: 120px;
    }

    .control-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .channel-headers,
    .tracker-row {
        grid-template-columns: 50px repeat(4, minmax(80px, 1fr));
    }

    .cell {
        font-size: 10px;
        padding: 6px 2px;
        min-height: 28px;
    }

    .row-number {
        font-size: 10px;
        padding: 6px;
    }

    .note-input {
        flex-direction: column;
        gap: 10px;
    }

    .note-input > * {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .channel-headers,
    .tracker-row {
        grid-template-columns: 40px repeat(4, minmax(70px, 1fr));
    }

    .cell {
        font-size: 9px;
        padding: 4px 2px;
        min-height: 24px;
    }
    
    .piano-panel {
        padding: 10px;
    }
    
    .piano-keyboard {
        min-height: 200px;
    }
    
    .piano-key.white {
        height: 200px;
        min-width: calc((100vw - 40px) / 7);
    }
    
    .piano-key.black {
        height: 130px;
        min-width: calc((100vw - 40px) / 7 * 0.6);
    }
}

/* Portrait mode optimization */
@media (max-width: 768px) and (orientation: portrait) {
    .piano-panel {
        padding: 15px 10px;
    }
    
    .piano-keyboard {
        min-height: 220px;
    }
    
    .piano-key.white {
        height: 220px;
        min-width: calc((100vw - 50px) / 7);
    }
    
    .piano-key.black {
        height: 140px;
        min-width: calc((100vw - 50px) / 7 * 0.6);
    }
    
    .piano-key-label {
        font-size: 16px;
        bottom: 12px;
    }
    
    .piano-key.black .piano-key-label {
        font-size: 12px;
    }
}

/* ============================================
   AUTUMN THEME
   ============================================ */

body[data-theme="autumn"] {
    background: #c9cca1;
    color: #543344;
}

body[data-theme="autumn"] header h1 {
    color: #543344;
    text-shadow: 2px 2px 0px #8b4049;
}

body[data-theme="autumn"] .control-btn {
    background: #caa05a;
    color: #543344;
    border: 2px solid #8b4049;
    box-shadow: 3px 3px 0px #8b4049;
}

body[data-theme="autumn"] .control-btn:hover {
    background: #8ea091;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #8b4049;
}

body[data-theme="autumn"] .control-btn:active {
    background: #caa05a;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #8b4049;
}

body[data-theme="autumn"] .clear-tracker-btn {
    background: #8b4049;
    color: #c9cca1;
    border-color: #543344;
}

body[data-theme="autumn"] .clear-tracker-btn:hover {
    background: #543344;
    color: #c9cca1;
    border-color: #8b4049;
}

body[data-theme="autumn"] .clear-tracker-btn:active {
    background: #8b4049;
    color: #caa05a;
}

body[data-theme="autumn"] .tempo-control input {
    background: #63787d;
    color: #543344;
    border: 2px solid #543344;
    box-shadow: inset 2px 2px 0px rgba(84, 51, 68, 0.3);
}

body[data-theme="autumn"] .tracker-grid-container {
    background: #63787d;
    border: 4px solid #543344;
    box-shadow: inset 3px 3px 0px rgba(84, 51, 68, 0.5);
}

body[data-theme="autumn"] .channel-headers {
    background: #63787d;
}

body[data-theme="autumn"] .channel-header {
    background: #caa05a;
    color: #543344;
    border: 2px solid #543344;
    box-shadow: 2px 2px 0px #8b4049;
}

body[data-theme="autumn"] .channel-header[data-channel]:hover {
    background: #dab06a;
}

body[data-theme="autumn"] .tracker-row:hover {
    background: rgba(202, 160, 90, 0.2);
}

body[data-theme="autumn"] .tracker-row.active {
    background: #caa05a;
}

body[data-theme="autumn"] .row-number {
    background: #543344;
    border: 1px solid #8b4049;
    color: #caa05a;
}

body[data-theme="autumn"] .cell {
    background: #543344;
    border: 1px solid #8b4049;
    color: #c9cca1;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(139, 64, 73, 0.15) 1px,
            rgba(139, 64, 73, 0.15) 2px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(139, 64, 73, 0.15) 1px,
            rgba(139, 64, 73, 0.15) 2px
        );
}

body[data-theme="autumn"] .cell:hover {
    background: #8b4049;
    border-color: #caa05a;
    background-image: none;
}

body[data-theme="autumn"] .cell.selected {
    background: #caa05a;
    border-color: #c9cca1;
    color: #543344;
    border-width: 2px;
    background-image: none;
    box-shadow: inset 0 0 0 1px #c9cca1;
}

body[data-theme="autumn"] .cell.empty {
    color: #8b4049;
}

body[data-theme="autumn"] .piano-controls {
    background: #63787d;
    border: 4px solid #543344;
    box-shadow: inset 2px 2px 0px rgba(84, 51, 68, 0.5);
}

body[data-theme="autumn"] .control-group label {
    color: #c9cca1;
}

body[data-theme="autumn"] .control-group input,
body[data-theme="autumn"] .control-group select {
    background: #caa05a;
    color: #543344;
    border: 2px solid #543344;
    box-shadow: 2px 2px 0px #543344;
}

body[data-theme="autumn"] .clear-btn {
    background: #543344;
    color: #c9cca1;
    border: 2px solid #c9cca1;
    box-shadow: 2px 2px 0px #c9cca1;
}

body[data-theme="autumn"] .clear-btn:hover {
    background: #8b4049;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #c9cca1;
}

body[data-theme="autumn"] .insert-row-btn {
    background: #8b4049;
    color: #c9cca1;
    border: 2px solid #c9cca1;
    box-shadow: 2px 2px 0px #c9cca1;
}

body[data-theme="autumn"] .insert-row-btn:hover {
    background: #caa05a;
    color: #543344;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #c9cca1;
}

body[data-theme="autumn"] .delete-row-btn {
    background: #8b4049;
    color: #c9cca1;
    border: 2px solid #c9cca1;
    box-shadow: 2px 2px 0px #c9cca1;
}

body[data-theme="autumn"] .delete-row-btn:hover {
    background: #caa05a;
    color: #543344;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #c9cca1;
}

body[data-theme="autumn"] .settings-toggle-btn {
    background: #8b4049;
    color: #c9cca1;
    border-color: #c9cca1;
}

body[data-theme="autumn"] .settings-toggle-btn:hover {
    background: #caa05a;
    color: #543344;
}

body[data-theme="autumn"] .export-btn,
body[data-theme="autumn"] .import-btn {
    background: #63787d;
    color: #c9cca1;
    border-color: #543344;
}

body[data-theme="autumn"] .export-btn:hover,
body[data-theme="autumn"] .import-btn:hover {
    background: #caa05a;
    color: #543344;
}

body[data-theme="autumn"] .settings-panel {
    background: #63787d;
    border: 4px solid #543344;
    box-shadow: inset 2px 2px 0px rgba(84, 51, 68, 0.5);
}

body[data-theme="autumn"] .settings-content h3 {
    color: #c9cca1;
    text-shadow: 1px 1px 0px #543344;
}

body[data-theme="autumn"] .setting-label {
    color: #c9cca1;
}

body[data-theme="autumn"] .theme-select {
    background: #caa05a;
    color: #543344;
    border: 2px solid #543344;
    box-shadow: 2px 2px 0px #543344;
}

body[data-theme="autumn"] .checkbox-label {
    color: #c9cca1;
}

body[data-theme="autumn"] .checkbox-label input[type="checkbox"] {
    accent-color: #caa05a;
    border: 2px solid #543344;
}

body[data-theme="autumn"] .setting-description {
    color: #8ea091;
}

body[data-theme="autumn"] .piano-panel {
    background: #63787d;
    border: 4px solid #543344;
    box-shadow: inset 2px 2px 0px rgba(84, 51, 68, 0.5);
    overflow: hidden;
}

body[data-theme="autumn"] .piano-key.white {
    background: #c9cca1;
    border: 2px solid #543344;
    box-shadow: 3px 3px 0px #543344;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(139, 64, 73, 0.08) 2px,
            rgba(139, 64, 73, 0.08) 4px
        );
}

body[data-theme="autumn"] .piano-key.white:active,
body[data-theme="autumn"] .piano-key.white.pressed {
    background: #caa05a;
    box-shadow: inset 2px 2px 0px rgba(84, 51, 68, 0.3);
    transform: translate(1px, 1px);
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 1px,
            rgba(84, 51, 68, 0.15) 1px,
            rgba(84, 51, 68, 0.15) 2px
        );
}

body[data-theme="autumn"] .piano-key.black {
    background: #543344;
    border: 2px solid #8b4049;
    box-shadow: 3px 3px 0px #8b4049;
    background-image: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(139, 64, 73, 0.3) 2px,
            rgba(139, 64, 73, 0.3) 4px
        );
}

body[data-theme="autumn"] .piano-key.black:active,
body[data-theme="autumn"] .piano-key.black.pressed {
    background: #8b4049;
    box-shadow: inset 2px 2px 0px rgba(202, 160, 90, 0.2);
    transform: translate(1px, 1px);
    background-image: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 1px,
            rgba(202, 160, 90, 0.2) 1px,
            rgba(202, 160, 90, 0.2) 2px
        );
}

body[data-theme="autumn"] .piano-key-label {
    color: #543344;
    text-shadow: 1px 1px 0px rgba(139, 64, 73, 0.3);
}

body[data-theme="autumn"] .piano-key.black .piano-key-label {
    color: #c9cca1;
    text-shadow: 1px 1px 0px rgba(84, 51, 68, 0.5);
}

body[data-theme="autumn"] .tempo-control label {
    color: #543344;
}

body[data-theme="autumn"] .site-footer {
    border-top: 2px solid #8b4049;
}

body[data-theme="autumn"] .footer-content {
    color: #543344;
}

body[data-theme="autumn"] .footer-content a {
    color: #543344;
}

body[data-theme="autumn"] .footer-content a:hover {
    color: #caa05a;
}

