/* Moved from app/views/fantasy_contests/leaderboard.html.erb in B2, scoped to .ctx-public. Rebuilt in its own phase. */
.ctx-public .fc-page {
    --fk-red: var(--ink);
    --fk-bright: var(--ink);
    --fk-amber: var(--gold);
    --fk-coral: var(--ink);
    --fk-gold: var(--gold);
    --fk-silver: var(--ink-2);
    --fk-bronze: var(--ink-2);
    --fk-fg: var(--ink);
    --fk-muted: var(--ink-2);
    --fk-faint: var(--ink-2);
    --fk-surface: var(--surface-1);
    --fk-surface-2: var(--surface-2);
    --fk-hairline: var(--line);
    position: relative;
    overflow: hidden;
  }
.ctx-public .fc-glow {
    position: absolute;
    top: -240px; left: 50%;
    width: 1100px; height: 900px;
    transform: translateX(-50%);
    background: none;
    filter: blur(72px);
    opacity: 0.78;
    pointer-events: none;
    z-index: 0;
  }
.ctx-public .fc-wrap {
    position: relative;
    z-index: 1;
    max-width: 660px;
    margin: 0 auto;
    padding: 26px 16px 72px;
    font-family: var(--font);
    color: var(--fk-fg);
  }
.ctx-public .fc-hero {
    position: relative;
    border-radius: 22px;
    padding: 26px 22px 26px;
    overflow: visible;
    background: none;
    border: 1px solid var(--line);
    box-shadow: none;
  }
.ctx-public .fc-hero__top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
  }
.ctx-public .fc-crest {
    width: 56px; height: 56px;
    flex-shrink: 0;
    border-radius: 15px;
    object-fit: cover;
    background: var(--surface-1);
    border: 1px solid var(--line);
  }
.ctx-public .fc-crest--emoji {
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    background: none;
  }
.ctx-public .fc-status {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 11.5px; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase;
     
  }
.ctx-public .fc-status--open { background: var(--surface-2); color: var(--ink); }
.ctx-public .fc-status--live { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.ctx-public .fc-status--final { background: var(--line); color: var(--fk-fg); border: 1px solid var(--fk-hairline); }
.ctx-public .fc-status .dot {
    width: 7px; height: 7px; border-radius: 50%; background: currentColor;
    animation: fc-blink 1.3s infinite;
  }
@keyframes fc-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }
.ctx-public .fc-eyebrow {
    font-family: var(--font);
    font-size: 12px; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
    background: var(--surface-2);
    background-clip: border-box; background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    margin-bottom: 6px;
  }
.ctx-public .fc-title {
    font-family: var(--font);
    font-size: 30px; font-weight: 800;
    line-height: 1.12; letter-spacing: -0.4px;
    margin: 0 0 6px;
  }
.ctx-public .fc-meta { font-size: 14px; color: var(--fk-muted); font-weight: 500; }
.ctx-public .fc-meta b { color: var(--fk-fg); font-weight: 700; }
.ctx-public .fc-brag {
    margin-top: 18px;
    display: flex; align-items: center; gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    background: none;
    border: 1px solid var(--line);
  }
.ctx-public .fc-brag__rank {
    font-family: var(--font);
    font-size: 42px; font-weight: 900; line-height: 0.9;
    background: var(--surface-2);
    background-clip: border-box; background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    flex-shrink: 0;
  }
.ctx-public .fc-brag__text { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.ctx-public .fc-brag__text b { font-weight: 800; }
.ctx-public .fc-podium {
    display: grid;
    grid-template-columns: 1fr 1.12fr 1fr;
    align-items: end;
    gap: 10px;
    margin: 30px 0 8px;
  }
.ctx-public .fc-pod {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    border-radius: 16px 16px 0 0;
    padding: 0 8px;
  }
.ctx-public .fc-pod__crown { font-size: 24px; line-height: 1; margin-bottom: 4px; filter: none; }
.ctx-public .fc-pod__av {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font); font-weight: 800; font-size: 19px;
    color: var(--ink);
    border: 3px solid;
    margin-bottom: 8px;
  }
.ctx-public .fc-pod__name {
    font-weight: 700; font-size: 13.5px; line-height: 1.2;
    max-width: 100%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 3px;
  }
.ctx-public .fc-pod__pts {
    font-family: var(--font); font-weight: 800; font-size: 17px;
  }
.ctx-public .fc-pod__pts span { font-size: 10px; font-weight: 700; color: var(--fk-faint); letter-spacing: 0.5px; }
.ctx-public .fc-pod__base {
    width: 100%; margin-top: 10px;
    border-radius: 12px 12px 0 0;
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 9px;
    font-family: var(--font); font-weight: 900; font-size: 22px;
    color: var(--ink-2);
  }
.ctx-public .fc-pod--1 .fc-pod__av { border-color: var(--fk-gold); background: var(--surface-2); box-shadow: none; }
.ctx-public .fc-pod--1 .fc-pod__pts { color: var(--fk-gold); }
.ctx-public .fc-pod--1 .fc-pod__base { height: 96px; background: var(--surface-2); box-shadow: none; }
.ctx-public .fc-pod--1 { animation: fc-rise1 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
.ctx-public .fc-pod--2 .fc-pod__av { border-color: var(--fk-silver); background: var(--surface-2); }
.ctx-public .fc-pod--2 .fc-pod__pts { color: var(--fk-silver); }
.ctx-public .fc-pod--2 .fc-pod__base { height: 70px; background: var(--surface-2); }
.ctx-public .fc-pod--2 { animation: fc-rise 0.5s 0.05s cubic-bezier(0.34,1.56,0.64,1) both; }
.ctx-public .fc-pod--3 .fc-pod__av { border-color: var(--fk-bronze); background: var(--surface-2); }
.ctx-public .fc-pod--3 .fc-pod__pts { color: var(--fk-bronze); }
.ctx-public .fc-pod--3 .fc-pod__base { height: 56px; background: var(--surface-2); }
.ctx-public .fc-pod--3 { animation: fc-rise 0.5s 0.1s cubic-bezier(0.34,1.56,0.64,1) both; }
.ctx-public .fc-pod.me .fc-pod__name::after {
    content: "YOU"; margin-left: 6px; font-size: 9px; font-weight: 900;
    color: var(--fk-bright); letter-spacing: 0.5px; vertical-align: middle;
  }
@keyframes fc-rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fc-rise1 { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
.ctx-public .fc-list { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.ctx-public .fc-row {
    display: flex; align-items: center; gap: 13px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--fk-surface);
    border: 1px solid var(--fk-hairline);
    transition: background 0.15s ease, transform 0.15s ease;
  }
.ctx-public .fc-row.me {
    background: none;
    border-color: var(--line);
    box-shadow: none;
  }
.ctx-public .fc-rank {
    width: 30px; flex-shrink: 0; text-align: center;
    font-family: var(--font); font-weight: 800; font-size: 16px;
    color: var(--fk-faint);
  }
.ctx-public .fc-av {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font); font-weight: 800; font-size: 13px;
    color: var(--fk-fg);
    background: var(--fk-surface-2);
    border: 1px solid var(--fk-hairline);
  }
.ctx-public .fc-row.me .fc-av { background: var(--surface-2); border-color: var(--line); }
.ctx-public .fc-pname {
    flex: 1; min-width: 0;
    font-weight: 600; font-size: 15px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
.ctx-public .fc-youtag {
    margin-left: 7px; font-size: 9.5px; font-weight: 900;
    color: var(--fk-bright); letter-spacing: 0.5px;
    padding: 2px 6px; border-radius: 5px;
    background: var(--surface-2); vertical-align: middle;
  }
.ctx-public .fc-pts {
    font-family: var(--font); font-weight: 800; font-size: 16px;
    flex-shrink: 0;
  }
.ctx-public .fc-rowlink { transition: transform 0.12s ease, border-color 0.12s ease; }
.ctx-public .fc-rowlink:hover {  border-color: var(--line); }
.ctx-public .fc-chev { margin-left: 6px; color: var(--fk-faint); font-weight: 800; }
.ctx-public a.fc-pod:hover {  }
.ctx-public .fc-pts span { font-size: 9.5px; font-weight: 700; color: var(--fk-faint); margin-left: 3px; letter-spacing: 0.5px; }
.ctx-public .fc-board-head {
    display: flex; align-items: center; justify-content: space-between;
    margin: 30px 2px 4px;
  }
.ctx-public .fc-board-title {
    font-family: var(--font); font-size: 13px; font-weight: 800;
    letter-spacing: 1.5px; text-transform: uppercase; color: var(--fk-muted);
  }
.ctx-public .fc-board-count {
    font-size: 12px; font-weight: 700; color: var(--fk-faint);
    letter-spacing: 0.5px;
  }
.ctx-public .fc-empty {
    margin-top: 28px;
    text-align: center;
    padding: 44px 22px;
    border-radius: 20px;
    background: var(--fk-surface);
    border: 1px solid var(--fk-hairline);
  }
.ctx-public .fc-empty__emoji { font-size: 46px; margin-bottom: 14px; filter: none; }
.ctx-public .fc-empty__title { font-family: var(--font); font-size: 19px; font-weight: 800; margin-bottom: 7px; }
.ctx-public .fc-empty__sub { font-size: 14.5px; color: var(--fk-muted); line-height: 1.5; }
.ctx-public .fc-cta { margin-top: 30px; text-align: center; }
.ctx-public .fc-cta-btn {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--ink);
    color: var(--on-ink); text-decoration: none;
    font-family: var(--font); font-weight: 800; font-size: 16.5px;
    padding: 16px 32px; border-radius: 14px;
    box-shadow: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
.ctx-public .fc-cta-btn:hover {  box-shadow: none; }
.ctx-public .fc-cta-sub { margin-top: 12px; font-size: 13px; color: var(--fk-muted); max-width: 360px; margin-left: auto; margin-right: auto; line-height: 1.5; }
.ctx-public .fc-login-link { font-family: var(--font); font-size: 13px; font-weight: 800; color: var(--fk-amber); background: none; border: none; cursor: pointer; padding: 3px 2px; margin-top: 4px; }
.ctx-public .fc-login-link:hover { color: var(--fk-gold); }
.ctx-public .fc-scroll-sentinel { height: 1px; }
.ctx-public .fc-scroll-loading {
    text-align: center;
    padding: 18px 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fk-faint);
    letter-spacing: 0.3px;
  }
@media (max-width: 480px) {
.ctx-public .fc-title { font-size: 25px; }
.ctx-public .fc-podium { gap: 6px; }
.ctx-public .fc-pod__av { width: 52px; height: 52px; font-size: 17px; }
.ctx-public .fc-pod__name { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
.ctx-public .fc-pod--1,
.ctx-public .fc-pod--2,
.ctx-public .fc-pod--3 { animation: none; }
.ctx-public .fc-status .dot { animation: none; }
.ctx-public .fc-cta-btn { transition: none; }
}
