.flip-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    width: 390px;
    height: 200px;
    background: #f7f7f7;
    border-radius: 20px;
    margin: 25px 0;
}

.flip-digit {
    position: relative;
    width: 72px;
    height: 140px;
    border-radius: 4px;
    background: linear-gradient(180deg, #3b3b3b 0%, #202020 100%);
    border: 3px solid #1d1d1d;
    box-shadow:
            inset 0 0 0 2px #555,
            inset 0 10px 20px rgba(255,255,255,.08),
            0 2px 3px rgba(0,0,0,.35);
    overflow: hidden;
}

.flip-digit::before,
.flip-digit::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 2;
    pointer-events: none;
}

.flip-digit::before {
    top: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.12));
}

.flip-digit::after {
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.35));
}

.flip-line {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background: #111;
    z-index: 5;
    box-shadow:
            0 -1px 0 rgba(255,255,255,.18),
            0 1px 0 rgba(0,0,0,.6);
}

.flip-hinge {
    position: absolute;
    top: 50%;
    width: 7px;
    height: 22px;
    margin-top: -11px;
    background: #252525;
    border: 1px solid #111;
    z-index: 6;
}

.flip-hinge.left {
    left: -3px;
}

.flip-hinge.right {
    right: -3px;
}

.flip-number {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: 'DDINCondensed', sans-serif;
    font-size: 125px;
    font-weight: 700;
    letter-spacing: 0;

    background: linear-gradient(
            to bottom,
            #ffffff 0%,
            #ffffff 15%,
            #e8e8e8 35%,
            #bdbdbd 60%,
            #8e8e8e 85%,
            #7a7a7a 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    filter:
            drop-shadow(0 1px 0 rgba(255,255,255,.3))
            drop-shadow(0 3px 2px rgba(0,0,0,.45));

    z-index: 4;
}

.flip-number::after {
    content: attr(data-number);

    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;

    background: linear-gradient(
            to bottom,
            rgba(255,255,255,.9) 0%,
            rgba(255,255,255,.6) 20%,
            rgba(255,255,255,0) 45%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    pointer-events: none;
}
