/* Yes or No pages. Builds on common/site.css; --c1 is the game's green (yes), --c2 its red (no). */

/* --- Result bars: green for yes, red for no ------------------------------------- */

.bar--yes .bar__fill {
    background: linear-gradient(90deg, #558b2f, #9ccc65);
}

.bar--no .bar__fill {
    background: linear-gradient(90deg, #b71c1c, #ef5350);
}

/* --- Voting ---------------------------------------------------------------------- */

.vote {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.vote__button {
    padding: 26px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    color: #fff;
    font: inherit;
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.3s ease, filter 0.3s ease;
    animation: pop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
    animation-delay: calc(260ms + var(--i, 0) * 110ms);
}

.vote__button--yes {
    background: linear-gradient(135deg, #9ccc65, #558b2f);
    box-shadow: 0 16px 40px -18px #8bc34a;
}

.vote__button--no {
    background: linear-gradient(135deg, #ef5350, #b71c1c);
    box-shadow: 0 16px 40px -18px #e53935;
}

.vote__button:hover,
.vote__button:focus-visible {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.7);
    outline: none;
}

.is-voted .vote__button {
    cursor: default;
    pointer-events: none;
    transform: none;
}

.is-voted .vote__button:not(.is-chosen) {
    opacity: 0.35;
    filter: saturate(0.4);
}

.is-voted .vote__button.is-chosen {
    border-color: #fff;
    animation: celebrate 0.6s ease;
}

/* --- Board invitation ------------------------------------------------------------ */

.board-code {
    display: inline-block;
    margin: 26px 0 6px;
    padding: 16px 34px;
    border: 1px solid var(--glass-line);
    border-radius: 999px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    text-align: center;
    animation: glow 3s ease-in-out infinite;
}

.board-code small {
    display: block;
    color: var(--ink-soft);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.board-code strong {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    letter-spacing: 0.18em;
    font-variant-numeric: tabular-nums;
}

@keyframes glow {
    50% { box-shadow: 0 0 44px -6px var(--c1); }
}

.notice {
    margin-top: 22px;
    padding: 14px 18px;
    border: 1px solid var(--bad);
    border-radius: var(--radius);
    background: rgba(255, 84, 112, 0.14);
}

@media (max-width: 720px) {
    .vote__button {
        padding: 20px 10px;
    }
}
