.hof-page {
    color: #1f2933;
}

.hof-page h1,
.hof-page h2,
.hof-vote-summary strong {
    color: #17212b;
}

.hof-page .lead {
    color: #344452;
}

.hof-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(23, 162, 184, 0.25);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(23, 162, 184, 0.12), rgba(255, 193, 7, 0.12)),
        #ffffff;
}

.hof-kicker {
    color: #0f7c8c;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hof-hero h1 {
    margin-top: 0 !important;
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 800;
    letter-spacing: 0;
}

.hof-hero-actions {
    flex: 0 0 auto;
}

.hof-vote-summary,
.hof-category,
.hof-candidate {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #ffffff;
}

.hof-vote-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
}

.hof-vote-summary span {
    display: block;
    color: #667784;
}

.hof-message {
    min-height: 2rem;
    margin-top: 0.75rem;
    font-weight: 800;
    text-align: center;
}

.hof-message.is-error {
    color: #dc3545;
}

.hof-message.is-success {
    color: #2f9e44;
}

.hof-ballot {
    display: grid;
    gap: 1.25rem;
    margin: 1rem 0 3rem;
}

.hof-category {
    overflow: hidden;
}

.hof-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(23, 162, 184, 0.06);
}

.hof-category-header > div {
    display: flex;
    gap: 0.8rem;
}

.hof-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 8px;
    background: rgba(23, 162, 184, 0.14);
    color: #17a2b8;
}

.hof-category h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.hof-category p,
.hof-candidate p {
    margin: 0;
    color: #667784;
}

.hof-category-total,
.hof-vote-count {
    color: #667784;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}

.hof-candidates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
}

.hof-candidate {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.85rem;
    min-height: 146px;
    padding: 0.75rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.hof-candidate.is-selected {
    border-color: rgba(47, 158, 68, 0.75);
    background: rgba(47, 158, 68, 0.08);
    box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.1);
}

.hof-candidate.is-updating {
    opacity: 0.72;
    pointer-events: none;
}

.hof-candidate-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 104px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    font-size: 1.6rem;
}

.hof-candidate-media img {
    width: 72px;
    height: 104px;
    object-fit: cover;
}

.hof-category[data-category="top-ygoprodeck-users"] .hof-candidate-media,
.hof-category[data-category="top-ygoprodeck-users"] .hof-candidate-media img {
    height: 72px;
    border-radius: 50%;
}

.hof-candidate-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
}

.hof-candidate-title {
    display: inline-block;
    color: #1f2933;
    font-weight: 800;
    line-height: 1.2;
}

.hof-candidate-title:hover,
.hof-candidate-title:focus {
    color: #0f7c8c;
}

.hof-candidate-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.hof-vote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 86px;
}

.hof-vote-button.is-saving {
    cursor: wait;
}

.hof-vote-closed {
    color: #667784;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

[data-bs-theme="dark"] .hof-page {
    color: #e5e7eb;
}

[data-bs-theme="dark"] .hof-page h1,
[data-bs-theme="dark"] .hof-page h2,
[data-bs-theme="dark"] .hof-vote-summary strong {
    color: #e5e7eb;
}

[data-bs-theme="dark"] .hof-page .lead {
    color: #d8dee4;
}

[data-bs-theme="dark"] .hof-hero,
[data-bs-theme="dark"] .hof-vote-summary,
[data-bs-theme="dark"] .hof-category,
[data-bs-theme="dark"] .hof-candidate {
    background: #202428;
    border-color: rgba(255, 255, 255, 0.14);
}

[data-bs-theme="dark"] .hof-category-header {
    border-bottom-color: rgba(255, 255, 255, 0.12);
    background: rgba(23, 162, 184, 0.13);
}

[data-bs-theme="dark"] .hof-vote-summary span,
[data-bs-theme="dark"] .hof-category p,
[data-bs-theme="dark"] .hof-candidate p,
[data-bs-theme="dark"] .hof-category-total,
[data-bs-theme="dark"] .hof-vote-count,
[data-bs-theme="dark"] .hof-vote-closed {
    color: #b8c2cc;
}

[data-bs-theme="dark"] .hof-candidate-title {
    color: #e5e7eb;
}

@media (max-width: 700px) {
    .hof-hero,
    .hof-vote-summary,
    .hof-category-header {
        flex-direction: column;
    }

    .hof-hero-actions,
    .hof-vote-summary .btn {
        width: 100%;
    }

    .hof-hero-actions .btn,
    .hof-vote-summary .btn {
        width: 100%;
    }

    .hof-category-header {
        align-items: flex-start;
    }

    .hof-candidates {
        grid-template-columns: 1fr;
    }
}
