:root {
    --sf-black: #030405;
    --sf-panel: #090b0e;
    --sf-panel-soft: #101318;
    --sf-white: #f5f5f2;
    --sf-silver: #c8cbd0;
    --sf-silver-dark: #6f747c;
    --sf-red: #ba0008;
    --sf-red-bright: #ef0713;
    --sf-blue: #1976d2;
    --sf-green: #05b55c;
}

* {
    box-sizing: border-box;
}

body.sf-athlete-page {
    margin: 0;
    min-height: 100vh;
    padding: 18px;
    color: var(--sf-white);
    background:
        radial-gradient(circle at 50% 18%, rgba(70, 75, 84, 0.18), transparent 34%),
        linear-gradient(180deg, #090b10 0%, #020304 100%);
    font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
}

.sf-profile-shell {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 10px;
    border: 3px solid #f2f2ef;
    border-radius: 43px;
    background: #050607;
    box-shadow:
        0 0 0 4px #60646a,
        0 0 0 7px #e7e7e4,
        0 0 0 10px #272a2e,
        0 20px 50px rgba(0, 0, 0, 0.7);
}

.sf-profile-header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 2.1fr 1fr;
    align-items: center;
    min-height: 174px;
    padding: 18px 28px;
    border-bottom: 2px solid #8d9197;
}

.sf-league-mark {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #f4f4f2;
    font-size: clamp(22px, 3.8vw, 41px);
    letter-spacing: 2px;
}

.sf-header-rule {
    display: block;
    width: 72px;
    height: 2px;
    background: #d5d6d7;
}

.sf-logo {
    display: flex;
    width: 100%;
    max-width: 440px;
    min-height: 118px;
    align-items: center;
    justify-content: center;
    justify-self: center;
    padding: 0 10px;
    color: #ffffff;
    text-decoration: none;
}

.sf-logo-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 108px;
    object-fit: contain;
}

.sf-logo:hover,
.sf-logo:focus-visible {
    filter: brightness(1.08);
}

.sf-share-button {
    justify-self: end;
    width: 125px;
    height: 145px;
    color: white;
    border: 3px solid white;
    border-radius: 19px;
    background: #080a0c;
    box-shadow:
        inset 0 0 0 3px #44484e,
        0 0 0 1px #000;
    cursor: pointer;
    font: inherit;
    font-size: 22px;
    letter-spacing: 1px;
}

.sf-share-icon {
    position: relative;
    display: block;
    width: 57px;
    height: 56px;
    margin: 0 auto 10px;
}

.sf-share-icon::before,
.sf-share-icon::after {
    position: absolute;
    left: 14px;
    width: 34px;
    height: 4px;
    content: "";
    background: white;
    transform-origin: left center;
}

.sf-share-icon::before {
    top: 19px;
    transform: rotate(-32deg);
}

.sf-share-icon::after {
    top: 31px;
    transform: rotate(32deg);
}

.sf-share-icon i {
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
}

.sf-share-icon i:nth-child(1) {
    left: 0;
    top: 20px;
}

.sf-share-icon i:nth-child(2) {
    right: 0;
    top: 0;
}

.sf-share-icon i:nth-child(3) {
    right: 0;
    bottom: 0;
}

.sf-athlete-card {
    margin: 22px;
    overflow: hidden;
    border: 3px solid #dfe1e2;
    clip-path: polygon(
        4% 0,
        96% 0,
        100% 5%,
        100% 95%,
        96% 100%,
        4% 100%,
        0 95%,
        0 5%
    );
    background:
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.06), transparent 33%),
        #050607;
    box-shadow: inset 0 0 0 4px #363a3f;
}

.sf-athlete-identity {
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: center;
    min-height: 435px;
    padding: 30px 38px;
}

.sf-number-column {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-number-ring {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 22px;
    width: 345px;
    height: 345px;
    padding: 22px;
    border: 7px double #c9cdd2;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 40%, #12161b 0%, #050607 68%);
    box-shadow:
        inset 0 -8px 0 rgba(181, 0, 8, 0.9),
        0 0 0 4px #24272b;
}

.sf-jersey-number {
    color: #f4f4f1;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: clamp(92px, 14vw, 150px);
    line-height: 1;
    text-shadow: 0 4px 0 #5b5d61;
}

.sf-number-dash {
    color: var(--sf-red-bright);
    font-family: Arial, sans-serif;
    font-size: 48px;
    text-align: center;
}

.sf-sport-crest {
    position: absolute;
    z-index: 3;
    top: -8px;
    left: 50%;
    width: 105px;
    height: 120px;
    padding: 8px;
    transform: translateX(-50%);
    clip-path: polygon(50% 0, 94% 23%, 94% 76%, 50% 100%, 6% 76%, 6% 23%);
    background: linear-gradient(135deg, #f4f4f4, #5a5e64 45%, #f3f3f3);
}

.sf-crest-inner {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #e4e5e7;
    border: 4px solid var(--sf-red);
    clip-path: polygon(50% 0, 94% 23%, 94% 76%, 50% 100%, 6% 76%, 6% 23%);
    background: #080a0c;
    font-size: 59px;
}

.sf-name-column {
    padding: 20px 15px 0 38px;
}

.sf-name-column h1 {
    margin: 0;
    color: #f5f5f2;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: clamp(65px, 9vw, 116px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow:
        0 3px 0 #777b80,
        0 7px 15px rgba(0, 0, 0, 0.8);
}

.sf-name-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    margin: 40px 0 26px;
}

.sf-name-divider span {
    height: 2px;
    background: #d8d9da;
}

.sf-name-divider b {
    font-size: 31px;
    font-weight: 400;
}

.sf-athlete-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 27px;
    color: #eeeeec;
    font-size: clamp(22px, 3vw, 37px);
    letter-spacing: 2px;
}

.sf-athlete-meta i {
    width: 12px;
    height: 12px;
    border: 2px solid var(--sf-red-bright);
    border-radius: 50%;
    background: var(--sf-red);
}

.sf-team-banner {
    display: grid;
    grid-template-columns: 150px minmax(45px, 1fr) auto minmax(45px, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 180px;
    padding: 16px 42px;
    border-top: 2px solid #d8dadd;
    border-bottom: 2px solid #d8dadd;
    background:
        linear-gradient(90deg, #610006, #a00008 48%, #600005),
        repeating-linear-gradient(45deg, transparent 0 8px, rgba(255, 255, 255, 0.025) 8px 10px);
}

.sf-team-emblem {
    display: grid;
    width: 132px;
    height: 132px;
    place-items: center;
    border: 6px double #f1f2f2;
    border-radius: 50%;
    background: #060708;
    box-shadow: 0 0 0 4px #282b2f;
}

.sf-team-emblem span {
    font-size: 76px;
}

.sf-team-rule {
    height: 3px;
    background: linear-gradient(90deg, transparent, white, transparent);
}

.sf-team-name {
    color: #f5f5f3;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: clamp(45px, 6.5vw, 76px);
    font-weight: 400;
    letter-spacing: 5px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow:
        0 3px 0 #777b80,
        0 6px 12px rgba(0, 0, 0, 0.7);
}

.sf-action-row {
    display: grid;
    grid-template-columns: 1fr 0.9fr 1fr;
    gap: 28px;
    padding: 28px 26px 32px;
    border-bottom: 2px solid #30343a;
}

.sf-action-row form {
    margin: 0;
}

.sf-action-button {
    display: flex;
    width: 100%;
    min-height: 124px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #f5f5f2;
    border: 3px solid #ebedee;
    border-radius: 25px;
    background: linear-gradient(180deg, #15191e, #030405);
    box-shadow:
        inset 0 0 0 3px #353a40,
        0 5px 10px rgba(0, 0, 0, 0.75);
    cursor: pointer;
    font: inherit;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: clamp(30px, 4.5vw, 49px);
    letter-spacing: 2px;
    text-decoration: none;
}

.sf-action-button:hover {
    filter: brightness(1.18);
}

.sf-sizz-button.is-selected {
    border-color: #ff5961;
    background: linear-gradient(180deg, #cf0711, #680006);
}

.sf-fizz-button.is-selected {
    border-color: #75baff;
    background: linear-gradient(180deg, #176ec5, #073467);
}

.sf-action-icon {
    font-family: Arial, sans-serif;
    font-size: 68px;
    line-height: 1;
}

.sf-fire-icon {
    color: #fff;
}

.sf-snow-icon {
    color: #fff;
}

.sf-bars-icon {
    display: flex;
    height: 53px;
    align-items: end;
    gap: 5px;
}

.sf-bars-icon i,
.sf-trend-bars i {
    display: block;
    width: 10px;
    border: 2px solid #c8cbd0;
    background: linear-gradient(#e6e6e6, #55595f);
}

.sf-bars-icon i:nth-child(1),
.sf-trend-bars i:nth-child(1) {
    height: 21px;
}

.sf-bars-icon i:nth-child(2),
.sf-trend-bars i:nth-child(2) {
    height: 39px;
}

.sf-bars-icon i:nth-child(3),
.sf-trend-bars i:nth-child(3) {
    height: 52px;
}

.sf-score-section {
    display: grid;
    grid-template-columns: 1fr 2.4fr 1fr;
    align-items: center;
    gap: 28px;
    min-height: 405px;
    padding: 38px 28px 30px;
}

.sf-vote-panel,
.sf-trend-panel {
    text-align: center;
}

.sf-stat-icon {
    color: #dfe1e3;
    font-size: 28px;
    letter-spacing: -6px;
}

.sf-stat-label,
.sf-weeks-label {
    margin-top: 18px;
    color: #bfc2c6;
    font-size: 23px;
    letter-spacing: 2px;
}

.sf-red-rule {
    width: 82%;
    height: 2px;
    margin: 24px auto;
    background: var(--sf-red);
}

.sf-vote-number {
    color: #f5f5f1;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: clamp(50px, 7vw, 82px);
    line-height: 1;
}

.sf-stat-subtitle {
    margin-top: 16px;
    color: #b5b8bc;
    font-size: 25px;
    letter-spacing: 2px;
}

.sf-score-jewel {
    position: relative;
    display: flex;
    min-height: 320px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 9px double #eef4ff;
    background:
        radial-gradient(circle at center, rgba(61, 94, 140, 0.18), transparent 48%),
        #050607;
    clip-path: polygon(9% 0, 91% 0, 100% 12%, 100% 88%, 91% 100%, 9% 100%, 0 88%, 0 12%);
    box-shadow:
        inset 0 0 20px rgba(191, 222, 255, 0.55),
        0 0 15px rgba(139, 188, 255, 0.52);
}

.sf-score-jewel::before,
.sf-score-jewel::after {
    position: absolute;
    content: "";
    background: rgba(255, 255, 255, 0.75);
}

.sf-score-jewel::before {
    top: 18px;
    right: 10%;
    left: 10%;
    height: 3px;
}

.sf-score-jewel::after {
    top: 10%;
    bottom: 10%;
    left: 18px;
    width: 3px;
}

.sf-score-number {
    color: #fbfbfb;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: clamp(130px, 22vw, 240px);
    line-height: 0.9;
    text-shadow:
        0 0 10px #fff,
        0 0 24px rgba(144, 192, 255, 0.88),
        0 6px 0 #657181;
}

.sf-score-caption {
    display: grid;
    grid-template-columns: 65px auto 65px;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    color: #aeb2b8;
    font-size: 22px;
    letter-spacing: 2px;
}

.sf-score-caption span {
    height: 2px;
    background: #aeb2b8;
}

.sf-trend-bars {
    display: flex;
    height: 54px;
    align-items: end;
    justify-content: center;
    gap: 5px;
}

.sf-trend-result {
    margin-top: 20px;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: 42px;
    letter-spacing: 3px;
}

.sf-trend-up {
    color: var(--sf-green);
}

.sf-trend-down {
    color: var(--sf-blue);
}

.sf-trend-flat {
    color: #a7abb0;
}

.sf-calendar-icon {
    color: #d4d6d9;
    font-size: 51px;
}

.sf-weeks-label {
    margin-top: 8px;
    font-size: 20px;
}

.sf-weeks-number {
    margin-top: 8px;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: 59px;
}

/*
 * Athlete-card viewport presentation
 *
 * The card retains one master portrait composition. The complete card is
 * scaled uniformly to fit the available viewport. Internal sections are
 * never independently compressed or rearranged.
 */

body.sf-athlete-card-page {
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;
}

body.sf-athlete-card-page .sf-profile-shell {
    position: fixed;
    top: var(--sf-card-top, 8px);
    left: 50%;
    width: 980px;
    max-width: none;
    margin: 0;
    transform:
        translateX(-50%)
        scale(var(--sf-card-scale, 1));
    transform-origin: top center;
}

/* Reusable athlete-card media and branding slots */
.sf-media-slot {
    overflow: hidden;
}

.sf-media-slot-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.sf-branding-slot-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Functional compare and trend pages */
.sf-trend-panel-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.sf-trend-panel-link:hover,
.sf-trend-panel-link:focus-visible {
    filter: brightness(1.18);
}

.sf-data-page-shell {
    overflow: hidden;
}

.sf-data-page-header {
    display: flex;
    min-height: 110px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 34px;
    border-bottom: 2px solid #8d9197;
}

.sf-data-back-link,
.sf-data-logo,
.sf-data-action-link {
    color: var(--sf-white);
    text-decoration: none;
}

.sf-data-back-link {
    font-size: 18px;
    letter-spacing: 1px;
}

.sf-data-logo {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-style: italic;
}

.sf-data-page {
    padding: 44px;
}

.sf-data-kicker {
    margin: 0 0 12px;
    color: var(--sf-red-bright);
    font-size: 18px;
    letter-spacing: 3px;
}

.sf-data-page h1 {
    margin: 0;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: clamp(48px, 8vw, 86px);
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1;
}

.sf-data-subtitle {
    color: var(--sf-silver);
    font-size: 21px;
    letter-spacing: 1px;
}

.sf-compare-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin: 34px 0;
}

.sf-compare-form label {
    grid-column: 1 / -1;
    color: var(--sf-silver);
    font-size: 18px;
    letter-spacing: 1px;
}

.sf-compare-form select,
.sf-compare-form button {
    min-height: 56px;
    border: 2px solid var(--sf-silver);
    border-radius: 10px;
    font: inherit;
    font-size: 18px;
}

.sf-compare-form select {
    width: 100%;
    padding: 0 14px;
    color: var(--sf-white);
    background: var(--sf-panel-soft);
}

.sf-compare-form button {
    padding: 0 28px;
    color: var(--sf-white);
    background: var(--sf-red);
    cursor: pointer;
}

.sf-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.sf-comparison-card {
    padding: 28px;
    border: 2px solid var(--sf-silver-dark);
    border-radius: 18px;
    background: var(--sf-panel);
}

.sf-comparison-team,
.sf-comparison-meta,
.sf-comparison-score-label {
    color: var(--sf-silver);
    letter-spacing: 1px;
}

.sf-comparison-card h2 {
    margin: 12px 0;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
}

.sf-comparison-card h2 a {
    color: var(--sf-white);
    text-decoration: none;
}

.sf-comparison-score {
    margin-top: 28px;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: 92px;
    line-height: 1;
}

.sf-comparison-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 28px 0;
    background: var(--sf-silver-dark);
}

.sf-comparison-stats div {
    padding: 16px;
    background: var(--sf-panel-soft);
}

.sf-comparison-stats dt {
    color: var(--sf-silver);
    font-size: 15px;
}

.sf-comparison-stats dd {
    margin: 7px 0 0;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: 30px;
}

.sf-data-action-link {
    display: inline-block;
    padding: 14px 18px;
    border: 2px solid var(--sf-white);
    border-radius: 9px;
    letter-spacing: 1px;
}

.sf-data-empty {
    margin: 32px 0;
    padding: 28px;
    color: var(--sf-silver);
    border: 2px dashed var(--sf-silver-dark);
    border-radius: 14px;
    font-size: 20px;
}

.sf-trend-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 34px 0;
}

.sf-trend-summary div {
    padding: 16px;
    border: 2px solid var(--sf-silver-dark);
    border-radius: 14px;
    background: var(--sf-panel);
}

.sf-trend-summary span {
    display: block;
    color: var(--sf-silver);
    font-size: 16px;
}

.sf-trend-summary strong {
    display: block;
    margin-top: 8px;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: 45px;
    font-weight: 400;
}

.sf-trend-history {
    margin: 0 0 30px;
    border-top: 2px solid var(--sf-silver-dark);
}

.sf-trend-history-row {
    display: grid;
    grid-template-columns: 1fr 120px 120px;
    align-items: center;
    gap: 20px;
    padding: 20px 8px;
    border-bottom: 1px solid var(--sf-silver-dark);
}

.sf-history-date,
.sf-history-votes {
    display: block;
}

.sf-history-date {
    font-size: 21px;
}

.sf-history-votes {
    margin-top: 5px;
    color: var(--sf-silver);
}

.sf-history-score,
.sf-history-change {
    font-family: Impact, "Arial Narrow", sans-serif;
    text-align: right;
}

.sf-history-score {
    font-size: 42px;
}

.sf-history-change {
    color: var(--sf-silver);
    font-size: 24px;
}

@media (max-width: 700px) {
    .sf-data-page-header {
        min-height: 86px;
        padding: 18px;
    }

    .sf-data-logo {
        font-size: 27px;
    }

    .sf-data-back-link {
        font-size: 14px;
    }

    .sf-data-page {
        padding: 28px 18px;
    }

    .sf-compare-form,
    .sf-comparison-grid,
    .sf-trend-summary {
        grid-template-columns: 1fr;
    }

    .sf-compare-form button {
        width: 100%;
    }

    .sf-comparison-score {
        font-size: 72px;
    }

    .sf-trend-history-row {
        grid-template-columns: 1fr auto;
    }

    .sf-history-change {
        grid-column: 1 / -1;
        text-align: left;
    }
}

/* Three-week card trend presentation */

.sf-trend-arrow {
    margin-top: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 64px;
    font-weight: 900;
    line-height: 0.9;
}

.sf-trend-result {
    margin-top: 8px;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: 34px;
    letter-spacing: 3px;
}

.sf-trend-arrow.sf-trend-up,
.sf-trend-result.sf-trend-up {
    color: #ff3333;
}

.sf-trend-arrow.sf-trend-down,
.sf-trend-result.sf-trend-down {
    color: #00e5ff;
}

.sf-trend-arrow.sf-trend-flat,
.sf-trend-result.sf-trend-flat {
    color: #a7abb0;
}

/* End three-week card trend presentation */


/* Clean card score presentation */
.sf-score-number {
    color: #f4f5f6;
    background: none;
    font-family: Impact, "Arial Narrow", Arial, sans-serif;
    font-size: 166px;
    font-style: normal;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 3px;
    line-height: 0.84;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #f4f5f6;
    -webkit-text-stroke: 0;
    text-shadow:
        0 2px 0 #4b5158,
        0 5px 8px rgba(0, 0, 0, 0.72);
    filter: none;
    transform: none;
}

/* Refined score numerals */
.sf-score-number {
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: 148px;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 0.9;
    text-shadow:
        0 2px 2px rgba(0, 0, 0, 0.75);
}

/* Score hierarchy correction */
.sf-score-section {
    grid-template-columns: 0.78fr 1.52fr 0.78fr;
    gap: 10px;
    align-items: center;
    min-height: 250px;
}

.sf-vote-panel,
.sf-trend-panel {
    min-height: 205px;
    padding: 14px 10px;
}

.sf-score-jewel {
    min-height: 268px;
    padding: 18px 22px 14px;
}

.sf-score-number {
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: 172px;
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 0.84;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.72);
}

.sf-vote-number,
.sf-weeks-number {
    font-size: 42px;
    line-height: 1;
}

.sf-stat-label,
.sf-weeks-label {
    font-size: 12px;
    letter-spacing: 1px;
}

.sf-trend-result {
    font-size: 28px;
    line-height: 1;
}

/* Portrait score jewel refinement */
.sf-score-section {
    grid-template-columns: 0.68fr 1.64fr 0.68fr;
    gap: 8px;
    align-items: center;
    min-height: 292px;
}

.sf-vote-panel,
.sf-trend-panel {
    min-height: 188px;
    padding: 12px 8px;
}

.sf-score-jewel {
    justify-self: center;
    width: 90%;
    max-width: 348px;
    min-height: 346px;
    aspect-ratio: 0.89 / 1;
    padding: 18px 16px 16px;
}

.sf-score-number {
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: 206px;
    font-weight: 700;
    letter-spacing: -5px;
    line-height: 0.82;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.72);
}

.sf-score-caption {
    font-size: 15px;
    letter-spacing: 1px;
}

.sf-vote-number,
.sf-weeks-number {
    font-size: 40px;
}

.sf-stat-label,
.sf-weeks-label {
    font-size: 11px;
    letter-spacing: 1px;
}

/* Reduce athlete-name dominance */
.sf-athlete-identity h1 {
    font-size: 74px;
    line-height: 0.92;
    letter-spacing: 0;
}

/* Refined athlete and team typography */
.sf-athlete-identity h1 {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 88px;
    font-weight: 600;
    letter-spacing: 0.025em;
    line-height: 0.96;
    -webkit-text-stroke: 0;
    text-shadow:
        0 2px 3px rgba(0, 0, 0, 0.7);
}

.sf-team-name {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-weight: 600;
    letter-spacing: 0.035em;
    -webkit-text-stroke: 0;
    text-shadow:
        0 2px 3px rgba(0, 0, 0, 0.65);
}

/* Final name hierarchy refinement */
.sf-athlete-identity h1 {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 70px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 0.98;
    -webkit-text-stroke: 0;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.65);
}

.sf-team-name {
    display: block;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 52px;
    font-weight: 500;
    letter-spacing: 0.025em;
    line-height: 0.98;
    white-space: normal;
    text-align: center;
    text-wrap: balance;
    -webkit-text-stroke: 0;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Center athlete name within identity column */
.sf-athlete-identity h1 {
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}


/* Athlete detail and reduced team banner */
.sf-athlete-detail {
    width: 100%;
    margin-top: 14px;
    color: #b9bdc2;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 27px;
    font-weight: 400;
    letter-spacing: 0.075em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}

.sf-name-divider {
    margin-top: 20px;
}

.sf-team-banner {
    grid-template-columns:
        126px
        minmax(34px, 1fr)
        auto
        minmax(34px, 1fr);
    gap: 18px;
    min-height: 150px;
    padding: 9px 34px;
}

.sf-team-emblem {
    width: 108px;
    height: 108px;
    border-width: 5px;
}

.sf-team-emblem span {
    font-size: 62px;
}

.sf-team-name {
    font-size: 48px;
    line-height: 0.96;
}


/* Center athlete metadata and career stage */
.sf-name-column {
    text-align: center;
}

.sf-athlete-meta {
    width: 100%;
    justify-content: center;
    text-align: center;
}


/* Compact responsive Trend page */
body.sf-trend-page {
    padding: 10px;
}

.sf-trend-page .sf-trend-page-shell {
    width: min(900px, calc(100vw - 20px));
    border-radius: 30px;
}

.sf-trend-page .sf-data-page-header {
    min-height: 76px;
    padding: 14px 26px;
}

.sf-trend-page .sf-data-back-link {
    font-size: 15px;
}

.sf-trend-page .sf-data-logo {
    font-size: 30px;
}

.sf-trend-page .sf-data-page {
    padding: 26px 34px 30px;
}

.sf-trend-page .sf-data-kicker {
    margin-bottom: 7px;
    font-size: 14px;
    letter-spacing: 2px;
}

.sf-trend-page .sf-data-page h1 {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 52px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

.sf-trend-page .sf-data-subtitle {
    margin: 12px 0 0;
    font-size: 17px;
}

.sf-trend-page .sf-trend-summary {
    gap: 12px;
    margin: 20px 0;
}

.sf-trend-page .sf-trend-summary div {
    padding: 12px 14px;
    border-radius: 10px;
}

.sf-trend-page .sf-trend-summary span {
    font-size: 14px;
}

.sf-trend-page .sf-trend-summary strong {
    margin-top: 4px;
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: 34px;
    font-weight: 700;
}

.sf-trend-chart-card {
    margin: 18px 0 22px;
    padding: 18px;
    border: 2px solid var(--sf-silver-dark);
    border-radius: 14px;
    background: var(--sf-panel);
}

.sf-trend-chart-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.sf-trend-chart-header p {
    margin: 0 0 5px;
    color: var(--sf-red-bright);
    font-size: 12px;
    letter-spacing: 1.5px;
}

.sf-trend-chart-header h2 {
    margin: 0;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 600;
}

.sf-trend-chart-header > span {
    color: var(--sf-silver);
    font-size: 14px;
}

.sf-trend-chart-wrap {
    width: 100%;
    overflow: hidden;
}

.sf-trend-chart {
    display: block;
    width: 100%;
    height: auto;
    max-height: 330px;
}

.sf-trend-chart-gridline {
    stroke: #31363c;
    stroke-width: 1.5;
}

.sf-trend-chart-axis,
.sf-trend-chart-tick {
    stroke: #aeb3b9;
    stroke-width: 2;
}

.sf-trend-chart-line {
    fill: none;
    stroke: #ff3333;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 6;
}

.sf-trend-chart-point {
    fill: #f5f5f2;
    stroke: #ff3333;
    stroke-width: 5;
}

.sf-trend-chart-axis-label,
.sf-trend-chart-date-label,
.sf-trend-chart-title-label {
    fill: #c8cbd0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
}

.sf-trend-chart-title-label {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.sf-trend-page .sf-trend-history {
    margin-bottom: 20px;
}

.sf-trend-page .sf-trend-history-row {
    gap: 14px;
    padding: 13px 8px;
}

.sf-trend-page .sf-history-date {
    font-size: 17px;
}

.sf-trend-page .sf-history-votes {
    font-size: 14px;
}

.sf-trend-page .sf-history-score {
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: 32px;
}

.sf-trend-page .sf-history-change {
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: 19px;
}

.sf-trend-page .sf-data-action-link {
    padding: 11px 15px;
    font-size: 14px;
}

@media (max-width: 700px) {
    body.sf-trend-page {
        padding: 5px;
    }

    .sf-trend-page .sf-trend-page-shell {
        width: calc(100vw - 10px);
        border-radius: 20px;
    }

    .sf-trend-page .sf-data-page {
        padding: 22px 16px;
    }

    .sf-trend-page .sf-data-page h1 {
        font-size: 38px;
    }

    .sf-trend-page .sf-trend-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .sf-trend-page .sf-trend-summary div {
        padding: 9px 7px;
    }

    .sf-trend-page .sf-trend-summary span {
        font-size: 11px;
    }

    .sf-trend-page .sf-trend-summary strong {
        font-size: 26px;
    }

    .sf-trend-chart-card {
        padding: 10px;
    }

    .sf-trend-chart-header h2 {
        font-size: 17px;
    }

    .sf-trend-chart {
        min-width: 620px;
    }

    .sf-trend-chart-wrap {
        overflow-x: auto;
    }
}


/* Portrait Trend geometry aligned to athlete card */
.sf-trend-page .sf-trend-page-shell {
    width: 980px;
    max-width: none;
    min-height: 1520px;
    display: flex;
    flex-direction: column;
    border-radius: 43px;
}

.sf-trend-page .sf-data-page-header {
    flex: 0 0 auto;
}

.sf-trend-page .sf-data-page {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 40px 44px 44px;
}

.sf-trend-page .sf-data-page h1 {
    font-size: 64px;
}

.sf-trend-page .sf-trend-summary {
    margin: 28px 0;
}

.sf-trend-page .sf-trend-chart-card {
    display: flex;
    min-height: 750px;
    flex-direction: column;
    margin: 24px 0 28px;
    padding: 24px;
}

.sf-trend-page .sf-trend-chart-header {
    flex: 0 0 auto;
    margin-bottom: 16px;
}

.sf-trend-page .sf-trend-chart-wrap {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
}

.sf-trend-page .sf-trend-chart {
    width: 100%;
    height: 650px;
    max-height: none;
    min-width: 0;
}

.sf-trend-page .sf-trend-history {
    flex: 0 0 auto;
    margin-top: 8px;
}

.sf-trend-page .sf-data-action-link {
    align-self: flex-start;
    margin-top: 8px;
}

/* Final mobile athlete and Trend presentation */
@media (max-width: 700px) {

    /*
     * Athlete card:
     * retain the established card geometry, but strengthen the
     * small Trend information that was difficult to read on a phone.
     */
    .sf-athlete-card-page:not(.sf-trend-page) .sf-trend-panel .sf-stat-label {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .sf-athlete-card-page:not(.sf-trend-page) .sf-trend-arrow {
        font-size: 78px;
    }

    .sf-athlete-card-page:not(.sf-trend-page) .sf-trend-result {
        font-size: 40px;
        letter-spacing: 2px;
    }

    .sf-athlete-card-page:not(.sf-trend-page) .sf-weeks-label {
        font-size: 16px;
    }

    .sf-athlete-card-page:not(.sf-trend-page) .sf-weeks-number {
        font-size: 48px;
    }

    /*
     * Trend page:
     * cancel whole-page miniature scaling on phones. Use normal
     * document flow, readable typography, and vertical scrolling.
     */
    body.sf-trend-page.sf-athlete-card-page {
        min-height: 100vh;
        padding: 5px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.sf-trend-page.sf-athlete-card-page .sf-profile-shell {
        position: relative;
        top: auto;
        left: auto;
        width: calc(100vw - 10px);
        max-width: none;
        min-height: 0;
        margin: 0 auto 12px;
        transform: none;
        border-radius: 20px;
    }

    .sf-trend-page .sf-data-page-header {
        min-height: 66px;
        padding: 12px 15px;
    }

    .sf-trend-page .sf-data-back-link {
        font-size: 13px;
    }

    .sf-trend-page .sf-data-logo {
        font-size: 25px;
    }

    .sf-trend-page .sf-data-page {
        display: block;
        padding: 20px 14px 25px;
    }

    .sf-trend-page .sf-data-kicker {
        margin-bottom: 6px;
        font-size: 13px;
    }

    .sf-trend-page .sf-data-page h1 {
        font-size: 36px;
    }

    .sf-trend-page .sf-data-subtitle {
        margin-top: 9px;
        font-size: 15px;
    }

    .sf-trend-page .sf-trend-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin: 18px 0;
    }

    .sf-trend-page .sf-trend-summary div {
        padding: 10px 7px;
    }

    .sf-trend-page .sf-trend-summary span {
        font-size: 11px;
        line-height: 1.15;
    }

    .sf-trend-page .sf-trend-summary strong {
        margin-top: 6px;
        font-size: 27px;
    }

    .sf-trend-page .sf-trend-chart-card {
        display: block;
        min-height: 0;
        margin: 18px 0 22px;
        padding: 11px;
    }

    .sf-trend-page .sf-trend-chart-header {
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .sf-trend-page .sf-trend-chart-header h2 {
        font-size: 18px;
    }

    .sf-trend-page .sf-trend-chart-header > span {
        font-size: 12px;
    }

    /*
     * The graph remains internally wide so its axes and dates stay
     * legible. Only the graph scrolls horizontally.
     */
    .sf-trend-page .sf-trend-chart-wrap {
        display: block;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .sf-trend-page .sf-trend-chart {
        width: 680px;
        min-width: 680px;
        height: auto;
        max-height: none;
    }

    .sf-trend-page .sf-trend-history {
        margin: 18px 0;
    }

    .sf-trend-page .sf-trend-history-row {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 13px 5px;
    }

    .sf-trend-page .sf-history-date {
        font-size: 16px;
    }

    .sf-trend-page .sf-history-score {
        font-size: 30px;
    }

    .sf-trend-page .sf-history-change {
        grid-column: 1 / -1;
        font-size: 17px;
        text-align: left;
    }

    .sf-trend-page .sf-data-action-link {
        display: block;
        width: 100%;
        margin-top: 16px;
        padding: 13px;
        text-align: center;
    }
}


/* Clarify live totals versus weekly snapshots */
.sf-trend-timing-note {
    margin: -10px 0 18px;
    color: var(--sf-silver);
    font-size: 14px;
    letter-spacing: 0.035em;
    line-height: 1.35;
}

@media (max-width: 700px) {
    .sf-trend-timing-note {
        margin: -7px 0 16px;
        font-size: 13px;
    }
}


/* High Noon vote confirmation toast */
.sf-vote-status-toast {
    position: fixed;
    z-index: 10000;
    top: 13px;
    left: 50%;
    width: min(680px, calc(100vw - 24px));
    padding: 12px 18px;
    transform: translateX(-50%);
    border: 2px solid #d7b46a;
    border-radius: 999px;
    background: rgba(10, 14, 18, 0.97);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.5);
    color: #f5f5f2;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.035em;
    line-height: 1.3;
    text-align: center;
}

@media (max-width: 700px) {
    .sf-vote-status-toast {
        top: 6px;
        width: calc(100vw - 12px);
        padding: 10px 12px;
        border-radius: 14px;
        font-size: 13px;
    }
}
