/* Home page shortcuts into the active translation and playlist ballots. */
.home-voting-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0 28px;
    direction: rtl;
}

.home-voting-card {
    --vote-accent: #c58af0;
    --vote-glow: rgba(145, 70, 197, .2);
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    min-height: 158px;
    overflow: hidden;
    padding: 20px 22px;
    border: 1px solid rgba(155, 93, 207, .35);
    border-radius: 16px;
    background: linear-gradient(132deg, rgba(39, 24, 56, .94), rgba(15, 19, 27, .98) 72%);
    color: #f5f3f7;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.home-voting-card--translation {
    --vote-accent: #c58af0;
    --vote-glow: rgba(145, 70, 197, .22);
}

.home-voting-card--music {
    --vote-accent: #8cd9ef;
    --vote-glow: rgba(39, 151, 191, .2);
    border-color: rgba(63, 156, 184, .34);
    background: linear-gradient(132deg, rgba(18, 42, 54, .9), rgba(15, 19, 27, .98) 72%);
}

.home-voting-card::before {
    position: absolute;
    z-index: -1;
    inset: -70px auto auto -55px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--vote-glow), transparent 70%);
    content: "";
    pointer-events: none;
}

.home-voting-card:hover,
.home-voting-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--vote-accent);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .25), 0 0 22px var(--vote-glow);
    color: #fff;
}

.home-voting-card:focus-visible {
    outline: 2px solid var(--vote-accent);
    outline-offset: 3px;
}

.home-voting-card__icon {
    z-index: 1;
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--vote-accent) 38%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--vote-accent) 12%, #10151b);
    color: var(--vote-accent);
    font-size: 21px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 7px 18px rgba(0, 0, 0, .18);
}

.home-voting-card__content {
    z-index: 1;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.home-voting-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--vote-accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
}

.home-voting-card__dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.home-voting-card__title {
    display: block;
    margin-top: 5px;
    color: #f8f6fa;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.65;
}

.home-voting-card__description {
    display: block;
    margin-top: 3px;
    color: #aab1bd;
    font-size: 12px;
    line-height: 1.9;
}

.home-voting-card__action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 11px;
    color: var(--vote-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}

.home-voting-card__action i {
    transition: transform .2s ease;
}

.home-voting-card:hover .home-voting-card__action i,
.home-voting-card:focus-visible .home-voting-card__action i {
    transform: translateX(-3px);
}

.home-voting-card__watermark {
    position: absolute;
    z-index: 0;
    left: 18px;
    bottom: -27px;
    color: var(--vote-accent);
    font-size: 92px;
    opacity: .045;
    transform: rotate(-12deg);
    pointer-events: none;
}

@media (max-width: 1050px) {
    .home-voting-cards {
        gap: 10px;
    }

    .home-voting-card {
        min-height: 140px;
        gap: 10px;
        padding: 16px 14px;
    }

    .home-voting-card__icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        border-radius: 13px;
        font-size: 18px;
    }

    .home-voting-card__title {
        font-size: 16px;
    }

    .home-voting-card__description,
    .home-voting-card__action {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .home-voting-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 12px 0 22px;
    }

    .home-voting-card {
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
        min-height: 190px;
        padding: 11px;
        border-radius: 13px;
    }

    .home-voting-card__icon {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 16px;
    }

    .home-voting-card__eyebrow {
        font-size: 9px;
    }

    .home-voting-card__title {
        margin-top: 4px;
        font-size: 13px;
        line-height: 1.55;
    }

    .home-voting-card__description {
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.65;
    }

    .home-voting-card__action {
        gap: 5px;
        margin-top: 7px;
        font-size: 10px;
    }

    .home-voting-card__watermark {
        left: 5px;
        bottom: -28px;
        font-size: 68px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-voting-card,
    .home-voting-card__action i {
        transition: none;
    }
}
