/* The /vote page, built on the home page's hero, sections and cards */

.vote-hero {
    min-height: min(56vh, 520px);
    padding: 64px 24px 80px;
}

.vote-empty {
    margin: 0;
    color: var(--mc-muted);
}

.vote-note {
    margin: 20px 0 0;
    color: var(--mc-muted);
    font-size: 0.95rem;
}

.vote-note code {
    padding: 1px 6px;
    color: var(--am-gold-bright);
    background: var(--mc-well);
    border: 2px solid var(--mc-black);
}

/* ---- How it works ---- */

.vote-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.vote-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--mc-muted);
    background: var(--mc-well);
    border: 2px solid var(--mc-black);
    box-shadow: var(--bevel-well);
}

.vote-steps strong {
    color: var(--mc-text);
}

.vote-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 18px;
    color: #fff;
    background: var(--mc-accent);
    border: 2px solid var(--mc-black);
}

/* ---- Site tiles ---- */

.vote-sites {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 20px;
}

.vote-site {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--mc-card);
    border: 2px solid var(--mc-black);
    box-shadow: var(--bevel-panel);
    transition: background-color 0.12s ease, transform 0.12s ease;
}

.vote-site::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--am-gold-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
}

.vote-site:hover {
    background: var(--mc-raised);
    transform: translateY(-3px);
}

.vote-site:hover::after {
    transform: scaleX(1);
}

.vote-site-num {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--am-gold-light);
    background: var(--mc-well);
    border: 2px solid var(--mc-black);
    box-shadow: var(--bevel-well);
}

.vote-site-info {
    flex: 1;
    min-width: 0;
}

.vote-site-name {
    margin: 0 0 4px;
    font-size: 1.3rem;
    color: var(--mc-heading);
    overflow-wrap: anywhere;
}

.vote-site-meta {
    margin: 0;
    color: var(--mc-faint);
    font-size: 0.9rem;
}

.vote-site .ore-btn {
    flex-shrink: 0;
}

/* ---- Rewards: home cards that aren't links ---- */

.vote-reward,
.vote-reward:hover {
    background: var(--mc-card);
    transform: none;
    cursor: default;
}

.vote-reward:hover::after {
    transform: scaleX(0);
}

.vote-reward h3 {
    color: var(--am-gold-bright);
}

/* ---- Leaderboard ---- */

.vote-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vote-tab {
    padding: 8px 16px;
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--mc-muted);
    background: var(--mc-well);
    border: 2px solid var(--mc-black);
    box-shadow: var(--bevel-well);
    cursor: pointer;
}

.vote-tab:hover {
    color: var(--mc-text);
}

.vote-tab.active {
    color: #fff;
    background: var(--mc-accent);
    box-shadow: var(--bevel-panel);
}

.vote-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 16px;
    max-width: 760px;
    margin: 0 auto 24px;
}

.vote-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.vote-place-name {
    max-width: 100%;
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--mc-heading);
    overflow-wrap: anywhere;
}

.vote-place-votes {
    margin: 0 0 10px;
    color: var(--mc-muted);
    font-size: 0.95rem;
}

.vote-place-block {
    width: 100%;
    display: grid;
    place-items: start center;
    padding-top: 14px;
    font-family: var(--font-display);
    font-size: 34px;
    color: #fff;
    border: 2px solid var(--mc-black);
    box-shadow: var(--bevel-panel);
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5);
}

.vote-place-1 .vote-place-block { height: 150px; background: #9e7b45; }
.vote-place-2 .vote-place-block { height: 112px; background: #6f6b69; }
.vote-place-3 .vote-place-block { height: 84px; background: #7a5233; }
.vote-place-1 .vote-place-name { color: var(--am-gold-bright); }

.vote-place-empty .vote-place-block {
    background: var(--mc-well);
    color: var(--mc-faint);
    box-shadow: var(--bevel-well);
}

.vote-list {
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    background: var(--mc-card);
    border: 2px solid var(--mc-black);
    box-shadow: var(--bevel-panel);
}

.vote-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
}

.vote-list li:last-child {
    border-bottom: none;
}

.vote-list-rank {
    width: 32px;
    flex-shrink: 0;
    font-family: var(--font-display);
    color: var(--mc-faint);
}

.vote-list-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: var(--mc-heading);
    overflow-wrap: anywhere;
}

.vote-list-streak {
    color: var(--mc-faint);
    font-size: 0.9rem;
    white-space: nowrap;
}

.vote-list-votes {
    min-width: 72px;
    text-align: right;
    font-family: var(--font-display);
    color: var(--am-gold-light);
    white-space: nowrap;
}

#top .vote-note {
    text-align: center;
}

/* ---- Small screens ---- */

@media (max-width: 900px) {
    .vote-steps {
        grid-template-columns: 1fr;
    }

    .vote-rewards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .vote-hero {
        padding: 48px 16px 64px;
    }

    .home-main .home-section {
        padding: 48px 16px;
    }

    .vote-rewards {
        grid-template-columns: 1fr;
    }

    .vote-site {
        gap: 12px;
        padding: 16px;
    }

    .vote-site-num {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .vote-podium {
        gap: 8px;
    }

    .vote-place-name {
        font-size: 1rem;
    }

    .vote-place-block {
        font-size: 26px;
    }

    .vote-place-1 .vote-place-block { height: 112px; }
    .vote-place-2 .vote-place-block { height: 84px; }
    .vote-place-3 .vote-place-block { height: 64px; }

    .vote-list li {
        padding: 10px 12px;
        gap: 10px;
    }

    .vote-list-streak {
        display: none;
    }
}
