/* Warm, lively public-leaderboard theme shared by every HeadToHead surface. */
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/poppins-400-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/poppins-500-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/poppins-600-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/poppins-700-latin.woff2") format("woff2");
}

:root {
    color-scheme: light;
    --paper: #fbf8f3;
    --paper-strong: #f5f0e9;
    --surface: #fffdfa;
    --ink: #22211f;
    --ink-soft: #4f4b47;
    --quiet: #827b75;
    --line: #dfd9d2;
    --accent: #ea765f;
    --accent-dark: #cf5944;
    --accent-soft: #f4b1a3;
    --accent-pale: #fff0eb;
    --rank-blue: #3164f4;
    --rank-blue-pale: #f0f4ff;
    --rank-teal: #078b74;
    --rank-teal-pale: #eefaf6;
    --rank-charcoal: #22211f;
    --soft-shadow: 0 18px 50px rgba(52, 43, 36, .08);
    --lift-shadow: 0 22px 55px rgba(52, 43, 36, .13);
    --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Map the existing design tokens onto the new palette. */
    --field: var(--paper);
    --field-deep: var(--accent-dark);
    --void: var(--ink);
    --card: var(--surface);
    --card-hi: var(--paper-strong);
    --money: var(--accent);
    --money-deep: var(--accent-dark);
    --cement: var(--line);
    --bone: var(--ink);
    --mute: var(--quiet);
    --hot: var(--accent);
    --hot-deep: var(--accent-dark);
    --navy: var(--ink);
    --navy-hi: var(--paper-strong);
    --lime: var(--accent);
    --cream: var(--ink);
    --muted: var(--quiet);
    --coral: var(--accent);
    --edge: rgba(53, 47, 42, .14);
}

html,
body {
    color-scheme: light;
    background: var(--paper);
    color: var(--ink);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background-image:
        radial-gradient(circle at 12% 4%, rgba(234, 118, 95, .07), transparent 24rem),
        radial-gradient(circle at 88% 18%, rgba(49, 100, 244, .045), transparent 26rem);
    background-attachment: fixed;
}

::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline-color: var(--accent); }

/* Header and wordmark */
.home-header,
.site-header {
    width: 100%;
    min-height: 64px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 6px 0 18px;
    border: 0;
}

.brand,
.shared-brand {
    width: auto;
    max-width: none;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--ink);
    text-decoration: none;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 11px;
    background: var(--ink);
    color: var(--surface);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: -.04em;
    transform: rotate(-3deg);
    box-shadow: inset 0 -3px 0 rgba(234, 118, 95, .8);
}

.brand-word {
    color: var(--ink);
    font-size: clamp(1.18rem, 2vw, 1.42rem);
    font-weight: 600;
    letter-spacing: -.055em;
    line-height: 1;
    white-space: nowrap;
}

.brand-word > span { color: var(--accent); }

.mode-tabs {
    width: max-content;
    max-width: 100%;
    display: flex;
    gap: 4px;
    margin: 0 0 0 auto;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 250, .84);
    box-shadow: 0 8px 24px rgba(52, 43, 36, .045);
}

.mode-tab {
    min-width: 86px;
    min-height: 35px;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: .82rem;
    font-weight: 500;
}

.mode-tab:last-child { border: 0; }
.mode-tab:hover:not(.active):not([aria-current="page"]) { background: var(--accent-pale); color: var(--accent-dark); }
.mode-tab.active,
.mode-tab[aria-current="page"] { background: var(--accent); color: #fff; font-weight: 600; }

/* Homepage hierarchy */
.stage,
.site-shell { max-width: 1180px; }

.stage { padding-top: 12px; }

.hero {
    max-width: 820px;
    margin: clamp(22px, 3vw, 36px) auto 14px;
    text-align: center;
}

.hero h1 {
    color: var(--ink);
    font-size: clamp(2.5rem, 4.8vw, 4rem);
    line-height: .94;
    letter-spacing: -.065em;
    font-weight: 600;
}

.hero h1 em { color: var(--accent); }
.hero p { max-width: 620px; margin: 12px auto 0; color: var(--ink-soft); font-size: clamp(.94rem, 1.4vw, 1.05rem); }

.claim-wrap {
    width: auto;
    margin: 0 0 clamp(32px, 4vw, 46px);
    padding: 0;
    background: transparent;
}

.claim-wrap.is-stuck {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 10px 16px;
    background: rgba(251, 248, 243, .94);
    box-shadow: 0 10px 30px rgba(52, 43, 36, .08);
    backdrop-filter: blur(12px);
}

.claim-cta,
.primary-cta,
.create-submit,
.archive-search button,
.btn-throne {
    border: 0;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(207, 89, 68, .12);
}

.claim-cta { min-width: 220px; padding: 14px 26px; }
.claim-cta::after { display: none; }
.claim-cta {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 10px 28px rgba(34, 33, 31, .16);
    font-weight: 600;
}
.claim-cta:hover,
.primary-cta:hover,
.create-submit:hover,
.archive-search button:hover,
.btn-throne:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.eyebrow {
    gap: 12px;
    margin-bottom: 16px;
    color: var(--quiet);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .1em;
}

.eyebrow::after { background: var(--line); }

/* Featured fight: two ranked, tinted cards inside one generous surface. */
.fight,
.battle-page .battle-arena,
.battle-arena {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--soft-shadow);
}

.fight { padding: 18px 20px 20px; }
.fight-head { margin-bottom: 14px; }
.crown-tag,
.battle-page .arena-kicker,
.arena-kicker {
    border: 0;
    border-radius: 999px;
    background: var(--accent-pale);
    color: var(--accent-dark);
    padding: 7px 11px;
    font-size: .62rem;
}

.featured-timer {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--quiet);
}

.fight-grid,
.battle-page .arena-grid,
.arena-grid {
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.fight-grid::before,
.battle-page .arena-grid::before,
.battle-arena::before { display: none; }

.fight-side,
.battle-page .fighter,
.battle-arena .fighter {
    border: 1.5px solid rgba(49, 100, 244, .45);
    border-radius: 22px;
    background: var(--rank-blue-pale);
    padding: 24px 18px 20px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.fight-side:last-child,
.battle-page .fighter-b,
.battle-arena .fighter-b {
    border-color: rgba(7, 139, 116, .42);
    background: var(--rank-teal-pale);
}

.fight-side:hover,
.battle-arena .fighter:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(52, 43, 36, .08); }

.fight-avatar,
.battle-page .fighter-avatar,
.fighter-avatar {
    width: 66px;
    height: 66px;
    margin-bottom: 12px;
    border: 0;
    border-radius: 18px;
    background: var(--rank-blue);
    color: #fff;
    box-shadow: 0 12px 30px rgba(49, 100, 244, .18);
}

.fight-side:last-child .fight-avatar,
.battle-page .fighter-b .fighter-avatar,
.fighter-b .fighter-avatar { background: var(--rank-teal); box-shadow: 0 12px 30px rgba(7, 139, 116, .18); }

.fight-avatar img,
.battle-page .fighter-avatar img,
.fighter-avatar img { border-radius: 16px; background: transparent; }

.fight-name,
.battle-page .fighter h2,
.fighter h2 { color: var(--ink); line-height: 1; }

.fight-description,
.battle-page .fighter-description,
.fighter-description { color: var(--quiet); }

.fight-pick,
.battle-page .vote-button,
.vote-button {
    border: 0;
    border-radius: 999px;
    background: var(--rank-blue);
    color: #fff;
    box-shadow: none;
}

.fight-side:last-child .fight-pick,
.battle-page .vote-b,
.vote-b { background: var(--rank-teal); color: #fff; }

.fight.is-voted .fight-side.your-pick .fight-pick,
.battle-page .battle-arena.is-voted .fighter-a.your-pick .vote-button {
    background: var(--rank-blue);
    color: #fff;
}
.fight.is-voted .fight-side:last-child.your-pick .fight-pick,
.battle-page .battle-arena.is-voted .fighter-b.your-pick .vote-button {
    background: var(--rank-teal);
    color: #fff;
}

.fight-pick:hover:not(:disabled),
.battle-page .vote-button:hover:not(:disabled),
.vote-button:hover:not(:disabled) { filter: brightness(.94); transform: translateY(-2px); }

.versus-sticker {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-7deg);
    transform-origin: center;
}
.battle-page .fighter-result { color: var(--ink); }
.battle-page .fighter-result strong,
.battle-page .fighter-result span { color: var(--ink); }
.battle-page .fighter-result,
.battle-page .fighter-a .fighter-result,
.battle-page .fighter-b .fighter-result {
    position: static;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    margin: 6px 0 12px;
    transform: none;
}
.battle-page .fighter-result strong { font-size: 1.2rem; line-height: 1; letter-spacing: -.04em; }
.battle-page .fighter-result span { font-size: .52rem; letter-spacing: .06em; }
.fight-prompt { color: var(--quiet); }

.battle-insights-trigger,
.fight .battle-insights-trigger {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
}

/* Voter Insights uses the same warm surface, rounded cards, and contender accents. */
.vote-insights-backdrop {
    background: rgba(34, 33, 31, .48);
    backdrop-filter: blur(8px);
}
.vote-insights-dialog {
    width: min(100%, 620px);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 30px 90px rgba(52, 43, 36, .24);
    font-family: var(--font-body);
}
.vote-insights-close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper-strong);
    color: var(--ink);
    font-size: 1.35rem;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.vote-insights-close:hover { border-color: var(--accent); background: var(--accent); color: #fff; transform: rotate(4deg); }
.vote-insights-kicker {
    margin: 0 48px 7px 0;
    color: var(--accent-dark);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
}
.vote-insights-dialog h2 {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.45rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.045em;
}
.vote-insights-matchup { margin: 10px 0 22px; color: var(--quiet); }
.vote-insights-scores { gap: 12px; }
.vote-insight-score {
    padding: 15px;
    border: 1px solid rgba(49, 100, 244, .38);
    border-radius: 18px;
    background: var(--rank-blue-pale);
}
.vote-insight-score:nth-child(even) { border-color: rgba(7, 139, 116, .34); background: var(--rank-teal-pale); }
.vote-insight-score h3 { color: var(--ink); font-weight: 600; }
.vote-insight-score-identity > div > span { color: var(--quiet); font-weight: 500; }
.vote-insight-score-value { color: var(--rank-blue); font-weight: 600; }
.vote-insight-score:nth-child(even) .vote-insight-score-value { color: var(--rank-teal); }
.vote-insight-avatar {
    border: 0;
    border-radius: 12px;
    background: var(--rank-blue);
    color: #fff;
    font-weight: 600;
}
.vote-insight-score:nth-child(even) .vote-insight-avatar { background: var(--rank-teal); }
.vote-insight-avatar img { border-radius: 10px; background: transparent; }
.vote-insight-avatar.has-logo { background: transparent !important; box-shadow: none; }
.vote-insight-meter { height: 6px; border-radius: 999px; background: rgba(49, 100, 244, .12); }
.vote-insight-meter span { border-radius: inherit; background: var(--rank-blue); }
.vote-insight-score:nth-child(even) .vote-insight-meter { background: rgba(7, 139, 116, .12); }
.vote-insight-score:nth-child(even) .vote-insight-meter span { background: var(--rank-teal); }
.vote-insights-reasons { margin-top: 22px; }
.vote-insights-reasons > h3 { margin-bottom: 10px; color: var(--quiet); font-size: .7rem; font-weight: 600; letter-spacing: .1em; }
.vote-insight-reason {
    gap: 12px;
    margin-bottom: 9px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper-strong);
}
.vote-insight-reason h4 { color: var(--ink); font-weight: 600; }
.vote-insight-reason-meta strong { color: var(--accent-dark); font-weight: 600; }
.vote-insight-reason p { color: var(--ink-soft); }
.vote-insights-note { color: var(--quiet); }

/* The live list borrows outbid's light, rounded leaderboard rhythm. */
.chase { gap: 12px; }
.row,
.row-fight {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 253, 250, .9);
    color: var(--ink);
    box-shadow: 0 8px 30px rgba(52, 43, 36, .045);
}
.row-name { color: var(--ink); }
.row-description,
.row-choice-description,
.row-clicks { color: var(--quiet); }

.row-contender-info {
    border: 1px solid rgba(49, 100, 244, .22);
    border-radius: 14px;
    background: var(--rank-blue-pale);
    color: var(--ink);
}

.row-contender.b .row-contender-info { border-color: rgba(7, 139, 116, .22); background: var(--rank-teal-pale); }
.row-contender-link:hover { border-color: rgba(234, 118, 95, .6); background: var(--accent-pale); }
.row-contender-info .row-avatar,
.row-avatar {
    border: 0;
    border-radius: 12px;
    background: var(--rank-blue);
    color: #fff;
}
.row-contender.b .row-avatar,
.row-avatar.b { background: var(--rank-teal); color: #fff; }
.row-avatar img { border-radius: 10px; }

.row-pick,
.btn-outbid {
    min-height: 34px;
    border-radius: 999px;
    border-color: var(--rank-blue);
    background: var(--rank-blue);
    color: #fff;
}
.row-contender.b .row-pick { border-color: var(--rank-teal); background: var(--rank-teal); }
.row-pick:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(.96); }
.row-vote-tally > span {
    border: 1px solid rgba(49, 100, 244, .24);
    border-radius: 999px;
    background: var(--rank-blue-pale);
    color: var(--rank-blue);
}
.row-vote-tally > .tally-b {
    border-color: rgba(7, 139, 116, .24);
    background: var(--rank-teal-pale);
    color: var(--rank-teal);
}
.row-vote-tally strong { color: inherit; }
.featured-vote-tally {
    width: 100%;
    min-width: 0;
    align-self: center;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0 auto 12px;
    padding: 0;
    border: 0;
    background: transparent;
}
.featured-vote-tally::before { display: none; }
.featured-vote-tally > span { display: flex; flex-direction: row; gap: 4px; }
.featured-vote-tally strong { font-size: .9rem; letter-spacing: -.03em; }
.featured-vote-tally small { color: var(--quiet); font-size: .5rem; }
.featured-vote-tally b { color: var(--quiet); }

.battle-insights-trigger,
.fight .battle-insights-trigger,
.row-fight .battle-insights-trigger {
    border-color: var(--line);
    background: var(--paper-strong);
    color: var(--quiet);
}
.insights-rating i { color: var(--accent); }
.insights-reason i { color: var(--rank-teal); }
.metric-orange-icon { font-size: .82rem; line-height: 1; }
.metric-review-icon {
    font-size: .82rem;
    line-height: 1;
}

.featured-center {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}
.featured-center .featured-vote-tally {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 190px;
    display: grid;
    grid-template-columns: 1fr 58px 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
    transform: translate(-50%, -50%);
    border: 0;
    background: transparent;
}
.featured-center .featured-vote-tally > .tally-a,
.featured-center .featured-vote-tally > .tally-b {
    flex-direction: column;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
}
.featured-center .featured-vote-tally > .tally-a { grid-column: 1; align-items: flex-end; text-align: right; }
.featured-center .featured-vote-tally > .tally-b { grid-column: 3; align-items: flex-start; text-align: left; }
.featured-center .featured-vote-tally strong { font-size: 1.35rem; line-height: .82; letter-spacing: -.06em; }
.featured-center .featured-vote-tally small { color: var(--quiet); font-size: .44rem; }
.featured-center .featured-vote-tally b { display: none; }
.featured-center .battle-insights-trigger {
    position: absolute;
    top: calc(50% + 40px);
    left: 50%;
    z-index: 7;
    min-height: 28px;
    margin: 0;
    padding: 5px 9px;
    transform: translateX(-50%);
    pointer-events: auto;
}
.featured-center + .versus-sticker { z-index: 6; }

@media (min-width: 761px) {
    .chase {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .chase > li { min-width: 0; }

    .featured-vote-tally {
        width: 156px;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
    .featured-vote-tally > .tally-a,
    .featured-vote-tally > .tally-b {
        flex-direction: column;
        gap: 3px;
        border: 0;
        background: transparent;
        color: var(--accent);
        padding: 0;
    }
    .featured-vote-tally strong { font-size: 1.75rem; line-height: .82; letter-spacing: -.07em; }
    .featured-vote-tally small { font-size: .48rem; }
    .featured-vote-tally > .tally-a,
    .row-fight .row-vote-tally > .tally-a {
        align-items: flex-end;
        text-align: right;
    }
    .featured-vote-tally > .tally-b,
    .row-fight .row-vote-tally > .tally-b {
        align-items: flex-start;
        text-align: left;
    }
    .featured-vote-tally b {
        position: relative;
        top: auto;
        left: auto;
        padding: 0 4px;
        transform: translateY(-6px);
        background: var(--surface);
        color: var(--accent);
        font-size: 1rem;
    }

    .row-fight { grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); }
    .row-fight .row-mobile-head {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 7px;
    }
    .row-fight .row-contender.a { grid-column: 1; grid-row: 1; }
    .row-fight .row-vote-tally {
        grid-column: auto;
        grid-row: auto;
        width: auto;
        grid-template-columns: 1fr auto 1fr;
        gap: 4px;
    }
    .row-fight .row-vote-tally > span {
        flex-direction: column;
        gap: 3px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--accent);
    }
    .row-fight .row-vote-tally strong { font-size: 1.75rem; line-height: .82; letter-spacing: -.07em; }
    .row-fight .row-vote-tally small { font-size: .48rem; }
    .row-fight .row-vote-tally b {
        position: relative;
        top: auto;
        left: auto;
        padding: 0 4px;
        transform: translateY(-6px);
        background: var(--surface);
        color: var(--accent);
        font-size: 1rem;
    }
    .row-fight .row-contender.b { grid-column: 3; grid-row: 1; }
    .row-fight .row-mobile-head .battle-insights-trigger {
        align-self: center;
        min-height: 28px;
        margin: 0;
        padding: 5px 8px;
    }
    .featured-center .featured-vote-tally {
        width: 220px;
        grid-template-columns: 1fr 72px 1fr;
    }
    .featured-center .featured-vote-tally strong { font-size: 1.75rem; }
    .featured-center .featured-vote-tally small { font-size: .48rem; }

    .chase .row-fight {
        height: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
    .chase .row-fight .row-mobile-head { display: none; }
    .chase .row-fight .row-contender { display: contents; }
    .chase .row-fight .row-contender.a .row-contender-info { grid-column: 1; grid-row: 1; }
    .chase .row-fight .row-contender.b .row-contender-info { grid-column: 2; grid-row: 1; }
    .chase .row-fight .row-contender .row-contender-info {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 7px;
        padding: 11px 7px 52px;
        text-align: center;
    }
    .chase .row-fight .row-contender.a .row-actions { grid-column: 1; grid-row: 2; }
    .chase .row-fight .row-contender.b .row-actions { grid-column: 2; grid-row: 2; }
    .chase .row-fight .row-pick { width: 100%; min-height: 34px; }
    .chase .row-mobile-summary {
        position: relative;
        z-index: 2;
        grid-column: 1 / -1;
        grid-row: 1;
        align-self: end;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
        margin: 0 14px 8px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--surface);
        color: var(--ink);
        font-family: var(--font-display);
        font-size: .8125rem;
        font-weight: 800;
        line-height: 1;
        pointer-events: none;
    }
    .chase .row-mobile-summary-votes {
        min-width: 0;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 3px 4px;
        white-space: nowrap;
    }
    .chase .row-mobile-summary-votes.a {
        padding-right: 22px;
        border-radius: 999px 0 0 999px;
        background: #ffe7da;
        color: #923c29;
    }
    .chase .row-mobile-summary-votes.b {
        padding-left: 22px;
        border-left: 1px solid var(--line);
        border-radius: 0 999px 999px 0;
        background: #fff2b8;
        color: #6b5700;
    }
    .chase .row-mobile-summary-activity {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 1;
        min-height: 32px;
        max-width: 48%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 3px 8px;
        transform: translate(-50%, -50%);
        overflow: hidden;
        border: 0;
        border-right: 1px solid var(--line);
        border-left: 1px solid var(--line);
        background: var(--surface);
        color: var(--ink-soft);
        font: inherit;
        white-space: nowrap;
        text-overflow: ellipsis;
        pointer-events: auto;
        cursor: pointer;
    }
    .chase .row-mobile-summary-activity:hover { background: var(--paper-strong); }
    .chase .row-mobile-summary-activity:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: -2px;
    }
    .chase .row-mobile-summary-activity.is-empty { cursor: default; }
    .chase .row-fight .row-contender-info .row-avatar {
        grid-column: auto;
        grid-row: auto;
        order: -1;
    }
    .chase .row-fight .row-choice-copy {
        width: 100%;
        align-items: center;
    }
    .chase .row-choice-copy strong {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

.home-pagination,
.archive-pagination {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--ink);
}
.home-pagination a,
.archive-pagination a { color: var(--accent-dark); }
.empty,
.empty-state { border-color: var(--line); border-radius: 20px; background: rgba(255, 253, 250, .7); color: var(--quiet); }
.empty-state strong { color: var(--ink); }

/* Dialogs and fields */
.modal-backdrop { background: rgba(34, 33, 31, .44); backdrop-filter: blur(6px); }
.modal-panel {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 30px 90px rgba(52, 43, 36, .24);
}
.modal-title { color: var(--ink); }
.modal-close {
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper-strong);
    color: var(--ink);
}
.modal-close:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.compose {
    border: 0;
    border-radius: 22px;
    background: var(--paper-strong);
    color: var(--ink);
}
.c-field,
.competitor-form input,
.competitor-form textarea,
.admin-login input,
.archive-search input {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    color: var(--ink);
}
.c-field:focus,
.competitor-form input:focus,
.competitor-form textarea:focus,
.admin-login input:focus,
.archive-search input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(234, 118, 95, .1); }
.c-image-picker { border-color: var(--line); border-radius: 14px; background: var(--surface); }
.c-image-preview { border-radius: 14px; background: var(--ink); color: #fff; }
.entity-suggestions,
.archive-search-suggestions {
    border-color: var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--lift-shadow);
}
.entity-suggestion,
.archive-search-suggestion { border-color: var(--line); background: var(--surface); color: var(--ink); }
.entity-suggestion:hover,
.entity-suggestion.is-active,
.archive-search-suggestion:hover,
.archive-search-suggestion.is-active { background: var(--accent-pale); }
.entity-suggestion-copy strong,
.archive-search-summary strong { color: var(--ink); }

/* Shared secondary pages */
.site-shell { padding-top: 12px; }
.form-hero,
.listing-hero,
.battle-page .battle-page-title { max-width: 850px; padding-top: clamp(38px, 6vw, 72px); }
.home-intro h1,
.form-hero h1,
.listing-hero h1,
.not-found h1,
.battle-page .battle-page-title h1,
.entity-hero h1,
.admin-heading h1 { color: var(--ink); letter-spacing: -.055em; }
.form-hero h1 span,
.home-intro h1 span,
.battle-page .battle-page-title h1 span { color: var(--accent); }
.home-intro p:last-child,
.form-hero > p:last-child,
.listing-hero > p:last-child,
.entity-hero div > p:last-of-type,
.not-found > p:not(.eyebrow) { color: var(--quiet); opacity: 1; }
.text-cta,
.section-heading > a,
.breadcrumbs a,
.entity-hero a,
.entity-heading a,
.entity-site { color: var(--accent-dark); }

.competitor-form,
.battle-card,
.entity-recent-battles .battle-card,
.bell-battles .battle-card,
.admin-login,
.admin-list article,
.leaderboard,
.battle-stats,
.fighter-notes article,
.battle-page .fighter-notes article,
.battle-feedback,
.battle-page .battle-feedback,
.share-panel,
.battle-page .share-panel {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 8px 30px rgba(52, 43, 36, .045);
}

.create-matchup { gap: 12px; }
.competitor-form { border-top: 3px solid var(--rank-blue); }
.competitor-b-form { border-top-color: var(--rank-teal); }
.create-vs { border-color: var(--line); background: var(--surface); color: var(--accent); }
.form-fineprint,
.leaderboard-note,
.admin-login > p:not(.eyebrow),
.admin-list p { color: var(--quiet); }

.battle-card:hover { border-color: var(--accent); box-shadow: var(--lift-shadow); }
.battle-card-topline,
.battle-card p,
.mini-vs,
.entity-recent-battles .battle-card-topline,
.entity-recent-battles .mini-vs,
.entity-recent-battles .battle-card p,
.bell-battles .battle-card-topline,
.bell-battles .mini-vs { color: var(--quiet); }
.mini-avatar,
.rank-entity i { border-color: var(--line); border-radius: 11px; background: var(--paper-strong); }
.mini-side-a b { color: var(--rank-blue); }
.mini-side-b b { color: var(--rank-teal); }
.mini-bar { border-radius: 999px; background: var(--rank-teal); }
.mini-bar span { background: var(--rank-blue); }

.leaderboard { overflow: hidden; }
.leaderboard-head { color: var(--quiet); }
.leaderboard-head,
.leaderboard-row { border-color: var(--line); }
.leaderboard-row:hover { background: var(--accent-pale); }
.leaderboard-row.top-1 { background: var(--accent-pale); color: var(--ink); }
.leaderboard-row b,
.leaderboard-row.top-1 b { color: var(--accent-dark); }

.entity-hero-avatar { border-radius: 20px; background: var(--accent); color: #fff; }
.admin-stats { overflow: hidden; border-color: var(--line); border-radius: 20px; background: var(--surface); }
.admin-stats div { border-color: var(--line); }
.admin-stats span { color: var(--quiet); }
.admin-login button,
.admin-actions button,
.quiet-button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper-strong);
    color: var(--ink);
}

.archive-search-label { color: var(--ink); }
.archive-search-clear { border-color: var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-soft); }
.headtohead-link-list { gap: 12px; }
.headtohead-link-button {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(52, 43, 36, .04);
}
.headtohead-link-button b { color: var(--accent); }
.headtohead-link-button:hover,
.headtohead-link-button:focus-visible { border-color: var(--accent); background: var(--accent-pale); color: var(--ink); box-shadow: var(--lift-shadow); }
.headtohead-link-button:hover b,
.headtohead-link-button:focus-visible b { color: var(--accent-dark); }
.status-active { color: #118543; }

/* Poll detail cards */
.battle-page .battle-arena { padding: 18px; }
.battle-page .arena-kicker { width: max-content; margin: 0 auto 14px; }
.battle-page .fighter { padding: 24px 18px 20px; }
.battle-page .fighter-result { color: var(--ink); }
.battle-page .battle-feedback,
.battle-page .share-panel,
.battle-page .battle-stats,
.battle-page .fighter-notes article { background: var(--surface); color: var(--ink); }
.battle-feedback-heading,
.battle-page .battle-feedback-heading { border-color: var(--line); }
.battle-feedback-heading p,
.battle-page .battle-feedback-heading p,
.battle-rating-score strong,
.battle-page .battle-rating-score strong,
.battle-page .share-link { color: var(--accent-dark); }
.battle-feedback-heading > span,
.battle-page .battle-feedback-heading > span,
.battle-rating-card > p,
.battle-page .battle-rating-card > p { color: var(--quiet); }
.battle-rating-card,
.battle-page .battle-rating-card,
.battle-review,
.battle-page .battle-review,
.battle-review-empty,
.battle-page .battle-review-empty { border-color: var(--line); border-radius: 14px; background: var(--paper-strong); color: var(--ink); }
.battle-rating-meter { border-radius: 999px; background: var(--line); }
.battle-rating-meter span { background: var(--accent); }
.battle-review strong,
.battle-page .battle-review strong { color: var(--accent-dark); }
.battle-review p,
.battle-page .battle-review p { color: var(--ink-soft); }
.battle-page .share-button { border-color: var(--line); border-radius: 999px; color: var(--ink); }
.battle-page .share-x { border-color: var(--accent); background: var(--accent); color: #fff; }
.battle-page .battle-stats div { border-color: var(--line); }
.battle-page .battle-stats span { color: var(--quiet); }

.flash { border-radius: 14px; background: var(--surface); color: var(--ink); }
.flash-success { border-color: #69b982; color: #16753a; }
.flash-error,
.form-errors { border-color: var(--accent); border-radius: 14px; background: var(--accent-pale); color: #a33e2d; }

/* Preserve uploaded brand artwork as artwork, without forcing a colored tile behind it. */
.fight-avatar.has-logo,
.row-avatar.has-logo,
.row-contender-info .row-avatar.has-logo,
.fighter-avatar.has-logo,
.mini-avatar.has-logo,
.entity-avatar.has-logo,
.entity-hero-avatar.has-logo,
.entity-suggestion-logo.has-logo,
.archive-search-suggestion-logo.has-logo,
.c-image-preview.has-logo,
.battle-page .fighter-avatar.has-logo,
.battle-page .entity-avatar.has-logo {
    border: 0;
    background: transparent !important;
    box-shadow: none;
}
.fight-avatar.has-logo img,
.row-avatar.has-logo img,
.fighter-avatar.has-logo img,
.mini-avatar.has-logo img,
.entity-avatar.has-logo img,
.entity-hero-avatar.has-logo img,
.entity-suggestion-logo.has-logo img,
.archive-search-suggestion-logo.has-logo img,
.c-image-preview.has-logo img,
.battle-page .fighter-avatar.has-logo img,
.battle-page .entity-avatar.has-logo img { background: transparent; }

@media (max-width: 760px) {
    .home-header,
    .site-header { flex-wrap: wrap; padding-bottom: 14px; }
    .mode-tabs { order: 2; }

    .hero { margin-top: 26px; }
    .hero h1 { font-size: clamp(2.3rem, 10vw, 3.35rem); }

    .fight-grid,
    .battle-page .arena-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .fight-side,
    .battle-page .fighter { padding: 18px 8px 15px; border-radius: 17px; }
    .fight-side { padding-bottom: 48px; }
    .versus-sticker { width: 52px; height: 52px; }
    .fight-grid > .versus-sticker { top: 50%; bottom: auto; transform: translate(-50%, -50%) rotate(-7deg); }
    .fight-grid > .featured-center { display: none; }
    .featured-center .featured-vote-tally {
        top: auto;
        bottom: 38px;
        transform: translateX(-50%);
    }
    .featured-center .battle-insights-trigger { top: auto; bottom: 4px; }
    .fight-avatar,
    .battle-page .fighter-avatar { width: 50px; height: 50px; border-radius: 14px; }
    .fight-avatar img,
    .battle-page .fighter-avatar img { border-radius: 12px; }

    .row-fight {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap: 8px;
        border-radius: 18px;
    }
    .featured-vote-tally { gap: 10px; }
    .row-fight .row-vote-tally { gap: 8px; }
    .row-fight .row-vote-tally > span { flex-direction: row; gap: 4px; }
    .row-fight .row-vote-tally strong { font-size: .9rem; letter-spacing: -.03em; }
    .row-fight .row-vote-tally small { color: var(--quiet); font-size: .5rem; }
    .row-fight .row-contender.a { grid-column: 1; grid-row: 2; }
    .row-fight .row-contender.b { grid-column: 2; grid-row: 2; }
    .row-contender-info { border-radius: 12px; }
    .row-fight .row-pick { border-radius: 999px; }

    .modal-panel { border-radius: 26px 26px 0 0; background: var(--surface); }
    #compose-modal .modal-close { border-color: var(--line); background: var(--paper-strong); color: var(--ink); }
    .compose { border-radius: 18px; }

    .battle-page .battle-page-title { padding-top: 34px; }

    .vote-insights-modal { align-items: end; padding: 0; }
    .vote-insights-dialog {
        width: 100%;
        max-height: calc(100dvh - 16px);
        padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
        border-width: 1px 0 0;
        border-radius: 26px 26px 0 0;
    }
    .vote-insights-close { top: 14px; right: 16px; }
}

@media (max-width: 560px) {
    .stage,
    .site-shell { padding: 10px 16px 38px; }
    .home-header,
    .site-header { gap: 8px; }
    .brand-icon { width: 32px; height: 32px; border-radius: 10px; font-size: 9px; }
    .brand-word { font-size: 1.03rem; }
    .mode-tabs { margin-left: auto; padding: 3px; }
    .mode-tab { min-width: 65px; min-height: 31px; padding: 6px 10px; font-size: .75rem; }

    .hero { margin: 24px auto 14px; }
    .hero h1 { font-size: clamp(2.15rem, 9.5vw, 2.55rem); }
    .hero p { margin-top: 10px; font-size: .92rem; line-height: 1.42; }
    .claim-wrap { margin-bottom: 32px; }
    .claim-cta { width: 100%; min-width: 0; }

    .fight { padding: 12px; border-radius: 22px; }
    .fight-head { flex-wrap: wrap; }
    .fight-grid,
    .battle-page .arena-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .featured-vote-tally { gap: 8px; }
    .fight-side,
    .battle-page .fighter { padding: 15px 5px 12px; border-radius: 14px; }
    .fight-side { padding: 15px 5px 48px; }
    .versus-sticker { width: 46px; height: 46px; }
    .fight-name,
    .battle-page .fighter h2 { font-size: clamp(1rem, 5.2vw, 1.3rem); }
    .fight-description,
    .battle-page .fighter-description { font-size: .61rem; }
    .fight-pick,
    .battle-page .vote-button { padding: 10px 5px; font-size: .72rem; }

    .row-fight { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
    .row-fight .row-contender-info { padding: 8px 4px; }
    .row-fight .row-contender-info .row-avatar { width: 40px; height: 40px; }
    .row-fight .row-vote-tally { min-width: 0; }
    .row-choice-copy strong { font-size: .8rem; }
    .row-mobile-summary { font-size: .75rem; }

    .archive-search-row { grid-template-columns: minmax(0, 1fr) auto; }
    .archive-search-clear { grid-column: 1 / -1; min-height: 38px; }
    .battle-page .battle-arena { padding: 12px; border-radius: 22px; }
    .battle-feedback,
    .battle-page .battle-feedback,
    .share-panel,
    .battle-page .share-panel,
    .battle-stats,
    .battle-page .battle-stats { border-radius: 17px; }

    .vote-insights-scores { gap: 8px; }
    .vote-insight-score { padding: 11px; border-radius: 14px; }
    .vote-insight-reason { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    body { background-attachment: scroll; }
}
