/* ArmArena's approved SVG identity and tournament palette. Public app only;
   OBS retains its transparent canvas and independent composition. */
:root {
  --bg: #07090d;
  --panel: #11151d;
  --panel2: #191e29;
  --border: #ffffff1f;
  --text: #f7f8fb;
  --muted: #aeb7c8;
  --red: #e7313a;
  --gold: #d9a647;
  --green: #4de27b;
  --cyan: #3bd4ff;
  --radius: 8px;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
}
body { background: radial-gradient(ellipse at 95% 0%, #e7313a10, transparent 45%), var(--bg); }
.sidebar { background: linear-gradient(160deg, #181318 0%, #0c0f15 48%); border-right-color: #ffffff14; }
.brand { gap: 10px; min-width: 0; }
.brand-mark { display: block; width: 56px; height: auto; flex-shrink: 0; }
.brand-copy { min-width: 0; }
.brand-wordmark { display: block; width: 124px; max-width: 100%; height: auto; }
.brand small { margin-top: 7px; font-size: 8px; letter-spacing: 1.35px; color: #c9ced9; white-space: nowrap; }
.header-brands { min-width: 0; }
.header-federation { display: none; }
.nav-caption { color: #929bad; }
.sidebar nav a { border-radius: 6px; }
.sidebar nav a.active { background: linear-gradient(90deg, #e7313a30, #e7313a08); border-color: #e7313a66; box-shadow: inset 3px 0 var(--red); }
.sidebar nav a.active span { color: #ff6a70; }
.join-link { border: 1px solid #e7313a5e; border-radius: 6px; padding: 12px; margin: 25px 0 0; background: #e7313a12; font-weight: 650; }
.join-link:hover { background: #e7313a26; border-color: var(--red); }
.topbar { background: #0b0e14ad; border-bottom-color: #ffffff12; }
.hero {
  isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(200px, .8fr);
  align-items: center; gap: 20px; padding: clamp(24px, 3.2vw, 46px); min-height: 335px;
  margin-bottom: 28px; border: 1px solid #e7313a50; border-radius: 10px;
  background: radial-gradient(ellipse at 96% 65%, #e7313a38, transparent 56%), linear-gradient(115deg, #151923 0%, #0c1018 58%, #28131c 100%);
  box-shadow: 0 22px 70px #0005, inset 0 1px #ffffff08;
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(125deg, transparent 0 89px, #ffffff03 90px 91px, transparent 92px 180px); }
.hero::after { content: ''; position: absolute; width: 4px; height: 72%; top: 14%; left: 0; background: var(--red); transform: none; box-shadow: 0 0 28px #e7313a88; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 3.65vw, 59px); line-height: 1.05; letter-spacing: -1.9px; margin-bottom: 20px; }
.hero .eyebrow { color: #ff7279; font-size: 10px; letter-spacing: 2px; font-weight: 750; margin-bottom: 18px; }
.hero p { color: #c2cad8; font-size: 14px; line-height: 1.65; }
.hero .hero-meta { flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: #aeb7c8; font-size: 11px; }
.hero-meta strong { color: white; font-size: 17px; }
.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 34px 12px; align-self: stretch; min-width: 0; }
.hero-art::before { content: ''; position: absolute; inset: 8% 0; background: radial-gradient(ellipse, #e7313a36, transparent 68%); z-index: -1; }
.hero-art::after { content: ''; position: absolute; width: 65%; height: 120%; background: linear-gradient(180deg, #e7313a1a, #e7313a06); border-inline: 1px solid #e7313a3d; transform: skew(-24deg); z-index: -1; }
.hero-mark { width: min(100%, 300px); height: auto; filter: drop-shadow(0 12px 24px #0008); }
.hero-wordmark { width: min(90%, 228px); height: auto; }
.hero-art-caption { color: #c1c7d2; font-size: 9px; font-weight: 650; letter-spacing: 3px; text-align: center; }
.hero-art-hands { display: flex; gap: 22px; margin-top: 10px; color: #aeb7c8; font-size: 9px; letter-spacing: 1.5px; }
.hero-art-hands span::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 7px; background: var(--red); transform: rotate(45deg); }
.hero-art-hands span:last-child::before { background: var(--cyan); }
.panel { background: linear-gradient(145deg, #171d28, #10141c 70%); box-shadow: 0 12px 35px #0002; }
.ranking-panel { position: relative; overflow: hidden; border-top: 2px solid var(--red); }
.ranking-panel:nth-child(2) { border-top-color: var(--cyan); }
.ranking-panel header { padding-bottom: 18px; border-bottom: 1px solid #ffffff0d; }
.hand-icon { border-radius: 6px; color: #ff737a; background: #e7313a1c; border-color: #e7313a55; }
.ranking-panel:nth-child(2) .hand-icon { color: #72e1ff; border-color: #3bd4ff55; background: #3bd4ff12; }
.ranking-panel .badge { color: #d5dcea; font-weight: 650; }
.rank-item { border-radius: 6px; transition: background .15s ease; }
.rank-item:hover { background: #ffffff09; }
.rank-item.champion { background: linear-gradient(110deg, #d9a64727, #d9a64706 78%); border-color: #d9a6476b; box-shadow: inset 3px 0 var(--gold); padding: 18px 12px; margin-bottom: 8px; }
.rank-item.champion .rank-number { font-size: 27px; }
.rank-item.champion .avatar { border-color: #d9a64766; background: linear-gradient(135deg, #574326, #292622); color: #ffe0a0; }
.rank-item.champion .name small { color: #e5bf78; }
.rank-number { color: #a9b4c8; }
.avatar { background: linear-gradient(140deg, #38445a, #1e2533); color: #dce5f5; }
.rank-move { color: #70e993; }
.rank-tail { color: #a4adbd; border-top: 1px solid var(--border); padding-top: 16px; }
.empty-symbol { border-color: #aeb7c844; background: #ffffff03; color: #c6cfdf; }
button.primary,.button.primary { background: linear-gradient(135deg, #f04049, #c7222b); border-color: #fa636b80; box-shadow: 0 5px 20px #e7313a20; }
button.primary:hover,.button.primary:hover { background: #ee3a44; }
.tabs { background: #0f131b; border-radius: 8px; }
.tabs a.active { background: #e7313a20; box-shadow: inset 0 -2px var(--red); }
.event-card { border-top: 2px solid #e7313a70; }
.event-card:hover { border-color: #e7313a99; }
dialog { background: #141923; border-radius: 10px; }
@media (max-width:1100px) {
  .brand-mark { width: 46px; }
  .brand-wordmark { width: 115px; }
  .brand small { font-size: 7px; letter-spacing: 1px; }
  .hero { grid-template-columns: minmax(0, 1.3fr) minmax(160px, .7fr); padding: 28px; }
  .hero h1 { font-size: 39px; }
  .hero-art { padding-inline: 0; }
}
@media (max-width:760px) {
  .sidebar { padding: 20px 18px 12px; }
  .brand { max-width: 205px; }
  .brand-mark { width: 52px; }
  .brand-wordmark { width: 126px; }
  .brand small { font-size: 7px; letter-spacing: 1.2px; }
  .sidebar-bottom { top: 24px; }
  .sidebar nav { margin-top: 20px; }
  .sidebar .join-link { background: #e7313a12; margin-top: 12px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; padding: 26px 23px 0; }
  .hero h1 { font-size: clamp(33px, 7vw, 46px); letter-spacing: -1.2px; }
  .hero p { max-width: none; font-size: 13px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1.4px; }
  .hero .hero-meta { margin-top: 20px; }
  .hero-art { padding: 28px 0 23px; margin-top: 24px; border-top: 1px solid #ffffff12; gap: 11px; }
  .hero-mark { width: 135px; }
  .hero-wordmark { width: 155px; }
  .hero-art-caption { font-size: 8px; letter-spacing: 2px; }
  .hero-art-hands { display: none; }
  .hero-art::after { width: 140px; height: 135%; top: -18%; }
  .ranking-panel header { padding-bottom: 14px; }
}
@media (max-width:400px) {
  .sidebar-bottom { position: static; display: flex; align-items: center; justify-content: space-between; margin-top: 12px; text-align: left; }
  .sidebar-bottom .connection { justify-content: flex-start; }
  .hero { padding-inline: 20px; }
  .rank-item { gap: 8px; }
  .rank-item.champion { padding-inline: 8px; }
}
@media (prefers-reduced-motion:reduce) { .rank-item { transition: none; } }

/* Athlete portraits: one consistent 4:5 frame, prominent champion. */
.video-player { width: 100%; aspect-ratio: 16 / 9; background: #050608; border: 1px solid var(--border); }
.video-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-external { margin-top: 12px; }
.video-preview:not(:empty) { margin-top: 18px; }
.event-broadcast { max-width: 1080px; }
.fight-actions { margin-top: 16px; flex-wrap: wrap; }
.ranking-poster-preview { display: block; width: 100%; height: auto; border: 1px solid var(--border); }
.avatar { border-radius: 8px; width: 48px; height: 60px; }
.avatar img { display: block; }
.rank-item { gap: 14px; padding-block: 14px; }
.rank-item .avatar { width: 64px; height: 80px; border-radius: 6px; }
.rank-item.champion { position: relative; gap: 16px; padding: 18px 14px; min-height: 178px; background: radial-gradient(ellipse at 10% 20%, #d9a64726, transparent 75%), #15181f; }
.rank-item.champion .avatar { width: 112px; height: 140px; border-radius: 6px; box-shadow: 0 6px 24px #0005; }
.rank-item.champion .name { font-size: 19px; line-height: 1.35; }
.champion-label { display: block; font-size: 9px; line-height: 1.5; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 9px; }
.rank-item.champion .name small { margin-top: 9px; font-size: 12px; }
.rank-item.champion .rank-move { align-self: flex-start; font-size: 10px; padding-top: 5px; }
.rank-item.compact .avatar { width: 36px; height: 45px; }
.athlete-card .avatar { width: 88px; height: 110px; border-radius: 6px; }
.profile-hero .avatar.large { width: 160px; height: 200px; border-radius: 8px; }
.photo-editor { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 24px; align-items: center; margin: 20px 0; padding: 18px; border: 1px solid var(--border); border-radius: 8px; background: #090d14; }
.photo-editor .photo-preview { margin: 0; }
.photo-editor .avatar.large { width: 176px; height: 220px; border-radius: 6px; }
.photo-editor h3 { margin: 0; }
.crop-control { display: block; font-size: 12px; color: var(--muted); margin: 12px 0; }
.crop-control input[type=range] { display: block; padding: 0; width: 100%; margin-top: 8px; accent-color: var(--red); cursor: pointer; }
@media(max-width:1100px) and (min-width:761px) { .ranking-panel .rank-item.champion { flex-wrap: wrap; } .ranking-panel .rank-item.champion .rank-body { flex-basis: 120px; } }
@media(max-width:760px) {
 .rank-item.champion { gap: 10px; padding: 14px 8px; min-height: 150px; }
 .rank-item.champion .avatar { width: 88px; height: 110px; }
 .rank-item.champion .name { font-size: 15px; }
 .rank-item.champion .rank-number { width: 18px; font-size: 22px; }
 .rank-item.champion .rank-move { position: absolute; right: 9px; top: 4px; font-size: 8px; }
 .champion-label { font-size: 8px; letter-spacing: .7px; margin-bottom: 6px; }
 .rank-item:not(.champion):not(.compact) .avatar { width: 52px; height: 65px; }
 .profile-hero .avatar.large { width: 104px; height: 130px; }
 .profile-hero { flex-wrap: wrap; }
 .photo-editor { grid-template-columns: 1fr; gap: 18px; padding: 14px; }
 .photo-editor .photo-preview { justify-self: center; }
}

.passport-photo-preview{display:flex;align-items:center;gap:18px;margin:18px 0}.passport-photo-preview .avatar.large{width:112px;height:140px;border-radius:6px}

/* The public league is a sports publication; the organizer keeps the console shell. */
body.public-view { background: #090a0c; }
.public-view .shell { display: block; position: relative; }
.public-view .sidebar { position: relative; top: auto; width: 100%; max-width: 1360px; height: auto; margin: 0 auto; padding: 23px 106px 23px 32px; display: flex; flex-direction: row; align-items: center; gap: 28px; background: none; border: 0; border-bottom: 1px solid #ffffff1c; }
.public-view .sidebar .brand { flex: 0 0 auto; }
.public-view .header-brands { display: flex; flex: 0 0 auto; align-items: center; gap: 16px; }
.public-view .header-federation { display: flex; flex: 0 0 auto; align-items: center; padding-left: 16px; border-left: 1px solid #ffffff26; }
.public-view .header-federation img { display: block; width: 52px; height: 52px; object-fit: contain; }
.header-federation:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; border-radius: 2px; }
.public-view .brand-mark { width: 44px; }
.public-view .brand-wordmark { width: 137px; }
.public-view .brand small { margin-top: 6px; font-size: 7px; letter-spacing: 1.7px; }
.public-view .nav-caption, .public-view .sidebar-bottom { display: none; }
.public-view .sidebar nav { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0; flex: 1; }
.public-view .sidebar nav a { padding: 12px 13px; border: 0; border-radius: 0; color: #9b9fa8; font-size: 13px; font-weight: 600; white-space: nowrap; }
.public-view .sidebar nav a span { display: none; }
.public-view .sidebar nav a:hover { color: #fff; background: none; }
.public-view .sidebar nav a.active { color: #fff; background: none; box-shadow: inset 0 -2px var(--red); }
.public-view .join-link { flex: 0 0 auto; margin: 0; padding: 10px 14px; border: 1px solid #ffffff30; background: none; border-radius: 3px; gap: 14px; font-size: 12px; }
.public-view .join-link:hover { border-color: var(--red); }
.public-view .topbar { position: absolute; right: max(32px, calc((100% - 1296px) / 2)); top: 24px; width: auto; height: 38px; padding: 0; border: 0; background: none; }
.public-view .topbar > span, .public-view .topbar .badge { display: none; }
.public-view .topbar .link-button { padding: 8px 0; font-size: 11px; color: #9b9fa8; }
.public-view main { max-width: 1360px; padding: 40px 32px 56px; min-height: calc(100vh - 153px); }
.public-view footer { max-width: 1360px; margin: 0 auto; padding: 22px 32px; border-top: 1px solid #ffffff13; color: #7d828c; font-size: 10px; }
.public-view footer > span { letter-spacing: 2px; }
.public-view footer a { letter-spacing: 0; }
.public-view .panel { background: #111317; border-color: #ffffff16; box-shadow: none; border-radius: 4px; }
.public-view .heading h1 { font-size: clamp(30px, 3vw, 42px); font-weight: 800; letter-spacing: -1.2px; }
.rankings-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.rankings-intro .eyebrow { margin: 0 0 9px; color: #8d929c; font-size: 9px; letter-spacing: 2.6px; }
.rankings-intro h1 { margin: 0; font-size: clamp(34px, 3.6vw, 48px); font-weight: 850; line-height: 1.08; letter-spacing: -1.8px; }
.rankings-intro p:not(.eyebrow) { margin: 13px 0 0; font-size: 13px; color: #a1a5ae; }
.rankings-update { display: grid; gap: 7px; padding-bottom: 2px; color: #8d929c; text-align: right; font-size: 11px; }
.rankings-update strong { color: #e8e9ec; font-weight: 600; }
.rankings-grid { gap: 38px; align-items: start; }
.public-view .ranking-panel { padding: 0; border: 0; background: none; box-shadow: none; overflow: visible; }
.public-view .ranking-panel header { min-height: 74px; margin: 0 0 20px; padding: 0 0 15px; border-bottom: 2px solid var(--red); align-items: flex-end; }
.ranking-category { margin: 0 0 6px; font-size: 9px; font-weight: 600; letter-spacing: 1.8px; color: #838995; }
.public-view .hand-title { margin: 0; font-size: 27px; font-weight: 800; letter-spacing: -.6px; line-height: 1.2; }
.public-view .hand-icon, .public-view .ranking-panel:nth-child(2) .hand-icon { width: 24px; height: 25px; border: 0; background: none; color: #777e8a; font-size: 14px; border-radius: 0; }
.ranking-count { color: #8d929c; font-size: 10px; white-space: nowrap; padding-bottom: 3px; }
.public-view .rank-list > li { margin: 0; }
.public-view .rank-list > li + li { border-top: 1px solid #ffffff14; }
.public-view .rank-item { border: 0; border-radius: 0; padding: 14px 2px; gap: 18px; min-height: 108px; }
.public-view .rank-item:hover { background: #ffffff03; }
.public-view .rank-number { width: 30px; color: #b2b7c0; font-size: 25px; font-weight: 750; letter-spacing: -.8px; }
.public-view .rank-item .avatar { width: 64px; height: 80px; border: 0; border-radius: 2px; background: #20242c; color: #acb3c0; font-size: 20px; }
.public-view .rank-item .name { font-size: 18px; font-weight: 750; line-height: 1.25; }
.public-view .rank-item .name small { margin-top: 7px; font-size: 11px; font-weight: 400; color: #979da8; }
.public-view .rank-move { margin-left: auto; font-size: 9px; padding-right: 7px; font-weight: 600; letter-spacing: .6px; }
.public-view .rank-item.champion { display: grid; grid-template-columns: 168px minmax(0, 1fr); position: relative; align-items: center; gap: 24px; padding: 0 20px 0 0; margin: 0 0 18px; min-height: 210px; background: #13151a; border: 0; border-radius: 2px; box-shadow: none; overflow: hidden; }
.public-view .rank-item.champion:hover { background: #191b21; }
.public-view .rank-item.champion .avatar { grid-column: 1; grid-row: 1; width: 168px; height: 210px; border: 0; border-radius: 0; box-shadow: none; background: #252a33; color: #9aa3b2; font-size: 38px; }
.public-view .rank-item.champion .rank-number { position: absolute; top: 10px; left: 11px; z-index: 1; display: grid; place-items: center; width: 25px; height: 29px; color: #fff; font-size: 18px; background: #090a0cdc; border-left: 2px solid var(--red); }
.public-view .rank-item.champion .rank-body { grid-column: 2; padding: 28px 0 24px; }
.public-view .champion-label { font-size: 9px; line-height: 1.3; letter-spacing: 2px; color: #f25259; font-weight: 700; margin-bottom: 14px; }
.public-view .champion .rank-athlete-name { display: block; font-size: clamp(23px, 2.15vw, 31px); line-height: 1.07; font-weight: 850; letter-spacing: -.8px; }
.public-view .champion .rank-athlete-name > span { display: block; }
.public-view .rank-item.champion .name small { margin-top: 12px; font-size: 11px; color: #a3a8b3; }
.champion-profile { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: #c6c9d0; font-size: 10px; line-height: 1.3; font-weight: 400; }
.champion-profile > span { color: #f25259; font-size: 16px; }
.public-view .rank-item.champion .rank-move { position: absolute; top: 13px; right: 6px; font-size: 8px; padding-top: 0; }
.public-view .rank-tail { border: 0; margin: 0; padding: 22px 2px 8px; color: #707887; font-size: 9px; }
.public-view .rank-item.compact { min-height: 68px; padding: 11px 2px; }
.public-view .rank-item.compact .avatar { width: 36px; height: 45px; font-size: 12px; }
.public-view .rank-item.compact .rank-number { font-size: 17px; }
.public-view .rank-item.compact .name { font-size: 14px; font-weight: 600; }
.public-view .rank-item.compact .name small { margin-top: 4px; font-size: 10px; }
.public-view .athlete-card { gap: 20px; min-height: 150px; border-width: 0 0 1px; padding: 18px 0; background: none; border-radius: 0; }
.public-view .athlete-card .avatar { width: 88px; height: 110px; border: 0; border-radius: 2px; }
.public-view .athlete-card .name { font-size: 17px; line-height: 1.25; }
.public-view .athlete-card .name small { margin-top: 8px; }
.public-view .profile-hero .avatar.large { width: 184px; height: 230px; border-radius: 2px; border: 0; }
.public-view .event-card { border-top: 2px solid var(--red); }
@media (max-width:1100px) {
  .public-view .sidebar { padding-left: 24px; padding-right: 88px; gap: 14px; }
  .public-view .brand-mark { width: 36px; }
  .public-view .brand-wordmark { width: 119px; }
  .public-view .sidebar nav a { padding-inline: 10px; font-size: 12px; }
  .public-view .topbar { right: 24px; }
  .public-view .join-link { padding-inline: 10px; gap: 8px; font-size: 11px; }
  .public-view main { padding-inline: 24px; }
  .rankings-grid { gap: 26px; }
  .public-view .rank-item.champion { grid-template-columns: 136px minmax(0, 1fr); gap: 18px; padding-right: 14px; min-height: 188px; }
  .public-view .rank-item.champion .avatar { width: 136px; height: 170px; }
  .public-view .champion .rank-athlete-name { font-size: 24px; }
  .public-view .rank-item.champion .rank-body { padding-block: 28px 18px; }
  .public-view .champion-label { font-size: 8px; letter-spacing: 1.3px; }
  .champion-profile { margin-top: 22px; font-size: 9px; gap: 8px; }
  .public-view .rank-item { gap: 14px; }
  .public-view .rank-item .name { font-size: 16px; }
}
@media (max-width:1000px) {
  .public-view .sidebar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 20px 24px 0; }
  .public-view .header-brands { grid-row: 1; grid-column: 1; }
  .public-view .sidebar .brand { max-width: none; }
  .public-view .sidebar nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; gap: 12px; overflow-x: auto; margin: 0; }
  .public-view .sidebar nav a { padding: 12px 4px 15px; font-size: 12px; }
  .public-view .join-link { display: flex; grid-row: 1; grid-column: 2; margin-right: 60px; }
  .public-view .topbar { top: 23px; right: 24px; }
}
@media (max-width:760px) {
  .public-view .sidebar { padding: 19px 18px 0; gap: 11px; }
  .public-view .brand-mark { width: 34px; }
  .public-view .brand-wordmark { width: 114px; }
  .public-view .brand small { font-size: 6px; letter-spacing: 1.2px; }
  .public-view .join-link { margin-right: 50px; font-size: 10px; padding: 8px 9px; gap: 7px; }
  .public-view .topbar { top: 19px; right: 18px; }
  .public-view .topbar .link-button { font-size: 10px; }
  .public-view .sidebar nav { justify-content: space-between; gap: 16px; }
  .public-view .sidebar nav a { font-size: 11px; padding-bottom: 13px; }
  .public-view main { padding: 30px 18px 40px; }
  .public-view footer { padding: 18px; font-size: 9px; }
  .rankings-intro { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 30px; }
  .rankings-intro h1 { font-size: 36px; letter-spacing: -1.2px; }
  .rankings-intro p:not(.eyebrow) { font-size: 12px; margin-top: 11px; }
  .rankings-update { display: flex; text-align: left; gap: 8px 18px; font-size: 10px; flex-wrap: wrap; }
  .rankings-grid { grid-template-columns: 1fr; gap: 38px; }
  .public-view .ranking-panel header { min-height: 61px; margin-bottom: 16px; padding-bottom: 13px; }
  .public-view .hand-title { font-size: 25px; }
  .ranking-category { font-size: 8px; letter-spacing: 1.4px; }
  .public-view .rank-item.champion { grid-template-columns: minmax(136px, 42%) minmax(0, 1fr); gap: 20px; padding-right: 17px; min-height: 194px; }
  .public-view .rank-item.champion .avatar { width: 100%; height: auto; aspect-ratio: 4 / 5; }
  .public-view .champion .rank-athlete-name { font-size: clamp(24px, 6.6vw, 31px); }
  .public-view .rank-item.champion .rank-number { font-size: 18px; width: 25px; }
  .public-view .rank-item.champion .rank-move { top: 10px; right: 4px; }
  .public-view .rank-item .name { font-size: 17px; }
  .public-view .rank-item:not(.champion):not(.compact) .avatar { width: 60px; height: 75px; }
  .public-view .rank-item { min-height: 103px; gap: 16px; }
  .public-view .rank-number { font-size: 23px; width: 25px; }
  .public-view .athlete-card { min-height: 150px; }
  .public-view .profile-hero .avatar.large { width: 120px; height: 150px; }
}

@media (max-width:620px) {
  .public-view .header-brands { grid-column: 1 / -1; padding-right: 52px; gap: 12px; }
  .public-view .header-federation { padding-left: 12px; }
  .public-view .header-federation img { width: 44px; height: 44px; }
  .public-view .sidebar .join-link { grid-row: 2; grid-column: 1 / -1; justify-self: start; margin: 0; padding: 8px 12px; }
  .public-view .sidebar nav { grid-row: 3; }
}
.site-footer { display:block; }
.footer-bottom,.footer-links { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.footer-bottom { justify-content:space-between; }
.project-credit { display:none; }
.public-view .project-credit { display:flex; align-items:center; gap:26px; padding:24px 0 28px; margin-bottom:22px; border-top:1px solid #ffffff18; border-bottom:1px solid #ffffff0d; font-size:13px; line-height:1.7; letter-spacing:normal; }
.federation-logo { display:block; flex:0 0 88px; border-radius:4px; }
.federation-logo img { display:block; width:88px; height:128px; object-fit:contain; filter:grayscale(1); }
.project-credit-copy { min-width:0; max-width:850px; }
.project-credit-copy p { margin:0; }
.project-credit-copy .project-participation { color:#c6cbd3; }
.project-credit-copy .project-author { margin-top:9px; color:#929cab; }
.project-credit-copy strong { font-weight:650; color:#e0e4eb; }
.project-credit-copy a { color:inherit; text-decoration:underline; text-decoration-color:#c6cbd345; text-underline-offset:3px; }
.project-credit-copy a:hover { color:#fff; text-decoration-color:#fff9; }
.site-footer a:focus-visible { outline:2px solid #b6c5d7; outline-offset:5px; }
@media (max-width:760px) {
  .public-view .project-credit { align-items:flex-start; gap:16px; padding:22px 0; margin-bottom:20px; font-size:12px; line-height:1.65; }
  .federation-logo { flex-basis:64px; }
  .federation-logo img { width:64px; height:94px; }
  .footer-bottom { align-items:flex-start; gap:15px; }
  .footer-links { gap:8px; }
  .site-footer .button.small { font-size:10px; letter-spacing:normal; }
}
@media (max-width:374px) {
  .public-view .brand { gap: 6px; }
  .public-view .brand-mark { width: 27px; }
  .public-view .brand-wordmark { width: 99px; }
  .public-view .brand small { letter-spacing: .7px; }
  .public-view .join-link { padding-inline: 7px; margin-right: 44px; }
  .public-view .rank-item.champion { grid-template-columns: 128px minmax(0, 1fr); gap: 16px; }
  .public-view .champion .rank-athlete-name { font-size: 23px; }
  .public-view .champion-profile { font-size: 8px; gap: 4px; }
}
