.onvote-card{
    display:block;
    position:relative;
    background:#fff;
    border-radius:18px;
    padding:0;
    min-height:0;
    color:inherit;
    box-shadow:0 8px 25px rgba(0,0,0,.07);
    overflow:hidden;
    transition:.25s;
}

.onvote-card:active{
    transform:scale(.98);
}

.onvote-window{
    position:relative;
    width:100%;
    height:117.5px;
    overflow:hidden;
    border-radius:18px;
}

.onvote-track{
    position:relative;
    z-index:1;
    display:flex;
    width:100%;
    height:117.5px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
}

.onvote-track::-webkit-scrollbar{
    display:none;
}

.onvote-slider{
    flex:0 0 100%;
    width:100%;
    min-width:100%;
    height:117.5px;
    box-sizing:border-box;
    position:relative;
    padding:14px;
    border-radius:18px;

    background:
        linear-gradient(
            135deg,
            color-mix(
                in srgb,
                var(--app-color) 75%,
                white
            ),
            color-mix(
                in srgb,
                var(--app-color) 55%,
                white
            ) 55%,
            color-mix(
                in srgb,
                var(--app-color) 35%,
                white
            )
        );

    box-shadow:0 8px 25px rgba(0,0,0,.07);
    overflow:hidden;
    scroll-snap-align:start;

    transition:
        background .35s ease,
        transform .2s ease;
}

.onvote-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.onvote-ending{
    padding:5px 10px;
    border-radius:999px;
    background:rgba(255,255,255,.75);
    font-size:12px;
    font-weight:600;
    color:#111;
    display:flex;
    align-items:center;
    gap:8px;
}

/* =========================
   OVERLAY DI ATAS CARD
========================= */

.onvote-indicator{
    position:absolute;
    top:12px;
    right:12px;
    z-index:999;
    padding:5px 9px;
    border-radius:999px;
    background:rgba(0,0,0,.55);
    color:#fff;
    font-size:11px;
    font-weight:600;
    line-height:1;
    pointer-events:none;
}

.onvote-title{
    margin-top:8px;
    font-size:15px;
    font-weight:700;
    line-height:1.3;
    color:#fff;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.onvote-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:10px;
}

.onvote-logo{
    width:25px;
    height:25px;
    object-fit:contain;
    border-radius:6px;
}

.onvote-now{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 13px;
    border-radius:12px;
    background:rgba(255,255,255,.75);
    color:#294746;
    font-size:11px;
    font-weight:700;
    text-decoration:none;
    transition:.2s;
}

.onvote-now:active{
    transform:scale(.96);
}

.onvote-loading{
    position:absolute;
    inset:0;
    z-index:2;

    width:100%;
    height:117.5px;
    box-sizing:border-box;

    display:flex;
    flex-direction:column;
    gap:10px;
}

.onvote-skeleton{
    height:10px;
    border-radius:8px;

    background:linear-gradient(
        90deg,
        #f1f1f1 25%,
        #e7e7e7 50%,
        #f1f1f1 75%
    );

    background-size:200% 100%;
    animation:skeleton 1.2s linear infinite;
}

.onvote-skeleton.short{
    width:80px;
}

.onvote-skeleton.medium{
    width:140px;
}

.onvote-skeleton.long{
    width:75%;
    height:16px;
}

@keyframes skeleton{
    from{
        background-position:200% 0;
    }

    to{
        background-position:-200% 0;
    }
}