:root {
    --accent: #ff6b4a;
    --text: rgba(255, 122, 95, .60);
    --text: #F6A18F;
    --text-strong: rgba(255, 255, 255, .95);
    --line: rgba(255, 122, 95, .22);
    --highlight-bg: rgba(255, 255, 255, .10);
    --arrow-height: 24px;
    --arrow-width: 42px;
}

.yearpicker {
    width: 130px;
    /*height: calc(100vh - 190px);*/
    height: calc(100vh - 80px);
    position: absolute;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    user-select: none;
    z-index: 1;
    right: 15px;
    bottom: var(--main-space);
    font-family: var(--sub-2-fontfamily);
}

@media (max-width: 600px) {
    .yearpicker {
        width: 90px;
    }    
}

@media (max-width: 500px) {
    .yearpicker {
        width: 90px;
        height: calc(100vh - 240px);
        bottom: 210px;
    }
}

.yearpicker .arrow {
    position: absolute;
    left: 0;
    right: 0;
    display: grid;
    place-items: center;
    z-index: 4;
    cursor: pointer;

    color: rgba(255,255,255,.95);
    background: transparent;
    border: 0;
    padding: 0;
}

.yearpicker .arrow:hover {
    background: rgba(255,255,255,.03);
}

.yearpicker .arrow.up { top: 0; }
.yearpicker .arrow.down { bottom: 0; }

.yearpicker .arrow svg {
    width: var(--arrow-width);
    height: var(--arrow-height);
    opacity: .95;
}

.yearpicker .viewport {
    position: absolute;
    top: calc(var(--arrow-height) + var(--main-space));
    bottom: calc(var(--arrow-height) + var(--main-space));
    left: 0;
    right: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) calc(100% - 50px), rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) calc(100% - 50px), rgba(0, 0, 0, 0) 100%);
}

.yearpicker .highlight {
    position: absolute;
    left: 0;
    right: 0;
    height: 46px;
    top: calc(50% + 7px);
    transform: translateY(-50%);
    background: var(--highlight-bg);
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
    z-index: 3;
    pointer-events: none;
    border-left: 5px solid #fff;
    border-right: 5px solid #fff;
}

.yearpicker .highlight::before,
.yearpicker .highlight::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    height: 1px;
    background: rgba(255,255,255,.06);
}

.yearpicker .highlight::before { top: 0; }
.yearpicker .highlight::after { bottom: 0; }

.yearpicker .list {
    position: absolute;
    left: 0;
    right: 0;
    top: 5px;
}

.yearpicker .item {
    height: 46px;
    display: grid;
    place-items: center;
    font-size: 26px;
    letter-spacing: 2px;
    color: var(--text);
    text-shadow: 0 10px 24px rgba(0,0,0,.45);
    cursor: pointer;
}

.yearpicker .item:hover {
    color: rgba(255, 122, 95, .82);
}

.yearpicker .item.is-selected {
    color: var(--text-strong);
    font-weight: 700;
    text-shadow: 0 10px 28px rgba(0,0,0,.55);
}
