﻿.vote-card-wrap {
    position: absolute;
    top: 84px;
    right: 20px;
    width: 300px;
    z-index: 5;
}

.vote-card,
.vote-modal {
    background: #1a1a1e;
    border: 1px solid #2a2a2e;
    border-radius: 14px;
    padding: 16px;
    color: #eee;
    font-family: system-ui, sans-serif;
}

.vote-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
}

.vote-sub {
    margin: 0 0 12px;
    font-size: 0.78rem;
    color: #888;
    line-height: 1.4;
}

.vote-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vote-opt {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 5px;
    width: 100%;
    text-align: left;
    background: #14141a;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 8px 12px;
    color: #ddd;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.vote-opt:hover:not(:disabled) {
    border-color: #43b581;
}

.vote-opt:disabled {
    cursor: default;
}

.vote-opt:focus-visible,
.vote-pill-main:focus-visible,
.vote-pill-x:focus-visible,
.vote-close:focus-visible,
.vote-login:focus-visible {
    outline: 2px solid #43b581;
    outline-offset: 2px;
}

.vote-opt.mine {
    border-color: #43b581;
    background: rgba(67, 181, 129, 0.08);
}

.vote-mine-tag {
    margin-left: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #43b581;
}

.vote-pct {
    font-weight: 700;
    color: rgb(222, 156, 47);
}

.vote-bar {
    grid-column: 1 / -1;
    display: block;
    height: 4px;
    background: #26262b;
    border-radius: 2px;
    overflow: hidden;
}

.vote-fill {
    display: block;
    height: 100%;
    background: #43b581;
    border-radius: 2px;
}

.vote-status {
    margin: 10px 0 0;
    min-height: 1.2em;
    font-size: 0.78rem;
    color: #43b581;
}

.vote-cta {
    margin-top: 6px;
}

.vote-login {
    display: block;
    text-align: center;
    background: #5865F2;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 10px;
}

.vote-login:hover {
    background: #4752c4;
}

.vote-note {
    margin: 8px 0 0;
    font-size: 0.74rem;
    color: #777;
    text-align: center;
    line-height: 1.4;
}

.vote-pill {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 41;
    display: flex;
    align-items: center;
    background: #1a1a1e;
    border: 1px solid #2a2a2e;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-family: system-ui, sans-serif;
}

.vote-pill-main {
    background: none;
    border: 0;
    color: #43b581;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 9px 6px 9px 16px;
    cursor: pointer;
}

.vote-pill-main:hover {
    color: #6fd3a4;
}

.vote-pill-x {
    background: none;
    border: 0;
    color: #777;
    font-size: 1rem;
    line-height: 1;
    padding: 9px 12px 9px 6px;
    cursor: pointer;
}

.vote-pill-x:hover {
    color: #eee;
}

.vote-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    padding: 20px;
}

.vote-overlay.open {
    display: flex;
}

.vote-modal {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 22px 20px 20px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

.vote-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: 0;
    color: #888;
    font-size: 1.4rem;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
}

.vote-close:hover {
    color: #eee;
}

@media (max-width: 1180px) {
    .vote-card-wrap {
        position: static;
        width: min(100% - 40px, 420px);
        margin: 0 auto 16px;
    }
}

@media (max-width: 640px) {
    .vote-pill {
        right: 10px;
        bottom: 84px;
    }
}
