/* The top ten's rank lines (shared/climb.js). The chart fills the box it is put in; its font is set
   from a lane's height, so the faces fit every box. Its colours come from the box (currentColor) and
   these, which a theme may set on any element around it: */
.climb {
  --cl-gold: #f5c542; --cl-silver: #d5dde6; --cl-bronze: #d9925a; --cl-me: #22d3ee; --cl-line: currentColor;
  --cl-axis: 1.5em;       /* the places down the start */
  --cl-lab: 7.5em;        /* room at the end of the lines for the names */
  position: relative; display: flex; width: 100%; height: 100%; min-height: 6em; line-height: 1;
  box-sizing: border-box; padding-block: .2em; }
.climb-slot { position: relative; }
.climb-slot > .climb { position: absolute; inset: 0; }
.climb-slot > .climb-keep { visibility: hidden; }

.cl-axis { position: relative; flex: 0 0 var(--cl-axis); }
.cl-axis span { position: absolute; inset-inline-start: 0; transform: translateY(-50%); font-size: .62em; font-weight: 700; opacity: .5; }
.cl-plot { position: relative; flex: 1 1 auto; margin-inline-end: var(--cl-lab); }
.cl-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.climb[dir="rtl"] .cl-lines { transform: scaleX(-1); }

/* All ten keep their lane, face and name, but only the three on top have a line, and a phone's own
   player (his word, 2026-11-26: «ده نفر باشه فقط خطها باید واسه سه نفر باشه»). A line comes and goes
   softly as its player enters the three or leaves it. */
.cl-line { fill: none; stroke: var(--cl-line); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .35s; }
.cl-lines g[data-place="1"] .cl-line { stroke: var(--cl-gold); opacity: 1; stroke-width: 4.5; }
.cl-lines g[data-place="2"] .cl-line { stroke: var(--cl-silver); opacity: 1; stroke-width: 4; }
.cl-lines g[data-place="3"] .cl-line { stroke: var(--cl-bronze); opacity: 1; stroke-width: 4; }
.cl-lines g.me .cl-line { stroke: var(--cl-me); opacity: 1; stroke-width: 5; }
.cl-round { stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 4 7; opacity: .22; }
.cl-me-lane { stroke: var(--cl-me); stroke-width: 1; stroke-dasharray: 2 6; opacity: .45; }

.cl-heads { position: absolute; inset: 0; pointer-events: none; }
.cl-head { position: absolute; display: flex; align-items: center; white-space: nowrap; transform: translateY(-50%); width: max-content;
  margin-inline-start: -.8em; }
.cl-head .gq-face { margin-inline-end: .28em; }
.cl-head .v-flag, .cl-head .p-cflag { width: 1.3em; height: .9em; margin-inline-end: .28em; }
.cl-name { display: none; flex: none; max-width: var(--cl-lab); overflow: hidden; font-weight: 700; font-size: .92em;
  text-shadow: 0 .06em .2em rgba(0, 0, 0, .45); }
.cl-head.named .cl-name { display: block; }
.cl-head[data-place="1"] .gq-face-pic { box-shadow: 0 0 0 .14em var(--cl-gold), 0 .05em .2em rgba(0, 0, 0, .4); }
.cl-head[data-place="2"] .gq-face-pic { box-shadow: 0 0 0 .12em var(--cl-silver), 0 .05em .2em rgba(0, 0, 0, .4); }
.cl-head[data-place="3"] .gq-face-pic { box-shadow: 0 0 0 .12em var(--cl-bronze), 0 .05em .2em rgba(0, 0, 0, .4); }
.cl-head.me { z-index: 2; }
.cl-head.me .gq-face-pic { box-shadow: 0 0 0 .16em var(--cl-me), 0 .05em .2em rgba(0, 0, 0, .4); }
.cl-head.me .cl-name { color: var(--cl-me); max-width: calc(var(--cl-lab) + 2em); }
