/*
|--------------------------------------------------------------------------
| RhythmCrest Guitar Chord Map
| chord-map.css
| Version 2.0.0
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| Root
|--------------------------------------------------------------------------
*/

.rc-chord-map {
    --rc-bg-1: #111827;
    --rc-bg-2: #182235;
    --rc-panel: rgba(255, 255, 255, 0.055);
    --rc-panel-strong: rgba(255, 255, 255, 0.085);
    --rc-border: rgba(255, 255, 255, 0.10);
    --rc-text: #f5f7fb;
    --rc-muted: #9ca8ba;
    --rc-accent: #f5c84c;
    --rc-accent-dark: #d9aa27;
    --rc-string: #c8ced8;
    --rc-fret: rgba(255, 255, 255, 0.18);
    --rc-marker-text: #10151d;

    width: min(1080px, calc(100% - 24px));
    margin: 24px auto;
    padding: 22px;

    box-sizing: border-box;

    color: var(--rc-text);

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(245, 200, 76, 0.08),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(72, 108, 180, 0.12),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            var(--rc-bg-1),
            var(--rc-bg-2)
        );

    border: 1px solid var(--rc-border);

    border-radius: 20px;

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.28);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    overflow: hidden;

    position: relative;
}


/*
|--------------------------------------------------------------------------
| Box sizing
|--------------------------------------------------------------------------
*/

.rc-chord-map *,
.rc-chord-map *::before,
.rc-chord-map *::after {
    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.rc-chord-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-bottom: 18px;

    border-bottom:
        1px solid var(--rc-border);
}


.rc-brand {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
}


.rc-brand-mark {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 46px;

    font-size: 23px;

    border-radius: 13px;

    background:
        rgba(245, 200, 76, 0.12);

    border:
        1px solid rgba(245, 200, 76, 0.25);
}


.rc-brand-text {
    min-width: 0;
}


.rc-brand-title {
    margin-bottom: 2px;

    color: var(--rc-accent);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.rc-tool-title {
    margin: 0;

    color: var(--rc-text);

    font-size: 22px;

    line-height: 1.15;

    font-weight: 750;
}


.rc-tool-subtitle {
    margin: 4px 0 0;

    color: var(--rc-muted);

    font-size: 12px;

    line-height: 1.4;
}


/*
|--------------------------------------------------------------------------
| Selected chord
|--------------------------------------------------------------------------
*/

.rc-selected-chord {
    text-align: right;

    flex: 0 0 auto;
}


.rc-selected-chord-name {
    color: var(--rc-accent);

    font-size: 27px;

    font-weight: 800;

    line-height: 1;
}


.rc-selected-chord-info {
    margin-top: 5px;

    color: var(--rc-muted);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.04em;
}


/*
|--------------------------------------------------------------------------
| Choice sections
|--------------------------------------------------------------------------
*/

.rc-choice-section {
    padding-top: 14px;
}


.rc-choice-label {
    margin-bottom: 7px;

    color: var(--rc-muted);

    font-size: 10px;

    font-weight: 750;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.rc-choice-row {
    display: flex;

    flex-wrap: nowrap;

    gap: 5px;

    width: 100%;
}


/*
|--------------------------------------------------------------------------
| Root / chord buttons
|--------------------------------------------------------------------------
*/

.rc-choice-button {
    appearance: none;

    border: 1px solid transparent;

    background:
        rgba(255, 255, 255, 0.045);

    color: #dfe5ee;

    border-radius: 8px;

    height: 34px;

    min-width: 0;

    flex: 1 1 0;

    padding: 0 7px;

    cursor: pointer;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


.rc-choice-button:hover {
    background:
        rgba(255, 255, 255, 0.09);

    border-color:
        rgba(255, 255, 255, 0.14);

    color: #ffffff;
}


.rc-choice-button:active {
    transform: scale(0.97);
}


.rc-choice-button.active {
    background:
        var(--rc-accent);

    border-color:
        var(--rc-accent);

    color:
        var(--rc-marker-text);

    box-shadow:
        0 4px 14px rgba(245, 200, 76, 0.18);
}


/*
|--------------------------------------------------------------------------
| Chord type row
|--------------------------------------------------------------------------
*/

.rc-chord-types {
    gap: 6px;
}


.rc-chord-types .rc-choice-button {
    font-size: 11px;
}


/*
|--------------------------------------------------------------------------
| Focus
|--------------------------------------------------------------------------
*/

.rc-chord-map button:focus-visible {
    outline: 2px solid var(--rc-accent);

    outline-offset: 2px;
}


/*
|--------------------------------------------------------------------------
| Voicing section
|--------------------------------------------------------------------------
*/

.rc-voicing-section {
    margin-top: 16px;

    padding:
        12px 14px;

    background:
        var(--rc-panel);

    border:
        1px solid var(--rc-border);

    border-radius: 12px;
}


.rc-section-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 9px;
}


.rc-section-title {
    color: var(--rc-text);

    font-size: 12px;

    font-weight: 750;
}


.rc-section-hint {
    color: var(--rc-muted);

    font-size: 10px;
}


.rc-voicing-row {
    display: flex;

    align-items: center;

    gap: 6px;

    flex-wrap: wrap;
}


.rc-voicing-button {
    appearance: none;

    border: 1px solid var(--rc-border);

    background:
        rgba(255, 255, 255, 0.04);

    color: #dce2eb;

    min-height: 30px;

    padding: 0 12px;

    border-radius: 7px;

    cursor: pointer;

    font-family: inherit;

    font-size: 11px;

    font-weight: 650;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}


.rc-voicing-button:hover {
    background:
        rgba(255, 255, 255, 0.09);

    color: #ffffff;
}


.rc-voicing-button:active {
    transform: scale(0.97);
}


.rc-voicing-button.active {
    background:
        rgba(245, 200, 76, 0.14);

    border-color:
        rgba(245, 200, 76, 0.55);

    color:
        var(--rc-accent);
}


/*
|--------------------------------------------------------------------------
| Fretboard section
|--------------------------------------------------------------------------
*/

.rc-fretboard-section {
    margin-top: 14px;

    padding:
        14px;

    background:
        rgba(7, 11, 18, 0.34);

    border:
        1px solid var(--rc-border);

    border-radius: 14px;

    overflow: hidden;
}


.rc-fretboard-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 10px;
}


.rc-fretboard-title {
    display: flex;

    align-items: center;

    gap: 6px;

    color: var(--rc-muted);

    font-size: 11px;

    font-weight: 600;
}


.rc-fretboard-chord {
    color: var(--rc-text);

    font-size: 15px;

    font-weight: 800;
}


.rc-fretboard-separator {
    color:
        rgba(255, 255, 255, 0.28);
}


/*
|--------------------------------------------------------------------------
| Fretboard wrapper
|--------------------------------------------------------------------------
*/

.rc-fretboard-wrapper {
    width: 100%;

    position: relative;

    overflow: hidden;

    border-radius: 8px;

    background:
        linear-gradient(
            180deg,
            rgba(104, 67, 38, 0.18),
            rgba(44, 28, 18, 0.26)
        );

    border:
        1px solid rgba(255, 255, 255, 0.08);

    padding:
        7px 8px 10px;
}


/*
|--------------------------------------------------------------------------
| Fret number row
|--------------------------------------------------------------------------
*/

.rc-fret-numbers,
.rc-string-row,
.rc-string-status-row,
.rc-fret-markers {
    display: grid;

    grid-template-columns:
        34px repeat(
            var(--rc-fret-count),
            minmax(0, 1fr)
        );

    width: 100%;
}


.rc-fret-numbers {
    margin-bottom: 3px;
}


.rc-fret-number {
    min-width: 0;

    text-align: center;

    color:
        rgba(255, 255, 255, 0.48);

    font-size: 9px;

    font-weight: 650;

    line-height: 18px;

    user-select: none;
}


.rc-string-label-spacer {
    min-width: 0;
}


/*
|--------------------------------------------------------------------------
| Guitar strings
|--------------------------------------------------------------------------
*/

.rc-string-row {
    position: relative;

    min-height: 38px;
}


.rc-string-row::before {
    content: "";

    position: absolute;

    left: 34px;
    right: 0;

    top: 50%;

    height: 1px;

    background:
        var(--rc-string);

    opacity: 0.72;

    z-index: 1;

    pointer-events: none;
}


.rc-string-name {
    display: flex;

    align-items: center;
    justify-content: center;

    color:
        #e8ecf3;

    font-size: 11px;

    font-weight: 800;

    z-index: 4;
}


/*
|--------------------------------------------------------------------------
| Fret cells
|--------------------------------------------------------------------------
*/

.rc-fret-cell {
    position: relative;

    min-width: 0;

    height: 38px;

    border-left:
        1px solid var(--rc-fret);

    z-index: 2;
}


.rc-fret-cell:last-child {
    border-right:
        2px solid rgba(255, 255, 255, 0.22);
}


/*
|--------------------------------------------------------------------------
| Nut
|--------------------------------------------------------------------------
*/

.rc-fret-cell:first-of-type {
    border-left:
        3px solid rgba(255, 255, 255, 0.38);
}


/*
|--------------------------------------------------------------------------
| Selected marker
|--------------------------------------------------------------------------
*/

.rc-note-marker {
    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    width: 29px;
    height: 29px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        var(--rc-accent);

    color:
        var(--rc-marker-text);

    font-size: 10px;

    font-weight: 850;

    line-height: 1;

    z-index: 5;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.28);
}


.rc-fret-cell.selected-note::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 0;
    bottom: 0;

    width: 1px;

    transform:
        translateX(-50%);

    background:
        rgba(245, 200, 76, 0.28);

    z-index: 3;
}


/*
|--------------------------------------------------------------------------
| Open / muted string indicators
|--------------------------------------------------------------------------
*/

.rc-string-status-row {
    min-height: 22px;

    margin-top: 3px;
}


.rc-string-status {
    min-width: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    color:
        rgba(255, 255, 255, 0.58);

    font-size: 14px;

    font-weight: 700;
}


.rc-string-status.open-string {
    color:
        var(--rc-accent);

    font-size: 15px;
}


.rc-string-status.muted-string {
    color:
        #e2a5a5;

    font-size: 15px;
}


/*
|--------------------------------------------------------------------------
| Fret position markers
|--------------------------------------------------------------------------
*/

.rc-fret-markers {
    min-height: 13px;

    margin-top: 1px;
}


.rc-fret-marker {
    min-width: 0;

    text-align: center;

    color:
        rgba(255, 255, 255, 0.22);

    font-size: 6px;

    line-height: 10px;
}


/*
|--------------------------------------------------------------------------
| Fretboard controls
|--------------------------------------------------------------------------
*/

.rc-fretboard-controls {
    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 8px;

    margin-top: 11px;
}


.rc-fret-control,
.rc-explore-button {
    appearance: none;

    border: 1px solid var(--rc-border);

    background:
        rgba(255, 255, 255, 0.045);

    color:
        #dfe5ee;

    height: 32px;

    border-radius: 8px;

    cursor: pointer;

    font-family: inherit;

    font-size: 10px;

    font-weight: 700;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}


.rc-fret-control {
    padding:
        0 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 5px;
}


.rc-fret-control:hover,
.rc-explore-button:hover {
    background:
        rgba(255, 255, 255, 0.09);

    color:
        #ffffff;
}


.rc-fret-control:active,
.rc-explore-button:active {
    transform:
        scale(0.97);
}


.rc-explore-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    padding:
        0 15px;

    color:
        var(--rc-accent);

    border-color:
        rgba(245, 200, 76, 0.28);

    background:
        rgba(245, 200, 76, 0.07);
}


.rc-explore-button.active {
    background:
        var(--rc-accent);

    border-color:
        var(--rc-accent);

    color:
        var(--rc-marker-text);
}


.rc-explore-icon {
    font-size: 15px;

    line-height: 1;
}


/*
|--------------------------------------------------------------------------
| Help legend
|--------------------------------------------------------------------------
*/

.rc-chord-help {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;

    padding:
        11px 0 3px;

    color:
        var(--rc-muted);

    font-size: 10px;
}


.rc-help-item {
    display: inline-flex;

    align-items: center;

    gap: 5px;
}


.rc-help-symbol {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 19px;
    height: 19px;

    border-radius: 50%;

    font-size: 9px;

    font-weight: 800;
}


.rc-help-number {
    background:
        var(--rc-accent);

    color:
        var(--rc-marker-text);
}


.rc-help-open {
    color:
        var(--rc-accent);

    font-size: 14px;
}


.rc-help-muted {
    color:
        #e2a5a5;

    font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.rc-chord-footer {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;

    padding-top: 9px;

    margin-top: 3px;

    color:
        rgba(255, 255, 255, 0.34);

    font-size: 9px;

    letter-spacing: 0.02em;

    text-align: center;
}


.rc-footer-dot {
    opacity: 0.5;
}


/*
|--------------------------------------------------------------------------
| Explore mode
|--------------------------------------------------------------------------
|
| In Explore mode the JS sets:
|
| --rc-fret-count: 12
|
| The grid automatically compresses all twelve frets
| into the available application width.
|
*/

.rc-chord-map.explore-mode
.rc-fretboard-wrapper {
    padding-left: 5px;
    padding-right: 5px;
}


.rc-chord-map.explore-mode
.rc-fret-number {
    font-size: 8px;
}


.rc-chord-map.explore-mode
.rc-string-row {
    min-height: 32px;
}


.rc-chord-map.explore-mode
.rc-fret-cell {
    height: 32px;
}


.rc-chord-map.explore-mode
.rc-note-marker {
    width: 24px;
    height: 24px;

    font-size: 8px;
}


.rc-chord-map.explore-mode
.rc-string-name {
    font-size: 9px;
}


.rc-chord-map.explore-mode
.rc-string-row::before {
    left: 34px;
}


/*
|--------------------------------------------------------------------------
| Empty / unavailable chord
|--------------------------------------------------------------------------
*/

.rc-chord-map
.rc-voicing-row:empty::after {
    content:
        "No common beginner voicing available";

    color:
        var(--rc-muted);

    font-size: 10px;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 800px) {

    .rc-chord-map {
        width:
            calc(100% - 16px);

        margin:
            12px auto;

        padding:
            17px;

        border-radius:
            16px;
    }


    .rc-tool-title {
        font-size: 19px;
    }


    .rc-tool-subtitle {
        font-size: 11px;
    }


    .rc-choice-button {
        height: 32px;

        font-size: 11px;

        padding:
            0 5px;
    }


    .rc-chord-types .rc-choice-button {
        font-size: 10px;
    }


    .rc-fretboard-section {
        padding:
            11px;
    }


    .rc-note-marker {
        width: 27px;
        height: 27px;

        font-size: 9px;
    }
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .rc-chord-map {
        width:
            calc(100% - 10px);

        margin:
            5px auto;

        padding:
            12px;

        border-radius:
            14px;
    }


    .rc-chord-header {
        padding-bottom:
            13px;

        gap:
            10px;
    }


    .rc-brand-mark {
        width: 38px;
        height: 38px;

        flex-basis:
            38px;

        border-radius:
            10px;

        font-size:
            19px;
    }


    .rc-brand-title {
        font-size:
            9px;
    }


    .rc-tool-title {
        font-size:
            17px;
    }


    .rc-tool-subtitle {
        display:
            none;
    }


    .rc-selected-chord-name {
        font-size:
            22px;
    }


    .rc-selected-chord-info {
        font-size:
            9px;
    }


    .rc-choice-section {
        padding-top:
            10px;
    }


    .rc-choice-label {
        margin-bottom:
            5px;

        font-size:
            9px;
    }


    .rc-choice-row {
        gap:
            3px;
    }


    .rc-choice-button {
        height:
            29px;

        padding:
            0 3px;

        border-radius:
            6px;

        font-size:
            10px;
    }


    .rc-chord-types {
        gap:
            3px;
    }


    .rc-chord-types .rc-choice-button {
        font-size:
            9px;
    }


    .rc-voicing-section {
        margin-top:
            10px;

        padding:
            9px;
    }


    .rc-section-heading {
        margin-bottom:
            6px;
    }


    .rc-section-title {
        font-size:
            10px;
    }


    .rc-section-hint {
        font-size:
            8px;
    }


    .rc-voicing-button {
        min-height:
            27px;

        padding:
            0 9px;

        font-size:
            9px;
    }


    .rc-fretboard-section {
        margin-top:
            9px;

        padding:
            8px;
    }


    .rc-fretboard-top {
        margin-bottom:
            6px;
    }


    .rc-fretboard-chord {
        font-size:
            13px;
    }


    .rc-fretboard-title {
        font-size:
            9px;
    }


    .rc-fretboard-wrapper {
        padding:
            5px 4px 7px;
    }


    .rc-fret-numbers,
    .rc-string-row,
    .rc-string-status-row,
    .rc-fret-markers {
        grid-template-columns:
            26px repeat(
                var(--rc-fret-count),
                minmax(0, 1fr)
            );
    }


    .rc-string-row {
        min-height:
            32px;
    }


    .rc-fret-cell {
        height:
            32px;
    }


    .rc-string-row::before {
        left:
            26px;
    }


    .rc-string-name {
        font-size:
            9px;
    }


    .rc-fret-number {
        font-size:
            7px;

        line-height:
            14px;
    }


    .rc-note-marker {
        width:
            23px;

        height:
            23px;

        font-size:
            8px;
    }


    .rc-string-status-row {
        min-height:
            18px;
    }


    .rc-string-status {
        font-size:
            11px;
    }


    .rc-fret-marker {
        font-size:
            5px;
    }


    .rc-fretboard-controls {
        gap:
            5px;

        margin-top:
            8px;
    }


    .rc-fret-control,
    .rc-explore-button {
        height:
            29px;

        border-radius:
            6px;

        font-size:
            8px;
    }


    .rc-fret-control {
        padding:
            0 6px;
    }


    .rc-explore-button {
        padding:
            0 9px;
    }


    .rc-control-text {
        display:
            none;
    }


    .rc-explore-icon {
        font-size:
            13px;
    }


    .rc-chord-help {
        gap:
            9px;

        padding-top:
            8px;

        font-size:
            8px;
    }


    .rc-help-symbol {
        min-width:
            16px;

        height:
            16px;

        font-size:
            8px;
    }


    .rc-chord-footer {
        font-size:
            7px;

        padding-top:
            6px;
    }
}


/*
|--------------------------------------------------------------------------
| Very small phones
|--------------------------------------------------------------------------
*/

@media (max-width: 380px) {

    .rc-chord-map {
        width:
            100%;

        margin:
            0;

        padding:
            9px;

        border-radius:
            10px;
    }


    .rc-brand-mark {
        display:
            none;
    }


    .rc-tool-title {
        font-size:
            15px;
    }


    .rc-selected-chord-name {
        font-size:
            19px;
    }


    .rc-choice-button {
        font-size:
            9px;

        padding:
            0 2px;
    }


    .rc-chord-types .rc-choice-button {
        font-size:
            8px;
    }


    .rc-fretboard-wrapper {
        padding:
            4px 2px 6px;
    }


    .rc-fret-numbers,
    .rc-string-row,
    .rc-string-status-row,
    .rc-fret-markers {
        grid-template-columns:
            22px repeat(
                var(--rc-fret-count),
                minmax(0, 1fr)
            );
    }


    .rc-string-row::before {
        left:
            22px;
    }


    .rc-string-row {
        min-height:
            29px;
    }


    .rc-fret-cell {
        height:
            29px;
    }


    .rc-note-marker {
        width:
            21px;

        height:
            21px;

        font-size:
            7px;
    }


    .rc-fret-number {
        font-size:
            6px;
    }


    .rc-explore-button {
        padding:
            0 6px;
    }
}


/*
|--------------------------------------------------------------------------
| Reduced motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .rc-chord-map *,
    .rc-chord-map *::before,
    .rc-chord-map *::after {
        transition:
            none !important;

        animation:
            none !important;
    }
}