/* =====================================================================
   TraderPayout · v10 base inscription. Loaded after styles.css.
   Overrides .base-inscription only. Trophy images, .trophy boxes, the stage
   layout and the inscription text ("TraderPayout") are unchanged.

   Every coordinate below is measured on the real trophy pixels
   (assets/trophy-*.webp), not guessed:

   Front face of each plinth (source px, specular edges detected row by row):
     gold   443x687  axis x 214.5 (48.4%)  face 462 -> V tip 677  centroid y 564.8
     silver 381x579  axis x 171.0 (44.9%)  face 392 -> V tip 571  centroid y 477.5
     bronze 373x579  axis x 177.5 (47.6%)  face 389 -> V tip 569  centroid y 474.2
   The faces are frontal and symmetric, so the word is upright (v9 tilted it by
   -2 / -8 / +7 deg) and sits on the face axis (v9 used 50% of the box, 2.7 to 8px
   off-axis on desktop).

   Placement rule, identical for the three trophies:
     cap-height midline = face area centroid lifted by 3% of face height
     ink width          = 56% of the face width on that line (64% on phones,
                          where the face is only 45px wide)
   Rendered coordinates = object-fit: contain + bottom anchoring of each image
   inside its .trophy box (190x270 / 158x242 desktop, 100x140 / 83x124 phones).

   Rendering: drawn at a fixed 16px and scaled, so letterforms keep their exact
   proportions at 3-7px and no browser minimum font size can push them off the
   face. Trailing tracking is balanced with equal leading padding, so the ink
   (not the advance box) is centred. Fill colours are the statuettes' own metal
   mid-tones sampled from the images; the face measures about rgb(15,22,38).
   ===================================================================== */

.stage .trophy {
  --ins-x: 92.25px;  --ins-y: 219.43px;  --ins-k: .4403;    /* 7.04px Archivo, 48.8px ink */
  --ins-metal: 213, 170, 106;                              /* gold statuette mid-tone */
}
.stage .trophy--silver {
  --ins-x: 70.91px;  --ins-y: 197.67px;  --ins-k: .3719;    /* 5.95px, 41.3px ink */
  --ins-metal: 196, 194, 196;                              /* silver mid-tone, lifted 7% for the inlay */
}
.stage .trophy--bronze {
  --ins-x: 75.24px;  --ins-y: 195.94px;  --ins-k: .39225;   /* 6.28px, 43.5px ink */
  --ins-metal: 199, 143, 107;                              /* bronze mid-tone */
}

.stage .trophy .base-inscription {
  --ins-track: .07em;
  position: absolute;
  inset: auto;
  left: var(--ins-x);
  top: var(--ins-y);
  bottom: auto;
  margin: 0;
  padding: 0 0 0 var(--ins-track);           /* balances the trailing tracking after the last "t" */
  font: 600 16px/1 Archivo, var(--sans);
  font-kerning: normal;
  font-feature-settings: "kern" 1;
  font-synthesis: none;
  letter-spacing: var(--ins-track);
  text-transform: none;
  white-space: nowrap;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* inlaid metal: lighter at the top edge of each stroke, deeper at the foot */
  color: rgba(var(--ins-metal), .9);
  background: linear-gradient(180deg, rgba(var(--ins-metal), 1) 22%, rgba(var(--ins-metal), .78) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  /* the cut: shadowed upper wall, then the lit lower lip catching the plinth's sheen */
  filter: drop-shadow(0 -.06em 0 rgba(0, 0, 0, .72)) drop-shadow(0 .07em 0 rgba(150, 185, 235, .2));
  opacity: 1;
  transform-origin: 0 0;
  /* anchor = cap-height midline: centre the box, then lift by the 0.009em that
     separates Archivo's cap midline (0.491em) from the 1em box centre */
  transform: scale(var(--ins-k)) translate(-50%, -50%) translateY(.009em);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 640px) {
  .stage .trophy         { --ins-x: 48.57px; --ins-y: 113.78px; --ins-k: .26094; }  /* 4.18px, 28.9px ink */
  .stage .trophy--silver { --ins-x: 37.32px; --ins-y: 101.11px; --ins-k: .2195;  }  /* 3.51px, 24.3px ink */
  .stage .trophy--bronze { --ins-x: 39.57px; --ins-y: 100.40px; --ins-k: .22968; }  /* 3.67px, 25.5px ink */
  /* below 5px the lit lip would fill the counters: keep only the cut shadow */
  .stage .trophy .base-inscription { filter: drop-shadow(0 -.07em 0 rgba(0, 0, 0, .75)); }
}

@media (prefers-contrast: more) {
  .stage .trophy .base-inscription { background: none; -webkit-text-fill-color: currentColor; color: rgb(var(--ins-metal)); }
}
@media (forced-colors: active) {
  .stage .trophy .base-inscription { background: none; -webkit-text-fill-color: CanvasText; color: CanvasText; filter: none; }
}
