/* The end of the lesson: the podium is revealed one place at a time (owner
   13.11.2026), played by lib/ui-motor-podium-reveal.js over the finished
   podium. Everything here applies only while the reveal runs (.mpr-*): when
   it ends, is skipped or fails, the classes are taken off and the finished
   podium is what it was. Transforms and opacity only; no filters. */
.mpr-on { position: relative; }
/* A column rises from the podium's floor: what is below the floor is not drawn. */
.mpr-column { position: relative; clip-path: inset(-800px -800px 0 -800px); }
.mpr-part { position: relative; z-index: 1; will-change: transform; }
/* A place that has not had its turn: a low neutral plinth, no card, no number. */
.mpr-column:not(.mpr-column--list).mpr-waiting .mpr-card,
.mpr-column:not(.mpr-column--list).mpr-waiting .mpr-rank-part { opacity: 0; }
/* A plain list (a shared place, a phone): the row waits dimmed, without a figure. */
.mpr-column--list.mpr-waiting .mpr-identity,
.mpr-column--list.mpr-waiting .mpr-rank-part { opacity: .4; }
.mpr-column--list.mpr-waiting .mpr-figure { opacity: 0; }
/* Until the firm is named its card is nobody's: neutral card, neutral figure, neutral plinth. */
.mpr-on .motor-teacher-final__board--podium .motor-teacher-final__row.mpr-anon .motor-teacher-final__who { border-color: #d3dbe3; background: #e9eef3; }
.mpr-on .motor-teacher-final__board:not(.motor-teacher-final__board--podium) .motor-teacher-final__row.mpr-anon { border-color: #d3dbe3; background: #e9eef3; }
.mpr-on .motor-teacher-final__row.mpr-anon .motor-teacher-final__value strong { color: #303a4a; }
.mpr-on .motor-teacher-final__board--podium .motor-teacher-final__row.mpr-anon .motor-teacher-final__rank { background: #e3e9ef; }
.mpr-on .motor-teacher-final__board--podium .motor-teacher-final__row.mpr-anon .motor-teacher-final__rank strong { color: #303a4a; }
.mpr-on .motor-teacher-final__board--podium .motor-teacher-final__row.mpr-anon .motor-teacher-final__rank span { color: #6b7280; }
.mpr-on .motor-final-rows--podium .motor-final-row.mpr-anon .motor-final-who { border-color: #d5dee4; background: #e9eff2; }
.mpr-on .motor-final-rows--podium .motor-final-row.mpr-anon .motor-final-rank { background: #e6edf1; }
.mpr-on .motor-final-rows--podium .motor-final-row--rank-1.mpr-anon .motor-final-rank span { color: #17242d; }
.mpr-on .motor-final-rows--podium .motor-final-row--rank-1.mpr-anon .motor-final-rank small { color: #5b6b76; }
/* (a phone's first place has its own teal rule in styles.css: until it is named it is as neutral as the others) */
.mpr-on .motor-final-row.mpr-column--list.mpr-anon { border-color: #d5dee4 !important; background: #eef2f5 !important; box-shadow: none !important; }
.mpr-on .motor-final-row.mpr-column--list.mpr-anon .motor-final-rank span { color: #17242d; }
/* In the room of the firm's mark and name: a "?" the size of the mark and a blank plate. */
.mpr-q {
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; box-sizing: border-box;
  width: 44px; height: 44px; border-radius: 12px; background: #b9c5cf; color: #fff;
  font-family: Arial, sans-serif; font-size: 26px; font-weight: 800; line-height: 44px; text-align: center;
}
.mpr-blank { display: block; flex: 0 0 auto; width: min(58%, 180px); height: 14px; border-radius: 7px; background: #d3dbe3; }
.mpr-column--list .mpr-blank { width: 120px; }
/* The firm's colour floods its card as the name lands, and drains away. */
/* (.mpr-part makes the card its own layer: -1 is over the card's ground and under its words.) */
.mpr-flash { position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; }
.mpr-column--list > .mpr-flash { z-index: 0; border-radius: 12px; opacity: 0; }
/* The light behind a card: one soft disc, scaled and faded by the reveal. The winner's is gold and teal, a place's its firm's colour. */
.mpr-burst {
  position: absolute; z-index: 0; left: 50%; top: 0; width: 560px; height: 560px; margin: -190px 0 0 -280px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255, 214, 102, .85) 0, rgba(255, 214, 102, .45) 22%, rgba(20, 165, 150, .28) 45%, rgba(20, 165, 150, 0) 70%);
}
.mpr-burst--place {
  width: 380px; height: 380px; margin: -120px 0 0 -190px;
  background: radial-gradient(circle, var(--mpr-colour, #9fb0c4) 0, var(--mpr-colour, #9fb0c4) 18%, transparent 68%);
}
.mpr-column--list > .mpr-burst { display: none; }
.mpr-confetti { position: absolute; z-index: 6; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
/* What follows the podium keeps its place and fades in at the end. */
.mpr-extra--in { transition: opacity .5s ease; }
.mpr-extra.mpr-extra--hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.mpr-extra.mpr-extra--gone { display: none !important; }

/* The pupil's own place, under the podium (owner 12.11.2026: "Your firm: 2nd of 6"). */
.motor-final-yours {
  margin: 12px 0 0; padding: 9px 14px; border-radius: 10px; background: #e7f6f6; color: #17242d;
  font-size: 19px; line-height: 1.25; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums;
}
.motor-final-yours b { color: #007b85; font-weight: 800; }
@media (min-width: 561px) {
  .motor-final-rows--podium .motor-final-yours { order: 4; grid-column: 1 / -1; margin-top: 2px; }
}
/* The light stays behind the neighbouring firms' cards. */
.mpr-column { z-index: 1; }
.mpr-column.mpr-lit { z-index: 0; }
.mpr-stage { will-change: transform; transition: none !important; }
/* The pupil's place line heads the list of every firm: no second heading, and the window is no taller than before. */
.session-ended-modal--motor .motor-final-yours + .motor-final-all { margin-top: 6px; padding-top: 0; border-top: 0; }
.session-ended-modal--motor .motor-final-yours + .motor-final-all .motor-final-all__head { display: none; }
/* The pupil's Final standings on a classroom laptop (1366x768, 1280x720): the podium, the pupil's
   place, every firm's line and the buttons on screen together. No tick above the title; with more
   than six firms the lines are tighter and the podium a little lower. */
.session-ended-modal--motor.session-ended-modal--standings .session-ended-modal__icon { display: none; }
.session-ended-modal--motor .motor-final-rows--many .motor-final-all__row { min-height: 28px; padding-top: 2px; padding-bottom: 2px; }
@media (min-width: 561px) {
  .motor-final-rows--podium.motor-final-rows--many .motor-final-row--rank-1 .motor-final-rank { height: 74px; }
  .motor-final-rows--podium.motor-final-rows--many .motor-final-row--rank-2 .motor-final-rank { height: 58px; }
  .motor-final-rows--podium.motor-final-rows--many .motor-final-row--rank-3 .motor-final-rank { height: 44px; }
}
/* No blur behind the window (owner: no blur filters on big areas, old school laptops): a full-screen
   backdrop blur was redrawn on every frame of the reveal. A darker plain veil instead. */
.session-ended-modal--motor.session-ended-modal--standings .session-ended-modal__backdrop {
  -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(13, 26, 35, 0.86);
}
/* A 720 px screen with the long names of a real lesson ("Parkside Family Cars Western Avenue" takes
   two lines on the podium): less air around the window's edge, so every firm's line stays in view. */
@media (max-height: 740px) {
  .session-ended-modal--motor.session-ended-modal--standings .session-ended-modal__card { padding-top: 12px; padding-bottom: 12px; }
  .session-ended-modal--motor.session-ended-modal--standings { padding-top: 8px; padding-bottom: 8px; }
  .session-ended-modal--motor.session-ended-modal--standings .session-ended-modal__card { max-height: calc(100vh - 16px); }
}
/* A real lesson's names carry the firm's place ("Parkside Family Cars Western Avenue"): the window is
   wide enough on a laptop for each to be read whole in the list of every firm (they were cut with "…"). */
@media (min-width: 1000px) {
  .session-ended-modal--motor.session-ended-modal--standings .session-ended-modal__card { width: min(960px, calc(100vw - 32px)); max-width: 960px; }
}
