html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #FFFDF5;
    background-image: radial-gradient(#000 1px, transparent 1px),
    linear-gradient(to right, #e5e5e5 1px, transparent 1px),
    linear-gradient(to bottom, #e5e5e5 1px, transparent 1px);
    background-size: 40px 40px, 100px 100px, 100px 100px;
}

#cursor {
    pointer-events: none;
    position: fixed;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.2s,
    height 0.2s,
    background-color 0.2s,
    transform 0.1s,
    border 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }

    #cursor {
        display: block;
    }
}

@media (hover: none), (pointer: coarse) {
    #cursor {
        display: none;
    }
}

.marquee-container {
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: scroll 80s linear infinite;
    width: max-content;
}

.marquee-draggable {
    cursor: grab;
}

.marquee-draggable:active {
    cursor: grabbing;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

#reports .marquee-container {
    overflow: hidden;
    cursor: grab;
}

#reports .marquee-container:active {
    cursor: grabbing;
}

#reports #reports-marquee {
    animation: none;
    will-change: transform;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.glitch-hover:hover {
    animation: glitch-anim 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: #FF2A2A;
}

@keyframes glitch-anim {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(-2px, -2px)
    }

    60% {
        transform: translate(2px, 2px)
    }

    80% {
        transform: translate(2px, -2px)
    }

    100% {
        transform: translate(0)
    }
}

.text-stroke-black {
    -webkit-text-stroke: 3px black;
}

.keyboard-3d {
    position: absolute;
    top: 50px;
    right: -120px;
    width: 460px;
    max-width: 46vw;

    transform-origin: center;
    transform: rotate(12deg);
    opacity: 0.9;
    pointer-events: none;
    filter: drop-shadow(4px 8px 0px #000);
}

.kb-board {
    --kb-key-h: 22px;
    --kb-unit: 26px;
    --kb-gap: 4px;
    --kb-row-gap: 4px;

    background: #111;
    border: 3px solid #000;
    border-radius: 18px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: var(--kb-row-gap);
}

.kb-row {
    display: flex;
    gap: var(--kb-gap);
    align-items: center;
}

.kb-row-space {
    justify-content: center;
}

.kb-key {
    --press-color: #FBFF48;
    width: var(--kb-unit);
    flex: 0 0 var(--kb-unit);
    height: var(--kb-key-h);
    padding: 0 6px;

    border-radius: 7px;
    background: #1f1f1f;
    border: 2px solid #000;
    box-shadow: 0 3px 0 #000;

    color: #f9fafb;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background-color 0.12s ease,
        color 0.12s ease;
}

.kb-key .kb-label {
    font-size: 9px;
    pointer-events: none;
}

.kb-key.kb-letter .kb-label {
    text-transform: lowercase;
}

.kb-key.kb-letter-upper .kb-label {
    font-size: 11px;
    text-transform: uppercase;
}

.kb-key-backspace {
    width: calc(var(--kb-unit) * 1.8);
    flex-basis: calc(var(--kb-unit) * 1.8);
}

.kb-key-tab {
    width: calc(var(--kb-unit) * 1.8);
    flex-basis: calc(var(--kb-unit) * 1.8);
}

.kb-key-caps {
    width: calc(var(--kb-unit) * 2.0);
    flex-basis: calc(var(--kb-unit) * 2.0);
}

.kb-key-enter {
    width: calc(var(--kb-unit) * 1.8);
    flex-basis: calc(var(--kb-unit) * 1.8);
}

.kb-key-shift {
    width: calc(var(--kb-unit) * 2.4);
    flex-basis: calc(var(--kb-unit) * 2.4);
}

.kb-key-space {
    width: calc(var(--kb-unit) * 6.0);
    flex-basis: calc(var(--kb-unit) * 6.0);
}

.kb-key.pressed {
    transform: translateY(3px);
    box-shadow: 0 0 0 #000;
    background: var(--press-color);
    color: #000;
}

.kb-key.caps-on {
    background: #FBFF48;
    color: #000;
    transform: translateY(3px);
    box-shadow: 0 0 0 #000;
}

@media (max-width: 950px) {
    .keyboard-3d {
        display: none;
    }
}

.highlight {
    position: relative;
    display: inline-block;
    padding: 0 0.15em;
    margin: 0.05em 0.02em;
    font-weight: 600;
    background: transparent;
    z-index: 1;
}

.highlight::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -2px;
    transform: translateY(-50%);
    height: 120%;
    width: calc(var(--highlight-progress, 0%) + 4px);
    border-radius: 3px;
    z-index: -1;
    transition: width 0.1s linear;
}

.highlight::before {
    opacity: 0.65;
    filter: saturate(0.88) brightness(1.02);
}

.highlight[data-direction="right"]::before {
    left: auto;
    right: -2px;
}

.highlight-yellow::before {
    background: #FBFF48;
}

.highlight-cyan::before {
    background: #3B82F6;
}

.highlight-pink::before {
    background: #FF70A6;
}

.highlight-green::before {
    background: #33FF57;
}

.experience-dot {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    transition: transform 0.15s ease;
    background: #FFFDF5;
}

.experience-line {
    width: 2px;
    flex: 1;
    margin-top: 4px;
    background: repeating-linear-gradient(
            to bottom,
            #000,
            #000 6px,
            transparent 6px,
            transparent 10px
    );
    opacity: 0.4;
}

.experience-layout {
    align-items: stretch;
    perspective: 2000px;
}

.experience-left {
    position: relative;
    transform-style: preserve-3d;
    min-height: 320px;
}

.experience-right {
    position: relative;
    transform-style: preserve-3d;
}

.experience-landing-placeholder,
.experience-page-front {
    height: 320px;
}

@media (min-width: 640px) {
    .experience-landing-placeholder,
    .experience-page-front {
        height: 380px;
    }
}

@media (min-width: 768px) {
    .experience-landing-placeholder,
    .experience-page-front {
        height: 460px;
    }
}

@media (min-width: 1024px) {
    .experience-landing-placeholder,
    .experience-page-front {
        height: 520px;
    }
}

.experience-landing-placeholder {
    position: relative;
    z-index: 1;
    border: 4px solid #000;
    background: #f5f2e8;
    box-shadow: 8px 8px 0 #000;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: opacity 0.18s linear;
}

.experience-page-front,
.experience-page-back {
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.12s ease-out;
}

.experience-page-back-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.10;
    background-image: linear-gradient(135deg, #000 1px, transparent 1px);
    background-size: 14px 14px;
    pointer-events: none;
}

.experience-page-front {
    position: absolute;
    inset: 0;
    transform-origin: right center;
    transform: rotateY(180deg);
    z-index: 1;
    overflow-y: hidden;
    pointer-events: none;
}

.experience-page-front {
    scrollbar-width: none;
}

.experience-page-front::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.experience-scrollbar {
    position: absolute;
    top: 0;
    bottom: 4px;      /* можешь вернуть 0, если нужен прям вообще во весь рост */
    right: 4px;
    width: 4px;

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

    background: transparent;
    border: none;     /* тут бордера не нужно */
    overflow: hidden;
}

.experience-scrollbar-bar {
    position: absolute;
    top: 4px;
    left: 0;
    width: 100%;
    height: 0;

    background-color: #33FF57;
    border-left: 1px solid #000;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;

    box-sizing: border-box;
    transition: height 0.12s linear;
}

.experience-page-back {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 320px;
    transform-origin: left center;
    transform: rotateY(0deg);
    z-index: 100;
    pointer-events: auto;
}

@media (min-width: 640px) {
    .experience-page-back {
        height: 380px;
    }
}

@media (min-width: 768px) {
    .experience-page-back {
        height: 460px;
    }
}

@media (min-width: 1024px) {
    .experience-page-back {
        height: 520px;
    }
}

@media (max-width: 1023px) {
    .experience-layout {
        perspective: none;
    }

    .experience-left,
    .experience-right {
        transform-style: flat;
        min-height: auto;
    }

    .experience-page-front {
        position: relative;
        inset: auto;
        transform: none !important;
        z-index: 10 !important;
        overflow-y: auto !important;
        pointer-events: auto !important;
        box-shadow: 8px 8px 0 #000;
    }

    .experience-page-back,
    .experience-landing-placeholder {
        display: none !important;
    }
}

#experience-map-wrapper {
    position: relative;
    background: #FFFDF5;
    border-radius: 0;
    overflow: hidden;
    z-index: 1;
}

#experience-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

#experience-map-wrapper .leaflet-container {
    width: 100%;
    height: 100%;
    font-family: "JetBrains Mono", monospace;
    background: #f5f2e8;
}

#experience-map-wrapper .leaflet-tile-pane {
    filter: saturate(1.25) contrast(1.08) brightness(1.02);
}

#experience-map-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
    opacity: 0.18;
    mix-blend-mode: multiply;
    background-image: radial-gradient(#000 1px, transparent 1px);
    background-size: 46px 46px;
}

.leaflet-control-attribution {
    display: none !important;
}

#experience-map-wrapper .leaflet-control-zoom {
    border: none !important;
    box-shadow: none !important;
}

#experience-map-wrapper .leaflet-control-zoom a {
    background: #FFFDF5 !important;
    color: #000 !important;
    font-weight: 800;
    font-size: 22px !important;
    border: 4px solid #000 !important;
    border-radius: 0 !important;
    box-shadow: 6px 6px 0 #000 !important;
    width: 52px !important;
    height: 52px !important;
    line-height: 44px !important;
    text-align: center;
    margin-bottom: 10px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
}

#experience-map-wrapper .leaflet-control-zoom a:last-child {
    margin-bottom: 0 !important;
}

#experience-map-wrapper .leaflet-control-zoom a:hover {
    background: #FBFF48 !important;
    transform: translate(4px, 4px) !important;
    box-shadow: 0 0 0 #000 !important;
}

.leaflet-control-home {
    border: none !important;
    box-shadow: none !important;
    margin-top: 12px !important;
}

.leaflet-control-home a {
    display: block;
    width: 52px !important;
    height: 52px !important;
    line-height: 44px !important;
    text-align: center;
    background: #FFFDF5 !important;
    color: #000 !important;
    border: 4px solid #000 !important;
    border-radius: 0 !important;
    box-shadow: 6px 6px 0 #000 !important;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
}
/* уменьшаем карты-контролы на узких экранах */
@media (max-width: 768px) {
    #experience-map-wrapper .leaflet-control-zoom a,
    .leaflet-control-home a {
        width: 38px !important;
        height: 38px !important;
        line-height: 30px !important;
        font-size: 16px !important;
        border-width: 3px !important;
        box-shadow: 4px 4px 0 #000 !important;
        margin-bottom: 8px !important;
    }

    .leaflet-control-home {
        margin-top: 8px !important;
    }
}

/* ещё чуть компактнее на совсем маленьких экранах (опционально) */
@media (max-width: 480px) {
    #experience-map-wrapper .leaflet-control-zoom a,
    .leaflet-control-home a {
        width: 32px !important;
        height: 32px !important;
        line-height: 26px !important;
        font-size: 14px !important;
        box-shadow: 3px 3px 0 #000 !important;
        border-width: 3px !important;
    }
}
.leaflet-control-home a:hover {
    background: #3B82F6 !important;
    color: #000 !important;
    transform: translate(4px, 4px) !important;
    box-shadow: 0 0 0 #000 !important;
}

.alex-neo-marker {
    background: transparent;
    border: none;
    position: relative;
}

.alex-neo-marker-label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-70%);
    background: #FBFF48;
    color: #000;
    border: 3px solid #000;
    box-shadow: 3px 3px 0 #000;
    padding: 3px 10px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.06em;
}

.alex-neo-marker-pin {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background: #FFFDF5;
    border: 3px solid #000;
    box-shadow: 5px 5px 0 #000;
    position: relative;
    animation: alex-bounce 2s ease-in-out infinite;
}

.alex-neo-marker-pin::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 9999px;
    background: #FBFF48;
    border: 2px solid #000;
}

.alex-neo-marker-pin-current {
    width: 34px;
    height: 34px;
    box-shadow: 6px 6px 0 #000;
    animation: alex-pulse 2s ease-in-out infinite;
}

@keyframes alex-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes alex-pulse {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1.08);
    }
}

.alex-popup-wrapper {
    margin: 0;
    padding: 0;
}

#experience-map-wrapper .leaflet-popup-content-wrapper {
    background: #FFFDF5;
    border-radius: 0;
    border: 4px solid #000;
    box-shadow: 7px 7px 0 #000;
    padding: 0;
}

#experience-map-wrapper .leaflet-popup-content {
    margin: 0;
}

.alex-popup-header {
    background: #FBFF48;
    border-bottom: 4px solid #000;
    padding: 8px 14px;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.alex-popup-body {
    padding: 10px 14px 12px;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    line-height: 1.5;
}

.alex-popup-body strong {
    font-size: 12px;
    font-weight: 900;
}

.alex-popup-meta {
    margin-top: 6px;
    font-size: 10px;
    color: #4b5563;
}

#experience-map-wrapper .leaflet-container a.leaflet-popup-close-button {
    font-size: 22px;
    color: #000;
    width: 32px;
    height: 32px;
    line-height: 28px;
    border-left: 4px solid #000;
    border-bottom: 4px solid #000;
    border-radius: 0;
    background: #FFFDF5;
}

#experience-map-wrapper .leaflet-container a.leaflet-popup-close-button:hover {
    background: #FBFF48;
}

.experience-geo-label {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 30;
    background: #FBFF48;
    border: 2px solid #000;
    padding: 6px 10px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    text-transform: uppercase;
    box-shadow: 3px 3px 0 #000;
}

.experience-geo-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #33FF57;
    border: 1px solid #000;
    margin-right: 6px;
}