/* VALBLOX weekly race page, on top of styles.css and pages.css. Built by brand/viking/src/page/build_race.py.
   Top to bottom: the title row (flag plate, "Weekly race", a short gold bar; the countdown and How it works on the
   right) -> the stage: a short painted hero band (rendered: brand/race-redesign/valblox) whose scene runs on behind
   the podium, and the podium starting right under the number -> the leaderboard (your position, then 4th-50th) ->
   prize ladder + how it works -> FAQ. The podium is the page's main event: at 1440x900 all three cards sit whole in
   the first screen.
   The stage is sized from one length, --F: the width of the centre frame (figures, shield fan, the 1,000,000 and the
   coins that stay with it). The backdrop and the scene's coins are placed from it too, so every layer keeps its place
   at every width. Motion: coin drift phases are CSS, parallax and snow are race.js; all of it holds still under
   prefers-reduced-motion. */

.amt--gold .num { color: var(--gold); }
.rk { font-family: "Skranji", sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .4px; color: var(--muted); padding-left: 4px; }

/* ---------------------------------------------------------------- title row */
.rpage > .rtop { margin-bottom: -18px; }
.rtop__l { display: flex; align-items: center; gap: 16px; min-width: 0; }
.rtop__ic { position: relative; isolation: isolate; width: 64px; height: 64px; flex: none; display: grid; place-items: center; color: var(--gold); }
.rtop__ic > .plate {
  --c: 16px; --n: 4px; --rw: 1px; --rim: rgba(var(--gold-rgb), .34); --bt: rgba(var(--hi), .2); --bb: rgba(var(--lo), .62);
  --face: radial-gradient(70% 70% at 50% 28%, rgba(var(--gold-rgb), .16) 0%, rgba(var(--gold-rgb), 0) 100%), linear-gradient(180deg, #262E3C 0%, #1A2029 100%);
}
.rtop__ic .ic { width: 34px; height: 34px; filter: drop-shadow(0 2px 0 rgba(4, 7, 12, .45)); }
.rtop__t { font-size: 24px; line-height: 30px; letter-spacing: 1.6px; color: var(--white); text-transform: uppercase; text-shadow: 0 3px 0 rgba(4, 7, 12, .35); }
.rtop__t::after {   /* the short gold bar under the title */
  content: ""; display: block; width: 34%; min-width: 74px; height: 6px; margin: 7px 0 4px;
  background: linear-gradient(180deg, var(--bz0) 0 34%, var(--bz2) 34% 72%, var(--bz4) 72% 100%);
  clip-path: polygon(3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px), 0 3px);
}
.rtop__tools { flex-wrap: nowrap; }
.rtop__how { flex: none; }

/* the countdown: one dark plate; "Ends in" and the units as digit tiles over the race day and the race week */
.rclock {
  position: relative; isolation: isolate; flex: none; display: grid; grid-template-columns: auto auto; align-items: center;
  column-gap: 14px; row-gap: 4px; padding: 8px 12px 9px 14px;
}
.rclock > .plate {
  --c: 12px; --n: 4px; --rw: 1px; --rim: rgba(var(--gold-rgb), .3); --bt: rgba(var(--hi), .18); --bb: rgba(var(--lo), .62);
  --face: radial-gradient(70% 90% at 50% 0%, rgba(var(--gold-rgb), .07) 0%, rgba(var(--gold-rgb), 0) 100%), linear-gradient(180deg, #1C232E 0%, #151A23 100%);
}
.rclock__l { grid-area: 1 / 1; align-self: end; display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 15px; letter-spacing: 1.3px; color: var(--gold); text-transform: uppercase; white-space: nowrap; }
.rclock__l .ic { width: 18px; height: 18px; flex: none; color: var(--gold); }
.rclock__day { grid-area: 2 / 1; align-self: start; padding-left: 24px; font-size: 12px; line-height: 13px; letter-spacing: 1.1px; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.rclock__day b { font-weight: 400; color: var(--white); }
.rclock__segs { grid-area: 1 / 2 / 3 / 3; display: flex; align-items: center; gap: 4px; }
.rclock__segs > i { width: 6px; flex: none; font-style: normal; text-align: center; font-family: "Skranji", sans-serif; font-weight: 700; font-size: 18px; line-height: 1; color: var(--muted); opacity: .5; padding-bottom: 10px; }
.rclock__seg { position: relative; isolation: isolate; width: 48px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding-bottom: 2px; }
.rclock__seg > .plate {   /* a tile cut into the plate: the trims swapped */
  --c: 7px; --n: 1px; --bt: rgba(5, 8, 12, .6); --bb: rgba(var(--hi), .32);
  --face: linear-gradient(180deg, #10141B 0%, #171D26 100%);
}
.rclock__seg b { font-family: "Skranji", sans-serif; font-weight: 700; font-size: 24px; line-height: 26px; letter-spacing: .5px; color: var(--white); font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.rclock__seg small { font-size: 12px; line-height: 13px; letter-spacing: .6px; color: var(--muted); text-transform: uppercase; }
.rweek { grid-area: 3 / 1 / 4 / 3; list-style: none; margin: 3px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.rweek__d { min-width: 0; }
.rweek__bar {
  position: relative; display: block; height: 5px; background: #0E1218; box-shadow: inset 0 1px 0 rgba(0, 0, 0, .5);
  clip-path: polygon(2px 0, calc(100% - 2px) 0, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 0 calc(100% - 2px), 0 2px);
}
.rweek__bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--f, 0) * 100%); background: linear-gradient(180deg, var(--bz1) 0 40%, var(--bz3) 40% 100%); }
.rweek__d.is-today .rweek__bar i { min-width: 3px; background: linear-gradient(180deg, var(--bz0) 0 40%, var(--bz2) 40% 100%); }

/* ---------------------------------------------------------------- the stage: scene, hero band, podium */
.rstage {
  --F: clamp(300px, 44.5cqw, 540px);       /* the centre frame's width (2:1); the number spans 79.5% of it */
  --u: calc(var(--F) / 100);               /* coin sizes, and the scene coins' heights, are in these units */
  --sw: 100cqw;                            /* the scene's width (phones: the gutters too) */
  --bgw: max(var(--sw) + 28px, var(--F) * 2.9);     /* the backdrop's width (2:1, 14px spare a side for parallax) */
  --bgy: calc(var(--F) * .2 - var(--bgw) * .165);   /* its top: puts its glow (a third down) behind the heads */
  --bgb: calc(var(--bgy) + var(--bgw) * .5);        /* its foot */
  position: relative; isolation: isolate;
}
.rhero__scene {
  position: absolute; inset: 0; z-index: -1; overflow: clip; pointer-events: none;
  /* no frame: the scene melts into the page on every side; it runs on behind the podium and is gone before its
     own foot */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 56px, #000 calc(var(--bgb) - var(--F) * .6), transparent calc(var(--bgb) - 6px));
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 56px, #000 calc(var(--bgb) - var(--F) * .6), transparent calc(var(--bgb) - 6px));
  mask-composite: intersect;
}
.rhero__bg { position: absolute; left: 50%; top: var(--bgy); width: var(--bgw); height: auto; max-width: none; aspect-ratio: 2; transform: translateX(-50%); }
.rhero__snow { position: absolute; inset: 0; width: 100%; height: 100%; }
.rhero__far, .rhero__near { position: absolute; inset: 0; }
.rhero { position: relative; z-index: 1; overflow-x: clip; padding-top: 4px; }
.rhero__frame { position: relative; width: var(--F); aspect-ratio: 2; margin: 0 auto; }
.rhero__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rhero__mid { position: absolute; inset: 0; }

/* coins: --x / --y place the centre (mid coins: % of the frame; scene coins: x in % of the scene, y in frame units),
   --w is the width in frame units, --r the tilt; the drift is a slow eased loop on the sprite (its own length --d and
   phase --t), the parallax a translate on the holder (race.js) */
.rcoin { position: absolute; left: var(--x); top: var(--y); width: calc(var(--w) * var(--u)); transform: translate(-50%, -50%); pointer-events: none; }
.rhero__scene .rcoin { top: calc(var(--y) * var(--u)); }
.rcoin > img, .rcoin > .coin-spin { display: block; width: 100%; height: auto; transform: rotate(var(--r)); }
.rcoin > .coin-spin { aspect-ratio: 1; }
.rcoin--mid > img { filter: drop-shadow(0 calc(var(--u) * .9) calc(var(--u) * 1.2) rgba(4, 7, 12, .4)); }
/* the glint: a warm copy of the number's lit faces with a little bloom (race.js adds it when motion is on), seen
   through a narrow band that crosses every 4.4 s, on the header race badge's beat */
.rhero__glint { position: absolute; inset: 0; pointer-events: none; }
.rhero__glint img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------------------------------------------------------------- podium: three trophies on one ground line
   Each card is a plinth in its rank's metal and the relic is the trophy on it: the relic stands on a small octagonal
   dais (assets/race/pod-dais-*.svg: a bevelled metal block, rivets on its front, a dark well lit by a pool in the rank
   colour, a contact shadow where the relic stands; the axe is planted in an iron socket, whose front half,
   pod-socket-silver.svg, is drawn over it) a little way into the card, and rises out over its top edge. The frame is
   a forged molding (pod-frame-*.svg, 9-slice: two slopes of flat facet tones against the top-left light, domed iron
   rivets at the chamfers; gold is wider, with a bead, and two iron clamps bind it at mid-height); a riveted plaque
   with the site's knotwork plait is set on the foot rail (pod-plaque-*.svg). The face is slate boards, lit softly
   from behind the relic. The rank is a faceted medallion over the top-left chamfer. Inside: one row for the player
   (octagon avatar, level, name), then the prize pill with the wagered amount as one line under it. The three cards
   share a foot line and step down 1st, 2nd, 3rd, so they stand like a podium.
   --rh: the relic's height; --foot: where its foot sits in it (0-1); --fx: the foot's x in it; --py: how far below
   the top edge the foot stands; --dw: the dais width (its art is 200 wide, the foot at --dyf of that); --dz: from
   the foot to the player row; --fs: the frame's scale (its slice is drawn 1:1 at 1); --rise: the 1st relic's rise
   over its card. */
.rpods {
  --rise: 108px;
  position: relative; z-index: 3; list-style: none; padding: 0;
  margin: calc(var(--rise) + 22px - var(--F) * .0155) 0 0;   /* the helm's horns stay clear of the number */
  display: grid; grid-template-columns: minmax(0, 312px) minmax(0, 352px) minmax(0, 312px); justify-content: center;
  column-gap: clamp(18px, 4cqw, 60px); align-items: end;
}
.rpods::before {   /* the scene sinks into shadow behind the trophies, so they read against it */
  content: ""; position: absolute; z-index: -1; left: -4%; right: -4%; top: calc(-1 * var(--rise) - 30px); bottom: 12%; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 19, 27, 0) 0%, rgba(15, 19, 27, .62) 30%, rgba(15, 19, 27, .7) 62%, rgba(15, 19, 27, 0) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.rpod {
  --m-rgb: 200, 214, 230; --m0: #FFFFFF; --m1: #EEF3F8; --m2: #D3DCE7; --m3: #AEBBCB; --m4: #8592A6; --m5: #5F6B80;
  --ink: var(--m1); --metal: silver; --frame: url("assets/race/pod-frame-silver.svg"); --dais: url("assets/race/pod-dais-silver.svg");
  --plaque: url("assets/race/pod-plaque-silver.svg");
  --fslice: 32; --fw: 32px; --fc: 22px; --fb: 10.3px; --fs: 1;
  --rh: 162px; --foot: .94; --fx: 47%; --tilt: 13deg; --py: 44px; --dw: 124px; --dyf: .1584; --dz: 34px; --md: 50px; --lb: .16;
  position: relative; isolation: isolate; min-width: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, max-content) minmax(0, 1fr);
  grid-template-areas: ". av name ." "prize prize prize prize" "w w w w";
  align-items: center; justify-items: center;
  padding: calc(var(--py) + var(--dz)) 22px 24px; text-align: center;
}
.rpod--gold {
  --m-rgb: 240, 190, 118; --m0: #FFF0D6; --m1: #FDE4C4; --m2: #F4CD9A; --m3: #E2AE68; --m4: #B98A45; --m5: #8A622A;
  --ink: var(--m2); --frame: url("assets/race/pod-frame-gold.svg"); --dais: url("assets/race/pod-dais-gold.svg"); --plaque: url("assets/race/pod-plaque-gold.svg");
  --fslice: 40; --fw: 40px; --fc: 26px; --fb: 15.65px;
  --rh: 172px; --foot: .86; --fx: 50%; --tilt: 0deg; --py: 40px; --dw: 168px; --dyf: .0925; --dz: 37px; --md: 58px; --lb: .2;
}
.rpod--bronze {
  --m-rgb: 226, 150, 96; --m0: #FBDDB8; --m1: #F0BC8A; --m2: #DC9A62; --m3: #BE7A45; --m4: #955A30; --m5: #6A3E20;
  --ink: var(--m1); --frame: url("assets/race/pod-frame-bronze.svg"); --dais: url("assets/race/pod-dais-bronze.svg"); --plaque: url("assets/race/pod-plaque-bronze.svg");
  --rh: 134px; --foot: .96; --fx: 50%; --tilt: 0deg; --py: 30px; --dw: 116px; --dyf: .0925; --dz: 29px;
}

/* the face: slate boards (the home rewards band's plank seams) with the dais, under a soft light from behind the
   relic (the plate is inset 2px) */
.rpod > .plate {
  inset: 2px; z-index: -2; background:
    var(--dais) 50% calc(var(--py) - 2px - var(--dw) * var(--dyf)) / var(--dw) auto no-repeat,
    radial-gradient(calc(var(--dw) * .9) calc(var(--dw) * .24) at 50% calc(var(--py) + var(--dw) * .02), rgba(var(--m-rgb), .14) 0%, rgba(var(--m-rgb), 0) 100%),
    radial-gradient(62% calc(var(--py) + 100px) at 50% 0, rgba(var(--m-rgb), var(--lb)) 0%, rgba(var(--m-rgb), calc(var(--lb) * .35)) 55%, rgba(var(--m-rgb), 0) 100%),
    linear-gradient(90deg, rgba(8, 13, 21, .42) 0 1px, rgba(150, 175, 205, .08) 1px 2px, rgba(8, 13, 21, 0) 2px) 50% 0 / 52px 100% repeat-x,
    linear-gradient(180deg, #2B3345 0%, #222938 46%, #1A1F2A 100%);
  clip-path: polygon(var(--fc) 0, calc(100% - var(--fc)) 0, 100% var(--fc), 100% calc(100% - var(--fc)),
                     calc(100% - var(--fc)) 100%, var(--fc) 100%, 0 calc(100% - var(--fc)), 0 var(--fc));
}
.rpod > .plate::before, .rpod > .plate::after { content: none; }
/* the frame: the 9-slice molding over the face's edge */
.rpod::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border: calc(var(--fw) * var(--fs)) solid transparent;
  border-image: var(--frame) var(--fslice) / calc(var(--fw) * var(--fs)) stretch;
}
/* the plaque on the foot rail (the wagered line's pseudo-element, placed on the card) */
.rpod__w::before {
  content: ""; position: absolute; z-index: 1; left: 50%; pointer-events: none;
  width: calc(128px * var(--fs)); height: calc(18px * var(--fs)); margin-left: calc(-64px * var(--fs));
  bottom: calc(1px * var(--fs));   /* seated on the rail, inside the foot line */
  background: var(--plaque) center / 100% 100% no-repeat;
}
/* the axe's socket: its front half over the relic (same placement as the dais) */
.rpod--silver::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("assets/race/pod-socket-silver.svg") 50% calc(var(--py) - var(--dw) * var(--dyf)) / var(--dw) auto no-repeat;
}
/* the cabin in the scene sits behind the 2nd relic on wide screens: a soft shadow keeps it back (the name row's
   pseudo-element, placed on the card, under its face) */
.rpod--silver .rpod__name::before {
  content: ""; position: absolute; z-index: -3; left: 50%; top: calc(var(--py) - var(--rh) * 1.75); width: 440px; height: calc(var(--rh) * 2.05); margin-left: -240px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(14, 18, 26, .95) 0%, rgba(14, 18, 26, .9) 34%, rgba(14, 18, 26, .7) 58%, rgba(14, 18, 26, 0) 100%);
}

/* the rank medallion: a faceted octagon in the rank's metal over the top-left chamfer, a dark enamel face */
.rpod__tab {
  --mk: calc(var(--md) * .2929);
  position: absolute; z-index: 2; left: var(--mo, -8px); top: var(--mo, -8px);
  width: var(--md); height: var(--md); display: grid; place-items: center; background: #0A0E14;
  clip-path: polygon(var(--mk) 0, calc(100% - var(--mk)) 0, 100% var(--mk), 100% calc(100% - var(--mk)), calc(100% - var(--mk)) 100%, var(--mk) 100%, 0 calc(100% - var(--mk)), 0 var(--mk));
}
.rpod__tab::before, .rpod__tab::after { content: ""; position: absolute; z-index: -1; }
.rpod__tab::before {   /* the bevel: one tone per facet from its outward normal */
  --i: calc(var(--mk) - 1.5px * .4142); inset: 1.5px;
  background: conic-gradient(from -22.5deg, var(--m2) 0 45deg, var(--m3) 45deg 90deg, var(--m4) 90deg 135deg, var(--m5) 135deg 225deg,
                             var(--m4) 225deg 270deg, var(--m3) 270deg 315deg, var(--m1) 315deg 360deg);
  clip-path: polygon(var(--i) 0, calc(100% - var(--i)) 0, 100% var(--i), 100% calc(100% - var(--i)), calc(100% - var(--i)) 100%, var(--i) 100%, 0 calc(100% - var(--i)), 0 var(--i));
}
.rpod__tab::after {    /* the enamel, set into the bevel */
  --i: calc(var(--mk) - 5px * .4142); inset: 5px;
  background: linear-gradient(180deg, #161C27 0%, #0F131B 100%);
  box-shadow: inset 0 2px 0 rgba(3, 5, 9, .7), inset 0 -1px 0 rgba(var(--m-rgb), .25);
  clip-path: polygon(var(--i) 0, calc(100% - var(--i)) 0, 100% var(--i), 100% calc(100% - var(--i)), calc(100% - var(--i)) 100%, var(--i) 100%, 0 calc(100% - var(--i)), 0 var(--i));
}
.rpod__tab > span { position: relative; display: flex; align-items: baseline; padding-top: 2px; font-size: calc(var(--md) * .4); line-height: 1; color: var(--ink); text-shadow: 0 2px 0 rgba(0, 0, 0, .6); }
.rpod__tab small { font-size: .52em; letter-spacing: .4px; text-transform: uppercase; margin-left: 1px; }

/* the relic: stands on the dais (the axe upright in its socket), rises over the top edge */
.rpod__relic {
  position: absolute; z-index: 1; left: 50%; top: calc(var(--py) - var(--rh) * var(--foot)); width: auto; height: var(--rh); max-width: none;
  transform: translateX(calc(-1 * var(--fx))) rotate(var(--tilt)); transform-origin: var(--fx) calc(var(--foot) * 100%); pointer-events: none;
}

/* the player: avatar, level and name on one row, centred as a group (the name gives way first) */
.rpod__av {
  grid-area: av; width: 40px; height: 40px; flex: none; margin-right: 10px; padding: 2px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--m1) 0%, var(--m4) 100%);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}
.rpod__av img {
  width: 100%; height: 100%; background: var(--avatar-bg); object-fit: contain;
  clip-path: polygon(9.2px 0, calc(100% - 9.2px) 0, 100% 9.2px, 100% calc(100% - 9.2px), calc(100% - 9.2px) 100%, 9.2px 100%, 0 calc(100% - 9.2px), 0 9.2px);
}
.rpod__av img[src$="mark-36.svg"] { padding: 8px; }
.rpod__name { grid-area: name; justify-self: start; display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%; }
.rpod__name > span:not(.lvl) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; line-height: 24px; letter-spacing: 1.1px; color: var(--white); text-transform: uppercase; text-shadow: 0 2px 0 rgba(4, 7, 12, .45); }
.rpod__name .lvl { width: 27px; height: 27px; font-size: 12px; background: linear-gradient(180deg, #364053 0%, #283041 100%); }

/* the prize, and the wagered amount as one line under it (--ph: the pill's height; its point is cut a little short
   of half of it, so the notched face never crosses itself at the tips) */
.rpod__prize { --ph: 42px; grid-area: prize; position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: min(100%, 206px); height: var(--ph); padding: 0 11px; margin-top: 11px; }
.rpod__prize > .plate {
  --cap-c: 100px; --cap-n: 2px; --c: calc(var(--ph) / 2 - 2.5px); --n: 2px; --rim: rgba(var(--m-rgb), .5); --bt: rgba(5, 8, 12, .5); --bb: rgba(var(--hi), .22);
  --face: linear-gradient(180deg, #10141B 0%, #181E28 100%);
}
.rpod__prize img { width: 21px; height: 22px; flex: none; }
.rpod__prize b { font-weight: 400; font-size: 24px; line-height: 1; letter-spacing: 1.5px; color: var(--gold); text-shadow: 0 2px 0 rgba(0, 0, 0, .45); padding-top: 2px; }
.rpod__w { grid-area: w; display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; margin-top: 7px; white-space: nowrap; }
.rpod__w .num { font-size: 14px; }
.rpod__w img { width: 15px; height: 16px; }
.rpod__w small { font-family: "Skranji", sans-serif; font-size: 12px; line-height: 15px; letter-spacing: .4px; color: #A3ABC6; padding-top: 2px; }

/* 1st: wider and taller, a bigger relic and medallion, the gold frame with its clamps, a richer pill */
.rpod--1 { padding-left: 36px; padding-right: 36px; padding-bottom: 25px; }   /* the sides clear the clamps */
.rpod--1 .rpod__av { width: 44px; height: 44px; }
.rpod--1 .rpod__name > span:not(.lvl) { font-size: 18px; }
.rpod--1 .rpod__prize { --ph: 46px; width: min(100%, 226px); }
.rpod--1 .rpod__prize > .plate { --rim: rgba(var(--m-rgb), .75); }
.rpod--1 .rpod__prize b { font-size: 28px; }
.rpod--1 .rpod__w .num { font-size: 14px; }
/* two iron clamps bind the gold frame at mid-height, two rivets each (the name row's pseudo-elements, placed on the
   card) */
.rpod--1 .rpod__name::before, .rpod--1 .rpod__name::after {
  content: ""; position: absolute; z-index: 1; top: 50%; width: 20px; height: 50px; margin-top: -25px; pointer-events: none;
  left: calc(var(--fb) * var(--fs) * .5 - 10px);
  --rivet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7.8' cy='8.2' r='5.6' fill='rgba(2,4,8,.5)'/%3E%3Ccircle cx='7' cy='7' r='5.6' fill='%23090C12'/%3E%3Ccircle cx='7' cy='7' r='4.6' fill='%232B3442'/%3E%3Ccircle cx='6.2' cy='6.1' r='3.7' fill='%234D5B6F'/%3E%3Ccircle cx='5.5' cy='5.3' r='2.1' fill='%237D8DA3'/%3E%3Ccircle cx='5' cy='4.8' r='.95' fill='%23D3DDEA'/%3E%3C/svg%3E");
  background:
    var(--rivet) 50% 4px / 14px 14px no-repeat,
    var(--rivet) 50% calc(100% - 4px) / 14px 14px no-repeat,
    linear-gradient(180deg, #0A0E14 0 1px, #56677E 1px 3px, rgba(0, 0, 0, 0) 3px calc(100% - 3px), #10151D calc(100% - 3px) calc(100% - 1px), #0A0E14 calc(100% - 1px)),
    linear-gradient(90deg, #0A0E14 0 1px, #4B5B71 1px 3px, #323E4F 3px calc(100% - 3px), #1A212C calc(100% - 3px) calc(100% - 1px), #0A0E14 calc(100% - 1px));
  clip-path: polygon(3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px), 0 3px);
}
.rpod--1 .rpod__name::after { left: auto; right: calc(var(--fb) * var(--fs) * .5 - 10px); }

/* motion: one slow glint along the 1st card's frame (on the number's beat, between its sweeps), and the relic lifts a
   little on hover; nothing moves under reduced motion */
.rpod--1::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  --o: calc(var(--fb) * var(--fs)); --a: calc(var(--fc) * var(--fs)); --ai: calc(var(--a) + var(--o) * .4142);
  clip-path: polygon(evenodd, var(--a) 0, calc(100% - var(--a)) 0, 100% var(--a), 100% calc(100% - var(--a)), calc(100% - var(--a)) 100%, var(--a) 100%, 0 calc(100% - var(--a)), 0 var(--a), var(--a) 0,
                     var(--ai) var(--o), var(--o) var(--ai), var(--o) calc(100% - var(--ai)), var(--ai) calc(100% - var(--o)), calc(100% - var(--ai)) calc(100% - var(--o)),
                     calc(100% - var(--o)) calc(100% - var(--ai)), calc(100% - var(--o)) var(--ai), calc(100% - var(--ai)) var(--o), var(--ai) var(--o));
  background: linear-gradient(112deg, rgba(255, 244, 222, 0) 42%, rgba(255, 244, 222, .5) 47.5%, rgba(255, 252, 240, .95) 50%, rgba(255, 244, 222, .5) 52.5%, rgba(255, 244, 222, 0) 58%) 100% 0 / 300% 100% no-repeat;
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: no-preference) {
  /* one pass (the old 8.8s loop's moving 20%), run again every 8.8s by site.js glints() (fps pass, 27 Nov 2026) */
  .rpod--1::after { opacity: 1; animation: rp-glint 1.76s 3.4s cubic-bezier(.45, 0, .3, 1) both; }
  .rpod__relic { transition: transform .5s cubic-bezier(.22, .8, .32, 1); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .rpod:hover .rpod__relic { transform: translateX(calc(-1 * var(--fx))) translateY(-6px) rotate(var(--tilt)); }
  .rpod--silver:hover .rpod__relic { transform: translateX(calc(-1 * var(--fx))) translateY(-3px) rotate(var(--tilt)); }   /* it stays in its socket */
}
@keyframes rp-glint { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* wide columns: the podium at full size */
@container page (min-width: 1300px) {
  .rpods { --rise: 116px; grid-template-columns: minmax(0, 330px) minmax(0, 372px) minmax(0, 330px); }
  .rpod { --rh: 176px; --dw: 134px; --dz: 36px; }
  .rpod--gold { --rh: 186px; --py: 45px; --dw: 180px; --dz: 40px; --md: 62px; }
  .rpod--bronze { --rh: 146px; --py: 31px; --dw: 126px; --dz: 31px; }
  .rpod__prize { margin-top: 13px; }
}
@container page (max-width: 1060px) {
  .rpod { padding-left: 16px; padding-right: 16px; }
  .rpod--1 { padding-left: 34px; padding-right: 34px; }
  .rpod__name > span:not(.lvl) { font-size: 18px; }
}
@container page (max-width: 860px) {
  .rpods { --rise: 87px; grid-template-columns: minmax(0, 252px) minmax(0, 284px) minmax(0, 252px); column-gap: 14px; }
  .rpod { --rh: 132px; --py: 36px; --dw: 100px; --dz: 28px; --md: 44px; --mo: -4px; --fs: .875; padding: calc(var(--py) + var(--dz)) 12px 22px; }
  .rpod--gold { --rh: 140px; --py: 34px; --dw: 136px; --dz: 31px; --md: 50px; }
  .rpod--bronze { --rh: 108px; --py: 25px; --dw: 94px; --dz: 25px; }
  .rpod--1 { padding-left: 32px; padding-right: 32px; padding-bottom: 23px; }
  .rpod__av, .rpod--1 .rpod__av { width: 36px; height: 36px; margin-right: 8px; }
  .rpod__name { gap: 7px; }
  .rpod__name .lvl { width: 25px; height: 25px; font-size: 12px; }
  .rpod__name > span:not(.lvl), .rpod--1 .rpod__name > span:not(.lvl) { font-size: 14px; letter-spacing: .9px; }
  .rpod__prize, .rpod--1 .rpod__prize { --ph: 38px; padding: 0 9px; margin-top: 10px; }
  .rpod__prize b { font-size: 18px; }
  .rpod--1 .rpod__prize b { font-size: 24px; }
  .rpod__prize img { width: 18px; height: 19px; }
  .rpod__w .num, .rpod--1 .rpod__w .num { font-size: 14px; }
  .rpod__w small { font-size: 12px; }
}
@container page (max-width: 700px) {
  /* 1st full width on top, 2nd and 3rd side by side under it */
  .rpods { --rise: 95px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 100px; }
  .rpods::before, .rpod--silver .rpod__name::before { display: none; }
  .rpod--1 { grid-column: 1 / -1; grid-row: 1; --rh: 150px; --py: 36px; --dw: 144px; --dz: 33px; --md: 52px; --mo: -2px; --fs: 1; padding-left: 36px; padding-right: 36px; }
  .rpod--2, .rpod--3 { grid-row: 2; --rh: 118px; --py: 32px; --dw: 92px; --dz: 26px; --md: 40px; --mo: -2px; --fs: .8; padding: calc(var(--py) + var(--dz)) 10px 20px; }
  .rpod--3 { --rh: 100px; --py: 22px; --dw: 86px; --dz: 23px; }
  .rpod--1 .rpod__av { width: 40px; height: 40px; }
  .rpod--1 .rpod__name > span:not(.lvl) { font-size: 18px; }
  .rpod--1 .rpod__prize { --ph: 42px; width: min(100%, 220px); }
}
@container page (max-width: 480px) {
  .rpod--2 .rpod__av, .rpod--3 .rpod__av { width: 30px; height: 30px; margin-right: 6px; }
  .rpod--2 .rpod__av, .rpod--3 .rpod__av { clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); }
  .rpod--2 .rpod__av img, .rpod--3 .rpod__av img { clip-path: polygon(6.2px 0, calc(100% - 6.2px) 0, 100% 6.2px, 100% calc(100% - 6.2px), calc(100% - 6.2px) 100%, 6.2px 100%, 0 calc(100% - 6.2px), 0 6.2px); }
  .rpod--2 .rpod__name, .rpod--3 .rpod__name { gap: 5px; }
  .rpod--2 .rpod__name .lvl, .rpod--3 .rpod__name .lvl { width: 23px; height: 23px; font-size: 12px; }
  .rpod--2 .rpod__name > span:not(.lvl), .rpod--3 .rpod__name > span:not(.lvl) { font-size: 12px; letter-spacing: .6px; }
  .rpod--2 .rpod__prize, .rpod--3 .rpod__prize { --ph: 36px; width: 100%; padding: 0 7px; gap: 4px; }
  .rpod--2 .rpod__prize b, .rpod--3 .rpod__prize b { font-size: 18px; }
  .rpod--2 .rpod__prize img, .rpod--3 .rpod__prize img { width: 15px; height: 16px; }
  .rpod--2 .rpod__w, .rpod--3 .rpod__w { flex-direction: column; align-items: center; gap: 0; margin-top: 6px; }
  .rpod--2 .rpod__w .num, .rpod--3 .rpod__w .num { font-size: 12px; }
  .rpod--2 .rpod__w img, .rpod--3 .rpod__w img { width: 14px; height: 15px; }
  .rpod--2 .rpod__w small, .rpod--3 .rpod__w small { padding-top: 0; }
}

/* ---------------------------------------------------------------- leaderboard: your position + 4th-50th */
.ryou { margin-bottom: 10px; }
.ryou__row { position: relative; isolation: isolate; display: grid; align-items: center; column-gap: 14px; min-height: 64px; padding: 9px 18px 11px; }
.ryou__row > .plate {
  --c: 11px; --n: 4px; --rim: rgba(var(--lilac-rgb), .6); --bt: rgba(var(--hi), .24); --bb: rgba(var(--lo), .56); --glow: inset 0 0 20px rgba(var(--lilac-rgb), .12);
  --face: linear-gradient(96deg, rgba(var(--lilac-rgb), .1) 0%, rgba(var(--lilac-rgb), .02) 60%), linear-gradient(96deg, var(--card) 0%, var(--card-b) 100%);
}
.ryou__row--guest { grid-template-columns: 64px minmax(0, 1fr) auto; }
.ryou__row--me { grid-template-columns: 64px minmax(0, 1fr) 190px 150px; row-gap: 6px; }
.ryou__rk { color: var(--lilac-light); font-size: 18px; }
.ryou__t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ryou__t b { font-weight: 400; font-size: 14px; letter-spacing: 1.1px; color: var(--lilac-light); text-transform: uppercase; }
.ryou__t span { font-family: "Skranji", sans-serif; font-size: 14px; line-height: 20px; letter-spacing: .3px; color: var(--muted); }
.ryou__cell { display: flex; justify-content: flex-end; min-width: 0; }
.ryou__next { grid-column: 2 / -1; grid-row: 2; display: flex; align-items: center; gap: 12px; min-width: 0; }
.ryou__next-t { flex: none; font-family: "Skranji", sans-serif; font-size: 14px; line-height: 20px; letter-spacing: .3px; color: var(--muted); }
.ryou__next-t b { font-weight: 400; color: var(--white); }
.ryou__next-t b.num { font-weight: 700; color: var(--gold); }
.ryou__next .meter__track { flex: 1; height: 8px; }
.ryou__next .meter__track i { background: linear-gradient(180deg, var(--lilac-lighter) 0 30%, var(--lilac) 30% 70%, #4E8FB0 70% 100%); }
.rboard .dtab__row { min-height: 54px; }
.rboard .dtab__row:nth-child(even) > .plate { --face: linear-gradient(96deg, #1C222B 0%, #212835 100%); --bt: rgba(var(--hi), .15); }   /* a quiet zebra */
.rboard .dtab__row:hover > .plate { --rim: rgba(var(--lilac-rgb), .34); --face: linear-gradient(96deg, #2C3547 0%, #323C4F 100%); }
.rboard .dtab__row:nth-child(-n+7) .rk { color: var(--gold); }   /* places 4-10: the named rungs of the ladder */
.rboard .dtab__row.is-you > .plate { --rim: rgba(var(--lilac-rgb), .7); --glow: inset 0 0 18px rgba(var(--lilac-rgb), .16); }
.rlist__more { display: flex; justify-content: center; margin-top: 16px; }
.rlist__more .btn[aria-expanded="true"] .ic--chev { transform: rotate(180deg); }
.rlist__more .ic--chev { width: 18px; height: 18px; transition: transform .15s; }

/* ---------------------------------------------------------------- prize ladder + how it works */
.rinfo { align-items: stretch; }
.rungs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rung { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 2px 4px; }
.rung + .rung { box-shadow: inset 0 1px 0 rgba(var(--lo), .7), inset 0 2px 0 rgba(var(--hi), .22); }   /* carved seam: dark wall, lit lip */
.rung__p { min-width: 104px; font-family: "Skranji", sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .4px; color: var(--white); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.rung__dots { flex: 1; align-self: center; height: 2px; margin-top: 4px; background: radial-gradient(circle, rgba(150, 161, 182, .32) 0 1px, transparent 1.2px) 0 0 / 6px 2px repeat-x; }
.rung small { min-width: 30px; font-family: "Skranji", sans-serif; font-size: 12px; color: var(--muted); }
.rung .amt .num { font-size: 14px; }
.rung--gold { --mr: 234, 182, 112; }
.rung--silver { --mr: 185, 200, 216; }
.rung--bronze { --mr: 222, 124, 94; }
.rung--gold, .rung--silver, .rung--bronze { min-height: 44px; }
.rung--gold .rung__p, .rung--silver .rung__p, .rung--bronze .rung__p { color: rgb(var(--mr)); }
.rung__relic { width: 30px; height: 26px; flex: none; object-fit: contain; }
.rung:not(.rung--gold, .rung--silver, .rung--bronze) .rung__p { padding-left: 38px; }
.rladder__foot { margin-top: 14px; font-family: "Skranji", sans-serif; font-size: 12px; line-height: 19px; letter-spacing: .3px; color: var(--muted); }

/* the steps hang on one carved groove (dark wall left, lit wall right) from lozenge to lozenge; beside the taller
   ladder the first two steps grow, so the groove spans the panel and the rules land on its foot */
.rsteps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 16px; flex: 1 0 auto; }
.rstep { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; align-content: start; }
.rstep:not(:last-child) { flex: 1 0 auto; }
.rstep:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; top: 35px; bottom: -17px; width: 2px;   /* tip to tip: lozenges sit at y 1-35 */
  background: linear-gradient(90deg, rgba(var(--lo), .95) 0 1px, rgba(var(--hi), .55) 1px 2px);
}
.rstep__n {
  position: relative; width: 34px; height: 34px; display: grid; place-items: center; margin-top: 1px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: conic-gradient(var(--bz1) 0 90deg, var(--bz4) 90deg 180deg, var(--bz3) 180deg 270deg, var(--bz0) 270deg 360deg);
}
.rstep__n::before { content: ""; position: absolute; inset: 4.95px; background: var(--bz2); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.rstep__n span { position: relative; font-size: 14px; line-height: 1; padding-bottom: 2px; color: #4A300C; text-shadow: 0 1px 0 rgba(253, 228, 196, .55); }
.rstep h3 { font-size: 14px; line-height: 20px; letter-spacing: 1px; color: var(--gold); text-transform: uppercase; }
.rstep p { margin-top: 2px; font-family: "Skranji", sans-serif; font-size: 14px; line-height: 20px; letter-spacing: .3px; color: var(--muted); }
.rhow { display: flex; flex-direction: column; }
.rrules { list-style: none; margin: auto 0 0; padding: 16px 0 0; display: flex; flex-direction: column; gap: 9px; box-shadow: inset 0 1px 0 rgba(var(--lo), .7), inset 0 2px 0 rgba(var(--hi), .22); }
.rrules li { position: relative; padding-left: 20px; font-family: "Skranji", sans-serif; font-size: 14px; line-height: 20px; letter-spacing: .3px; color: var(--muted); }
.rrules li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 7px; height: 7px; background: var(--lilac); opacity: .7; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* ---------------------------------------------------------------- motion (race.js adds the parallax and the snow) */
@media (prefers-reduced-motion: no-preference) {
  .rcoin > img, .rcoin > .coin-spin { animation: rc-drift var(--d) cubic-bezier(.45, 0, .55, 1) var(--t) infinite; }
  .rcoin--far { --a: 2px; --tr: 3deg; }
  .rcoin--mid { --a: 5px; --tr: 4deg; }
  .rcoin--near { --a: 7px; --tr: 5deg; }
  .rcoin--fg { --a: 9px; --tr: 4deg; }
  .rcoin:nth-child(even) { --sx: -1; }
  .rhero__glint {
    -webkit-mask: linear-gradient(100deg, transparent 44%, rgba(0, 0, 0, .3) 47.2%, #000 50%, rgba(0, 0, 0, .3) 52.8%, transparent 56%) 100% 0 / 300% 100% no-repeat;
    mask: linear-gradient(100deg, transparent 44%, rgba(0, 0, 0, .3) 47.2%, #000 50%, rgba(0, 0, 0, .3) 52.8%, transparent 56%) 100% 0 / 300% 100% no-repeat;
    opacity: .9; animation: rh-glint 1.056s 1.2s cubic-bezier(.45, 0, .3, 1) both;   /* one pass, again every 4.4s: site.js glints() */
  }
}
/* four stops, not two: the coin bobs on a slightly different path down than up, so the loop doesn't read as a pulse */
@keyframes rc-drift {
  0%, 100% { transform: translate(0, 0) rotate(var(--r)); }
  27% { transform: translate(calc(var(--sx, 1) * var(--a) * .45), calc(var(--a) * -.7)) rotate(calc(var(--r) + var(--tr) * .6)); }
  52% { transform: translate(calc(var(--sx, 1) * var(--a) * .1), calc(var(--a) * -1)) rotate(calc(var(--r) + var(--tr))); }
  78% { transform: translate(calc(var(--sx, 1) * var(--a) * -.35), calc(var(--a) * -.4)) rotate(calc(var(--r) + var(--tr) * .3)); }
}
@keyframes rh-glint { 0% { -webkit-mask-position: 100% 0; mask-position: 100% 0; } 100% { -webkit-mask-position: 0 0; mask-position: 0 0; } }

/* ---------------------------------------------------------------- narrower columns */
@container page (max-width: 1100px) {
  .rtop__how { width: 36px; padding: 0 0 4px; }   /* How it works: the icon alone (its name stays in aria-label) */
  .rtop__how > span { display: none; }
}
@container page (max-width: 1060px) {
  .ryou__row--me { grid-template-columns: 64px minmax(0, 1fr) auto auto; }
}
@container page (max-width: 860px) {
  .rtop__t { font-size: 24px; line-height: 30px; }
  .rcoin--wide { display: none; }
}
@container page (max-width: 700px) {
  /* the scene runs edge to edge under the page gutters and only fades at the top and the foot */
  .rstage { --F: min(100cqw, 340px); --sw: calc(100cqw + 2 * var(--pad)); }
  .rhero__scene {
    left: calc(-1 * var(--pad)); right: calc(-1 * var(--pad));
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 calc(var(--bgb) - var(--F) * .5), transparent calc(var(--bgb) - 6px));
    mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 calc(var(--bgb) - var(--F) * .5), transparent calc(var(--bgb) - 6px));
  }
  .rtop__l { gap: 12px; }
  .rtop__ic { width: 52px; height: 52px; }
  .rtop__ic .ic { width: 28px; height: 28px; }
  .rtop__t { font-size: 24px; line-height: 30px; }
  /* the coins that sit beside the number move above it (the number spans the frame here) */
  .rhero__mid .rcoin:nth-child(1) { --x: 9% !important; --y: 30% !important; --w: 12 !important; }   /* beats the inline place */
  .rhero__mid .rcoin:nth-child(2) { --x: 87% !important; --y: 9% !important; --w: 8 !important; }
  .rhero__mid .rcoin:nth-child(3) { --x: 92% !important; --y: 38% !important; --w: 9.5 !important; }
  .rhero__mid .rcoin:nth-child(n+4) { display: none; }


  .ryou__row--guest { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 12px 12px; }
  .ryou__row--guest .ryou__rk { display: none; }
  .ryou__row--me { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 10px 12px 12px; }
  .ryou__row--me .ryou__cell:last-of-type { display: none; }
  .ryou__next { flex-direction: column; align-items: stretch; gap: 6px; }
  .rung__p { min-width: 92px; }

  /* the board folds to one line per player: rank, player, then wagered over prize */
  .rboard .dtab__head, .rboard .dtab__row { grid-template-columns: 26px minmax(0, 1fr) auto; column-gap: 10px; padding-left: 12px; padding-right: 12px; }
  .rboard .dtab__head { display: grid; grid-template-rows: auto auto; row-gap: 1px; font-size: 12px; line-height: 15px; }
  .rboard .dtab__head > :nth-child(1) { grid-column: 1; grid-row: 1 / 3; align-self: end; }
  .rboard .dtab__head > :nth-child(2) { grid-column: 2; grid-row: 1 / 3; align-self: end; }
  .rboard .dtab__head > :nth-child(3) { grid-column: 3; grid-row: 1; text-align: right; }
  .rboard .dtab__head > :nth-child(4) { grid-column: 3; grid-row: 2; text-align: right; color: var(--gold); opacity: .8; }
  .rboard .dtab__row { grid-template-rows: auto auto; row-gap: 2px; min-height: 0; padding-top: 9px; padding-bottom: 11px; }
  .rboard .dtab__row > .plate + .dtab__c { grid-column: 1; grid-row: 1 / 3; }
  .rboard .dtab__row > .dtab__c:nth-child(3) { grid-column: 2; grid-row: 1 / 3; }
  .rboard .dtab__row > .dtab__c:nth-child(4) { grid-column: 3; grid-row: 1; text-align: right; }
  .rboard .dtab__row > .dtab__c:nth-child(5) { grid-column: 3; grid-row: 2; text-align: right; }
  .rboard .dtab__row > .dtab__c:nth-child(5) .num { font-size: 12px; }
  .rboard .dtab__row > .dtab__c:nth-child(5) .amt img { width: 14px; height: 15px; }
  .rboard .dtab__lbl { display: none; }
  .rboard .rk { padding-left: 0; font-size: 14px; }
}
@container page (max-width: 480px) {
  /* the title row on phones: How it works in its top corner, the countdown across the full width under the title:
     "Ends in" and the race day over the tiles, the week under them */
  .rtop { position: relative; }
  .rtop__tools { flex: 1 1 100%; }
  .rtop__how { position: absolute; top: 0; right: 0; }
  .rclock { width: 100%; grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; padding: 8px 10px 10px; }
  .rclock__l { grid-area: 1 / 1; align-self: center; }
  .rclock__day { grid-area: 1 / 2; align-self: center; padding-left: 0; }
  .rclock__segs { grid-area: 2 / 1 / 3 / 3; }
  .rclock__seg { flex: 1 1 0; width: auto; }
  .rweek { grid-area: 3 / 1 / 4 / 3; }

  .rboard .who .lvl, .ryou .who .lvl { display: none; }   /* the name needs the room more than the level */
}
@container page (max-width: 330px) {   /* the smallest phones: the title stays clear of How it works in the corner */
  .rtop__l { gap: 10px; }
  .rtop__ic { width: 46px; height: 46px; }
  .rtop__ic .ic { width: 26px; height: 26px; }
  .rtop__t { font-size: 18px; line-height: 24px; letter-spacing: 1.1px; }
}
@container page (max-width: 380px) {
  .rclock__seg { height: 42px; }
  .rclock__seg b { font-size: 18px; line-height: 22px; }
  /* your position: the button drops under the words, full width */
  .ryou__row--guest { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .ryou__go { width: 100%; justify-content: center; }
  /* the board: a smaller face and tighter gaps, so the names keep more letters */
  .rboard .dtab__head, .rboard .dtab__row { grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 8px; padding-left: 10px; padding-right: 10px; }
  .rboard .who { gap: 7px; }
  .rboard .who .avatar { width: 30px; height: 30px; }
  .rboard .who .avatar img { width: 26px; height: 26px; }
  .rboard .who__n { font-size: 14px; letter-spacing: .6px; }
  .rboard .dtab__row > .dtab__c:nth-child(4) .num { font-size: 14px; }
  .rboard .amt { gap: 4px; }
}

/* ================================================================ pages-v2 (race_v2_css.py) */
/* card titles at 18, table text at 14, its head at 12 (the type scale) */
.rpage .shead__t { font-size: 18px; line-height: 24px; }
.rpage .shead__t .ic { width: 20px; height: 20px; }
.rboard .dtab__row { font-size: 14px; }
.rboard .dtab__head { font-size: 12px; letter-spacing: .6px; }
.rpage .shead__aside { font-size: 12px; line-height: 16px; }
.rlist .who__n, .rlist .amt .num { font-size: 14px; }
/* kept off the scale on purpose: the medal numerals (.rpod__tab) are part of the medal art and scale with it */

/* the leaderboard: one card; the rows are stripes inside it, not 47 plates */
.rlist > .plate { --c: 14px; --n: 5px; --bt: rgba(var(--hi), .26); --bb: rgba(var(--lo), .6); --face: linear-gradient(160deg, #232C3B 0%, #1C2330 100%); }
.rlist .shead { margin-bottom: 14px; }
.ryou { margin-bottom: 8px; }
.ryou__row > .plate { --rim: rgba(var(--v-frost-rgb), .32); --face: linear-gradient(90deg, rgba(var(--v-frost-rgb), .1) 0%, rgba(var(--v-frost-rgb), .03) 100%), #1B222E; }
.rboard { gap: 0; }
.rboard .dtab__head { padding-bottom: 8px; }
.rboard .dtab__row { min-height: 48px; padding-top: 4px; padding-bottom: 6px; }
.rboard .dtab__row > .plate { display: none; }
.rboard .dtab__row:nth-child(even) {
  background: rgba(255, 255, 255, .045);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.rboard .dtab__row:hover { background: rgba(var(--v-frost-rgb), .06); }
.rboard .dtab__row.is-you, .rboard .dtab__row.rboard__me.is-you { background: rgba(var(--v-frost-rgb), .1); box-shadow: inset 2px 0 0 var(--v-frost); clip-path: none; }
.rlist__more { margin-top: 14px; }

/* How it works: the steps at the top of their panel, the rules right under them */
.rinfo { align-items: start; }
.rsteps { flex: none; }
.rstep:not(:last-child) { flex: none; }
.rrules { margin-top: 0; }

@container page (max-width: 560px) {
  .rlist { padding: 16px 10px 16px; }
  .rlist .shead { padding: 0 6px; }
}
