@layer stone-city {
  html #hub-main .hub-standings-first .hub-board-caption { position: relative; }
  html #hub-main .hub-standings-first .hub-podium-skip {
    position: absolute; top: 0; left: 0; z-index: 2;
    width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  html #hub-main .hub-standings-first .hub-podium-skip:focus-visible {
    width: max-content; max-width: 100%; height: auto; min-height: 44px;
    padding: 4px 8px; clip-path: none; white-space: normal; overflow: visible;
    color: var(--sc-text,#fbf4ee); background: var(--sc-solid,#291c22);
    border: 1px solid var(--sc-gold-light,#f4d9a5); border-radius: 4px;
  }
  html #hub-main .hub-standings-first .hub-podium-standings-title {
    margin: 16px 0 6px !important; font-size: 1.1rem !important; line-height: 1.35;
    scroll-margin-top: 16px;
  }
  /* Shorter pedestals retain the Elite Five's native competition-rank heights. */
  html #hub-main .hub-standings-first .hub-elite-platform { height: calc(var(--tier) * .48) !important; }
  html #hub-main .hub-standings-first .hub-elite-header { padding-block-start: 14px !important; }
  html #hub-main .hub-standings-first .hub-elite-stage { padding-block-start: 14px !important; }
  html #hub-main .hub-standings-first .hub-elite-identity { gap: 3px; padding-bottom: 8px; }
  html #hub-main .hub-standings-first .hub-elite-name { min-height: 1.4em !important; }
}
@layer stone-city {
@media screen and (max-width:760px), screen and (max-width:960px) and (max-height:540px) and (orientation:landscape) {
  html #hub-main .hub-standings-first:has(.hub-mobile-podium) { padding-block-start: 8px !important; }
  html #hub-main .hub-standings-first:has(.hub-mobile-podium) .hub-board-caption h2::before {
    content: ''; display: inline-block; width: 21px; height: 15px; margin-right: 6px;
    color: var(--sc-gold-light,#f4d9a5); vertical-align: baseline;
    background: linear-gradient(currentColor,currentColor) left bottom / 6px 9px no-repeat,
                linear-gradient(currentColor,currentColor) center bottom / 6px 15px no-repeat,
                linear-gradient(currentColor,currentColor) right bottom / 6px 6px no-repeat;
  }
  html #hub-main .hub-mobile-podium { min-width: 0; margin: 2px 0 0; }
  html #hub-main .hub-mobile-podium-list {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 12px;
    padding: 0; margin: 0; list-style: none;
  }
  html #hub-main .hub-mobile-podium-item {
    --podium-metal: #c9ac96; --podium-width: 42%;
    position: relative; min-width: 0; margin: 0; padding: 0; list-style: none;
  }
  html #hub-main .hub-mobile-podium-item[data-podium-rank="1"] {
    --podium-metal: #f0d59a; --podium-width: 100%;
    grid-column: 1 / -1; border-radius: 6px 6px 0 0;
    background: linear-gradient(105deg,#59262e 0%,#331e23 61%,#292021 100%);
  }
  html #hub-main .hub-mobile-podium-item[data-podium-rank="2"] { --podium-metal: #d7cdca; --podium-width: 82%; }
  html #hub-main .hub-mobile-podium-item[data-podium-rank="3"] { --podium-metal: #d3ae91; --podium-width: 68%; }
  html #hub-main .hub-mobile-podium-item[data-podium-rank="4"] { --podium-width: 55%; }
  html #hub-main .hub-mobile-podium-item::after {
    content: ''; display: block; position: absolute; left: 0; bottom: 0;
    height: 3px; width: var(--podium-width); border-radius: 0 2px 0 0;
    background: linear-gradient(90deg,var(--podium-metal),color-mix(in srgb,var(--podium-metal) 55%,transparent));
    pointer-events: none;
  }
  html #hub-main .hub-mobile-podium-identity {
    box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0,1fr);
    align-content: center; align-items: baseline; gap: 1px 5px; min-width: 0; min-height: 60px;
    width: 100%; margin: 0; padding: 7px 3px 9px; border: 0; border-radius: 3px;
    background: transparent; color: var(--sc-text,#fbf4ee); text-align: start;
    font: inherit; line-height: 1.18; letter-spacing: normal; text-transform: none;
  }
  html #hub-main button.hub-mobile-podium-identity { cursor: pointer; }
  html #hub-main button.hub-mobile-podium-identity:hover { background: #fff8ed0c; }
  html #hub-main button.hub-mobile-podium-identity:focus-visible {
    outline: 2px solid var(--sc-gold-light,#f4d9a5) !important; outline-offset: 1px;
  }
  html #hub-main .hub-mobile-podium-rank {
    color: var(--podium-metal); font-size: .78rem; font-weight: 750; white-space: nowrap;
  }
  html #hub-main .hub-mobile-podium-name {
    color: var(--sc-text,#fbf4ee); font-weight: 650; font-size: .91rem;
    min-width: 0; overflow-wrap: anywhere; text-transform: none;
  }
  html #hub-main .hub-mobile-podium-amount {
    grid-column: 1/-1; color: var(--sc-text,#fbf4ee); font-size: 1rem; font-weight: 700;
    min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
  }
  html #hub-main .hub-mobile-podium-item[data-podium-rank="1"] .hub-mobile-podium-identity {
    grid-template-columns: auto minmax(0,1fr) minmax(0,max-content);
    gap: 6px; align-items: center; min-height: 46px; padding: 8px;
  }
  html #hub-main .hub-mobile-podium-item[data-podium-rank="1"] .hub-mobile-podium-rank {
    padding: 2px 4px; border: 1px solid currentColor; border-radius: 3px;
  }
  html #hub-main .hub-mobile-podium-item[data-podium-rank="1"] .hub-mobile-podium-amount {
    grid-column: 3; justify-self: end; max-width: 100%; color: var(--podium-metal);
    font-size: clamp(1rem,4.6vw,1.25rem); text-align: end;
  }
}
@media screen and (min-width:620px) and (max-width:960px) and (max-height:540px) and (orientation:landscape) {
  html #hub-main .hub-mobile-podium-list { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (forced-colors:active) {
  html #hub-main .hub-mobile-podium-item { border-bottom: 1px solid CanvasText; }
  html #hub-main .hub-mobile-podium-item[data-podium-rank="1"] { border: 2px solid Highlight; }
  html #hub-main button.hub-mobile-podium-identity:focus-visible { outline-color: Highlight !important; }
}
}
