/* 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(--money);
    color: #fff;
    box-shadow: 0 10px 28px rgba(207, 89, 68, .2);
    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; }

.btn-outbid {
    min-height: 34px;
    border-radius: 999px;
    border-color: var(--rank-blue);
    background: var(--rank-blue);
    color: #fff;
}
.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,
.insights-reason i { color: var(--accent); }
.generated-metric-icon {
    display: inline-grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
    line-height: 1;
}
.generated-metric-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.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: 10px;
    }
    .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-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; }
    .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-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 47px;
        text-align: center;
    }
    .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 12px;
        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;
        appearance: none;
        border: 0;
        background: color-mix(in srgb, var(--money) 82%, var(--surface));
        color: #fff;
        font: inherit;
        white-space: nowrap;
        pointer-events: auto;
        cursor: pointer;
    }
    .chase .row-mobile-summary-votes.a {
        padding-right: 22px;
        border-radius: 999px 0 0 999px;
    }
    .chase .row-mobile-summary-votes.b {
        padding-left: 22px;
        border-left: 1px solid var(--line);
        border-radius: 0 999px 999px 0;
    }
    .chase .row-mobile-summary-votes:hover:not(:disabled) { filter: brightness(.96); }
    .chase .row-mobile-summary-votes:focus-visible {
        position: relative;
        z-index: 3;
        outline: 2px solid var(--void);
        outline-offset: -3px;
    }
    .chase .row-mobile-summary-votes:disabled { opacity: 1; cursor: default; }
    .chase .row-mobile-summary-votes.your-pick::after {
        content: "✓";
        margin-left: 5px;
        color: #fff;
        font-weight: 900;
    }
    .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;
        gap: 12px;
        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 .generated-metric-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }
    .chase .row-mobile-summary-activity strong { font: inherit; }
    .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(--surface); color: var(--accent); }
.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,
.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 { 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 {
    max-width: 860px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0 auto;
    padding: clamp(42px, 7vw, 82px) 0 clamp(36px, 5vw, 58px);
    text-align: center;
}
.entity-hero-avatar {
    width: 96px;
    height: 96px;
    margin: 0 0 20px;
    border-radius: 24px;
    background: var(--accent);
    color: #fff;
    font-size: 1.45rem;
    box-shadow: 0 16px 38px rgba(49, 100, 244, .15);
}
.entity-hero-avatar img { border-radius: 22px; }
.entity-hero-kicker,
.entity-history-heading > p {
    margin: 0 0 10px;
    color: var(--accent-dark);
    font: 800 .7rem/1.2 var(--font-display);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.entity-hero h1 {
    margin: 0;
    font-size: clamp(2.75rem, 7vw, 5.25rem);
    line-height: .92;
    letter-spacing: -.065em;
    text-transform: none;
}
.entity-hero .entity-hero-description {
    max-width: 680px;
    margin: 18px auto 0;
    color: var(--ink-soft);
    font-size: clamp(.95rem, 1.7vw, 1.08rem);
    line-height: 1.55;
}
.entity-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 22px; }
.entity-hero .entity-primary-action,
.entity-hero .entity-secondary-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border: 1px solid var(--accent-dark);
    border-radius: 999px;
    font: 700 .78rem/1 var(--font-display);
    text-transform: none;
}
.entity-hero .entity-primary-action { background: var(--accent-dark); color: #fff; }
.entity-hero .entity-secondary-action { background: var(--surface); color: var(--accent-dark); }
.entity-hero .entity-primary-action:hover,
.entity-hero .entity-secondary-action:hover { filter: brightness(.94); transform: translateY(-1px); }
.entity-hero-stats { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.entity-hero-stats span {
    min-width: 120px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 250, .82);
    color: var(--quiet);
    font: 700 .65rem/1 var(--font-display);
    text-transform: uppercase;
}
.entity-hero-stats strong { color: var(--ink); font-size: .9rem; }

.entity-fight-history { padding-bottom: 38px; scroll-margin-top: 18px; }
.entity-history-heading { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.entity-history-heading > p { margin-bottom: 7px; color: var(--quiet); }
.entity-history-heading h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1; letter-spacing: -.04em; }
.entity-matchup-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.entity-matchup-list > li { min-width: 0; }
.entity-matchup-card {
    position: relative;
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    padding: 12px;
}
.entity-matchup-card .row-contender { min-width: 0; display: contents; }
.entity-matchup-card > .card-share {
    position: absolute;
    top: 3px;
    right: 3px;
    z-index: 5;
    width: 30px;
    height: 30px;
    padding: 3px;
    appearance: none;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}
.entity-matchup-card > .card-share:hover { transform: scale(1.08); filter: saturate(1.08); }
.entity-matchup-card > .card-share:active { transform: scale(.96); }
.entity-matchup-card > .card-share:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.entity-matchup-card > .card-share img { display: block; width: 100%; height: 100%; object-fit: contain; }
.entity-matchup-card > .entity-badge-button {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 10px;
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--accent-dark) 28%, transparent);
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 5px 13px rgba(207, 89, 68, .2);
    color: #fff;
    font: 800 .66rem/1 var(--font-display);
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}
.entity-matchup-card > .entity-badge-button span { color: #fff5c7; font-size: .78rem; }
.entity-matchup-card > .entity-badge-button.winner-b { right: 40px; left: auto; }
.entity-matchup-card > .entity-badge-button:hover { filter: brightness(.93); transform: translateY(-1px); }
.entity-matchup-card > .entity-badge-button:active { transform: translateY(0) scale(.97); }
.entity-matchup-card > .entity-badge-button:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.entity-matchup-card .row-contender.a .row-contender-info { grid-column: 1; grid-row: 1; }
.entity-matchup-card .row-contender.b .row-contender-info { grid-column: 2; grid-row: 1; }
.entity-matchup-card .row-contender-info {
    min-width: 0;
    min-height: 176px;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 7px;
    padding: 12px 7px 50px;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}
.entity-matchup-card .row-avatar {
    position: relative;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    overflow: hidden;
    font: 800 .82rem/1 var(--font-display);
}
.entity-matchup-card .row-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.entity-matchup-card .row-choice-copy { min-width: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.entity-matchup-card .row-choice-copy strong { max-width: 100%; font-size: .92rem; line-height: 1.08; overflow-wrap: anywhere; }
.entity-matchup-card .row-choice-description {
    display: -webkit-box;
    min-height: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    color: var(--quiet);
    font-size: .61rem;
    line-height: 1.25;
}
.entity-matchup-card .row-mobile-summary {
    position: relative;
    z-index: 2;
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: end;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 14px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font: 800 .78rem/1 var(--font-display);
    pointer-events: none;
}
.entity-matchup-card .row-mobile-summary-votes {
    min-width: 0;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 24px 3px 4px;
    background: var(--accent-dark);
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    pointer-events: auto;
}
.entity-matchup-card .row-mobile-summary-votes.a { border-radius: 999px 0 0 999px; }
.entity-matchup-card .row-mobile-summary-votes.b { padding-right: 4px; padding-left: 24px; border-left: 1px solid var(--line); border-radius: 0 999px 999px 0; }
.entity-matchup-card .row-mobile-summary-votes:hover { filter: brightness(.92); }
.entity-matchup-card .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;
    gap: 10px;
    padding: 3px 8px;
    transform: translate(-50%, -50%);
    overflow: hidden;
    appearance: none;
    border: 0;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    font: inherit;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    pointer-events: auto;
    cursor: pointer;
}
.entity-matchup-card .row-mobile-summary-activity:hover { background: var(--paper-strong); }
.entity-matchup-card .row-mobile-summary-activity.is-empty { cursor: default; }
.entity-matchup-card .insights-metric {
    height: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}
.entity-matchup-card .insights-metric strong {
    height: 20px;
    display: inline-flex;
    align-items: center;
    font: inherit;
    line-height: 1;
}

.entity-badge-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 18px;
}
.entity-badge-modal[hidden] { display: none; }
.entity-badge-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(34, 27, 24, .72);
    backdrop-filter: blur(6px);
}
.entity-badge-dialog {
    position: relative;
    width: min(100%, 820px);
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 32px 90px rgba(34, 27, 24, .34);
    color: var(--ink);
}
.entity-badge-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.55rem/1 var(--font-body);
    cursor: pointer;
}
.entity-badge-close:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.entity-badge-close:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 32%, transparent); outline-offset: 2px; }
.entity-badge-heading { padding-right: 48px; }
.entity-badge-heading > p {
    margin: 0 0 6px;
    color: var(--accent-dark);
    font: 800 .7rem/1 var(--font-display);
    letter-spacing: .12em;
    text-transform: uppercase;
}
.entity-badge-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: .98; letter-spacing: -.045em; }
.entity-badge-matchup {
    min-width: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 8px;
    margin-top: 9px;
    color: var(--quiet);
    font-size: .82rem;
}
.entity-badge-matchup strong { max-width: 100%; color: var(--ink); overflow-wrap: anywhere; }
.entity-badge-matchup > span:first-of-type { color: var(--accent-dark); font-weight: 800; }
.entity-badge-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.entity-badge-tile { min-width: 0; }
.entity-badge-preview-stage {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #f8f3ec;
}
.entity-badge-preview-stage img {
    width: 92%;
    height: 92%;
    object-fit: contain;
    filter: drop-shadow(0 14px 15px rgba(50, 39, 31, .14));
    transition: opacity .16s ease, transform .18s ease;
}
.entity-badge-preview-stage img.is-loading { opacity: .32; transform: scale(.985); }
.entity-badge-loading {
    position: absolute;
    left: 50%;
    bottom: 8px;
    max-width: calc(100% - 24px);
    padding: 5px 8px;
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 250, .92);
    color: var(--quiet);
    font: 700 .58rem/1 var(--font-display);
    white-space: nowrap;
}
.entity-badge-loading[hidden] { display: none; }
.entity-badge-tile-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-top: 8px; }
.entity-badge-format { margin: 12px 0 0; color: var(--quiet); font-size: .68rem; line-height: 1.4; text-align: center; }
.entity-badge-download {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font: 800 .66rem/1.2 var(--font-display);
    text-align: center;
    text-decoration: none;
}
.entity-badge-download-primary { width: 100%; border-color: var(--accent); background: var(--accent); color: #fff; }
.entity-badge-download-all { width: min(100%, 260px); display: flex; margin: 10px auto 0; }
.entity-badge-download:hover { filter: brightness(.94); transform: translateY(-1px); }
.entity-badge-embed-button {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font: 800 .66rem/1 var(--font-display);
    cursor: pointer;
}
.entity-badge-embed-button:hover,
.entity-badge-embed-button[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-dark); }
.entity-badge-embed-panel { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.entity-badge-embed-panel[hidden] { display: none; }
.entity-badge-embed-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.entity-badge-embed-heading p { margin: 0 0 4px; color: var(--accent-dark); font: 800 .6rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.entity-badge-embed-heading h3 { margin: 0; font-size: 1.15rem; line-height: 1; letter-spacing: -.025em; }
.entity-badge-embed-heading button { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.entity-badge-embed-note { margin: 7px 0 12px; color: var(--quiet); font-size: .68rem; line-height: 1.4; }
.entity-badge-embed-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.entity-badge-embed-options label { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.entity-badge-embed-options label > span { grid-column: 1 / -1; font: 800 .64rem/1 var(--font-display); }
.entity-badge-embed-options textarea { min-width: 0; width: 100%; resize: none; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-soft); font: 500 .6rem/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; }
.entity-badge-embed-options button { align-self: stretch; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 800 .61rem/1.2 var(--font-display); cursor: pointer; }
.entity-badge-copy-status { min-height: 1em; margin: 7px 0 0; color: var(--accent-dark); font-size: .62rem; }
body.entity-badge-open { overflow: hidden; }

@media (max-width: 720px), (max-height: 650px) {
    .entity-badge-modal { align-items: start; padding: 8px; }
    .entity-badge-dialog { max-height: calc(100dvh - 16px); padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 24px; }
    .entity-badge-gallery { gap: 7px; margin-top: 16px; }
    .entity-badge-preview-stage { border-radius: 12px; }
    .entity-badge-download-primary { min-height: 36px; padding: 7px 4px; font-size: .58rem; }
    .entity-badge-tile-actions { grid-template-columns: 1fr; gap: 5px; }
    .entity-badge-embed-button { min-height: 34px; padding: 6px 4px; font-size: .57rem; }
    .entity-badge-embed-options { grid-template-columns: minmax(0, 1fr); }
    .entity-badge-embed-options label { grid-template-columns: minmax(0, 1fr) 105px; }
}

@media (max-width: 360px) {
    .entity-badge-dialog { padding-right: 12px; padding-left: 12px; }
    .entity-badge-gallery { gap: 5px; }
    .entity-badge-download-primary { font-size: .54rem; }
    .entity-badge-embed-button { font-size: .54rem; }
}
.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);
}

/* Poll detail cards */
.battle-page .breadcrumbs {
    width: max-content;
    max-width: 100%;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 250, .86);
    color: var(--quiet);
    box-shadow: 0 6px 20px rgba(52, 43, 36, .04);
}
.battle-page .battle-page-title {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(34px, 5vw, 60px) 0 22px;
    text-align: center;
}
.battle-page .battle-page-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 14px;
}
.battle-page .battle-page-pill,
.battle-page .arena-total-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--quiet);
    font: 700 .6rem/1 var(--display);
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}
.battle-page .battle-page-status {
    border-color: transparent;
    background: var(--accent-pale);
    color: var(--accent-dark);
}
.battle-page .battle-page-title h1 { text-align: center; }
.battle-page .battle-page-title > p {
    margin: 12px auto 0;
    color: var(--quiet);
    font-size: clamp(.9rem, 1.5vw, 1rem);
}
.battle-page .battle-arena { padding: 18px; }
.battle-page .arena-kicker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 auto 14px;
}
.battle-page .arena-kicker { width: max-content; margin: 0; }
.battle-page .arena-total-pill { min-height: 26px; padding: 6px 10px; }
.battle-page .fighter { padding: 24px 18px 20px; }
.battle-page .fighter-result {
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 250, .88);
    color: var(--ink);
}
.battle-page .fighter { padding-bottom: 72px; }
.battle-page .arena-vote-strip {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 6;
    width: min(calc(100% - 28px), 760px);
    min-height: 36px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transform: translateX(-50%);
    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;
}
.battle-page .arena-vote-strip .vote-button {
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 4px 54px 4px 10px;
    border: 0;
    border-radius: 999px 0 0 999px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    white-space: nowrap;
    pointer-events: auto;
    cursor: pointer;
}
.battle-page .arena-vote-strip .vote-b {
    padding: 4px 10px 4px 54px;
    border-left: 1px solid var(--line);
    border-radius: 0 999px 999px 0;
}
.battle-page .arena-vote-strip .vote-button:hover:not(:disabled) { filter: brightness(.96); transform: none; }
.battle-page .arena-vote-strip .vote-button:focus-visible { position: relative; z-index: 3; outline: 2px solid var(--ink); outline-offset: -3px; }
.battle-page .arena-vote-strip .vote-button:disabled { opacity: 1; cursor: default; }
.battle-page .battle-arena.is-voted .arena-vote-strip .vote-button { opacity: 1; cursor: pointer; }
.battle-page .arena-vote-strip .vote-button.your-pick::after {
    content: "✓";
    margin-left: 5px;
    color: #fff;
    font-weight: 900;
}
.battle-page .arena-vote-strip .vote-button strong,
.battle-page .arena-vote-strip .vote-button span { color: inherit; font: inherit; }
.battle-page .arena-vote-activity {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    min-height: 36px;
    max-width: 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 4px 9px;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    white-space: nowrap;
    pointer-events: none;
}
.battle-page .arena-vote-activity .insights-metric { display: flex; align-items: center; gap: 4px; }
.battle-page .arena-vote-activity strong { font: inherit; }
.battle-page .arena-prompt {
    margin: 14px 0 0;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
}
.battle-page .battle-arena.is-voted .arena-prompt { display: none; }
.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; }

/* A missing logo is represented consistently by orange initials. */
.fight-avatar:not(.has-logo),
.row-avatar:not(.has-logo),
.fighter-avatar:not(.has-logo),
.mini-avatar:not(.has-logo),
.entity-avatar:not(.has-logo),
.entity-hero-avatar:not(.has-logo),
.entity-suggestion-logo:not(.has-logo),
.archive-search-suggestion-logo:not(.has-logo),
.vote-feedback-avatar:not(.has-logo),
.vote-insight-avatar:not(.has-logo),
.c-image-preview:not(.has-logo),
.rank-entity i {
    border-color: var(--line) !important;
    background: var(--surface) !important;
    color: var(--accent) !important;
    box-shadow: none;
}

/* Let each real logo tint its own competitor card. logo-tints.js supplies a
   very light background and related border while initials keep the light,
   orange-letter fallback above. */
[data-logo-tint].logo-tint-ready,
.row-contender .row-contender-info[data-logo-tint].logo-tint-ready {
    border-color: var(--logo-tint-border);
    background: var(--logo-tint-bg);
}

.row-contender-link.logo-tint-ready:hover {
    border-color: var(--logo-tint-border);
    background: var(--logo-tint-bg);
    box-shadow: 0 10px 24px var(--logo-tint-shadow);
}

@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; }
    .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: 30px; }

    .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 10px 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; }

    .entity-hero { display: flex; padding: 34px 0 38px; }
    .entity-hero-avatar { width: 82px; height: 82px; margin-bottom: 17px; border-radius: 21px; }
    .entity-hero-avatar img { border-radius: 19px; }
    .entity-hero h1 { font-size: clamp(2.5rem, 13vw, 3.6rem); }
    .entity-hero .entity-hero-description { margin-top: 14px; font-size: .91rem; }
    .entity-hero-actions { width: 100%; margin-top: 18px; }
    .entity-hero .entity-primary-action,
    .entity-hero .entity-secondary-action { flex: 1 1 150px; }
    .entity-hero-stats { width: 100%; }
    .entity-hero-stats span { min-width: 0; flex: 1 1 0; padding: 8px 7px; font-size: .58rem; }
    .entity-matchup-list { grid-template-columns: 1fr; }
    .entity-matchup-card { padding: 10px; }
    .entity-matchup-card .row-contender-info { min-height: 168px; padding: 11px 5px 48px; }
    .entity-matchup-card .row-choice-copy strong { font-size: .84rem; }
    .entity-matchup-card .row-choice-description { font-size: .58rem; }

    .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; }
    .entity-matchup-card .row-contender-info { padding: 11px 5px 48px; }
    .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-page .breadcrumbs { font-size: .61rem; }
    .battle-page .battle-page-title { padding: 26px 0 18px; }
    .battle-page .battle-page-pills { gap: 5px; margin-bottom: 11px; }
    .battle-page .battle-page-pill { min-height: 25px; padding: 5px 8px; font-size: .52rem; }
    .battle-page .battle-page-title > p { margin-top: 9px; font-size: .84rem; }
    .battle-page .arena-kicker-row { gap: 5px; margin-bottom: 11px; }
    .battle-page .arena-kicker,
    .battle-page .arena-total-pill { min-height: 24px; padding: 5px 8px; font-size: .52rem; }
    .battle-page .fighter { padding-bottom: 62px; }
    .battle-page .arena-vote-strip { bottom: 10px; width: calc(100% - 20px); min-height: 34px; font-size: .75rem; }
    .battle-page .arena-vote-strip .vote-button { min-height: 34px; padding-right: 48px; }
    .battle-page .arena-vote-strip .vote-b { padding-right: 6px; padding-left: 48px; }
    .battle-page .arena-vote-activity { min-height: 34px; padding: 3px 7px; }
    .battle-page .fighter-result { min-height: 25px; padding: 5px 7px; }
    .battle-page .arena-prompt { margin-top: 11px; font-size: .82rem; }
    .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; }
}

/* Keep every homepage voting action as strong and clearly interactive as the
   detail-page vote controls. */
.stage .claim-cta,
.stage .fight-pick,
.stage .fight-side:last-child .fight-pick,
.stage .fight.is-voted .fight-side.your-pick .fight-pick,
.stage .fight.is-voted .fight-side:last-child.your-pick .fight-pick,
.stage .row-mobile-summary-votes,
.stage .chase .row-mobile-summary-votes {
    background: var(--accent);
    color: #fff;
}
.stage .fight.is-voted .fight-pick { opacity: 1; cursor: pointer; }
.stage .claim-cta:hover,
.stage .fight-pick:hover:not(:disabled),
.stage .row-mobile-summary-votes:hover:not(:disabled) {
    background: var(--accent);
    color: #fff;
    filter: brightness(.92);
}

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

/* More: searchable matchup archive */
.links-page .site-shell {
    width: min(100%, 1320px);
    max-width: 1320px;
    padding-right: 32px;
    padding-left: 32px;
}
.links-page main { padding-bottom: 28px; }
.links-archive-page {
    width: 100%;
    margin: 0 auto;
}
.links-archive-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: end;
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(20px, 3.5vw, 38px) 0 20px;
}
.links-archive-intro { max-width: 680px; }
.links-archive-intro .eyebrow {
    margin: 0 0 9px;
    color: var(--accent-dark);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.links-archive-intro h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(3rem, 5.7vw, 4.85rem);
    font-weight: 700;
    line-height: .91;
    letter-spacing: -.07em;
}
.links-archive-intro h1 span { color: var(--accent); }
.links-archive-intro > p:last-child {
    max-width: 640px;
    margin: 13px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.5;
}
.links-archive-stat {
    position: relative;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding: 19px 21px;
    border-radius: 22px 22px 22px 7px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 22px 48px rgba(207, 89, 68, .2);
}
.links-archive-stat::after {
    content: "";
    position: absolute;
    width: 88px;
    height: 88px;
    right: -28px;
    bottom: -34px;
    border: 16px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
}
.links-archive-stat span,
.links-archive-stat small {
    position: relative;
    z-index: 1;
    font-size: .71rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.links-archive-stat strong {
    position: relative;
    z-index: 1;
    margin: 4px 0 1px;
    font-size: clamp(2.7rem, 4vw, 3.5rem);
    line-height: .95;
    letter-spacing: -.06em;
}
.links-archive-stat small { opacity: .78; }

.links-page .archive-search {
    position: relative;
    z-index: 5;
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid rgba(53, 47, 42, .11);
    border-radius: 20px;
    background: rgba(255, 253, 250, .9);
    box-shadow: 0 20px 54px rgba(52, 43, 36, .09);
    backdrop-filter: blur(14px);
}
.archive-search-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.archive-search-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--accent-pale);
    color: var(--accent-dark);
}
.archive-search-mark svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}
.links-page .archive-search-label {
    display: block;
    margin: 0;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .015em;
    text-transform: none;
}
.archive-search-heading small {
    display: block;
    margin-top: 3px;
    color: var(--quiet);
    font-size: .75rem;
    line-height: 1.3;
}
.links-page .archive-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: stretch;
    gap: 10px;
}
.links-page .archive-search-combobox { position: relative; min-width: 0; }
.links-page .archive-search input {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: 0;
    background: #fff;
    color: var(--ink);
    font: 500 1rem var(--font-body);
}
.links-page .archive-search input::placeholder { color: #a39c95; opacity: 1; }
.links-page .archive-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(234, 118, 95, .12);
}
.links-page .archive-search button,
.links-page .archive-search-clear {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 16px;
    font: 700 .82rem var(--font-body);
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
}
.links-page .archive-search button {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 24px rgba(207, 89, 68, .17);
}
.links-page .archive-search button b { font-size: 1.15rem; line-height: 1; }
.links-page .archive-search button:hover { background: var(--accent-dark); }
.links-page .archive-search-clear { border-color: var(--line); background: var(--surface); color: var(--ink-soft); }
.links-page .archive-search-clear:hover { border-color: var(--accent-soft); color: var(--accent-dark); }

.links-page .archive-search-suggestions {
    position: absolute;
    z-index: 30;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    max-height: 360px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 20px 50px rgba(52, 43, 36, .16);
}
.links-page .archive-search-suggestions[hidden] { display: none; }
.links-page .archive-search-suggestion {
    min-width: 0;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 12px;
    padding: 11px 10px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 11px;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
}
.links-page .archive-search-suggestion:last-child { border-bottom: 0; }
.links-page .archive-search-suggestion:hover,
.links-page .archive-search-suggestion.is-active {
    background: var(--accent-pale);
}
.archive-search-suggestion-logos {
    position: relative;
    width: 56px;
    height: 40px;
    display: block;
}
.links-page .archive-search-suggestion-logo {
    position: absolute;
    top: 2px;
    left: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid var(--surface);
    border-radius: 11px;
    background: var(--paper-strong);
    color: var(--accent-dark);
    font-size: .62rem;
    font-weight: 700;
}
.links-page .archive-search-suggestion-logo + .archive-search-suggestion-logo { left: 20px; z-index: 1; }
.links-page .archive-search-suggestion-logo.has-logo { background: transparent; }
.links-page .archive-search-suggestion-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}
.archive-search-suggestion-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.archive-search-suggestion-copy > strong {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    overflow: hidden;
    color: var(--ink);
    font-size: .9rem;
    line-height: 1.3;
    text-align: left;
    white-space: nowrap;
}
.archive-search-suggestion-copy > strong span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.archive-search-suggestion-copy > strong b {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: .72rem;
}
.archive-search-suggestion-copy > small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--quiet);
    font: 600 .72rem var(--font-body);
    text-transform: none;
}
.archive-search-suggestion-copy > small i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #aaa39c;
}
.archive-search-suggestion-copy > small.status-active { color: #087d45; }
.archive-search-suggestion-copy > small.status-active i { background: #13a15b; }
.archive-search-suggestion-open {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--paper-strong);
    color: var(--accent-dark);
    font-size: 1.15rem;
    font-weight: 600;
}
.archive-search-suggestion-empty {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px;
    color: var(--ink);
}
.archive-search-suggestion-empty strong { font-size: .9rem; }
.archive-search-suggestion-empty small { color: var(--quiet); font-size: .76rem; }

.links-results { margin-top: 0; }
.links-results-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
}
.links-results-heading > div > p {
    margin: 0 0 4px;
    color: var(--accent-dark);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.links-results-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.7rem, 2.5vw, 2.15rem);
    line-height: 1.1;
    letter-spacing: -.045em;
}
.links-results-count,
.links-page .archive-search-summary {
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 250, .74);
    color: var(--quiet);
    font: 600 .75rem/1.35 var(--font-body);
}
.links-page .archive-search-summary strong { color: var(--ink); }
.links-page .headtohead-link-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
    padding-bottom: 18px;
}
.links-page .headtohead-link-button {
    min-width: 0;
    min-height: 184px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: rgba(255, 253, 250, .88);
    color: var(--ink);
    text-align: left;
    text-decoration: none;
    box-shadow: 0 12px 34px rgba(52, 43, 36, .045);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.links-page .headtohead-link-button:hover,
.links-page .headtohead-link-button:focus-visible {
    transform: translateY(-3px);
    border-color: var(--accent-soft);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 22px 48px rgba(52, 43, 36, .11);
}
.link-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px 10px;
    border-bottom: 1px solid var(--line);
}
.link-card-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--quiet);
    font-size: .72rem;
    font-weight: 700;
}
.link-card-status i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #aaa39c;
}
.headtohead-link-button.is-live .link-card-status { color: #087d45; }
.headtohead-link-button.is-live .link-card-status i { background: #13a15b; box-shadow: 0 0 0 4px rgba(19, 161, 91, .1); }
.link-card-votes { color: var(--quiet); font-size: .7rem; font-weight: 600; }
.link-card-matchup {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    padding: 13px 0 11px;
}
.link-card-competitor {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
}
.link-card-logo {
    position: relative;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 15px;
    background: var(--accent-pale);
    color: var(--accent-dark);
    font-size: .72rem;
    font-weight: 700;
}
.link-card-logo.has-logo { background: transparent; }
.link-card-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}
.link-card-competitor strong {
    max-width: 100%;
    color: var(--ink);
    font-size: clamp(.88rem, 1.15vw, 1rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.links-page .headtohead-link-button .link-card-versus {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font: 700 .7rem var(--font-body);
    box-shadow: 0 8px 18px rgba(207, 89, 68, .18);
}
.link-card-open {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 11px;
    border-radius: 12px;
    background: var(--paper-strong);
    color: var(--ink-soft);
    font-size: .72rem;
    font-weight: 700;
}
.link-card-open b { color: var(--accent-dark); font-size: .95rem; }
.links-page .headtohead-link-button:hover .link-card-open,
.links-page .headtohead-link-button:focus-visible .link-card-open { background: var(--accent-pale); color: var(--accent-dark); }
.links-page .archive-pagination { margin-top: 2px; }
.links-page .empty-state { padding: 36px; }

@media (max-width: 1000px) {
    .links-page .headtohead-link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .links-archive-hero {
        grid-template-columns: minmax(0, 1fr) 140px;
        gap: 18px;
        padding-top: 22px;
    }
    .links-archive-stat { min-height: 142px; padding: 18px; border-radius: 23px 23px 23px 7px; }
    .links-archive-stat strong { font-size: 3rem; }
    .links-page .archive-search { margin-bottom: 22px; }
    .links-page .headtohead-link-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
    .links-page .site-shell { width: 100%; padding: 10px 10px 30px; }
    .links-page main { padding-bottom: 12px; }
    .links-archive-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 16px 0 16px;
    }
    .links-archive-intro .eyebrow { margin-bottom: 7px; font-size: .7rem; }
    .links-archive-intro h1 { font-size: clamp(2.45rem, 12vw, 3rem); }
    .links-archive-intro > p:last-child { margin-top: 10px; font-size: .94rem; line-height: 1.48; }
    .links-archive-stat {
        min-height: 0;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 9px;
        padding: 12px 15px;
        border-radius: 18px 18px 18px 5px;
    }
    .links-archive-stat strong { order: -1; margin: 0 3px 0 0; font-size: 2rem; }
    .links-archive-stat span,
    .links-archive-stat small { font-size: .62rem; }
    .links-archive-stat::after { width: 54px; height: 54px; right: -19px; bottom: -24px; border-width: 10px; }
    .links-page .archive-search { margin-bottom: 18px; padding: 12px; border-radius: 18px; }
    .archive-search-heading { gap: 9px; margin-bottom: 9px; }
    .archive-search-mark { width: 36px; height: 36px; border-radius: 11px; }
    .links-page .archive-search-label { font-size: .84rem; }
    .archive-search-heading small { font-size: .7rem; }
    .links-page .archive-search-row {
        position: relative;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }
    .links-page .archive-search-combobox { position: static; }
    .links-page .archive-search input { height: 50px; padding: 0 13px; border-radius: 14px; font-size: .88rem; }
    .links-page .archive-search button { min-height: 50px; padding: 0 14px; border-radius: 14px; font-size: .72rem; }
    .links-page .archive-search button b { display: none; }
    .links-page .archive-search-clear { grid-column: 1 / -1; min-height: 40px; border-radius: 13px; font-size: .64rem; }
    .links-page .archive-search-suggestions {
        top: 58px;
        width: auto;
        max-height: 380px;
        padding: 6px;
        border-radius: 15px;
    }
    .links-page .archive-search-suggestion {
        grid-template-columns: 50px minmax(0, 1fr) 30px;
        gap: 9px;
        padding: 10px 8px;
    }
    .archive-search-suggestion-logos { width: 50px; height: 36px; }
    .links-page .archive-search-suggestion-logo { width: 34px; height: 34px; border-radius: 9px; font-size: .55rem; }
    .links-page .archive-search-suggestion-logo + .archive-search-suggestion-logo { left: 17px; }
    .archive-search-suggestion-copy > strong { gap: 4px; font-size: .8rem; }
    .archive-search-suggestion-copy > strong b { font-size: .65rem; }
    .archive-search-suggestion-copy > small { font-size: .68rem; }
    .archive-search-suggestion-open { width: 30px; height: 30px; font-size: 1rem; }
    .links-results-heading { align-items: flex-end; gap: 10px; margin-bottom: 13px; }
    .links-results-heading h2 { font-size: 1.65rem; }
    .links-results-count,
    .links-page .archive-search-summary { max-width: 54%; padding: 7px 9px; font-size: .68rem; text-align: right; }
    .links-page .headtohead-link-list { gap: 10px; }
    .links-page .headtohead-link-button { min-height: 184px; padding: 12px; border-radius: 18px; }
    .link-card-meta { padding-bottom: 9px; }
    .link-card-status { font-size: .68rem; }
    .link-card-votes { font-size: .66rem; }
    .link-card-matchup { grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); gap: 8px; padding: 13px 0 11px; }
    .link-card-logo { width: 44px; height: 44px; border-radius: 12px; }
    .link-card-competitor strong { font-size: .84rem; }
    .links-page .headtohead-link-button .link-card-versus { width: 34px; height: 34px; font-size: .65rem; }
    .link-card-open { padding: 8px 10px; font-size: .7rem; }
    .links-page .empty-state { padding: 28px 20px; }
}

@media (max-width: 340px) {
    .link-card-competitor strong { font-size: .68rem; overflow-wrap: normal; word-break: normal; }
}
