/* P05 podium (podium.js): the pad on the stage floor, steps of corrugated card, full-body crews,
   a Rocket-red name plate, one stamped number. Stage px; nothing below y 880 but the floor shadow. */
.pd { position: absolute; inset: 0; pointer-events: none; --red: #e0452c; --kit: #f3e7cf; --ink: #1d1a17; --kraft: #c49a6c; --signal: #f08a24; }
.pd-rocket { position: absolute; left: 1350px; top: 300px; height: 560px; filter: brightness(0.72) drop-shadow(0 16px 12px rgba(10, 6, 2, 0.5)); }
.pd-pad { position: absolute; inset: 0; transition: opacity 0.3s; }
.pd-pad.is-dim, .pd-head.is-dim { opacity: 0.6; }
.is-gone { opacity: 0 !important; transition: opacity 0.25s; }

.pd-step {
  position: absolute; box-sizing: border-box; border: 6px solid var(--ink); border-bottom: 0;
  background:
    linear-gradient(var(--kit) 0 18px, var(--ink) 18px 24px, transparent 24px),
    repeating-linear-gradient(90deg, #b88b58 0 9px, #a97d4c 9px 12px, #c99c69 12px 21px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 10px 0 var(--ink), 14px 26px 30px rgba(0, 0, 0, 0.55);
  display: grid; place-items: center; padding-top: 24px;
}
.pd-step--1 { background:
    linear-gradient(var(--kit) 0 18px, var(--ink) 18px 24px, transparent 24px),
    repeating-linear-gradient(90deg, #d9a35a 0 9px, #c48f48 9px 12px, #e3b06a 12px 21px); }
.pd-step__no {
  min-width: 132px; padding: 4px 18px 0; box-sizing: border-box; text-align: center;
  background: var(--kit); border: 6px solid var(--ink); color: var(--ink);
  font: 400 96px/1 var(--font-display); font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.pd-step--3 { padding-top: 14px; }
.pd-step--3 .pd-step__no { font-size: 72px; }
.pd-step__no:empty { display: none; }
/* P13 (Sol r0 S07/S21/S25): the plate says STOL, so a table number never reads as a placing */
.pd-step--2 .pd-step__no, .pd-step--3 .pd-step__no { font-size: 60px; display: flex; align-items: baseline; gap: 10px; } /* the lower steps (110–140 px high) hold STOL + number on one line */
.pd-step--2 .pd-step__no small, .pd-step--3 .pd-step__no small { display: inline; margin: 0; }
.pd-step__no small { display: block; font: 400 var(--t-min)/1 var(--font-display); letter-spacing: 0.08em; color: #8a6238; margin-bottom: 2px; }
.pd-shadow { position: absolute; height: 34px; transform: translate(-50%, -60%); border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 6, 2, 0.6), rgba(10, 6, 2, 0)); }
.pd-body { position: absolute; transform: translate(-50%, -94.5%); filter: drop-shadow(10px 14px 0 rgba(20, 12, 4, 0.35)); }

.pd-tag {
  position: absolute; transform: translate(-50%, -100%) rotate(-1.5deg); display: flex; flex-direction: row; align-items: baseline; gap: 14px;
  padding: 6px 20px 4px; background: var(--kit, #f3e7cf); border: 5px solid var(--ink); color: var(--ink); /* P13 (CD #4): runners on Kit card, only size separates them from the winner */
  box-shadow: 0 8px 0 rgba(29, 26, 23, 0.85), 8px 18px 18px rgba(0, 0, 0, 0.4); white-space: nowrap;
}
.pd-tag em { font: 400 64px/1.05 var(--font-display); font-style: normal; white-space: nowrap; }
.pd-tag b { font: 400 50px/1.05 var(--font-display); }

.pd-head { position: absolute; left: 760px; top: 64px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 1368px; transition: opacity 0.3s; }
.pd--compact .pd-head { left: 960px; }
.pd-kicker {
  display: inline-block; padding: 6px 22px 2px; background: var(--ink); color: var(--kit);
  font: 400 46px/1.1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.pd-plate {
  position: relative; display: flex; align-items: center; gap: 28px; padding: 10px 40px 14px;
  background: var(--red); color: var(--kit); border: 6px solid var(--ink); border-radius: 4px;
  box-shadow: 0 10px 0 var(--ink), 12px 26px 30px rgba(0, 0, 0, 0.45);
}
/* D-GP4CUT1 (Argon read "Sank Ekipa"): line-height 1 under overflow:hidden clipped the caron of Š/Č/Ž; 1.18 keeps it */
.pd-plate__name { margin: 0; font: 400 112px/1.18 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 1180px; }
.pd-plate.is-long .pd-plate__name { font-size: 72px; white-space: normal; text-align: center; max-width: 1000px; }
.pd-plate.is-nobody { background: var(--kraft); color: var(--ink); }
.pd-plate__pts {
  display: inline-block; box-sizing: border-box; text-align: center; font-variant-numeric: tabular-nums; /* FT1-E3: the count-up holds its width */ padding: 4px 22px 0; background: var(--kit); color: var(--ink); border: 6px solid var(--ink);
  font: 400 112px/1 var(--font-display); transform: rotate(-4deg); white-space: nowrap;
}
.pd-plate.is-long .pd-plate__pts { font-size: 96px; }
.pd-subs { display: flex; gap: 14px; }
.pd-subs .pd-plate__sub { font-size: 34px; } /* D-M2SH S-d: the place ladder under the plate is a support line, not a second headline */
.pd-plate__sub { padding: 4px 16px; background: var(--kit); color: var(--ink); border: 4px solid var(--ink); font: 800 46px/1.1 var(--font-body); white-space: nowrap; }
.pd-plate__joker { padding: 4px 16px; background: var(--signal); color: var(--ink); border: 4px solid var(--ink); font: 400 46px/1.1 var(--font-display); font-style: normal; white-space: nowrap; }
.pd-caption { position: absolute; left: 96px; bottom: 228px; max-width: 520px; margin: 0; padding: 8px 18px; background: var(--kit); color: var(--ink); border: 4px solid var(--ink); font: 800 38px/1.15 var(--font-body); }

/* compact (fuel finish / pre-launch on the dark pad): smaller crew, no rocket */
.pd--compact .pd-step { opacity: 0.95; }

/* NOVI VOĐA (PF8) */
.pd-flash { position: absolute; inset: 0; }
.pd-flash .pd-kicker { position: absolute; left: 960px; top: 70px; transform: translateX(-50%); }
.pd-flash .pd-plate { position: absolute; left: 960px; top: 140px; transform: translateX(-50%); }
.pd-flash__body { position: absolute; left: 960px; top: 860px; height: 430px; transform: translate(-50%, -94.5%); filter: drop-shadow(10px 14px 0 rgba(20, 12, 4, 0.35)); }

/* Top 5 with gaps (PF8, after each Revizor) */
.pd-top5 { position: absolute; left: 260px; top: 130px; width: 1400px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; }
.pd-top5 li {
  height: 110px; display: grid; grid-template-columns: 110px 120px 1fr 330px 260px; align-items: center; gap: 18px; padding: 0 30px; box-sizing: border-box;
  background: var(--kit); color: var(--ink); border: 6px solid var(--ink); box-shadow: 0 10px 0 var(--ink), 10px 24px 30px rgba(0, 0, 0, 0.45);
  clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% + 20px), 0 calc(100% + 20px));
}
.pd-top5 li.is-lead { background: var(--red); color: var(--kit); }
.pd-top5 em { font: 400 72px/1 var(--font-display); font-style: normal; }
.pd-top5__no { justify-self: start; min-width: 96px; padding: 4px 10px 0; text-align: center; background: var(--kit); color: var(--ink); border: 5px solid var(--ink); font: 400 60px/1 var(--font-display); box-sizing: border-box; }
.pd-top5 span { font: 800 46px/1.1 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-top5 i { white-space: nowrap; /* D-FT1NB4 (W9): "−337 do 1." */ font: 400 46px/1 var(--font-display); font-style: normal; color: #b85e0c; justify-self: end; }
.pd-top5 strong { font: 400 72px/1 var(--font-display); justify-self: end; font-variant-numeric: tabular-nums; }

/* Spot strip (PF7) */
.pd.is-radar .pd-pad, .pd.is-radar .pd-head, .pd.is-radar .pd-tag { opacity: 0.7; transition: opacity 0.3s; }
.pd-radar { position: absolute; left: 960px; top: 592px; z-index: 5; transform: translateX(-50%) rotate(-2deg); } /* D-NQA2: y 592 sits above every step (the tallest tops at 650), so the pennant never covers a step name plate. P13 (CD #3): a pennant over the chip it names, never over a podium plate; P15B (CD §4): above y 800, never in the row's lanes */
.pd-radar span { display: inline-block; padding: 8px 30px 2px; background: var(--kit); color: var(--ink); border: 6px solid var(--ink); box-shadow: 0 10px 0 var(--ink); font: 400 var(--t-caption, 38px)/1.1 var(--font-display); white-space: nowrap; }
#hud .chip.is-radar .chip__in { transform: translateY(-14px); filter: drop-shadow(0 0 16px rgba(255, 214, 140, 0.95)); transition: transform 0.3s, filter 0.3s; }

/* ── P05 Dio stiže (machine.js v3): the rocket is the hero; kit strip stage right; the tap a kraft tag ── */
.dio { position: absolute; inset: 0; --red: #e0452c; --kit: #f3e7cf; --ink: #1d1a17; --kraft: #c49a6c; }
.dio__gantry { position: absolute; left: 330px; top: 330px; height: 530px; filter: brightness(0.62) drop-shadow(0 14px 10px rgba(10, 6, 2, 0.5)); }
.dio__rocket { position: absolute; z-index: 2; filter: drop-shadow(18px 22px 0 rgba(20, 12, 4, 0.35)); }
.dio__floor { position: absolute; left: 700px; top: 812px; z-index: 1; width: 560px; height: 76px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, 0.62), transparent 70%); pointer-events: none; } /* P15A t5: the rocket stands on the stage floor, not in a void */
.dio__fit { position: absolute; z-index: 3; width: 100px; transform: translate(-50%, -50%) rotate(-25deg); filter: drop-shadow(0 6px 0 rgba(29, 26, 23, 0.55)); }
.dio__fit::after { content: ""; }
.dio__kit { position: absolute; left: 1262px; top: 84px; width: 580px; margin: 0; padding: 16px 16px 8px; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px; box-sizing: border-box;
  background: var(--kit); border: 6px solid var(--ink); box-shadow: 0 10px 0 var(--ink), 14px 26px 30px rgba(0, 0, 0, 0.5); transform: rotate(1deg); }
/* P13 (ops P05 #1, CD #4): every cell is the part's own picture with its printed name; on the sheet it is a pale
   printed ghost with a die line, fitted it stands full colour on a lit card. Never a grey blob. */
.dio__kit .kit__cell { position: relative; height: 158px; display: grid; grid-template-rows: 112px 40px; justify-items: center; align-items: center; border-radius: 6px; outline: 3px dashed rgba(94, 66, 37, 0.45); outline-offset: -2px; }
.dio__kit .kit__cell img { width: 100%; height: 112px; object-fit: contain; }
.dio__kit .kit__cell b { display: block; font: 400 var(--t-min)/1 var(--font-display); color: var(--ink); white-space: nowrap; }
.dio__kit .kit__cell.is-todo img { opacity: 0.6; filter: grayscale(1) contrast(0.85); } /* P16 G10 (CD S08 #2): todo reads at 6 m */
.dio__kit .kit__cell.is-todo b { color: rgba(29, 26, 23, 0.7); }
.dio__kit .kit__cell.is-done { outline: 0; background: #fff6e2; box-shadow: 0 0 0 4px var(--ink), 0 0 0 9px #f2b632; }
.dio__kit .kit__cell.is-done img, .dio__kit .kit__cell.is-punched img { opacity: 1; filter: none; }
.dio__kit .kit__cell.is-fresh:not(.is-punched) { outline: 6px solid var(--signal, #f08a24); outline-offset: 2px; }
/* P16 G10 (CD S08 #2–3): the sheet never dims while the part rides; it steps down to 0.6 only for the fit (machine.js), then returns */
.dio__kit .kit__stamp { display: none; }
.dio__cable { position: absolute; left: 0; top: 56px; z-index: 4; width: 10px; height: 100px; margin-left: -5px; background: #d9cfa8; box-shadow: 0 0 0 4px var(--ink); transform-origin: top center; }
.dio__part { position: absolute; left: 0; top: 0; z-index: 5; width: 165px; /* P15A t5: hangs at 165 px, seats at ≈ 120 px (machine.js PW) */ filter: drop-shadow(0 10px 0 rgba(29, 26, 23, 0.55)) drop-shadow(12px 26px 20px rgba(0, 0, 0, 0.45)); }
.dio__hook { position: absolute; left: 0; top: 0; z-index: 5; width: 44px; height: 40px; margin-left: -22px; border: 8px solid var(--ink); border-top: 0; border-radius: 0 0 24px 24px; background: transparent; box-sizing: border-box; }
.dio__hook::before { content: ""; position: absolute; left: 6px; top: -10px; width: 16px; height: 16px; background: #c8902a; border: 4px solid var(--ink); border-radius: 50%; }
.dio__smoke { position: absolute; left: 0; top: 0; z-index: 6; width: 400px; margin: -200px 0 0 -200px; pointer-events: none; }
.dio__part.is-seated { filter: drop-shadow(0 6px 0 rgba(29, 26, 23, 0.6)); }
/* P15B (CD mid §3.4, BA13): the lean choice hangs from the truss — a kraft header (who picks) on two cords, two pinned
   Kit placards 330 × 220 on short cords under it; the picking table's chip drops on the one it chose; no bar */
.dio .mach__sab { left: 96px; top: 92px; width: 684px; padding: 18px 22px 0; gap: 0 18px; background: none; border: 0; border-radius: 0; box-shadow: none; transform: rotate(-1deg); transform-origin: 50% 0; }
.dio .mach__sab::before { content: ""; position: absolute; left: 70px; right: 70px; top: -44px; height: 44px; border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); }
.dio .mach__sab::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 156px; z-index: -1; background: var(--paper-grain), var(--kraft); border-radius: 3px; box-shadow: 0 0 0 1px #8f6a3e, 7px 9px 0 rgba(20, 18, 16, 0.9); }
.dio .mach__who img { width: 112px; height: 112px; }
.dio .mach__ask small { font: 400 46px/1.05 var(--font-display); color: var(--ink); }
.dio .mach__ask h3 { font-size: 46px; }
.dio .mach__who b { font: 400 34px/1.1 var(--font-display); }
.dio .mach__sides { margin: 62px -22px 0; gap: 24px; }
.dio .mach__side { position: relative; height: 220px; justify-content: center; gap: 10px; padding: 0 12px; border: 0; border-radius: 3px; background: linear-gradient(135deg, rgba(255, 250, 236, 0.55), rgba(255, 250, 236, 0) 55%, rgba(60, 40, 20, 0.08)), var(--paper-grain), var(--kit); box-shadow: 0 0 0 1px #b9a581, 8px 10px 0 rgba(20, 18, 16, 0.92); }
.dio .mach__side::before { content: ""; position: absolute; left: 60px; right: 60px; top: -62px; height: 62px; border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); }
.dio .mach__side::after { content: ""; position: absolute; left: 50%; top: 14px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; box-sizing: border-box; background: radial-gradient(circle at 38% 35%, #fbf3d6, #d9cfa8 45%, #8f7e48); border: 3px solid var(--ink); }
.dio .mach__side b { font-size: 56px; }
.dio .mach__side small { font-size: 46px; font-weight: 900; }
.dio .mach__side.is-on { background: linear-gradient(135deg, rgba(255, 250, 236, 0.55), rgba(255, 250, 236, 0) 55%), var(--paper-grain), var(--kit); }
.dio .mach__clock { display: none; }
.dio .mach__vote { position: absolute; right: 18px; bottom: 16px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--hue); border: 4px solid var(--ink); box-sizing: border-box; box-shadow: 3px 4px 0 rgba(8, 8, 18, 0.35); font: 400 34px/1 var(--font-display); font-style: normal; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.dio__title { position: absolute; left: 112px; top: 600px; z-index: 6; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; } /* P15B: the beat's title until the seat */
.dio__title b { padding: 4px 24px 8px; background: var(--paper-grain), var(--kit); color: var(--ink); border-radius: 3px; box-shadow: 0 0 0 1px #b9a581, 7px 9px 0 rgba(20, 18, 16, .9); font: 400 var(--t-q, 72px)/1 var(--font-display); white-space: nowrap; }
.dio__title small { margin-left: 18px; padding: 2px 16px 6px; background: var(--paper-grain), #c49a6c; color: var(--ink); border-radius: 3px; box-shadow: 0 0 0 1px #8f6a3e, 5px 6px 0 rgba(20, 18, 16, .85); font: 400 var(--t-option, 46px)/1.1 var(--font-display); white-space: nowrap; }
.dio__stamp { position: absolute; left: 100px; top: 110px; max-width: 700px; z-index: 6; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.dio__stamp b { padding: 6px 26px 4px; background: var(--red); color: var(--kit); border: 6px solid var(--ink); font: 400 112px/1 var(--font-display); white-space: nowrap; box-shadow: 0 10px 0 var(--ink); }
.dio__stamp b i { display: block; font: 400 var(--t-q, 72px)/1.05 var(--font-display); font-style: normal; } /* P16 G10 (CD S08 #1): UGRAĐENO: 72 over the part 112, in the lean cards' slot */
.dio__stamp small { margin-left: 20px; padding: 4px 16px; background: var(--kit); color: var(--ink); border: 4px solid var(--ink); font: 800 var(--t-caption, 38px)/1.15 var(--font-body); }
.dio__line { position: absolute; left: 96px; top: 520px; z-index: 6; max-width: 640px; margin: 0; padding: 8px 20px; background: var(--kraft); color: var(--ink); border: 5px solid var(--ink); box-shadow: 0 8px 0 var(--ink); font: 800 46px/1.15 var(--font-body); transform: rotate(-1deg); }

/* the finale's podium uses (3 fuel finish, 4 before lift-off) cover the finale board: the dark pad */
.pd-cover { position: absolute; left: 76px; top: 56px; width: 1768px; height: 884px; z-index: 30; overflow: hidden;
  background: radial-gradient(ellipse 46% 22% at 50% 100%, rgba(196, 154, 108, 0.55), rgba(42, 38, 34, 0) 70%) no-repeat,
    linear-gradient(to bottom, rgba(20, 26, 46, 0) 70%, #2a2622 88%) no-repeat,
    url(../art/launch/sky.webp) center top / 1768px 860px no-repeat, #141a2e; }
.pd-cover .pd { left: -76px; top: -56px; width: 1920px; height: 1080px; }
#stage.is-launching canvas, #stage:has(.pd-cover) canvas { opacity: 0; transition: opacity 0.4s; }
.pd--compact .pd-pad { left: 200px; }
.pd--compact .pd-tag { margin-left: 200px; }
.dio__stamp .dio__line { position: static; margin: 6px 0 0 20px; }

/* P15A (cd-kickoff C8, P08 ops review): every step's face carries number 72 + name 46 + points 46; no floating runner tags */
.pd-step { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding-top: 26px; }
.pd-step__no, .pd-step--2 .pd-step__no, .pd-step--3 .pd-step__no { display: flex; align-items: baseline; gap: 10px; font-size: 72px; line-height: 0.9; min-width: 0; padding: 2px 16px 0; }
.pd-step--2 .pd-step__no { font-size: 60px; } /* the hierarchy: 1st 72 / 46 / 46, 2nd 60 / 40 / 38, 3rd 52 / 36 / 34 — every line fits its step */
.pd-step--3 .pd-step__no { font-size: 52px; }
.pd-step--2 .pd-step__who strong { font-size: 38px; }
.pd-step--3 .pd-step__who strong { font-size: var(--t-min); }
.pd-step--2, .pd-step--3 { padding-top: 20px; } /* the last line clears the step's bottom edge */
/* POL-A (tv-28): the row's VODI tags stand from y 850 over the steps' feet; every step's last line ends ≥ 15 px above them */
.pd-step--1 { padding-top: 12px; }
.pd-step--2, .pd-step--3 { padding-top: 10px; }
.pd-step__no small, .pd-step--2 .pd-step__no small, .pd-step--3 .pd-step__no small { display: inline; margin: 0; }
.pd-step__who { display: flex; flex-direction: column; align-items: center; width: calc(100% - 20px); line-height: 1; }
.pd-step__who em { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 46px/1.18 var(--font-display); font-style: normal; color: var(--kit); text-shadow: 0 3px 0 var(--ink); text-align: center; }
.pd-step__who strong { font: 400 46px/0.95 var(--font-display); font-weight: 400; color: var(--kit); text-shadow: 0 3px 0 var(--ink); font-variant-numeric: tabular-nums; }
/* a tied top step names every winner: two balanced lines at 34 px, then the mark (the plate above carries the full list) */
.pd-step__who em.is-2 { white-space: normal; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.04; }
/* D-GP3PL2 (owner review): white names on the light wood of steps 2-3 were unreadable at 4 m; every step uses the ink */
.pd-step__who em, .pd-step__who strong { color: var(--ink); text-shadow: 0 2px 0 rgba(243, 231, 207, 0.6); }
/* P15A D22: the brass split pin that turns through a seated part (Dio stiže) */
.dio__pin { position: absolute; left: 0; top: 0; z-index: 6; width: 38px; height: 38px; /* P15A t5: the split pin reads at 6 m without hiding the part */ border-radius: 50%; background: #c8902a; border: 4px solid var(--ink); box-shadow: 3px 4px 0 rgba(29, 26, 23, 0.45); }
.dio__pin::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 4px; margin-left: -2px; background: var(--ink); }

/* D-PODIUM1 (owner: the name under the winner read flat and cheap, and repeated the banner): every step's name is a Kit paper
   nameplate glued to the corrugated front: display font, an Ink border, the team's hue as a 14 px side band, a slight tilt and a
   drop shadow, like the red plate above. The runners' points hang under it as a small Ink tag; the winner's step has none. */
.pd-step__who { gap: 8px; }
.pd-step__who em { box-sizing: border-box; padding: 4px 18px 0 30px; background: linear-gradient(90deg, var(--team, #e0452c) 0 14px, var(--ink) 14px 18px, transparent 18px), var(--kit);
  border: 5px solid var(--ink); border-radius: 4px; color: var(--ink); text-shadow: none; box-shadow: 6px 8px 0 rgba(29, 26, 23, 0.5); transform: rotate(-1.5deg); }
.pd-step--2 .pd-step__who em { transform: rotate(1.2deg); }
.pd-step--3 .pd-step__who em { transform: rotate(-1deg); }
.pd-step__who em.is-list { padding: 6px 14px 4px; background: var(--kit); }
.pd-step__who strong { position: absolute; right: 6px; top: -34px; z-index: 1; /* D-SYS3 (SHARED.md §8, "+651" on the neighbour figure): the points tag stays inside its step's width (was right -14) */ padding: 6px 14px 2px; background: var(--ink); color: var(--kit); text-shadow: none; border-radius: 4px;
  font-size: 40px; transform: rotate(4deg); box-shadow: 4px 6px 0 rgba(29, 26, 23, 0.45); }
.pd-step--2 .pd-step__who strong, .pd-step--3 .pd-step__who strong { font-size: 40px; }
/* D-FIX2: a pub step (STOL nn + name + place word) ran its "2. mjesto" under the step's foot: the runners' number and place word step down */
.pd-step--2 .pd-step__no { font-size: 44px; }
.pd-step--3 .pd-step__no { font-size: 40px; }
.pd-step--3 .pd-step__who { gap: 4px; }
.pd-step--2 .pd-step__who .pd-conv, .pd-step--3 .pd-step__who .pd-conv { font-size: 28px; line-height: 1; }
/* D-FIX2 (F6): the runners' points chip stands over the figures (the pad paints it after them), right edge 6 px inside its step */
.pd-chip { position: absolute; padding: 6px 14px 2px; background: var(--ink); color: var(--kit); border-radius: 4px; font: 400 40px/0.95 var(--font-display);
  font-variant-numeric: tabular-nums; white-space: nowrap; transform: translateX(-100%) rotate(4deg); box-shadow: 4px 6px 0 rgba(29, 26, 23, 0.45); }
/* (the step's clip keeps its shadow off the floor; a band above its top stays open for the hanging points tag) */
.pd-step { clip-path: polygon(-40px -60px, calc(100% + 40px) -60px, calc(100% + 40px) 0, 100% 0, 100% 100%, 0 100%, 0 0, -40px 0); }

/* FT1-E3 (owner: no rocket parts as the trophy): stage right, where the rocket stood, the paper trophy hangs on its cord
   (x 1460-1760, cup y 190-473) over UKUPNO, the night's top three on a Kit card (bottom y 840, clear of the row's tags). */
.pd-prize { position: absolute; left: 1460px; top: 120px; width: 300px; z-index: 2; } /* D-SYS4 (K1): top 190 -> 120: the cup's foot (y 403) clears a 5-6 row UKUPNO tab (y 437) */
.pd-prize__cord { position: absolute; left: 0; top: -210px; overflow: visible; }
.pd-prize__cup { position: relative; display: block; width: 300px; height: auto; filter: drop-shadow(8px 12px 0 rgba(20, 12, 4, 0.35)); }
.pd-total { position: absolute; left: 1384px; bottom: 240px; width: 440px; /* D-SYS3 (Dvoboj "+783", Asocijacije "+521": UKUPNO over step 3's tag and figure): x 1384-1824, clear of step 3 (ends 1350) and its tag */ box-sizing: border-box; padding: 44px 20px 12px; z-index: 2;
  background: var(--kit); color: var(--ink); border: 5px solid var(--ink); border-radius: 4px; transform: rotate(1deg);
  box-shadow: 0 10px 0 var(--ink), 12px 26px 30px rgba(0, 0, 0, 0.45); }
.pd-total__head { position: absolute; left: 18px; top: -32px; padding: 6px 22px 2px; background: var(--red); color: var(--kit); border: 5px solid var(--ink); border-radius: 4px;
  font: 400 44px/1.05 var(--font-display); letter-spacing: 0.03em; transform: rotate(-2deg); box-shadow: 0 6px 0 var(--ink); white-space: nowrap; }
.pd-total ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pd-total li { display: grid; grid-template-columns: 48px 46px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 58px; column-gap: 14px; } /* D-FT1NB11-17 (KLR9): the name keeps 14 px from its total */
.pd-total li + li { border-top: 3px dashed rgba(29, 26, 23, 0.3); padding-top: 6px; }
/* D-RV2SH S3: five or six rows: a tighter row so the card keeps clear of the awards card above it */
.pd-total.is-many li { min-height: 40px; } .pd-total.is-many i, .pd-total.is-many strong { font-size: 34px; } .pd-total.is-many em { font-size: 32px !important; } .pd-total.is-many small { font-size: 22px; }
/* D-SYS4 (K1, owner §38: every table listed): 7-8 rows at the 32 px floor on a 6 px gap (card ~430 px, top ~410); the trophy yields to it */
.pd-total.is-dense li { min-height: 34px; } .pd-total.is-dense li + li { padding-top: 3px; } .pd-total.is-dense i, .pd-total.is-dense strong, .pd-total.is-dense em { font-size: 32px !important; }
.pd-total.is-dense small { display: none; }
.pd-total__more em { color: #8a5a2b; } .pd-total__more span { grid-column: 3; }
/* D-FT1NB1 (U10): the row's face, the station's pay and the place change under the name */
.pd-total__face { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--kit); border: 3px solid var(--ink); box-sizing: border-box; }
.pd-total__gain { color: #1f6b34 !important; } .pd-total__gain.is-down { color: #a8281c !important; }
.pd-total.is-many .pd-total__face { width: 34px; height: 34px; } .pd-total.is-dense .pd-total__face { width: 30px; height: 30px; }
.pd-total i { font: 400 44px/1 var(--font-display); font-style: normal; color: #8a5a2b; }
.pd-total li:first-child i { color: var(--red); }
.pd-total:has(i.is-eq) li { grid-template-columns: 76px 46px minmax(0, 1fr) auto; } /* D-M2SH B10: "=3." needs its own room (it ran into the name at 48 px) */
.pd-total span { display: flex; flex-direction: column; min-width: 0; }
.pd-total small { font: 400 32px/1 var(--font-display); letter-spacing: 0.04em; color: #8a6238; }
.pd-total em { display: block; font: 400 40px/1.15 var(--font-display); font-style: normal; white-space: nowrap; overflow: hidden; }
.pd-total em.is-2 { font-size: 32px; line-height: 1.05; white-space: normal; overflow-wrap: anywhere; text-wrap: balance; }
.pd-total strong { font: 400 44px/1 var(--font-display); font-weight: 400; font-variant-numeric: tabular-nums; }
/* who yields after the beat: NOVI VOĐA takes the trophy's place (one verdict per frame; UKUPNO agrees with it and stays),
   ISPOD RADARA and the top five take the whole right side */
.pd-prize, .pd-total { transition: opacity 0.25s; }
.pd.is-beat .pd-prize, .pd.is-beat .pd-total { transition: none; } /* the beat hides them at once: a fade here showed the trophy and the standings before the reveal */
.pd:has(> .pd-flash) .pd-prize, .pd.is-radar .pd-prize, .pd.is-radar .pd-total,
.pd:has(> .pd-top5) .pd-prize, .pd:has(> .pd-top5) .pd-total { opacity: 0 !important; }
/* D-SYS4 (K1, owner §38 "trophy and award never over text"; Carbon v2 04 #1, 08, 99 WO6): the station's award card is the prize when
   there is one — it takes the trophy's column (award-ribbon.js marks the pad is-awarded) and the cup stays off; a 7-8 row UKUPNO
   reaches the cup's foot, so the cup stays off there too */
.pd.is-awarded .pd-prize, .pd:has(.pd-total.is-dense) .pd-prize { opacity: 0 !important; }
/* D-FT1GD1c: "igra 640" under a runner's night figure (TV floor 32 px); the winner's line sits in .pd-subs */
.pd-step__who .pd-conv { display: block; font: 800 32px/1.1 var(--font-body); color: var(--ink); white-space: nowrap; text-align: center;  padding: 1px 12px 2px; background: var(--kit); border: 3px solid var(--ink); border-radius: 6px; } /* D-FT1NB6 (A46): the place word on a card plate, not ink on corrugated kraft */
.pd-conv--plate { font-size: 40px; }

/* D-FT1IAW (owner O11): the station awards ribbon (award-ribbon.js): a kraft card with a red tab per award, the paper medallion
   of the night-end cards (art/v3/ui/award-*.webp, cropped to its disc), the table's face, name and value; 1-2 rows */
.aw-rib { position: absolute; left: 1384px; top: 100px; width: 452px; /* D-FT1NC3 (B29): ends at x 1836, inside the stage opening (right edge 1844) */ /* D-SYS4 (K1): the UKUPNO column (x 1384-1884), in the trophy's place; was 1200/236/690 over step 3's head, the plate's subs and the cup */ box-sizing: border-box; z-index: 30; display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 16px;
  background: #F6EBD2 var(--paper-grain); border: 3px solid #2B1D12; border-radius: 6px; box-shadow: -4px 8px 16px rgba(43, 29, 18, 0.45); transform-origin: 50% 0; pointer-events: none; visibility: hidden; }
.aw-rib__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: center; }
.aw-rib__icon { grid-row: 1 / 3; width: 96px; height: 96px; background-repeat: no-repeat; background-size: 209px auto; background-position: -57px -63px; clip-path: circle(50%); filter: drop-shadow(0 3px 0 rgba(43, 29, 18, 0.35)); }
/* the award medallions of their own (720x720, the disc at 90 %) show whole; the night-end cards keep the disc crop above */
.aw-rib__icon:is([data-art=niz], [data-art=laz], [data-art=povratak], [data-art=svetocno]) { background-size: contain; background-position: center; clip-path: none; }
.aw-rib__head { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; row-gap: 6px; } /* D-SYS4: a long title (POVRATAK STANICE) keeps its value pill under it in the 500 px card, never past its edge */
.aw-rib__tab { max-width: 100%; box-sizing: border-box; padding: 2px 34px 0 18px; background: #D7263D; color: #FBF6EA; font: 400 34px/1.15 var(--font-display); letter-spacing: 0.03em; white-space: nowrap; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%); }
.aw-rib__val { padding: 0 14px; background: #FFB703; color: #2B1D12; border: 3px solid #2B1D12; border-radius: 6px; font: 400 36px/1.2 var(--font-display); font-style: normal; white-space: nowrap; }
.aw-rib__who { display: flex; align-items: center; gap: 10px; min-width: 0; color: #2B1D12; }
.aw-rib__who img { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #2B1D12; background: #FBF6EA; object-fit: cover; flex: none; }
.aw-rib__who span { font: 800 36px/1.15 var(--font-body); white-space: nowrap; overflow: hidden; min-width: 0; }

/* D-SYS3 (Carbon v2 work orders 2 + 6, SHARED.md §8): the station-end podium's layer and double-number rules, once for every game.
   - confetti (fx.js .fx, z 8 on #stage) flies BEHIND the pad, the head plate, UKUPNO and the trophy: .ui has no stacking context, so these
     z-indexes stand in #stage's and win over the paper (Pogodi sliku #3: paper over "Marko" / "Ivan");
   - while a podium stands, the row's score tags (totals, VODI, +N flags, x2) go dark in 0.25 s: the UKUPNO card and the steps already
     say every number (every part report: "isti brojevi dvaput / triput"); the figures and names stay (owner: ends with the figures);
   - the ribbon (.aw-rib) keeps its slot above UKUPNO. */
.pd .pd-pad, .pd .pd-head, .pd .pd-total, .pd .pd-prize, .pd .pd-caption, .pd .pd-flash, .pd .pd-top5 { z-index: 9; }
body:has(#podium) #hud .chip__tot, body:has(#podium) #hud .chip__vodi, body:has(#podium) #hud .chip__flag, body:has(#podium) #hud .chip__x2,
body:has(#podium) #hud .chip__back, body:has(#podium) #hud .chip__arrow { opacity: 0 !important; transition: opacity 0.25s !important; }
/* D-M2SH B5 (owner + Carbon 01 #4: the names stood 3-4 times): while a podium stands the whole bottom row of small figures leaves; the
   steps and UKUPNO carry every name. The radar extra (a spot over the bottom chips in a big room) brings the row back for its sweep */
body:has(#podium) #hud:not(:has(.chip.is-radar)) { opacity: 0 !important; transition: opacity 0.25s !important; }
