/* v69 — metallic podium inspired by the approved ranking reference.
   All rules stay within the ranking page; avatar and player data remain live. */
.ranking-page .ranking-highlights-section { container-type: inline-size; }
.ranking-page #ranking-highlights {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.08fr) minmax(0,1fr);
  grid-template-areas: "silver gold bronze";
  align-items: end;
  min-height: 280px;
  gap: clamp(12px, 2vw, 26px);
  margin: 54px 0 10px;
}
.ranking-page #ranking-highlights .podium-card {
  --metal: #a9adb3;
  --metal-edge: #d4d6d9;
  --metal-shadow: #c8c8c9;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 0;
  padding: 35px 12px 20px;
  border: 1px solid var(--metal-edge);
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(147deg, #fff 8%, #f9f9f9 50%, #eeedef 100%);
  box-shadow: 0 9px 0 -1px var(--metal-shadow), 0 21px 26px -14px #4943374d, inset 0 0 0 2px #ffffffa6;
  isolation: isolate;
}
.ranking-page #ranking-highlights .podium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(34deg, #b6b8bc12 0 28%, transparent 28%), linear-gradient(-35deg, #96989e0c 0 30%, transparent 30%);
  pointer-events: none;
}
.ranking-page #ranking-highlights .podium-card--1 {
  grid-area: gold;
  --metal: #d7a340;
  --metal-edge: #e1b45c;
  --metal-shadow: #c79b43;
  padding-top: 36px;
  padding-bottom: 0;
  background: linear-gradient(145deg, #fffefb 5%, #fffaf0 60%, #faedcc 100%);
  box-shadow: 0 3px 0 -1px #c99530, 0 19px 31px -9px #d7a44552, inset 0 0 0 2px #fff9e9;
}
.ranking-page #ranking-highlights .podium-card--2 { grid-area: silver; margin-bottom: 20px; }
.ranking-page #ranking-highlights .podium-card--3 {
  grid-area: bronze;
  margin-bottom: 20px;
  --metal: #c08b6d;
  --metal-edge: #dec1b0;
  --metal-shadow: #d4bbae;
  background: linear-gradient(145deg, #fffefd 5%, #faf5f1 65%, #f0e0d6 100%);
}
.ranking-page #ranking-highlights .podium-card--1::before {
  background: linear-gradient(30deg, #dab26010 0 25%, transparent 25%), linear-gradient(-35deg, #d6a4430c 0 32%, transparent 32%);
}
.ranking-page .podium-crown {
  position: absolute;
  width: 66px;
  height: 60px;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 3px #4b3f292b);
  overflow: visible;
}
.ranking-page .podium-card--1 .podium-crown { width: 80px; height: 73px; top: -45px; }
.ranking-page .podium-avatar-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(158px,100%);
  height: 90px;
  margin-bottom: 12px;
}
.ranking-page .podium-card--1 .podium-avatar-wrap { width: min(185px,100%); height: 113px; }
.ranking-page .podium-portrait {
  display: block;
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 1px solid var(--metal-edge);
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg,#faf4e9,#e9dfcf);
  box-shadow: 0 1px 0 #fff;
}
.ranking-page .podium-card--1 .podium-portrait { width: 91px; height: 91px; padding: 9px; }
.ranking-page .podium-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.ranking-page .podium-laurels { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--metal); opacity: .85; }
.ranking-page #ranking-highlights .podium-name {
  max-width: 100%;
  margin: 0;
  font: 400 clamp(18px,2vw,25px)/1.35 var(--serif);
  letter-spacing: -.055em;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.ranking-page #ranking-highlights .podium-points {
  margin: 7px 0 0;
  color: #26231f;
  font: 500 15px/1.4 var(--body-font);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.ranking-page .podium-place {
  margin-top: 16px;
  color: #756c64;
  font: 600 9px/1.5 var(--ui-font);
  letter-spacing: .07em;
}
.ranking-page .podium-card--2 .podium-place,
.ranking-page .podium-card--3 .podium-place { display: none; }
.ranking-page .podium-card--1 .podium-place {
  align-self: stretch;
  margin: 16px -12px 0;
  padding: 11px 5px;
  border-radius: 0 0 19px 19px;
  background: linear-gradient(110deg,#eac572,#c48e31 65%,#e1b65d);
  color: #fff;
  font-size: 11px;
  text-shadow: 0 1px 1px #74501e55;
}
.ranking-page #ranking-highlights .podium-you {
  position: absolute;
  right: 10px;
  top: 9px;
  padding: 2px 7px;
  border: 1px solid var(--metal-edge);
  border-radius: 12px;
  background: #fffdf7;
  color: #70532e;
  font: 700 10px/1.5 var(--ui-font);
}
.ranking-page .podium-glints { position: absolute; inset: 0; pointer-events: none; }
.ranking-page .podium-glints i { position: absolute; width: 7px; height: 15px; border-radius: 95% 0 95% 0; background: linear-gradient(45deg,#e5ae47,#ffe3a1); opacity: .8; }
.ranking-page .podium-glints i:nth-child(1) { left: -17px; top: 23px; transform: rotate(-30deg); }
.ranking-page .podium-glints i:nth-child(2) { right: -16px; top: 63px; transform: rotate(25deg); }
.ranking-page .podium-glints i:nth-child(3) { left: 12px; bottom: 76px; transform: rotate(-45deg); }
.ranking-page .podium-glints i:nth-child(4) { right: 16px; bottom: 67px; transform: rotate(15deg); }
.ranking-page #ranking-highlights .is-search-muted { opacity: .5; }
.ranking-page #ranking-highlights .is-search-match { outline: 2px solid var(--metal); outline-offset: 5px; }
.ranking-page .ranking-list .selection-heading { align-items: baseline; gap: 10px 20px; flex-wrap: wrap; }
.ranking-page .ranking-list-note { margin: 0; color: var(--stone); font: 500 12px/1.5 var(--ui-font); }
.ranking-page .ranking-table-wrap { background: #fffdf9; border-radius: 16px; box-shadow: 0 12px 40px #4d382806; }
.ranking-page .ranking-table { table-layout: fixed; }
.ranking-page .ranking-table th { background: #eeebe5; }
.ranking-page .ranking-table th:first-child { width: 19%; }
.ranking-page .ranking-table th:nth-child(2) { width: 55%; }
.ranking-page .ranking-table th:last-child { width: 26%; }
.ranking-page .ranking-table td { padding-top: 15px; padding-bottom: 15px; }
.ranking-page .ranking-table .ranking-score { font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ranking-page .ranking-row.is-current td { background: #fff5df; border-top: 1px solid #ebd5a4; border-bottom-color: #ebd5a4; }
.ranking-page .ranking-row.is-current td:first-child::before { content: none; }
.ranking-page .ranking-break td { padding: 13px 24px; background: #f4f0e9; color: #7a6851; font-size: 10px; }
.ranking-page .ranking-personal-note { padding: 15px 20px; margin: 16px 0 0; border: 1px solid #e4d8c7; border-radius: 14px; background: #faf5e9; font-size: 13px; }
.ranking-page .ranking-position-number { min-width: 0; overflow-wrap: anywhere; }
@container (max-width: 600px) {
  .ranking-page #ranking-highlights { gap: 10px; margin-top: 45px; min-height: 230px; }
  .ranking-page #ranking-highlights .podium-card { padding: 26px 7px 14px; border-radius: 15px; }
  .ranking-page #ranking-highlights .podium-card--1 { padding-bottom: 0; padding-top: 29px; }
  .ranking-page #ranking-highlights .podium-card--2,
  .ranking-page #ranking-highlights .podium-card--3 { margin-bottom: 12px; }
  .ranking-page .podium-crown { width: 52px; height: 49px; top: -31px; }
  .ranking-page .podium-card--1 .podium-crown { width: 64px; height: 60px; top: -37px; }
  .ranking-page .podium-avatar-wrap { height: 71px; margin-bottom: 10px; }
  .ranking-page .podium-card--1 .podium-avatar-wrap { height: 88px; }
  .ranking-page .podium-portrait { width: 56px; height: 56px; padding: 6px; }
  .ranking-page .podium-card--1 .podium-portrait { width: 68px; height: 68px; padding: 7px; }
  .ranking-page #ranking-highlights .podium-name { font-size: clamp(13px, 3.4cqi, 21px); }
  .ranking-page #ranking-highlights .podium-points { font-size: 12px; }
  .ranking-page .podium-place { font-size: 8px; letter-spacing: .025em; }
  .ranking-page .podium-card--1 .podium-place { margin-left: -7px; margin-right: -7px; font-size: 9px; padding: 10px 3px; border-radius: 0 0 14px 14px; }
  .ranking-page .podium-glints i:nth-child(-n+2) { display: none; }
  .ranking-page .podium-glints i { width: 4px; height: 10px; }
  .ranking-page #ranking-highlights .podium-you { font-size: 8px; right: 4px; top: 5px; padding: 1px 5px; }
}
@container (max-width: 360px) {
  .ranking-page #ranking-highlights { gap: 7px; min-height: 218px; }
  .ranking-page .podium-avatar-wrap { height: 56px; }
  .ranking-page .podium-card--1 .podium-avatar-wrap { height: 71px; }
  .ranking-page .podium-portrait { width: 43px; height: 43px; padding: 4px; }
  .ranking-page .podium-card--1 .podium-portrait { width: 53px; height: 53px; padding: 5px; }
  .ranking-page #ranking-highlights .podium-points { font-size: 11px; }
  .ranking-page .podium-points span { display: block; font-size: 9px; }
  .ranking-page .podium-place > span:last-child { display: block; font-size: 7px; }
  .ranking-page .podium-place > span[aria-hidden] { display: none; }
  .ranking-page .podium-glints { display: none; }
}
@media (max-width: 760px) {
  .ranking-page .ranking-highlights-section { margin-bottom: 38px; }
  .ranking-page .ranking-table th, .ranking-page .ranking-table td { padding-left: 10px; padding-right: 10px; }
  .ranking-page .ranking-table th:first-child { width: 19%; }
  .ranking-page .ranking-table th:nth-child(2) { width: 51%; }
  .ranking-page .ranking-table th:last-child { width: 30%; }
  .ranking-page .ranking-player { gap: 8px; }
  .ranking-page .ranking-avatar--sm { width: 34px !important; height: 34px !important; flex: 0 0 34px; }
  .ranking-page .ranking-position { gap: 0; font-size: 14px; }
  .ranking-page .ranking-position-badge { display: none; }
  .ranking-page .ranking-player-copy strong { font-size: 12px; }
  .ranking-page .ranking-table .ranking-score { font-size: 13px; }
  .ranking-page .ranking-break td { padding: 12px 10px; }
  .ranking-page .ranking-table th { font-size: 10px; }
}
@media (max-width: 380px) {
  .ranking-page .ranking-player { gap: 6px; }
  .ranking-page .ranking-avatar--sm { width: 28px !important; height: 28px !important; flex-basis: 28px; }
  .ranking-page .ranking-table th, .ranking-page .ranking-table td { padding-left: 7px; padding-right: 7px; }
}
