
/* ==========================================
   ROWEROWY ODKRYWCA
   DWA KOŁA + KORALIKI Z LAT 90.
   ========================================== */

#roNaped,
#roPrzednieKolo,
.ro-brake-toggle,
.ro-freehub-sound {
    display: none;
}

/* ==========================================
   TYLNY NAPĘD
   ========================================== */

#roNaped svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

#roNaped .chain-base {
    fill: none;
    stroke: #1b1c1e;
    stroke-width: 19;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#roNaped .chain-metal {
    fill: none;
    stroke: #a5a8a8;
    stroke-width: 11;
    stroke-linejoin: round;
    stroke-dasharray: 13 3;
    stroke-linecap: round;
}

#roNaped .chain-pins {
    fill: none;
    stroke: #343638;
    stroke-width: 4;
    stroke-dasharray: 2 14;
    stroke-linecap: round;
}

#roNaped .chain-highlight {
    fill: none;
    stroke: #e4e5e0;
    stroke-width: 2;
    stroke-dasharray: 10 6;
    stroke-linecap: round;
}

#roNaped .teeth {
    fill: #b7b9b7;
    stroke: #3e4346;
    stroke-width: 2;
}

#roNaped .innergear {
    fill: #676b6e;
    stroke: #d2d4d0;
    stroke-width: 3;
}

#roNaped .gearcut {
    fill: #17191b;
    stroke: #949b9c;
    stroke-width: 1.3;
}

#roNaped .cage {
    fill: #26292c;
    stroke: #747a7e;
    stroke-width: 4;
}

#roNaped .bolt {
    fill: #b9bdbe;
    stroke: #30363a;
    stroke-width: 5;
}

/* ==========================================
   WYGLĄD KORALIKÓW
   ========================================== */

#roPrzednieKolo .ro-bead {
    pointer-events: none;

    filter: drop-shadow(
        0 2px 2px rgba(0, 0, 0, .38)
    );
}

/* ==========================================
   DESKTOP
   ========================================== */

@media (min-width: 1200px) {

    /* TYLNY NAPĘD */

    #roNaped {
        display: block;
        position: fixed;

        top: calc(60% + 120px);
        left: calc((100vw - 1000px) / 2 - 330px);

        width: 325px;
        height: 520px;

        transform: translateY(-50%);
        translate: 650px 0;

        z-index: 0;
        pointer-events: none;

        filter: drop-shadow(0 12px 16px #000a);
    }

    /* PRZEDNIE KOŁO */

    #roPrzednieKolo {
        display: block;
        position: fixed;

        left: calc(50% + 500px);
        top: calc(60% + 15px);

        width: 932px;
        height: 932px;

        transform: translate(-50%, -50%);
        translate: -520px 0;

        z-index: 0;
        pointer-events: none;

        filter: drop-shadow(0 10px 14px #0007);
    }

    #roPrzednieKolo svg {
        display: block;
        width: 100%;
        height: 100%;

        transform-origin: center center;
        will-change: transform;
    }

    /* ARTYKUŁ NAD KOŁAMI */

    .ro_strona {
        position: relative;
        z-index: 1;
    }

    .ro_strona .ro_header {
        position: relative;
        z-index: 2;
    }

    /* PRZYCISKI */

    .ro-brake-toggle,
    .ro-freehub-sound {
        display: inline-flex;
        position: fixed;

        height: 32px;

        align-items: center;
        justify-content: center;
        gap: 5px;

        padding: 0 8px;
        box-sizing: border-box;

        border: 1px solid #ffffff55;
        border-radius: 999px;

        background: #193e52;
        color: white;

        font: 600 11px Arial, sans-serif;
        line-height: 1;

        box-shadow: 0 4px 12px #0006;

        z-index: 100;
        cursor: pointer;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition:
            opacity .3s ease,
            visibility .3s,
            background .18s,
            transform .18s,
            border-color .18s;
    }

    /* Przyciski po całkowitym wysunięciu kół */

    body.ro-wheels-visible .ro-brake-toggle,
    body.ro-wheels-visible .ro-freehub-sound {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .ro-brake-toggle:hover,
    .ro-freehub-sound:hover {
        background: #265a72;
    }

    .ro-brake-toggle:focus-visible,
    .ro-freehub-sound:focus-visible {
        outline: 3px solid #f2c94c;
        outline-offset: 3px;
    }

    /* PRZYCISK HAMUJ */

    .ro-brake-toggle {
        left: calc((100vw - 1000px) / 2 - 315px);
        bottom: 145px;

        width: 98px;
        height: 32px;
    }

    .ro-brake-toggle .brake-icon {
        font-size: 13px;
        line-height: 1;
    }

    .ro-brake-toggle #brake-label {
        font-size: 11px;
        line-height: 1;
    }

    .ro-brake-toggle[aria-pressed="true"] {
        background: #9d2b2b;
        border-color: #ff9b9b;

        box-shadow:
            inset 0 3px 7px #0007,
            0 2px 6px #0005;

        transform: translateY(2px);
    }

    /* PRZYCISK DŹWIĘKU */

    .ro-freehub-sound {
        left: calc((100vw - 1000px) / 2 - 315px);
        bottom: 103px;

        width: 32px;
        height: 32px;

        padding: 0;
        gap: 0;
    }

    .ro-freehub-sound .ro-sound-icon {
        font-size: 17px;
        line-height: 1;
    }

    .ro-freehub-sound[aria-pressed="true"] {
        background: #17625a;
        border-color: #78c8b6;
    }
}

/* ==========================================
   MNIEJSZE EKRANY
   ========================================== */

@media (max-width: 1199px) {

    #roNaped,
    #roPrzednieKolo,
    .ro-brake-toggle,
    .ro-freehub-sound {
        display: none !important;
    }
}

/* ==========================================
   OGRANICZENIE RUCHU
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    #roNaped,
    #roPrzednieKolo,
    .ro-brake-toggle,
    .ro-freehub-sound {
        display: none !important;
    }
}
